/* modern.css — 2026-09 refresh layered over style.css.
 * Register borrowed from quaesitor.eu (same author): flat exhibit panels,
 * square corners, one grotesk for everything, mono only for what a machine
 * produced (data, labels, footnotes), and the asterisk rule — a strong claim
 * ends with * and a mono note on the page backs it. Palette stays the atlas's
 * own: navy / cream / oxblood.
 */

:root {
  --font-display: "Fraunces", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --paper: #16211c;
  --topbar-h: 56px;
  --container: 1120px;
  --t-micro: 0.6875rem;
}

html { scroll-padding-top: calc(var(--topbar-h) + 12px); }
body { font-weight: 400; letter-spacing: 0; line-height: 1.55; }

/* ---- type ---- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); line-height: 1.05; }
h3 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); line-height: 1.15; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
em { font-style: italic; }

/* mono stays only for source lines, footnotes, the masthead credibility
   line, table numbers and code (task 12, mono discipline) */
th {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
/* everything else that reads as a "kicker" is sans small caps, not mono —
   metric shorthand and codes belong in chapter IV or a title tooltip, not
   in the typeface used to signal "a machine produced this" */
.masthead-kicker, .hero-kicker, .role-kicker, .cluster-tactical-label,
.cycle-section-label, .analog-label, .roadmap-label, .llm-brief-heading,
.toc-sticky .toc-heading, .cluster-meta-inline, .masthead-meta dt,
.cycle-stats dt, .video-poc-metrics dt, .analog-cohort, .cycle-cluster-tag,
.analog-traj-label, .cycle-traj-dir, .toc-mobile summary, .tile-club, .tile-pos {
  font-family: var(--font-sans);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-kicker { color: var(--cream-on-navy-muted); }
.cluster-tactical-label, .cycle-section-label, .llm-brief-heading, .analog-label, .roadmap-label { color: var(--navy-700); }
.masthead-kicker::before, .hero-kicker::before { display: none; }
.masthead-kicker, .hero-kicker { padding-left: 0; }

/* human-written small labels stay sentence case */
h4, .movers-col h4 { text-transform: none; letter-spacing: -0.01em; font-family: var(--font-display); font-size: 1rem; color: var(--ink); }

/* observations are not a sequence */
.observation::before { content: none; }

/* links */
a { border-bottom: none; text-decoration: none; color: var(--navy-700); }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

/* ---- square everything (bust-style circles only for people) ---- */
.hero, .hero-stamp, .chapter-divider, .capita, .capita-bar, .capita-bar-fill, table, .observation,
.cluster-tactical, .llm-brief, .analog-target, .analog-list, .analog-rank,
.cycle-card, .cycle-stats, .cycle-traj-delta, .video-poc, .video-poc img,
.video-poc-metrics, .roadmap-mockup, .limitations, .toc-sticky, .toc-mobile, .toc-toggle, footer .role-block,
.cycle-analog-country, .analog-row-country, figure.figure-bleed img, .lang-switch, .lang-switch a, .lang-switch span,
.atlas-switch, .atlas-switch a, .atlas-switch span,
.pchip, .cast, .topbar-links a { border-radius: 0 !important; }

/* =========================================================================
   Top bar — flat, ruled
   ========================================================================= */
.topbar {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; gap: var(--space-4);
  height: var(--topbar-h);
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: var(--cream-50);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-sans);
}
.topbar a { text-decoration: none; }
.topbar-brand { font-weight: 700; letter-spacing: -0.01em; color: var(--ink); font-size: 1.05rem; white-space: nowrap; }
.topbar-brand span { color: var(--oxblood-700); }
.topbar-links { display: none; gap: 0.25rem; margin-left: var(--space-2); }
.topbar-links a { color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; padding: 0.35rem 0.7rem; }
.topbar-links a:hover { background: var(--ink); color: var(--cream-50); text-decoration: none; }
@media (min-width: 720px) { .topbar-links { display: flex; } }
.atlas-switch, .lang-switch {
  display: inline-flex;
  border: 1px solid var(--ink);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
}
.atlas-switch { margin-left: auto; }
.lang-switch { margin-left: 0.4rem; }
.atlas-switch a, .atlas-switch span, .lang-switch a, .lang-switch span { padding: 0.4rem 0.75rem; color: var(--ink); line-height: 1; }
.atlas-switch span[aria-current], .lang-switch span[aria-current] { background: var(--ink); color: var(--cream-50); }
.atlas-switch a:hover, .lang-switch a:hover { background: var(--cream-200); text-decoration: none; }

/* =========================================================================
   Masthead
   ========================================================================= */
.report-header { padding-top: var(--space-6); border-bottom: 1px solid var(--rule); }
.report-header h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.4rem);
  line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; max-width: 14ch;
}
.report-header h1 em { font-style: normal; color: var(--navy-700); font-weight: 400; }
.masthead-subtitle { font-family: var(--font-sans); font-style: normal; font-size: 1.15rem; line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }
.masthead-meta { border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.masthead-meta strong { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }

.cast {
  display: inline-flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-4); padding: 0.45rem 1rem 0.45rem 0.5rem;
  background: var(--paper); border: 1px solid var(--rule);
  text-decoration: none; color: var(--ink-soft); font-size: 0.88rem; font-weight: 500;
  transition: transform 0.2s, border-color 0.2s;
}
.cast:hover { transform: translateY(-2px); border-color: var(--ink); text-decoration: none; }
.cast-stack { display: inline-flex; }
.cast-stack img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
  background: var(--navy-100); border: 2px solid var(--paper); margin-left: -12px;
}
.cast-stack img:first-child { margin-left: 0; }

/* =========================================================================
   Hero — the exhibit: number left, posterised player cut-out bleeding right
   ========================================================================= */
