/* ============================================================
   必博体育中文专区 · 共享站点样式 /assets/site.css
   夜间赛场指挥台 · 深墨蓝长卷 + 荧光青 + 电光橙
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5,
p, figure, blockquote, dl, dd, ul, ol, pre { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #071521;
  --ink-2: #0C2233;
  --ink-3: #12344A;
  --cyan: #2DE2E6;
  --cyan-soft: #A8F7F4;
  --orange: #FF6A2A;
  --orange-soft: #FFD2BF;
  --paper: #F6F1E8;
  --mist: #8FA6B2;
  --green: #3DDC97;

  --line-cyan: rgba(45, 226, 230, 0.20);
  --line-paper: rgba(246, 241, 232, 0.12);
  --line-mist: rgba(143, 166, 178, 0.26);

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shell: 1180px;
  --gutter: clamp(18px, 4vw, 48px);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Roboto Mono", "Courier New", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(760px 380px at 84% -6%, rgba(45, 226, 230, 0.10), transparent 70%),
    radial-gradient(680px 340px at 6% 2%, rgba(255, 106, 42, 0.08), transparent 72%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
}
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(21px, 2.4vw, 28px); }
h4 { font-size: 19px; letter-spacing: -0.012em; line-height: 1.3; }

p { text-wrap: pretty; }

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

/* ---------- 4. Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--band {
  background: var(--ink-2);
  border-top: 1px solid var(--line-cyan);
  border-bottom: 1px solid var(--line-cyan);
}

.section--deep {
  background: var(--ink-3);
  border-top: 1px solid var(--line-cyan);
  border-bottom: 1px solid var(--line-cyan);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 62ch;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
}
.grid--split { grid-template-columns: 7fr 5fr; }
.grid--split-rev { grid-template-columns: 5fr 7fr; }
.grid--wide { grid-template-columns: 8fr 4fr; }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 5. Text utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}
.eyebrow--orange { color: var(--orange-soft); }
.eyebrow--orange::before { background: var(--orange); }

.lede {
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.78;
  color: rgba(246, 241, 232, 0.80);
  max-width: 44ch;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(26px, 4vw, 44px);
  background: linear-gradient(90deg, rgba(45, 226, 230, 0.55), rgba(45, 226, 230, 0));
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.btn--primary {
  background: var(--orange);
  color: #200C02;
  box-shadow: 0 10px 26px rgba(255, 106, 42, 0.24);
}
.btn--primary:hover { background: #FF8752; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(45, 226, 230, 0.5); color: var(--cyan-soft); }
.btn--ghost:hover { background: rgba(45, 226, 230, 0.12); border-color: var(--cyan); color: var(--paper); }
.btn--quiet { border-color: rgba(246, 241, 232, 0.24); color: var(--paper); }
.btn--quiet:hover { border-color: rgba(246, 241, 232, 0.6); background: rgba(246, 241, 232, 0.06); }

/* ---------- 7. Tags & badges ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(45, 226, 230, 0.32);
  background: rgba(45, 226, 230, 0.12);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
}
.tag--orange {
  border-color: rgba(255, 106, 42, 0.4);
  background: rgba(255, 106, 42, 0.14);
  color: var(--orange-soft);
}
.tag--green {
  border-color: rgba(61, 220, 151, 0.38);
  background: rgba(61, 220, 151, 0.13);
  color: #9BF0C8;
}
.tag--plain {
  border-color: rgba(246, 241, 232, 0.18);
  background: rgba(246, 241, 232, 0.06);
  color: var(--mist);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(246, 241, 232, 0.18);
  background: rgba(246, 241, 232, 0.07);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge--live {
  border-color: rgba(61, 220, 151, 0.42);
  background: rgba(61, 220, 151, 0.12);
  color: #9BF0C8;
}
.badge--alert {
  border-color: rgba(255, 106, 42, 0.42);
  background: rgba(255, 106, 42, 0.12);
  color: var(--orange-soft);
}
.badge--info {
  border-color: rgba(45, 226, 230, 0.4);
  background: rgba(45, 226, 230, 0.12);
  color: var(--cyan-soft);
}

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-mist);
  background: var(--ink-2);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease),
              background-color 0.24s var(--ease);
}
.card:hover {
  border-color: rgba(45, 226, 230, 0.42);
  transform: translateY(-3px);
}
.card--panel { background: var(--ink-3); }
.card--cut { border-radius: var(--radius-lg) 6px var(--radius-lg) var(--radius-lg); }

/* ---------- 9. Media containers ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 226, 230, 0.16);
  background:
    linear-gradient(140deg, rgba(18, 52, 74, 0.95), rgba(7, 21, 33, 0.98) 72%);
  aspect-ratio: 16 / 9;
}
.media > img,
.media > picture,
.media > picture > img,
.media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--portrait { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }

.media__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.media__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 21, 33, 0) 42%, rgba(7, 21, 33, 0.85) 100%);
}
.media__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 232, 0.82);
}

/* ---------- 10. Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs__sep { color: rgba(143, 166, 178, 0.5); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 11. Prose ---------- */
.prose { max-width: 42em; }
.prose > * + * { margin-top: 1.1em; }
.prose p { color: rgba(246, 241, 232, 0.86); }
.prose h2, .prose h3 { margin-top: 1.9em; }
.prose ul { display: grid; gap: 0.5em; }
.prose ul > li {
  position: relative;
  padding-left: 22px;
  color: rgba(246, 241, 232, 0.86);
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}
.prose a {
  color: var(--cyan-soft);
  text-underline-offset: 3px;
}
.prose strong { color: var(--paper); font-weight: 600; }

