/* ============================================================
   云开平台赛事中文站 · 共享样式 /assets/site.css
   深夜复盘工作台 · 左右分屏 · 冰蓝冷底 + 暖橙点睛
   ============================================================ */

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

/* ---------- tokens ---------- */
:root {
  --ink: #061523;
  --indigo: #1D1840;
  --teal: #0B3C3A;
  --ice: #8ADDFF;
  --ice-deep: #0C6488;
  --aurora: #3FDE9C;
  --amber: #FF9A45;
  --wine: #7C2040;
  --pale: #EEF5FA;
  --mist: #7A8FA0;
  --line: #1B2E41;
  --line-ice: rgba(138, 221, 255, 0.28);
  --body-ink: #D6E4EF;

  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-num: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-soft: 0 8px 24px rgba(2, 10, 20, 0.45);
  --shadow-line: 0 1px 0 rgba(255, 255, 255, 0.02);
  --radius: 2px;

  --gutter: clamp(18px, 4vw, 56px);
  --gap-section: clamp(64px, 9vw, 132px);
  --gap-block: clamp(24px, 3.4vw, 56px);
  --header-h: 74px;
}

/* ---------- base ---------- */
body {
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(115deg, rgba(138, 221, 255, 0.028) 0 1px, transparent 1px 9px),
    radial-gradient(120% 60% at 82% -10%, rgba(29, 24, 64, 0.55) 0%, transparent 62%);
  color: var(--body-ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0.005em;
  min-height: 100vh;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: var(--pale);
}
h1 { font-size: clamp(38px, 5.4vw, 72px); }
h2 { font-size: clamp(28px, 3.2vw, 36px); }
h3 { font-size: clamp(19px, 1.6vw, 20px); line-height: 1.35; }
::selection { background: rgba(63, 222, 156, 0.32); color: var(--pale); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 1px; }
hr { border: 0; border-top: 1px solid var(--line); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 18px;
  background: var(--amber);
  color: #200F02;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.18s ease-out;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- layout ---------- */
.wrap {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: var(--gap-block);
  align-items: start;
}
.split--aside-wide { grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); }
.split--aside-tight { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
.split__aside { min-width: 0; }
.split__main { min-width: 0; }

.stack > * + * { margin-top: clamp(18px, 2vw, 28px); }
.section { margin-block: var(--gap-section); }
.section--tight { margin-block: clamp(40px, 5vw, 72px); }

/* ---------- typography helpers ---------- */
.label {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: -0.01em;
}
.timestamp {
  display: inline-block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--mist);
  white-space: nowrap;
}
.prose { max-width: 72ch; }
.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--ice); text-decoration: underline; text-underline-offset: 4px; }

.page-header {
  padding-block: clamp(36px, 6vw, 76px) clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.page-header__title { margin-top: 12px; }
.page-header__lede { max-width: 62ch; margin-top: 16px; color: var(--body-ink); }
.page-header__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(22px, 3vw, 38px);
}
.section-head__kicker { display: block; margin-bottom: 8px; }
.section-head__title { font-size: clamp(22px, 2.4vw, 30px); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; color: var(--line-ice); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ice); }

.side-note {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background-color 0.18s ease-out, border-color 0.18s ease-out, color 0.18s ease-out;
}
.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #221002;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 154, 69, 0.24); }
.btn--ghost {
  background: rgba(29, 24, 64, 0.35);
  border-color: var(--line);
  color: var(--ice);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--line-ice); background: rgba(12, 100, 136, 0.22); }
.btn--quiet {
  padding: 6px 0;
  color: var(--ice);
  border-color: transparent;
  border-bottom: 1px solid var(--line-ice);
  border-radius: 0;
}
.btn--quiet:hover { color: var(--amber); border-bottom-color: var(--amber); }
.btn--block { width: 100%; }

