/* ==========================================================================
   breakoutmodels — ink is measured, pencil is estimated

   The page is a sheet of cool engineering paper. Growth that the site counted
   between two of its own snapshots is printed in ink (Monaspace Neon); growth
   it had to estimate is pencilled in graphite (Monaspace Radon). The two faces
   share metrics, so a column of readings aligns whichever material it is in.
   That is the one loud idea; everything else stays quiet.

   Materials, and what each one means:
     paper       the page
     ink         text, measured readings, the chosen single option
     graphite    supporting text and estimated readings (never below 5.5:1)
     rule        hairlines and the chart-paper scale behind the signal mix
     highlighter only what you selected: a filter, a window, a view in force
     red pencil  falling ranks, removals, failures
     task inks   which kind of model: one ink per task group (Language, Multimodal,
                 Image, Audio, Video; Other stays graphite). Colour means task and
                 nothing else: the row's task label, its sparkline, the rail key and
                 the detail page's charts. Always beside the task's name, never alone.
   The signal mix stays monochrome fills (solid, hatch, stipple), so it never
   competes with the task inks for what a colour means.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Monaspace Neon";
  src: url("/static/fonts/monaspace-neon-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Monaspace Neon";
  src: url("/static/fonts/monaspace-neon-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Monaspace Radon";
  src: url("/static/fonts/monaspace-radon-medium.woff2") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
}

:root {
  --paper: #edf0ea;
  --paper-2: #e3e8df;        /* hover, wells */
  --sheet: #f7f9f4;          /* the inside of an input */
  --ink: #172036;            /* 14:1 on paper */
  --ink-2: #2b3550;          /* ink, hovered */
  --graphite: #565d59;       /* 5.9:1 on paper */
  --rule: #c4cfcb;
  --rule-2: #7f8a87;         /* control edges: 3.3:1, enough to find a field */
  --hl: #dcf25a;             /* highlighter */
  --red: #b42a22;            /* 5.5:1 on paper */
  --red-wash: #f4e1dc;

  /* Task inks. Validated as a set on paper (dataviz validate_palette.js,
     --pairs all): all inside the light band, chroma >= 0.10, >= 3:1 on paper,
     normal-vision worst pair dE 19.2; worst colour-blind pair dE 7.4 (plum vs
     teal), which is legal because the task's name is always printed beside it. */
  --task-lang: #1f4fbf;
  --task-mm: #9b6ef0;
  --task-img: #d0601a;
  --task-aud: #00968a;
  --task-vid: #b02a78;
  --task-other: var(--graphite);
  --row-bg: var(--paper);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ink-face: "Monaspace Neon", ui-monospace, Menlo, Consolas, monospace;
  --pencil-face: "Monaspace Radon", "Monaspace Neon", ui-monospace, Menlo, monospace;

  --r: 3px;
  --mh: 96px;                /* masthead height, set by app.js; static fallback */
  --ease: cubic-bezier(0.2, 0.8, 0.3, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 14px/1.5 var(--sans); font-stretch: 100%;
  font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 650; }
