/* ==========================================================================
   WordPress Agent Benchmarks: design system
   One stylesheet for every page. Dark only.
   Order: 1 tokens, 2 base, 3 layout, 4 type, 5 site chrome, 6 components, 7 pages.
   design-system.md explains how to use it.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Colour. Neutrals are cool and slightly blue; hue is reserved for meaning. */
  --page: #0d0f14;
  --panel: #14181e;
  --raise: #1b2028;
  --rule: #232a33;
  --rule-strong: #3a4350;
  --track: #212831;
  --track-strong: #3a4252;
  --hatch: repeating-linear-gradient(135deg, #2a303b 0 4px, #222832 4px 8px);
  --ink: #f2f4f8;
  --ink-2: #b4bccb;
  --muted: #7d879a;
  --wp: #3d9bff;        /* WordPress, and anything improving */
  --opus: #f08a4b;      /* Opus 5.5 */
  --gpt: #3ccf91;       /* GPT-6.1-Sol */
  --cat-code: #4a5364;  /* platform groups, from darkest to lightest */
  --cat-cms: #687183;
  --cat-hosted: #8a93a4;
  --cat-shop: #b4bccb;
  --hover-row: rgba(61, 155, 255, .04);
  --fade-x: linear-gradient(to right, transparent, rgba(180, 188, 203, .2) 50%, transparent);
  --fade-y: linear-gradient(to bottom, transparent, rgba(180, 188, 203, .06) 15%, rgba(180, 188, 203, .2) 50%, rgba(180, 188, 203, .06) 85%, transparent);

  /* Type. EB Garamond for display sizes only; system sans for everything else. */
  --serif: "EB Garamond", Garamond, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, Menlo, monospace;
  --fs-stat: clamp(110px, 15vw, 196px);  /* the big percentages */
  --fs-title: 52px;                      /* page titles */
  --fs-heading: 40px;                    /* section headings */
  --fs-question: 34px;                   /* the two benchmark questions */
  --fs-subheading: 34px;                 /* headings beside prose */
  --fs-brand: 27px;                      /* "Agent Benchmarks" */
  --fs-stat-caption: 18px;
  --fs-lede: 16px;
  --fs-body: 15px;
  --fs-ui: 15px;
  --fs-small: 15px;
  --fs-caption: 15px;

  /* Space: one scale for layout. Margins, padding and gaps between blocks use these. */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;

  /* Layout */
  --container: 1180px;     /* outer width, including page padding */
  --page-pad: 40px;        /* left and right page padding */
  --col-gap: 24px;         /* gutter between grid columns */
  --centre-gap: 96px;      /* gutter between the two halves of the page */
  --section: 80px;         /* vertical padding of a section */
  --section-tight: 40px;   /* sections on tool pages */
  --page-top: 56px;        /* masthead to first content */
  --page-top-hero: 120px;  /* the same on the overview, where the hero needs air */
  --radius-s: 4px;
  --radius-m: 6px;
}
@media (max-width: 900px) {
  :root {
    --page-pad: 18px;
    --section: 56px;
    --page-top-hero: 104px;
    --fs-stat: 112px;
    --fs-title: 36px;
    --fs-heading: 32px;
    --fs-question: 27px;
    --fs-subheading: 30px;
    --fs-stat-caption: 16px;
  }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; font-style: normal; }
html { background: var(--page); scrollbar-gutter: stable; } /* same width with or without a scrollbar, so page transitions line up */
body {
  margin: 0;
  color: var(--ink);
  font: 400 var(--fs-body)/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  /* Surface: a soft lift of light behind the masthead, and fine grain */
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(150, 175, 205, .085), transparent 62%),
    radial-gradient(1600px 900px at 50% 120%, rgba(0, 0, 0, .35), transparent 70%),
    var(--page);
  background-attachment: fixed;
  position: relative;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
body > * { position: relative; z-index: 1; }
a { color: inherit; text-underline-offset: 4px; text-decoration-color: var(--rule); }
a:hover { text-decoration-color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--wp); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(61, 155, 255, .35); }
summary { cursor: pointer; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Layout ---------------------------------------------------------------- */

/* Container: every page's content sits in the same column. */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--page-pad); padding-right: var(--page-pad); }
main.container { padding-bottom: var(--space-64); }
@media (max-width: 900px) { main.container { padding-bottom: var(--space-48); } }

/* Grid: 12 equal columns with 24px gutters. Place content with .col-A-B (columns A to B).
   Splits leave an empty column between text and data, so the space between them is generous.
   .span-left and .span-right are the two halves, inset to leave 96px on the centre line. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
}
.span-left { grid-column: 1 / 7; padding-right: calc((var(--centre-gap) - var(--col-gap)) / 2); }
.span-right { grid-column: 7 / 13; padding-left: calc((var(--centre-gap) - var(--col-gap)) / 2); }
.span-full, .col-1-12 { grid-column: 1 / -1; }
.col-1-3 { grid-column: 1 / 4; }
.col-1-4 { grid-column: 1 / 5; }
.col-1-5 { grid-column: 1 / 6; }
.col-1-7 { grid-column: 1 / 8; }
.col-4-12 { grid-column: 4 / 13; }
.col-6-12 { grid-column: 6 / 13; }
.col-7-12 { grid-column: 7 / 13; }
.col-9-12 { grid-column: 9 / 13; }
@media (max-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: var(--space-32); }
  .grid > * { grid-column: 1 / -1; padding-left: 0; padding-right: 0; }
}

/* Section: the vertical rhythm. Every section has the same padding, and a divider
   that fades out at both ends separates neighbours. */
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--tight { padding-top: var(--section-tight); padding-bottom: var(--section-tight); }
.section--last { padding-bottom: 0; }
.section + .section, .page-head + .section { border-top: 1px solid; border-image: var(--fade-x) 1; }

