/* Public site stylesheet. Standalone: the staff workspace keeps using styles.css. */

@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --bg: #f2ebdf;
  --ink: #242922;
  --soft: #565d55;
  --line: #d3c9b9;
  --line-strong: #b5a994;
  --card: #fbf8f2;
  --accent: #35644c;
  --accent-soft: #e2e9dc;
  --danger: #a8402c;
  --radius: 8px;
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "PingFang SC", "Noto Sans SC", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15171b;
  --ink: #e7e6e1;
  --soft: #a4a79f;
  --line: #2b2f33;
  --line-strong: #3d4348;
  --card: #1b1e23;
  --accent: #a3cbb0;
  --accent-soft: #1f2d26;
  --danger: #f08a72;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
#content:focus { outline: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0 0 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { font-weight: 800; font-size: 22px; letter-spacing: -.04em; }
.brand-sub { font-size: 13px; color: var(--soft); }
.sections { display: flex; gap: 4px; }
.sections a { color: var(--soft); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.sections a:hover { background: var(--card); color: var(--ink); }
.sections a[aria-current=page] { background: var(--accent-soft); color: var(--accent); }
.tools { display: flex; gap: 6px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--soft); }
.chip:hover { background: var(--card); color: var(--ink); }

/* Notices */
.notice { margin: 18px 0 0; padding: 10px 16px; border-radius: 10px; font-size: 14px; background: var(--card); border: 1px solid var(--line); color: var(--soft); }
.notice.sample { border-color: var(--danger); color: var(--ink); }

main { padding-bottom: 72px; }
main h2 { font-size: clamp(24px, 3vw, 32px); margin: 44px 0 14px; }
.narrow { max-width: 760px; }

/* Buttons and small pieces */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; padding: 11px 20px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.button:hover { background: var(--card); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .button.primary { color: #0b1510; }
.button.primary:hover { filter: brightness(1.08); }
.button.small { padding: 7px 14px; font-size: 13px; }
.record-type { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.meta { font-size: 14px; color: var(--soft); }
.small-note { font-size: 14px; color: var(--soft); margin: 10px 0; }
.unknown { color: var(--soft); font-style: italic; }
.loading { color: var(--soft); padding: 40px 0; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; margin: 20px 0; }
.empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--soft); max-width: 460px; margin: 0 auto 16px; }

/* Hero and overview */
.hero { padding: 72px 0 36px; max-width: 900px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -.035em; margin: 6px 0 22px; text-wrap: balance; }
.hero-sub { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--soft); max-width: 680px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.stats { margin: 36px 0 0; }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.stat-list strong { display: block; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.stat-list span { display: block; font-size: 14px; color: var(--soft); margin-top: 10px; }
.stats .small-note { margin: 14px 2px 0; }
.how, .figure, .principles, .join { padding-top: 24px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.how-steps h3 { font-size: 22px; margin: 14px 0 8px; }
.how-steps p { color: var(--soft); margin: 0; font-size: 15px; }
.how-steps .num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; }
.figure { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 0 56px; align-items: center; }
.figure h2 { grid-column: 1 / -1; }
.mini { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 5px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; }
.mini:hover { border-color: var(--accent); }
.mini-cell { display: block; aspect-ratio: 1; border-radius: 4px; border: 1px solid var(--line); }
.mini-cell.st-has_records { background: var(--accent); border-color: var(--accent); }
.mini-cell.st-probed_empty { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line) 4px 6px); }
.mini-cell.st-not_collected { border-style: dashed; border-color: var(--line-strong); }
.caption { color: var(--soft); font-size: 15px; max-width: 460px; }
.principles ul, .join ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.principles li, .join li { border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 17px; line-height: 1.5; }
.join p { display: flex; flex-wrap: wrap; gap: 10px; }

/* Page headings (explore, lists, details) */
.lead { padding: 44px 0 8px; max-width: 820px; }
.lead h1 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.03em; margin: 8px 0 14px; text-wrap: balance; }
.lead p { color: var(--soft); font-size: 18px; max-width: 700px; }
.lead-aside { margin-top: 18px; }
.ledger { display: grid; grid-template-columns: 1fr auto; gap: 0 28px; max-width: 380px; margin: 0; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px; }
.lead-aside h2 { display: none; }
.ledger dt, .ledger dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ledger dt:nth-last-of-type(1), .ledger dd:last-of-type { border-bottom: 0; }
.ledger dd { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.species-title { padding: 18px 0 0; }
.species-title h1 { font-size: clamp(28px, 4vw, 42px); margin: 6px 0 10px; letter-spacing: -.03em; }
.species-intro { font-size: 18px; color: var(--soft); }
.subnav { font-size: 14px; color: var(--soft); margin: 8px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 36px 0 8px; }
.section-head h2 { margin: 0; }

/* Controls */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 18px 0; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.inline-field.grow { flex: 1; min-width: 220px; }
.inline-field.grow input { flex: 1; min-width: 0; }
.inline-field input, .inline-field select { border: 1px solid var(--line); background: var(--bg); padding: 9px 12px; border-radius: 10px; font-size: 14px; }

/* Matrix */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0 10px; }
.matrix { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 800px; font-size: 13px; line-height: 1.4; }
.matrix th { font-weight: 600; text-align: left; padding: 10px; background: var(--card); vertical-align: bottom; border-bottom: 1px solid var(--line); }
.matrix tbody th { vertical-align: middle; position: sticky; left: 0; min-width: 150px; max-width: 190px; border-right: 1px solid var(--line); z-index: 1; background: var(--bg); }
.matrix td { padding: 5px; border-bottom: 1px solid var(--line); width: 12%; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 4px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; }
.cell:hover { border-color: var(--accent); }
.cell strong { font-size: 20px; line-height: 1; }
.cell small { font-size: 10px; line-height: 1.2; text-align: center; color: var(--soft); }
.cell.st-has_records { background: var(--accent-soft); border-color: var(--accent); }
.cell.st-probed_empty { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 8px); }
.cell.st-not_collected { border-style: dashed; border-color: var(--line-strong); color: var(--soft); }
.cell.selected { outline: 2px solid var(--ink); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 10px 0 20px; font-size: 13px; color: var(--soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { display: inline-block; width: 18px; height: 14px; border: 1px solid var(--line); border-radius: 4px; }
.swatch.st-has_records { background: var(--accent-soft); border-color: var(--accent); }
.swatch.st-probed_empty { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line) 4px 5px); }
.swatch.st-not_collected { border-style: dashed; border-color: var(--line-strong); }
.cell-panel { margin-top: 8px; min-height: 80px; }
.cell-panel h3 { font-size: 22px; margin: 12px 0 14px; }

/* Records */
.run-entry { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 14px 0; }
.run-entry h2, .run-entry h3 { font-size: 20px; margin: 6px 0 8px; letter-spacing: -.01em; }
.run-entry h2 a { color: var(--ink); text-decoration: none; }
.run-entry h2 a:hover { color: var(--accent); }
.run-entry p { color: var(--soft); font-size: 15px; }
.badges { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; font-size: 12px; line-height: 1.4; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.b-ver-supported { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.b-ver-partial { border-style: dashed; border-color: var(--ink); }
.b-ver-unchecked, .b-ver-unsupported { border-color: var(--danger); color: var(--danger); }
.b-audit-audited { background: var(--card); }
.b-lang { font-weight: 700; }
.claim-list, .source-list { list-style: none; padding: 0; margin: 8px 0; }
.claim-list li, .source-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.claim-list a, .source-list a { font-size: 16px; }
.source-list .meta { margin: 3px 0; }
.facts { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 8px 24px; font-size: 15px; margin: 16px 0; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; }
.quote { margin: 14px 0; padding: 18px 22px; border-radius: var(--radius); background: var(--accent-soft); border-left: 4px solid var(--accent); font-size: 19px; line-height: 1.7; }
.steps { padding-left: 22px; }
.steps li { margin: 8px 0; }
.cite { font-size: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow-wrap: anywhere; }
table.plain { border-collapse: collapse; font-size: 14px; margin: 12px 0; }
table.plain th, table.plain td { border-bottom: 1px solid var(--line); padding: 8px 18px 8px 0; text-align: left; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--soft); }
.footer-in { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; align-items: flex-start; }
.footer p { margin: 0 0 4px; max-width: 520px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--soft); }
.release-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }

/* Chinese typesetting */
html[lang^=zh] h1, html[lang^=zh] h2 { word-break: keep-all; overflow-wrap: anywhere; letter-spacing: 0; }
html[lang^=zh] .hero h1 { line-height: 1.2; }

