/* tcocean.org v2 — research-feature styling: dark hero & instrument panels, light reading body. */

@font-face { font-family: "IBM Plex Serif"; src: url("../fonts/IBMPlexSerif-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("../fonts/IBMPlexSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("../fonts/IBMPlexSerif-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("../fonts/IBMPlexSerif-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-Var.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-Italic-Var.woff2") format("woff2"); font-weight: 100 700; font-style: italic; font-display: swap; }

:root {
  /* Palette — adjust here to retheme the whole site. */
  --abyss: #06141f;      /* hero / footer background */
  --deep: #0a1f2e;       /* instrument panels */
  --deep-2: #0f2a3c;     /* panel insets */
  --paper: #f3f4f2;      /* reading background */
  --paper-2: #e9ecea;    /* alternate section */
  --ink: #0b1e2c;
  --body: #273845;
  --muted: #5d6c76;
  --line: #ccd4d6;
  --line-soft: #e0e5e5;
  --teal: #1b6a6c;       /* accent on light */
  --teal-lt: #6cc3b6;    /* accent on dark */
  --amber: #c9974f;
  --cool: #4f8fc0;
  --on-dark: #dfe8ea;
  --on-dark-2: #9fb2bb;
  --serif: "IBM Plex Serif", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "IBM Plex Sans", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 40rem;
  --kick: 7rem;
  --gap: 2.5rem;
  --wide: 66rem;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --header-h: 3.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
html[lang="en"] [lang="zh"], html:not([lang="en"]) [lang="en"] { display: none !important; }

body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.78;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
@media (min-width: 760px) { body { font-size: 1.125rem; } }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--teal-lt); outline-offset: 2px; }
::selection { background: #cfe6e2; color: var(--ink); }
sub, sup { font-size: .72em; line-height: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .4rem .8rem; background: #fff; color: var(--ink); }
.skip-link:focus { top: .6rem; }

/* ——— Reading progress ——— */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--teal-lt), var(--amber)); }

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(6, 20, 31, .78); color: var(--on-dark);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: 100%; max-width: 78rem; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--on-dark); text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 1.6rem; height: 1.6rem; color: var(--teal-lt); }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: .95rem; letter-spacing: .01em; white-space: nowrap; }
.site-nav { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
.nav-list { display: flex; gap: 1.15rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a { display: block; padding: .3rem 0; color: var(--on-dark-2); text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .05em; white-space: nowrap; border-bottom: 1px solid transparent; transition: color .2s; }
.nav-list a:hover, .nav-list a[aria-current="true"] { color: #fff; border-bottom-color: var(--teal-lt); }
.lang-switch { display: flex; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 2px; }
.lang-btn { appearance: none; border: 0; background: transparent; color: var(--on-dark-2); font: 500 .72rem/1 var(--sans); letter-spacing: .06em; padding: .38rem .62rem; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.lang-btn[aria-pressed="true"] { background: var(--on-dark); color: var(--abyss); }
@media (max-width: 900px) { .site-nav { display: none; } .header-inner { justify-content: space-between; } }

/* ——— Side rail (wide screens) ——— */
.rail { position: fixed; left: clamp(.75rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .4s; }
.rail.is-on { opacity: 1; pointer-events: auto; }
.rail ol { list-style: none; margin: 0; padding: 0 0 0 .9rem; border-left: 1px solid var(--line); }
.rail a { display: flex; align-items: baseline; gap: .6rem; padding: .32rem 0; color: var(--muted); text-decoration: none; font-size: .72rem; letter-spacing: .04em; position: relative; }
.rail a::before { content: ""; position: absolute; left: calc(-.9rem - 1px); top: .45rem; bottom: .45rem; width: 2px; background: transparent; transition: background .25s; }
.rail-n { font-family: var(--mono); font-size: .7rem; }
.rail-t { opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.rail:hover .rail-t, .rail a[aria-current="true"] .rail-t { opacity: 1; transform: none; }
.rail a[aria-current="true"] { color: var(--ink); }
.rail a[aria-current="true"]::before { background: var(--teal); }
@media (max-width: 1279px) { .rail { display: none; } }

/* ——— Hero ——— */
.hero { position: relative; min-height: min(100svh, 60rem); margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(3rem, 10vh, 7rem)) var(--gutter) 5.5rem; background: radial-gradient(120% 90% at 72% 45%, #0e2c40 0%, #08192a 48%, var(--abyss) 100%); color: var(--on-dark); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 20, 31, .92) 0%, rgba(6, 20, 31, .62) 42%, rgba(6, 20, 31, 0) 72%), linear-gradient(0deg, rgba(6, 20, 31, .85) 0%, rgba(6, 20, 31, 0) 32%); }
.hero-inner { position: relative; width: 100%; max-width: 78rem; margin: 0 auto; }
.hero-inner > * { max-width: 38rem; }
.hero-kicker { margin: 0 0 1.4rem; color: var(--teal-lt); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: .8rem; }
.hero-kicker::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }
.hero-title { margin: 0 0 1.6rem; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.6vw, 5rem); line-height: 1.06; letter-spacing: -.025em; color: #f4f8f9; max-width: none; }
html:not([lang="en"]) .hero-title { letter-spacing: .02em; line-height: 1.12; }
.hero-lede { margin: 0 0 2.2rem; color: #c3d1d7; font-size: 1.06em; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3.2rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .72rem 1.2rem; border-radius: 999px; font-size: .86rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--on-dark); color: var(--abyss); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .28); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--teal-lt); color: #fff; }
.btn-primary::after { content: "↓"; }
.btn-ghost::after { content: "→"; color: var(--teal-lt); }
.facts { list-style: none; margin: 0; padding: 1.4rem 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 44rem !important; }
.fact-v { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: #fff; letter-spacing: -.01em; margin-bottom: .3rem; white-space: nowrap; }
.fact-l { display: block; font-size: .78rem; line-height: 1.5; color: var(--on-dark-2); }
.hero-credit { position: absolute; right: var(--gutter); bottom: 1.25rem; margin: 0; max-width: 22rem; text-align: right; font-size: .68rem; line-height: 1.5; color: rgba(159, 178, 187, .7); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; width: 1px; height: 2.6rem; background: rgba(255, 255, 255, .16); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--teal-lt); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 760px) {
  .hero { min-height: auto; padding-bottom: 5rem; }
  .hero-shade { background: linear-gradient(180deg, rgba(6, 20, 31, .35) 0%, rgba(6, 20, 31, .82) 45%, rgba(6, 20, 31, .95) 100%); }
  .facts { grid-template-columns: 1fr; gap: .9rem; }
  .facts li { display: grid; grid-template-columns: 7.2rem 1fr; gap: .8rem; align-items: baseline; }
  .hero-credit { left: var(--gutter); right: auto; text-align: left; bottom: 1rem; max-width: 70%; }
  .scroll-cue { display: none; }
}

/* ——— Sections ——— */
.section { padding: clamp(4rem, 9vw, 7rem) var(--gutter); border-top: 1px solid var(--line-soft); }
.section--alt { background: var(--paper-2); }
.section-inner { max-width: calc(var(--kick) + var(--gap) + var(--measure)); margin: 0 auto; }
@media (min-width: 960px) {
  .section-inner { display: grid; grid-template-columns: var(--kick) minmax(0, var(--measure)); column-gap: var(--gap); }
  .section-inner > * { grid-column: 2; }
  .section-inner > .kicker { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: .55rem; }
  .section-inner > .wide { grid-column: 1 / -1; width: min(var(--wide), calc(100vw - 2 * var(--gutter))); justify-self: center; }
}
.kicker { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; color: var(--teal); }
.kicker-n { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.kicker-l { font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.kicker-n::after { content: ""; display: block; width: 1.6rem; height: 2px; margin-top: .7rem; background: var(--teal); }
@media (max-width: 959px) { .kicker { flex-direction: row; align-items: baseline; gap: .7rem; } .kicker-n { font-size: 1.1rem; } .kicker-n::after { display: none; } }
.section-title { margin: 0 0 1.6rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3.4vw, 2.45rem); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.section p { margin: 0 0 1.15em; }

/* Names table */
.names { width: 100%; border-collapse: collapse; margin: .4rem 0 1.6rem; font-size: .92rem; }
.names th { text-align: left; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 0 .55rem; border-bottom: 1px solid var(--ink); }
.names td { padding: .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.names td:last-child { font-family: var(--serif); color: var(--ink); text-align: right; }

/* Static figure */
.figure { margin: 2.6rem 0 2rem; }
.figure-frame { background: #fbfbfa; border: 1px solid var(--line); padding: clamp(.5rem, 2vw, 1.25rem); overflow-x: auto; }
.figure-frame svg { width: 100%; height: auto; min-width: 36rem; }
@media (min-width: 760px) { .figure-frame svg { min-width: 0; } }
.figure-caption { margin: .9rem 0 0; font-size: .86rem; line-height: 1.65; color: var(--muted); max-width: 52rem; }
.figure-caption strong, .lab-cap strong { color: var(--ink); font-weight: 600; letter-spacing: .02em; }

/* ——— Interactive instrument panels ——— */
.lab { margin: 2.8rem 0 2.2rem; background: var(--deep); color: var(--on-dark); border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(6, 20, 31, .55); }
.lab-head { padding: 1.35rem clamp(1rem, 3vw, 1.75rem) 0; }
.lab-tag { margin: 0 0 .45rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-lt); }
.lab-badge { padding: .18rem .55rem; border: 1px solid rgba(108, 195, 182, .4); border-radius: 999px; font-size: .64rem; letter-spacing: .08em; color: var(--on-dark-2); }
.lab-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.3; color: #f2f6f7; }
.lab-body { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 1.5rem; padding: 1.2rem clamp(1rem, 3vw, 1.75rem) 1.4rem; }
@media (max-width: 860px) { .lab-body { grid-template-columns: 1fr; } }
.lab-plot { min-width: 0; }
.lab-plot > svg { width: 100%; height: auto; }
.lab-side { display: flex; flex-direction: column; gap: 1.1rem; padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .08); }
@media (max-width: 860px) { .lab-side { padding-left: 0; border-left: 0; } }
.lab-controls { display: grid; gap: 1.05rem; }
@media (min-width: 560px) and (max-width: 860px) { .lab-controls { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem 1.4rem; } .lab-readout { grid-template-columns: repeat(3, 1fr); } }
.ctl-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .35rem; }
.ctl-head label { font-size: .8rem; color: var(--on-dark-2); }
.ctl-head output { font-family: var(--mono); font-size: .84rem; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctl-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .62rem; color: rgba(159, 178, 187, .6); margin-top: .1rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 1.4rem; background: transparent; margin: 0; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal-lt) var(--fill), rgba(255, 255, 255, .16) var(--fill)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--teal-lt); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6px; border-radius: 50%; background: #fff; border: 3px solid var(--deep); box-shadow: 0 0 0 1px var(--teal-lt); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--deep); box-shadow: 0 0 0 1px var(--teal-lt); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.lab-readout { display: grid; gap: .7rem; margin: 0; padding: 1rem 0 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.ro dt { font-size: .7rem; letter-spacing: .06em; color: var(--on-dark-2); margin-bottom: .1rem; }
.ro dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; color: #fff; font-variant-numeric: tabular-nums; }
.ro dd small { font-family: var(--sans); font-size: .7rem; color: var(--on-dark-2); margin-left: .3rem; }
.tier { display: inline-flex; align-items: center; gap: .45rem; }
.tier::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c, var(--teal-lt)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--teal-lt)) 25%, transparent); }
.lab-reset { align-self: flex-start; appearance: none; background: none; border: 1px solid rgba(255, 255, 255, .18); color: var(--on-dark-2); font: 500 .72rem/1 var(--sans); letter-spacing: .06em; padding: .45rem .8rem; border-radius: 999px; cursor: pointer; }
.lab-reset:hover { color: #fff; border-color: var(--teal-lt); }
.lab-cap { padding: 1rem clamp(1rem, 3vw, 1.75rem) 1.3rem; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .14); font-size: .82rem; line-height: 1.65; color: var(--on-dark-2); }
.lab-cap strong { color: #fff; }

/* SVG chart text */
.lab svg text { font-family: var(--sans); }
.ax { stroke: rgba(255, 255, 255, .28); stroke-width: 1; }
.grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.tick { fill: #8ea3ad; font-size: 11px; font-family: var(--mono) !important; }
.axl { fill: #b6c6cd; font-size: 12px; }
.lbl { fill: #e6eef0; font-size: 12px; font-weight: 500; }
.lbl-mut { fill: #9fb2bb; font-size: 11px; }

/* Wake panel */
.wake-grid { display: grid; grid-template-columns: minmax(0, 700fr) minmax(0, 190fr); gap: .9rem; align-items: start; }
#wake-svg .lbl, #wake-svg .lbl-mut { font-size: 16px; }
#wake-svg .tick { font-size: 14px; }
#wake-prof .lbl-mut, #wake-prof .axl { font-size: 13px; }
#wake-prof .tick { font-size: 12px; }
.wake-map { position: relative; aspect-ratio: 2 / 1; border-radius: 2px; overflow: hidden; background: #0c2536; }
.wake-map canvas, .wake-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wake-prof svg { width: 100%; height: auto; }
.wake-legend { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; font-size: .72rem; color: var(--on-dark-2); }
.wake-legend .cbar { flex: 0 1 12rem; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1c3a63, #2c6e8f, #5fa8a0, #d8c690, #d49a5a, #b8603b); }
.wake-legend em { font-style: normal; margin-left: auto; opacity: .75; }
@media (max-width: 560px) {
  .wake-legend em { display: none; }
  .wake-grid { grid-template-columns: 1fr; }
  .wake-prof { width: 62%; margin: 0 auto; }
  #wake-svg .lbl, #wake-svg .lbl-mut { font-size: 24px; }
  #wake-svg .tick { font-size: 20px; }
  #wake-svg .trk { display: none; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 1.8rem 0; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: 1.3rem 1.2rem 1.4rem; }
.card-k { margin: 0 0 .9rem !important; font-family: var(--mono); font-size: .72rem; color: var(--teal); }
.card h3 { margin: 0 0 .5rem; font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.card p:last-child { margin: 0; font-size: .86rem; line-height: 1.65; color: var(--muted); }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }

/* Methods */
.method { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.method-n { margin: 0 !important; font-family: var(--mono); font-size: .8rem; color: var(--teal); padding-top: .25rem; }
.method h3 { margin: 0 0 .6rem; font-family: var(--serif); font-weight: 500; font-size: 1.12rem; color: var(--ink); }
.method p { font-size: .92rem; line-height: 1.7; }
.method p:last-child { margin-bottom: 0; }
.eq { font-family: var(--serif); font-style: italic; font-size: 1.02rem !important; color: var(--ink); background: #fbfbfa; border-left: 2px solid var(--teal); padding: .7rem 1rem; overflow-x: auto; white-space: nowrap; }

/* Sources */
.sources { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.sources li { border-bottom: 1px solid var(--line); }
.sources a { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) auto; gap: .15rem 1.2rem; padding: 1.05rem 0; color: inherit; text-decoration: none; transition: background .2s; }
.sources a:hover .src-name { color: var(--teal); }
.src-tag { grid-row: 1 / span 2; font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); padding-top: .3rem; }
.src-name { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--ink); line-height: 1.35; transition: color .2s; }
.src-desc { grid-column: 2; font-size: .86rem; line-height: 1.55; color: var(--muted); }
.src-host { grid-column: 3; grid-row: 1; font-family: var(--mono); font-size: .7rem; color: var(--muted); white-space: nowrap; padding-top: .3rem; }
.src-host::after { content: " ↗"; }
@media (max-width: 640px) { .sources a { grid-template-columns: 1fr; } .src-tag { grid-row: auto; padding: 0; } .src-desc, .src-host { grid-column: 1; grid-row: auto; } }

/* Footer */
.site-footer { background: var(--abyss); color: var(--on-dark-2); padding: 3.5rem var(--gutter) 3rem; }
.footer-inner { max-width: calc(var(--kick) + var(--gap) + var(--measure)); margin: 0 auto; font-size: .86rem; line-height: 1.75; }
.footer-mark { display: flex; align-items: center; gap: .6rem; color: var(--on-dark); font-family: var(--serif); font-size: 1rem; margin: 0 0 1.2rem; }
.footer-mark .brand-mark { width: 1.5rem; height: 1.5rem; }
.footer-fine { font-size: .74rem; opacity: .7; margin-top: 1rem; }

/* ——— Scroll reveal (only with JS) ——— */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .figure .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .figure.is-in .draw { animation: draw 1.6s var(--ease) .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .figure .draw { stroke-dasharray: none; animation: none; }
  .scroll-cue span { animation: none; }
}

@media print {
  .site-header, .rail, .progress, .hero-canvas, .scroll-cue, .lab-controls, .lab-reset { display: none !important; }
  .hero { background: #fff; color: #000; min-height: 0; }
  .hero-title, .hero-lede, .fact-v { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}

/*
编号：2
新增/修改：修改
主要修改内容：v2 视觉体系——深色首屏与仪器面板、浅色阅读区、章节编号栏、侧边进度导轨、滑块控件、滚动淡入与线条绘出、减弱动态适配。
修改目的：提升学术专题页的设计感与信息层级，承载交互示意图。
完成后简述：配色集中在 :root 变量；≥960px 采用“编号栏 + 正文栏”网格，.wide 元素放宽到 66rem；动画均受 prefers-reduced-motion 约束。
*/

/* Text halo for labels drawn over the SST field. */
.halo { paint-order: stroke; stroke: rgba(6, 20, 31, .7); stroke-width: 3px; stroke-linejoin: round; }

/* Small screens: enlarge chart text (SVGs scale down to ~55%). */
@media (max-width: 560px) {
  #flux-svg .tick, #mix-svg .tick { font-size: 18px; }
  #flux-svg .axl, #mix-svg .axl, #flux-svg .lbl, #mix-svg .lbl { font-size: 19px; }
  #flux-svg .lbl-mut, #mix-svg .lbl-mut { font-size: 17px; }
  #wake-prof .tick { font-size: 16px; }
  #wake-prof .lbl-mut, #wake-prof .axl { font-size: 17px; }
}
/* Footer text aligned with the reading column. */
@media (min-width: 960px) { .footer-inner { padding-left: calc(var(--kick) + var(--gap)); } }