/* 4. Type ------------------------------------------------------------------ */
.stat { margin: 0; font-family: var(--serif); font-weight: 700; font-size: var(--fs-stat); letter-spacing: -.03em; line-height: .82; font-variant-numeric: lining-nums; color: var(--ink); }
.stat-caption { margin: 18px 0 0; font-size: var(--fs-stat-caption); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); max-width: 26ch; text-wrap: balance; }
.title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: var(--fs-title); line-height: 1.08; letter-spacing: -.01em; max-width: 22ch; text-wrap: balance; }
.heading { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--fs-heading); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.subheading { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--fs-subheading); line-height: 1.12; max-width: 16ch; }
.question { margin: 0; font-family: var(--serif); font-weight: 500; font-size: var(--fs-question); line-height: 1.15; letter-spacing: -.005em; color: var(--ink); max-width: 26ch; text-wrap: balance; }
.lede { margin: 14px 0 0; font-size: var(--fs-lede); color: var(--ink-2); max-width: 46ch; }
.lede--wide { max-width: 62ch; }
.lede--quiet { font-size: var(--fs-body); color: var(--muted); }
.note { margin: 14px 0 0; font-size: var(--fs-small); color: var(--muted); }

/* Prose: long-form text, as on About */
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 62ch; }
.prose p { margin: 0 0 14px; }
.prose--full p, .prose--full li { max-width: none; }
.prose b { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0 0 14px; padding-left: 18px; }
.prose code { font: 15px var(--mono); color: var(--ink); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 4px 8px; }

/* 5. Site chrome ----------------------------------------------------------- */

/* Masthead: identity left, navigation right. Same on every page. */
.masthead { display: flex; justify-content: space-between; align-items: stretch; padding-top: var(--space-32); }
.masthead-id { display: inline-flex; align-items: center; gap: var(--space-16); color: var(--ink); text-decoration: none; line-height: 1.3; }
.masthead-id svg { flex: none; }
.masthead-id span { display: block; font-size: var(--fs-small); color: var(--muted); }
.masthead-id b { display: block; font-family: var(--serif); font-size: var(--fs-brand); font-weight: 600; line-height: 1.05; letter-spacing: -.005em; color: var(--ink); }
.masthead-id span span { margin-top: 3px; }
.masthead-id:focus-visible { outline-offset: 4px; border-radius: var(--radius-s); }
@media (max-width: 900px) { .masthead { flex-wrap: wrap; gap: var(--space-16); } }
@media (max-width: 560px) { .masthead-id b, .masthead-id span { white-space: nowrap; } }

/* Site navigation: page links, then code and data. The header stacks them in two rows
   level with the name and the week; the footer runs them in one row. */
.site-nav { display: flex; }
.site-nav a { text-decoration: none; font-size: var(--fs-ui); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); font-size: var(--fs-ui); padding: 0 0 var(--space-4); border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav-icons { display: flex; align-items: center; }
.nav-icons a { display: inline-flex; align-items: center; color: var(--ink-2); }
.nav-icons a:hover { color: var(--ink); }

.masthead .site-nav { flex-direction: row; align-items: center; gap: 28px; }
.masthead .nav-links a { line-height: 1; }
.masthead .nav-icons { gap: 14px; }
.masthead .nav-icons a { color: var(--muted); }
.masthead .nav-icons a:hover { color: var(--ink); }
.masthead .nav-icons svg { width: 18px; height: 18px; }
/* In line with the links, after a divider, as in the footer. */
.masthead .nav-icons { padding-bottom: var(--space-4); }
.masthead .nav-icons a:first-child { padding-left: 28px; border-left: 1px solid var(--rule); }
@media (max-width: 900px) { .nav-links a { font-size: var(--fs-small); white-space: nowrap; } }
@media (max-width: 560px) { .masthead .site-nav { flex-direction: row; align-items: center; gap: 20px; padding: 0; } }

.site-footer-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-16) var(--space-32); padding-top: var(--space-32); padding-bottom: var(--space-40); }
.footer-logo { display: inline-flex; color: var(--ink); }
.site-footer .site-nav { align-items: center; flex-wrap: wrap; gap: 28px; }
.site-footer .nav-icons { gap: var(--space-16); padding-bottom: var(--space-4); }
.site-footer .nav-icons a:first-child { margin-left: var(--space-8); padding-left: 28px; border-left: 1px solid var(--rule); }
@media (max-width: 900px) { .site-footer-in { padding-top: 28px; padding-bottom: var(--space-32); } }

/* 6. Components ------------------------------------------------------------ */

/* Section head: heading and lead paragraph above full-width content */
.section-head { margin-bottom: var(--space-64); }

/* Change row: interval labels over values. A blue arrow is a real improvement; otherwise "Steady". */
.changes { display: flex; justify-content: center; gap: 36px; margin-top: 36px; width: 100%; justify-self: stretch; }
.chg-i { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.chg-l { font-size: var(--fs-caption); color: var(--muted); white-space: nowrap; }
.chg-v { font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; color: var(--wp); }
.chg-v svg { flex: none; }
.chg-v.steady { font-size: 15px; font-weight: 500; color: var(--muted); padding-top: var(--space-4); }
.chg-v.ci-v { font-size: 15px; font-weight: 500; color: var(--ink-2); padding-top: var(--space-4); }
.ci-cell { cursor: help; }
@media (max-width: 900px) { .changes { gap: 18px; flex-wrap: wrap; } .chg-v, .chg-v.steady, .chg-v.ci-v { font-size: 16px; } .chg-l { font-size: 15px; } }

/* Chart and legend */
.chart svg { display: block; width: 100%; height: auto; }
.legend { display: flex; gap: 18px; font-size: 15px; color: var(--muted); margin-top: var(--space-8); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.ship-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); display: inline-block; }

/* Disclosure: a quiet expandable block under a rule */
.disclosure { margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 14px; }
.disclosure > summary { font-size: 15px; }
.disclosure .gap { margin: 12px 0 4px; font-size: 15px; color: var(--ink-2); }

/* Buttons */
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; cursor: pointer; }
.btn-link:hover { color: var(--ink); text-decoration-color: var(--ink-2); }
.btn-link[hidden] { display: none; }
.btn-quiet { background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: var(--radius-m); font: 500 var(--fs-ui) var(--sans); padding: 10px 18px; cursor: pointer; }
.btn-quiet:hover { border-color: var(--rule-strong); }
.btn-quiet[hidden] { display: none; }

/* Tables. .table is the base; each modifier sets density for its use. */
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-weight: 500; font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--rule); }
.table td { border-bottom: 1px solid var(--rule); }
.table th.n, .table td.n { text-align: right; padding-left: 20px; white-space: nowrap; }
.table td.n b { font-weight: 600; }
.table-scroll { overflow-x: auto; }
@media (max-width: 560px) { .table th.n { white-space: normal; } }