/* Small screens */
@media (max-width: 860px) {
  .topbar-in { flex-wrap: wrap; gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; }
  .brand-sub { display: none; }
  .sections { order: 3; width: 100%; overflow-x: auto; }
  .stat-list { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .figure { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 40px 0 24px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .toolbar { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Theme: warm paper, forest green, monospace labels, thin rules (after ValueArena) */
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; }
.topbar { background: var(--bg); }
.brand-mark { font-weight: 700; letter-spacing: -.03em; }
.record-type, .pill, .badge, .chip, .stat-list span, .facts dt, .legend, .release-meta, .cell small, .ledger dt, .caveat-label, .idx { font-family: var(--mono); }
.record-type { font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.pill { border-radius: 4px; font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.badge { border-radius: 4px; font-size: 11px; }
.chip { border-radius: 6px; font-size: 12px; }
.sections a { border-radius: 6px; font-size: 14px; }
.button { border-radius: 6px; font-weight: 600; }
.button.primary { color: #fbf8f2; }
:root[data-theme="dark"] .button.primary { color: #15171b; }
.stat-list li, .how-steps li, .run-entry, .mini, .matrix-wrap, .ledger, .cite, .empty { border-radius: var(--radius); }
.stat-list li { background: var(--card); }
.stat-list span { font-size: 12px; letter-spacing: .02em; }
.principles li, .join li { border-radius: 0 6px 6px 0; border-left-width: 3px; background: var(--card); }
.quote { border-radius: 6px; }
.cell { border-radius: 4px; }
.mini-cell { border-radius: 2px; }
.hero { border-bottom: 1px solid var(--line); padding-bottom: 48px; max-width: none; }
.hero h1 { max-width: 880px; font-weight: 600; }
.stats { margin-top: 40px; }

/* Numbered sections on the overview */
.overview { counter-reset: sec; }
.overview h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .08em; margin-bottom: 10px; }

/* What this map is not */
.caveat { margin-top: 56px; padding: 22px 24px; border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--card); max-width: 760px; }
.caveat-label { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.caveat p { margin: 0; font-size: 17px; line-height: 1.55; }

/* ===== ValueArena-style home: tinted bands, floating cards, pixel landscape ===== */
:root {
  --band-sage: #dde7d5; --band-sand: #efe2c4; --band-clay: #f0dacb; --band-mint: #d5e6de;
  --hill-1: #e1e8d6; --hill-2: #c9dac3; --hill-3: #aac7ab; --hill-edge: #f8f3e8;
  --card-bg: #fbf8f2; --card-line: #0000000d;
  --card-shadow: inset 0 1px 0 #ffffffb3, 0 10px 30px #28321f12;
  --card-shadow-hover: inset 0 1px 0 #ffffffb3, 0 18px 40px #28321f1f;
  --footer-panel: #ebe3d4; --wordmark: #ffffffc4;
}
:root[data-theme="dark"] {
  --band-sage: #151e18; --band-sand: #1f1b12; --band-clay: #221816; --band-mint: #121e1b;
  --hill-1: #151d18; --hill-2: #1b2820; --hill-3: #24362a; --hill-edge: #3a5142;
  --card-bg: #1b1e23; --card-line: #ffffff10;
  --card-shadow: 0 10px 30px #00000059; --card-shadow-hover: 0 18px 44px #00000080;
  --footer-panel: #111317; --wordmark: #ffffff17;
}
html, body { overflow-x: clip; }
h1, h2, h3 { font-weight: 500; }

.arena-home { max-width: 880px; margin: 0 auto; }
.arena-home .hero-with-hills { position: relative; isolation: isolate; padding: 64px 0 52px; border-bottom: 0; max-width: none; }
.arena-home .hero-hills { position: absolute; z-index: -1; left: 50%; bottom: 0; width: 100vw; height: 100%; transform: translateX(-50%); pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 5%, #000 72%), linear-gradient(to bottom, #000 75%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 5%, #000 72%), linear-gradient(to bottom, #000 75%, transparent); mask-composite: intersect; }
.pixel-hills { display: block; width: 100%; height: 100%; }
.arena-home .hero h1 { font: 500 clamp(30px, 3.8vw, 44px)/1.18 var(--font); letter-spacing: -.028em; max-width: 760px; margin: 4px 0 18px; }
.arena-home .hero-sub { font-size: 17px; line-height: 1.7; max-width: 640px; margin: 0 0 24px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.home-actions a { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; padding: 11px 16px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink); text-decoration: none; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.home-actions a:hover { transform: translateY(-1px); background: var(--card-bg); }
.home-actions .button-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.home-actions .button-primary:hover { background: var(--accent); filter: brightness(1.1); }
.home-actions a > span { display: inline-block; transition: transform .2s ease; }
.home-actions a:hover > span { transform: translateX(3px); }

.home-contents { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; position: relative; z-index: 1; }
.home-contents > span { font: 11px var(--mono); color: var(--soft); letter-spacing: .06em; text-transform: uppercase; }
.home-contents a { display: flex; align-items: center; gap: 10px; color: var(--soft); text-decoration: none; }
.home-contents a:hover { color: var(--accent); }
.home-contents a > span { font: 10px var(--mono); opacity: .7; }
.home-contents a[aria-current="location"] { color: var(--accent); font-weight: 600; }

.band-section { position: relative; isolation: isolate; padding: 64px 0 56px; scroll-margin-top: 90px; }
.band-section[style]::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--band-from) 0%, var(--band-color) 22%, var(--band-color) 78%, var(--band-to) 100%); }
.story-copy { max-width: 735px; margin-bottom: 28px; }
.arena-home h2 { margin: 0 0 14px; font: 500 clamp(25px, 3vw, 34px)/1.25 var(--font); letter-spacing: -.025em; }
.arena-home h2::before { content: none; }
.story-copy p { font-size: 15px; line-height: 1.8; color: var(--soft); margin: 0; }
.story-small { font-size: 12.5px; line-height: 1.8; color: var(--soft); margin-top: 16px; }

.band-card { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 28px; padding: 28px 30px; box-shadow: var(--card-shadow); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.band-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.arena-home .stat-list { gap: 14px; }
.arena-home .stat-list li { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 22px; box-shadow: var(--card-shadow); padding: 22px 22px 18px; }
.arena-home .stat-list strong { font-weight: 500; }

.arena-protocol { margin: 0; border-top: 1px solid var(--line); }
.arena-protocol > div { display: grid; grid-template-columns: 125px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.65; }
.arena-protocol > div:last-child { border-bottom: 0; }
.arena-protocol dt { font-weight: 600; }
.arena-protocol dd { margin: 0; color: var(--soft); }

.band-split { display: grid; gap: 18px; }
.band-split .band-card { min-width: 0; }
.mini { background: none; border: 0; padding: 0; max-width: 300px; margin: 0 0 18px; }
.mini:hover { border: 0; }
.band-notes { display: grid; gap: 12px; }
@media (min-width: 900px) { .band-split { grid-template-columns: minmax(0, 1fr) 270px; align-items: stretch; } .band-notes { grid-template-rows: repeat(3, minmax(0, 1fr)); } }
.band-note { position: relative; display: flex; flex-direction: column; padding: 16px 18px; border: 1.5px dashed color-mix(in srgb, var(--ink) 24%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--card-bg) 40%, transparent); transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease, background-color .3s ease; }
.band-note:hover { transform: translateY(-3px); border-style: solid; border-color: var(--accent); background: var(--card-bg); }
.band-note-dot { position: absolute; top: 19px; right: 18px; width: 6px; height: 6px; background: var(--ink); transition: background-color .3s ease, box-shadow .3s ease; }
.band-note:hover .band-note-dot { background: var(--accent); box-shadow: 6px 0 0 -1px var(--accent), -6px 0 0 -1px var(--accent), 0 6px 0 -1px var(--accent), 0 -6px 0 -1px var(--accent); }
.band-note-kicker { font: 11px var(--mono); color: var(--soft); margin: 0 0 8px; }
.band-note h3 { font: 600 15px/1.3 var(--font); letter-spacing: -.01em; margin: 0 20px 6px 0; }
.band-note p:last-child { font-size: 12.5px; line-height: 1.55; color: var(--soft); margin: 0; }

.arena-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.arena-rows li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; background: none; border-left: 0; border-radius: 0; }
.arena-rows li:last-child { border-bottom: 0; }
.story-closing { padding: 64px 0 40px; }
.story-closing .arena-rows { max-width: 640px; margin-bottom: 20px; }
.research-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Content drifts up the first time a band scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .arena-home.reveal-ready .band-section > * { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .arena-home.reveal-ready .band-section.is-visible > * { opacity: 1; transform: none; }
  .arena-home.reveal-ready .band-section.is-visible > :nth-child(2) { transition-delay: .08s; }
  .arena-home.reveal-ready .band-section.is-visible > :nth-child(n + 3) { transition-delay: .16s; }
}

/* Footer panel over a pixel landscape, with the wordmark standing on the hills */
.footer { border: 0; padding: 24px max(12px, calc((100vw - 1280px) / 2)) 0; color: var(--soft); font-size: 14px; }
.site-footer-panel { position: relative; overflow: hidden; border-radius: 36px 36px 0 0; background: var(--footer-panel); padding: 26px 26px 0; }
.site-footer-cards { position: relative; z-index: 1; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); }
.site-footer-card { background: var(--card-bg); border-radius: 26px; padding: 26px 28px 30px; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.site-footer-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.site-footer-card h2 { font: 500 24px/1.1 var(--font); letter-spacing: -.025em; margin: 0 0 24px; }
.site-footer-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer-card li a { font-size: 14px; color: var(--soft); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .25s ease, color .2s ease; }
.site-footer-card li a:hover { color: var(--accent); background-size: 100% 1px; }
.site-footer-cta p { font: 600 19px/1.4 var(--font); letter-spacing: -.01em; max-width: 320px; margin: 0 0 22px; color: var(--ink); }
.site-footer-button { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 10px; background: var(--accent); color: var(--bg); font-size: 14px; font-weight: 500; text-decoration: none; transition: transform .2s ease; }
.site-footer-button:hover { transform: translateY(-1px); }
.site-footer-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 8px 0; font-size: 13px; color: var(--soft); }
.site-footer-meta a { color: var(--soft); }
.site-footer-meta a:hover { color: var(--accent); }
.site-footer-scene { position: relative; height: clamp(150px, 21vw, 290px); margin: 0 -26px; }
.site-footer-scene .pixel-hills { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-footer-wordmark { position: absolute; left: 50%; bottom: -.2em; transform: translateX(-50%); font: 700 clamp(64px, 15vw, 196px)/1 var(--font); letter-spacing: -.055em; color: var(--wordmark); white-space: nowrap; user-select: none; }

@media (max-width: 1000px) { .site-footer-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-footer-cta { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .site-footer-panel { border-radius: 26px 26px 0 0; padding: 14px 14px 0; }
  .site-footer-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .site-footer-card { padding: 20px; border-radius: 20px; }
  .site-footer-card h2 { font-size: 20px; margin-bottom: 14px; }
  .site-footer-scene { margin: 0 -14px; }
  .band-card { padding: 20px 16px; border-radius: 22px; }
  .arena-protocol > div { grid-template-columns: 1fr; gap: 4px; }
  .arena-home .hero-with-hills { padding-top: 40px; }
}

/* Home-page network */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.graph-feature { width: min(1080px, calc(100vw - 36px)); position: relative; left: 50%; transform: translateX(-50%); margin: 6px 0 30px; z-index: 1; }
.graph-card { margin: 0; padding: 16px 16px 14px; border-radius: 28px; }
.graph-stage { position: relative; width: 100%; min-height: 300px; }
.graph-stage canvas { display: block; border-radius: 18px; }
.graph-tip { position: absolute; max-width: 280px; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 12px/1.4 var(--font); pointer-events: none; z-index: 2; }
.graph-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 12px 6px 0; font: 11px/1.4 var(--mono); color: var(--soft); }
.graph-legend li { display: flex; align-items: center; gap: 7px; }
.graph-legend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 2px; }
.graph-note { font-size: 13px; line-height: 1.6; color: var(--soft); margin: 10px 6px 0; max-width: 800px; }

/* ===== Ocean variant: cooler palette, dot-grid and aurora instead of pixel hills in the hero ===== */
:root {
  --bg: #f3f6f7; --ink: #0f1d24; --soft: #4f616b; --line: #d5e0e4; --line-strong: #b4c4cb;
  --card: #ffffff; --accent: #6a3fd0; --accent-soft: #ebe3fb;
  --band-sage: #def0f1; --band-sand: #e2efe6; --band-clay: #e3ebf5; --band-mint: #f1ebe6;
  --hill-1: #d6e8ee; --hill-2: #b5d6e1; --hill-3: #8fc0d2; --hill-edge: #f3f9fb;
  --card-bg: #ffffff; --card-line: #0b1f2a0f;
  --card-shadow: inset 0 1px 0 #ffffffb3, 0 10px 30px #0b24331a;
  --card-shadow-hover: inset 0 1px 0 #ffffffb3, 0 18px 40px #0b243329;
  --footer-panel: #dde8ec; --wordmark: #ffffffc4;
}
:root[data-theme="dark"] {
  --bg: #0a1419; --ink: #e4eef1; --soft: #9bb0b9; --line: #1d2e36; --line-strong: #2d434d;
  --card: #101c23; --accent: #b9a4ff; --accent-soft: #261a45;
  --band-sage: #0d1f26; --band-sand: #0e211f; --band-clay: #0e1a29; --band-mint: #1a1713;
  --hill-1: #0f2029; --hill-2: #133040; --hill-3: #1a4457; --hill-edge: #2c6379;
  --card-bg: #101c23; --card-line: #ffffff10;
  --footer-panel: #0d171c; --wordmark: #ffffff14;
}
.arena-home .hero-with-hills { padding: 72px 0 60px; }
.hero-aurora { position: absolute; z-index: -1; left: 50%; top: 0; bottom: 0; width: 100vw; transform: translateX(-50%); pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 85% 10%, color-mix(in srgb, #8c5cf0 34%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 60% at 60% 90%, color-mix(in srgb, #6f5bd6 20%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 100%, color-mix(in srgb, #2f9e6b 22%, transparent), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); }
.hero-aurora::before { content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 80% 20%, #000, transparent 75%); }
.graph-card { position: relative; background: var(--card-bg); }
.graph-stage canvas { background: radial-gradient(ellipse 60% 60% at 50% 50%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 80%); }
.graph-badge { position: absolute; z-index: 2; top: 18px; left: 22px; padding: 4px 10px; border-radius: 999px; font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); border: 1px dashed var(--accent); background: color-mix(in srgb, var(--card-bg) 85%, transparent); }

/* Graph view switcher */
.graph-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 6px 8px; }
.graph-badge { position: static; }
.graph-badge[hidden] { display: none; }
.graph-tabs { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.graph-tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font: 500 12px/1.2 var(--mono); letter-spacing: .03em; color: var(--soft); transition: background-color .2s ease, color .2s ease; }
.graph-tabs button:hover { color: var(--ink); }
.graph-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.graph-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Header: three floating glass pills, with a liquid highlight on the nav ===== */
.topbar { background: transparent; border: 0; padding: 14px 0 0; pointer-events: none; }
.topbar-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 0; width: calc(100% - 40px); max-width: 1280px; margin: 0 auto; padding: 0; pointer-events: none; }
.topbar-in > * { pointer-events: auto; }
.glass { background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 999px;
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 4px 20px color-mix(in srgb, var(--ink) 7%, transparent); }
.brand-pill { padding: 0 22px; height: 52px; display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0; line-height: 1; text-decoration: none; color: var(--ink); }
.brand-mark { font: 700 21px/1.4 var(--font); letter-spacing: -.01em; padding-bottom: .08em; display: inline-block; overflow: visible; }
.brand-sub { font: 400 12px/1.4 var(--font); color: var(--soft); letter-spacing: 0; }
.sections { position: relative; isolation: isolate; justify-self: end; height: 52px; padding: 0 8px; align-items: center; gap: 0; }
.sections a { position: relative; padding: 8px 14px; border-radius: 999px; font: 500 13px/1.3 var(--font); letter-spacing: 0; color: var(--soft); white-space: nowrap; background: transparent; transition: color .25s ease; }
.sections a:hover, .sections a[aria-current=page] { background: transparent; color: var(--accent); }
.nav-blob { position: absolute; left: 0; top: 0; z-index: -1; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); opacity: 0; pointer-events: none;
  transition: translate .5s cubic-bezier(.34,1.35,.64,1), width .5s cubic-bezier(.34,1.35,.64,1), height .4s ease, opacity .25s ease; }
.nav-blob.is-on { opacity: 1; }
.nav-blob.is-instant { transition: none; }
.tools { height: 52px; padding: 0 8px; align-items: center; gap: 2px; }
.tools .chip { border: 0; border-radius: 999px; padding: 8px 14px; font: 500 12px/1.3 var(--font); letter-spacing: 0; color: var(--soft); background: transparent; }
.tools .chip:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.topbar a:focus-visible, .topbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 860px) {
  .topbar-in { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: calc(100% - 28px); }
  .brand-sub { display: none; }
  .brand-pill { padding: 0 18px; }
  .sections { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-self: stretch; overflow-x: auto; justify-content: center; }
}
@media (max-width: 480px) { .sections a { padding: 8px 10px; font-size: 12px; } }

/* Calmer backgrounds: one soft glow in the hero, bands that stay close to the page colour */
:root { --band-sage: #e8f1f2; --band-sand: #eef3f1; --band-clay: #ecf0f6; --band-mint: #f3f1ee; }
:root[data-theme="dark"] { --band-sage: #0c1b21; --band-sand: #0c1d1d; --band-clay: #0c1824; --band-mint: #14130f; }
.hero-aurora { background: radial-gradient(ellipse 60% 75% at 82% 8%, color-mix(in srgb, #8c5cf0 22%, transparent), transparent 72%); }
.hero-aurora::before { opacity: .35; background-size: 24px 24px; }
body { text-rendering: optimizeLegibility; font-kerning: normal; }
h1, h2, h3 { font-feature-settings: "kern" 1, "liga" 1; }
.arena-home .hero h1 { font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }

/* ===== Warmer, mixed palette; eased block transitions; a pattern per block ===== */
:root {
  --bg: #f7f4ee; --card: #fffdf9; --card-bg: #fffdf9; --line: #e1dbcf; --line-strong: #c9c1b1; --soft: #565f63;
  --band-sage: #eee8f8; --band-sand: #fbeedd; --band-clay: #f2e8f6; --band-mint: #fde8da;
  --hill-1: #efe7fa; --hill-2: #dccdf5; --hill-3: #f6b98a; --hill-edge: #f7f4ee;
  --footer-panel: #ebe5d8; --card-shadow: inset 0 1px 0 #fffffff0, 0 10px 30px #3a331f14;
  --pattern: color-mix(in srgb, var(--ink) 16%, transparent);
}
:root[data-theme="dark"] {
  --bg: #0f1315; --card: #161b1e; --card-bg: #161b1e; --line: #232b2f; --line-strong: #34403f; --soft: #a3afb2;
  --band-sage: #17122a; --band-sand: #231810; --band-clay: #1e1428; --band-mint: #261612;
  --hill-1: #1d1533; --hill-2: #2a1d4a; --hill-3: #5a3a24; --hill-edge: #6a4cb0;
  --footer-panel: #121719; --pattern: color-mix(in srgb, var(--ink) 12%, transparent);
}
.hero-aurora { background:
    radial-gradient(ellipse 50% 70% at 86% 6%, color-mix(in srgb, #8c5cf0 22%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 60% at 6% 92%, color-mix(in srgb, #e9a15a 20%, transparent), transparent 70%),
    radial-gradient(ellipse 36% 55% at 48% 100%, color-mix(in srgb, #8c7ad8 14%, transparent), transparent 72%); }

/* Eased fades: each band blends into its neighbours over a long, smooth curve, not a hard line. */
.band-section[style]::before { background: linear-gradient(180deg,
  var(--band-from) 0%, color-mix(in srgb, var(--band-from) 70%, var(--band-color)) 6%, color-mix(in srgb, var(--band-from) 35%, var(--band-color)) 13%,
  var(--band-color) 26%, var(--band-color) 74%,
  color-mix(in srgb, var(--band-to) 35%, var(--band-color)) 87%, color-mix(in srgb, var(--band-to) 70%, var(--band-color)) 94%, var(--band-to) 100%); }
.band-section { padding: 84px 0 76px; }

/* One pattern per block, fading out toward the block edges */
.band-section[style]::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 26%, #000 70%, transparent 96%); mask-image: linear-gradient(180deg, transparent 4%, #000 26%, #000 70%, transparent 96%); }
#numbers::after { background-image: radial-gradient(var(--pattern) 1.2px, transparent 1.6px); background-size: 22px 22px; }
#how::after { background-image: repeating-linear-gradient(135deg, var(--pattern) 0 1px, transparent 1px 16px); opacity: .6; }
#map::after { background-image: linear-gradient(var(--pattern) 1px, transparent 1px), linear-gradient(90deg, var(--pattern) 1px, transparent 1px); background-size: 36px 36px; opacity: .55; }
#rely::after { background-image: repeating-radial-gradient(circle at 92% 30%, var(--pattern) 0 1px, transparent 1px 22px); opacity: .7; }
#help::after { background-image: radial-gradient(var(--pattern) 1.6px, transparent 2px); background-size: 30px 30px; background-position: 11px 11px; opacity: .8; }

/* Blocks rise in with a soft blur-to-sharp, cards a beat later */
@media (prefers-reduced-motion: no-preference) {
  .arena-home.reveal-ready .band-section > * { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(5px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
  .arena-home.reveal-ready .band-section.is-visible > * { opacity: 1; transform: none; filter: none; }
  .arena-home.reveal-ready .band-section.is-visible > :nth-child(2) { transition-delay: .12s; }
  .arena-home.reveal-ready .band-section.is-visible > :nth-child(n + 3) { transition-delay: .24s; }
}
.band-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.band-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }

/* Pipeline tab */
.funnel { list-style: none; margin: 14px 0 40px; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.funnel li { display: grid; grid-template-columns: 220px 1fr 56px; align-items: center; gap: 14px; font-size: 14px; }
.funnel-bar { height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.funnel-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #f08a2c); }
.funnel b { font: 600 15px var(--mono); text-align: right; }
.pipe-flow { position: relative; display: grid; gap: 16px; margin: 18px 0 40px; max-width: 920px; }
.pipe-flow::before { content: ""; position: absolute; left: 31px; top: 24px; bottom: 24px; width: 2px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.pipe-stage { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.pipe-id { display: flex; justify-content: center; padding-top: 14px; }
.pipe-id span { position: relative; z-index: 1; min-width: 46px; text-align: center; padding: 6px 8px; border-radius: 999px; font: 600 12px var(--mono); background: var(--card-bg); border: 1px solid var(--line-strong); color: var(--ink); }
.pipe-stage.st-built .pipe-id span { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pipe-stage.st-partial .pipe-id span { border-color: var(--accent); color: var(--accent); }
.pipe-body { background: var(--card-bg); border: 1px solid var(--card-line, var(--line)); border-radius: 22px; padding: 18px 22px 8px; box-shadow: var(--card-shadow); }
.pipe-stage.st-planned .pipe-body { border-style: dashed; background: color-mix(in srgb, var(--card-bg) 60%, transparent); box-shadow: none; }
.pipe-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pipe-head h3 { margin: 0; font: 500 20px/1.3 var(--font); letter-spacing: -.01em; }
.pipe-badge { font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--soft); white-space: nowrap; }
.pipe-stage.st-built .pipe-badge { color: var(--accent); border-color: var(--accent); }
.pipe-what { margin: 6px 0 12px; }
.pipe-facts { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 0 0 12px; font-size: 14px; }
.pipe-facts dt { font: 500 11px/1.9 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.pipe-facts dd { margin: 0; color: var(--soft); }
.pipe-facts code { font: 500 13px var(--mono); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 2px 8px; border-radius: 6px; color: var(--ink); }
@media (max-width: 640px) {
  .funnel li { grid-template-columns: 1fr 48px; } .funnel-bar { grid-column: 1 / -1; grid-row: 2; }
  .pipe-stage { grid-template-columns: 44px 1fr; gap: 8px; } .pipe-flow::before { left: 21px; } .pipe-id span { min-width: 36px; padding: 5px 4px; font-size: 11px; }
  .pipe-body { padding: 14px 16px 6px; } .pipe-facts { grid-template-columns: 1fr; gap: 2px; } .pipe-facts dd { margin-bottom: 8px; }
}
.pipe-id { align-items: flex-start; }
.pipe-id span { align-self: flex-start; display: inline-block; height: auto; line-height: 1.2; }
@media (max-width: 560px) { .sections { height: auto; min-height: 52px; padding: 6px 8px; flex-wrap: wrap; border-radius: 28px; overflow: visible; } .sections a { padding: 7px 11px; } }

/* ===== Home: livelier top, smaller network ===== */
.graph-feature { width: min(900px, calc(100vw - 36px)); }
.arena-home .hero-with-hills { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 36px; padding: 78px 0 64px; }
.hero-aurora { background:
    radial-gradient(ellipse 46% 64% at 88% 12%, color-mix(in srgb, #8c5cf0 30%, transparent), transparent 70%),
    radial-gradient(ellipse 38% 56% at 4% 96%, color-mix(in srgb, #ff9a4a 28%, transparent), transparent 70%),
    radial-gradient(ellipse 34% 50% at 52% 104%, color-mix(in srgb, #8c7ad8 22%, transparent), transparent 72%),
    radial-gradient(ellipse 30% 40% at 62% 8%, color-mix(in srgb, #e9708a 14%, transparent), transparent 70%); }
.arena-home .hero h1 { font-size: clamp(30px, 3.5vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08;
  background: linear-gradient(100deg, var(--ink) 28%, var(--accent) 62%, #f08a2c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-side { position: relative; display: grid; gap: 14px; justify-items: end; }
.hero-tile { display: flex; align-items: baseline; gap: 12px; padding: 16px 22px; min-width: 250px; border-radius: 22px; background: color-mix(in srgb, var(--card-bg) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); box-shadow: var(--card-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.hero-tile::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 4px; border-radius: 4px; background: var(--c, var(--accent)); }
.hero-tile strong { font: 600 38px/1 var(--font); letter-spacing: -.03em; }
.hero-tile span { font: 500 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.hero-tile.t0 { --c: #7a4be0; transform: translateX(-14px) rotate(-1.5deg); }
.hero-tile.t1 { --c: #e08a2c; transform: translateX(10px) rotate(1deg); }
.hero-tile.t2 { --c: #e0527a; transform: translateX(-4px) rotate(-.6deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-tile { animation: tile-float 7s ease-in-out infinite; }
  .hero-tile.t1 { animation-delay: -2.3s; } .hero-tile.t2 { animation-delay: -4.6s; }
  @keyframes tile-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
}
@media (max-width: 860px) {
  .arena-home .hero-with-hills { grid-template-columns: 1fr; padding: 48px 0 36px; }
  .hero-side { grid-auto-flow: column; grid-auto-columns: 1fr; justify-items: stretch; gap: 8px; }
  .hero-tile { min-width: 0; flex-direction: column; gap: 4px; padding: 12px 14px; transform: none !important; }
  .hero-tile strong { font-size: 26px; } .hero-tile span { font-size: 10px; }
}
html[lang^=zh] .arena-home .hero h1 { letter-spacing: 0; }

/* Explorer bubble chart */
.mchart-wrap { margin: 16px 0 6px; padding: 8px 6px; border-radius: 22px; background: var(--card-bg); border: 1px solid var(--card-line, var(--line)); box-shadow: var(--card-shadow); overflow-x: auto; }
.mchart { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--font); }
.mc-plot { fill: color-mix(in srgb, var(--ink) 3%, transparent); stroke: var(--line); }
.mc-grid { stroke: color-mix(in srgb, var(--ink) 9%, transparent); stroke-dasharray: 3 5; }
.mc-bar { fill: color-mix(in srgb, var(--accent) 35%, transparent); }
.mc-total { font: 600 12px var(--mono); fill: var(--soft); }
.mc-ylab, .mc-xlab { font: 500 13px var(--font); fill: var(--ink); }
.mc-axis { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--accent); }
.mc-axis.small { fill: var(--soft); font-weight: 500; }
.mc-hit { fill: transparent; transition: fill .2s ease; }
.mc-cell:hover .mc-hit, .mc-cell:focus-visible .mc-hit, .mc-cell.selected .mc-hit { fill: color-mix(in srgb, var(--accent) 10%, transparent); }
.mc-cell.selected .mc-hit { stroke: var(--accent); stroke-width: 1.5; }
.mc-cell { outline: none; cursor: pointer; }
.mc-b { stroke: var(--card-bg); stroke-width: 2.5; transition: transform .25s cubic-bezier(.2,.7,.2,1); transform-box: fill-box; transform-origin: center; }
.mc-cell:hover .mc-b { transform: scale(1.1); }
.mc-n { font: 700 14px var(--mono); fill: #fff; pointer-events: none; } .mc-n.dim { fill: var(--soft); font-weight: 500; }
.mc-empty { fill: none; stroke: var(--soft); stroke-width: 1.2; stroke-dasharray: 3 3; }
.mc-dot { fill: color-mix(in srgb, var(--ink) 28%, transparent); }
.ev-0 { fill: #8aa0a8; background: #8aa0a8; } .ev-1 { fill: #f08a2c; background: #f08a2c; } .ev-2 { fill: #8a5cf0; background: #8a5cf0; } .ev-3 { fill: #4a2bb0; background: #4a2bb0; }
.mc-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 6px 4px 16px; font-size: 13px; color: var(--soft); }
.mc-lg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.mc-lg b { font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.mc-key { display: inline-flex; align-items: center; gap: 7px; }
.mc-key i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.mc-key i.sz { background: color-mix(in srgb, var(--accent) 55%, transparent); } .sz.s1 { width: 9px; height: 9px; } .sz.s2 { width: 15px; height: 15px; } .sz.s3 { width: 22px; height: 22px; }
.mc-ring { border: 1.2px dashed var(--soft); } .mc-pt { width: 4px !important; height: 4px !important; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.matrix-details { margin: 8px 0 14px; } .matrix-details summary { cursor: pointer; font: 500 13px var(--mono); color: var(--soft); padding: 6px 2px; }

/* First screen: the hero fills the view under the header, so nothing is cut off at the fold */
.arena-home .hero-with-hills { min-height: calc(100svh - 52px); padding: 24px 0 88px; }
.arena-home .graph-feature { scroll-margin-top: 84px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 4px; background: transparent; border: 0; color: var(--soft); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 6px 12px; }
.scroll-cue:hover { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue svg { animation: cue 1.8s ease-in-out infinite; } @keyframes cue { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } } }
@media (max-width: 860px) { .arena-home .hero-with-hills { min-height: calc(100svh - 150px); padding: 16px 0 72px; align-content: center; } }
.record-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 6px; }
.record-pair > div { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-bg); }
.record-pair > div:first-child { border-left: 3px solid var(--accent); }
.record-pair p { margin: 6px 0 0; }
@media (max-width: 640px) { .record-pair { grid-template-columns: 1fr; } }

/* Home-page evidence map (real release) */
.evmap { padding: 4px 4px 0; }
.em-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.em-head { font: 500 10.5px var(--mono); letter-spacing: .08em; fill: var(--soft); }
.em-label { font-size: 13.5px; font-weight: 600; fill: var(--ink); }
.em-app { font-weight: 500; }
.em-sub { font: 11px var(--mono); fill: var(--soft); }
.em-link { fill: none; stroke-opacity: .32; stroke-linecap: round; transition: stroke-opacity .2s ease; }
.em-node { cursor: pointer; transition: opacity .2s ease; }
.em-node:focus-visible { outline: none; }
.em-node:focus-visible .em-label { text-decoration: underline; }
.em-node.is-empty .em-label { fill: var(--soft); font-weight: 500; }
.em-node.is-empty .em-sub { opacity: .7; font-style: italic; }
.em-pfill { fill: var(--ink); }
.em-pempty { fill: none; stroke: var(--soft); stroke-dasharray: 2 2; }
.em-svg.is-focus .em-link { stroke-opacity: .07; }
.em-svg.is-focus .em-link.is-on { stroke-opacity: .8; }
.em-svg.is-focus .em-node { opacity: .28; }
.em-svg.is-focus .em-node.is-on { opacity: 1; }
.em-summary { margin: 14px 6px 0; max-width: 820px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.em-list { display: none; list-style: none; margin: 0; padding: 0; }
.em-list h3 { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 15px; }
.em-list .sw { width: 10px; height: 10px; border-radius: 50%; }
.em-list ul { list-style: none; margin: 0; padding: 0 0 0 18px; }
.em-list ul li { display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid var(--line); }
.em-list ul li span { font: 11px/1.5 var(--mono); color: var(--soft); }
@media (max-width: 700px) {
  .em-svg { display: none; }
  .em-list { display: block; }
}

/* Home-page map section: the labelled explorer chart, notes in a row beneath */
.band-split.is-wide { grid-template-columns: minmax(0, 1fr); }
.band-split.is-wide .band-notes { grid-template-rows: none; }
@media (min-width: 900px) { .band-split.is-wide .band-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-chart { min-width: 0; }
.home-chart .mchart-wrap { margin-top: 0; }
.home-chart .mc-legend { margin-bottom: 12px; }
.arena-home .graph-card h2.graph-name { margin: 0 auto 0 4px; font: 600 17px/1.2 var(--font); letter-spacing: -.01em; }
.graph-head .graph-badge { order: 3; }

/* Hero illustration (generated pixel art), with the stat tiles floating over it */
.hero-art { display: block; width: 100%; max-width: 460px; height: auto; margin-left: auto; filter: drop-shadow(0 18px 28px color-mix(in srgb, #6a3fd0 16%, transparent)); }
@media (min-width: 861px) {
  .hero-side { display: block; }
  .hero-side .hero-tile { position: absolute; min-width: 0; padding: 10px 16px; gap: 10px; }
  .hero-side .hero-tile strong { font-size: 28px; }
  .hero-side .hero-tile span { font-size: 11px; }
  .hero-side .hero-tile.t0 { top: -4%; right: -2%; }
  .hero-side .hero-tile.t1 { top: 58%; right: -8%; }
  .hero-side .hero-tile.t2 { bottom: -2%; left: 0; }
}
@media (max-width: 860px) {
  .hero-side { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-art { grid-column: 1 / -1; width: min(78%, 340px); margin: 0 auto 6px; }
}

/* Hero spans the same width as the top bar instead of the narrow reading column */
@media (min-width: 861px) {
  .arena-home .hero-with-hills { --hero-w: min(1280px, calc(100vw - 40px)); width: var(--hero-w); margin-left: calc((100% - var(--hero-w)) / 2); padding-left: 24px; padding-right: 24px; box-sizing: border-box;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
  .hero-art { max-width: 540px; }
  .arena-home .hero h1 { font-size: clamp(38px, 4.3vw, 60px); max-width: none; line-height: 1.05; }
  .arena-home .hero-sub { font-size: clamp(17px, 1.45vw, 20px); max-width: 620px; }
  /* The tiles sit on the picture itself, so they move with it */
  .hero-side { justify-self: end; width: min(100%, 540px); }
  .hero-side .hero-tile.t0 { top: 0; left: -6%; right: auto; }
  .hero-side .hero-tile.t1 { top: 12%; right: -4%; }
  .hero-side .hero-tile.t2 { bottom: 2%; left: -6%; }
}

/* Phone header: a single row with a menu button; sections and tools fold out below */
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .topbar { height: 66px; overflow: visible; }
  .topbar-in { grid-template-columns: minmax(0, 1fr) auto; }
  .brand-pill { justify-self: start; }
  .topbar.is-open .sections, .topbar.is-open .tools { background: var(--card); box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 14%, transparent); }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; color: var(--ink); cursor: pointer; }
  .menu-toggle svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transform-origin: 12px 12px; transition: transform .25s ease, opacity .2s ease; }
  .topbar.is-open .menu-toggle .m-top { transform: translateY(5px) rotate(45deg); }
  .topbar.is-open .menu-toggle .m-mid { opacity: 0; }
  .topbar.is-open .menu-toggle .m-bot { transform: translateY(-5px) rotate(-45deg); }
  .sections, .tools { display: none; }
  .nav-blob { display: none; }
  .topbar.is-open .sections { display: flex; grid-column: 1 / -1; grid-row: 2; flex-direction: column; align-items: stretch; flex-wrap: nowrap; width: 100%; height: auto; padding: 8px; border-radius: 24px; overflow: visible; }
  .topbar.is-open .sections a { padding: 12px 16px; font-size: 15px; border-radius: 16px; }
  .topbar.is-open .sections a[aria-current=page] { background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .topbar.is-open .tools { display: flex; grid-column: 1 / -1; grid-row: 3; justify-self: stretch; justify-content: center; gap: 8px; }
  .topbar.is-open .tools .chip { font-size: 14px; padding: 10px 18px; }
}

/* Hero background: stepped pixel sheets rising across the top right (as on ValueArena), no glow */
.arena-home .hero-hills { top: 0; height: auto; }
.arena-home .hero-hills .pixel-hills { opacity: .9; }
/* The wordmark sat so low that the descender of the y was cut off */
.site-footer-wordmark { bottom: .02em; line-height: 1.12; }
.arena-home .hero-hills { --hill-1: #f1ebfa; --hill-2: #e5daf7; --hill-3: #f9dcc6; --hill-edge: #fbf9f4; }
:root[data-theme="dark"] .arena-home .hero-hills { --hill-1: #19142a; --hill-2: #221a3b; --hill-3: #3a2a20; --hill-edge: #3b2f63; }
.site-footer-wordmark { bottom: .08em; }

/* Corpus page: what the private Hugging Face dataset holds */
.corpus-tiles { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.corpus-tiles li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--line); }
.corpus-tiles strong { font: 600 26px/1.1 var(--font); letter-spacing: -.02em; }
.corpus-tiles span { font-size: 12.5px; color: var(--soft); line-height: 1.4; }
.corpus-sources { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.corpus-sources li { display: flex; gap: 8px; align-items: baseline; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.corpus-sources li span { font: 11px var(--mono); color: var(--soft); }
.corpus-sources li.src-ok { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.corpus-sources li.src-not_searched, .corpus-sources li.src-unavailable { border-style: dashed; }
.corpus-tree { display: grid; gap: 12px; margin-top: 12px; }
.ct-part { border: 1px solid var(--line); border-radius: 20px; background: var(--card-bg); padding: 4px 18px; }
.ct-part > summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 14px 0; }
.ct-part > summary::-webkit-details-marker { display: none; }
.ct-part > summary::before { content: "▸"; grid-row: span 2; color: var(--soft); transition: transform .2s ease; }
.ct-part[open] > summary::before { transform: rotate(90deg); }
.ct-name { font: 600 15px var(--mono); }
.ct-desc { grid-column: 2; font-size: 13px; color: var(--soft); }
.ct-part > summary .ct-meta { justify-self: end; grid-column: 2; grid-row: 1; }
.ct-meta { font: 11.5px var(--mono); color: var(--soft); white-space: nowrap; }
.ct-folder { border-top: 1px solid var(--line); padding: 10px 0 12px 22px; }
.ct-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ct-row code { font-size: 13px; overflow-wrap: anywhere; }
.ct-items { list-style: none; margin: 6px 0 0; padding: 0 0 0 14px; display: grid; gap: 6px; }
.ct-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; font-size: 13px; }
.ct-items code { font-size: 12.5px; overflow-wrap: anywhere; }
.ct-about { grid-column: 1 / -1; font-size: 12.5px; color: var(--soft); margin: 2px 0 0; }

/* Corpus charts */
.cv-legend { display: flex; gap: 16px; margin: 4px 0 10px; font-size: 13px; color: var(--soft); }
.cv-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cv-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.cv-card { border: 1px solid var(--line); border-radius: 22px; background: var(--card-bg); padding: 14px 12px 6px; }
.cv-svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.cv-head { font: 500 10.5px var(--mono); letter-spacing: .08em; fill: var(--soft); }
.cv-label { font-size: 13.5px; font-weight: 600; fill: var(--ink); }
.cv-label.is-off, .cv-sub.is-off { fill: var(--soft); font-weight: 500; opacity: .8; }
.cv-sub { font: 10.5px var(--mono); fill: var(--soft); }
.cv-big { font: 600 20px var(--font); fill: var(--ink); letter-spacing: -.02em; }
.cv-link { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-opacity: .55; stroke-linecap: round; }
.cv-src { fill: var(--accent); }
.cv-src-off { fill: none; stroke: var(--soft); stroke-dasharray: 2 2; }
.cv-ribbon { fill-opacity: .22; }
.cv-note { font-size: 13.5px; line-height: 1.6; color: var(--soft); max-width: 820px; margin: 10px 2px 0; }
.cv-list { display: none; list-style: none; padding: 0; margin: 0; }
.cv-list li { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.cv-list li:first-child { border-top: 0; }
.cv-list b { font-size: 18px; }
.cv-list span { width: 100%; font: 11px var(--mono); color: var(--soft); }
.cv-two { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 900px) { .cv-two { grid-template-columns: 1.15fr 1fr; } }
.cv-two section { border: 1px solid var(--line); border-radius: 22px; background: var(--card-bg); padding: 18px 20px; min-width: 0; }
.cv-two h3 { margin: 0 0 14px; font-size: 16px; }
.cv-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.cv-bars li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.cv-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.cv-bar i { display: block; height: 100%; }
.cv-bar-n { font: 600 12.5px var(--mono); text-align: right; white-space: nowrap; }
.cv-bar-n small { display: block; font-weight: 400; font-size: 10.5px; color: var(--soft); }
.cv-cols { display: flex; align-items: flex-end; gap: 8px; height: 220px; padding-top: 8px; }
.cv-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cv-col-n { font: 600 11px var(--mono); }
.cv-col-bar { flex: 1; width: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; border-radius: 6px 6px 2px 2px; overflow: hidden; }
.cv-col-bar i { display: block; width: 100%; }
.cv-col-label { font: 10.5px var(--mono); color: var(--soft); white-space: nowrap; }
.corpus-sources-wrap { display: none; }
@media (max-width: 700px) {
  .cv-svg { display: none; }
  .cv-list { display: block; }
  .corpus-sources-wrap { display: block; }
  .cv-bars li { grid-template-columns: 1fr auto; }
  .cv-bars .cv-bar { grid-column: 1 / -1; grid-row: 2; }
  .cv-col-label { font-size: 9px; transform: rotate(-35deg); transform-origin: center; }
}
.cv-lost { fill: var(--danger); opacity: .85; }

/* Corpus paper list */
.cl-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; align-items: center; }
.cl-controls input[type=search] { flex: 1 1 260px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card-bg); color: var(--ink); font: inherit; font-size: 14px; }
.cl-controls select { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card-bg); color: var(--ink); font: inherit; font-size: 13px; max-width: 100%; }
.cl-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--soft); }
.cl-count { font: 12px var(--mono); color: var(--soft); margin: 6px 2px; }
.cl-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.cl-paper { border: 1px solid var(--line); border-radius: 16px; background: var(--card-bg); padding: 12px 16px; }
.cl-paper[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.cl-paper > summary { cursor: pointer; list-style: none; display: grid; gap: 4px; }
.cl-paper > summary::-webkit-details-marker { display: none; }
.cl-title { font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.cl-meta { font-size: 12.5px; color: var(--soft); }
.cl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.cl-tag { font: 500 10.5px/1.2 var(--mono); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); white-space: nowrap; }
.cl-tag.t-lang { color: var(--ink); border-color: var(--line-strong); }
.cl-tag.t-first { color: #fff; background: #e0527a; border-color: #e0527a; }
.cl-tag.t-ft { color: #1f6b47; background: color-mix(in srgb, #2f9e6b 14%, transparent); border-color: color-mix(in srgb, #2f9e6b 40%, transparent); }
.cl-tag.t-noft { border-style: dashed; }
.cl-tag.t-out { opacity: .7; font-style: italic; }
.cl-tag.t-topic { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.cl-tag.t-src { font-size: 9.5px; opacity: .8; }
:root[data-theme="dark"] .cl-tag.t-ft { color: #8fd8b2; }
.cl-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 2px; font-size: 13px; }
.cl-facts dt { color: var(--soft); }
.cl-facts dd { margin: 0; overflow-wrap: anywhere; }
.cl-none { color: var(--soft); padding: 12px; }
@media (max-width: 600px) { .cl-facts { grid-template-columns: 1fr; } .cl-facts dt { margin-top: 6px; } }

/* Pipeline page: the planned next run */
.next-run { margin: 26px 0 34px; padding: 22px 24px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 26px; background: color-mix(in srgb, var(--card-bg) 70%, transparent); }
.next-run h2 { margin: 8px 0 6px; }
.next-run h3 { margin: 22px 0 10px; font-size: 16px; }
.nr-phases { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 900px) { .nr-phases { grid-template-columns: 1fr 1fr; } }
.nr-phase { border: 1px solid var(--line); border-radius: 20px; background: var(--card-bg); padding: 16px 18px; min-width: 0; }
.nr-phase-head { display: flex; align-items: center; gap: 10px; }
.nr-phase-head h3 { margin: 0; }
.nr-id { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: var(--bg); font: 600 13px var(--mono); }
.nr-nums { list-style: none; padding: 0; margin: 12px 0 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nr-nums li { display: flex; flex-direction: column; font-size: 11.5px; color: var(--soft); }
.nr-nums b { font: 600 16px var(--font); color: var(--ink); }
.nr-phase p { font-size: 13.5px; margin: 8px 0; }
.nr-cmds summary { cursor: pointer; font: 12px var(--mono); color: var(--accent); }
.nr-cmds pre { font-size: 11px; line-height: 1.6; overflow-x: auto; padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); white-space: pre; }
.nr-settings { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; margin: 0 0 12px; }
.nr-settings dt { color: var(--soft); }
.nr-settings dd { margin: 0; overflow-wrap: anywhere; }
.nr-table { overflow-x: auto; }
.nr-table table { font-size: 13px; min-width: 620px; }
.nr-table small { color: var(--soft); }
.nr-cols { display: grid; gap: 8px 24px; }
@media (min-width: 900px) { .nr-cols { grid-template-columns: 1fr 1fr; } }
.nr-gates, .nr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13.5px; }
.nr-list li::before { content: "→ "; color: var(--accent); }
.nr-gate span { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; font: 500 10.5px var(--mono); }
.nr-gate.g-ready span { background: color-mix(in srgb, #2f9e6b 16%, transparent); color: #1f6b47; }
.nr-gate.g-missing span { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
:root[data-theme="dark"] .nr-gate.g-ready span { color: #8fd8b2; }
@media (max-width: 600px) { .next-run { padding: 16px 14px; } .nr-settings { grid-template-columns: 1fr; } }

/* Home: a compact hero, with the corpus flow visible on arrival */
.brand-icon { width: 30px; height: auto; margin-right: -2px; image-rendering: pixelated; }
.arena-home .hero-with-hills { min-height: 0; }
.arena-home .hero .scroll-cue { display: none; }
@media (min-width: 861px) {
  .arena-home .hero-with-hills { padding-top: 26px; padding-bottom: 18px; gap: 40px; }
  .arena-home .hero h1 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 14px; }
  .arena-home .hero-sub { font-size: 16.5px; line-height: 1.6; margin-bottom: 20px; }
  .hero-art, .hero-side { max-width: 400px; }
  .hero-side .hero-tile { padding: 8px 13px; }
  .hero-side .hero-tile strong { font-size: 22px; }
  .hero-side .hero-tile span { font-size: 10px; }
}
.home-flow { position: relative; z-index: 1; width: min(1280px, calc(100vw - 40px)); margin: 0 0 34px calc((100% - min(1280px, calc(100vw - 40px))) / 2); padding: 0 24px; box-sizing: border-box; }
.home-flow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 4px; }
.home-flow-head h2 { margin: 0; font-size: 20px; }
.home-flow .cv-legend { margin: 0; align-items: center; }
.home-flow .cv-legend a { margin-left: 8px; font-size: 13px; }
.home-flow .cv-card { padding: 8px 10px 0; }
@media (max-width: 860px) { .home-flow { padding: 0; width: auto; margin: 0 0 26px; } }
@media (min-width: 861px) {
  .arena-home .hero-with-hills .hero-side { width: min(100%, 350px); max-width: 350px; }
  .arena-home .hero-with-hills .hero-art { max-width: 350px; }
  .arena-home .hero-with-hills { padding-top: 18px; padding-bottom: 10px; }
  .home-flow .cv-card { max-width: 980px; margin: 0 auto; }
  .home-flow-head { max-width: 980px; margin-left: auto; margin-right: auto; }
}
.nr-phase-head .nr-badge { margin-left: auto; font: 500 10.5px var(--mono); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--soft); }
.nr-phase.st-done .nr-badge { background: color-mix(in srgb, #2f9e6b 16%, transparent); border-color: transparent; color: #1f6b47; }
:root[data-theme="dark"] .nr-phase.st-done .nr-badge { color: #8fd8b2; }
.nr-actual { font-weight: 500; }

/* What we found: compact, technologies unfold on click */
.em-class.is-toggle { cursor: pointer; }
.em-class .em-hit { fill: transparent; transition: fill .2s ease; }
.em-class.is-toggle:hover .em-hit, .em-class.is-toggle:focus-visible .em-hit { fill: color-mix(in srgb, var(--accent) 7%, transparent); }
.em-class.is-open .em-hit { fill: color-mix(in srgb, var(--accent) 10%, transparent); }
.em-class:focus-visible { outline: none; }
.em-chev { fill: var(--accent); font-size: 11px; }
.em-hint { font: 11px var(--mono); fill: var(--soft); }
.em-link.is-faint { stroke-opacity: .12; }
.em-list details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 0; font-weight: 600; font-size: 15px; border-top: 1px solid var(--line); }
.em-list details > summary::-webkit-details-marker { display: none; }
.em-list details > summary::after { content: "▸"; margin-left: auto; color: var(--accent); transition: transform .2s; }
.em-list details[open] > summary::after { transform: rotate(90deg); }
.em-list-n { font: 400 11px var(--mono); color: var(--soft); }
.em-list h3 { display: none; }

/* Phone home: compact hero, illustration beside the headline */
@media (max-width: 860px) {
  .arena-home .hero-with-hills { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "art kicker" "art title" "sub sub" "cta cta" "tiles tiles"; column-gap: 12px; row-gap: 0; padding: 6px 0 18px; min-height: 0; align-items: center; }
  .arena-home .hero-copy, .arena-home .hero-side { display: contents; }
  .arena-home .hero-copy .record-type { grid-area: kicker; font-size: 9.5px; margin: 0; }
  .arena-home .hero h1 { grid-area: title; font-size: 24px; line-height: 1.12; margin: 2px 0 0; }
  .arena-home .hero-sub { grid-area: sub; font-size: 14.5px; line-height: 1.55; margin: 12px 0 14px; }
  .arena-home .hero .home-actions { grid-area: cta; display: flex; flex-wrap: wrap; gap: 8px; }
  .arena-home .hero .home-actions a { padding: 10px 14px; font-size: 13.5px; }
  .arena-home .hero-art { grid-area: art; width: 96px; margin: 0; align-self: start; }
  .arena-home .hero-tile { grid-area: auto; }
  .arena-home .hero-side .hero-tile { min-width: 0; padding: 8px 10px; flex-direction: column; gap: 2px; border-radius: 14px; }
  .arena-home .hero-side .hero-tile strong { font-size: 20px; }
  .arena-home .hero-side .hero-tile span { font-size: 9px; }
  .arena-home .hero-tiles { grid-area: tiles; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .home-flow-head h2 { font-size: 17px; }
}

/* From search to full text (dataviz: thin bars, 4px data ends, 2px surface gaps, labels in ink) */
:root { --lang-en: #7a4be0; --lang-zh: #f08a2c; }
:root[data-theme="dark"] { --lang-en: #9d7bf2; --lang-zh: #d9782b; }
.fx { display: grid; gap: 22px 40px; padding: 18px 20px 14px; }
@media (min-width: 900px) { .fx { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.fx-col h3 { margin: 0 0 12px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.fx-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-src li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 84px; align-items: center; gap: 10px; font-size: 13px; }
.fx-name { font-weight: 600; font-size: 13px; }
.fx-track { height: 10px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 5%, transparent); display: block; }
.fx-track.is-off { background: none; border: 1px dashed var(--line-strong); height: 8px; }
.fx-all { display: block; height: 100%; border-radius: 4px; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.fx-only { display: block; height: 100%; border-radius: 4px 0 0 4px; background: var(--accent); box-shadow: 2px 0 0 var(--card-bg); }
.fx-val { font: 600 12px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.fx-val small { display: block; font-weight: 400; font-size: 10px; color: var(--soft); }
.fx-src li.is-off .fx-name { color: var(--soft); font-weight: 500; }
.fx-key { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 11.5px; color: var(--soft); }
.fx-key i { display: inline-block; width: 14px; height: 8px; border-radius: 3px; margin-left: 6px; }
.fx-funnel { gap: 4px; }
.fx-stage { display: grid; gap: 4px; }
.fx-bar { position: relative; display: flex; align-items: center; gap: 2px; height: 22px; }
.fx-seg { display: block; height: 100%; min-width: 3px; }
.fx-seg:first-child { border-radius: 4px 0 0 4px; }
.fx-seg:nth-last-child(2) { border-radius: 0 4px 4px 0; }
.fx-seg:first-child:nth-last-child(2) { border-radius: 4px; }
.fx-n { margin-left: 8px; font: 600 15px var(--font); color: var(--ink); }
.fx-split { font: 11px var(--mono); color: var(--soft); }
.fx-drop { padding: 4px 0 4px 2px; font: 11px var(--mono); color: var(--soft); }
.fx-keep { margin: 14px 0 0; font-size: 13.5px; font-weight: 500; }
@media (max-width: 600px) { .fx { padding: 14px 12px; } .fx-src li { grid-template-columns: 92px minmax(0, 1fr) 70px; } }
.em-class:focus { outline: none; }
@media (max-width: 600px) {
  .fx-src li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "bar bar"; gap: 2px 10px; }
  .fx-src .fx-name { grid-area: name; } .fx-src .fx-val { grid-area: val; } .fx-src .fx-track { grid-area: bar; }
  .fx-val small { display: inline; margin-left: 6px; }
}
/* Desktop shows the ribbon flow; phones the stacked bars */
.fx-phone { display: none; }
.fx-sankey .cv-svg { display: block; }
.fx-sankey .cv-list { display: none; }
.fx-keep-row { margin: 4px 20px 14px; }
@media (max-width: 700px) { .fx-sankey { display: none; } .fx-phone { display: block; } }

/* Ribbon flow, restyled: slim bars, tinted ribbons, labels in ink */
.sk { font-family: var(--font); }
.sk-flow { fill: none; stroke-linecap: round; }
.sk-strand { stroke-width: .6; stroke-opacity: .35; transition: stroke-opacity .2s ease; }
.sk-edge { stroke-width: 1.25; stroke-opacity: .8; }
.sk-flow:hover .sk-strand { stroke-opacity: .7; }
.sk-stage { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--soft); }
.sk-n { font: 600 17px var(--font); letter-spacing: -.02em; fill: var(--ink); }
.sk-split { font: 11px var(--mono); fill: var(--soft); }
.sk-drop { font: 11px var(--mono); fill: var(--soft); }
.sk-link { fill: none; stroke: var(--line-strong); stroke-width: 1; opacity: .7; }
.sk-src { font-size: 13px; font-weight: 600; fill: var(--ink); }
.sk-src.is-off { font-weight: 500; fill: var(--soft); }
.sk-srcn { font: 11px var(--mono); fill: var(--soft); }
.sk-srcn.is-off { font-size: 10px; }
.sk-srcbar { fill: color-mix(in srgb, var(--accent) 45%, transparent); }
.fx-sankey { padding: 14px 18px 0; }
.fx-sankey .fx-keep-row { margin: 0 2px 14px; }

/* ===== Species page ===== */
.sp-page { display: grid; gap: 8px; }
.sp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding: 18px 0 26px; }
.sp-crumb { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin: 0 0 10px; }
.sp-crumb a { color: inherit; }
.sp-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; margin: 0; }
.sp-other { color: var(--soft); font-weight: 400; font-size: .62em; margin-left: .2em; }
.sp-sci { margin: 10px 0 0; color: var(--soft); font-size: 17px; }
.sp-status { margin: 16px 0 0; max-width: 56ch; line-height: 1.55; }
.sp-status { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sp-tiles { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sp-tiles li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--line); }
.sp-tiles strong { font: 600 24px/1.1 var(--font); letter-spacing: -.02em; }
.sp-tiles span { font-size: 12px; color: var(--soft); line-height: 1.35; }
.sp-art { margin: 0; display: grid; place-items: center; }
.sp-art img { width: 100%; max-width: 440px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 18px 28px color-mix(in srgb, var(--lang-en) 16%, transparent)); }
.sp-contents { margin-bottom: 8px; }
.sp-sec { padding: 26px 0 8px; scroll-margin-top: 80px; }
.sp-sec h2 { font-size: 26px; font-weight: 500; letter-spacing: -.015em; margin: 0 0 8px; }
.sp-sec h3 { font-size: 16px; margin: 26px 0 10px; }
.sp-lead { max-width: 68ch; color: var(--soft); line-height: 1.6; margin: 0 0 16px; }
.sp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0; }
.sp-facts div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-bg); }
.sp-facts dt { font: 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.sp-facts dd { margin: 4px 0 0; line-height: 1.45; }
.sp-verdict { display: flex; gap: 2px; height: 10px; max-width: 520px; margin: 4px 0 8px; }
.sp-verdict i, .sp-verdict-key i { display: block; border-radius: 4px; }
.v-sup { background: var(--accent); }
.v-par { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.sp-verdict-key { display: flex; gap: 18px; font-size: 12.5px; color: var(--soft); margin: 0 0 16px; }
.sp-verdict-key span { display: inline-flex; align-items: center; gap: 6px; }
.sp-verdict-key i { width: 10px; height: 10px; }
.sp-map { padding: 10px 10px 4px; }
.sp-map .graph-note { margin: 4px 8px 6px; font-size: 12px; color: var(--soft); }
.sp-table { overflow-x: auto; }
.sp-table table { width: 100%; }
.sp-table td { vertical-align: top; padding: 9px 10px; border-top: 1px solid var(--line); }
.sp-table th { text-align: left; font: 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); padding: 6px 10px; }
.sp-table td small { display: block; color: var(--soft); font-size: 11.5px; margin-top: 2px; }
.sp-chip { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); margin: 0 4px 4px 0; }
.sp-num { white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 150px; }
.sp-meter { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--line); margin-right: 8px; vertical-align: middle; overflow: hidden; }
.sp-meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.sp-papers { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.sp-papers li { line-height: 1.45; }
.sp-pmeta { display: block; font: 11px var(--mono); color: var(--soft); }
.sp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 14px; }
.sp-step { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0 12px 0; position: relative; }
.sp-step-n { font: 11px var(--mono); color: var(--soft); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; width: 28px; height: 28px; display: grid; place-items: center; margin-left: -15px; }
.sp-step.is-done .sp-step-n { background: var(--accent); color: #fff; border-color: var(--accent); }
.sp-step.is-in_progress .sp-step-n { border-color: var(--accent); color: var(--accent); }
.sp-step h3 { margin: 3px 0 4px; font-size: 15.5px; }
.sp-step p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.5; max-width: 70ch; }
.sp-step-badge { font: 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.sp-step-big { font: 600 22px/1 var(--font); letter-spacing: -.02em; padding-top: 4px; font-variant-numeric: tabular-nums; }
.sp-cards { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sp-card { display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: var(--card-bg); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--card-shadow); transition: transform .3s ease; }
.sp-card:hover { transform: translateY(-2px); }
.sp-card img { width: 100%; height: 170px; object-fit: contain; image-rendering: pixelated; }
.sp-card-body { display: grid; gap: 3px; }
.sp-card-body strong { font-size: 20px; font-weight: 600; }
.sp-card-body i { color: var(--soft); }
.sp-card-n { font: 11px var(--mono); color: var(--soft); margin-top: 4px; }
@media (max-width: 760px) {
  .sp-hero { grid-template-columns: 1fr; gap: 12px; padding-top: 6px; }
  .sp-art { order: -1; }
  .sp-art img { max-width: 210px; }
  .sp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-sec h2 { font-size: 22px; }
  .sp-step { grid-template-columns: 34px minmax(0, 1fr); }
  .sp-step-big { grid-column: 2; font-size: 18px; padding-top: 0; }
  .sp-num { min-width: 0; }
  .sp-meter { display: none; }
}
.sp-more { margin-top: 6px; }
.sp-more > summary { cursor: pointer; font-size: 13.5px; color: var(--accent); padding: 8px 0; list-style: none; }
.sp-more > summary::before { content: "+ "; font-family: var(--mono); }
.sp-more[open] > summary::before { content: "− "; }
.sp-more table { width: 100%; }
.sp-more .sp-papers { margin-top: 8px; }

/* ===== Moss theme: shaded stone (light) and charcoal green (dark), muted colours ===== */
:root {
  --bg: #E3E1D3; --card: #ECEADF; --card-bg: #ECEADF; --ink: #1D2318; --soft: #4F5649;
  --line: #CFCCB8; --line-strong: #B5B29C; --accent: #3F5F2A; --accent-soft: #D5DDC2; --danger: #A23E22;
  --band-sage: #DADEC9; --band-sand: #E6DECA; --band-clay: #E4D9CA; --band-mint: #D8DFD0;
  --hill-1: #D6DAC4; --hill-2: #C3CCAD; --hill-3: #D6BC9E; --hill-edge: #E3E1D3;
  --card-line: #1D231814; --footer-panel: #D8D5C4; --wordmark: #F1EFE4b3;
  --card-shadow: inset 0 1px 0 #ffffff4d, 0 10px 30px #2a2a1a12; --card-shadow-hover: inset 0 1px 0 #ffffff4d, 0 18px 40px #2a2a1a1f;
  --pattern: color-mix(in srgb, var(--ink) 14%, transparent);
  --lang-en: #2A67A4; --lang-zh: #B5562A;
  --on-accent: #F1EFE4;
}
:root[data-theme="dark"] {
  --bg: #181B15; --card: #20241C; --card-bg: #20241C; --ink: #DDDDCF; --soft: #A2A693;
  --line: #2F3529; --line-strong: #3A4033; --accent: #8DA371; --accent-soft: #2D3626; --danger: #D98A6A;
  --band-sage: #1C2118; --band-sand: #221F18; --band-clay: #211C18; --band-mint: #1A201B;
  --hill-1: #1F251B; --hill-2: #273021; --hill-3: #3A2C22; --hill-edge: #3F4A36;
  --card-line: #ffffff0d; --footer-panel: #1C2019; --wordmark: #ffffff12;
  --card-shadow: inset 0 1px 0 #ffffff08, 0 10px 30px #00000033; --card-shadow-hover: inset 0 1px 0 #ffffff08, 0 18px 40px #00000047;
  --pattern: color-mix(in srgb, var(--ink) 10%, transparent);
  --lang-en: #5C8ECE; --lang-zh: #C47448;
  --on-accent: #181B15;
}
.arena-home .hero-hills, :root[data-theme="dark"] .arena-home .hero-hills { --hill-1: var(--band-sage); --hill-2: var(--band-mint); --hill-3: var(--band-clay); --hill-edge: var(--bg); }
.hero-aurora { background:
    radial-gradient(ellipse 46% 64% at 88% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 38% 56% at 4% 96%, color-mix(in srgb, var(--lang-zh) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 34% 50% at 52% 104%, color-mix(in srgb, var(--lang-en) 10%, transparent), transparent 72%); }
.arena-home .hero h1 { background: linear-gradient(100deg, var(--ink) 30%, var(--accent) 70%, var(--lang-zh) 100%); -webkit-background-clip: text; background-clip: text; }
.hero-tile.t0 { --c: var(--lang-en); } .hero-tile.t1 { --c: var(--lang-zh); } .hero-tile.t2 { --c: var(--accent); }
.hero-art, .sp-art img { filter: drop-shadow(0 18px 28px color-mix(in srgb, var(--ink) 14%, transparent)); }
.funnel-bar i { background: linear-gradient(90deg, var(--accent), var(--lang-zh)); }
.ev-1 { fill: #B5562A; background: #B5562A; } .ev-2 { fill: #6E8F55; background: #6E8F55; } .ev-3 { fill: #3F5F2A; background: #3F5F2A; }
.button.primary, .sp-step.is-done .sp-step-n, .mc-n { color: var(--on-accent); }
.mc-n { fill: var(--on-accent); }
.home-actions .button-primary { color: var(--on-accent); }
.cl-tag.t-first { color: var(--on-accent); background: var(--lang-zh); border-color: var(--lang-zh); }
@media (min-width: 861px) { .arena-home .hero-with-hills .hero-art { max-width: 280px; } }

/* ===== Findings ===== */
.fd-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.fd { padding: 14px 16px 10px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--line); }
.fd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.fd-strength { font: 500 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--soft); }
.fd.s-agree .fd-strength { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.fd.s-mixed .fd-strength { color: var(--lang-zh); border-color: var(--lang-zh); }
.fd.s-against .fd-strength { color: var(--danger); border-color: var(--danger); }
.fd-head .sp-chip { margin: 0; }
.fd-practice { font-size: 12.5px; color: var(--soft); }
.fd-text { margin: 0; font-size: 15.5px; line-height: 1.5; }
.fd-text a { color: inherit; text-decoration: none; }
.fd-text a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.fd-meta { margin: 6px 0 0; font: 11.5px var(--mono); color: var(--soft); }
.fd-warn { color: var(--danger); }
.fd-claims { margin-top: 6px; }
.fd-claims > summary { cursor: pointer; font-size: 13px; color: var(--accent); padding: 4px 0; }
.fd-claims ol, .fd-claimlist { margin: 6px 0 4px; padding-left: 20px; display: grid; gap: 10px; }
.fd-claims li, .fd-claimlist li { font-size: 14px; line-height: 1.5; }
.fd-quote { margin: 4px 0 2px; padding: 4px 0 4px 10px; border-left: 2px solid var(--line-strong); color: var(--soft); font-size: 13px; }
.fd-src { display: block; font: 11px var(--mono); color: var(--soft); }
.fd-of { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
.fd-h { margin: 14px 0 8px; font-size: 14px; }
.fd-page h1 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; max-width: 60ch; }

/* ===== Draft actions ===== */
.ac-tabs { margin: 4px 0 12px; }
.ac-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.ac { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 14px 16px 10px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--line); }
.ac-rank { font: 600 18px/1.2 var(--font); color: var(--soft); font-variant-numeric: tabular-nums; }
.ac-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 4px; }
.ac-type { font: 500 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--soft); }
.ac.t-avoid .ac-type { color: var(--danger); border-color: var(--danger); }
.ac.t-adopt .ac-type { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.ac.t-test_on_farms .ac-type { color: var(--accent); border-color: var(--accent); }
.ac-who { font-size: 12.5px; color: var(--soft); }
.ac-draft { margin-left: auto; font: 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--soft); border: 1px dashed var(--line-strong); border-radius: 6px; padding: 1px 6px; }
.ac-text { margin: 0; font-size: 15.5px; line-height: 1.5; }
.ac-meta { margin: 6px 0 0; font: 11.5px var(--mono); color: var(--soft); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ac-meta .sp-chip { margin: 0; font-family: var(--font); }
.ac-score { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ac-score i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.ac-findings { margin: 6px 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.ac-note { margin: 6px 0 0; font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.ac-note b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .ac { grid-template-columns: 1fr; } .ac-rank { display: none; } .ac-draft { margin-left: 0; } }

/* ===== Long lists: index, filters, grouped or ranked ===== */
.br { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
.br-index { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow: auto; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card-bg); }
.br-index-h { margin: 0 0 6px; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.br-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.br-index a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.br-index a:hover { background: var(--accent-soft); }
.br-index b { font: 500 11.5px var(--mono); color: var(--soft); }
.br-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.br-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.br-f { display: grid; gap: 3px; font: 10.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.br-f select, .br-f input[type=search] { font: 14px var(--font); padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card-bg); color: var(--ink); min-width: 150px; }
.br-search input { min-width: 220px; }
.br-check { display: flex; align-items: center; gap: 6px; text-transform: none; font: 13px var(--font); color: var(--ink); padding-bottom: 8px; }
.br-count { margin: 10px 0; font: 12px var(--mono); color: var(--soft); }
.br-group { scroll-margin-top: 90px; margin-bottom: 18px; }
.br-group h3 { display: flex; align-items: baseline; gap: 8px; font-size: 17px; margin: 14px 0 10px; }
.br-group h3 span { font: 12px var(--mono); color: var(--soft); }
.br-gmore { background: none; border: 0; padding: 4px 0; color: var(--accent); font: 13.5px var(--font); cursor: pointer; }
.br-more { margin: 6px 0 20px; }
.br-none { color: var(--soft); }
.sp-contents { position: sticky; top: 76px; z-index: 5; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(6px); }
.sp-contents a[aria-current] { color: var(--accent); font-weight: 600; }
@media (max-width: 860px) {
  .br { grid-template-columns: 1fr; gap: 12px; }
  .br-index { position: static; max-height: none; padding: 8px; }
  .br-index ol { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; }
  .br-index a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
  .br-f select, .br-f input[type=search], .br-search input { min-width: 0; width: 100%; }
  .br-filters, .br-f { width: 100%; }
  .sp-contents { top: 70px; overflow-x: auto; flex-wrap: nowrap; }
  .sp-contents a { white-space: nowrap; }
}
.br-fbox > summary { display: none; }
.br-fbox { flex: 1 1 auto; }
.sp-contents { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sp-contents a, .sp-contents > span { white-space: nowrap; flex: none; }
@media (max-width: 860px) {
  .br-fbox > summary { display: list-item; cursor: pointer; font: 13px var(--font); color: var(--accent); padding: 6px 0; }
  .br-fbox[open] > summary { margin-bottom: 8px; }
  .br-fbox { width: 100%; }
}

/* ===== Compact right side of the navbar ===== */
.tools { gap: 2px; padding: 4px; }
.tools .chip { min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; font-size: 13px; }
#theme-toggle { width: 40px; padding: 0; }
.sections a { padding-left: 11px; padding-right: 11px; }

/* ===== Pipeline diagram ===== */
.pl-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; margin: 8px 0 6px; }
.pl-tiles { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-art { width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 14px 22px color-mix(in srgb, var(--ink) 14%, transparent)); }
.pl-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--soft); margin: 14px 0 6px; }
.pl-key span { display: inline-flex; align-items: center; gap: 6px; }
.pl-asof { margin-left: auto; font-family: var(--mono); }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.pl-sq { width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--soft); display: inline-block; }
.pl-lanes { display: grid; gap: 18px; margin: 10px 0 24px; }
.pl-lane { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; }
.pl-lane-h { margin: 14px 0 0; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.pl-lane-h span { font: 11px var(--mono); color: var(--soft); }
.pl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px 22px; }
.pl-step { position: relative; }
.pl-step:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 34px; color: var(--line-strong); font-size: 14px; }
.pl-card { width: 100%; text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card-bg); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.pl-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.pl-card[aria-expanded="true"] { border-color: var(--accent); }
.pl-num { font: 10.5px var(--mono); color: var(--soft); }
.pl-name { font-weight: 600; font-size: 14.5px; }
.pl-out { font: 600 22px/1.15 var(--font); letter-spacing: -.02em; margin-top: 4px; }
.pl-outl { font-size: 12px; color: var(--soft); }
.pl-in { font-size: 11.5px; color: var(--soft); }
.pl-tag { margin-top: 6px; font: 11px var(--mono); color: var(--soft); display: inline-flex; align-items: center; gap: 5px; }
.k-model .pl-tag { color: var(--accent); }
.is-planned .pl-card { border-style: dashed; background: transparent; }
.pl-planned { font-size: 15px; color: var(--soft); }
.pl-detail { padding: 10px 4px 0; font-size: 13.5px; line-height: 1.5; }
.pl-detail p { margin: 0 0 6px; }
.pl-scores { font-size: 12.5px; margin-top: 6px; width: 100%; }
.pl-scores td, .pl-scores th { padding: 3px 6px; text-align: left; }
.pl-fold { margin: 10px 0; border-top: 1px solid var(--line); padding-top: 10px; }
.pl-fold > summary { cursor: pointer; font-size: 15px; font-weight: 600; padding: 6px 0; }
@media (max-width: 860px) {
  .pl-top { grid-template-columns: 1fr; }
  .pl-art { max-width: 240px; justify-self: center; order: -1; }
  .pl-lane { grid-template-columns: 1fr; gap: 6px; }
  .pl-lane-h { flex-direction: row; gap: 8px; align-items: baseline; margin: 0; }
  .pl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pl-step::after { display: none; }
  .pl-asof { margin-left: 0; }
}
.pl-step::after { display: none; }
.pl-panel { margin-top: 10px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--accent); background: var(--card-bg); font-size: 14px; line-height: 1.55; max-width: 760px; }
.pl-panel p { margin: 0 0 6px; }
.pl-panel-h { font: 11px var(--mono); color: var(--soft); text-transform: uppercase; letter-spacing: .05em; }

/* ===== Transitions ===== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes my-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes my-fade { from { opacity: 0; } to { opacity: 1; } }
  /* A new page rises in; its first blocks follow one after another. */
  #content.is-enter > *, #content.is-enter > .narrow > * { animation: my-rise .38s cubic-bezier(.2, .7, .2, 1) both; }
  #content.is-enter > :nth-child(2), #content.is-enter > .narrow > :nth-child(2) { animation-delay: .04s; }
  #content.is-enter > :nth-child(3), #content.is-enter > .narrow > :nth-child(3) { animation-delay: .08s; }
  #content.is-enter > :nth-child(n+4), #content.is-enter > .narrow > :nth-child(n+4) { animation-delay: .12s; }
  /* Opening a fold, a step's details or a filtered list fades the new content in. */
  details[open] > :not(summary) { animation: my-fade .25s ease both; }
  .pl-panel:not([hidden]), [data-b-list] > *, [data-ac-pane]:not([hidden]) { animation: my-rise .25s ease both; }
  .br-index li, .fd, .ac, .pl-card, .sp-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
  .fd:hover, .ac:hover { border-color: var(--line-strong); }
  .graph-tabs button, .br-views button, .ac-tabs button { transition: background-color .25s ease, color .25s ease; }
  .fd-claims > summary, .sp-more > summary, .pl-fold > summary, .br-fbox > summary { transition: color .2s ease; }
  .sp-contents a { transition: color .2s ease; }
}
@media (max-width: 860px) { .pl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Compact rows that open to the full card ===== */
.fd, .ac { padding: 0; display: block; }
.row > .row-sum { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; }
.ac .row > .row-sum { grid-template-columns: 22px auto minmax(0, 1fr) auto; }
.row > .row-sum::-webkit-details-marker { display: none; }
.row-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.row[open] > .row-sum .row-line { white-space: normal; font-size: 15.5px; line-height: 1.5; }
.row-n { font: 11.5px var(--mono); color: var(--soft); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.row-sum::after { content: "▸"; color: var(--soft); font-size: 11px; margin-left: 2px; transition: transform .2s ease; grid-column: auto; }
.row > .row-sum { grid-auto-flow: column; }
.row[open] > .row-sum::after { transform: rotate(90deg); }
.row > .row-sum:hover .row-line { color: var(--accent); }
.row-body { padding: 0 14px 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.row-body .fd-head, .row-body .ac-head { margin-bottom: 4px; }
.ac .ac-rank { font-size: 14px; }
.fd-list, .ac-list { gap: 6px; }
.br-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.br-expand { background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font: 12.5px var(--font); color: var(--ink); cursor: pointer; }
.br-expand[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) {
  .row > .row-sum, .ac .row > .row-sum { grid-template-columns: auto minmax(0, 1fr); grid-auto-flow: row; }
  .row-line { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; grid-column: 1 / -1; }
  .ac .ac-rank { display: inline; }
  .row-sum::after { display: none; }
}
.row[open] > .row-sum { align-items: start; }
.row[open] > .row-sum .fd-strength, .row[open] > .row-sum .ac-type { margin-top: 2px; }
@media (max-width: 760px) {
  .row > .row-sum, .ac .row > .row-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
  .row > .row-sum .row-line { flex: 1 1 100%; order: 3; }
  .row > .row-sum .row-n { order: 4; }
  .row > .row-sum .ac-type, .row > .row-sum .fd-strength { flex: none; }
}

/* ===== Separation between sections as you scroll ===== */
/* Species page: each section is its own full-width band, tinted every other one, with its number above the heading. */
.sp-page { counter-reset: spsec; }
.sp-sec { position: relative; isolation: isolate; counter-increment: spsec; padding: 48px 0 40px; margin: 0; }
.sp-sec::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); border-top: 1px solid var(--line); }
.sp-sec:nth-of-type(even)::before { background: linear-gradient(180deg, transparent, var(--sp-band) 14%, var(--sp-band) 86%, transparent); }
.sp-sec:nth-of-type(4n+2) { --sp-band: color-mix(in srgb, var(--band-sage) 70%, transparent); }
.sp-sec:nth-of-type(4n) { --sp-band: color-mix(in srgb, var(--band-sand) 70%, transparent); }
.sp-sec > h2::before { content: counter(spsec, decimal-leading-zero); display: block; font: 500 11px var(--mono); letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }
/* Findings and Actions pages: the group's title stays at the top while you scroll through it. */
.br-group > h3 { position: sticky; top: 74px; z-index: 3; margin: 0 0 10px; padding: 10px 0 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.br-group + .br-group { margin-top: 26px; }
/* Pipeline: a hairline and more air between lanes. */
.pl-lane + .pl-lane { border-top: 1px solid var(--line); padding-top: 18px; }
/* Fade in as each block reaches the screen. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.2, .7, .2, 1), transform .55s cubic-bezier(.2, .7, .2, 1); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .sp-sec { padding: 36px 0 30px; }
  .br-group > h3 { top: 68px; font-size: 15px; }
}
.load-skel { display: grid; gap: 12px; padding: 24px 0; max-width: 760px; }
.load-skel i { display: block; height: 56px; border-radius: 16px; background: linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--line) 40%, transparent) 50%, var(--line) 100%); background-size: 200% 100%; opacity: .6; }
@media (prefers-reduced-motion: no-preference) { .load-skel i { animation: my-shimmer 1.4s ease-in-out infinite; } @keyframes my-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } } }
