/* =============================================
   九体育·赛事 共享样式 /assets/site.css
   ============================================= */

/* ---------- 1. Reset & Tokens ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #0B1E3E;
  --color-cream: #F5F0E1;
  --color-orange: #FF6B35;
  --color-neon: #39FF14;
  --color-ink: #1E1610;
  --color-electric: #2E6BE6;
  --color-deep: #071226;
  --color-glass: rgba(255, 255, 255, 0.7);
  --font-head: 'Archivo Black', 'Noto Sans SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 12px 32px rgba(7, 18, 38, 0.13);
  --shadow-pop: 0 18px 44px rgba(7, 18, 38, 0.18);
  --border-soft: rgba(11, 30, 62, 0.12);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-primary);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(24px, 4vw, 40px); }
h3 { font-size: clamp(18px, 2.5vw, 25px); }

p { line-height: 1.75; }

a {
  color: var(--color-electric);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover { color: var(--color-orange); }

ul, ol { list-style: none; }

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
}

button { border: 0; background: none; cursor: pointer; }

[hidden] { display: none !important; }

::selection {
  background: var(--color-orange);
  color: var(--color-primary);
}

/* ---------- 2. Layout ---------- */
.site-main { min-height: 60vh; }

#main-content { scroll-margin-top: 140px; }

.site-container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section--loose { padding-block: clamp(64px, 9vw, 120px); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 12px;
}

.section-kicker::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--color-orange);
  transform: skewX(-14deg);
}

.section-title { margin-bottom: 12px; }

.page-title {
  font-size: clamp(32px, 5.5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ---------- 3. Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.bento {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento__cell { grid-column: span 3; }
  .bento__cell--wide { grid-column: span 6; }
  .bento__cell--tall { grid-row: span 2; }
}

@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento__cell { grid-column: span 3; }
  .bento__cell--span-4 { grid-column: span 4; }
  .bento__cell--wide { grid-column: span 6; }
  .bento__cell--large { grid-column: span 8; }
  .bento__cell--full { grid-column: 1 / -1; }
}

/* ---------- 4. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-head);
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-primary);
  box-shadow: 0 4px 0 rgba(7, 18, 38, 0.22);
}

.btn--primary:hover {
  background: var(--color-electric);
  color: #fff;
  box-shadow: 0 4px 0 rgba(7, 18, 38, 0.28);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: var(--color-cream);
}

.btn--compact {
  padding: 9px 16px;
  font-size: 12px;
  border-radius: 6px;
}

/* ---------- 5. Cards & Tags ---------- */
.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--color-cream);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--color-electric);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.card--glass {
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.6);
}

.card--dark {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: rgba(245, 240, 225, 0.85);
}

.card--dark h1,
.card--dark h2,
.card--dark h3,
.card--dark h4 { color: var(--color-cream); }

.card--flat {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(46, 107, 230, 0.12);
  color: var(--color-electric);
}

.tag--live {
  background: rgba(57, 255, 20, 0.16);
  color: #087600;
}

.tag--live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-neon);
}

.tag--orange {
  background: rgba(255, 107, 53, 0.16);
  color: #b33a0c;
}

.tag--blue {
  background: rgba(11, 30, 62, 0.1);
  color: var(--color-primary);
}

/* ---------- 6. Stats ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.stat__value--neon { color: #087600; }

.stat__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(27, 22, 16, 0.58);
}

/* ---------- 7. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  padding-block: 18px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(27, 22, 16, 0.55);
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  color: var(--color-orange);
  font-weight: 700;
}

.breadcrumb__link {
  color: var(--color-electric);
  font-weight: 600;
}

.breadcrumb__link:hover { color: var(--color-orange); }

.breadcrumb__current {
  color: var(--color-ink);
  font-weight: 700;
}

/* ---------- 8. Divider & CTA ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block: 24px;
}

.divider::before {
  content: '';
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--color-orange), transparent);
}

.divider::after {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--color-orange);
  transform: skewX(-14deg);
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: rgba(245, 240, 225, 0.85);
  padding: clamp(28px, 5vw, 48px);
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  height: 170px;
  background: var(--color-orange);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.92;
}

.cta-band h1,
.cta-band h2,
.cta-band h3 { color: var(--color-cream); }

.cta-band .btn { margin-top: 16px; }

/* ---------- 9. Image Frames ---------- */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-primary);
  border: 1px solid var(--border-soft);
}

.image-frame::before {
  content: '';
  display: block;
  padding-bottom: 56.25%;
}

.image-frame--cover::before { padding-bottom: 75%; }
.image-frame--tall::before { padding-bottom: 125%; }
.image-frame--square::before { padding-bottom: 100%; }

.image-frame > img,
.image-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 225, 0.8);
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.28) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 107, 53, 0.28) 25%, transparent 25%),
    linear-gradient(45deg, rgba(245, 240, 225, 0.12) 25%, transparent 25%),
    linear-gradient(315deg, rgba(245, 240, 225, 0.12) 25%, transparent 25%),
    var(--color-primary);
  background-size: 22px 22px;
}

