/* ============================================================
   十博体育数据 · site.css
   墨绿夜间战术板 / 蓝图网格 / 荧光青柠交互层
   ============================================================ */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
html.is-nav-locked { overflow: hidden; }

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

ul, ol { list-style: none; }

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

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

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

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

/* ---------- tokens ---------- */
:root {
  --base: #0B1F18;
  --panel: #102A21;
  --raised: #16382C;
  --line: #1F4A3A;
  --line-soft: rgba(31, 74, 58, 0.55);
  --lime: #C6FF3D;
  --lime-deep: #9BE02A;
  --amber: #F2A73B;
  --ink: #E8F1EA;
  --muted: #9DB3A8;
  --dim: #6E8A7D;
  --teal: #2E7D5B;
  --alert: #FF6B4A;
  --on-lime: #07200F;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1320px;
  --gutter: 24px;
  --header-h: 84px;
  --header-h-sm: 56px;
  --radius: 2px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-panel: inset 0 1px 0 rgba(232, 241, 234, 0.04);
}

/* ---------- base ---------- */
body {
  position: relative;
  min-height: 100vh;
  background-color: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 蓝图网格底纹（8px 基线放大为 48px 可视格） */
body::before {
  content: "";
  position: fixed;
  inset: -8px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(31, 74, 58, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 74, 58, 0.42) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  animation: grid-drift 20s linear infinite alternate;
}

@keyframes grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(4px, 4px, 0); }
}

#main-content,
.site-header,
.site-footer { position: relative; z-index: 1; }

::selection { background: var(--lime); color: var(--on-lime); }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
}

h4 { font-weight: 700; }

p { max-width: 38em; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.site-header.is-condensed {
  background: var(--base);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--maxw);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  transition: height 0.28s var(--ease);
}

.site-header.is-condensed .site-header__inner { height: var(--header-h-sm); }

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand__mark {
  position: relative;
  width: 11px;
  height: 11px;
  border: 1px solid var(--lime);
  transform: rotate(45deg);
  flex: 0 0 auto;
  transition: background 0.2s var(--ease);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--lime);
}
.brand:hover .brand__mark { background: rgba(198, 255, 61, 0.22); }

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand__sub {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0.22em;
  color: var(--lime);
}

/* nav */
.site-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 3px;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width 0.2s var(--ease);
}

.site-nav__list a:hover { color: var(--ink); }
.site-nav__list a:hover::after { width: calc(100% - 24px); }

.site-nav__list a[aria-current="page"] { color: var(--lime); }
.site-nav__list a[aria-current="page"]::after { width: calc(100% - 24px); }

.site-nav__foot { display: none; }

/* tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.tool {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tool:hover { color: var(--lime); border-bottom-color: var(--lime); }

.header-cta { white-space: nowrap; }

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 14px;
  background: rgba(16, 42, 33, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); }

.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars i {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--lime);
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

.nav-toggle[aria-expanded="true"] { border-color: var(--lime); background: var(--raised); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* scrim */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 14, 10, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s var(--ease);
}
.site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }

/* index strip */
.index-strip {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(8, 23, 15, 0.96);
}
.index-strip.is-live { display: block; }
.site-header:not(.is-condensed) .index-strip { display: none; }

.index-strip__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--maxw);
  height: 40px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.index-strip__label {
  color: var(--muted);
  text-transform: uppercase;
}

.index-strip__list {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.index-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.index-strip__num { color: var(--teal); transition: color 0.2s var(--ease); }

.index-strip__item.is-current { color: var(--lime); }
.index-strip__item.is-current .index-strip__num { color: var(--lime-deep); }

.index-strip__progress {
  position: relative;
  flex: 0 0 120px;
  height: 2px;
  margin-left: auto;
  background: var(--line);
  overflow: hidden;
}
.index-strip__progress > i {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: var(--lime);
  transition: width 0.12s linear;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
}
.btn--lime:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.btn--lime:active { transform: translateY(1px); }

.btn--outline {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(198, 255, 61, 0.06);
}
.btn--outline:hover { background: rgba(198, 255, 61, 0.16); color: var(--lime); }

.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--raised); border-color: var(--lime); color: var(--lime); }

.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { display: flex; width: 100%; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 880px; }

.section { padding: clamp(48px, 7vh, 88px) 0; }
.section--first { padding-top: clamp(112px, 16vh, 168px); }

.section__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

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

.section__title { font-size: clamp(24px, 3vw, 34px); }

.section__note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.grid { display: grid; gap: 24px; }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.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-12 { grid-column: span 12; }
.start-7 { grid-column-start: 7; }

.rule { height: 1px; border: 0; background: var(--line); }

/* ---------- small labels ---------- */
.label,
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-block;
}

.kicker { color: var(--muted); }

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

.score {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.score::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--lime);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.diamond {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--lime);
  transform: rotate(45deg);
  vertical-align: middle;
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 42, 33, 0.82);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.tag--lime { border-color: rgba(198, 255, 61, 0.5); color: var(--lime); }
.tag--amber { border-color: rgba(242, 167, 59, 0.5); color: var(--amber); }
.tag--alert { border-color: rgba(255, 107, 74, 0.55); color: var(--alert); }

/* ---------- panels ---------- */
.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.panel:hover {
  background: var(--raised);
  border-color: #2A5C48;
  transform: translateY(-1px);
}
.panel--static:hover { background: var(--panel); border-color: var(--line); transform: none; }

.panel__label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime);
  margin-bottom: 10px;
}

