/* After the Hack: forensic trace theme.
   Color encodes outcome everywhere on the page:
   mint = returned by the attacker or an insider, ice = frozen, seized or recovered another way,
   hatched slate = no recorded recovery, pink = arrested or charged, amber = North Korea (government attribution). */

@font-face { font-family: "Departure"; src: url("fonts/departure-mono.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url("fonts/atkinson-mono.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #0a0d13;
  --bg-2: #0f141d;
  --bg-3: #151c28;
  --line: #222b3a;
  --line-2: #2f3b4f;
  --ink: #e7ebf1;
  --ink-2: #a9b3c3;
  --ink-3: #7f8aa0;
  --ret: #44e3bf;
  --oth: #8db8ff;
  --none: #4a5568;
  --arr: #ff5c93;
  --dprk: #ffc34d;
  --hatch: repeating-linear-gradient(135deg, rgba(127,138,160,.30) 0 1.5px, transparent 1.5px 6px);
  --display: "Departure", "Atkinson Mono", ui-monospace, monospace;
  --body: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1240px;
  --gut: 16px;
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --gut: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.55 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 400; margin: 0; }
button { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.prose { max-width: 66ch; }
.prose p, .lead { color: var(--ink-2); }
.lead { font-size: 20px; line-height: 1.5; max-width: 62ch; }
.lead strong, .prose strong { color: var(--ink); font-weight: 700; }
.small { font-size: 15px; color: var(--ink-3); line-height: 1.5; }

/* ------------------------------------------------------------ top bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,13,19,.94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.bar .wrap { display: flex; align-items: center; gap: 20px; height: 52px; }
.mark { font: 22px/1 var(--display); text-decoration: none; white-space: nowrap; letter-spacing: 0; }
.mark i { font-style: normal; color: var(--arr); }
.nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 10px; font-size: 15px; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-radius: 3px; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); background: var(--bg-3); }
.bar-out { display: none; gap: 6px; }
.bar-out a { font-size: 15px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 3px; text-decoration: none; white-space: nowrap; }
.bar-out a:hover { border-color: var(--ink-2); }
@media (min-width: 1100px) { .bar-out { display: flex; } .nav a { padding: 8px 7px; } }
@media (max-width: 1099px) { .nav { mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); } }
@media (max-width: 699px) { .bar .wrap { gap: 10px; } .mark { font-size: 16.5px; } .nav a { padding: 8px 8px; font-size: 14px; } }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: 24px 0 36px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before { /* tracing-canvas dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(169,179,195,.13) 1px, transparent 1.2px);
  background-size: 22px 22px; background-position: 11px 11px;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.hero .wrap { position: relative; display: grid; gap: 18px; }
@media (min-width: 700px) { .hero .wrap { gap: 32px; } .hero { padding: 40px 0 56px; } }
@media (min-width: 1100px) {
  .hero .wrap { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); grid-template-areas: "t f" "c f"; column-gap: 48px; row-gap: 0; }
  .hero-text { grid-area: t; align-self: end; } .trace { grid-area: f; align-self: center; } .hero-cta { grid-area: c; align-self: start; }
  .hero { padding: 64px 0 72px; }
}
.h1 { font: 40px/1.04 var(--display); letter-spacing: -0.01em; }
.h1 > span { display: block; }
.h1 .l2 { color: var(--ink-2); }
@media (min-width: 480px) { .h1 { font-size: 55px; } }
@media (min-width: 1100px) { .h1 { font-size: 55px; } }
.h1-sub { font: 700 22px/1.3 var(--body); margin: 14px 0 0; max-width: 26ch; }
.h1-sub b { color: var(--arr); font-weight: 700; }
.hero-dek { margin: 10px 0 0; color: var(--ink-2); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1100px) { .hero-cta { margin-top: 24px; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 9px 16px; border-radius: 3px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink); font: 700 16px/1.2 var(--body);
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink-2); }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.solid:hover { background: #fff; }
.btn.sm { min-height: 36px; padding: 6px 11px; font-size: 14px; font-weight: 700; }
.btn svg { width: 16px; height: 16px; }

/* trace graph */
.trace { margin: 0; }
.trace-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.trace-head p { margin: 0; font-size: 15px; color: var(--ink-3); }
.trace-stage { position: relative; display: grid; grid-template-columns: 30% 1fr 46%; align-items: center; min-height: 330px; }
.trace-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tnode { position: relative; z-index: 1; border: 1px solid var(--line-2); background: var(--bg-2); padding: 12px 14px; border-radius: 3px; }
.tnode .amt { display: block; font: 33px/1 var(--display); }
.tnode .pct { font: 22px/1 var(--display); }
.tnode .lab { display: block; font-size: 15px; line-height: 1.35; color: var(--ink-2); margin-top: 6px; }
.tn-root { grid-column: 1; border-color: var(--ink-3); display: flex; flex-direction: column; justify-content: center; min-height: 260px; background-image: linear-gradient(90deg, transparent calc(100% - 3px), var(--ink-3) calc(100% - 3px)); }
.tn-root .amt { font-size: 33px; }
.tn-col { grid-column: 3; display: flex; flex-direction: column; gap: 12px; }
a.tnode { text-decoration: none; display: block; color: var(--ink); }
a.tnode:hover { border-color: var(--ink-2); }
.tn-ret { border-left: 4px solid var(--ret); }
.tn-ret .amt, .tn-ret .pct { color: var(--ret); }
.tn-oth { border-left: 4px solid var(--oth); }
.tn-oth .amt, .tn-oth .pct { color: var(--oth); }
.tn-none { border: 1px dashed var(--ink-3); background-color: var(--bg); background-image: var(--hatch); min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; }
.tn-none .amt { font-size: 44px; }
.tn-none .lab { color: var(--ink); }
.tnode .row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.trace-foot { margin-top: 10px; display: flex; justify-content: space-between; gap: 10px 16px; align-items: flex-start; }
.trace-foot p { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); max-width: 56ch; }
details.fn { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-3); }
details.fn > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
details.fn > summary::-webkit-details-marker { display: none; }
details.fn > summary::after { content: "i"; flex: none; width: 18px; height: 18px; display: inline-grid; place-items: center; font: 13px/1 var(--display); border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2); }
details.fn[open] > summary::after { content: "x"; }
details.fn > summary:hover { color: var(--ink-2); }
@media (max-width: 699px) {
  .trace-stage { grid-template-columns: 34% 1fr 52%; min-height: 280px; }
  .tnode { padding: 9px 10px; }
  .tnode .amt, .tn-root .amt { font-size: 22px; }
  .tn-none .amt { font-size: 27.5px; }
  .tnode .pct { font-size: 16.5px; }
  .tnode .lab { font-size: 13.5px; }
  .tn-none { min-height: 132px; }
  .tn-root { min-height: 220px; }
  .tn-col { gap: 9px; }
}