.hero { position: relative; overflow: hidden; }
.hero-num-figure { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.05em; font-size: clamp(4.5rem, 8.5vw, 9.5rem); }
.hero-num-figure .ast { color: var(--oxblood-700); font-size: 0.55em; vertical-align: super; margin-left: 0.05em; }
.hero-lead p { font-family: var(--font-sans); font-size: 1.3rem; line-height: 1.35; font-weight: 400; letter-spacing: -0.01em; }
.hero-pull { color: var(--oxblood-700); font-weight: 700; }
.hero-footnote {
  margin: var(--space-3) 0 0; max-width: 60ch;
  font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.6; color: var(--cream-on-navy-muted);
}
.hero-footnote a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
.hero-cutout {
  position: absolute; right: 0; bottom: 0; z-index: 0;
  height: min(60%, 360px);
  filter: grayscale(1) contrast(1.55) brightness(0.95);
  opacity: 0.9;
  mix-blend-mode: luminosity;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.hero > .container { position: relative; z-index: 1; }
@media (max-width: 1100px) { .hero-cutout { height: 40%; opacity: 0.45; } }
.hero-stamp { border: 1px solid var(--navy-divider); background: var(--navy-900); }

/* =========================================================================
   Sections & chapters
   ========================================================================= */
section { border-bottom: 1px solid var(--rule); }
.framing { font-family: var(--font-sans); font-style: normal; font-size: 1.25rem; line-height: 1.45; color: var(--ink-soft); max-width: 46ch; }
.chapter-divider { background: var(--navy-900); }
.chapter-numeral { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.16em; font-size: 0.8rem; color: var(--cream-on-navy-muted); }
.chapter-title { font-weight: 700; letter-spacing: -0.03em; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.chapter-synopsis { font-family: var(--font-mono); font-style: normal; font-size: 0.78rem; line-height: 1.6; color: var(--cream-on-navy-muted); max-width: 56ch; }
.continue { font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); }

/* =========================================================================
   Exhibit panels — flat paper, 1px rule, mono label
   ========================================================================= */
.capita, .observation, .llm-brief, .analog-target, .cycle-card, .video-poc, .roadmap-mockup, .limitations, .cluster-tactical, .toc-mobile {
  background: var(--paper); border: 1px solid var(--rule); box-shadow: none;
}
.capita { padding: var(--space-3) var(--space-4); }
.capita-bar-fill { transform-origin: left; transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.capita[data-animate] .capita-bar-fill { transform: scaleX(0); }
.capita[data-animate="in"] .capita-bar-fill { transform: scaleX(1); }
.capita-value { font-family: var(--font-mono); font-weight: 500; }
.capita-country .capita-code { font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: 0.1em; }

table { border: 1px solid var(--rule); background: var(--paper); }
th { border-bottom: 1px solid var(--ink); }
.cohort-table td.cohort-cze { background: color-mix(in oklch, var(--oxblood-200), transparent 45%); }

figure.figure-bleed img { border: 1px solid var(--rule); background: var(--paper); padding: 0.5rem; }
figcaption { font-family: var(--font-mono); font-style: normal; font-size: 0.72rem; line-height: 1.6; color: var(--muted); }

.observations { gap: var(--space-4); }
.observation { padding: var(--space-4); border-top: 3px solid var(--navy-700); }
.observation:nth-child(2) { border-top-color: var(--oxblood-700); }
.observation:nth-child(3) { border-top-color: var(--navy-300); }

.cluster-tactical { font-style: normal; font-family: var(--font-sans); padding: var(--space-3) 0; border-top: 1px solid var(--rule); }

/* =========================================================================
   Player chips & avatars — the bust rule: people are circles
   ========================================================================= */
.pchip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.2rem 0.7rem 0.2rem 0.2rem; margin: 0.2rem 0.35rem 0.2rem 0;
  background: var(--paper); border: 1px solid var(--rule);
  font-family: var(--font-sans); font-size: 0.86rem; font-weight: 500; color: var(--ink); line-height: 1; vertical-align: middle;
}
.pchip-img, .pchip-initials { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.pchip-img { object-fit: cover; object-position: 50% 12%; background: var(--navy-100); }
.pchip-initials { display: none; place-items: center; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; color: var(--navy-700); background: var(--navy-100); }
.pchip-mono .pchip-initials { display: grid; }
.pchip-sm { font-size: 0.82rem; padding-right: 0.55rem; border: 0; background: transparent; margin: 0; }
.pchip-sm .pchip-img, .pchip-sm .pchip-initials { width: 26px; height: 26px; }
.cluster-top { display: block; line-height: 1.2; }
.cluster-top::before { display: inline-block; margin-right: 0.4rem; vertical-align: middle; font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.avatar { border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--navy-100); flex: none; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 88px; height: 88px; }

/* LLM briefs */
.llm-brief { padding: var(--space-4); }
.llm-brief-head { display: flex; align-items: center; gap: var(--space-3); border-bottom: 1px solid var(--rule); padding-bottom: var(--space-3); margin-bottom: var(--space-2); }
.llm-brief-title { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.llm-brief-meta-line { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); margin: 0.15rem 0 0; }

/* analogs */
.analog-target { padding: var(--space-4); }
/* the grid tracks must shrink below the min-content of the analog rows on phones */
.analog-block { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .analog-block { grid-template-columns: 220px minmax(0, 1fr); } }
.analog-block > * { min-width: 0; }
.analog-target .avatar { margin-bottom: var(--space-2); }
.analog-name { font-size: 1.4rem; letter-spacing: -0.02em; }
.analog-stats { font-family: var(--font-mono); font-size: 0.74rem; }

/* =========================================================================
   Cycle cards — the one loud element: photo header, then a flat data sheet
   ========================================================================= */
.cycle-grid { gap: var(--space-4); }
.cycle-card { position: relative; padding: 0; overflow: hidden; transition: transform 0.2s; }
.cycle-card:hover { transform: translateY(-2px); }
.cycle-card > :not(.cycle-card-visual):not(.cycle-tile) { margin-left: var(--space-4); margin-right: var(--space-4); }
.cycle-card > .cycle-section:last-child { margin-bottom: var(--space-4); }
/* .gk-card-visual (task 24): same header treatment as the outfield cards'
   .cycle-card-visual, kept as its own class since it sits inside .gk-card,
   not .cycle-card -- see site/enrich_index.py's gk_card_repl comment. */
.cycle-card-visual, .gk-card-visual {
  position: relative; height: 190px; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 100%, oklch(0.83 0.17 78 / 0.16), transparent 55%),
              linear-gradient(160deg, var(--navy-900), var(--navy-700));
}
.cycle-card-visual::before, .gk-card-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero); background-size: cover; background-position: 50% 30%;
  filter: grayscale(1) contrast(1.15) brightness(0.85) blur(6px);
  transform: scale(1.08);
  mix-blend-mode: luminosity; opacity: 0.28;
}
.cycle-card-visual::after, .gk-card-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, oklch(0.12 0.02 165 / 0.85)); }
.cycle-card-mug { position: absolute; right: 12px; bottom: 0; height: 178px; z-index: 2; filter: drop-shadow(0 12px 18px oklch(0.08 0.02 165 / 0.7)); }
.cycle-card-jersey {
  position: absolute; left: 18px; bottom: -14px; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 7rem; line-height: 1; letter-spacing: -0.06em;
  color: color-mix(in oklch, var(--cream-on-navy), transparent 86%); pointer-events: none;
}
.cycle-card-team {
  position: absolute; top: 14px; left: 18px; z-index: 2;
  font-family: var(--font-mono); font-size: var(--t-micro); font-weight: 500; letter-spacing: 0.16em;
  color: var(--navy-900); background: var(--oxblood-700); padding: 0.25rem 0.55rem;
}
.cycle-card-head { margin-top: var(--space-4); }
.cycle-card-name { font-size: 1.5rem; letter-spacing: -0.025em; }
.cycle-card-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); }
.cycle-stats { background: var(--cream-100); padding: var(--space-2) var(--space-3); border: 1px solid var(--rule); }
.cycle-stats dd { font-family: var(--font-mono); font-weight: 500; }
.cycle-brief-excerpt { font-style: normal; color: var(--ink-soft); }

/* video / roadmap / limitations */
.video-poc { padding: var(--space-4); }
.roadmap-mockup { padding: var(--space-4); }
.roadmap-caption { font-style: normal; }
.limitations { padding: var(--space-4) var(--space-5); }

/* =========================================================================
   TOC rail
   ========================================================================= */
@media (min-width: 1280px) {
  .toc-sticky {
    top: calc(var(--topbar-h) + 1.25rem); right: 1.25rem; width: 200px;
    background: var(--paper); border: 0; border-left: 1px solid var(--rule); box-shadow: none;
    max-height: calc(100vh - var(--topbar-h) - 3rem);
  }
  :root { --container: min(1120px, calc(100vw - 2 * (200px + 3rem))); }
  .toc-sticky li > a { text-decoration: none; padding: 0.15rem 0.4rem; margin-left: -0.4rem; }
  .toc-sticky li > a[aria-current="true"] { background: var(--ink); color: var(--cream-50); }
  .toc-sticky li > a:hover { background: var(--cream-200); text-decoration: none; }
}
.toc-mobile { padding: var(--space-2) var(--space-3); }

/* footer */
.role-author-name { font-family: var(--font-display); font-weight: 700; }
.rendered-at { font-family: var(--font-mono); font-size: 0.72rem; }

:focus-visible { outline: 2px solid var(--oxblood-500); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .capita[data-animate] .capita-bar-fill { transform: none; }
  .cycle-card:hover, .cast:hover { transform: none; }
}

/* hero layout: text keeps the left 60 %, the cut-out owns the right */
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-6); padding-right: 260px; }
  .hero-lead p { font-size: 1.25rem; max-width: 30ch; }
  .hero-cutout { height: min(64%, 380px); right: calc((100vw - var(--container)) / 2 - 1rem); }
}

/* formulas: KaTeX display, mono fallback until it renders */
.formula { font-family: var(--font-mono); font-size: 0.85rem; background: var(--paper); border: 1px solid var(--rule); padding: var(--space-3) var(--space-4); max-width: none; overflow-x: auto; }
.formula.formula-tex { font-family: KaTeX_Main, "Times New Roman", serif; font-size: 1.05rem; }
.formula .katex-display { margin: 0; }

/* =========================================================================
   Interactive atlases (atlas.js)
   ========================================================================= */