.table--plain { font-size: var(--fs-body); }
.table--plain th { padding: 0 0 10px; vertical-align: bottom; }
.table--plain td { padding: 11px 0; vertical-align: middle; }
.table--plain td.label { white-space: nowrap; padding-right: var(--space-24); }

/* Ledger: releases and events, each with a computed verdict */
.ledger { margin-top: 30px; font-size: 15px; }
.ledger th { padding: var(--space-8) var(--space-12) var(--space-8) 0; }
.ledger td { padding: var(--space-12) var(--space-12) var(--space-12) 0; vertical-align: top; }
.ledger tr:hover td { background: var(--hover-row); }
.ledger td.when { color: var(--muted); white-space: nowrap; width: 90px; }
.ledger td.what b { font-weight: 650; display: block; }
.ledger td.what span { color: var(--muted); font-size: var(--fs-small); }
.ledger td.eff { width: 210px; }
.ledger .n { color: var(--ink-2); font-size: var(--fs-small); display: block; }
.verdict { font-weight: 650; color: var(--wp); }
.verdict.none { color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .ledger td.eff { width: auto; } .ledger td.when { width: 64px; } }

/* Weekly record */
.record > summary { display: none; }
.record[open] { margin-top: 28px; }
.record-table { margin-top: 22px; max-width: 720px; font-size: var(--fs-ui); }
.record-table th { font-size: var(--fs-caption); padding: 6px var(--space-16) 6px 0; white-space: nowrap; }
.record-table td { padding: 6px var(--space-16) 6px 0; }
.record-table td.w, .record-table td:nth-child(2), .record-table td:nth-child(3) { white-space: nowrap; }
.record-table td.note { margin: 0; font-size: inherit; color: var(--ink-2); width: 40%; }
.record-table tr.more td { color: var(--muted); border-bottom: 0; }
.record-foot { font-size: var(--fs-small); color: var(--muted); margin: 14px 0 0; max-width: 80ch; }
@media (max-width: 900px) { .record-table th:nth-child(4), .record-table td:nth-child(4) { display: none; } }

/* Agents table: every model; headline rows pinned at the top and coloured by model */
.agents { font-size: var(--fs-body); }
.agents th { font-weight: 600; font-size: var(--fs-small); color: var(--ink-2); padding: 0 0 var(--space-12); cursor: pointer; user-select: none; white-space: nowrap; vertical-align: bottom; }
.agents th span { display: block; font-weight: 400; font-size: var(--fs-caption); color: var(--muted); }
.agents th:hover { color: var(--ink); }
.agents th:focus-visible { outline-offset: 2px; }
.agents th.sorted::after { content: ""; display: inline-block; margin-left: 6px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; vertical-align: 2px; }
.agents th.sorted[data-dir="asc"]::after { border-top: 0; border-bottom: 5px solid currentColor; }
.agents thead tr.grp th { padding-bottom: 6px; }
.agents thead tr.sub th { font-size: var(--fs-caption); font-weight: 500; color: var(--muted); padding: var(--space-8) 0 10px 24px; cursor: default; }
.agents thead th.gap, .agents thead tr.sub th.gap, .agents tbody td.gap { padding-left: 56px; }
.agents th.col-model, .agents td.who { width: 30%; }
.agents th[data-k="n"], .agents td.runs { text-align: right; padding-left: 24px; }
.agents td { padding: 11px 0; vertical-align: middle; }
.agents td.num { padding-left: 24px; }
.agents td.who b { font-weight: 600; }
.agents td.who span { color: var(--muted); font-size: var(--fs-small); margin-left: var(--space-8); }
.agents td.now { white-space: nowrap; }
.agents td.now b { font-size: 16px; font-weight: 600; }
.agents td.now span { display: inline-block; min-width: 34px; margin-left: var(--space-8); font-size: var(--fs-caption); color: var(--muted); }
.agents td.chg { width: 110px; }
.agents td.na, .agents td.runs { color: var(--muted); font-size: var(--fs-small); }
.agents .mdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 10px; }
.agents tr.sep td { padding: 22px 0 var(--space-8); font-size: 15px; font-weight: 600; color: var(--muted); }
.agents tr.head-row td { padding-top: 14px; padding-bottom: 14px; }
.agents tr.head-row td.who b { font-size: 16px; font-weight: 650; }
.agents tr.head-row td.now b { font-size: 18px; font-weight: 700; line-height: 1; color: var(--c); }
.agents tbody tr:not(.sep):hover td { background: var(--hover-row); }
@media (max-width: 900px) { .agents { min-width: 760px; } }

/* Change marker in tables */
.dlt { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; font-family: var(--sans); }
.dlt.up { color: var(--wp); }
.dlt.down { color: var(--ink-2); }
.dlt.steady { color: var(--rule); }
.agents tr.head-row .dlt { font-size: var(--fs-ui); }