.panel__meta {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ---------- stat ---------- */
.stat { display: grid; gap: 4px; }
.stat__value {
  font-family: var(--mono);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--lime);
}
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- links ---------- */
.link-underline {
  position: relative;
  display: inline-block;
  color: var(--lime);
  padding-bottom: 2px;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width 0.2s var(--ease);
}
.link-underline:hover::after { width: 100%; }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.breadcrumb__item { color: var(--muted); }
.breadcrumb__item:hover { color: var(--lime); }
.breadcrumb__item[aria-current="page"] { color: var(--lime); }
.breadcrumb__sep { color: var(--line); }

/* ---------- prose ---------- */
.prose {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 38em;
}
.prose > * + * { margin-top: 1.15em; }
.prose p { max-width: none; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-top: 1.9em;
}
.prose h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-top: 1.6em;
  font-weight: 700;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--lime); }
.prose a {
  color: var(--lime);
  border-bottom: 1px solid rgba(198, 255, 61, 0.4);
  transition: border-color 0.2s var(--ease);
}
.prose a:hover { border-bottom-color: var(--lime); }
.prose strong { color: var(--lime); font-weight: 700; }
.prose blockquote {
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--lime);
  color: var(--muted);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--amber);
}

/* ---------- media ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  aspect-ratio: 16 / 9;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) saturate(0.85) brightness(0.82);
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 31, 24, 0.10) 0%, rgba(11, 31, 24, 0.62) 100%);
}
.media:hover img { transform: scale(1.02); filter: grayscale(0.2) saturate(0.95) brightness(0.9); }

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ---------- tabs ---------- */
.tabs { display: block; }

.tabs__list {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.tabs__btn {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tabs__btn:hover { color: var(--ink); background: rgba(198, 255, 61, 0.05); }
.tabs__btn[aria-selected="true"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
  background: rgba(198, 255, 61, 0.07);
}

.tabs__panel { padding-top: 22px; }
.tabs__panel[hidden] { display: none; }

/* ---------- accordion ---------- */
.accordion__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.accordion__btn::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--lime);
  transition: transform 0.24s var(--ease);
}
.accordion__btn[aria-expanded="true"] { color: var(--lime); }
.accordion__btn[aria-expanded="true"]::after { content: "−"; }
.accordion__btn:hover { color: var(--lime); }

.accordion__panel {
  padding: 0 4px 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
  animation: acc-fade 0.24s var(--ease);
}
.accordion__panel[hidden] { display: none; }
.accordion__panel p { max-width: 44em; }

@keyframes acc-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- toc ---------- */
.toc {
  position: sticky;
  top: 122px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.toc__list { display: grid; gap: 10px; }
.toc__link {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.toc__link:hover,
.toc__link[aria-current="true"] { color: var(--lime); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 9vh, 104px);
  background: #08170F;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.5fr;
  gap: 36px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gutter) 44px;
}

.footer-brand .brand--footer { font-size: 17px; }

.brand--footer .brand__name { font-size: 18px; }
.brand--footer .brand__sub { font-size: 9px; }

.footer-brand__note {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  max-width: 20em;
}

.footer-brand__meta {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--dim);
  max-width: 22em;
}

.footer-col__title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col__list { display: grid; gap: 10px; }

.footer-col__list a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.footer-col__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width 0.2s var(--ease);
}
.footer-col__list a:hover { color: var(--lime); }
.footer-col__list a:hover::after { width: 100%; }

.footer-col--contact .footer-contact {
  display: grid;
  gap: 9px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-contact__key {
  display: inline-block;
  min-width: 42px;
  margin-right: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.footer-more {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--lime);
  border-bottom: 1px solid rgba(198, 255, 61, 0.45);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.footer-more:hover { border-bottom-color: var(--lime); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--line);
}

.footer-legal__line,
.footer-legal__copy {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--dim);
  max-width: none;
}

/* ---------- responsive : tablet ---------- */
@media (max-width: 1100px) {
  .site-footer__inner { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-col--contact { grid-column: span 3; }
}

@media (max-width: 1024px) {
  .site-header__inner { height: 68px; gap: 16px; }
  .site-header.is-condensed .site-header__inner { height: 56px; }

  .nav-toggle { display: inline-flex; }
  .header-tools { display: none; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: min(360px, 86vw);
    margin: 0;
    padding: 92px 24px 32px;
    background: var(--panel);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 0.3s var(--ease);
  }
  .site-header[data-open] .site-nav { transform: none; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__list a {
    display: block;
    padding: 16px 4px;
    font-size: 16px;
    color: var(--ink);
  }
  .site-nav__list a::after { display: none; }
  .site-nav__list a[aria-current="page"] {
    color: var(--lime);
    box-shadow: inset 2px 0 0 var(--lime);
    padding-left: 12px;
  }

  .site-nav__foot { display: block; margin-top: 26px; }

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

  .toc { position: static; border-left: 0; padding-left: 0; }
}

/* ---------- responsive : mobile ---------- */
@media (max-width: 720px) {
  :root { --gutter: 18px; }

  body { font-size: 16px; line-height: 1.8; }

  .brand__name { font-size: 17px; }
  .brand__sub { font-size: 8.5px; letter-spacing: 0.18em; }
  .nav-toggle__text { display: none; }

  .index-strip__inner { height: 36px; gap: 10px; font-size: 10px; }
  .index-strip__label { display: none; }
  .index-strip__list { gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .index-strip__list::-webkit-scrollbar { display: none; }
  .index-strip__progress { flex: 0 0 54px; }

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

  .section__note { margin-left: 0; }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 40px var(--gutter) 32px;
  }
  .footer-col--contact { grid-column: auto; }

  .footer-legal { flex-direction: column; align-items: flex-start; }

  .media--tall { 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;
  }
  body::before { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .media:hover img { transform: none; }
  .panel:hover { transform: none; }
}