.atlas-wrap { position: relative; border: 1px solid var(--rule); background: var(--paper); padding: 0.5rem; }
.atlas-svg { display: block; width: 100%; height: auto; }
.atlas-pt { cursor: crosshair; transition: opacity 0.25s; }
.atlas-hl { stroke: var(--oxblood-700); pointer-events: none; }
.atlas-name { cursor: default; }
.atlas-name-card { cursor: pointer; }
.atlas-name-card:hover path, .atlas-name-card:focus-visible path { fill: var(--oxblood-700); }
.atlas-name:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.atlas-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0 0 0.6rem; }
.atlas-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.6rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 0.78rem; line-height: 1; cursor: pointer;
}
.atlas-chip b { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; }
.atlas-chip small { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); margin-left: 0.15rem; }
.atlas-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.atlas-chip i.ring { background: none; border: 1.5px solid var(--oxblood-700); }
.atlas-chip[aria-pressed="false"] { color: var(--muted); border-style: dashed; }
.atlas-chip[aria-pressed="false"] i { opacity: 0.25; }
.atlas-chip:hover { border-color: var(--ink); }
.atlas-chip-reset { color: var(--muted); }
.atlas-hint { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--muted); margin-left: auto; }
.atlas-tip {
  position: absolute; z-index: 5; pointer-events: none;
  min-width: 150px; max-width: 260px; padding: 0.5rem 0.65rem;
  background: var(--navy-900); color: var(--cream-on-navy); border: 1px solid var(--navy-divider);
  font-family: var(--font-sans); font-size: 0.8rem; line-height: 1.4;
}
.atlas-tip strong { display: block; font-size: 0.95rem; letter-spacing: -0.01em; margin-bottom: 0.15rem; }
.atlas-tip span { display: flex; align-items: center; gap: 0.4rem; color: var(--cream-on-navy-soft); }
.atlas-tip span i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.atlas-tip .mono { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; }
.atlas-tip .ring-tag { color: var(--oxblood-700); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.atlas-tip .tip-open { color: var(--oxblood-700); font-size: 0.72rem; margin-top: 0.2rem; }
.hm-cell { fill: transparent; stroke: none; cursor: crosshair; }
.hm-cell.on { stroke: var(--oxblood-700); stroke-width: 1.5; fill: oklch(0.83 0.17 78 / 0.12); }
.hm-row { fill: oklch(0.80 0.06 200 / 0.08); pointer-events: none; }
.cycle-card.flash { outline: 2px solid var(--oxblood-700); outline-offset: 3px; }

/* figures: no bleed under the TOC rail; captions get a readable measure */
@media (min-width: 1280px) {
  .figure-bleed { margin-left: clamp(-3rem, calc(-1 * (100vw - var(--container)) / 2 + 200px + 3rem), 0px); margin-right: clamp(-3rem, calc(-1 * (100vw - var(--container)) / 2 + 200px + 3rem), 0px); }
  .figure-bleed figcaption { padding-left: 0; padding-right: 0; }
}
.figure-bleed figcaption { max-width: 70ch; }
.atlas-tip strong { color: var(--cream-on-navy); }

/* wide data tables scroll inside their own box on narrow screens */
@media (max-width: 760px) {
  .loadings-table, .sensitivity-table, .cohort-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .atlas-hint { display: none; }
}
.formula .katex-display { overflow-x: auto; overflow-y: hidden; padding: 0.25rem 0; }

/* figure-bleed below the rail breakpoint: the original calc turns positive on
   narrow viewports and collapses the figure — keep it flush with the column */
@media (max-width: 1279px) {
  .figure-bleed { margin-left: 0; margin-right: 0; }
  .figure-bleed figcaption { padding-left: 0; padding-right: 0; }
}

/* formatting pass 2026-09-12 */
/* chapter bands go full-bleed; text stays centred in a measure */
.chapter-divider { max-width: none; margin: 0; padding: var(--space-7) max(1.4rem, 4vw) var(--space-6); }
.chapter-title { color: var(--cream-on-navy); max-width: 22ch; margin: 0 auto; }
.chapter-mark { background: var(--oxblood-500); }
/* movers: names and headers on one line, league codes as codes */
.movers-table { width: 100%; }
.movers-table th, .movers-table .pchip-name { white-space: nowrap; }
.movers-table td:nth-child(2) { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.movers-table td:nth-child(3) { font-family: var(--font-mono); font-size: 0.78rem; white-space: nowrap; }
/* notes under exhibits: one consistent small size */
.capita-note, .muted.small { font-size: 0.88rem; line-height: 1.5; max-width: 64ch; }
.kv-table td:first-child, .sensitivity-table td:first-child { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* folds: progressive disclosure — text stays, screen gets lighter */
details.fold { border-top: 1px solid var(--rule); margin-top: var(--space-3); }
details.fold > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0; font-family: var(--font-mono); font-size: var(--t-micro); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy-700);
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border: 1px solid currentColor; font-size: 0.8rem; line-height: 1; }
details.fold[open] > summary::before { content: "−"; }
details.fold > summary:hover { color: var(--oxblood-700); }
details.fold > :not(summary) { animation: fold-in 0.25s ease-out; }
@keyframes fold-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
details.fold-lim { margin-top: 0; }
details.fold-lim:first-child { border-top: 0; }
details.fold-lim > summary { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; text-transform: none; color: var(--ink); padding: 0.85rem 0; }
details.fold-lim > p { margin: 0 0 var(--space-3) 1.7rem; max-width: 62ch; }
.cycle-card details.cycle-section { margin-top: var(--space-3); }
.cycle-card details.cycle-section > summary.cycle-section-label { padding: 0.6rem 0; margin: 0; }
.video-poc details.fold .roadmap-caption { margin: 0 0 var(--space-3); max-width: 70ch; }
/* clusters: description and tactical read side by side */
@media (min-width: 900px) {
  .cluster-list dd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: var(--space-5); align-items: start; }
  .cluster-list dd .cluster-tactical { margin-top: 0; }
  .cluster-list dd .cluster-top { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { details.fold > :not(summary) { animation: none; } }

/* =========================================================================
   UX pass 2026-09-12 (b): numbers over prose, folds, mobile
   ========================================================================= */
.fold-hero { border-top-color: var(--navy-divider); }
.fold-hero > summary { color: var(--cream-on-navy-muted); }
.fold-hero > summary:hover { color: var(--cream-on-navy); }
.fold-hero .hero-sublead { margin-top: 0.2rem; }

/* clusters as accordion */
.cluster-list { border-top: 1px solid var(--rule); }
details.cluster { border-bottom: 1px solid var(--rule); }
details.cluster > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); row-gap: var(--space-2); align-items: start; padding: var(--space-3) 0; }
details.cluster > summary::after { content: "+"; grid-column: 2; grid-row: 1; font-family: var(--font-mono); font-size: 1rem; line-height: 1.4; color: var(--muted); width: 1.4rem; height: 1.4rem; border: 1px solid var(--rule); display: grid; place-items: center; }
details.cluster[open] > summary::after { content: "−"; }
/* the cluster code (e.g. "C3") lives in .cluster-name's title tooltip, not as
   visible text — abbreviations stay out of sight before chapter IV */
details.cluster > summary::-webkit-details-marker { display: none; }
/* Method's rail entry (Task 25e): same +/- disclosure glyph as .fold, sat
   after the link rather than the grid layout .cluster uses. */
.toc-sticky details.toc-method > summary::after { content: " +"; color: var(--muted); font-family: var(--font-mono); }
.toc-sticky details.toc-method[open] > summary::after { content: " −"; }
details.cluster > summary .cluster-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
details.cluster > summary .cluster-meta-inline { display: block; margin-top: 0.15rem; }
details.cluster > summary .cluster-top { grid-column: 1 / -1; margin: 0; }
details.cluster > summary:hover .cluster-name { color: var(--oxblood-700); }
.cluster-body { padding: 0 0 var(--space-4); }
@media (min-width: 900px) {
  .cluster-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: var(--space-5); align-items: start; }
  .cluster-body .cluster-tactical { margin-top: 0; }
}
.cluster-list dd { display: block; }  /* old rule no longer applies */

/* read-more clamp */
p.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin-bottom: 0.3rem; }
p.clamp.clamp-open { display: block; -webkit-line-clamp: unset; }
.clamp-btn { border: 0; background: none; padding: 0; margin: 0 0 var(--space-3); cursor: pointer; font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy-700); }
.clamp-btn::before { content: "+ "; }
.clamp-btn[aria-expanded="true"]::before { content: "− "; }
.clamp-btn:hover { color: var(--oxblood-700); }