/* ------------------------------------------------------------ sections */
.sec { padding: 72px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 699px) { .sec { padding: 52px 0; } }
.sec-head { margin-bottom: 28px; }
.kick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 22px/1.2 var(--display); color: var(--ink-3); margin-bottom: 14px; }
.kick b { font-weight: 400; color: var(--ink); background: var(--bg-3); border: 1px solid var(--line-2); padding: 3px 7px 4px; }
.h2 { font: 33px/1.12 var(--display); max-width: 32ch; display: flex; gap: 10px; align-items: flex-start; }
@media (min-width: 900px) { .h2 { font-size: 44px; } }
.h2 .anchor { flex: none; margin-top: 4px; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 3px; background: transparent; color: var(--ink-3); cursor: pointer; display: inline-grid; place-items: center; }
.h2 .anchor:hover { color: var(--ink); border-color: var(--ink-2); }
.h2 .anchor svg { width: 16px; height: 16px; }
.h2-t { flex: 0 1 auto; min-width: 0; }
.sec-head .lead { margin-top: 16px; }
.h3 { font: 700 22px/1.25 var(--body); margin: 48px 0 8px; }
.h3 + .small { margin-top: 0; }
.cols { display: grid; gap: 40px; }
@media (min-width: 1000px) { .cols { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* panel: a tool window */
.panel { border: 1px solid var(--line); background: var(--bg-2); border-radius: 3px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.panel-b { padding: 16px 14px; }
@media (min-width: 700px) { .panel-b { padding: 20px; } .panel-h { padding: 10px 20px; } }

/* ------------------------------------------------------------ case log (big hacks) */
.case-meta { font-size: 15px; color: var(--ink-3); margin-top: 8px; }
.case-bar { position: relative; height: 18px; margin: 4px 0 12px; }
.case-bar .full { position: absolute; left: 0; top: 0; bottom: 0; background: var(--hatch); border: 1px solid var(--line-2); }
.case-bar .seg { position: absolute; top: 0; bottom: 0; }
.seg.ret { background: var(--ret); }
.seg.oth { background: var(--oth); }
.case-line { margin: 0; font-size: 17px; color: var(--ink); max-width: 64ch; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; line-height: 1.3; color: var(--ink-2); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 2px; }
.tag::before { content: ""; width: 8px; height: 8px; flex: none; background: currentColor; }
.tag.arr { color: var(--arr); border-color: rgba(255,92,147,.45); }
.tag.dprk { color: var(--dprk); border-color: rgba(255,195,77,.45); }
.tag.ret { color: var(--ret); border-color: rgba(68,227,191,.4); }
.tag.oth { color: var(--oth); border-color: rgba(141,184,255,.4); }
.tag.mut { color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.key { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); margin: 14px 0 0; padding: 0; list-style: none; }
.key li { display: flex; align-items: center; gap: 7px; }
.sw { width: 14px; height: 14px; flex: none; display: inline-block; }
.sw.ret { background: var(--ret); } .sw.oth { background: var(--oth); } .sw.arr { background: var(--arr); } .sw.dprk { background: var(--dprk); }
.sw.none { background: var(--hatch); border: 1px solid var(--line-2); }
.sw.dim { background: var(--bg-3); border: 1px solid var(--line-2); }

.c-ret { color: var(--ret); } .c-oth { color: var(--oth); } .c-arr { color: var(--arr); } .c-dprk { color: var(--dprk); } .c-none { color: var(--ink-2); } .c-ink { color: var(--ink); }

/* ------------------------------------------------------------ explorer (the dump) */
.ex { display: grid; gap: 24px; }
@media (min-width: 1100px) { .ex { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 32px; } }
.ex-tools { display: grid; gap: 14px; margin-bottom: 16px; }
.search { position: relative; max-width: 520px; }
.search label { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.search input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 3px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  font: 400 17px/1.3 var(--mono);
}
@media (max-width: 699px) { .search input { font-size: 16px; } }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--ink-2); outline: 2px solid var(--ink); outline-offset: 1px; }
.results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line-2); border-radius: 3px; background: var(--bg-2); max-height: 300px; overflow: auto; }
.results[hidden] { display: none; }
.results button { width: 100%; display: flex; justify-content: space-between; gap: 12px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; cursor: pointer; font-size: 16px; }
.results li:last-child button { border-bottom: 0; }
.results button:hover, .results button:focus-visible { background: var(--bg-3); }
.results .rl { color: var(--ink-3); font-family: var(--display); font-size: 16.5px; white-space: nowrap; }
.res-count { font-size: 14px; color: var(--ink-3); margin: 6px 0 0; min-height: 1.4em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 3px; background: transparent; cursor: pointer; font-size: 15px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.chip .sw { width: 10px; height: 10px; }
.chip b { font: 16.5px/1 var(--display); font-weight: 400; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] b { color: var(--bg); }
.chip:hover { border-color: var(--ink-2); }
.filter-note { font-size: 14.5px; color: var(--ink-3); margin: 0; min-height: 1.4em; }

.dump { position: relative; border: 1px solid var(--line); background: var(--bg); border-radius: 3px; padding: 10px; font-family: var(--mono); }
.dump-h { display: flex; gap: 0; color: var(--ink-3); font-size: 11px; margin-bottom: 4px; }
.dump-row { display: flex; align-items: center; }
.dump-off { flex: none; width: 66px; font: 12px/1 var(--mono); color: var(--ink-3); }
.dump-cells { flex: 1; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2px; }
.dump-row + .dump-row { margin-top: 2px; }
.cell {
  aspect-ratio: 1 / 1; display: grid; place-items: center; cursor: pointer;
  font: 11px/1 var(--mono); color: #6f7b91; background: var(--bg-2);
  border-radius: 1px; user-select: none; position: relative;
}
.cell.r { background: rgba(68,227,191,.22); color: var(--ret); }
.cell.o { background: rgba(141,184,255,.2); color: var(--oth); }
.cell.c { background: var(--arr); color: #1a0410; font-weight: 700; }
.cell.dg::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 1px; height: 2px; background: var(--dprk); opacity: 0; }
.dump[data-f="dprk"] .cell.dg::after { opacity: 1; }
.dump[data-f] .cell:not(.hit) { opacity: .16; }
.dump[data-f="c"] .cell.c, .dump[data-f] .cell.c.hit { opacity: 1; }
.cell:hover { outline: 1px solid var(--ink-2); z-index: 1; }
.cell.sel { outline: 2px solid var(--ink); outline-offset: 0; z-index: 2; opacity: 1 !important; }
.cell:focus-visible { outline: 3px solid var(--dprk); z-index: 3; }
.dump.tiny .cell { font-size: 0; }
.dump.tiny .dump-off, .dump.nooff .dump-off { display: none; }
.dump-key { margin-top: 12px; }

.readout { position: relative; }
@media (min-width: 1100px) { .readout { position: sticky; top: 68px; } }
.rd-off { font: 13px/1 var(--mono); color: var(--ink-3); }
.rd-name { font: 33px/1.05 var(--display); margin: 2px 0 6px; overflow-wrap: anywhere; }
.rd-alias { font-size: 14px; color: var(--ink-3); margin: 0 0 6px; }
.rd-meta { font-size: 15px; color: var(--ink-2); margin: 0 0 12px; }
.rd-bar { margin: 0 0 14px; }
.rd-line { font-size: 18px; line-height: 1.45; margin: 0 0 12px; }
.rd-note { font-size: 14px; color: var(--ink-3); margin: 0 0 12px; }
.rd-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rd-help { font-size: 14px; color: var(--ink-3); margin: 12px 0 0; }

/* ------------------------------------------------------------ charts (HTML bars) */
.chart { margin: 8px 0 0; }
.chart-t { font: 700 18px/1.3 var(--body); margin: 0 0 4px; }
.chart-s { font-size: 14.5px; color: var(--ink-3); margin: 0 0 16px; }
.hbar { display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; align-items: center; }
.hbar + .hbar { margin-top: 8px; }
.hbar .y { font: 16.5px/1 var(--display); color: var(--ink-2); }
.hbar .track { position: relative; height: 22px; }
.hbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-3); min-width: 2px; }
.hbar .v { grid-column: 2; font-size: 14px; color: var(--ink-3); line-height: 1.3; }
.hbar .v b { color: var(--ink); font-weight: 700; }
@media (min-width: 700px) { .hbar { grid-template-columns: 52px minmax(0, 1fr) 210px; } .hbar .v { grid-column: 3; } }

