/* ==========================================================================
   B体育掌上站 — 共享样式表 /assets/site.css
   ========================================================================== */

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

html, body, h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote,
dl, dt, dd, fieldset, legend { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

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

a { color: inherit; text-decoration: none; }

address { font-style: normal; }

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0E1A2B;
  --ink-deep: #0A1420;
  --panel: #16263D;
  --panel-lift: #1D3149;
  --snow: #A8CBE0;
  --mist: #E7F0F6;
  --clay: #D9764A;
  --clay-soft: #F0B79A;
  --signal: #29D3A2;
  --signal-deep: #12A47C;
  --white: #F5F8FB;
  --slate: #8FA3B8;

  --line-dark: rgba(168, 203, 224, 0.22);
  --line-light: rgba(14, 26, 43, 0.12);
  --veil: rgba(245, 248, 251, 0.06);

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

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 11px;
  --r-pill: 999px;

  --shell: 1200px;
  --gutter: 20px;
  --header-h: 64px;

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

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ---------- 3. Base ---------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html[data-locked="true"] { overflow: hidden; }

body {
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 82% -8%, rgba(41, 211, 162, 0.10), transparent 62%),
    radial-gradient(900px 520px at 8% 6%, rgba(217, 118, 74, 0.09), transparent 60%);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

p { overflow-wrap: break-word; }

strong { font-weight: 800; color: var(--white); }

::selection { background: var(--signal); color: var(--ink); }

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

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

main { display: block; }

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

.panel {
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line-dark);
  padding: 24px var(--gutter);
}

@media (min-width: 720px) {
  .panel { padding: 34px 38px; border-radius: var(--r-xl); }
}

.panel--light {
  background: var(--mist);
  color: var(--ink);
  border-color: var(--line-light);
}

.panel--light h1,
.panel--light h2,
.panel--light h3 { color: var(--ink); }

.prose {
  max-width: 40em;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--snow);
}

.panel--light .prose { color: #2A3B51; }

.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin: 1em 0 1em 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose a {
  color: var(--signal-deep);
  border-bottom: 1px solid currentColor;
  transition: border-bottom-width 120ms var(--ease), transform 120ms var(--ease);
}
.prose a:hover { border-bottom-width: 2px; }
.prose strong { color: var(--white); }
.panel--light .prose strong { color: var(--ink); }

.grid { display: grid; gap: 18px; }

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

@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { gap: 22px; }
}

/* ---------- 5. Section head ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 18px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}

.section-title {
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- 6. Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(140deg, var(--panel) 0%, #1C3149 48%, #24405E 100%);
  aspect-ratio: 16 / 10;
}

.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(168, 203, 224, 0.55);
  background-image:
    repeating-linear-gradient(135deg, rgba(168, 203, 224, 0.055) 0 12px, transparent 12px 24px);
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  transition: background-color 160ms var(--ease), color 160ms var(--ease),
              border-color 160ms var(--ease), transform 160ms var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--signal); color: var(--ink); }
.btn--primary:hover { background: #3FE6B6; }

.btn--ghost { border-color: var(--line-dark); color: var(--white); }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }

.btn--clay { background: var(--clay); color: var(--white); }
.btn--clay:hover { background: #E5875D; }

.btn--onlight { background: var(--signal-deep); color: var(--ink); }
.btn--onlight:hover { background: #16BA8D; }

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(143, 163, 184, 0.6); }
.breadcrumb a { color: var(--snow); transition: color 140ms var(--ease); }
.breadcrumb a:hover { color: var(--signal); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 9. Header ---------- */
.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--signal);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transition: top 160ms var(--ease);
}

.skip-link:focus-visible {
  top: 14px;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: transparent;
  color: var(--white);
  transition: background-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(10, 20, 32, 0.94) 0%,
    rgba(10, 20, 32, 0.66) 58%,
    rgba(10, 20, 32, 0) 100%);
  transition: opacity 240ms var(--ease);
  pointer-events: none;
}