/* ---------- 12. TOC & filter ---------- */
.toc {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-mist);
  background: rgba(12, 34, 51, 0.82);
}
.toc__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}
.toc__list { display: grid; gap: 2px; }
.toc__link {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid rgba(143, 166, 178, 0.24);
  font-size: 14px;
  line-height: 1.5;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.toc__link:hover { color: var(--paper); border-left-color: rgba(45, 226, 230, 0.5); }
.toc__link[aria-current] { color: var(--cyan); border-left-color: var(--cyan); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(143, 166, 178, 0.3);
  background: transparent;
  color: var(--mist);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}
.filter-btn:hover { color: var(--paper); border-color: rgba(45, 226, 230, 0.55); }
.filter-btn[data-active] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04212A;
  font-weight: 600;
}
.filter-status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
  margin-left: auto;
}
[data-filtered-out] { display: none !important; }

/* ---------- 13. Motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 14. Skip link & scroll progress ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 120;
  transform: translate(-50%, -140%);
  padding: 10px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--cyan);
  color: #04212A;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  z-index: 110;
  pointer-events: none;
}

/* ---------- 15. Header ---------- */
.site-header {
  position: relative;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid rgba(45, 226, 230, 0.16);
}

.header-rail {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-paper);
}
.header-rail__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.rail-label { color: rgba(246, 241, 232, 0.72); letter-spacing: 0.24em; }
.rail-meta { display: inline-flex; align-items: center; gap: 2px; }
.rail-meta b {
  color: var(--cyan);
  font-weight: 700;
  padding-inline: 2px;
}
.rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16);
  margin-right: 8px;
  flex: none;
}

.header-masthead {
  padding: clamp(18px, 3vw, 32px) var(--gutter) clamp(10px, 1.6vw, 18px);
}
.masthead-inner {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.masthead-kicker {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.masthead-brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  display: block;
  width: 9px;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--orange));
  transform: skewX(-12deg);
  flex: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.masthead-brand:hover .brand-name { color: var(--cyan-soft); }