.stack { display: flex; height: 40px; border: 1px solid var(--line-2); }
.stack span { display: block; height: 100%; min-width: 2px; }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: baseline; font-size: 15.5px; color: var(--ink-2); }
.legend li .sw { transform: translateY(2px); }
.legend li b { font: 16.5px/1 var(--display); font-weight: 400; color: var(--ink); white-space: nowrap; }

/* time axis (log) */
.clock { position: relative; }
.clock-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
@media (min-width: 800px) { .clock-row { grid-template-columns: 260px 1fr; gap: 16px; align-items: center; } }
.clock-l { font-size: 15px; color: var(--ink-2); line-height: 1.3; }
.clock-l small { color: var(--ink-3); font-size: 13px; }
.clock-t { position: relative; height: 26px; background: linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.clock-t .dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--oth); }
.clock-t .dot.ret { background: var(--ret); }
.clock-t .dot.arr { background: var(--arr); }
.clock-t .dot.slow { background: var(--ink-2); }
.clock-t .lbl { position: absolute; top: 50%; transform: translateY(-50%); font: 16.5px/1 var(--display); white-space: nowrap; padding: 0 8px; }
.clock-axis { position: relative; height: 26px; margin-top: 4px; }
@media (min-width: 800px) { .clock-axis { margin-left: 276px; } }
.clock-axis span { position: absolute; transform: translateX(-50%);}
.clock-axis span:first-child { transform: none; }
.clock-axis span:last-child { transform: translateX(-100%); }
.clock-axis span:last-child::before { left: 100%; }
.clock-axis span:first-child::before { left: 0; }
.clock-axis span { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.clock-axis span::before { content: ""; position: absolute; left: 50%; top: -6px; height: 5px; width: 1px; background: var(--ink-3); }

/* unit squares */
.units { display: flex; flex-wrap: wrap; gap: 3px; }
.units i { width: 11px; height: 11px; background: var(--bg-3); border: 1px solid var(--line-2); display: block; }
.units i.on { background: var(--ink); border-color: var(--ink); }
.offer-row { display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; align-items: start; padding: 8px 0; }
.offer-row .y { font: 16.5px/1.2 var(--display); color: var(--ink-2); }
.offer-row .v { grid-column: 2; font-size: 14px; color: var(--ink-3); }
.offer-row .v b { color: var(--ink); }

/* dot strip (days) */
.strip { position: relative; height: 92px; margin: 10px 0 0; }
.strip .axis { position: absolute; left: 0; right: 0; top: 62px; height: 1px; background: var(--line-2); }
.strip .wk { position: absolute; top: 0; bottom: 18px; border-left: 1px dashed var(--ink-3); }
.strip .wk span { position: absolute; top: 0; left: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.strip .pt { position: absolute; width: 10px; height: 10px; margin-left: -5px; background: var(--ret); }
.strip .tk { position: absolute; top: 70px; transform: translateX(-50%); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.strip .tk.first { transform: none; }
.strip .tk.last { transform: translateX(-100%); }

/* top-100 grid */
.grid100 { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; max-width: 420px; }
.grid100 i { aspect-ratio: 1/1; background: var(--bg-3); border: 1px solid var(--line-2); display: block; position: relative; }
.grid100 i.c { background: var(--arr); border-color: var(--arr); }
.grid100 i.l { border: 2px solid var(--arr); background: transparent; }
.grid100 i.v { background: var(--ink-3); border-color: var(--ink-3); }
.grid100 i.dg::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 14%; height: 3px; background: var(--dprk); }

/* arrest timeline */
.arrests { display: grid; gap: 6px; }
.ar { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 700px) { .ar { grid-template-columns: 210px 1fr; gap: 12px; align-items: center; } }
.ar-n { font-size: 15px; color: var(--ink); line-height: 1.25; }
.ar-n small { display: block; font-size: 13px; color: var(--ink-3); }
.ar-t { position: relative; height: 16px; }
.ar-t .b { position: absolute; left: 0; top: 4px; height: 8px; background: var(--arr); min-width: 3px; }
.ar-t .b.side { background: transparent; border: 1px solid var(--arr); }
.ar-t .b.out { background: var(--ink-3); }
.ar-t .d { position: absolute; top: 0; font: 13px/16px var(--body); color: var(--ink-2); white-space: nowrap; padding-left: 6px; }

/* people outcomes */
.people { display: grid; gap: 14px; }
.pg { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 700px) { .pg { grid-template-columns: 300px 1fr; align-items: center; gap: 16px; } }
.pg-l { font-size: 15.5px; color: var(--ink-2); line-height: 1.3; }
.pg-l b { font: 22px/1 var(--display); font-weight: 400; color: var(--ink); margin-right: 8px; }
.pg-u { display: flex; gap: 4px; flex-wrap: wrap; }
.pg-u i { width: 20px; height: 26px; display: block; border-radius: 10px 10px 2px 2px; background: var(--ink-3); }
.pg-u i.conv { background: var(--arr); }
.pg-u i.free { background: transparent; border: 1.5px dashed var(--ink-2); }

/* paired bars */
.pair { display: grid; gap: 14px; }
.pair-r { display: grid; grid-template-columns: 1fr; gap: 6px; }
.pair-r .pl { font-size: 15.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; }
.pair-r .pl b { font: 22px/1 var(--display); font-weight: 400; color: var(--ink); }
.pair-r .pt { height: 26px; background: var(--bg-3); position: relative; }
.pair-r .pt span { position: absolute; left: 0; top: 0; bottom: 0; min-width: 3px; }

/* vectors dumbbell */
.vec { display: grid; gap: 12px; }
.vec-r { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 700px) { .vec-r { grid-template-columns: 230px 1fr; gap: 14px; align-items: center; } }
.vec-l { font-size: 15px; color: var(--ink-2); }
.vec-b { display: grid; gap: 3px; }
.vec-b div { height: 10px; position: relative; }
.vec-b span { position: absolute; left: 0; top: 0; bottom: 0; }
.vec-b em { position: absolute; top: -3px; font: normal 13px/16px var(--body); color: var(--ink-2); padding-left: 6px; white-space: nowrap; }

/* on-chain messages */
.msgs { display: grid; gap: 18px; }
@media (min-width: 1000px) { .msgs { grid-template-columns: 1fr 1fr; } }
.msg { border: 1px solid var(--line); background: var(--bg-2); border-radius: 3px; display: flex; flex-direction: column; }
.msg-h { padding: 10px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 3px; font-size: 13.5px; color: var(--ink-3); }
.msg-h .who { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.msg-h .who b { color: var(--ink); }
.msg-h .side-a { color: var(--arr); }
.msg-h .side-p { color: var(--oth); }
.msg-b { padding: 14px; flex: 1; }
.msg-v { display: flex; gap: 4px; margin-bottom: 10px; }
.msg-v button { font-size: 13px; padding: 4px 9px; min-height: 30px; background: transparent; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink-3); cursor: pointer; }
.msg-v button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-2); background: var(--bg-3); }
.msg-text { font: 17px/1.5 var(--mono); color: var(--ink); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-text .el { color: var(--ink-3); }
.msg-hex { font: 14px/1.6 var(--mono); color: var(--ink-3); margin: 0; overflow-wrap: anywhere; }
.msg-ctx { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-3); line-height: 1.45; }