/* Tabs */
.tabs { display: flex; gap: var(--space-32); border-bottom: 1px solid var(--rule); }
.tabs button { all: unset; cursor: pointer; padding: 0 0 14px; margin-bottom: -1px; font: 500 16px var(--sans); color: var(--ink-2); border-bottom: 2px solid transparent; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button:focus-visible { outline: 2px solid var(--wp); outline-offset: 4px; border-radius: 3px; }
@media (max-width: 560px) { .tabs { gap: var(--space-24); } .tabs button { font-size: var(--fs-ui); white-space: nowrap; } }
.tabs--small { gap: var(--space-24); }
.tabs--small button { font-size: var(--fs-ui); padding-bottom: 6px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px var(--space-16); padding: var(--space-16) 0 var(--space-24); border-bottom: 1px solid; border-image: var(--fade-x) 1; }
.filters label { display: grid; gap: var(--space-4); font-size: var(--fs-caption); color: var(--muted); }
.filters select { appearance: none; background: var(--panel) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%237d879a'/></svg>") no-repeat right 10px center; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius-m); font: 500 var(--fs-ui)/1 var(--sans); padding: 7px 30px 7px 10px; max-width: 100%; }
.filters select:hover { border-color: var(--rule-strong); }
.filters select:focus-visible { outline-offset: 2px; }
/* Same height as a select (14px text, 7px padding, 1px border), so the text lines up */
.filters .btn-link { display: inline-flex; align-items: center; height: 30px; padding: 0; font-size: var(--fs-ui); line-height: 1; }
.filters .btn-link[hidden] { display: none; }

/* Breakdown: one selectable row per outcome, with a bar */
.breakdown-h, .breakdown button { display: grid; grid-template-columns: minmax(110px, 200px) minmax(80px, 1fr) 60px 56px; gap: var(--space-16); align-items: center; }
.breakdown-h { font-size: 15px; color: var(--muted); padding: 0 0 var(--space-8); border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.breakdown-h span:nth-child(3), .breakdown-h span:nth-child(4) { text-align: right; }
.breakdown { list-style: none; margin: 0; padding: 0; }
.breakdown button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(110px, 200px) minmax(80px, 1fr) 60px 56px; gap: var(--space-16); align-items: center; padding: 9px 10px; margin: 0 -10px; border-radius: var(--radius-m); cursor: pointer; font-size: var(--fs-body); color: var(--ink); }
.breakdown button:hover { background: var(--panel); }
.breakdown button:focus-visible { outline: 2px solid var(--wp); }
.breakdown button[aria-pressed="true"] { background: var(--raise); }
.breakdown .t { height: 10px; background: var(--track); border-radius: 5px; overflow: hidden; }
.breakdown .t i { display: block; height: 100%; border-radius: 5px; background: var(--muted); }
.breakdown .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.breakdown .k { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; }
.breakdown .wp button, .breakdown .wp .v { color: var(--wp); font-weight: 650; }
.breakdown .wp .t i { background: var(--wp); }
.breakdown .g-code .t i { background: var(--cat-code); }
.breakdown .g-cms .t i { background: var(--cat-cms); }
.breakdown .g-hosted .t i { background: var(--cat-hosted); }
.breakdown .g-shop .t i { background: var(--cat-shop); }
.breakdown .g-code .t i { box-shadow: inset 0 0 0 1px rgba(180, 188, 203, .25); }
/* Platforms inside a group sit indented under it, quieter */
.breakdown .sub button { font-size: var(--fs-small); color: var(--ink-2); padding-top: 6px; padding-bottom: 6px; }
.breakdown .sub button > span:first-child { padding-left: var(--space-16); }
.breakdown .sub .t { height: 6px; }
/* Building: one filter bar for the whole panel, kept in view while scrolling */
.filters--sticky { position: sticky; top: 0; z-index: 4; background: var(--page); flex-wrap: nowrap; }
.filters--sticky [data-r=f-out], .filters--sticky [data-r=f-issue] { width: 240px; text-overflow: ellipsis; }
.filters select:disabled { opacity: .4; }
@media (max-width: 900px) { .filters--sticky { position: static; flex-wrap: wrap; } .filters--sticky [data-r=f-out], .filters--sticky [data-r=f-issue] { width: 100%; } }

/* Split bar: what happened in every request. Worked in WordPress blue, failures in grey,
   agent mistakes hatched, so the big success figure and the bar read as one. */
.split-h { margin: 0 0 var(--space-12); font-size: var(--fs-small); color: var(--muted); }
.split-bar { display: flex; height: 36px; gap: 2px; }
.split-bar span { display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 4px; font-size: var(--fs-small); white-space: nowrap; overflow: hidden; }
.split-ok { background: var(--wp); color: #fff; }
.split-gap { background: var(--track-strong); color: var(--ink); }
.split-agent { background: var(--hatch); }
.split-call { margin: 6px 0 0; text-align: right; font-size: var(--fs-small); color: var(--ink-2); }
.split + .lede { margin-top: var(--space-24); max-width: 60ch; }
@media (max-width: 900px) { .split-l { display: none; } }

/* Reasons: a list of why failed runs failed, beside the selected reason's issues */
.reasons { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.reasons button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: var(--space-12); padding: 10px 14px; margin-left: -1px; border-left: 2px solid transparent; cursor: pointer; font-size: var(--fs-body); line-height: 1.35; color: var(--ink-2); }
.reasons button:hover { color: var(--ink); background: var(--panel); }
.reasons button:focus-visible { outline: 2px solid var(--wp); }
.reasons button[aria-pressed="true"] { color: var(--ink); border-left-color: var(--ink); background: var(--panel); }
.reasons .v { text-align: right; font-variant-numeric: tabular-nums; }
.reasons .reason-agent { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
.reason-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; }
.reason-meta { margin: 8px 0 var(--space-24); font-size: var(--fs-small); color: var(--ink-2); }
.reason-meta span { color: var(--muted); }
.issue-sub { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.issue-rows { list-style: none; margin: 0 0 var(--space-16); padding: 0; }
.issue-rows button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 48px 110px; gap: var(--space-16); align-items: center; padding: 8px 10px; margin: 0 -10px; border-bottom: 1px solid var(--rule); border-radius: var(--radius-m); cursor: pointer; font-size: var(--fs-body); color: var(--ink); }
.issue-rows li:last-child button { border-bottom-color: transparent; }
.issue-rows button:hover { background: var(--panel); }
.issue-rows button:focus-visible { outline: 2px solid var(--wp); }
.issue-rows button[aria-pressed="true"] { background: var(--raise); }
.issue-rows .i-title { display: block; line-height: 1.35; }
.issue-rows small { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.issue-rows .n { text-align: right; font-variant-numeric: tabular-nums; }
.issue-rows .said { text-align: right; white-space: nowrap; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .issue-rows button { grid-template-columns: minmax(0, 1fr) 40px; } .issue-rows .said { display: none; } }
.issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.issue-list b { display: block; font-weight: 600; color: var(--ink); }
.issue-list span { display: block; color: var(--ink-2); }
.issue-list small { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .breakdown button, .breakdown-h { grid-template-columns: 120px 1fr 44px; }
  .breakdown .k, .breakdown-h span:nth-child(4) { display: none; }
}

/* Run list: one row per run; a row opens to show the detail */
.runs-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-16); flex-wrap: wrap; margin-bottom: 20px; }
.runs-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.runs-head p a { margin-left: 18px; }
.runs { table-layout: fixed; font-size: 15px; }
.runs col.c-id { width: 120px; }
.runs col.c-who { width: 250px; }
.runs col.c-kind { width: 240px; }
.runs col.c-res { width: 200px; }
.runs--build col.c-res { width: 270px; }
.runs th { padding: 0 var(--space-12) 10px 0; }
.runs td { padding: var(--space-12) var(--space-12) var(--space-12) 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.runs tr.run { cursor: pointer; }
.runs tr.run:hover td { background: var(--panel); }
.runs td.id button { all: unset; cursor: pointer; color: var(--ink-2); font-size: var(--fs-small); }
.runs td.id button::before { content: "+"; display: inline-block; width: 16px; color: var(--muted); }
.runs tr.open td.id button::before { content: "−"; }
.runs td.id button:focus-visible { outline: 2px solid var(--wp); outline-offset: 2px; border-radius: 3px; }
.runs td.req { color: var(--ink-2); }
.runs .who small { color: var(--muted); font-size: 15px; margin-left: 6px; }
.runs .dotk { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: var(--space-8); vertical-align: 1px; background: var(--c, var(--muted)); }
.runs .res-wp { color: var(--wp); font-weight: 600; }
.runs .res-no { color: var(--ink-2); }
.runs tr.detail td { white-space: normal; padding: var(--space-8) var(--space-12) var(--space-24); background: var(--panel); }
/* The open row and its detail read as one shaded block across the full width */
.runs th:first-child, .runs td:first-child { padding-left: var(--space-12); }
.runs th:last-child, .runs td:last-child { padding-right: var(--space-12); }
.runs tr.open td { background: var(--panel); border-bottom-color: transparent; }
.runs-more { margin-top: var(--space-24); }
@media (max-width: 900px) {
  .runs .hide-m { display: none; }
  .runs col.c-kind { width: 0; }
  .runs col.c-id { width: 96px; }
  .runs col.c-who { width: auto; }
  .runs col.c-res, .runs--build col.c-res { width: 42%; }
}
/* Run detail: an aligned list, labels in a fixed column, then actions */
.run-detail { padding-left: var(--space-16); }
.run-detail dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--space-16) var(--space-24); margin: 0; }
.run-detail dt { font-size: 15px; color: var(--muted); padding-top: 2px; }
.run-detail dd { margin: 0; font-size: var(--fs-body); color: var(--ink); max-width: 64ch; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px var(--space-24); font-size: 15px; }
.checks li { display: flex; gap: var(--space-8); color: var(--ink-2); }
.checks li b { font-weight: 600; }
.checks li.ok b { color: var(--wp); }
.checks li.no { color: var(--ink); }
.checks li.skip { color: var(--muted); }
.run-actions { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-top: var(--space-24); padding-top: var(--space-16); border-top: 1px solid var(--rule); }
.run-actions .btn-quiet { padding: 7px 12px; font-size: 15px; text-decoration: none; }
@media (max-width: 900px) { .run-detail { padding-left: 0; } .run-detail dl { grid-template-columns: 1fr; gap: 2px; } .run-detail dd { margin-bottom: var(--space-12); } }

/* A link with a logo, as in the open data list */
.ico-link { display: inline-flex; align-items: center; gap: var(--space-8); text-decoration: none; }

/* 7. Pages ----------------------------------------------------------------- */

/* Overview hero: two columns on the page grid. Rows are shared through subgrid,
   so the questions, numbers and change rows line up across both columns. */
.hero { padding-top: var(--page-top-hero); }
.hero-cols { grid-template-rows: repeat(5, auto); }
.hero-col { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-self: stretch; align-content: start; justify-items: center; text-align: center; position: relative; }
.hero-col .question { align-self: end; margin-left: auto; margin-right: auto; }
.hero-col .stat { margin-top: 28px; }
.hero-col .stat-caption { margin-left: auto; margin-right: auto; }
@media (min-width: 901px) {
  /* centre line: fades in and out, brightest beside the numbers */
  .hero-col + .hero-col::before { content: ""; position: absolute; left: calc(var(--col-gap) / -2); top: -8px; bottom: -8px; width: 1px; background: var(--fade-y); }
}
@media (max-width: 900px) {
  .hero-cols { grid-template-rows: none; row-gap: 0; }
  .hero-col { grid-row: auto; grid-template-rows: none; }
  .hero-col + .hero-col { margin-top: var(--space-40); padding-top: var(--space-40); border-top: 1px solid; border-image: var(--fade-x) 1; }
}
.hero-foot { margin-top: var(--space-48); text-align: center; }
.hero-foot p { margin: 0; font-size: var(--fs-ui); color: var(--muted); }
.hero-foot .btn-link { margin-left: 6px; font-size: var(--fs-ui); font-weight: 550; color: var(--ink); display: inline-flex; align-items: center; gap: var(--space-8); white-space: nowrap; }
.hero-foot .btn-link::after { content: ""; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .18s ease-out; }
.hero-foot .btn-link.open::after { transform: rotate(90deg); }

/* Explore */
.page-explore .tabs { margin-top: var(--page-top); }
.panel .filters { padding-top: var(--space-24); }
.panel[hidden] { display: none; }
.panel .lede { margin-top: var(--space-16); font-size: 15.5px; max-width: 48ch; }

/* About */
.page-head { padding-top: var(--page-top); padding-bottom: var(--space-64); }
.page-head .lede { margin-top: 18px; font-size: 17px; max-width: 62ch; }

/* Share bars: one 100% bar per population, same categories in the same order,
   so two bars compare straight down. WordPress is blue; everything else is a shade of grey.
   Big segments carry their label; small ones are listed in the key below. */
.shares { display: grid; gap: var(--space-40); }
/* Header: title left, source or tabs right, over a rule. A selected tab's underline sits on the rule. */
.share-h { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--space-16); margin-bottom: var(--space-16); border-bottom: 1px solid var(--rule); font-size: var(--fs-body); font-weight: 500; }
.share-h > span { padding-bottom: 6px; }
.share-h .tabs { border-bottom: 0; margin-bottom: -1px; }
.share-h .caption { font-size: var(--fs-caption); color: var(--muted); text-align: right; }
.share-bar { display: flex; height: 40px; border-radius: var(--radius-s); overflow: hidden; }
.seg { display: flex; align-items: center; flex: none; padding: 0; overflow: hidden; white-space: nowrap; font-size: var(--fs-small); font-weight: 600; color: var(--ink); box-shadow: inset 2px 0 0 var(--page); transition: width .45s cubic-bezier(.2, .7, .2, 1), padding .45s; }
.seg:first-child { box-shadow: none; }
.seg.labelled { padding: 0 12px; }
.seg-t { transition: opacity .15s; }
.callouts.fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .seg, .seg-t, .callouts { transition: none; } }
.seg-wp { background: var(--wp); color: #fff; }
.seg-code { background: var(--cat-code); }
.seg-cms { background: var(--cat-cms); }
.seg-hosted { background: var(--cat-hosted); }
.seg-shop { background: var(--cat-shop); }
/* Callouts: labels for small segments, each joined to its segment by a leader line.
   site.js places them; labels that would collide step down a row, extending away from
   their neighbours so no line crosses a label. */
.callouts { position: relative; height: 26px; transition: opacity .15s; }
.callout { position: absolute; top: calc(10px + var(--row, 0) * 22px); white-space: nowrap; font-size: 15px; line-height: 16px; color: var(--ink-2); }
.callout b { font-weight: 600; color: var(--ink); }
.callout.callout-wp, .callout.callout-wp b { color: var(--wp); }
.callout::before { content: ""; position: absolute; bottom: calc(100% - 8px); width: 1px; height: calc(10px + var(--row, 0) * 22px + 8px); background: var(--rule-strong); }
.callout[data-anchor="left"]::before { left: 0; }
.callout[data-anchor="right"]::before { right: 0; }
.callout[data-anchor="left"] { padding-left: 6px; margin-left: -1px; }
.callout[data-anchor="right"] { padding-right: 6px; margin-right: -1px; }
.disclosure.after-shares { margin-top: var(--space-32); }



/* Info: a small (i) that shows a short note on hover or keyboard focus */
.info { all: unset; position: relative; display: inline-grid; place-items: center; width: 12px; height: 12px; margin-left: 5px; vertical-align: 1px; border: 1px solid var(--rule-strong); border-radius: 50%; font: 600 15px/1 var(--sans); color: var(--muted); cursor: help; }
.info:hover, .info:focus-visible { color: var(--ink); border-color: var(--muted); }
.info:focus-visible { outline: 2px solid var(--wp); outline-offset: 2px; }
.info::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 6px 10px; border-radius: var(--radius-m); background: var(--raise); border: 1px solid var(--rule); color: var(--ink); font: 500 var(--fs-caption)/1.4 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 5; }
.info:hover::after, .info:focus-visible::after { opacity: 1; }

