* {
  box-sizing: border-box;
}

.site-top {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(18, 20, 22, 0.12);
  padding: 1rem;
  color: var(--ink);
  text-align: center;
}

.site-logo {
  width: min(320px, 100%);
  height: auto;
}

.site-traverse-logo {
  width: min(220px, 100%);
  height: auto;
}

.site-brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.site-brand-main,
.site-brand-side {
  display: flex;
  justify-content: center;
  width: 100%;
}

.site-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.site-location {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-location a {
  color: var(--ink);
  margin-left: 0.4rem;
}

.site-footer {
  margin-top: 2.5rem;
}

.site-footer-card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 16px 30px rgba(18, 20, 22, 0.12);
  padding: 1.1rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

.site-footer-brand {
  font-family: "Fraunces", serif;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}

.site-footer-contact {
  display: grid;
  gap: 0.2rem;
}

.site-footer-links {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.site-footer-partner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.site-footer-partner-logo {
  width: min(170px, 100%);
  height: auto;
  border-radius: 10px;
}

.site-footer-links a,
.site-footer-contact a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-contact a:hover {
  text-decoration: underline;
}

.rules-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.rules-layout > * {
  min-width: 0;
}

.rules-jump {
  display: block;
}

.rules-nav {
  display: none;
}

.rules-nav .nav-link {
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}

.rules-section {
  scroll-margin-top: 1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rules-section + .rules-section {
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag.must {
  background: #ffe6df;
  color: #9d2f14;
}

.tag.note {
  background: #e8f7f2;
  color: #14785f;
}

.rules-table th {
  white-space: nowrap;
}

.rules-heading {
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  .site-top {
    padding: 1.25rem 1.5rem;
  }

  .site-brand-row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
  }

  .site-brand-main {
    justify-content: center;
    flex: 0 1 auto;
    width: auto;
  }

  .site-brand-side {
    justify-content: center;
    flex: 0 1 auto;
    width: auto;
  }

  .site-footer-card {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(160px, 220px);
    padding: 1.5rem;
    align-items: start;
  }

  .site-footer-partner {
    justify-content: flex-end;
  }
}

@media (min-width: 993px) {
  .rules-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  .rules-nav {
    display: block;
    position: sticky;
    top: 1rem;
  }

  .rules-jump {
    display: none;
  }
}