code { font-family: var(--ink-face); font-size: 12.5px; }
::selection { background: var(--hl); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 1px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ico {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.skip {
  position: absolute; left: 20px; top: -60px; z-index: 40; background: var(--ink); color: var(--paper);
  font-weight: 650; padding: 10px 14px; border-radius: var(--r); transition: top 140ms var(--ease);
}
.skip:focus { top: 10px; }
kbd {
  font: 400 12px/1 var(--ink-face); color: var(--graphite);
  border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: var(--r); padding: 2px 5px;
  background: var(--sheet);
}

/* The highlighter: a swipe behind the words, slightly shorter than the line,
   the way a marker actually sits on text. Used only for "you chose this". */
.on > span, .on > .cl, .fchip > span:first-child, output.set {
  background: linear-gradient(to bottom, transparent 14%, var(--hl) 14% 90%, transparent 90%);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding: 0 3px; margin: 0 -3px;
}

/* ------------------------------------------------------------ masthead */
.masthead { position: sticky; top: 0; z-index: 22; background: var(--paper); border-bottom: 1px solid var(--rule); }
.topbar {
  display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap;
  padding: 14px 24px 10px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; }
.brand-glyph { width: 22px; height: 22px; stroke-width: 1.6; }
.brand-name { font: 800 20px/1 var(--sans); font-stretch: 125%; letter-spacing: -0.01em; }
.brand-sub { color: var(--graphite); font-size: 13.5px; flex: 1 1 0; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* gives way before the nav wraps */
.version {
  align-self: center; font: 400 12.5px var(--ink-face); color: var(--ink); white-space: nowrap;
  padding: 2px 7px; border: 1px solid var(--rule-2); border-radius: var(--r);
}
.version:hover { border-color: var(--ink); }
.version .buildmeta { color: var(--graphite); }
.brand-tld { color: var(--graphite); font-weight: 500; }
.topnav { margin-left: auto; flex: none; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 13.5px; color: var(--graphite); }
.topnav a { display: inline-flex; align-items: center; min-height: 32px; white-space: nowrap; }
.topnav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* The reading strip: labels in the sans, figures as printed readings. */
.tape {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 26px;
  padding: 0 24px 11px; font-size: 13px; color: var(--graphite);
}
.tape-cell { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.tape .v { font: 400 12.5px/1.4 var(--ink-face); color: var(--ink); }
.tape .v.pencil { font-family: var(--pencil-face); font-weight: 500; color: var(--graphite); }
.tape .v.ink { font-weight: 600; }
.tape-cell.is-low .v, .tape-cell.is-low .k { color: var(--red); }
.tape-cell.is-link a { display: inline-flex; align-items: baseline; gap: 5px; min-height: 24px; }
.tape-cell.is-link a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------ layout */
.layout {
  display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 0 40px;
  padding: 22px 24px 0; align-items: start; max-width: 1560px;
}

/* ------------------------------------------------------------ filter rail */
.sidebar {
  position: sticky; top: calc(var(--mh) + 16px); max-height: calc(100vh - var(--mh) - 28px);
  overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 24px 0;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.group { border-top: 1px solid var(--rule); padding: 14px 0 16px; }
.group h2, .facts h2, section > h2 {
  margin: 0 0 8px; font: 650 14px/1.3 var(--sans); font-stretch: 112%; color: var(--ink);
}

.searchform { display: grid; gap: 10px; margin-bottom: 18px; }
.searchwrap { position: relative; display: flex; align-items: center; }
.searchwrap .ico { position: absolute; left: 11px; color: var(--graphite); pointer-events: none; }
.searchform input[type="search"] {
  width: 100%; min-height: 40px; padding: 9px 36px 9px 33px; border-radius: var(--r);
  border: 1px solid var(--rule-2); background: var(--sheet); color: var(--ink);
  font: 400 14px/1.4 var(--sans);
}
.searchform input[type="search"]::placeholder { color: var(--graphite); opacity: 1; }
.searchform input[type="search"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.searchwrap kbd { position: absolute; right: 9px; }
.searchrow { display: flex; gap: 16px; align-items: center; }
button.primary, a.primary {
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r);
  padding: 9px 20px; min-height: 40px; cursor: pointer;
  font: 650 14px/1.4 var(--sans); font-stretch: 108%;
  transition: background-color 120ms var(--ease);
}
button.primary:hover, a.primary:hover { background: var(--ink-2); }
a.ghost {
  color: var(--graphite); font-size: 13.5px; min-height: 28px; display: inline-flex; align-items: center;
  text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px;
}
a.ghost:hover { color: var(--red); text-decoration-color: var(--red); }

/* Single-select (rank, window, which date): a row of words; the chosen one is
   inked and highlighted. No boxes, no underline bars. */
.seg, .metrics { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.seg.small { margin-top: 6px; gap: 2px 14px; }
.seg a, .metric-chip {
  color: var(--graphite); font-size: 14px; min-height: 30px; display: inline-flex; align-items: center;
}
.seg.small a { font-size: 13.5px; }
.seg a:hover, .metric-chip:hover { color: var(--ink); }
.seg a:hover > span, .metric-chip:hover > span { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.seg a.on, .metric-chip.on { color: var(--ink); font-weight: 650; }
.seg a.on > span, .metric-chip.on > span { text-decoration: none; }

/* Multi-select facets: a drawn checkbox, the label, and the count in this view. */
.group details { margin: 2px 0; }
.group summary, .dropped summary, .recall-note summary, .tagmore summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  min-height: 30px; color: var(--graphite); font-size: 13.5px;
}
.group summary::-webkit-details-marker, .dropped summary::-webkit-details-marker,
.recall-note summary::-webkit-details-marker, .tagmore summary::-webkit-details-marker { display: none; }
.group summary::before, .dropped summary::before, .tagmore summary::before {
  content: ""; width: 6px; height: 6px; flex: none; margin: 0 3px 0 1px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform 140ms var(--ease);
}
details[open] > summary::before { transform: rotate(45deg) translate(-1px, -1px); }
.group summary:hover, .dropped summary:hover, .tagmore summary:hover { color: var(--ink); }
.group details[open] > summary { color: var(--ink); }
.sum-v { color: var(--ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.chips { display: grid; gap: 0; padding: 2px 0 4px; }
.chip {
  display: flex; gap: 9px; align-items: center; min-height: 30px; padding: 2px 6px 2px 4px;
  color: var(--ink); font-size: 13.5px; border-radius: var(--r);
}
.chip::before {
  content: ""; width: 14px; height: 14px; flex: none; border: 1.5px solid var(--rule-2); border-radius: 2px;
  background: var(--sheet) center / 11px no-repeat;
}
.chip.radio::before { border-radius: 50%; }
.chip:hover { background: var(--paper-2); }
.chip:hover::before { border-color: var(--ink); }
.chip.on { font-weight: 650; }
.chip.on::before {
  border-color: var(--ink); background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edf0ea' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E");
}
.chip.radio.on::before { background-image: radial-gradient(circle, var(--paper) 0 3px, transparent 3.5px); }
.chip .cl { min-width: 0; overflow-wrap: anywhere; }
.chip b { margin-left: auto; font: 400 12.5px/1 var(--ink-face); color: var(--graphite); }

/* Sliders: a hairline track filled in ink up to the value, an open ring thumb. */
.slides { display: grid; gap: 10px; margin-top: 2px; }
.slide { display: grid; }
.slide .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; }
.slide .k { color: var(--ink); }
.slide output { font: 400 12.5px/1.4 var(--ink-face); color: var(--graphite); }
.slide output.set { color: var(--ink); font-weight: 600; }
.slide output[data-key="limit"] { color: var(--ink); background: none; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px;
  background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: linear-gradient(to right, var(--ink) var(--p, 0%), var(--rule-2) var(--p, 0%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -7px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--ink);
  transition: transform 120ms var(--ease);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:active::-webkit-slider-thumb { background: var(--hl); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--rule-2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--ink); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); }
input[type="range"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.foot { color: var(--graphite); font-size: 13px; margin-top: 10px; max-width: 70ch; }

/* ------------------------------------------------------------ results column */
.content { min-width: 0; display: grid; gap: 16px; align-content: start; }

/* The title is the one large thing on the page: the ranking, set wide and heavy,
   with the window it covers underneath in the plain face. */
.pagehead { display: grid; gap: 10px; padding-top: 2px; }
.pagehead h1 { margin: 0; display: grid; gap: 6px; }
.h1-metric {
  font: 820 clamp(38px, 4.4vw, 60px)/0.92 var(--sans); font-stretch: 125%;
  letter-spacing: -0.025em; color: var(--ink);
}
.h1-window { font: 450 19px/1.25 var(--sans); font-stretch: 100%; color: var(--graphite); }
.lede { color: var(--ink); font-size: 15px; line-height: 1.55; max-width: 64ch; }

/* The one bar that decides what the chart and the list show: presets on top, then
   the ranking, the window and how variants count. Filters live in the sidebar. */
.viewbar { display: grid; gap: 4px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 2px 0 8px; }
.viewrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 34px; }
.vgroup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.vlbl { font: 650 13px/1.3 var(--sans); font-stretch: 112%; color: var(--ink); white-space: nowrap; }
.viewbar .seg.small { margin-top: 0; }
.viewbar .presets .vlbl { align-self: center; margin-right: -8px; }
.presets {
  display: flex; gap: 4px 22px; overflow-x: auto; padding: 6px 0;
  border-bottom: 1px dashed var(--rule);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  scrollbar-width: none;
}
.presets::-webkit-scrollbar { height: 0; }
.preset {
  white-space: nowrap; color: var(--graphite); font-size: 14px; min-height: 32px;
  display: inline-flex; align-items: center;
}
.preset:hover { color: var(--ink); }
.preset.on { color: var(--ink); font-weight: 650; }
.preset-note { color: var(--graphite); font-size: 14px; max-width: 70ch; }

/* In force: each filter is a highlighted phrase with its own way out. */
.activebar { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 13.5px; }
.activebar .lbl { color: var(--graphite); }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; color: var(--ink); font-weight: 600;
}
.fchip .ico { width: 12px; height: 12px; stroke-width: 2.2; color: var(--graphite); }
.fchip:hover .ico { color: var(--red); }
.fchip:hover > span:first-child { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.fchip.plain { font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.fchip.plain:hover { text-decoration-color: var(--ink); }
.activebar .clear { color: var(--graphite); min-height: 30px; display: inline-flex; align-items: center; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.activebar .clear:hover { color: var(--red); text-decoration-color: var(--red); }

.statusline { display: grid; gap: 2px; font-size: 13.5px; }
.provenance { display: flex; gap: 8px; align-items: baseline; color: var(--ink); max-width: 80ch; }
.provenance .ico, .recall-note summary .ico { flex: none; transform: translateY(2px); }
.recall-note summary { color: var(--graphite); }
.recall-note summary:hover { color: var(--ink); }
.more { color: var(--graphite); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.recall-note[open] summary .more { display: none; }
.recall-note p { margin: 0 0 6px 22px; color: var(--ink); max-width: 72ch; }
.dropped summary .more { text-decoration: none; }
.dropped summary .more::before { content: "("; } .dropped summary .more::after { content: ")"; }
.counts { margin: 2px 0 6px 18px; color: var(--ink); max-width: 72ch; }
.droplist { list-style: none; margin: 0 0 8px 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; color: var(--graphite); }
.droplist b { font: 400 12.5px var(--ink-face); color: var(--ink); }

.error {
  border: 1px solid var(--red); background: var(--red-wash); color: var(--ink); border-radius: var(--r);
  padding: 12px 14px; display: flex; gap: 10px; align-items: baseline;
}
.error .ico { color: var(--red); transform: translateY(2px); }

/* ------------------------------------------------------------ the ledger */
.mixkey {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; align-items: center;
  font-size: 12.5px; color: var(--graphite); margin-bottom: -6px;
}
.mixkey .k { color: var(--ink); }
.mixkey .key { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 18px; height: 10px; display: inline-block; border: 1px solid var(--ink); }

.ledger-head, .row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) 150px 172px;
  gap: 0 28px;
}
.ledger-head {
  position: sticky; top: var(--mh); z-index: 8; background: var(--paper);
  padding: 8px 12px 7px 0; border-bottom: 1.5px solid var(--ink);
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.ledger-head .h-growth { text-align: right; }

.results { list-style: none; margin: 0; padding: 0; }
.row {
  padding: 16px 12px 17px 0; border-bottom: 1px solid var(--rule);
  transition: background-color 120ms var(--ease);
}
.row:hover { background: var(--paper-2); --row-bg: var(--paper-2); }

.rank { display: grid; justify-items: start; align-content: start; gap: 4px; padding-left: 2px; }
.rank-n {
  font: 300 28px/0.95 var(--sans); font-stretch: 125%; letter-spacing: -0.02em; color: var(--graphite);
}
.move { display: inline-flex; align-items: center; gap: 1px; font: 400 12.5px/1 var(--ink-face); color: var(--ink); }
.move .ico { width: 13px; height: 13px; stroke-width: 2.2; }
.move.down { color: var(--red); }

.main { min-width: 0; display: grid; gap: 3px; align-content: start; }
.line1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-bottom: 1px; }
.name {
  font: 680 18px/1.25 var(--sans); font-stretch: 94%; letter-spacing: -0.005em;
  overflow-wrap: anywhere; min-height: 24px;
}
.name:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.author { color: var(--graphite); font-size: 14px; }

.facts { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: center; font-size: 13.5px; }
.facts:empty { display: none; }
.tagchip { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; color: var(--ink); white-space: nowrap; }
.tagchip .ico { width: 14px; height: 14px; color: var(--graphite); }
a.tagchip { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a.tagchip:hover { text-decoration-color: var(--ink); }
.tagchip.new { font-weight: 650; }

/* Task group ink. The slug class sets --tc; marks use it, text stays ink. */
.g-lang { --tc: var(--task-lang); } .g-mm { --tc: var(--task-mm); } .g-img { --tc: var(--task-img); }
.g-aud { --tc: var(--task-aud); } .g-vid { --tc: var(--task-vid); } .g-other { --tc: var(--task-other); }
a.tagchip.task {
  gap: 6px; padding: 0 8px 0 7px; border-radius: var(--r); text-decoration: none; color: var(--ink);
  background: color-mix(in oklab, var(--tc) 15%, var(--paper));
  transition: background-color 120ms var(--ease);
}
a.tagchip.task::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); flex: none; }
a.tagchip.task:hover { background: color-mix(in oklab, var(--tc) 28%, var(--paper)); }
.gdot { width: 9px; height: 9px; border-radius: 50%; background: var(--tc); flex: none; }
.tagchip.new .ico { color: var(--ink); }

.based_on { font-size: 13.5px; color: var(--graphite); }
.based_on a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1.5px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.based_on a:hover { text-decoration-color: var(--ink); }

.line2 { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 13.5px; color: var(--graphite); }
.metric b { font: 400 13px var(--ink-face); color: var(--ink); }
.reason { font-size: 13.5px; color: var(--ink); max-width: 70ch; }

/* The reading. Printed when measured, pencilled when estimated. */
.growth { display: grid; justify-items: end; align-content: start; gap: 4px; text-align: right; }
.reading { font-size: 24px; line-height: 1; letter-spacing: -0.01em; }
.growth.is-observed .reading, .stat-growth.is-observed .reading { font-family: var(--ink-face); font-weight: 600; color: var(--ink); }
.growth.is-proxy .reading, .stat-growth.is-proxy .reading { font-family: var(--pencil-face); font-weight: 500; color: var(--graphite); }
/* The sparkline: 2px step line in the task's ink, end dot ringed in the row's
   own background so it stays legible on hover. */
.spark { display: block; overflow: visible; margin: 2px 0 1px; }
.spark .axis { stroke: var(--rule); stroke-width: 1; }
.spark path { fill: none; stroke: var(--tc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--tc); stroke: var(--row-bg); stroke-width: 2; }

.srcbadge {
  display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12.5px; line-height: 1.3;
}
.srcbadge .ico { width: 13px; height: 13px; }
.srcbadge.is-observed { color: var(--ink); font-weight: 600; }
.srcbadge.is-proxy { color: var(--graphite); }

.side { display: grid; gap: 7px; align-content: start; padding-top: 3px; }
.lead { font-size: 12.5px; color: var(--graphite); }
.lead b { color: var(--ink); font-weight: 600; }
/* The score bar is a reading on a ruler shared by every row: the track is 0 to #1
   (quarter marks in rule, a firmer mark at #1), the run is this row's score, split
   into what makes it up. Fills, not hues: colour means task. */
.scoreline { margin: 0; display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; color: var(--graphite); }
.scoreline .sv { font: 600 13px var(--ink-face); color: var(--ink); }
.gauge {
  position: relative; display: block; height: 13px;
  background: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 25%);
  border-bottom: 1px solid var(--rule);
}
.gauge::after { content: ""; position: absolute; right: 0; top: -2px; bottom: -1px; width: 1.5px; background: var(--rule-2); }
.gauge .run { display: flex; gap: 1px; height: 100%; min-width: 3px; }
.barseg { flex: 1 1 0; min-width: 2px; border: 1px solid var(--ink); background-color: var(--paper); }
.p-solid { background: var(--ink); }
.p-diag  { background: repeating-linear-gradient(135deg, var(--ink) 0 1px, var(--paper) 1px 4.5px); }
.p-dots  { background: radial-gradient(circle, var(--ink) 0 0.85px, transparent 1.15px) 0 0 / 4px 4px, var(--paper); }
.p-cross { background: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 5px), repeating-linear-gradient(135deg, var(--ink) 0 1px, var(--paper) 1px 5px); }
.p-vert  { background: repeating-linear-gradient(90deg, var(--ink) 0 1px, var(--paper) 1px 5px); }
.p-horiz { background: repeating-linear-gradient(0deg, var(--ink) 0 1px, var(--paper) 1px 4px); }
.open {
  justify-self: start; display: inline-flex; align-items: center; gap: 5px; min-height: 26px;
  font-size: 13px; color: var(--graphite);
}
.open .ico { width: 12px; height: 12px; }
.open:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.empty {
  padding: 36px 0 40px; display: grid; gap: 14px; justify-items: start; max-width: 70ch;
}
.empty h2 { margin: 0; font: 750 24px/1.2 var(--sans); font-stretch: 115%; }
.empty p { color: var(--ink); font-size: 15px; }
.emptychips { display: flex; flex-wrap: wrap; gap: 4px 18px; }

.loadmore { display: flex; gap: 18px; align-items: center; padding: 22px 0 28px; flex-wrap: wrap; }
a.more-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px;
  border: 1.5px solid var(--ink); border-radius: var(--r); color: var(--ink);
  font: 650 14px/1.4 var(--sans); font-stretch: 108%;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
a.more-link:hover { background: var(--ink); color: var(--paper); }
a.more-link[aria-busy="true"] { background: transparent; color: var(--graphite); border-color: var(--rule-2); cursor: progress; }
.loadmore .hint { color: var(--graphite); font-size: 13px; }
.loadmore .hint.failed { color: var(--red); }

.footnote {
  border-top: 1px solid var(--rule); padding: 18px 0 40px; display: grid; gap: 10px;
  color: var(--graphite); font-size: 13.5px;
}
.footnote p { max-width: 78ch; }
.footnote .keys { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footnote .keys span { display: inline-flex; align-items: center; gap: 6px; }
.ink-word { font: 600 13px var(--ink-face); color: var(--ink); }
.pencil-word { font: 500 13px var(--pencil-face); color: var(--graphite); }

/* ------------------------------------------------------------ detail */
.detail { padding: 22px 24px 48px; max-width: 1180px; display: grid; gap: 26px; }
.backlink { justify-self: start; display: inline-flex; align-items: center; gap: 7px; min-height: 28px; color: var(--graphite); font-size: 13.5px; }
.backlink:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.dhead {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1.5px solid var(--ink);
}
.dtitle { display: grid; gap: 6px; min-width: 0; }
.downer { font-size: 15px; color: var(--graphite); }
.downer a { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.downer a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.dhead h1 {
  margin: 0; font: 800 clamp(28px, 3.6vw, 46px)/1.02 var(--sans); font-stretch: 112%;
  letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.dhead .sub { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; font-size: 14px; margin-top: 4px; }
.dparams { display: grid; justify-items: end; gap: 4px; text-align: right; }
.dparams .big { font: 600 40px/1 var(--ink-face); letter-spacing: -0.02em; }
.dparams .lbl { font-size: 13px; color: var(--graphite); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 0; }
.stats > div { display: grid; align-content: start; gap: 3px; padding: 12px 18px 14px 0; border-bottom: 1px solid var(--rule); }
.stats b { font: 400 20px/1.15 var(--ink-face); color: var(--ink); }
.stats span { font-size: 13px; color: var(--graphite); }
.stat-growth .reading { font-size: 20px; line-height: 1.15; }
.stats .srcbadge { margin-top: 2px; }

.trend { display: grid; gap: 14px; }
.trend-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.trend-head h2 { margin: 0; }
.trend-head .foot { margin: 0; max-width: 92ch; }
.panels { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 28px; }
.panel { margin: 0; display: grid; gap: 6px; border-radius: var(--r); outline-offset: 4px; }
.panel figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; font-size: 13.5px; }
.panel .pt { font-weight: 600; }
.panel .pv b { font: 600 15px var(--ink-face); }
.panel .pc { color: var(--graphite); font-size: 13px; }
.panel svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.panel .grid { stroke: var(--rule); stroke-width: 1; }
.panel .tick { font: 400 12px var(--sans); fill: var(--graphite); font-variant-numeric: tabular-nums; }
.panel .line { fill: none; stroke: var(--tc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.panel .enddot, .panel .hdot { fill: var(--tc); stroke: var(--paper); stroke-width: 2; }
.panel .xhair { stroke: var(--ink); stroke-width: 1; }
/* One readout for every panel: values lead, names follow, each keyed by a short stroke. */
.readout {
  position: absolute; z-index: 5; pointer-events: none; min-width: 170px;
  background: var(--sheet); border: 1px solid var(--rule-2); border-radius: var(--r);
  padding: 8px 10px; font-size: 13px; display: grid; gap: 3px;
}
.readout[hidden] { display: none; }
.readout .rt { color: var(--graphite); font-size: 12.5px; margin-bottom: 2px; }
.readout .rr { display: flex; align-items: center; gap: 8px; }
.readout .rr::before { content: ""; width: 12px; height: 2px; background: var(--tc); border-radius: 1px; flex: none; }
.readout .rr b { font: 600 13px var(--ink-face); }
.readout .rr span { color: var(--graphite); }
.tableview summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; min-height: 30px; color: var(--graphite); font-size: 13.5px; }
.tableview summary::-webkit-details-marker { display: none; }
.tableview summary::before {
  content: ""; width: 6px; height: 6px; margin: 0 3px 0 1px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform 140ms var(--ease);
}
.tableview summary:hover { color: var(--ink); }
.tableview summary .more::before { content: "("; } .tableview summary .more::after { content: ")"; }
.tableview summary .more { text-decoration: none; white-space: nowrap; }
.tableview table { margin-top: 8px; }

/* The card, and beside it the repo's facts. On narrow screens the facts follow
   the card, which by then is clamped to a screenful or two (see .is-clamped). */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px 44px; align-items: start; }
.facts { display: grid; gap: 0; align-content: start; }
.facts h2 { margin: 22px 0 10px; }
.facts h2:first-child { margin-top: 0; }
.facts ul.files { columns: 1; margin-bottom: 0; }

.cardsec { display: grid; gap: 12px; min-width: 0; }
.sec-head { display: grid; gap: 4px; }
.sec-head .foot { margin: 0; }
.trend-head h2, .sec-head h2 { margin: 0; font: 700 19px/1.25 var(--sans); font-stretch: 118%; letter-spacing: -0.005em; }
.cardnote { font-size: 14.5px; max-width: 66ch; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cardnote.is-error { color: var(--red); }
a.inline { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
a.inline:hover { text-decoration-color: currentColor; }

/* The authors' README: their document, laid on the site's paper as a sheet.
   Its headings start at h3 (the page owns h1 and h2) but keep a card's rhythm. */
.cardtext {
  position: relative; min-width: 0; background: var(--sheet); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 22px 28px 26px;
  font: 400 15px/1.62 var(--sans); overflow-wrap: break-word;
}
.cardtext > * { max-width: 74ch; }
.cardtext > :first-child { margin-top: 0; }
.cardtext > :last-child { margin-bottom: 0; }
.cardtext p, .cardtext ul, .cardtext ol, .cardtext dl, .cardtext blockquote, .cardtext pre,
.cardtext table, .cardtext details { margin: 0 0 14px; }
.cardtext h3, .cardtext h4, .cardtext h5, .cardtext h6 { margin: 28px 0 10px; color: var(--ink); scroll-margin-top: calc(var(--mh) + 16px); }
.cardtext h3 { font: 750 23px/1.2 var(--sans); font-stretch: 115%; letter-spacing: -0.01em; }
.cardtext h4 { font: 700 18px/1.3 var(--sans); font-stretch: 110%; padding-top: 14px; border-top: 1px solid var(--rule); }
.cardtext h5 { font: 650 15.5px/1.35 var(--sans); }
.cardtext h6 { font: 650 14px/1.35 var(--sans); color: var(--graphite); }
.cardtext > h4:first-child { border-top: 0; padding-top: 0; }
.cardtext ul, .cardtext ol { padding-left: 22px; }
.cardtext li + li { margin-top: 4px; }
.cardtext li > ul, .cardtext li > ol { margin: 4px 0 0; }
.cardtext a { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.cardtext a:hover { text-decoration-color: var(--ink); }
.cardtext img { max-width: 100%; height: auto; vertical-align: middle; }
.cardtext hr { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }
.cardtext blockquote { padding: 2px 0 2px 14px; border-left: 3px solid var(--rule-2); color: var(--graphite); }
.cardtext code { font-size: 0.86em; background: var(--paper-2); border-radius: 2px; padding: 1px 4px; }
.cardtext pre {
  max-width: 100%; overflow-x: auto; padding: 12px 14px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--r); tab-size: 4;
  scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent;
}
.cardtext pre code { font-size: 12.5px; line-height: 1.55; background: none; padding: 0; }
/* Benchmark tables are often wider than the column: they scroll, the page does not. */
.cardtext table {
  display: block; max-width: 100%; width: max-content; overflow-x: auto; border-collapse: collapse;
  font-size: 13.5px; line-height: 1.4; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent;
}
.cardtext th, .cardtext td { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
.cardtext th { font-weight: 650; border-bottom: 1.5px solid var(--ink); }
.cardtext td:last-child, .cardtext th:last-child { padding-right: 0; }
.cardtext summary { cursor: pointer; font-weight: 600; }
.cardtext details[open] > summary { margin-bottom: 8px; }
.cardtext dt { font-weight: 650; }
.cardtext dd { margin: 0 0 8px 18px; }

/* Long cards open at a fixed height and end in a fade; app.js adds the clamp and
   the button only when the card is long, so without JS the whole card shows. */
.cardtext.is-clamped {
  max-height: 880px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent);
}
.cardmore {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px;
  font: 600 14px var(--sans); color: var(--ink); background: var(--paper); cursor: pointer;
  border: 1px solid var(--ink); border-radius: var(--r);
}
.cardmore:hover { background: var(--paper-2); }
.cardmore .ico { transition: transform 160ms var(--ease); }
.cardmore[aria-expanded="true"] .ico { transform: rotate(180deg); }
.h-count { font: 400 13px var(--ink-face); color: var(--graphite); margin-left: 4px; }
table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kv th, table.kv td { padding: 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
table.kv th { color: var(--graphite); font-weight: 400; width: 140px; padding-right: 16px; }
table.kv td { overflow-wrap: anywhere; }
table.kv td.num { font: 400 13px/1.6 var(--ink-face); }
ul.files { list-style: none; padding: 0; margin: 0 0 22px; columns: 2; column-gap: 24px; }
ul.files li { break-inside: avoid; padding: 2px 0; color: var(--ink); overflow-wrap: anywhere; }
ul.files code { font-size: 12.5px; }
.muted { color: var(--graphite); }

.tagflow { display: flex; flex-wrap: wrap; gap: 6px; }
.token {
  display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 9px;
  border: 1px solid var(--rule-2); border-radius: var(--r); font-size: 13px; color: var(--ink); background: var(--sheet);
}
.token .ico { width: 12px; height: 12px; color: var(--graphite); }
.token:hover { border-color: var(--ink); }
.tagmore { margin-top: 8px; }

table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th { text-align: left; font-weight: 600; color: var(--ink); padding: 7px 14px 7px 0; border-bottom: 1.5px solid var(--ink); }
table.grid td { font-family: var(--ink-face); padding: 6px 14px 6px 0; border-bottom: 1px solid var(--rule); }
table.grid .r { text-align: right; }
section > .foot { margin-top: 12px; }

/* ------------------------------------------------------------ capture log */
.dtitle .lede { max-width: 72ch; font-size: 15px; line-height: 1.55; color: var(--ink); margin-top: 6px; }
.tablewrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.runlog { min-width: 640px; }
.runlog td { vertical-align: top; white-space: nowrap; }
.runlog .when .ago { color: var(--graphite); font-family: var(--sans); font-size: 12.5px; margin-left: 6px; }
.runlog .trig { font-family: var(--sans); color: var(--graphite); }
.runlog .res { font-family: var(--sans); white-space: normal; min-width: 200px; }
.runstatus { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.runstatus.st-ok { color: var(--ink); font-weight: 400; }
.runstatus.st-ok .ico { color: var(--graphite); }
.runstatus.st-partial { color: var(--ink); }
.runstatus.st-failed { color: var(--red); }
.runlog tr.st-failed td { background: var(--red-wash); }
.runmsgs { margin-top: 4px; }
.runmsgs summary { cursor: pointer; color: var(--graphite); font-size: 13px; }
.runmsgs summary:hover { color: var(--ink); }
.runmsgs ul { list-style: none; margin: 6px 0 2px; padding: 0; display: grid; gap: 4px; }
.runmsgs code { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.pager { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.runlog .of { color: var(--graphite); font-family: var(--sans); font-size: 12.5px; }
.runlog .moves { font-family: var(--sans); min-width: 210px; white-space: normal; }
.runlog .runmove { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.runlog .runmove + .runmove { margin-top: 2px; }
.runlog .runmove a { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.runlog .runmove a:hover { text-decoration-color: var(--ink); }
.runlog .runmove .delta { font: 400 12.5px var(--ink-face); color: var(--ink); white-space: nowrap; }
.newmodels summary { cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.newmodels summary::-webkit-details-marker { display: none; }
.newmodels[open] summary { margin-bottom: 4px; }
.newmodels ul { list-style: none; margin: 0; padding: 0; text-align: left; font: 400 13px var(--sans); white-space: normal; min-width: 220px; }
.newmodels li a { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.dtitle .lede em { font-style: normal; font-weight: 650; }

/* ------------------------------------------------------------ movers */
.windowpick { display: flex; flex-wrap: wrap; gap: 6px; align-self: end; }
/* The movers band: the first thing under the list's heading, closed off from the
   list by an ink rule so the two read as chart, then ranking. */
.moverspanel { display: grid; gap: 14px; padding: 4px 0 22px; margin-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.moverspanel[aria-busy="true"] { opacity: 0.55; transition: opacity 120ms var(--ease); }
.moverspanel { container-type: inline-size; }
@container (max-width: 980px) { .racegrid { grid-template-columns: minmax(0, 1fr); } }
.mvhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 24px; }
.mvtitle { display: grid; gap: 3px; min-width: 0; }
.mvtitle h2 { margin: 0; font: 700 19px/1.25 var(--sans); font-stretch: 118%; letter-spacing: -0.005em; }
.mvtitle .foot { margin: 0; max-width: 76ch; }
.mvnote { color: var(--ink); }
.mvmore { display: grid; gap: 12px; }
.mvmore[open] > summary { margin-bottom: 6px; }
.mvmore .movelists { margin-bottom: 8px; }
.detail.movers .moverspanel { border-bottom: 0; }
.race { display: grid; gap: 14px; }
.racegrid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px 28px; align-items: start; }
.bump { margin: 0; display: grid; gap: 8px; min-width: 0; }
.bumpwrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.bump svg { display: block; width: 100%; min-width: 700px; height: auto; overflow: visible; }
.bump .lane { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 1 5; }
/* Sizes are in chart units: the 960-unit drawing shows at about 0.85 scale. */
.bump .tick { font: 400 14px var(--ink-face); fill: var(--graphite); }
/* Thin marks, fat targets: the invisible stroke is what the pointer finds. */
.bline .hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; }
.bline .stroke { fill: none; stroke: var(--tc); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.bline circle { fill: var(--tc); stroke: var(--paper); stroke-width: 2; }
.bline, .blabel { transition: opacity 160ms var(--ease); cursor: default; }
.blabel { font: 500 15px var(--sans); fill: var(--ink); }
.blabel .chg { font: 400 14px var(--ink-face); fill: var(--graphite); }
.blabel .chg.t-up, .blabel .chg.t-new { fill: var(--ink); }
.blabel .chg.t-down { fill: var(--red); }
.bump .cursor { stroke: var(--ink); stroke-width: 1; }
.race.has-focus .bline:not(.on) { opacity: 0.14; }
.race.has-focus .blabel:not(.on) { opacity: 0.3; }
.bline.on .stroke { stroke-width: 3.5; }
.race.is-playing .labels { opacity: 0.25; }

.board { display: grid; gap: 8px; align-content: start; }
.board h3 { margin: 0; font: 700 15px/1.3 var(--sans); font-stretch: 112%; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.boardtime { font: 400 12.5px var(--ink-face); color: var(--graphite); }
.boardunit { margin: -4px 0 0; font-size: 12.5px; color: var(--graphite); }
.boardlist { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.boardlist li {
  display: grid; grid-template-columns: 26px 12px minmax(0, 1fr) auto; gap: 0 8px; align-items: center;
  min-height: 30px; padding: 3px 0; border-bottom: 1px solid var(--rule); background: var(--paper);
}
.boardlist li.on { background: var(--paper-2); }
.boardlist .br { font: 600 13px var(--ink-face); text-align: right; }
.boardlist .gdot { justify-self: center; }
.boardlist a { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boardlist a:hover { text-decoration: underline; text-underline-offset: 3px; }
.boardlist .bs { font: 400 12.5px var(--ink-face); color: var(--graphite); text-align: right; max-width: 11ch; }

.racecontrols { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.racecontrols[hidden] { display: none; }
.playbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 16px 6px 12px;
  font: 600 14px var(--sans); color: var(--paper); background: var(--ink); border: 0; border-radius: var(--r); cursor: pointer;
}
.playbtn:hover { background: var(--ink-2); }
.playbtn .ico { fill: currentColor; stroke: currentColor; }
.scrub { flex: 1 1 260px; display: flex; }
.scrub input { width: 100%; accent-color: var(--ink); min-height: 30px; }

.movelists { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 40px; }
.movelists h3 { margin: 0 0 8px; font: 700 15px/1.3 var(--sans); font-stretch: 112%; }
.movelists ol { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.movelists li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.movelists li .gdot { align-self: center; }
.movelists li a { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.movelists .mv { font: 400 12.5px var(--ink-face); color: var(--ink); }
.movelists .mv.down { color: var(--red); }

/* ------------------------------------------------------------ status and how it works */
.verdict {
  display: flex; gap: 10px; align-items: flex-start; max-width: 76ch; margin: 4px 0 26px;
  padding: 12px 14px; border-left: 3px solid var(--ink); background: var(--paper-2); font-size: 15px;
}
.verdict .ico { flex: none; margin-top: 2px; }
.verdict p, .verdict ul { margin: 0; }
.verdict ul { padding-left: 18px; display: grid; gap: 4px; }
.verdict.is-bad { border-left-color: var(--red); background: var(--red-wash); }
.verdict.is-bad .ico { color: var(--red); }
.statusgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px 40px; align-items: start; }
.statusgrid h2, .prose h2 { margin: 0 0 8px; font: 700 17px/1.3 var(--sans); font-stretch: 112%; }
.statusgrid table.kv { border-top: 1.5px solid var(--ink); }
.statusgrid table.kv th { width: 128px; }
.kv .num { font: 400 13px var(--ink-face); }
.kv .muted { display: block; font-size: 13px; }
.statuspage .pager { margin-top: 26px; }

.prose { display: grid; gap: 30px; max-width: 78ch; font-size: 15px; line-height: 1.6; }
.prose p { margin: 0 0 8px; }
.prose section { border-top: 1.5px solid var(--ink); padding-top: 12px; }
.specimens { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 32px; }
.specimen { display: grid; gap: 8px; align-content: start; }
.specimen .growth { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.specimen p { font-size: 14px; color: var(--ink); }
.terms { margin: 0 0 10px; display: grid; gap: 0; }
.terms > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.terms dt { font: 400 13.5px/1.6 var(--ink-face); color: var(--ink); }
.terms dd { margin: 0; }
.terms.endpoints > div { grid-template-columns: 210px minmax(0, 1fr); }
.terms.views dt { font: 600 14.5px/1.6 var(--sans); }
.terms.views > div { grid-template-columns: 190px minmax(0, 1fr); }
.limits { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
@media (max-width: 640px) {
  .terms > div, .terms.endpoints > div { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------ base models */
.mvpicks { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 22px; }
.viewpick { align-self: end; }
.measurepick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.famtable { display: grid; gap: 8px; margin-top: 8px; }
.famtable h3 { margin: 0; font: 700 15px/1.3 var(--sans); font-stretch: 112%; }
.famtable .foot { margin: 0; max-width: 76ch; }
.famgrid { min-width: 680px; width: 100%; border-top: 1.5px solid var(--ink); }
.famgrid td { vertical-align: top; white-space: nowrap; }
.famgrid .fambase { display: flex; gap: 8px; align-items: baseline; font-family: var(--sans); white-space: normal; min-width: 260px; }
.famgrid .fambase .gdot { align-self: flex-start; margin-top: 5px; }
.famgrid .fambase a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.famgrid .owner { color: var(--graphite); font-size: 12.5px; }
.fammembers { margin-top: 2px; font-size: 13px; }
.fammembers summary { cursor: pointer; color: var(--graphite); width: fit-content; }
.fammembers summary:hover { color: var(--ink); }
.fammembers[open] summary { margin-bottom: 6px; }
.fammembers ul { list-style: none; margin: 0 0 4px; padding: 0 0 0 12px; display: grid; gap: 5px; border-left: 1px solid var(--rule-2); }
.famgrid .fammembers a { font-weight: 400; }
.fammembers .rel { color: var(--graphite); }
.fammembers .num { display: block; font: 400 12px var(--ink-face); color: var(--graphite); }
.fammembers .muted { font-size: 12.5px; }
.famgrid .mvchg.t-up, .famgrid .mvchg.t-new { color: var(--ink); font-weight: 600; }
.famgrid .mvchg.t-down { color: var(--red); }
.famgrid .mvchg.t-flat { color: var(--graphite); }

/* ------------------------------------------------------------ one family */
/* Bands are tints of the family's task ink: shades only part neighbours, the
   names at the right and the table carry who is who. A paper hairline between
   bands keeps adjacent tints apart; the rest is graphite. */
.famline { font-size: 14px; color: var(--graphite); margin-top: 8px; max-width: 72ch; }
.famstats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stackpanel .trend-head .seg { margin-left: auto; }
.stackpanel > .foot { margin: -6px 0 0; max-width: 76ch; }
.stackfig { position: relative; margin: 0; min-width: 0; border-radius: var(--r); outline-offset: 4px; }
.stackwrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.stackfig svg { width: 100%; height: auto; display: block; touch-action: pan-x pan-y; }
.stackfig .grid { stroke: var(--rule); stroke-width: 1; }
.stackfig .tick { font: 400 12px var(--sans); fill: var(--graphite); font-variant-numeric: tabular-nums; }
.stackfig .band { fill: var(--tc); stroke: var(--paper); stroke-width: 1; stroke-linejoin: round; }
.stackfig .band.tint-0, .readout .rr.tint-0::before { opacity: 0.9; }
.stackfig .band.tint-1, .readout .rr.tint-1::before { opacity: 0.45; }
.stackfig .band.tint-2, .readout .rr.tint-2::before { opacity: 0.68; }
.stackfig .band.tint-3, .readout .rr.tint-3::before { opacity: 0.3; }
.stackfig .band.rest { fill: var(--graphite); opacity: 0.22; }
.readout .rr.rest::before { background: var(--graphite); opacity: 0.4; }
.stackfig .bandlabel { font: 400 12.5px var(--sans); fill: var(--ink); }
.stackfig .bandlabel .bv { font: 400 12px var(--ink-face); fill: var(--graphite); }
.stackfig .xhair { stroke: var(--ink); stroke-width: 1; }
.memgrid { min-width: 760px; border-top: 1.5px solid var(--ink); }
.memgrid td { vertical-align: top; }
.memgrid td:first-child { font-family: var(--sans); }
.memgrid td:first-child a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.memgrid td:nth-child(2) { font-family: var(--sans); color: var(--graphite); }
.memgrid .owner { color: var(--graphite); font-size: 12.5px; }
.memgrid td.r { white-space: nowrap; }
.memgrid tr.left td { color: var(--graphite); }

/* ------------------------------------------------------------ breakouts */
.daypick { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px 18px; padding: 6px 0 10px; border-bottom: 1.5px solid var(--ink); }
.daypick a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--graphite); font-size: 13.5px; white-space: nowrap; }
.daypick a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.daypick .daynext { justify-self: end; }
.dayname { margin: 0; text-align: center; font: 700 19px/1.25 var(--sans); font-stretch: 112%; }
.dayname span { display: block; font: 400 13px var(--sans); font-stretch: 100%; color: var(--graphite); }
.daynote { margin: -4px 0 0; }
.breakoutspage section { display: grid; gap: 8px; }
.breakoutspage section h2 { margin: 0; }
.breakoutspage section > .foot { margin: 0; max-width: 76ch; }
.breakoutspage h2 .count { font: 400 14px var(--ink-face); color: var(--graphite); margin-left: 6px; }
.brkgrid { min-width: 720px; border-top: 1.5px solid var(--ink); }
.brkgrid td { vertical-align: top; }
.brkgrid td:first-child { font-family: var(--sans); }
.brkgrid td:first-child .gdot { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.brkgrid td:first-child a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.brkgrid td:nth-child(2) { font-family: var(--sans); color: var(--graphite); }
.brkgrid .owner { color: var(--graphite); font-size: 12.5px; }
.brkgrid td.r { white-space: nowrap; }
.brkgrid td.up { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ trends */
/* Colour still means task: the task mix and the launch lines wear the task inks.
   Size is one ink from light (small) to dark (big); formats are alternating
   tints of ink, named at the edge and in the key. Unknown is the graphite rest. */
.trendspage > section { display: grid; gap: 10px; }
.trendspage > section > h2 { margin: 0; }
.trendspage > section > .foot { margin: 0; max-width: 80ch; }
.stackfig .band[class*="g-"], .readout .rr[class*="g-"]::before, .mixlegend .sw[class*="g-"] { fill: var(--tc); background: var(--tc); opacity: 0.85; }
.stackfig .band.sz-0, .readout .rr.sz-0::before, .mixlegend .sw.sz-0 { fill: var(--ink); background: var(--ink); opacity: 0.1; }
.stackfig .band.sz-1, .readout .rr.sz-1::before, .mixlegend .sw.sz-1 { fill: var(--ink); background: var(--ink); opacity: 0.25; }
.stackfig .band.sz-2, .readout .rr.sz-2::before, .mixlegend .sw.sz-2 { fill: var(--ink); background: var(--ink); opacity: 0.42; }
.stackfig .band.sz-3, .readout .rr.sz-3::before, .mixlegend .sw.sz-3 { fill: var(--ink); background: var(--ink); opacity: 0.6; }
.stackfig .band.sz-4, .readout .rr.sz-4::before, .mixlegend .sw.sz-4 { fill: var(--ink); background: var(--ink); opacity: 0.8; }
.stackfig .band.sz-5, .readout .rr.sz-5::before, .mixlegend .sw.sz-5 { fill: var(--ink); background: var(--ink); opacity: 1.0; }
.stackfig .band.fm-0, .readout .rr.fm-0::before, .mixlegend .sw.fm-0 { fill: var(--ink); background: var(--ink); opacity: 0.85; }
.stackfig .band.fm-1, .readout .rr.fm-1::before, .mixlegend .sw.fm-1 { fill: var(--ink); background: var(--ink); opacity: 0.35; }
.stackfig .band.fm-2, .readout .rr.fm-2::before, .mixlegend .sw.fm-2 { fill: var(--ink); background: var(--ink); opacity: 0.62; }
.stackfig .band.fm-3, .readout .rr.fm-3::before, .mixlegend .sw.fm-3 { fill: var(--ink); background: var(--ink); opacity: 0.18; }
.stackfig .band.fm-4, .readout .rr.fm-4::before, .mixlegend .sw.fm-4 { fill: var(--ink); background: var(--ink); opacity: 0.5; }
.stackfig .band.fm-5, .readout .rr.fm-5::before, .mixlegend .sw.fm-5 { fill: var(--ink); background: var(--ink); opacity: 0.72; }
.mixlegend .sw.rest { background: var(--graphite); opacity: 0.3; }
.readout .rr::before { height: 8px; }
.mixsec .trend-head { justify-content: space-between; }
.mixpicks { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.mixpanel { display: grid; gap: 6px; padding-top: 6px; }
.mixpanel h3 { margin: 0; font: 700 15px/1.3 var(--sans); font-stretch: 112%; }
.mixlegend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--graphite); }
.mixlegend li { display: inline-flex; align-items: center; gap: 6px; }
.mixlegend b { font: 600 12.5px var(--ink-face); color: var(--ink); }
.mixlegend .sw { width: 12px; height: 12px; border-radius: 2px; flex: none; }
.launchfig, .curvefig { margin: 0; min-width: 0; }
.launchfig svg, .curvefig svg { width: 100%; height: auto; display: block; }
.launchfig .grid, .curvefig .grid { stroke: var(--rule); stroke-width: 1; }
.launchfig .tick, .curvefig .tick, .launchfig .axis { font: 400 12px var(--sans); fill: var(--graphite); font-variant-numeric: tabular-nums; }
.lline .stroke { fill: none; stroke: var(--tc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lline .hit { fill: none; stroke: transparent; stroke-width: 12; }
.lline circle { fill: var(--tc); stroke: var(--paper); stroke-width: 2; }
.lline .llabel { font: 400 12.5px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.launchfig svg:hover .lline { opacity: 0.3; }
.launchfig svg:hover .lline:hover { opacity: 1; }
.launchfig svg:hover .lline:hover .stroke { stroke-width: 3; }
.curvefig .curve { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.curvefig .median { stroke: var(--graphite); stroke-width: 1; stroke-dasharray: 3 4; }
.curvefig .mlabel { font: 400 12px var(--sans); fill: var(--graphite); }
.staystats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.trgrid { min-width: 640px; border-top: 1.5px solid var(--ink); }
.trgrid td { vertical-align: top; white-space: nowrap; }
.trgrid td:first-child { font-family: var(--sans); white-space: normal; }
.trgrid td:first-child .gdot { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.trgrid td:first-child a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.trgrid .owner { color: var(--graphite); font-size: 12.5px; }
.trgrid td.fmts { font-family: var(--sans); color: var(--graphite); white-space: normal; }
/* One family's forms: a bar per form, its share of the family's trending score. */
.formsec { display: grid; gap: 8px; }
.formsec h2 { margin: 0; }
.formsec .foot { margin: 0; }
.barlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 760px; }
.barlist li { display: grid; grid-template-columns: minmax(120px, 160px) 1fr 56px minmax(70px, auto); align-items: center; gap: 12px; font-size: 13.5px; }
.barlist .bar { height: 10px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.barlist .bar i { display: block; height: 100%; background: var(--tc); border-radius: 0 2px 2px 0; }
.barlist .bv { font: 600 13px var(--ink-face); text-align: right; }
.barlist .bn { color: var(--graphite); font-size: 12.5px; }
.brkgrid .form, .memgrid .form { display: block; font-size: 12.5px; color: var(--graphite); }

/* ------------------------------------------------------------ motion */
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.row.is-appended { animation: rowIn 300ms var(--ease) both; animation-delay: calc(var(--i, 0) * 24ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------ narrow */
@media (max-width: 1180px) {
  .ledger-head, .row { grid-template-columns: 46px minmax(0, 1fr) 128px 150px; gap: 0 20px; }
}
@media (max-width: 1300px) {
  .brand-sub { display: none; }
}
@media (max-width: 1040px) {
  .racegrid { grid-template-columns: minmax(0, 1fr); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .facts { border-top: 1.5px solid var(--ink); padding-top: 16px; }
}
@media (max-width: 900px) {
  /* A sticky masthead costs a phone a third of the screen; let it scroll away. */
  .masthead { position: static; }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 0; gap: 0; }
  /* Results are the point: they come first, the rail goes last. */
  .content { order: 1; }
  .sidebar {
    order: 2; position: static; max-height: none; overflow: visible;
    border-top: 1.5px solid var(--ink); margin-top: 20px; padding-top: 16px;
  }
  .ledger-head { position: static; grid-template-columns: 40px minmax(0, 1fr); }
  .ledger-head .h-growth, .ledger-head .h-score { display: none; }
  .mixkey { justify-content: flex-start; margin-bottom: 0; }
  .mixkey .k { display: inline; }
  .row {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px;
    grid-template-areas: "rank main main" "rank growth side";
    padding: 16px 6px 16px 0;
  }
  .rank { grid-area: rank; } .main { grid-area: main; }
  .growth { grid-area: growth; justify-items: start; text-align: left; }
  .side { grid-area: side; }
  .rank-n { font-size: 22px; }
}
@media (max-width: 620px) {
  .topbar { padding: 12px 16px 8px; gap: 4px 16px; }
  /* Developer endpoints are not the phone's job; health stays as the status link. */
  .topnav { gap: 0 16px; margin-left: 0; }
  .topnav a.dev { display: none; }
  /* The day's name on its own line, the neighbouring days under it. */
  .daypick { grid-template-columns: 1fr 1fr; grid-template-areas: "name name" "prev next"; }
  .daypick .dayname { grid-area: name; }
  .daypick .dayprev { grid-area: prev; } .daypick .daynext { grid-area: next; }
  /* Phones keep the columns that answer "what broke out, and how far". */
  .brkgrid, .memgrid { min-width: 0; }
  /* The family chart keeps legible type and scrolls sideways instead. */
  .stackfig svg { min-width: 700px; }
  .brkgrid .opt, .memgrid .opt, .trgrid .opt { display: none; }
  .trgrid { min-width: 0; }
  .launchfig svg, .curvefig svg { min-width: 700px; }
  .barlist li { grid-template-columns: 110px 1fr 48px; }
  .barlist .bn { display: none; }
  .tape { padding: 0 16px 10px; gap: 2px 18px; }
  /* Bookkeeping cells go; the readings that change a decision stay. */
  .tape-cell.is-aux, .tape-cell.is-link { display: none; }
  .h1-window { font-size: 17px; }
  .row { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
  .reading { font-size: 21px; }
  .detail { padding: 16px 16px 40px; }
  .dparams { justify-items: start; text-align: left; }
  ul.files { columns: 1; }
  .cardtext { padding: 16px 16px 20px; font-size: 14.5px; }
  .cardtext h3 { font-size: 20px; }
  .runlog .when .ago { display: none; }
  .runlog .res { min-width: 170px; }
}