/* Transcript: organised around what a reviewer wants to know.
   Outcome, key moment, evidence, then the transcript, then details for verifying. */
.t-head { padding-bottom: var(--space-40); }
.t-head .title { max-width: none; }
.t-back { margin: 0 0 var(--space-24); font-size: var(--fs-ui); }
.t-back a { color: var(--ink-2); text-decoration: none; }
.t-back a:hover { color: var(--ink); }
.t-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); margin: 0 0 var(--space-16); font-size: var(--fs-ui); color: var(--muted); }
.t-badge { padding: 3px 10px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid var(--rule-strong); color: var(--ink); }
.t-badge--ok, .t-badge--wp { border-color: var(--wp); color: var(--wp); }
.t-request { margin: var(--space-16) 0 0; font-size: 18px; color: var(--ink-2); max-width: 64ch; }
.t-request span { display: block; margin-bottom: 2px; font-size: 15px; color: var(--muted); }
.t-progress { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); margin: var(--space-24) 0 0; padding: 0; font-size: 15px; color: var(--muted); }
.t-progress li { display: flex; gap: 6px; }
.t-progress .s-ok { color: var(--ink-2); }
.t-progress .s-ok b { color: var(--wp); }
.t-progress .s-no { color: var(--ink); font-weight: 600; }
.t-h { margin: 0 0 var(--space-12); font-size: 15px; font-weight: 500; color: var(--muted); }