/* ---------- tags / status ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mist);
  background: rgba(6, 21, 35, 0.5);
}
.tag--aurora { color: var(--aurora); border-color: rgba(63, 222, 156, 0.4); }
.tag--wine { color: #F2C7D8; border-color: rgba(124, 32, 64, 0.85); background: rgba(124, 32, 64, 0.32); }
.tag--ice { color: var(--ice); border-color: var(--line-ice); }
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 0 3px rgba(63, 222, 156, 0.16);
}

/* ---------- cards ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(29, 24, 64, 0.5) 0%, rgba(6, 21, 35, 0.55) 100%);
  transition: transform 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 30px;
  height: 2px;
  background: var(--aurora);
}
.card--warm::before { background: var(--amber); }
.card--ice::before { background: var(--ice); }
.card:hover { transform: translateY(-2px); border-color: var(--line-ice); box-shadow: var(--shadow-soft); }
.card__title { margin-bottom: 8px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 14px; }

/* ---------- row list (timestamp rail) ---------- */
.row-list { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(15px, 1.7vw, 20px) 2px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease-out, transform 0.2s ease-out;
}
.row:hover { border-bottom-color: var(--line-ice); transform: translateY(-2px); }
.row__title { font-size: 17px; font-weight: 600; color: var(--pale); letter-spacing: -0.01em; }
.row__title a { text-decoration: none; }
.row__title a:hover { color: var(--ice); }
.row__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 6px; }
.row__excerpt { margin-top: 8px; font-size: 14.5px; color: var(--body-ink); max-width: 68ch; }
.row__time { justify-self: end; text-align: right; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: clamp(20px, 2.6vw, 32px); }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-ice), var(--line) 55%, transparent 100%);
}
.timeline__item { position: relative; padding-block: clamp(14px, 1.8vw, 22px); }
.timeline__item + .timeline__item { border-top: 1px solid var(--line); }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(20px, 2.6vw, 32px) + 2px);
  top: calc(clamp(14px, 1.8vw, 22px) + 9px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--ice);
}
.timeline__time { margin-bottom: 6px; }
.timeline__body { max-width: 70ch; }

/* ---------- data ---------- */
.stat { border-left: 2px solid var(--line-ice); padding-left: 14px; }
.stat__value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--ice);
  line-height: 1.05;
}
.stat__value--aurora { color: var(--aurora); }
.stat__value--amber { color: var(--amber); }
.stat__label { display: block; margin-top: 6px; }

.bar {
  position: relative;
  height: 6px;
  background: rgba(27, 46, 65, 0.85);
  border-radius: 1px;
  overflow: hidden;
}
.bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ice-deep), var(--ice));
  transition: width 0.45s ease-out;
}
.bar--aurora .bar__fill { background: linear-gradient(90deg, #16764f, var(--aurora)); }
.bar--amber .bar__fill { background: linear-gradient(90deg, #a3541a, var(--amber)); }
.bar.is-visible .bar__fill { width: var(--value, 0%); }

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(115deg, rgba(138, 221, 255, 0.07) 0 1px, transparent 1px 8px),
    linear-gradient(140deg, #0A1E31 0%, var(--indigo) 58%, var(--teal) 100%);
  isolation: isolate;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(6, 21, 35, 0.62) 0%, rgba(6, 21, 35, 0) 62%);
  pointer-events: none;
}
.media-frame > img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 21, 35, 0.78);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--pale);
}

/* ---------- chapter rail (JS 生成) ---------- */
.chapter-rail { position: relative; }
.chapter-rail__list { border-left: 1px solid var(--line); }
.chapter-rail__item + .chapter-rail__item { margin-top: 2px; }
.chapter-rail__link {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}
.chapter-rail__link:hover { color: var(--ice); }
.chapter-rail__link[aria-current="true"] { color: var(--ice); border-left-color: var(--ice); }