/* contents button + panel on narrow screens */
.toc-btn { display: none; margin-left: auto; border: 1px solid var(--ink); background: none; padding: 0.4rem 0.7rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
.toc-btn[aria-expanded="true"] { background: var(--ink); color: var(--cream-50); }
@media (max-width: 1279px) {
  .toc-btn { display: inline-block; }
  .atlas-switch { margin-left: 0; }
  .lang-switch { margin-left: 0.4rem; }
  body.toc-open .toc-sticky { display: block; position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 70; max-height: calc(100vh - var(--topbar-h)); overflow: auto; padding: var(--space-3) clamp(1rem, 3vw, 2rem) var(--space-4); background: var(--cream-50); border-bottom: 1px solid var(--ink); font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.6; }
  body.toc-open .toc-sticky .toc-toggle { display: none; }
  body.toc-open .toc-sticky ol { list-style: none; padding: 0; margin: 0; }
  body.toc-open .toc-sticky ol ol { margin: 0.1rem 0 0.7rem 1rem; }
  body.toc-open .toc-sticky li > a { text-decoration: none; color: var(--ink); display: block; padding: 0.15rem 0; }
  body.toc-open .toc-sticky > ol > li > a,
  body.toc-open .toc-sticky > ol > li > details.toc-method > summary > a { font-weight: 700; }
  body.toc-open .toc-sticky details.toc-method > summary { padding: 0.15rem 0; }
  body.toc-open .toc-sticky li > a[aria-current="true"] { color: var(--oxblood-700); }
}

/* mobile layout */
@media (max-width: 719px) {
  .topbar { gap: var(--space-2); padding: 0 1rem; }
  .topbar-brand { font-size: 0.95rem; }
  .atlas-switch { display: none; }  /* keep the phone top bar to brand + contents + EN/CS */
  .masthead-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .masthead-meta strong { font-size: 1.15rem; }
  .masthead-meta dt { font-size: 0.6rem; letter-spacing: 0.1em; }
  .hero { padding-top: var(--space-6); }
  .hero-cutout { display: none; }
  .hero-stamp { display: none; }
  .capita-value { white-space: nowrap; }  /* "13,2 %" must not wrap in the exhibit rows */
  .capita-country { min-width: 0; overflow-wrap: anywhere; }  /* raw league keys shrink instead of pushing the value */
  .cast { width: 100%; flex-wrap: wrap; }
  .cast-stack > :nth-child(n+7) { display: none; }  /* twelve portraits do not fit a phone row */
  .cast-caption { font-size: 0; }
  .cast-caption::after { content: attr(data-short); font-size: 0.85rem; }
  .cycle-card-visual, .gk-card-visual { height: 150px; }
  .cycle-card-mug { height: 140px; }
  .cycle-card-jersey { font-size: 5rem; }
  .observations { grid-template-columns: 1fr; }
  .analog-target { padding: var(--space-3); }
  .analog-target .avatar { width: 56px; height: 56px; }
  section { padding-top: var(--space-5); padding-bottom: var(--space-4); }
  .chapter-divider { padding: var(--space-6) 1rem var(--space-5); }
  h2 { font-size: 1.9rem; }
  .report-header h1 { font-size: 2.8rem; }
}

/* mobile: scrolling tables, tighter clamp (cards are compact tiles now, no carousel needed) */
@media (max-width: 719px) {
  .movers-table { display: block; overflow-x: auto; }
  .movers-table .pchip-name { white-space: normal; }
  p.clamp { -webkit-line-clamp: 3; }
  .llm-briefs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--space-3); margin-left: -1rem; margin-right: -1rem; padding: 0 1rem var(--space-3); }
  .llm-brief { flex: 0 0 86vw; scroll-snap-align: start; }
}
.fold-table > summary { padding: 0.6rem 0; }
.fold-table table { margin-top: 0.5rem; }
@media (max-width: 719px) { .movers-grid { grid-template-columns: minmax(0, 1fr); } }
/* two columns must not grow past the container: min-content of the nowrap league / minutes cells */
@media (min-width: 760px) { .movers-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.movers-col { min-width: 0; }
.movers-col .movers-table { display: block; overflow-x: auto; }
.movers-table td:nth-child(2) { white-space: nowrap; }
@media (max-width: 719px) {
  .analog-row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; }
  .analog-row-context { flex-basis: 100%; white-space: normal; }
  .analog-list { grid-template-columns: minmax(0, 1fr); }
  .analog-row-trajectory { display: flex; flex-wrap: wrap; gap: 0.15rem 0.8rem; }
}
/* =========================================================================
   Football atlas 2026-09: card kickers, position glyph, monogram cards,
   cast strip with monograms, exhibit E examples, player index
   ========================================================================= */