details.more { margin-top: 18px; }
details.more > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 3px; font-weight: 700; font-size: 16px; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; font-family: var(--display); }
details.more[open] > summary::before { content: "-"; }
details.more > summary:hover { border-color: var(--ink-2); }
details.more > .inner { margin-top: 18px; }



/* ------------------------------------------------------------ method */
.defs { display: grid; gap: 0; margin: 0; }
.defs div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .defs div { grid-template-columns: 240px 1fr; gap: 20px; } }
.defs dt { font-weight: 700; }
.defs dd { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; }
table.t { border-collapse: collapse; width: 100%; font-size: 15px; }
table.t th, table.t td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--ink-3); font-weight: 700; background: var(--bg-2); }
table.t td.num { white-space: nowrap; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
table.t.dl td:first-child { white-space: nowrap; }
@media (max-width: 699px) {
  table.t.dl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.t.dl, table.t.dl tbody, table.t.dl tr, table.t.dl td { display: block; }
  table.t.dl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.t.dl td { padding: 0; border: 0; }
  table.t.dl td:first-child { grid-column: 1 / -1; white-space: normal; overflow-wrap: anywhere; font-weight: 700; }
  table.t.dl td:nth-child(2) { font-size: 14px; color: var(--ink-2); }
}
.canon-list { display: grid; gap: 0; }
.canon-list details { border-bottom: 1px solid var(--line); }
.canon-list summary { cursor: pointer; padding: 12px 0; display: grid; grid-template-columns: 44px 1fr; gap: 12px; font-size: 16px; }
.canon-list summary b { font: 16.5px/1.3 var(--display); font-weight: 400; color: var(--ink-3); }
.canon-list .cv { padding: 0 0 16px 56px; font-size: 15px; color: var(--ink-2); }
.canon-list .cv p { margin: 0 0 8px; }
.canon-list .cv ul { margin: 0; padding-left: 18px; }
.canon-list .cv li { overflow-wrap: anywhere; }
@media (max-width: 699px) { .canon-list .cv { padding-left: 0; } }
.ainote { border: 1px solid var(--line-2); border-left: 4px solid var(--dprk); padding: 14px 16px; margin: 0 0 32px; max-width: 70ch; font-size: 17px; }

footer.foot { padding: 44px 0 64px; color: var(--ink-3); font-size: 15px; }
footer.foot .wrap { display: grid; gap: 14px; }
footer.foot .mark { font-size: 22px; color: var(--ink); }
footer.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; font-weight: 700; border-radius: 3px; pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
noscript p { padding: 20px; border: 1px solid var(--line-2); }
.hbar.wide { grid-template-columns: 1fr; gap: 4px; }
.hbar.wide .y { font: 15px/1.3 var(--body) !important; color: var(--ink-2); }
.hbar.wide .v { grid-column: 1; }
.hbar.wide + .hbar.wide { margin-top: 14px; }

#annual { max-width: 980px; }
@media (max-width: 1099px) {
  .ex { gap: 16px; }
  .ex > div:first-child { display: contents; }
  .ex-tools { order: 1; margin-bottom: 0; }
  .ex .readout { order: 2; }
  .ex .dump { order: 3; }
  .ex .dump-key { order: 4; margin-top: 0; }
}
@media (max-width: 699px) {
  .dump { max-height: 380px; overflow-y: auto; overscroll-behavior: contain; }
}

/* ------------------------------------------------------------ skim pass: chapter openers */
.opener { display: grid; gap: 4px; margin-top: 18px; max-width: 46ch; }
.open-n { font: 66px/0.95 var(--display); letter-spacing: -0.02em; margin: 0; }
.open-n small { font-size: 0.42em; letter-spacing: 0; color: var(--ink-2); }
.open-s { font: 700 20px/1.35 var(--body); margin: 0; color: var(--ink); }
@media (min-width: 900px) { .open-n { font-size: 88px; } .open-s { font-size: 22px; } }
.detail { font-size: 15px; color: var(--ink-3); line-height: 1.5; margin: 14px 0 0; max-width: 70ch; }
.detail strong { color: var(--ink-2); }
.pull { font: 700 19px/1.4 var(--body); color: var(--ink); border-left: 3px solid var(--line-2); padding: 2px 0 2px 14px; margin: 22px 0 0; max-width: 46ch; }
#dprk .pull { border-left-color: var(--dprk); margin-top: 0; }
#arrests .pull { border-left-color: var(--arr); }
details.more > summary { font-size: 15px; min-height: 40px; padding: 6px 12px; }
details.more + details.more { margin-top: 10px; }

/* ------------------------------------------------------------ skim pass: scoreboard */
.board { border-top: 1px solid var(--line-2); }
.sc { border-bottom: 1px solid var(--line); }
.sc > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; grid-template-areas: "top side x" "bar side x"; gap: 6px 14px; align-items: center; padding: 12px 0; }
.sc > summary::-webkit-details-marker { display: none; }
.sc > summary:hover .sc-name { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 4px; }
.sc-top { grid-area: top; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sc-name { font: 22px/1.1 var(--display); }
.sc-name small { font: 14px/1 var(--body); color: var(--ink-3); }
.sc-loss { font: 16.5px/1 var(--display); color: var(--ink-2); white-space: nowrap; }
.sc-loss small { font: 13px/1 var(--body); color: var(--ink-3); }
.sc-bar { grid-area: bar; height: 14px; margin: 0; display: block; }
.sc-side { grid-area: side; display: grid; justify-items: end; gap: 4px; min-width: 92px; text-align: right; }
.sc-pct { font: 33px/0.95 var(--display); }
.sc-pct small { display: block; font: 12.5px/1.2 var(--body); color: var(--ink-3); margin-top: 3px; }
.sc-arr { font-size: 12.5px; line-height: 1.2; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; max-width: 13ch; }
.sc-arr.on { color: var(--arr); }
.sc-arr.on::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--arr); }
.sc-x { grid-area: x; font: 18px/1 var(--display); color: var(--ink-3); align-self: center; }
.sc-x::before { content: "+"; }
.sc[open] .sc-x::before { content: "-"; }
.sc-more { padding: 0 0 18px; max-width: 72ch; }
.sc-more .case-line { margin-bottom: 6px; }
.sc-more .case-meta { margin: 0 0 10px; }
.sc-more .tags { margin-bottom: 12px; }
@media (min-width: 900px) {
  .sc > summary { grid-template-columns: 250px minmax(0, 1fr) 150px 180px 18px; grid-template-areas: "top bar side arr x"; padding: 14px 0; gap: 20px; }
  .sc-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sc-name { font-size: 27.5px; }
  .sc-side { display: contents; }
  .sc-pct { grid-area: side; text-align: right; font-size: 44px; }
  .sc-arr { grid-area: arr; max-width: none; }
  .sc-bar { height: 18px; }
}

