/* ==========================================================================
   CaliFCKD — The Receipts Desk
   Ink-black newsroom, thermal-paper receipts, one honest colour language.
   ========================================================================== */

:root {
  --bg: #0b0b0a;
  --bg-2: #121210;
  --bg-3: #1a1a17;
  --line: #2a2924;
  --line-2: #3a3832;
  --text: #f1ede3;
  --text-2: #c9c4b6;
  --muted: #8f8b80;
  --paper: #f3efe4;
  --paper-ink: #16150f;
  --paper-muted: #6c685c;
  --paper-line: #d7d1c1;

  --poppy: #ff5b14;      /* brand + California series */
  --poppy-soft: rgba(255, 91, 20, .14);
  --sky: #6fc3ff;        /* Los Angeles County series */
  --worse: #ff3d5e;
  --worse-soft: rgba(255, 61, 94, .14);
  --within: #d9d3c3;
  --within-soft: rgba(217, 211, 195, .10);
  --better: #3fdc9a;
  --better-soft: rgba(63, 220, 154, .13);
  --amber: #ffb020;
  --amber-soft: rgba(255, 176, 32, .14);
  --unknown: #8d8a82;
  --unknown-soft: rgba(141, 138, 130, .14);
  --band: rgba(255, 255, 255, .045);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-2: #ebe7dd;
  --bg-3: #e2ddd1;
  --line: #d3cdbf;
  --line-2: #bfb8a7;
  --text: #15140f;
  --text-2: #3b3930;
  --muted: #6d695d;
  --paper: #fffdf7;
  --paper-line: #e2dccd;
  --poppy: #e8490a;
  --poppy-soft: rgba(232, 73, 10, .10);
  --sky: #1677c9;
  --worse: #d81b45;
  --worse-soft: rgba(216, 27, 69, .09);
  --within: #6b6656;
  --within-soft: rgba(107, 102, 86, .10);
  --better: #0f9a62;
  --better-soft: rgba(15, 154, 98, .10);
  --unknown: #7d796e;
  --amber: #b86e00;
  --amber-soft: rgba(184, 110, 0, .10);
  --band: rgba(0, 0, 0, .045);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--poppy); }