/* Key moment: the claim against the evidence, or the reason it gave */
.col-1-6 { grid-column: 1 / 7; }
.key { row-gap: var(--space-24); }
.key-card { padding: var(--space-24); background: var(--panel); border-radius: var(--radius-m); }
.key-card blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.key-found { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.15; color: var(--ink); }
.key-card .tags { margin-top: var(--space-16); }
.key-summary p { margin: 0; font-size: var(--fs-lede); color: var(--ink-2); max-width: 70ch; }
.key-summary .note { margin-top: var(--space-8); font-size: 15px; }
@media (max-width: 900px) { .key { row-gap: var(--space-16); } }
/* Pathway: the run in order, from the request to the proof */
.path { list-style: none; margin: var(--space-40) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-24); }
.path > li { position: relative; padding-top: var(--space-16); border-top: 1px solid var(--rule-strong); }
.path > li + li::before { content: "›"; position: absolute; top: -13px; left: -18px; font-size: 18px; line-height: 24px; color: var(--muted); }
/* The step where WordPress dropped out: a marked node in the middle of its stretch of line */
.path > li.path-no::after { content: "✕"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--ink-2); border-radius: 50%; background: var(--page); font-size: 15px; font-weight: 700; line-height: 1; color: var(--ink); }
.path > li.path-no { border-top-color: var(--ink-2); }
.path > li.path-ok::after { content: "✓"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 50%; background: var(--page); font-size: 15px; line-height: 1; color: var(--muted); }
.path .t-h { margin-bottom: var(--space-8); }
.path-main { margin: 0; font-size: 17px; line-height: 1.4; color: var(--ink); }
.path .note { margin: var(--space-8) 0 0; font-size: 15px; }
.path-quote { margin: var(--space-8) 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.path-quote a { white-space: nowrap; }
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; gap: var(--space-16); }
  .path > li + li::before { display: none; }
}
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-8); }
.tags li { padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; font-size: 15px; color: var(--ink); }