/* card rows: one mono kicker per selection rule */
.cycle-row-kicker {
  font-family: var(--font-sans); font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--oxblood-700); margin: var(--space-5) 0 var(--space-2);
  padding-top: var(--space-3); border-top: 1px solid var(--rule);
}
.cycle-row-kicker:first-of-type { margin-top: var(--space-3); }
.cycle-stats-head { margin-top: var(--space-3); margin-bottom: 0.3rem; }
/* position code as the ghosted glyph (no jersey numbers in the data) */
.cycle-card-pos {
  position: absolute; left: 18px; bottom: -14px; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 7rem; line-height: 1; letter-spacing: -0.06em;
  color: color-mix(in oklch, var(--cream-on-navy), transparent 86%); pointer-events: none;
}
/* portraits are rectangular JPGs: keep them inside the header, fade the edges */
.cycle-card-mug {
  height: 100%; max-height: 190px; width: auto; object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  filter: drop-shadow(0 12px 18px oklch(0.08 0.02 165 / 0.7));
}
/* cards without a portrait: monogram in the same header */
.cycle-card-monogram {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500; letter-spacing: 0.08em;
  color: var(--cream-on-navy); background: oklch(0.21 0.015 165 / 0.85); border: 1px solid var(--navy-divider);
}
.cycle-card-visual-mono::before, .gk-card-visual-mono::before { display: none; }
/* cast strip: monogram discs for players without a portrait */
.cast-stack .cast-mono {
  width: 40px; height: 40px; border-radius: 50%; margin-left: -12px; flex: none;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  color: var(--cream-on-navy); background: var(--navy-700); border: 2px solid var(--paper);
}
.cast-stack .cast-mono:first-child { margin-left: 0; }
/* hero cut-out is a photo, not a transparent PNG: fade top and left edges */
.hero-cutout {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%), linear-gradient(180deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%), linear-gradient(180deg, transparent 0%, #000 30%);
  mask-composite: intersect;
  filter: grayscale(1) contrast(1.4) brightness(0.9);
  opacity: 0.55;
}
/* exhibit E: example names per bucket */
.dest-examples { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: grid; gap: 0.25rem; }
.dest-examples li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.dest-examples code { font-size: 0.78rem; background: none; padding: 0; }
.kv-table { width: 100%; }
@media (max-width: 719px) { .kv-table { display: block; overflow-x: auto; } }
/* player index */
.player-index { padding-top: var(--space-6); padding-bottom: var(--space-6); border-top: 1px solid var(--rule); }
.player-index-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-3) 0 var(--space-2); }
.player-index-tools label { font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.player-index-tools input[type="search"] {
  flex: 1 1 16rem; max-width: 26rem; border: 1px solid var(--ink); background: var(--paper); border-radius: 0;
  padding: 0.5rem 0.7rem; font-family: var(--font-sans); font-size: 1rem; color: var(--ink); -webkit-appearance: none;
}
.player-index-tools input[type="search"]:focus { outline: 2px solid var(--oxblood-700); outline-offset: 1px; }
.player-index-count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.player-index-count::after { content: " ▸"; }
.player-index-table { width: 100%; font-size: 0.9rem; }
.player-index-table th, .player-index-table td { padding: 0.4rem 0.6rem; vertical-align: baseline; }
.player-index-table td:nth-child(2), .player-index-table td:nth-child(5) { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.player-index-table td:nth-child(3), .player-index-table td:nth-child(6), .player-index-table td:nth-child(7) { font-family: var(--font-mono); font-size: 0.8rem; text-align: right; white-space: nowrap; }
.player-index-table th:nth-child(3), .player-index-table th:nth-child(6), .player-index-table th:nth-child(7) { text-align: right; }
.player-index-table td:nth-child(9) { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--oxblood-700); }
.player-index-table tr[hidden] { display: none; }
.player-index-table a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.player-index-table a:hover { color: var(--oxblood-700); text-decoration: none; border-bottom-color: currentColor; }
@media (max-width: 719px) {
  .player-index-fold { display: block; }
  .player-index-fold > table { display: block; overflow-x: auto; }
  .player-index-table td:nth-child(8) { white-space: nowrap; }
}

/* =========================================================================
   Task 10 de-clutter: cards as a roster of compact tiles, expanded on
   demand; chapter ledes clamped to a fast-scan two lines.
   ========================================================================= */
/* the roster: 3-up desktop, 2-up tablet, 1-up phone; an open card takes the
   full row so the expanded body has room */
.cycle-grid { grid-template-columns: 1fr; }
@media (min-width: 620px) { .cycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cycle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cycle-card.is-open { grid-column: 1 / -1; }

/* collapsed by default: only the tile shows until its button opens the card;
   each child's open display matches its own layout (grid/flex/block) rather
   than a blanket "block", so the stats grid and cluster rows keep working */
.cycle-card > :not(.cycle-tile) { display: none; }
.cycle-card.is-open > .cycle-card-visual,
.cycle-card.is-open > .cycle-card-head,
.cycle-card.is-open > p { display: block; }
.cycle-card.is-open > .cycle-stats,
.cycle-card.is-open > .cycle-cluster { display: grid; }
.cycle-card.is-open > .cycle-section { display: flex; }
.cycle-card.is-open > details.cycle-section { display: block; }

/* every child gets an explicit cell — grid auto-placement would otherwise
   pack a text row into the button's column instead of under the name. The
   button sits on its own full-width row rather than a third column, so the
   name/club/numbers column keeps the full card width to work with (a real
   club name like "Wolverhampton Wanderers" needs it). */
.cycle-tile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  column-gap: var(--space-3);
  row-gap: 0.25rem;
  padding: var(--space-3);
}
.tile-mug, .tile-mono {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  object-fit: cover; object-position: 50% 12%; background: var(--navy-100);
}
.tile-mono { display: grid; place-items: center; font-family: var(--font-mono); font-size: 1rem; font-weight: 500; color: var(--navy-700); }
.tile-name { grid-column: 2; grid-row: 1; align-self: center; display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* meta (club + position) stays one line: the club chip shrinks and truncates
   rather than wrapping its own text, so it never grows the row's height */
.tile-meta { grid-column: 2; grid-row: 2; display: flex; flex-wrap: nowrap; align-items: baseline; gap: 0.4rem; min-width: 0; }
.tile-numbers { grid-column: 2; grid-row: 3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; min-width: 0; }
.tile-club {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--cream-100); border: 1px solid var(--rule); padding: 0.1rem 0.4rem;
}
.tile-pos { flex: none; }
/* stat: the number in the figure style, the unit as a plain (not mono) small
   label with the long form in its title tooltip — no "NPG+A/90 Q" shorthand
   on the roster before chapter IV */
.tile-stat { display: inline-flex; align-items: baseline; gap: 0.3rem; }
.tile-stat-figure {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: -0.01em; color: var(--navy-700); font-feature-settings: "tnum", "lnum";
}
.tile-stat-label { font-family: var(--font-sans); font-size: 0.74rem; font-weight: 400; color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
.tile-traj { font-family: var(--font-sans); font-size: 0.8rem; color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
.tile-traj-none { color: var(--muted); }
.tile-actions { grid-column: 2; grid-row: 4; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.15rem; }
.tile-career { text-decoration: none; }
.tile-more {
  justify-self: start; margin-top: 0.15rem;
  border: 1px solid var(--ink); background: none; padding: 0.35rem 0.7rem;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); cursor: pointer; white-space: nowrap;
}
.tile-more:hover { background: var(--ink); color: var(--cream-50); }
.cycle-card.is-open .tile-more:not(.tile-career) { background: var(--ink); color: var(--cream-50); }
@media (max-width: 480px) {
  .cycle-tile { grid-template-columns: 44px minmax(0, 1fr); }
  .tile-mug, .tile-mono { width: 44px; height: 44px; }
}

/* chapter ledes: two-line preview with the existing More/Less clamp control */
.framing.lede { margin-bottom: 0; }
.framing.lede.clamp { -webkit-line-clamp: 2; }

/* =========================================================================
   Concrete register (2026-09-21) — the author's own system from bsandova.com,
   applied to the atlas. Loaded last, so it wins the cascade.
     ground   #161616 / #1F1F1F, hairlines #3A3A36
     text     #DCDCD6 chalk, #F2F2EE "hot" for what matters most
     accent   #D6FF3A acid — the home nation, and nothing else
     type     Fraunces light serif for what is said; Space Grotesk for
              running text; JetBrains Mono capitals for what labels it
   ========================================================================= */
:root { --container: min(1200px, calc(100vw - 4rem)); --measure: 100%; --measure-wide: 100%; --hot: #F2F2EE; --acid: #D6FF3A; }
html { font-size: 16px; }
body { background: var(--page-bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; background: url(img/grain.png); opacity: .13; mix-blend-mode: screen; pointer-events: none; z-index: 9; }
@media (min-width: 1280px) and (max-width: 1599px) {
  .toc-sticky { display: none !important; }
  body.toc-open .toc-sticky { display: block !important; }
}
@media (min-width: 1600px) { :root { --container: min(1200px, calc(100vw - 2 * (200px + 3rem))); } }

/* --- type: serif says, mono labels --- */
h1, h2, h3, .slide-q, .quickread-figure, .hero-num-figure, .changes-tier-n, .scoreboard-claim, .funnel-take-one-thing, .pool-card {
  font-family: var(--font-display);
}
h1 { font-weight: 300; letter-spacing: -0.02em; color: var(--hot); }
h1 em { font-style: italic; font-weight: 300; color: var(--hot); }
.slide-q { font-weight: 300; font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.8rem); letter-spacing: -0.03em; line-height: 1; max-width: 26ch; color: var(--hot); font-variation-settings: "opsz" 144; }
.slide-a { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.25; letter-spacing: -0.015em; max-width: none; color: var(--ink); }
.slide-a strong { font-weight: 400; color: var(--hot); border-bottom: 2px solid var(--acid); }
.quickread-figure { font-weight: 300; font-size: clamp(2.6rem, 2rem + 2.6vw, 4rem); letter-spacing: -0.035em; color: var(--hot); }
.hero-num-figure { font-weight: 300; font-size: clamp(5.5rem, 11vw, 12rem); letter-spacing: -0.05em; color: var(--hot); font-variation-settings: "opsz" 144; }
.hero-num-figure .ast { color: var(--acid); }
.hero-lead p { font-family: var(--font-display); font-weight: 300; font-size: 1.35rem; line-height: 1.25; max-width: none; color: var(--ink); }
h3 { font-weight: 400; letter-spacing: -0.02em; color: var(--hot); }
h4, .movers-col h4 { font-family: var(--font-sans); font-weight: 500; color: var(--hot); }

/* mono capitals: every label, kicker, fold summary, table head */
.slide-aq-label, .slide-did-label, .slide-how-label, .act-kicker, .scoreboard-kicker, .cycle-row-kicker,
.funnel-metric-label, .changes-tier-label, .pool-head, .masthead-subtitle, .quickread-note, .capita-code,
details.fold > summary, .slide-method > summary, .funnel-caveats > summary, .pool-fold > summary, .brief-body > summary, .fed-fold > summary,
.capita-note, .slide-how, .hero-num-unit, .hero-footnote, .quickread-line, .changes-tier-min, th, .pool-control, .pool-count,
.topbar-links a, .toc-sticky li > a, .toc-sticky .toc-heading, .lang-switch, .atlas-switch, .tile-club, .tile-pos, .print-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}
.slide-how-label, .scoreboard-kicker, .cycle-row-kicker, .act-kicker { color: var(--acid); }
.quickread-line, .hero-num-unit, .changes-tier-label { color: var(--ink); text-transform: none; letter-spacing: 0.04em; font-size: 12px; max-width: 26ch; }
.quickread-line { max-width: 22ch; }
.slide-aq, .slide-did, .slide-detail, .slide-so { font-family: var(--font-sans); font-size: 0.95rem; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
.slide-so { font-style: normal; color: var(--muted); }
.masthead-subtitle { max-width: 40rem; }
details.fold > summary::before { content: "+"; width: auto; height: auto; border: 0; transform: none; margin-right: 0.6rem; color: var(--muted); }
details.fold[open] > summary::before { content: "−"; transform: none; }
details.fold > summary:hover, details.fold > summary:hover::before { color: var(--acid); }
details.fold { border-top: 1px solid var(--rule); }
.topbar { background: var(--page-bg); border-bottom: 1px solid var(--rule); }
.topbar-brand { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; color: var(--ink); }
.topbar-brand span { color: var(--acid); }
.topbar-links a:hover, a:hover { color: var(--acid); text-decoration: none; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
.toc-sticky { background: var(--page-bg); border-left: 1px solid var(--rule); }
.toc-sticky li > a[aria-current="true"] { background: var(--hot); color: var(--page-bg); }

/* --- sections: hairline grid, air, no cards --- */
section.slide, .slide { border-top: 1px solid var(--rule); padding: var(--space-7) 0 var(--space-6); }
.act { border-top: 1px solid var(--rule); padding-top: var(--space-6); }
figure.figure-bleed img { border: 0; background: transparent; padding: 0; }
.figure-bleed { margin-left: 0; margin-right: 0; }
.figure-bleed figcaption { padding-left: 0; padding-right: 0; }
.capita, .cohort-grid-wrap, .tier-bars { border: 0 !important; background: transparent !important; padding-left: 0 !important; padding-right: 0 !important; }
.capita-bar { height: 4px; background: var(--rule); }
.capita-bar-fill { height: 4px; background: var(--hot); }
.capita-row { padding: 0.6rem 0; border-bottom: 1px solid var(--rule-soft); }
.capita-row[data-highlight="cze"] { background: transparent; }
.capita-row[data-highlight="cze"] .capita-bar-fill { background: var(--acid); }
.capita-row[data-highlight="cze"] .capita-value, .capita-row[data-highlight="cze"] .capita-country { color: var(--acid); }
.capita-row:hover { background: var(--hot); color: var(--page-bg); }
.capita-row:hover .capita-code, .capita-row:hover .capita-value, .capita-row:hover .capita-country { color: var(--page-bg); }
.capita-row:hover .capita-bar-fill { background: var(--page-bg); }
.slide-method, .funnel-caveats { max-width: none; }
.slide-method > p, .funnel-caveats li { max-width: var(--measure-wide); }

/* --- the opening: number, statement, and the photo as a duotone on acid --- */
.report-header { border-bottom: 1px solid var(--rule); padding-bottom: var(--space-4); }
.hero { background: var(--page-bg); border-bottom: 1px solid var(--rule); padding-top: var(--space-6); padding-bottom: var(--space-6); }
.hero .container { position: relative; }
@media (min-width: 1100px) {
  .hero { background: linear-gradient(90deg, var(--page-bg) 0 calc(50% + 300px), var(--acid) calc(50% + 300px)); }
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-6); padding-right: 300px; }
  /* the photo fills the acid panel edge to edge as a black duotone (multiply) */
  .hero-cutout { top: 0; bottom: 0; right: 0; height: 100%; width: calc(50% - 300px); object-fit: cover; object-position: 60% 20%; opacity: 1;
    filter: grayscale(1) contrast(1.25) brightness(0.95); mix-blend-mode: multiply; -webkit-mask-image: none; mask-image: none; }
}
.hero-footnote { color: var(--muted); }
.quickread-grid { gap: 0; background: transparent; border-top: 0; border-bottom: 0; }
.quickread-tile { border-left: 1px solid var(--rule); background: transparent; }
.quickread-tile:first-child { border-left: 0; }
.quickread-tile a { padding: var(--space-2) var(--space-4); }
.quickread-tile:first-child a { padding-left: 0; }
.quickread-tile a:hover .quickread-figure { color: var(--acid); }

/* --- rows that invert on hover, like the works list on the author's site --- */
.pool-row > summary:hover, .pool-row[open] > summary { background: var(--hot); color: var(--page-bg); }
.pool-row > summary:hover *, .pool-row[open] > summary * { color: var(--page-bg) !important; border-color: var(--page-bg) !important; }
.pool-summary { font-size: 0.95rem; }
.pool-card { font-weight: 300; font-size: 1.15rem; line-height: 1.35; }
.pool-nt { border-color: var(--rule); color: var(--acid); }
.changes-list li:hover { background: var(--hot); color: var(--page-bg); }
.changes-list li:hover * { color: var(--page-bg) !important; }
.changes-curr { color: var(--acid); }

/* --- cards, scoreboard, brief --- */
.cycle-card, .gk-card { background: var(--surface); border: 1px solid var(--rule); }
.scoreboard { border-top: 1px solid var(--hot); border-bottom: 1px solid var(--rule); background: transparent; padding-left: 0; padding-right: 0; }
.scoreboard-claim { font-weight: 300; font-size: 1.4rem; color: var(--ink); }
.scoreboard-claim strong { font-weight: 400; color: var(--hot); border-bottom: 2px solid var(--acid); }
.scoreboard-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.brief, #brief { background: var(--surface) !important; }
.print-link { border: 1px solid var(--rule); background: transparent; color: var(--ink); }
.print-link:hover { background: var(--hot); color: var(--page-bg); }
.pool-control input, .pool-control select { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.sensitivity-live-table { display: block; overflow-x: auto; max-width: 100%; }
.funnel-country[data-highlight="cze"] { color: var(--acid); }
.funnel-take-one-thing { font-weight: 300; color: var(--hot); }

/* text runs the full column (the author's call, 2026-09-21) */
.container > p, .container p, .explore-block p, .methodology p, p.plain, .slide-so, .slide-detail, .slide-aq, .slide-did, .slide-method > p,
.funnel-caveats li, .capita-note, .pool-card, .brief-intro, .quickread-note, .scoreboard, .funnel-lead, .act-line, .methodology ul, .methodology ol, .methodology dl { max-width: none; }
p.plain { max-width: none; }

/* --- interactive charts (charts.js) --- */
.chart { position: relative; margin: var(--space-3) 0 0; }
.chart svg { display: block; width: 100%; height: auto; }
.chart-fallback { display: none; }
@media print { .chart { display: none; } .chart-fallback { display: block; } }
.chart-controls { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 var(--space-3); }
.chart-row { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; }
.chart-chip {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--rule); padding: 0.35rem 0.6rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.45rem; line-height: 1;
}
.chart-chip i { width: 8px; height: 8px; display: inline-block; }
.chart-chip[aria-pressed="true"] { color: var(--page-bg); background: var(--hot); border-color: var(--hot); }
.chart-chip[aria-pressed="true"] i { outline: 1px solid var(--page-bg); }
.chart-chip:hover { border-color: var(--acid); color: var(--acid); }
.chart-chip[aria-pressed="true"]:hover { color: var(--page-bg); background: var(--acid); border-color: var(--acid); }
.chart-search {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); padding: 0.35rem 0.6rem; min-width: 14rem; margin-left: auto;
}
.chart-search:focus-visible { outline: 1px solid var(--acid); outline-offset: 1px; }
.chart-axis-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--muted); }
.chart-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0.6rem 0 0; line-height: 1.8; }
.chart-tip {
  position: fixed; z-index: 90; max-width: 26rem; padding: 0.6rem 0.75rem; pointer-events: none;
  background: var(--hot); color: var(--page-bg); font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.chart-tip b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; margin-bottom: 0.15rem; }