/* ---------- reveal / motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-ice);
  border-radius: var(--radius);
  background: rgba(6, 21, 35, 0.92);
  color: var(--ice);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out, visibility 0.22s;
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--amber); color: var(--amber); }
.to-top__arrow { font-family: var(--font-num); }

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(6, 21, 35, 0.98) 0%, rgba(6, 21, 35, 0.9) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(138, 221, 255, 0.045) 0 1px, transparent 1px 10px);
  opacity: 0.75;
}
.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
  align-items: center;
  gap: clamp(14px, 3vw, 44px);
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: clamp(12px, 1.5vw, 18px) var(--gutter);
  transition: padding 0.24s ease-out;
}
.site-header[data-condensed] .site-header__inner { padding-block: 9px; }
.site-header[data-condensed] .brand__sub { opacity: 0; max-height: 0; }
.site-header[data-condensed] .brand-cta { opacity: 0; visibility: hidden; }

.brand-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 26px);
  min-width: 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__mark {
  flex: none;
  width: 6px;
  height: 34px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--ice) 0%, var(--aurora) 100%);
  box-shadow: 0 0 18px rgba(138, 221, 255, 0.4);
}
.brand__text { min-width: 0; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: -0.02em;
  color: var(--pale);
  line-height: 1.2;
}
.brand__sub {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  max-height: 24px;
  overflow: hidden;
  transition: opacity 0.24s ease-out, max-height 0.24s ease-out;
}
.brand-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  transition: opacity 0.2s ease-out, visibility 0.2s;
}

/* 导航（桌面：右轨右对齐） */
.site-nav { position: relative; min-width: 0; }
.site-nav__eyebrow { display: none; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(2px, 0.8vw, 12px);
}
.site-nav__link {
  display: inline-block;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s ease-out, background-color 0.18s ease-out, border-color 0.18s ease-out;
}
.site-nav__link:hover {
  color: var(--ice);
  border-color: var(--line);
  background: rgba(29, 24, 64, 0.55);
}
.site-nav__link[aria-current="page"] {
  color: var(--ice);
  border-color: var(--ice-deep);
  background: rgba(12, 100, 136, 0.2);
  box-shadow: inset 0 -2px 0 var(--amber);
}
.site-nav__cta { display: none; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ice);
  letter-spacing: 0.08em;
  background: rgba(29, 24, 64, 0.4);
}
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bar { display: block; height: 1.5px; width: 100%; background: var(--ice); transition: transform 0.2s ease-out, opacity 0.2s ease-out; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5.5px) 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(-5.5px) rotate(-45deg); }
.nav-toggle__label { font-size: 12.5px; font-weight: 500; }

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(27, 46, 65, 0.7);
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--ice) 0%, var(--aurora) 55%, var(--amber) 100%);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: var(--gap-section);
  border-top: 1px solid var(--line);
  background:
    repeating-linear-gradient(115deg, rgba(138, 221, 255, 0.03) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #061523 0%, #0A1B2E 100%);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
  gap: clamp(28px, 4vw, 64px);
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(28px, 3vw, 44px);
}
.footer-brand { border-left: 2px solid var(--ice); padding-left: clamp(14px, 2vw, 22px); }
.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.02em;
  color: var(--pale);
}
.footer-brand__summary { margin-top: 12px; max-width: 42ch; font-size: 14.5px; color: var(--body-ink); }
.footer-contact { margin-top: 22px; display: grid; gap: 12px; }
.footer-contact__item { display: grid; gap: 3px; }
.footer-contact__value { font-size: 14px; color: var(--pale); word-break: break-word; }
.footer-brand__note { margin-top: 20px; max-width: 46ch; font-size: 12.5px; line-height: 1.7; color: var(--mist); }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.footer-column { border-top: 1px solid var(--line); padding-top: 16px; }
.footer-column__title { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; color: var(--pale); }
.footer-links { margin-top: 14px; display: grid; gap: 10px; }
.footer-link {
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s ease-out, transform 0.18s ease-out;
  display: inline-block;
}
.footer-link:hover { color: var(--ice); transform: translateX(2px); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--mist);
}
.footer-base__item { letter-spacing: 0.04em; }
.footer-base__item .num { color: var(--ice); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .split, .split--aside-wide, .split--aside-tight { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); }
  .site-header__inner { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
  .brand-cta .btn { padding: 9px 14px; }
}

@media (max-width: 980px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  html { scroll-padding-top: 84px; }
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .brand-cta { display: none; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 16px var(--gutter) 22px;
    background: linear-gradient(180deg, #0A1B30 0%, var(--indigo) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .site-nav[data-open] { display: block; }
  .site-nav__eyebrow { display: block; margin-bottom: 10px; }
  .site-nav__list { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
  .site-nav__link {
    display: block;
    padding: 14px 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 14.5px;
    color: var(--pale);
  }
  .site-nav__link:hover { background: transparent; border-bottom-color: var(--line-ice); }
  .site-nav__link[aria-current="page"] {
    color: var(--ice);
    background: transparent;
    box-shadow: inset 3px 0 0 var(--amber);
    padding-left: 12px;
  }
  .site-nav__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .page-header__meta { gap: 8px 16px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row__time { justify-self: start; text-align: left; }
  .footer-columns { grid-template-columns: minmax(0, 1fr); }
  .site-footer__base { flex-direction: column; align-items: flex-start; }
  .brand__sub { display: none; }
  .media-frame { aspect-ratio: 4 / 3; }
}

/* ---------- 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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .bar__fill { transition: none; }
  .bar.is-visible .bar__fill { width: var(--value, 0%); }
  .to-top { transform: none; }
}