/* ------------------------------------------------------------ skim pass: number tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.tile { position: relative; border: 1px solid var(--line); background: var(--bg-2); border-radius: 3px; }
.tile-a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px 12px 12px; text-decoration: none; color: var(--ink); }
.tile-a:hover { background: var(--bg-3); }
.tile-n { font: 35px/0.95 var(--display); letter-spacing: -0.02em; padding-right: 26px; white-space: nowrap; }
.tile-n small { display: block; font-size: 16.5px; letter-spacing: 0; color: var(--ink-2); margin-top: 3px; }
.tile-l { font-size: 14.5px; line-height: 1.35; color: var(--ink-2); flex: 1; }
.tile-t { font: 13px/1.2 var(--display); color: var(--ink-3); }
@media (min-width: 900px) { .tile-a { padding: 18px 18px 16px; } .tile-n { font-size: 55px; } .tile-l { font-size: 16px; } .tile-t { font-size: 15px; } }
.tile-sh { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 3px; color: var(--ink-3); cursor: pointer; }
.tile-sh:hover, .tile-sh[aria-expanded="true"] { color: var(--ink); border-color: var(--line-2); background: var(--bg); }
.tile-sh svg { width: 14px; height: 14px; }
.tile-menu { position: absolute; top: 42px; right: 6px; z-index: 5; display: grid; min-width: 140px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 3px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.tile-menu[hidden] { display: none; }
.tile-menu button { text-align: left; padding: 10px 12px; min-height: 40px; background: none; border: 0; cursor: pointer; font-size: 15px; }
.tile-menu button + button { border-top: 1px solid var(--line); }
.tile-menu button:hover, .tile-menu button:focus-visible { background: var(--bg-3); }

/* ------------------------------------------------------------ skim pass: chat */
.chat-wrap { margin: 8px 0 44px; max-width: 760px; }
@media (min-width: 1100px) { .head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } .head-grid .chat-wrap { margin-top: 0; } }
.chat-lead { margin: 0 0 12px; }
.chat { margin: 0; border: 1px solid var(--line); background: var(--bg-2); border-radius: 3px; padding: 14px; display: grid; gap: 10px; }
@media (min-width: 700px) { .chat { padding: 20px; } }
.chat-cap { font-size: 14.5px; color: var(--ink-3); line-height: 1.45; margin-bottom: 4px; }
.bub { max-width: 88%; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.bub.p { justify-self: start; border-bottom-left-radius: 2px; border-left: 3px solid var(--oth); }
.bub.a { justify-self: end; border-bottom-right-radius: 2px; border-right: 3px solid var(--arr); }
.bub-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.bub.p .bub-h b { color: var(--oth); }
.bub.a .bub-h b { color: var(--arr); }
.bub-t { font: 16px/1.5 var(--mono); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-gap { justify-self: center; font: 15px/1 var(--display); color: var(--ink-2); padding: 4px 10px; border: 1px dashed var(--line-2); border-radius: 2px; }
.chat-ctx { font-size: 14px; color: var(--ink-3); margin: 4px 0 0; line-height: 1.45; }
details.tx { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
details.tx > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; font-family: var(--mono); list-style: none; }
details.tx > summary::-webkit-details-marker { display: none; }
details.tx > summary::before { content: "+"; font-family: var(--display); }
details.tx[open] > summary::before { content: "-"; }
details.tx p { margin: 4px 0 0; overflow-wrap: anywhere; }
details.tx code, details.tx a { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }

/* ------------------------------------------------------------ skim pass: outreach comparison */
.cmp-wrap { margin-top: 32px; }
.cmp { display: grid; gap: 14px; margin: 10px 0 10px; }
.cmp-l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15.5px; color: var(--ink-2); margin-bottom: 6px; }
.cmp-l b { font: 33px/1 var(--display); font-weight: 400; }
.cmp-t { position: relative; height: 22px; background: var(--bg-3); }
.cmp-t span { position: absolute; left: 0; top: 0; bottom: 0; min-width: 3px; }

/* ------------------------------------------------------------ skim pass: one-time builds (JS adds .pre only when motion is allowed) */
.gx { transform-origin: 0 50%; }
.pre .gx { transform: scaleX(0); }
.pre .gp { opacity: 0; transform: scale(.3); }
.pre .gf, .pre.gf, .pre .clock-t .lbl { opacity: 0; }
.pre .gf { transform: translateY(8px); }
.pre .clock-t .dot { left: 0 !important; }
.go .gx, .go .gp, .go .gf { transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s ease-out; transition-delay: var(--d, 0ms); }
.go .clock-t .dot { transition: left var(--t, .5s) cubic-bezier(.3,.6,.2,1); }
.go .clock-t .lbl { transition: opacity .25s ease-out .5s; }
@media (prefers-reduced-motion: reduce) {
  .pre .gx, .pre .gp, .pre .gf { transform: none; opacity: 1; }
  .pre .clock-t .lbl { opacity: 1; }
  .pre .clock-t .dot { left: auto; }
}
@media print { .pre .gx, .pre .gp, .pre .gf { transform: none; opacity: 1; } .pre .clock-t .lbl { opacity: 1; } }