.chart-tip span { display: block; }
.chart-tip .mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.3rem; opacity: .75; }
.chart-tip .tag { font-family: var(--font-mono); font-style: normal; font-size: 9px; letter-spacing: 0.12em; border: 1px solid currentColor; padding: 0 0.3rem; margin-left: 0.3rem; vertical-align: 0.15em; }
.chart-tip .tag.acid { background: var(--acid); border-color: var(--acid); }
.atlas-tabs { margin: var(--space-5) 0; }
.atlas-tabs figure { margin-top: var(--space-2); }
.atlas-tabbar { margin-bottom: var(--space-2); }
figure[data-chart="changes"] { margin-bottom: var(--space-4); }

/* captions are prose now ("how to read it"): sans, sentence case, the full column */
figcaption, .figure-bleed figcaption { font-family: var(--font-sans); font-size: 0.92rem; letter-spacing: 0; text-transform: none; color: var(--ink-soft); line-height: 1.5; max-width: none; margin-top: 14px; }

/* --- cards: compact tile spacing, and the open card's visual in the register --- */
.tile-club { flex: 0 1 auto; max-width: 60%; }
.tile-meta { gap: 0.6rem; }
.cycle-tile { row-gap: 0.4rem; padding: var(--space-3) var(--space-3) var(--space-3); }
.tile-more { margin-top: 0.4rem; }
.tile-name { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--hot); }
.tile-stat-figure { color: var(--hot); font-weight: 400; }
.cycle-card-visual, .gk-card-visual { height: 150px; background: var(--surface); }
.cycle-card-visual::before, .gk-card-visual::before { filter: grayscale(1) contrast(1.2) brightness(0.8) blur(7px); opacity: 0.18; mix-blend-mode: luminosity; }
.cycle-card-visual::after, .gk-card-visual::after { background: linear-gradient(90deg, var(--surface) 0%, transparent 60%); }
.cycle-card-mug { height: 140px; filter: grayscale(1) contrast(1.2); }
.cycle-card > :not(.cycle-card-visual):not(.cycle-tile) { margin-left: var(--space-4); margin-right: var(--space-4); }
.cycle-card h4.cycle-card-name { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--hot); margin-top: var(--space-3); }
.cycle-stats { border: 1px solid var(--rule); }
.cycle-stats dd { font-family: var(--font-mono); color: var(--hot); }
.cycle-section-label { color: var(--muted); }
.tile-club { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; line-height: 1.5; }