.site-header[data-scrolled="true"] {
  background: var(--ink);
  box-shadow: 0 1px 0 var(--line-dark), 0 12px 30px -22px rgba(0, 0, 0, 0.9);
}

.site-header[data-scrolled="true"]::before { opacity: 0; }

.header-inner {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: 6px var(--gutter) 0;
}

.header-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: calc(var(--header-h) - 10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-glyph {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, var(--signal) 0%, #17B98C 56%, var(--clay) 138%);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.brand-words {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.07em;
  color: var(--snow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.index-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark);
  background: var(--veil);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.index-trigger:hover {
  border-color: var(--signal);
  background: rgba(41, 211, 162, 0.14);
  color: var(--white);
}

.index-trigger-icon {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.index-trigger-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark);
  background: var(--veil);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.nav-toggle:hover { border-color: var(--snow); }

.nav-toggle-bar {
  position: relative;
  flex: none;
  width: 16px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

.deck-group { min-width: 0; }

.deck-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--slate);
  margin-bottom: 10px;
}

/* 项目轴 */
.axis-nav { min-width: 0; }

.axis-list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

.axis-list::-webkit-scrollbar { display: none; }

.axis-chip {
  flex: none;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark);
  background: var(--veil);
  color: var(--snow);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  transition: color 160ms var(--ease), border-color 160ms var(--ease),
              background-color 160ms var(--ease), transform 160ms var(--ease);
}

.axis-chip:hover {
  color: var(--white);
  border-color: var(--snow);
  transform: translateY(-1px);
}

.axis-chip[aria-pressed="true"] {
  color: var(--ink);
  background: var(--signal);
  border-color: var(--signal);
}

/* 主导航 */
.primary-nav { min-width: 0; }

.primary-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-list a {
  display: block;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.005em;
  color: var(--snow);
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.primary-list a:hover {
  color: var(--white);
  background: rgba(245, 248, 251, 0.09);
}

.primary-list a[aria-current="page"] {
  color: var(--ink);
  background: var(--white);
}

/* ---------- 10. Index panel ---------- */
.index-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  padding: 30px var(--gutter) 64px;
  background: var(--ink);
  background-image:
    radial-gradient(900px 500px at 88% -10%, rgba(41, 211, 162, 0.13), transparent 62%),
    radial-gradient(700px 420px at 4% 100%, rgba(217, 118, 74, 0.12), transparent 60%);
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  visibility: hidden;
  transition: clip-path 260ms var(--ease), opacity 200ms var(--ease), visibility 0s linear 260ms;
}

.index-panel[data-open="true"] {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  visibility: visible;
  transition: clip-path 260ms var(--ease), opacity 200ms var(--ease), visibility 0s;
}

.index-shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
}

.index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
}

.index-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--clay);
}

.index-close {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.index-close::before,
.index-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--white);
  transform: translate(-50%, -50%) rotate(45deg);
}

.index-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.index-close:hover {
  border-color: var(--signal);
  background: rgba(41, 211, 162, 0.14);
}

.index-field {
  display: block;
  margin: 28px 0 34px;
}

.index-field-label {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--slate);
}

.index-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-dark);
  background: var(--panel);
  color: var(--white);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.index-input::placeholder { color: var(--slate); }

.index-input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(41, 211, 162, 0.24);
}

.index-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 720px) {
  .index-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
}

.index-group-title {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--slate);
}

.index-list { display: flex; flex-direction: column; }

.index-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px dashed rgba(168, 203, 224, 0.14);
  font-size: 15px;
  color: var(--snow);
  transition: color 160ms var(--ease), padding-left 160ms var(--ease);
}