::selection { background: var(--poppy); color: #000; }
:focus-visible { outline: 2px solid var(--poppy); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }

/* grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] body::before { opacity: .035; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--poppy); color: #000; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 1; }
.kicker {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.kicker .dot { width: 8px; height: 8px; background: var(--poppy); border-radius: 50%; box-shadow: 0 0 0 4px var(--poppy-soft); }
.kicker.live .dot { animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }

.display {
  font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800;
  text-transform: uppercase; line-height: .86; letter-spacing: -.01em; margin: 0;
}
.h-xl { font-size: clamp(64px, 13vw, 200px); }
.h-lg { font-size: clamp(48px, 8vw, 120px); }
.h-md { font-size: clamp(38px, 5.4vw, 76px); }
.h-sm { font-size: clamp(28px, 3.4vw, 44px); line-height: .95; }
.accent { color: var(--poppy); }
.c-worse { color: var(--worse); } .c-better { color: var(--better); } .c-within { color: var(--within); } .c-unknown { color: var(--unknown); }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--text-2); max-width: 46ch; }
.prose { max-width: 68ch; color: var(--text-2); }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--text); }
.small { font-size: 14px; color: var(--muted); }
h1, h2, h3 { font-family: var(--f-display); margin: 0; }
h2.section-title { font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6vw, 84px); line-height: .9; }
h3 { font-variation-settings: "wdth" 85; font-weight: 700; font-size: 22px; line-height: 1.15; }

/* ---------- top bar + header ---------- */
.topbar {
  border-bottom: 1px solid var(--line); background: var(--bg);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.topbar .wrap { display: flex; gap: 22px; align-items: center; height: 32px; overflow: hidden; white-space: nowrap; }
.topbar b { color: var(--text); font-weight: 600; }
.topbar .sep { opacity: .4; }
.topbar .right { margin-left: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { height: 26px; width: auto; }
.logo:hover { color: inherit; }
:root[data-theme="light"] .logo .on-dark { display: none; }
:root:not([data-theme="light"]) .logo .on-light { display: none; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 11px; border-radius: 999px; color: var(--text-2);
  font-variation-settings: "wdth" 90; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--bg-3); }
.nav a[aria-current="page"] { color: #000; background: var(--poppy); }
.header-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.btn-search {
  display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 10px 7px 14px; font-size: 14px; color: var(--muted); min-width: 190px;
}
.btn-search:hover { border-color: var(--line-2); color: var(--text); }
.btn-search kbd { margin-left: auto; font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: transparent; border: 1px solid var(--line); }
.icon-btn:hover { border-color: var(--line-2); background: var(--bg-3); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .nav .nav-secondary { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .btn-search { min-width: 0; padding: 0; width: 38px; height: 38px; justify-content: center; }
  .btn-search span, .btn-search kbd { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav.open {
    display: block; position: fixed; inset: 97px 0 0 0; background: var(--bg); z-index: 49; overflow: auto;
    padding: 24px var(--gutter) 60px; border-top: 1px solid var(--line);
  }
  .mobile-nav a { display: block; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line);
    font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 38px; line-height: 1; }
  .mobile-nav a span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-right: 12px; vertical-align: middle; }
  .mobile-nav .minor a { font-size: 22px; font-family: var(--f-body); font-variation-settings: "wdth" 100; text-transform: none; font-weight: 600; }
  .topbar .hide-sm { display: none; }
}

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: 15px; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s;
  font-variation-settings: "wdth" 90;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--poppy); color: #000; }
.btn-primary:hover { color: #000; background: #ff7436; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn svg { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 9px 4px 8px; border-radius: 999px; white-space: nowrap; font-weight: 600; line-height: 1.3;
  border: 1px solid transparent;
}
.chip i { font-style: normal; font-size: 12px; }
.chip.worse { background: var(--worse-soft); color: var(--worse); border-color: color-mix(in srgb, var(--worse) 30%, transparent); }
.chip.within { background: var(--within-soft); color: var(--within); border-color: color-mix(in srgb, var(--within) 25%, transparent); }
.chip.better { background: var(--better-soft); color: var(--better); border-color: color-mix(in srgb, var(--better) 30%, transparent); }
.chip.unknown { background: var(--unknown-soft); color: var(--unknown); border-color: color-mix(in srgb, var(--unknown) 30%, transparent); border-style: dashed; }
.chip.dir { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.chip.dir.improving { color: var(--better); }
.chip.dir.worsening { color: var(--worse); }
.chip.plain { background: var(--bg-3); color: var(--text-2); }
.chip.conf { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 32px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .num { font-family: var(--f-mono); font-size: 12px; color: var(--poppy); letter-spacing: .14em; margin-bottom: 18px; display: block; }
.section-head p { margin: 0; color: var(--text-2); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 70vw; height: 70vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 91, 20, .16), transparent 70%); filter: blur(10px);
}
:root[data-theme="light"] .hero::after { background: radial-gradient(closest-side, rgba(255, 91, 20, .12), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; position: relative; z-index: 1; }
.hero h1 { margin: 26px 0 28px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .strike { position: relative; }
@keyframes rise { to { transform: none; } }
.hero .lede { margin: 0 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 40px; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); width: fit-content; }
.hero-facts div { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-facts b { display: block; font-family: var(--f-display); font-variation-settings: "wdth" 62; font-size: 44px; line-height: 1; color: var(--text); letter-spacing: 0; margin-bottom: 4px; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 8px 16px; } .hero-facts b { font-size: 34px; } .hero-facts div { font-size: 10px; } }

/* ---------- RECEIPT ---------- */
.receipt-wrap { position: relative; perspective: 1400px; }
.receipt {
  --zig: 9px;
  position: relative; background: var(--paper); color: var(--paper-ink); font-family: var(--f-mono); font-size: 12.5px; line-height: 1.55;
  padding: 30px 26px 34px; transform: rotate(1.4deg); transform-origin: top center;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 2px 0 rgba(0,0,0,.05);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%,
               conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%,
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%;
  mask-composite: intersect;
}
.receipt::before { /* thermal paper sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.5) 45%, transparent 60%), repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.012) 3px 4px);
}
.hero .receipt { animation: print 1.6s .2s var(--ease) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: rotate(1.4deg) translateY(-30px); } to { clip-path: inset(0 0 0 0); transform: rotate(1.4deg); } }
.receipt .r-head { text-align: center; margin-bottom: 14px; }
.receipt .r-head img { height: 22px; margin: 0 auto 10px; }
.receipt .r-head div { font-size: 11px; letter-spacing: .12em; color: var(--paper-muted); text-transform: uppercase; }
.receipt hr { border: 0; border-top: 1.5px dashed var(--paper-ink); opacity: .45; margin: 12px 0; }
.receipt .r-cols { display: grid; grid-template-columns: 1fr 64px 64px; gap: 8px; font-size: 10.5px; letter-spacing: .1em; color: var(--paper-muted); text-transform: uppercase; }
.receipt .r-row {
  display: grid; grid-template-columns: 1fr 64px 64px; gap: 8px; align-items: baseline; padding: 3px 0; text-decoration: none; color: inherit;
}
.receipt .r-row:hover { background: rgba(0, 0, 0, .06); color: inherit; }
.receipt .r-row .it { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt .r-row .it small { color: var(--paper-muted); font-size: 11px; margin-left: 4px; }
.receipt .lv { font-weight: 700; text-transform: uppercase; font-size: 11px; }
.receipt .lv.worse { color: #c8102e; } .receipt .lv.within { color: var(--paper-muted); } .receipt .lv.better { color: #0a7d4f; } .receipt .lv.unknown { color: var(--paper-muted); text-decoration: line-through; }
.receipt .dr { font-size: 11px; text-transform: uppercase; color: var(--paper-muted); }
.receipt .r-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.receipt .r-total.big { font-size: 15px; margin-top: 6px; }
.receipt .r-tally { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 4px; margin: 6px 0; }
.receipt .r-tally b { display: block; font-size: 26px; line-height: 1; font-family: var(--f-display); font-variation-settings: "wdth" 62; }
.receipt .r-tally span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-muted); }
.receipt .r-foot { text-align: center; font-size: 11px; color: var(--paper-muted); margin-top: 14px; text-transform: uppercase; letter-spacing: .08em; }
.receipt .barcode { height: 38px; margin: 14px auto 4px; width: 80%;
  background: repeating-linear-gradient(90deg, var(--paper-ink) 0 2px, transparent 2px 4px, var(--paper-ink) 4px 5px, transparent 5px 8px, var(--paper-ink) 8px 11px, transparent 11px 12px, var(--paper-ink) 12px 13px, transparent 13px 16px); }
.receipt .r-row { opacity: 0; animation: ink .4s forwards; }
@keyframes ink { to { opacity: 1; } }
.stamp {
  position: absolute; right: -14px; bottom: 120px; z-index: 3; transform: rotate(-14deg);
  font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: 34px; line-height: .9; text-transform: uppercase; text-align: center;
  color: var(--worse); border: 4px solid var(--worse); padding: 8px 14px 6px; border-radius: 6px; mix-blend-mode: normal;
  background: color-mix(in srgb, var(--paper) 30%, transparent);
  animation: stamp .5s 2s cubic-bezier(.3, 1.6, .5, 1) both; letter-spacing: .02em;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.5' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stamp small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; font-weight: 600; }
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(2.2); } to { opacity: .92; transform: rotate(-14deg) scale(1); } }
@media (max-width: 520px) { .receipt { padding: 26px 16px 30px; font-size: 11.5px; } .receipt .r-cols, .receipt .r-row { grid-template-columns: 1fr 54px 52px; } .stamp { right: 4px; font-size: 26px; } }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; position: relative; }
.ticker-track { display: flex; width: max-content; animation: tick 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { display: flex; align-items: baseline; gap: 12px; padding: 18px 34px; text-decoration: none; border-right: 1px solid var(--line); white-space: nowrap; }
.ticker a b { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: 32px; line-height: 1; color: var(--poppy); }
.ticker a span { font-size: 14px; color: var(--text-2); }
.ticker a:hover span { color: var(--text); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- reading matrix ---------- */
.verdict { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.verdict .big-count { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: clamp(120px, 20vw, 280px); line-height: .8; color: var(--worse); letter-spacing: -.02em; }
.verdict .big-count small { font-size: .32em; color: var(--muted); letter-spacing: 0; }
.verdict h2 { margin: 18px 0 22px; }
@media (max-width: 980px) { .verdict { grid-template-columns: 1fr; } }

.matrix { display: grid; grid-template-columns: 110px repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(3, minmax(120px, auto)); gap: 6px; position: relative; }
.matrix .ax { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: flex-end; padding: 0 4px 6px; }
.matrix .ax.row { align-items: center; justify-content: flex-start; padding: 0 8px 0 0; line-height: 1.3; }
.matrix .ax.row b { display: block; font-size: 13px; color: var(--text); letter-spacing: .06em; }
.matrix .cell { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 6px; position: relative; min-height: 120px; }
.matrix .cell.r-worse { background: linear-gradient(180deg, var(--worse-soft), transparent 140%); border-color: color-mix(in srgb, var(--worse) 25%, var(--line)); }
.matrix .cell.r-better { background: linear-gradient(180deg, var(--better-soft), transparent 140%); border-color: color-mix(in srgb, var(--better) 22%, var(--line)); }
.matrix .cell.hot { outline: 2px solid var(--worse); outline-offset: 2px; }
.matrix .cell .note { font-family: var(--f-mono); font-size: 10.5px; color: var(--worse); text-transform: uppercase; letter-spacing: .08em; margin-top: auto; }
.mx-item { display: block; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; transition: border-color .2s, transform .2s var(--ease); }
.mx-item:hover { border-color: var(--text); transform: translateY(-2px); color: inherit; }
.mx-item b { display: block; font-family: var(--f-display); font-variation-settings: "wdth" 70; font-size: 22px; line-height: 1; }
.mx-item span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.25; margin-top: 3px; }
.mx-item .conf { font-family: var(--f-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.unknown-slot { margin-top: 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.unknown-slot .mx-item { border-style: dashed; }
@media (max-width: 640px) {
  .matrix { grid-template-columns: 1fr; grid-template-rows: none; }
  .matrix .ax.col, .matrix .corner { display: none; }
  .matrix .ax.row { padding: 16px 0 4px; }
  .matrix .cell { min-height: 0; }
  .matrix .cell:empty, .matrix .cell.empty { display: none; }
  .matrix .cell::before { content: attr(data-dir); font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
}

/* ---------- story: jobs bars ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.story.flip > :first-child { order: 2; }
@media (max-width: 980px) { .story, .story.flip { grid-template-columns: 1fr; } .story.flip > :first-child { order: 0; } }
.story h2 { margin: 18px 0 24px; }
.story .lede { margin-bottom: 24px; }
.jobbars { display: flex; flex-direction: column; gap: 28px; }
.jobbar .lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.jobbar .lab span { font-weight: 600; font-size: 15px; }
.jobbar .lab b { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: clamp(44px, 6vw, 72px); line-height: .85; }
.jobbar .track { position: relative; height: 34px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 8)); border-radius: 2px; }
.jobbar .zero { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--text); left: var(--z); }
.jobbar .fill { position: absolute; top: 0; bottom: 0; left: var(--z); width: 0; background: var(--c); transition: width 1.4s var(--ease); border-radius: 0 2px 2px 0; }
.jobbar .fill.neg { left: auto; right: calc(100% - var(--z)); border-radius: 2px 0 0 2px; }
.in .jobbar .fill { width: var(--w); }
.jobbar .sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- who pays bar ---------- */
.paystack { display: flex; height: 120px; width: 100%; border-radius: 3px; overflow: hidden; gap: 2px; }
.paystack > div { position: relative; flex: 0 0 auto; width: 0; transition: width 1.4s var(--ease); background: var(--c); min-width: 0; }
.in .paystack > div { width: var(--w); }
.paystack > div span { position: absolute; left: 8px; bottom: 8px; font-family: var(--f-mono); font-size: 11px; color: #000; font-weight: 700; white-space: nowrap; }
.paylegend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 20px; margin-top: 18px; }
.paylegend div { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--text-2); }
.paylegend i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); flex: none; transform: translateY(1px); }
.paylegend b { font-family: var(--f-mono); color: var(--text); margin-left: auto; }
.payhead { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.payhead .num { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: clamp(120px, 18vw, 240px); line-height: .78; color: var(--poppy); }

/* ---------- migration columns ---------- */
.migbars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; align-items: start; height: 300px; border-top: 2px solid var(--text); padding-top: 0; }
.migbars .col { display: flex; flex-direction: column; align-items: stretch; height: 100%; }
.migbars .bar { height: 0; background: var(--c, var(--worse)); transition: height 1.2s var(--ease); transition-delay: calc(var(--i) * 50ms); border-radius: 0 0 2px 2px; position: relative; }
.migbars .bar.est { background: repeating-linear-gradient(135deg, var(--worse) 0 4px, transparent 4px 7px); border: 1px solid var(--worse); border-top: 0; }
.in .migbars .bar { height: var(--h); }
.migbars .yr { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 6px; }
.migbars .v { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-2); text-align: center; margin-top: 4px; opacity: 0; transition: opacity .6s 1s; }
.in .migbars .v { opacity: 1; }
@media (max-width: 640px) { .migbars .v { display: none; } .migbars .yr { font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); margin: 6px auto 0; } }

/* ---------- domain cards ---------- */
.domain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 1000px) { .domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .domain-grid { grid-template-columns: 1fr; } }
.dcard { background: var(--bg); padding: 26px 24px 22px; text-decoration: none; display: flex; flex-direction: column; gap: 14px; min-height: 360px; position: relative; overflow: hidden; transition: background .25s; }
.dcard:hover { background: var(--bg-2); color: inherit; }
.dcard .top { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.dcard h3 { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 54px; line-height: .88; }
.dcard p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.4; }
.dcard .spark { margin-top: auto; height: 70px; }
.dcard .tally { display: flex; gap: 6px; flex-wrap: wrap; }
.dcard .arrow { position: absolute; right: 22px; top: 54px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .3s var(--ease); }
.dcard:hover .arrow { background: var(--poppy); border-color: var(--poppy); color: #000; transform: rotate(-45deg); }
.dcard .arrow svg { width: 16px; height: 16px; }

/* ---------- rules ---------- */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: rule; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .rules { grid-template-columns: 1fr; } }
.rule { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); counter-increment: rule; }
.rule:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.rule:not(:nth-child(3n+1)) { padding-left: 28px; }
@media (max-width: 900px) { .rule { border-right: 0 !important; padding-left: 0 !important; } }
.rule::before { content: "RULE " counter(rule, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--poppy); display: block; margin-bottom: 16px; }
.rule h3 { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 36px; line-height: .92; margin-bottom: 12px; }
.rule p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* ---------- case files ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .cases { grid-template-columns: 1fr; } }
.casefile { position: relative; text-decoration: none; background: var(--paper); color: var(--paper-ink); padding: 26px 24px 24px; border-radius: 2px 14px 2px 2px; min-height: 300px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease); }
.casefile::before { content: ""; position: absolute; top: -12px; left: 0; width: 42%; height: 14px; background: var(--paper); border-radius: 6px 10px 0 0; }
.casefile:hover { transform: translateY(-6px) rotate(-.6deg); color: var(--paper-ink); }
.casefile .code { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--paper-muted); }
.casefile h3 { font-size: 24px; font-variation-settings: "wdth" 80; }
.casefile .big { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: 64px; line-height: .9; margin-top: auto; }
.casefile .bl { font-size: 13px; color: var(--paper-muted); }
.casefile .pending { position: absolute; top: 20px; right: 18px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid #c8102e; color: #c8102e; padding: 3px 7px; transform: rotate(4deg); }

/* ---------- final CTA ---------- */
.cta-band { background: var(--poppy); color: #000; padding: clamp(60px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(56px, 11vw, 168px); }
.cta-band p { font-size: 20px; max-width: 52ch; margin: 24px 0 32px; }
.cta-band .btn-dark { background: #000; color: var(--paper); }
.cta-band .btn-dark:hover { color: var(--paper); }
.cta-band .btn-line { border-color: #000; color: #000; }
.cta-band a:hover { color: inherit; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.site-footer ul a:hover { color: var(--poppy); }
.foot-word { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: clamp(80px, 19vw, 300px); line-height: .78; text-transform: uppercase; margin-top: 60px; color: var(--bg-3); letter-spacing: -.02em; user-select: none; white-space: nowrap; overflow: hidden; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- page headers (inner) ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.crumbs { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--poppy); }
.page-head .bignum { position: absolute; right: var(--gutter); top: 10px; font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: clamp(160px, 26vw, 380px); line-height: .8; color: var(--bg-3); z-index: -1; user-select: none; }
.page-head h1.title { font-variation-settings: "wdth" 72; font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -.01em; max-width: 22ch; }
.page-head .lede { margin-top: 20px; }

/* ---------- reading cards ---------- */
.readings { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; position: relative; overflow: hidden; transition: border-color .2s, transform .25s var(--ease); }
.rcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lc, var(--within)); }
.rcard.worse { --lc: var(--worse); } .rcard.better { --lc: var(--better); } .rcard.unknown { --lc: var(--unknown); }
.rcard:hover { border-color: var(--line-2); transform: translateY(-2px); color: inherit; }
.rcard .meta { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.rcard .val { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: 54px; line-height: .9; }
.rcard .val small { font-family: var(--f-body); font-variation-settings: "wdth" 100; font-weight: 500; font-size: 14px; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.rcard .nm { font-size: 14px; color: var(--text-2); line-height: 1.35; }
.rcard .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.rcard .why { font-size: 12.5px; color: var(--muted); }

.la-panel { border: 1px solid color-mix(in srgb, var(--sky) 40%, var(--line)); border-radius: 6px; padding: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 7%, transparent), transparent); }
.la-panel .kicker .dot { background: var(--sky); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 20%, transparent); }

/* ---------- series list ---------- */
.series-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 420px) { .series-list { grid-template-columns: 1fr; } }
.scard { background: var(--bg); padding: 20px; text-decoration: none; display: grid; grid-template-columns: 1fr 120px; gap: 6px 18px; align-items: start; transition: background .2s; }
.scard:hover { background: var(--bg-2); color: inherit; }
.scard .id { font-family: var(--f-mono); font-size: 11px; color: var(--poppy); letter-spacing: .1em; grid-column: 1 / -1; display: flex; justify-content: space-between; }
.scard .id span { color: var(--muted); }
.scard h3 { font-size: 17px; font-variation-settings: "wdth" 90; font-weight: 650; line-height: 1.25; }
.scard .spark { width: 120px; height: 48px; }
.scard .lt { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.scard .lt b { color: var(--text); font-weight: 600; }

/* ---------- metric page ---------- */
.m-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
@media (max-width: 900px) { .m-head { grid-template-columns: 1fr; } }
.m-id { display: inline-flex; gap: 8px; align-items: center; }
.m-id b { background: var(--poppy); color: #000; font-family: var(--f-mono); font-size: 13px; padding: 3px 8px; border-radius: 3px; letter-spacing: .06em; }
.latest { display: flex; gap: 12px; flex-wrap: wrap; }
.latest .lv { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; min-width: 160px; background: var(--bg-2); }
.latest .lv .g { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.latest .lv .g i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.latest .lv b { display: block; font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: 46px; line-height: 1; margin: 4px 0 2px; }
.latest .lv span { font-size: 12.5px; color: var(--muted); }

.chart-panel { border: 1px solid var(--line); background: var(--bg-2); border-radius: 6px; margin-top: 32px; }
.chart-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { background: transparent; border: 0; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); font-variation-settings: "wdth" 90; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.chart-legend button { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 9px; font-size: 13px; color: var(--text-2); }
.chart-legend button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chart-legend button[aria-pressed="false"] { opacity: .45; }
.chart-legend button[aria-pressed="false"] i { background: transparent; border: 1.5px solid var(--c); }
.chart-box { position: relative; padding: 8px 8px 4px; }
.chart-box svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; padding: 12px 16px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.chart-foot .key { display: inline-flex; align-items: center; gap: 8px; }
.chart-foot .key svg { width: 28px; height: 10px; display: inline; }
.chart-foot a { color: var(--text-2); }
.ax-label { font-family: var(--f-mono); font-size: 11px; fill: var(--muted); }
.ax-line { stroke: var(--line); stroke-width: 1; }
.ax-zero { stroke: var(--text); stroke-opacity: .55; stroke-width: 1; }
.band-rect { fill: var(--band); }
.band-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; fill: var(--muted); }
.tip {
  position: absolute; pointer-events: none; background: var(--paper); color: var(--paper-ink); font-family: var(--f-mono); font-size: 12px;
  padding: 10px 12px; border-radius: 3px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); min-width: 180px; max-width: 300px; z-index: 5;
  opacity: 0; transition: opacity .12s; transform: translate(-50%, 0);
}
.tip.on { opacity: 1; }
.tip .d { font-weight: 700; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed rgba(0,0,0,.3); text-transform: uppercase; letter-spacing: .06em; }
.tip .r { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: baseline; padding: 1px 0; }
.tip .r i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); transform: translateY(1px); }
.tip .r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip .r b { font-weight: 700; }
.tip .r em { grid-column: 2 / -1; font-style: normal; font-size: 10.5px; color: #8a2a00; margin-top: -2px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: 140px 1fr; border-top: 1px solid var(--line); margin: 0; }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 15px; }
.facts dd { color: var(--text-2); font-size: 15px; word-break: break-word; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

.sharecard .receipt { transform: none; font-size: 12px; }
.sharecard .actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sharecard .actions button { flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.sharecard .actions button:hover { border-color: var(--text); }

details.table { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
details.table summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.table summary::-webkit-details-marker { display: none; }
details.table summary::after { content: "+"; font-family: var(--f-mono); font-size: 20px; color: var(--muted); }
details.table[open] summary::after { content: "−"; }
.tbl-wrap { max-height: 460px; overflow: auto; border-top: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 12.5px; }
table.data th { position: sticky; top: 0; background: var(--bg-3); text-align: left; padding: 8px 12px; font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
table.data td { padding: 6px 12px; border-top: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
table.data td.n { text-align: right; color: var(--text); }
table.data tr.est td { font-style: italic; color: var(--muted); }

.challenge { border: 1px dashed var(--line-2); border-radius: 6px; padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
@media (max-width: 700px) { .challenge { grid-template-columns: 1fr; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pager a { background: var(--bg); padding: 22px; text-decoration: none; display: block; }
.pager a:hover { background: var(--bg-2); color: inherit; }
.pager a span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 6px; }
.pager a b { font-weight: 650; font-variation-settings: "wdth" 90; }
.pager a.next { text-align: right; }

/* ---------- generic content blocks ---------- */
.stack-lg > * + * { margin-top: clamp(48px, 7vw, 96px); }
.stack > * + * { margin-top: 24px; }
.block-title { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.block-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.callout { border-left: 3px solid var(--poppy); padding: 6px 0 6px 18px; color: var(--text-2); }
.pending-tag { display: inline-block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--worse); border: 1px solid var(--worse); padding: 2px 7px; border-radius: 3px; margin-left: 10px; vertical-align: middle; }
.toc { position: sticky; top: 90px; display: grid; gap: 4px; font-size: 14px; }
.toc a { text-decoration: none; color: var(--muted); padding: 4px 0 4px 14px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--text); border-color: var(--poppy); }
.def-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.def { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.def b { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--poppy); display: block; margin-bottom: 6px; }
.def p { margin: 0; font-size: 15px; color: var(--text-2); }
.timeline { border-left: 2px solid var(--line); padding-left: 24px; display: grid; gap: 28px; }
.timeline > div { position: relative; }
.timeline > div::before { content: ""; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.timeline > div.now::before { background: var(--poppy); border-color: var(--poppy); }
.src-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.src-table th { text-align: left; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); }
.src-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.src-table td:first-child a { font-family: var(--f-mono); color: var(--poppy); text-decoration: none; font-weight: 600; }
.src-table td .t { color: var(--text); font-weight: 600; display: block; margin-bottom: 4px; }
@media (max-width: 760px) { .src-table thead { display: none; } .src-table tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; } .src-table td { display: block; border: 0; padding: 4px 0; } }

/* ---------- search palette ---------- */
.palette { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); padding: 10vh 16px; }
.palette.open { display: block; }
.palette-box { max-width: 640px; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.palette input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 20px 22px; font: inherit; font-size: 20px; color: var(--text); outline: none; }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: 56vh; overflow: auto; }
.palette li a { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 6px; text-decoration: none; }
.palette li a .i { font-family: var(--f-mono); font-size: 12px; color: var(--poppy); }
.palette li a .d { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.palette li a.sel, .palette li a:hover { background: var(--bg-3); color: var(--text); }
.palette .empty { padding: 20px; color: var(--muted); }
.palette .hint { padding: 10px 18px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--muted); display: flex; gap: 16px; }

.search-page input { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 18px 24px; font: inherit; font-size: 20px; color: var(--text); }
.search-page input:focus { outline: none; border-color: var(--poppy); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; transition: all .3s var(--ease); z-index: 400; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media print {
  .site-header, .topbar, .site-footer, .chart-tools, .challenge, .pager, .ticker, .palette, body::before { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   THE WALL — every chart, one verdict each
   ========================================================================== */
.hero-wall { padding: clamp(22px, 3vw, 40px) 0 clamp(40px, 5vw, 64px); }
.hero-wall .wrap { display: block; }
.hw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.hero-wall h1 { margin: 14px 0 0; font-size: clamp(52px, 7.4vw, 112px); }
.hw-lede { color: var(--text-2); margin: 18px 0 18px; font-size: 16px; max-width: 80ch; }
.hw-lede b { color: var(--text); }
.tier-tally { display: flex; gap: 8px; flex-wrap: wrap; }
.tt { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 16px 10px 14px; text-align: left; display: flex; align-items: center; gap: 12px; min-width: 150px; transition: all .2s var(--ease); position: relative; overflow: hidden; }
.tt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc); }
.tt b { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: 48px; line-height: .9; color: var(--tc); }
.tt span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25; max-width: 9ch; }
.tt:hover { border-color: var(--tc); }
.tt[aria-pressed="true"] { background: var(--tc); border-color: var(--tc); }
.tt[aria-pressed="true"] b, .tt[aria-pressed="true"] span { color: #000; }
.tt.fucked, .t-fucked { --tc: var(--worse); --ts: var(--worse-soft); }
.tt.kindof, .t-kindof { --tc: var(--amber); --ts: var(--amber-soft); }
.tt.notfucked, .t-notfucked { --tc: var(--better); --ts: var(--better-soft); }

.tier { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; white-space: nowrap; color: #000; line-height: 1.3; }
.tier.fucked { background: var(--worse); }
.tier.kindof { background: var(--amber); }
.tier.notfucked { background: var(--better); }
.tier.big { font-size: 15px; padding: 8px 14px; font-family: var(--f-display); font-variation-settings: "wdth" 70; letter-spacing: .02em; }

.wall-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; position: sticky; top: 64px; z-index: 20; padding: 10px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wall-filters button { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.wall-filters button span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-left: 3px; }
.wall-filters button:hover { border-color: var(--line-2); color: var(--text); }
.wall-filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.wall-filters button[aria-pressed="true"] span { color: var(--bg); opacity: .6; }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 10px; }
.wcard {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-width: 0;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px 10px; overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.wcard::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tc); }
.wcard:hover { transform: translateY(-3px); border-color: var(--tc); box-shadow: 0 18px 40px -20px var(--tc); color: inherit; }
.wcard.hide { display: none; }
.w-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.w-id { font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--text); letter-spacing: .04em; }
.w-id em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; }
.wcard h3 { font-size: 13.5px; font-variation-settings: "wdth" 88; font-weight: 600; line-height: 1.22; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.44em; }
.w-chart { height: 66px; margin: 2px -4px 0; }
.w-chart svg { width: 100%; height: 100%; }
.w-foot { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.w-foot b { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: 26px; line-height: 1; }
.w-foot span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.w-foot i { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--tc); white-space: nowrap; }
@media (max-width: 520px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .w-foot span { display: none; } .w-chart { height: 54px; } .tt { min-width: 0; flex: 1; padding: 8px 10px; } .tt b { font-size: 34px; } .tt span { font-size: 9.5px; } }

/* metric page verdict banner */
.m-verdict { margin-top: 26px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border: 1px solid var(--tc); background: linear-gradient(90deg, var(--ts), transparent 70%); border-radius: 6px; padding: 12px 16px; }
.m-verdict > div { flex: 1; min-width: 240px; display: grid; gap: 2px; }
.m-verdict b { font-size: 15px; }
.m-verdict span:not(.tier) { font-size: 13.5px; color: var(--text-2); }
.m-verdict a { font-size: 13px; color: var(--muted); }

/* zoom dialog */
dialog.zoom { width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--text); padding: 20px 22px 16px; box-shadow: 0 50px 120px rgba(0,0,0,.6); overflow: auto; }
dialog.zoom::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }
dialog.zoom[open] { animation: zin .28s var(--ease); }
@keyframes zin { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.zoom-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.zoom-head h2 { font-variation-settings: "wdth" 75; font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; margin-top: 8px; max-width: 32ch; }
.zoom-meta { display: flex; gap: 10px; align-items: center; }
.zoom-actions { display: flex; gap: 8px; align-items: center; }
.zoom-actions .btn { padding: 9px 16px; font-size: 13.5px; }
.zoom-why { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--tc, var(--line-2)); background: var(--ts, transparent); color: var(--text-2); font-size: 14px; }
.zoom-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.zoom-nav .btn { padding: 8px 14px; font-size: 13px; }
@media (max-width: 600px) { dialog.zoom { padding: 14px; } .zoom-nav .small { display: none; } }
.btn-search svg { width: 16px; height: 16px; flex: none; }
.hero-wall h1 { font-size: clamp(48px, 6.4vw, 96px); }