/* --- percentile profile in the pool card (SkillCorner-style benchmark bars) --- */
.pool-profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.35rem 2rem; padding: 0.6rem 0.5rem 0.2rem; }
.pool-axis { display: grid; grid-template-columns: 7.5rem 1fr 2.2rem; align-items: center; gap: 0.6rem; }
.pool-axis-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pool-axis-bar { display: block; height: 4px; background: var(--rule); position: relative; }
.pool-axis-fill { display: block; height: 4px; background: var(--acid); }
.pool-axis-pct { font-family: var(--font-mono); font-size: 11px; color: var(--hot); text-align: right; }
.pool-profile-note { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0.3rem 0 0; }
.pool-row[open] > summary { background: transparent; }
.pool-row[open] > summary * { color: inherit !important; }
.pool-row[open] > summary .pool-name { color: var(--acid) !important; }
.pool-row[open] > summary { background: transparent; color: var(--ink); }
.hero-finding { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--hot); margin: 0 0 var(--space-3); }
.hero-path { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acid); line-height: 1.8; margin: 0 0 var(--space-3); }
.hero-sublead { font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink-soft); }
.hero-lead p.hero-path { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acid); line-height: 1.8; }
.hero-lead p.hero-sublead { font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
.hero-lead p.hero-finding { font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.7rem); }
.slide-caveat { font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink-soft); border-left: 0; margin: -0.6rem 0 var(--space-4); max-width: none; }
.funnel-note-small { font-size: 10px; color: var(--muted); }
.scoreboard-backtest { font-family: var(--font-sans); font-size: 0.9rem; color: var(--ink-soft); margin: 0.8rem 0 0; }

/* charts: an honest empty / failed state instead of blank space */
.chart-empty { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: var(--space-3) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
/* chart control folds: the long chip rows sit behind one line */
details.chart-fold { border-top: 0; margin: 0; }
details.chart-fold > summary { padding: 0.35rem 0; font-size: 10px; }
/* cut-outs: the player stands on the panel; the card mug gets a soft base shadow */
.cycle-card-mug { filter: grayscale(1) contrast(1.2) drop-shadow(0 8px 12px rgba(0,0,0,.55)); object-fit: contain; object-position: 50% 100%; }

/* --- close: the last beat mirrors the hero --- */
.close { border-top: 1px solid var(--rule); padding: var(--space-7) 0; }
.close-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acid); margin: 0 0 var(--space-3); }
.close-statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.025em; color: var(--hot); max-width: 30em; margin: 0 0 var(--space-4); }
.close-line { font-family: var(--font-sans); font-size: 1.05rem; color: var(--ink-soft); max-width: 60em; margin: 0 0 var(--space-4); }
.close-links { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.close-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.close-links a:hover { color: var(--acid); border-color: var(--acid); }
/* tiles: the explaining line in sentence-case sans, not tracked capitals */
.quickread-line { font-family: var(--font-sans); font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--ink-soft); max-width: 24ch; line-height: 1.4; }
/* pool: the deep link */
.pool-link { margin: -0.4rem 0 0.8rem 0.5rem; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.pool-link a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.pool-link a:hover { color: var(--acid); border-color: var(--acid); }

/* =========================================================================
   Player atlas (docs/atlas/, atlas.app.js) — the same register, one more
   surface: a list to find in, a pane to read in, rows that invert on hover.
   ========================================================================= */
.ax-page .topbar-links a[aria-current="page"] { color: var(--hot); }
.ax { padding-top: calc(var(--topbar-h) + var(--space-4)); padding-bottom: var(--space-5); }
.ax-head { border-bottom: 1px solid var(--rule); padding-bottom: var(--space-4); margin-bottom: var(--space-4); }
.ax-kicker, .ax-browse-label, .ax-count, .ax-calls-label, .ax-panel-meta, .ax-panel-rank, .ax-legend, .ax-note, .ax-foot p, .ax-row-meta, .ax-row-min, .ax-table th, .ax-table .mono, .ax-check {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); line-height: 1.8;
}
.ax-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); letter-spacing: -0.03em; line-height: 1; margin: var(--space-2) 0 var(--space-3); color: var(--hot); font-variation-settings: "opsz" 144; max-width: 22ch; }
.ax-lead { font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; line-height: 1.3; max-width: 62ch; margin: 0; color: var(--ink); }
.ax-lead a { color: var(--hot); border-bottom: 1px solid var(--acid); text-decoration: none; }
.ax-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; }
@media (min-width: 960px) {
  .ax-body { grid-template-columns: 380px minmax(0, 1fr); gap: var(--space-5); }
  .ax-side { position: sticky; top: calc(var(--topbar-h) + 1rem); max-height: calc(100vh - var(--topbar-h) - 2rem); display: flex; flex-direction: column; }
  .ax-list { overflow-y: auto; min-height: 0; flex: 1 1 auto; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
}
.ax-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; margin-bottom: var(--space-3); }
.ax-controls .pool-control-search { grid-column: 1 / -1; }
.ax-controls .pool-control input, .ax-controls .pool-control select { width: 100%; box-sizing: border-box; }
.ax-check { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 0.5rem; }
.ax-controls .ax-check input { accent-color: var(--acid); width: auto; flex: 0 0 auto; margin: 0; }
.ax-browse-label { margin: 0 0 0.3rem; }
.ax-browse { margin-bottom: var(--space-3); }
.ax-count { margin: 0; padding: 0.4rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ax-list { list-style: none; margin: 0; padding: 0; }
.ax-row { border-bottom: 1px solid var(--rule); }
.ax-row-btn { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 84px 3.2rem; grid-template-rows: auto auto; column-gap: 0.8rem; align-items: center; width: 100%; padding: 0.55rem 0.5rem; cursor: pointer; color: var(--ink); }
.ax-row-btn:hover, .ax-row-btn:focus-visible, .ax-row.is-open .ax-row-btn { background: var(--hot); color: var(--page-bg); }
.ax-row-btn:hover *, .ax-row-btn:focus-visible *, .ax-row.is-open .ax-row-btn * { color: var(--page-bg) !important; }
.ax-row-btn:focus-visible { outline: 2px solid var(--acid); outline-offset: -2px; }
.ax-row-name { grid-column: 1; grid-row: 1; font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--hot); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-row-meta { grid-column: 1; grid-row: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.ax-spark { grid-column: 2; grid-row: 1 / 3; display: block; }
.ax-row-min { grid-column: 3; grid-row: 1 / 3; text-align: right; color: var(--ink); font-size: 12px; letter-spacing: 0.06em; }
.ax-nt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; border: 1px solid var(--rule); color: var(--acid); padding: 0 0.3rem; vertical-align: 0.2em; margin-left: 0.3rem; }
.ax-row.is-open .ax-nt, .ax-row-btn:hover .ax-nt { border-color: var(--page-bg); }
/* the detail pane: one panel, or two or three across */
.ax-detail { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .ax-detail[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-detail[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ax-panel { border-top: 1px solid var(--hot); padding-top: var(--space-3); min-width: 0; }
/* side by side, the charts share a baseline: each panel is a subgrid of the pane's rows */
@supports (grid-template-rows: subgrid) {
  .ax-detail[data-n="2"] .ax-panel, .ax-detail[data-n="3"] .ax-panel { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; }
}
.ax-panel-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: start; margin-bottom: var(--space-3); }
.ax-panel-id { min-width: 0; }
.ax-mug { display: grid; place-items: center; width: 84px; height: 84px; background: var(--surface); border: 1px solid var(--rule); overflow: hidden; position: relative; }
.ax-mug img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.15); background: var(--surface); }
.ax-mug-cut img { object-fit: contain; object-position: 50% 100%; filter: grayscale(1) contrast(1.2) drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.ax-mug > span { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.1em; color: var(--muted); }
/* three across: a smaller head so the names keep their line */
.ax-panel-name { overflow-wrap: anywhere; }
.ax-detail[data-n="3"] .ax-mug { width: 56px; height: 56px; }
.ax-detail[data-n="3"] .ax-panel-name { font-size: clamp(1.3rem, 1rem + 0.9vw, 1.7rem); }
.ax-detail[data-n="3"] .ax-panel-head { gap: var(--space-2); }
.ax-panel-name { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); letter-spacing: -0.025em; line-height: 1; margin: 0 0 0.4rem; color: var(--hot); }
.ax-panel-meta, .ax-panel-rank { margin: 0; text-transform: none; letter-spacing: 0.06em; font-size: 12px; color: var(--ink); }
.ax-panel-rank { color: var(--muted); }
.ax-tier { border-bottom: 2px solid var(--tier, var(--rule)); color: var(--hot); }
.ax-calls { margin: 0.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; align-items: center; }
.ax-calls-label { color: var(--acid); margin-right: 0.3rem; }
.ax-call { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; border: 1px solid var(--rule); padding: 0.05rem 0.4rem; color: var(--ink); }
.ax-panel-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.ax-btn { all: unset; box-sizing: border-box; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--rule); padding: 0.3rem 0.6rem; color: var(--ink); cursor: pointer; text-align: center; white-space: nowrap; }
.ax-btn:hover, .ax-btn:focus-visible { border-color: var(--acid); color: var(--acid); }
.ax-chart { position: relative; margin: 0 0 var(--space-2); }
.ax-chart svg { display: block; width: 100%; height: auto; overflow: hidden; }
.ax-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin: 0.4rem 0 0; }
.ax-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.ax-legend i { display: inline-block; width: 10px; height: 10px; }
.ax-legend-line { width: 14px !important; height: 0 !important; border-top: 2px solid #FF6A3D; }
.ax-fold > summary { padding: 0.55rem 0; }
.ax-table-wrap { overflow-x: auto; }
.ax-table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.9rem; margin: 0.4rem 0 0; }
.ax-table th, .ax-table td { padding: 0.35rem 0.5rem 0.35rem 0; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.ax-table th.num, .ax-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ax-table .mono { letter-spacing: 0.06em; color: var(--ink); }
.ax-table .ax-under td { color: var(--muted); }
.ax-dot { display: inline-block; width: 8px; height: 8px; margin-right: 0.4rem; vertical-align: 0.05em; }
.ax-note, .ax-foot p { text-transform: none; letter-spacing: 0.04em; font-size: 12px; line-height: 1.6; margin: 0.6rem 0 0; }
.ax-foot { border-top: 1px solid var(--rule); margin-top: var(--space-5); padding-top: var(--space-3); }
.ax-foot a, .ax-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); }
.ax-profile { padding-left: 0; padding-right: 0; }
.ax-overview { border-top: 1px solid var(--hot); padding-top: var(--space-3); }
.ax-statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.25; letter-spacing: -0.015em; margin: 0.3rem 0 var(--space-3); color: var(--ink); max-width: 40ch; }
@media (max-width: 959px) {
  /* a phone reads the open player first; the list scrolls in its own box */
  .ax-detail { order: -1; }
  .ax-list { max-height: 70vh; overflow-y: auto; border-bottom: 1px solid var(--rule); }
  .ax-controls { grid-template-columns: 1fr; }
  .ax-row-btn { grid-template-columns: minmax(0, 1fr) 64px 3rem; }
  .ax-spark { width: 64px; }
}
.ax-tabs { display: flex; gap: 0; margin-top: var(--space-3); border-bottom: 1px solid var(--rule); }
.ax-head:has(.ax-tabs) { border-bottom: 0; padding-bottom: 0; }
.ax-tab { all: unset; box-sizing: border-box; cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 0.6rem 1rem 0.6rem 0; margin-right: 1.2rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ax-tab:hover { color: var(--acid); }
.ax-tab[aria-selected="true"] { color: var(--hot); border-bottom-color: var(--acid); }
.ax-tab:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.ax-eras { border-top: 1px solid var(--hot); padding-top: var(--space-3); }
.ax-era { margin-top: var(--space-4); }
.ax-era-title { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--hot); margin: 0 0 0.4rem; }
.ax-era .ax-table a, .ax-eras .ax-table a { color: var(--hot); text-decoration: none; border-bottom: 1px solid var(--rule); }
.ax-era .ax-table a:hover, .ax-eras .ax-table a:hover { color: var(--acid); border-bottom-color: var(--acid); }
.ax-eras .ax-table tr.is-open td { color: var(--hot); }
.ax-past { color: var(--muted); }
@media print { .ax-side { display: none; } }