.index-list a::after {
  content: "→";
  flex: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.index-list a:hover {
  color: var(--white);
  padding-left: 12px;
}

.index-list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.index-list li[data-filtered="out"] { display: none; }

/* ---------- 11. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 0;
  background: var(--ink-deep);
  border-top: 1px solid var(--line-dark);
  color: var(--snow);
}

.footer-inner {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: 54px var(--gutter) 36px;
}

.footer-brand {
  padding-bottom: 28px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-tagline {
  margin-top: 12px;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 620px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
}

@media (min-width: 1000px) {
  .footer-cols {
    grid-template-columns: 0.9fr 1.1fr 1.3fr 1.4fr;
    gap: 40px;
  }
}

.footer-col { min-width: 0; }

.footer-col-title {
  position: relative;
  padding-left: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
}

.footer-col-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--clay);
  transform: translateY(-50%);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-list a {
  width: fit-content;
  font-size: 14px;
  line-height: 1.6;
  color: var(--snow);
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.footer-list a:hover {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.footer-list--axis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
}

.footer-list--plain {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-list--plain li {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--slate);
}

.footer-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: rgba(41, 211, 162, 0.12);
  border: 1px solid rgba(41, 211, 162, 0.34);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--signal);
  white-space: nowrap;
}

.footer-hint {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(217, 118, 74, 0.32);
  background: rgba(217, 118, 74, 0.10);
  font-size: 13px;
  line-height: 1.72;
  color: var(--snow);
}

.footer-hint em {
  font-style: normal;
  font-weight: 700;
  color: var(--clay-soft);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact li { min-width: 0; }

.footer-field {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--slate);
}

.copy-chip {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark);
  background: rgba(245, 248, 251, 0.035);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
  transition: color 160ms var(--ease), border-color 160ms var(--ease),
              background-color 160ms var(--ease);
}

.copy-chip::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  vertical-align: -1px;
  border: 1.4px solid currentColor;
  border-radius: 3px;
}

.copy-chip:hover {
  color: var(--white);
  border-color: var(--signal);
  background: rgba(41, 211, 162, 0.12);
}

.copy-chip[data-copied="true"],
.copy-chip[data-copied="fail"] {
  color: var(--ink);
  background: var(--signal);
  border-color: var(--signal);
}

.footer-address {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--slate);
}

.footer-icp {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--snow);
}

.footer-base {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: 20px var(--gutter) 42px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--snow);
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.footer-legal a:hover {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

/* ---------- 12. Desktop header deck ---------- */
@media (min-width: 900px) {
  :root { --header-h: 66px; }

  .site-header[data-scrolled="true"] {
    background: var(--ink);
  }

  .header-deck {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 13px;
  }

  .deck-label { display: none; }

  .axis-nav {
    overflow: hidden;
    max-height: 46px;
    transition: max-height 260ms var(--ease), opacity 180ms var(--ease);
  }

  .site-header[data-scrolled="true"] .axis-nav {
    max-height: 0;
    opacity: 0;
  }

  .index-trigger-label { display: inline; }
}

/* ---------- 13. Mobile header ---------- */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .index-trigger-label { display: none; }

  .site-header[data-nav-open="true"] {
    background: var(--panel);
    box-shadow: none;
  }

  .site-header[data-nav-open="true"]::before { opacity: 0; }

  .header-deck {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 1;
    display: block;
    padding: 24px var(--gutter) 56px;
    background: var(--panel);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms;
  }

  .header-deck[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s;
  }

  .deck-group + .deck-group {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
  }

  .axis-list {
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
  }

  .axis-chip {
    padding: 8px 15px;
    font-size: 13px;
  }

  .primary-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .primary-list a {
    padding: 14px 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--line-dark);
    font-size: 15.5px;
  }

  .primary-list a[aria-current="page"] {
    color: var(--ink);
    background: var(--white);
    border-color: var(--white);
  }

  .index-panel { padding-top: 24px; }

  .index-head { padding-bottom: 14px; }

  .index-field { margin: 22px 0 26px; }
}

/* ---------- 14. Reduced motion ---------- */
@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;
    transition-delay: 0s !important;
  }

  .btn:hover,
  .axis-chip:hover { transform: none; }
}