/* Evidence: each check, what it tested and what it found */
.evidence td { vertical-align: top; }
.evidence .e-mark { width: 28px; font-weight: 600; color: var(--muted); }
.evidence .e-ok .e-mark { color: var(--wp); }
.evidence .e-no .e-mark, .evidence .e-no .e-name, .evidence .e-no .e-found { color: var(--ink); font-weight: 600; }
.evidence .e-name { width: 22%; padding-right: var(--space-24); }
.evidence .e-test { color: var(--ink-2); padding-right: var(--space-24); }
.evidence .e-found { width: 30%; }
.evidence .e-skip td { color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.t-entry { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-16); padding: var(--space-12) 0; }
.t-time { font-size: var(--fs-caption); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.t-who { display: flex; align-items: center; gap: var(--space-8); font-size: var(--fs-caption); color: var(--muted); margin-bottom: 2px; }
.t-entry p { margin: 0; max-width: 64ch; }
.t-user p { color: var(--ink); font-size: var(--fs-lede); }
.t-agent p { color: var(--ink-2); }
.t-key > div { padding: var(--space-12) var(--space-16); background: var(--panel); border-left: 2px solid var(--wp); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.t-key p { color: var(--ink); }
/* A transcript entry reached from a link: marked the same way as the key moment */
.t-entry { scroll-margin-top: var(--space-96); }
.t-entry:target > div { padding: var(--space-12) var(--space-16); background: var(--panel); border-left: 2px solid var(--wp); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.t-entry:target p { color: var(--ink); }
.t-flag { font-size: 15px; font-weight: 600; color: var(--wp); }
.t-tool details, .t-file { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-m); }
.t-tool summary, .t-file { display: flex; align-items: baseline; gap: var(--space-12); padding: var(--space-8) var(--space-12); font-weight: 400; list-style: none; }
.t-tool summary::-webkit-details-marker, .t-group summary::-webkit-details-marker { display: none; }
.t-tool summary::after { content: "Show output"; margin-left: auto; font-size: var(--fs-caption); color: var(--muted); }
.t-tool details[open] summary::after { content: "Hide output"; }
.t-kind { font-size: var(--fs-caption); color: var(--muted); min-width: 52px; }
.t-tool code, .t-file code { font: 15px var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-change { margin-left: auto; font: var(--fs-caption) var(--mono); color: var(--wp); }
.t-tool pre { margin: 0; padding: var(--space-12); border-top: 1px solid var(--rule); font: 15px/1.6 var(--mono); color: var(--ink-2); white-space: pre-wrap; }
.t-group summary { list-style: none; display: inline-flex; gap: var(--space-8); font-size: var(--fs-ui); font-weight: 500; color: var(--ink-2); }
.t-group summary::before { content: "+"; color: var(--muted); width: 12px; }
.t-group details[open] > summary::before { content: "−"; }
.t-group .timeline { margin-top: var(--space-8); }
.t-stage { display: flex; align-items: center; gap: var(--space-8); margin: var(--space-16) 0 var(--space-4); padding-top: var(--space-16); border-top: 1px solid var(--rule); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.t-stage:not(.t-ok):not(.t-no) { font-weight: 500; color: var(--muted); }
.t-stage.t-ok b { color: var(--wp); }
.t-stage.t-no { color: var(--ink); }
.t-stop > div { padding: var(--space-12) var(--space-16); border-left: 2px solid var(--ink); background: var(--panel); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.t-stop p, .t-ask p { color: var(--ink); }

/* Run details: what someone needs to verify or re-run it */
.t-details { display: flex; flex-wrap: wrap; gap: var(--space-16) var(--space-40); margin: 0; }
.t-details dt { font-size: 15px; color: var(--muted); }
.t-details dd { margin: 2px 0 0; font-size: var(--fs-ui); }
.transcript .run-actions { border-top: 0; }
@media (max-width: 900px) { .t-entry { grid-template-columns: 1fr; gap: 2px; } .evidence .e-name, .evidence .e-found { width: auto; } }

/* About: contents that stay in view beside the sections, which run across the rest of the grid */
.about { padding-bottom: var(--space-64); }
.about > nav { position: sticky; top: var(--space-24); align-self: start; }
.about-toc { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--rule); font-size: var(--fs-small); }
.about-toc a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.about-toc a:hover { color: var(--ink); }
.about-sec { padding: var(--space-40) 0; border-top: 1px solid; border-image: var(--fade-x) 1; scroll-margin-top: var(--space-24); }
.about-sec:first-child { border-top: 0; padding-top: 0; }
.about-h { margin: 0 0 var(--space-12); font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
@media (max-width: 900px) { .about nav { display: none; } }

/* Prototype labelling: a bar on every page, and a tag under each headline number */
.illus { display: inline-block; margin: var(--space-12) 0 0; padding: 2px 8px; border: 1px dashed var(--rule-strong); border-radius: 999px; font-size: var(--fs-caption); color: var(--muted); }
.hero-col .illus { margin-left: auto; margin-right: auto; justify-self: center; }

/* Explore: bars slide to their new widths when filters change (numbers count in runs.js) */
[data-anim^="w:"] { transition: width .5s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { [data-anim^="w:"] { transition: none; } }

/* Phones ------------------------------------------------------------------------
   Everything below applies at 600px and narrower only. Desktop and tablet layouts are unchanged. */
.filters-toggle, .split-key { display: none; }
@media (max-width: 600px) {

  /* Masthead: smaller identity, one tidy nav row with room to tap */
  .masthead { padding-top: var(--space-16); gap: var(--space-12); }
  .masthead-id { gap: var(--space-12); }
  .masthead-id svg { width: 38px; height: 38px; }
  .masthead-id b { font-size: 22px; }
  .masthead-id span span { font-size: 15px; }
  .masthead .site-nav { width: 100%; justify-content: space-between; padding-top: var(--space-4); border-top: 1px solid var(--rule); }
  .masthead .nav-links { gap: var(--space-4); margin-left: -10px; }
  .masthead .nav-links a { padding: 12px 10px 10px; border-bottom-width: 2px; font-size: var(--fs-ui); }
  .masthead .nav-icons { gap: var(--space-4); margin-right: -10px; }
  .masthead .nav-icons a, .masthead .nav-icons a:first-child { padding: 10px; border-left: 0; }

  /* Overview hero: both numbers fit on the first screen */
  .hero { padding-top: var(--space-16); }
  .hero-col .question { font-size: 19px; max-width: 30ch; }
  .hero-col .stat { margin-top: var(--space-8); font-size: 72px; }
  .hero-col .stat-caption { margin-top: 6px; font-size: 15px; max-width: 32ch; }
  .hero-col .illus { margin-top: 6px; }
  .hero-col .changes { margin-top: var(--space-8); gap: 18px; }
  .hero-col .chg-v { font-size: 16px; }
  .hero-col .chg-v.steady, .hero-col .chg-v.ci-v { font-size: 15px; padding-top: 1px; }
  .hero-col + .hero-col { margin-top: var(--space-16); padding-top: var(--space-16); }

  /* Charts: readable labels; release names live in the list under each chart */
  .chart svg text { font-size: 19px; }
  .chart svg text.ev { display: none; }

  /* Agents table: the model column stays put while the numbers scroll */
  .agents td.who, .agents th.col-model { position: sticky; left: 0; z-index: 1; background: var(--page); padding-right: var(--space-12); }
  .agents td.who b { white-space: nowrap; }
  .agents td.who span { display: block; margin: 2px 0 0; }

  /* Explore filters: one row that says what's selected; tap to change */
  .filters { padding-top: var(--space-12); padding-bottom: var(--space-16); }
  .filters-toggle { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); width: 100%; padding: 10px 12px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-m); font-size: var(--fs-small); color: var(--ink-2); cursor: pointer; }
  .filters-toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .filters-toggle b { flex: none; font-weight: 600; color: var(--ink); }
  .filters-toggle b::after { content: " ▾"; color: var(--muted); }
  .filters.open .filters-toggle b::after { content: " ▴"; }
  .filters:not(.open) > label, .filters:not(.open) > .btn-link { display: none; }
  .filters.open > label { width: 100%; }

  /* Split bar: numbers only in the bar, with a key underneath */
  .split-bar .split-l { display: none; }
  .split-call { display: none; }
  .split-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: var(--space-8) 0 0; font-size: var(--fs-caption); color: var(--ink-2); }
  .split-key i { width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
  .split-key i:first-child { margin-left: 0; }

  /* Run list: each run on two lines, the result in full */
  .runs, .runs tbody { display: block; }
  .runs thead, .runs colgroup { display: none; }
  .runs tr.run { display: grid; grid-template-columns: 118px minmax(0, 1fr); grid-template-areas: "id res" "id who"; border-bottom: 1px solid var(--rule); }
  .runs tr.run td { border-bottom: 0; white-space: normal; }
  .runs tr.run td.id { grid-area: id; white-space: nowrap; }
  .runs tr.run td.who { grid-area: who; padding-top: 0; font-size: var(--fs-small); color: var(--ink-2); }
  .runs tr.run td:last-child { grid-area: res; padding-bottom: 4px; }
  .runs tr.run td.hide-m { display: none; }
  .runs tr.detail, .runs tr.detail td { display: block; }

  /* Footer: page links and icons on one row */
  .site-footer .site-nav { flex-wrap: nowrap; justify-content: space-between; gap: var(--space-16); width: 100%; }
  .site-footer .nav-links { gap: 20px; }
  .site-footer .nav-icons { gap: var(--space-12); padding-bottom: 0; }
  .site-footer .nav-icons a:first-child { margin-left: 0; padding-left: 0; border-left: 0; }
}
/* Nothing on the site is smaller than 15px */
small { font-size: max(15px, .85em); }
@media (max-width: 560px) { .masthead .site-nav { flex-wrap: wrap; row-gap: var(--space-12); } .masthead .nav-links { gap: 20px; flex-wrap: wrap; row-gap: var(--space-8); } }
.prose, .about-sec > * { min-width: 0; } .table-scroll { max-width: 100%; }
.site-footer .site-nav, .site-footer .nav-links { flex-wrap: wrap; row-gap: var(--space-12); }

/* Links, site-wide, as on the Building recommendations page: grey text with a quiet underline that brightens on
   hover. Links that take you somewhere on their own carry an arrow. No blue or bold links. */
body :is(.go, .see, .see-inline, .why-links a, .drop-more .near a, .rec-link, .help a, .why-help a),
body :is(.adv-body, .prose, .answer, .note, .lede, .why, .b8 ul li, dd) a:not([class]) {
  color: var(--ink-2); font-weight: 400; text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
body :is(.go, .see, .see-inline, .why-links a, .drop-more .near a, .rec-link, .help a, .why-help a):hover,
body :is(.adv-body, .prose, .answer, .note, .lede, .why, .b8 ul li, dd) a:not([class]):hover { color: var(--ink); text-decoration-color: var(--ink-2); }
body :is(.go, .see, .see-inline, .why-links a, .drop-more .near a, .rec-link, .help a, .why-help a)::after {
  content: "→"; display: inline-block; margin-left: .35em; text-decoration: none; transition: transform .18s cubic-bezier(.2, .7, .2, 1);
}
body :is(.go, .see, .see-inline, .why-links a, .drop-more .near a, .rec-link, .help a, .why-help a):is(:hover, :focus-visible)::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { body :is(.go, .see, .see-inline, .why-links a, .drop-more .near a, .rec-link, .help a, .why-help a)::after { transition: none; } }
body .why-help a { display: inline; font-size: var(--fs-body); line-height: 1.5; }

/* Text wraps without leaving a single word on its own line */
p, li, dd, dt, td, th, summary, blockquote, figcaption, label, .lede, .note { text-wrap: pretty; }
h1, h2, h3, h4, .title, .heading, .question { text-wrap: balance; }
/* An empty first segment takes no space, so the next one starts the bar without a divider over its rounded corner */
.seg.zero + .seg { box-shadow: none; }

/* A benchmark that isn't ready: listed in the switcher, not linked */
.dash-menu .soon { display: block; padding: 10px 12px; cursor: default; font-size: var(--fs-ui); font-weight: 600; color: var(--muted); }
.dash-menu .soon small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); }
.dash-menu .soon .soon-tag { font-weight: 400; }
.dash-menu .soon .soon-tag { margin-left: var(--space-8); padding: 1px 8px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }
.dash-menu .soon { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-8); align-items: center; }
.dash-menu .soon .soon-tag { display: inline-block; width: auto; margin: 0; grid-column: 2; grid-row: 1; line-height: 1.5; }
.dash-menu .soon small { grid-column: 1 / -1; }

/* Section permalinks (permalinks.js): the same link icon as on Recommendations, shown when the heading is hovered */
.sec-anchor { display: inline-flex; vertical-align: middle; margin-left: 10px; padding: 4px; color: var(--muted); opacity: 0; transition: opacity .15s, color .15s; }
.sec-anchor svg { width: 15px; height: 15px; }
h2:hover > .sec-anchor, .sec-anchor:focus-visible { opacity: 1; }
.sec-anchor:hover, .sec-anchor.copied { color: var(--ink); }
.has-anchor { scroll-margin-top: var(--space-24); }
@media (hover: none) { .sec-anchor { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sec-anchor { transition: none; } }
