/* ============================================================
   亚体育赛事 · /assets/site.css
   赛场导播台：深海蓝侧轨 + 奶油纸白连续画布
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; }
a { color: inherit; }
table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #1B1613;
  --ink-soft: #3A322C;
  --paper: #F5EFE2;
  --paper-lift: #FBF8F1;
  --navy: #0B2239;
  --navy-2: #143A5E;
  --orange: #F0562A;
  --amber: #FFB020;
  --green: #46D08A;
  --brick: #B3341C;
  --slate: #8AA1B4;
  --gold: #C9A66B;

  --rail-w: 232px;
  --edge: 32px;
  --gutter: 24px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-pill: 999px;

  --hair-light: 1px solid rgba(27, 22, 19, 0.16);
  --hair-dark: 1px solid rgba(245, 239, 226, 0.16);

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: inherit;
}
h1 { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(24px, 3vw, 40px); line-height: 1.1; }
h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; }
h4 { font-size: 19px; line-height: 1.25; }

p { max-width: 68ch; }

a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

::selection { background: var(--amber); color: #14100D; }

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

/* ---------- 4. Utilities ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--edge);
}
.container--wide { max-width: 1440px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.section { padding-block: 48px; }
.section--tight { padding-block: 24px; }
.section--tall { padding-block: 96px; }
.section--navy { background: var(--navy); color: var(--paper); }
.section--tint { background: var(--paper-lift); }

.rule {
  border: 0;
  height: 1px;
  background: rgba(27, 22, 19, 0.16);
  margin: 0;
}
.section--navy .rule { background: rgba(245, 239, 226, 0.2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brick);
}
.section--navy .eyebrow { color: var(--amber); }

.lede {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}
.section--navy .lede { color: rgba(245, 239, 226, 0.82); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. Buttons / pills / tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn--cta {
  flex: 1 1 auto;
  background: var(--orange);
  color: #14100D;
}
.btn--cta:hover,
.btn--cta:focus-visible {
  background: var(--amber);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: rgba(245, 239, 226, 0.3);
  color: var(--paper);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--orange);
  color: var(--amber);
}

.icon-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(245, 239, 226, 0.26);
  color: var(--paper);
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--navy-2);
  border-color: var(--orange);
  color: var(--amber);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(245, 239, 226, 0.22);
  color: var(--paper);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.pill:hover,
.pill:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: #14100D;
  font-weight: 700;
}
.pill--ink {
  border-color: rgba(27, 22, 19, 0.22);
  color: var(--ink);
}
.pill--ink:hover,
.pill--ink:focus-visible {
  background: var(--brick);
  border-color: var(--brick);
  color: var(--paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(70, 208, 138, 0.18);
  color: #12352A;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1;
  color: inherit;
}
.stat__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.section--navy .stat__num { color: var(--amber); }
.section--navy .stat__label { color: rgba(245, 239, 226, 0.6); }

/* ---------- 6. Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.breadcrumbs a { color: var(--brick); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs__sep { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- 7. Image containers (page stage) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--navy-2);
  isolation: isolate;
}
.media > img,
.media > video { width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(245, 239, 226, 0.16);
  pointer-events: none;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--band { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--placeholder {
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.6);
  background-image:
    linear-gradient(135deg, rgba(245, 239, 226, 0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(245, 239, 226, 0.06) 25%, transparent 25%);
  background-size: 22px 22px;
}
.media__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(11, 34, 57, 0.62);
  color: rgba(245, 239, 226, 0.9);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 8. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: #14100D;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ---------- 9. Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 3px;
  z-index: 55;
  pointer-events: none;
  background: transparent;
}
.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transition: transform 0.12s linear;
}

/* ---------- 10. Header rail ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
  background: var(--navy);
  color: var(--paper);
  border-right: 1px solid rgba(245, 239, 226, 0.08);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.rail :focus-visible { outline-color: var(--amber); outline-offset: 2px; }
.rail__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
}

/* brand */
.rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rail__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}
.brand__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--orange);
  color: #14100D;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.rail__brand:hover .brand__mark { background: var(--amber); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand__sub {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--slate);
  text-transform: uppercase;
}

/* mobile toggle + close */
.rail__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(245, 239, 226, 0.28);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.rail__toggle:hover { border-color: var(--orange); color: var(--amber); }
.rail__toggle-bars {
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.rail__toggle-text { line-height: 1; }

.rail__close {
  display: none;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(245, 239, 226, 0.3);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.rail__close:hover { border-color: var(--orange); color: var(--amber); }

/* score ticker */
.rail__ticker {
  border-top: var(--hair-dark);
  border-bottom: var(--hair-dark);
  padding: 10px 0;
}
.ticker__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  max-width: none;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(70, 208, 138, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.ticker__label { line-height: 1; }
.ticker__list { display: flex; flex-direction: column; gap: 6px; }
.ticker__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.ticker__team {
  color: rgba(245, 239, 226, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker__team:last-child { text-align: right; }
.ticker__score {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--amber);
}

/* drawer shell */
.rail__drawer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 auto;
  min-height: 0;
}
.drawer__head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: var(--hair-dark);
}
.drawer__title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slate);
}