/* --- the nations page (docs/nations/, nations.app.js) --- */
.nx-section { border-top: 1px solid var(--hot); padding-top: var(--space-3); margin-top: var(--space-5); }
.nx-h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; letter-spacing: -0.015em; color: var(--hot); margin: var(--space-4) 0 var(--space-2); }
.nx-lead { font-family: var(--font-display); font-weight: 300; font-size: 1.15rem; line-height: 1.35; color: var(--ink); margin: 0 0 var(--space-3); }
.nx-table, .nx-table th, .nx-table td, .nx-table tr { background: transparent; }
.nx-table th.is-home, .nx-table td.is-home { color: var(--acid); }
.nx-table td.is-best { color: var(--hot); font-weight: 500; }
.nx-table th a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.nx-table th a:hover { color: var(--acid); border-bottom-color: var(--acid); }
.nx-table td:first-child { white-space: normal; min-width: 12rem; }
.nx-decomp { margin-bottom: var(--space-4); }
.nx-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: var(--space-3) var(--space-5); }
.nx-contrast .ax-kicker { margin: 0 0 0.4rem; }
.nx-bar { display: grid; grid-template-columns: 11rem 1fr 7.5rem; gap: 0.6rem; align-items: center; margin-bottom: 0.35rem; }
.nx-bar-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nx-bar-track { display: block; height: 6px; background: var(--rule); }
.nx-bar-fill { display: block; height: 6px; background: var(--hot); }
.nx-bar-fill.is-neg { background: var(--orange, #FF6A3D); }
.nx-bar-val { font-family: var(--font-mono); font-size: 11px; color: var(--ink); text-align: right; white-space: nowrap; }
.nx-within { margin-top: var(--space-4); max-width: 60ch; }
.take { border-top: 1px solid var(--hot); padding: var(--space-5) 0 var(--space-4); }
.take .close-kicker { margin-bottom: var(--space-3); }
.take-line { margin-top: var(--space-3); }
.nx-take { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: var(--space-2); padding: var(--space-3) 0; border-top: 1px solid var(--rule); }
.nx-take:first-child { border-top: 0; padding-top: 0; }
.nx-take-n { font-family: var(--font-display); font-weight: 300; font-size: 1.6rem; color: var(--acid); margin: 0; line-height: 1; font-variation-settings: "opsz" 144; }
.nx-take-head { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--hot); margin: 0 0 0.5rem; max-width: 40ch; }
.nx-take-body { font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.55; color: var(--ink); margin: 0 0 0.6rem; max-width: 72ch; }
.nx-take-body:last-child { margin-bottom: 0; }
.nx-within strong { font-weight: 400; color: var(--hot); border-bottom: 2px solid var(--acid); }
.nx-limits { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.nx-limits li { font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.55; color: var(--ink); border-top: 1px solid var(--rule); padding-top: var(--space-2); }
.nx-limits strong { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; color: var(--acid); margin-right: 0.4rem; }
.nx-refs { font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft); padding-left: 1.2rem; overflow-wrap: anywhere; }
.nx-refs li { margin-bottom: 0.4rem; }
.nx-page .ax-chart .chart-controls, .nx-page .ax-chart > .chart-row { margin: 0 0 var(--space-2); }
@media (max-width: 640px) { .nx-bar { grid-template-columns: 1fr; gap: 0.2rem; } .nx-bar-val { text-align: left; } }
/* a reference's archive URL must wrap on a phone, not widen the page */
.references-list, .references-list li, .references-list a { overflow-wrap: anywhere; }