.masthead-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}
.masthead-dek {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
  text-align: right;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(45, 226, 230, 0.45);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(45, 226, 230, 0.1); border-color: var(--cyan); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  background: var(--ink-2);
  border-top: 1px solid var(--line-paper);
  border-bottom: 1px solid rgba(45, 226, 230, 0.18);
}
.nav-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.nav-link {
  display: inline-block;
  padding: 13px 16px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link:hover {
  color: var(--cyan-soft);
  background: rgba(45, 226, 230, 0.1);
}
.nav-link[aria-current="page"] {
  background: var(--cyan);
  color: #04212A;
  font-weight: 600;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 8px 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 106, 42, 0.45);
  background: rgba(255, 106, 42, 0.12);
  color: var(--orange-soft);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.nav-cta:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #200C02;
}

/* ---------- 16. Footer ---------- */
.site-footer {
  position: relative;
  z-index: 20;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--ink-2);
  border-top: 1px solid rgba(45, 226, 230, 0.24);
}

.footer-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #14384F 0%, #0C2233 62%, #0C2233 100%);
  border-bottom: 1px solid rgba(45, 226, 230, 0.18);
}
.footer-band::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -6%;
  width: 46%;
  height: 180%;
  transform: skewX(-12deg);
  background: linear-gradient(180deg, rgba(45, 226, 230, 0.18), rgba(45, 226, 230, 0));
  pointer-events: none;
  z-index: 0;
}
.footer-band__inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(26px, 4vw, 42px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.footer-band__lead { display: grid; gap: 4px; }
.footer-band__label {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--paper);
}
.footer-band__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-band__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #200C02;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(255, 106, 42, 0.22);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-band__cta::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 15px;
}
.footer-band__cta:hover { background: #FF8752; transform: translateY(-2px); }

.footer-body { background: var(--ink-2); }
.footer-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 58px) var(--gutter);
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.4fr;
  gap: clamp(24px, 3.6vw, 52px);
}
.footer-brand { display: grid; align-content: start; gap: 12px; }
.footer-brand__link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--paper);
  text-decoration: none;
}
.footer-brand__link span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-brand__link:hover span { color: var(--orange-soft); }
.footer-brand__dek {
  max-width: 26ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-nav { display: grid; align-content: start; }
.footer-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.footer-nav__link {
  display: inline-block;
  padding: 3px 0;
  font-size: 14.5px;
  color: rgba(246, 241, 232, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-nav__link:hover {
  color: var(--cyan-soft);
  border-bottom-color: rgba(45, 226, 230, 0.55);
}

.footer-meta { display: grid; gap: 18px; align-content: start; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact__row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper);
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-mist);
}
.footer-legal__link {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-legal__link:hover { color: var(--cyan); }

.footer-base {
  background: var(--ink);
  border-top: 1px solid rgba(45, 226, 230, 0.14);
}
.footer-base__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-base__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1024px) {
  .masthead-kicker { display: none; }
  .masthead-inner { grid-template-columns: auto 1fr; }
  .masthead-brand { justify-self: start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }

  .grid--split,
  .grid--split-rev,
  .grid--wide,
  .grid--thirds { grid-template-columns: 1fr; }

  .masthead-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand tools";
    gap: 12px;
  }
  .masthead-brand { grid-area: brand; justify-self: start; }
  .masthead-tools { grid-area: tools; justify-self: end; }
  .masthead-dek { display: none; }

  .nav-toggle { display: inline-flex; }

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

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 22px;
    gap: 4px;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(246, 241, 232, 0.03);
  }
  .nav-cta {
    margin: 12px 0 0;
    justify-content: center;
    padding: 12px 18px;
  }

  .toc { position: static; }
  .filter-status { margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(34px, 9vw, 44px); }
  .header-rail__inner { font-size: 10px; letter-spacing: 0.12em; }
  .brand-name { font-size: 26px; }
  .brand-mark { height: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-band__cta { width: 100%; justify-content: center; }
  .footer-contact__row { grid-template-columns: 1fr; gap: 2px; }
  .footer-base__inner { justify-content: flex-start; }
}

/* ---------- 18. 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;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .card:hover,
  .btn:hover,
  .footer-band__cta:hover { transform: none; }
}