/* ---------- 10. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  border-bottom: 2px solid var(--border-soft);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-scrolled] {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(11, 30, 62, 0.14);
  box-shadow: 0 8px 28px rgba(7, 18, 38, 0.08);
}

.site-header__inner {
  position: relative;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding-block: 16px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 210;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-cream);
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--color-cream);
}

.scroll-progress {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-neon), var(--color-orange));
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-primary);
}

.brand-mark:hover { color: var(--color-primary); }

.brand-mark:hover .brand-mark__emblem { background: var(--color-electric); }
.brand-mark:hover .brand-mark__tagline { color: var(--color-orange); }

.brand-mark__logotype {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark__name {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.brand-mark__emblem {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--color-orange);
  color: var(--color-primary);
  font-family: var(--font-head);
  font-size: 14px;
  line-height: 1;
  transform: skewX(-10deg);
  box-shadow: 2px 2px 0 rgba(7, 18, 38, 0.22);
}

.brand-mark__emblem > * { transform: skewX(10deg); }

.brand-mark__digit { font-variant-numeric: tabular-nums; }

.brand-mark__colon { color: var(--color-cream); }

.brand-mark__tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(27, 22, 16, 0.55);
}

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-btn:hover {
  background: var(--color-primary);
  color: var(--color-cream);
}

.header-btn__icon {
  position: relative;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.header-btn__icon::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.header-btn__text { line-height: 1; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  color: var(--color-primary);
}

.nav-toggle:hover { background: rgba(11, 30, 62, 0.06); }

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  margin-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding-top: 6px;
}

.nav-list__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list__link:hover {
  background: rgba(11, 30, 62, 0.07);
  color: var(--color-orange);
}

.nav-list__link[aria-current="page"] {
  color: var(--color-orange);
  background: rgba(255, 107, 53, 0.1);
}

.nav-list__link[aria-current="page"]::after {
  content: '';
  display: block;
  height: 3px;
  margin: 6px 0 0;
  background: var(--color-orange);
  transform: skewX(-20deg);
}

.header-search {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 95;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  border-bottom: 4px solid var(--color-neon);
  box-shadow: var(--shadow-pop);
}

.header-search__box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-search__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.header-search__field { position: relative; }

.header-search__input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 2px solid rgba(11, 30, 62, 0.18);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  color: var(--color-ink);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search__input::placeholder { color: rgba(27, 22, 16, 0.35); }

.header-search__input:focus {
  border-color: var(--color-electric);
  box-shadow: 0 0 0 3px rgba(46, 107, 230, 0.18);
}

.header-search__mark {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-electric);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.header-search__mark::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: var(--color-electric);
  transform: rotate(45deg);
  transform-origin: left bottom;
}

/* ---------- 11. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--color-primary);
  color: rgba(245, 240, 225, 0.78);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-orange) 22%, var(--color-neon) 22%, var(--color-neon) 34%, transparent 34%, transparent 100%);
}

.site-footer__inner {
  display: grid;
  gap: 36px;
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  padding-block: clamp(40px, 5vw, 64px) 32px;
}

@media (min-width: 640px) {
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1.15fr 1.8fr 1.5fr; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-mark--footer .brand-mark__name {
  color: var(--color-cream);
  font-size: clamp(24px, 3vw, 30px);
}

.brand-mark--footer .brand-mark__emblem {
  background: var(--color-orange);
  color: var(--color-primary);
}

.brand-mark--footer:hover .brand-mark__emblem { background: var(--color-electric); }

.brand-mark__emblem--footer {
  font-size: 16px;
  padding: 6px 10px;
}

.footer-trust {
  border-left: 3px solid var(--color-neon);
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 240, 225, 0.7);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .footer-links { grid-column: 1 / -1; }
}

.footer-links__group,
.footer-contact { min-width: 0; }

.footer-links__title,
.footer-contact__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-neon);
  margin-bottom: 14px;
}

.footer-links__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links__list a {
  color: rgba(245, 240, 225, 0.78);
  font-size: 14px;
}

.footer-links__list a:hover { color: var(--color-orange); }

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-contact__label {
  display: inline-block;
  min-width: 34px;
  font-weight: 700;
  color: var(--color-orange);
}

.footer-contact__note {
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px dashed rgba(57, 255, 20, 0.4);
  border-radius: 6px;
  font-size: 13px;
  color: rgba(245, 240, 225, 0.55);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(245, 240, 225, 0.15);
  font-size: 13px;
  color: rgba(245, 240, 225, 0.55);
  text-align: center;
}

/* ---------- 12. Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-cream);
  box-shadow: 0 8px 22px rgba(7, 18, 38, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.back-to-top[data-visible] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-orange);
  color: var(--color-primary);
}

.back-to-top__arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 5px;
}

/* ---------- 13. Reveal & a11y ---------- */
html[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html[data-js] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--color-electric);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html[data-js] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 14. Responsive fine-tuning ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: -16px;
    right: -16px;
    z-index: 90;
    margin-top: 0;
    padding: 12px 8px 18px;
    border-top: 0;
    border-bottom: 3px solid var(--color-orange);
    border-radius: 0 0 var(--radius) var(--radius);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-pop);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .site-nav[data-open] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 0;
  }

  .nav-list__link {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
  }

  .nav-list__link[aria-current="page"]::after { display: none; }

  .header-search {
    left: -16px;
    right: -16px;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    width: min(100% - 24px, var(--container));
    padding-block: 12px;
  }

  .header-btn__text { display: none; }
  .header-btn { padding: 9px 11px; }
  .brand-mark__tagline { display: none; }
  .brand-mark__name { font-size: 22px; }

  .site-nav,
  .header-search {
    left: -12px;
    right: -12px;
  }

  .site-footer__inner { width: min(100% - 28px, var(--container)); }
}