/* quick pills */
.rail__quick { display: flex; flex-direction: column; gap: 8px; }
.quick__label {
  max-width: none;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.quick__list { display: flex; flex-wrap: wrap; gap: 6px; }

/* nav */
.rail__nav { display: flex; flex-direction: column; gap: 8px; }
.rail__navlabel {
  max-width: none;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border-radius: 10px;
  color: rgba(245, 239, 226, 0.82);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: var(--orange);
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.18s var(--ease);
}
.nav-link:hover { background: var(--navy-2); color: var(--paper); }
.nav-link:hover::before,
.nav-link[aria-current="page"]::before { transform: translateY(-50%) scaleY(1); }
.nav-link[aria-current="page"] {
  background: var(--navy-2);
  color: var(--paper);
  font-weight: 800;
}
.nav-link[aria-current="page"] .nav-link__idx { color: var(--amber); }
.nav-link__idx {
  min-width: 18px;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(138, 161, 180, 0.9);
}
.nav-link__text { flex: 1 1 auto; }

/* actions */
.rail__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: var(--hair-dark);
}
.rail__note {
  max-width: none;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--slate);
}

/* scrim */
.rail__scrim { display: none; }

/* desktop offset for main canvas + footer */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding: 56px var(--edge) 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 32px;
  max-width: 1240px;
  margin-inline: auto;
}
.footer__col { min-width: 0; }
.footer__brand {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
}
.footer__brand:hover { color: var(--amber); }
.footer__tagline {
  margin-top: 10px;
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 239, 226, 0.72);
}
.footer__badge {
  display: inline-flex;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 176, 32, 0.45);
  background: rgba(255, 176, 32, 0.14);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.4;
}
.footer__list { display: flex; flex-direction: column; gap: 9px; }
.footer__link {
  color: rgba(245, 239, 226, 0.85);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--amber); text-decoration: underline; }
.footer__link--legal { font-size: 12px; letter-spacing: 0.06em; }

.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__contact li {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(245, 239, 226, 0.82);
  overflow-wrap: anywhere;
}
.footer__note {
  margin-top: 12px;
  max-width: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: var(--hair-dark);
  font-size: 12px;
  color: var(--slate);
}
.footer__copy { max-width: none; margin: 0; }
.footer__icp {
  font-family: var(--font-data);
  letter-spacing: 0.02em;
  color: rgba(245, 239, 226, 0.62);
}
.footer__base .footer__link--legal:first-of-type { margin-left: auto; }

/* ---------- 12. Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(245, 239, 226, 0.25);
  background: var(--navy);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 34, 57, 0.28);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.to-top:hover,
.to-top:focus-visible {
  background: var(--orange);
  border-color: transparent;
  color: #14100D;
}
.to-top[hidden] { display: none; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1023px) {
  html { scroll-padding-top: 112px; }
  html.nav-open { overflow: hidden; }

  .rail {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: auto;
    padding: 0;
    border-right: 0;
    overflow: visible;
    z-index: 60;
  }
  .rail__inner { gap: 10px; padding: 10px 16px 10px; }

  .rail__toggle { display: inline-flex; }
  .rail__close { display: inline-flex; }
  .drawer__head { display: flex; }

  /* ticker becomes a horizontal snapshot strip */
  .rail__ticker {
    padding: 0;
    border-top: 0;
    border-bottom: 0;
  }
  .ticker__head { display: none; }
  .ticker__list {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .ticker__list::-webkit-scrollbar { display: none; }
  .ticker__row {
    flex: 0 0 auto;
    grid-template-columns: auto auto auto;
    gap: 7px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--navy-2);
    font-size: 11px;
    white-space: nowrap;
  }
  .ticker__score { font-size: 12px; }
  .ticker__team { max-width: 5em; }

  /* drawer */
  .rail__drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    flex: none;
    width: min(340px, 88vw);
    padding: 18px 18px 24px;
    gap: 18px;
    background: var(--navy);
    border-right: 1px solid rgba(245, 239, 226, 0.12);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-104%);
    transition: transform 0.24s var(--ease);
    z-index: 70;
    box-shadow: 24px 0 48px rgba(11, 34, 57, 0.32);
  }
  .rail[data-open="true"] .rail__drawer { transform: translateX(0); }

  .rail__scrim {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 65;
    background: rgba(11, 34, 57, 0.58);
  }
  .rail[data-open="true"] .rail__scrim { display: block; }

  .progress { left: 0; }

  .grid { gap: 20px; }
  .span-7, .span-8, .span-9 { grid-column: span 12; }
  .span-3, .span-4, .span-5, .span-6 { grid-column: span 6; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section--tall { padding-block: 64px; }
}

@media (max-width: 767px) {
  :root { --edge: 20px; }
  body { font-size: 16.5px; }

  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9, .span-12 { grid-column: span 6; }

  .section { padding-block: 36px; }
  .section--tall { padding-block: 56px; }

  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { padding-top: 40px; }
  .footer__base { gap: 10px 16px; }
  .footer__base .footer__link--legal:first-of-type { margin-left: 0; }

  .to-top { right: 14px; bottom: 14px; padding: 9px 14px; }
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .progress__bar { transition: none; }
  .dot { animation: none; }
  .rail__drawer { transition: none; }
}
