:root {
  --paper: #f7f8f7;
  --card: #ffffff;
  --ink: #14171a;
  --ink-2: #4a5157;
  --rule: #d9dedb;
  /* Marine blue. The single definition point for the accent: body links, the
     eyebrow, group letters, and the CI-plot marks all resolve to this. The
     inline CI plot draws its marks in `currentColor` (see .ciplot svg below),
     so the generator holds no colour literal of its own.
     Contrast on --paper #f7f8f7: 7.12:1 -- clears WCAG AA 4.5:1 and AAA 7:1,
     which matters because the accent is used on 12px mono text. */
  --accent: #14549b;
  --warn: #8a6d1f;
  --wrong: #b3261e;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  /* Belt-and-suspenders: the page body must never scroll sideways. The real
     fix is that wide tables scroll inside their own .table-scroll container
     (see below) rather than forcing document width, but this stays as a
     backstop against any future element that doesn't respect it. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.masthead {
  display: flex; align-items: baseline; gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding: 20px 0; margin-bottom: 56px;
}
.masthead .brand { font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
/* The one maritime nod on the site: a hairline wave beside the wordmark.
   Decorative, aria-hidden, sized to the wordmark's x-height so it reads as
   part of the mark rather than an icon parked next to it. */
.masthead .brand .wave {
  display: inline-block; width: 22px; height: 9px;
  margin-right: 7px; vertical-align: 1px;
  color: var(--accent);
}
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.version { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* The hero (eyebrow + h1 + lede) is the one place on the page allowed a wider
   measure than .wrap's 1080px reading column. At the h1's type scale
   (clamp maxes at 50px past ~1000px viewport) the headline needs ~1333px to
   set on one line; .wrap only ever offers 1032px, on any viewport. Widening
   .wrap itself would loosen body-copy line length and the table layout
   everywhere, so instead .hero gets its own `width`, anchored at the exact
   same left edge .wrap already puts every other child at (it stays a normal
   flow child of .wrap -- no repositioning), and is allowed to overflow
   .wrap's right edge into whatever space the viewport has left of it.
   The formula reproduces "distance from .hero's own start position to 24px
   short of the viewport's right edge": below 1080px viewport it collapses
   to exactly .wrap's own content width (100vw - 48px, the same 24px padding
   on both sides), so there is no divergence at phone/tablet widths -- the
   widening only ever activates once the viewport has spare room past 1080.
   1360px is a sanity ceiling for very wide screens; it is not expected to
   bind at any width in this site's tested range.
   Even at full stretch this does not reach 1333px below roughly a 1630px
   viewport (measured), so the headline still sets on two lines through at
   least 1600px -- see `text-wrap: balance` on .h1 below for why that two-line
   break is a clean, deliberate outcome rather than an accident. */
.hero { width: min(1360px, calc(100vw - 48px), calc(50vw + 492px)); }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.h1 {
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(30px, 5vw, 50px); margin: 0 0 20px;
  /* Without this, the homepage h1 (5 words, then an orphaned "questions."
     alone on its own line) is the actual two-line break at desktop widths --
     even with .hero widened as far as it safely goes, one line is still out
     of reach below roughly a 1630px viewport. `balance` distributes a
     forced-multiline heading across its lines evenly instead of greedily
     filling each one, which is exactly what turns that orphan into a clean
     "General-purpose models, asked / specialist marine questions." split.
     It is a no-op wherever the heading already fits on one line, and
     unsupported browsers silently ignore it and fall back to normal
     wrapping -- no overflow risk either way. */
  text-wrap: balance;
}
/* Reading width, not hero width: even inside the wider .hero box the lede
   stays capped at 62ch so paragraph-length text never gets an unreadably
   long line. It is a plain block child of .hero with no padding of its own,
   so its left edge lines up with the eyebrow and h1 above it regardless of
   how wide .hero gets -- nothing here can go ragged. */
.lede { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin: 0 0 40px; }

.section { margin: 64px 0; }
.section h2 {
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.section-num { font-family: var(--mono); font-size: 13px; color: var(--ink-2); font-weight: 400; }

.protocol {
  /* Fixed track counts rather than auto-fit: auto-fit with minmax(190px, 1fr)
     resolves to 3 columns in the ~660-760px content-width band for this
     always-4-item list, leaving the 4th cell alone on a lopsided second row.
     A 4-item dl should only ever be 4, 2, or 1 across -- never 3. */
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 28px 0;
}
.protocol div { background: var(--paper); padding: 12px 14px; }
.protocol dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2); margin: 0 0 4px; }
.protocol dd { margin: 0; font-family: var(--mono); font-size: 14px; }

/* Tier status strip. This replaced three .tier-tab spans that looked like tabs,
   carried an active state, and did nothing: a control that reads as interactive
   and isn't is worse than no control. It is a status strip, not a tab bar, so it
   has no hover state, no active state, and no pointer affordance of any kind --
   nothing here invites a click. Two of the three tiers have no results at all,
   and that absence is a finding, so all three states are stated on the page at
   once rather than being put behind a control that would hide two thirds of them.
   Same hairline-grid construction as .protocol above. */
.tierstrip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  margin: 24px 0 20px;
}
.tierstrip div { background: var(--card); padding: 12px 14px; }
.tierstrip dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2); margin: 0 0 5px;
}
.tierstrip dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink); }

/* Run configuration: the settings and policies that are identical for every row
   of the results table -- runs per question, temperature, reasoning effort,
   capture method, and the search-time-contamination policy. The first four were
   columns until each was measured to hold exactly one distinct value across all
   seven rows; the width of those repeated constants was the whole reason the
   table scrolled sideways. Stated once here, they still sit directly above the
   scores they describe. Same hairline-grid construction as .protocol and
   .tierstrip. */
.runconfig-h {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
  margin: 24px 0 8px;
}
.runconfig {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  margin: 0 0 20px;
}
.runconfig div { background: var(--card); padding: 10px 12px; min-width: 0; }
/* One entry here has no bounded length: when models were captured under
   different reasoning-effort settings the generator names each one, and in a
   quarter-width cell that list turns the whole strip into a column of wrapped
   text. It gets a row to itself instead, and the strip drops to three tracks so
   the wide row does not leave a hole in the grid. Without :has() support this
   degrades to a 4-track strip with one empty cell -- still readable. */
.runconfig:has(.wide) { grid-template-columns: repeat(3, 1fr); }
.runconfig .wide { grid-column: 1 / -1; }
/* The contamination policy is a clause rather than a value, so it always takes a
   row of its own. Deliberately a separate class from .wide: .wide also drops the
   strip to three tracks, which is right when the *only* full-width row is a list
   of one value per model, and wrong here -- the four quarter cells above this one
   fill a 4-track row exactly. Both spans coexist when effort is per-model: three
   quarter cells, then two full-width rows. */
.runconfig .policy { grid-column: 1 / -1; }
.runconfig dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2); margin: 0 0 4px;
}
.runconfig dd {
  margin: 0; font-family: var(--mono); font-size: 13px;
  overflow-wrap: break-word;
}

/* Section 04's omnibus result. It is the one finding on the page that reframes
   another one, so it gets the only raised-surface block here: a claim sentence
   at body size over a hairline figure strip, in the same construction as
   .protocol / .runconfig above so it reads as part of the same system. Emphasis
   comes from size and from one accented value, not from a shadow, a gradient or
   a rounded card -- none of which exist anywhere on this site. */
.omnibus {
  border: 1px solid var(--rule);
  background: var(--card);
  margin: 28px 0 16px;
}
/* The claim fills its box. It carried a 78ch cap, which put the sentence at 835px
   inside a 1032px bordered block -- and because this element draws the hairline
   that separates the claim from the figure strip, the cap took the *rule* short
   with it, leaving 197px of border missing at every viewport above roughly
   1280px. A box header that ends before its own box does is the clearest possible
   version of the defect this pass is fixing, so the cap is gone and the rule now
   runs the full width of the block it divides. */
.omnibus-claim {
  margin: 0;
  padding: 16px 18px;
  font-size: 17px;
  line-height: 1.5;
  border-bottom: 1px solid var(--rule);
  text-wrap: pretty;
}
/* Four entries, on the same 4 / 2 / 1 ladder as .protocol and .runconfig -- and
   for the same reason: any other track count leaves a lopsided row. */
.omnibus-figures {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule); margin: 0;
  border-top: 1px solid var(--rule);
}
.omnibus-figures div { background: var(--card); padding: 12px 14px; min-width: 0; }
/* A degenerate roster reports why the statistic is undefined instead of a
   number, and that sentence gets the full width rather than a quarter of it --
   the same treatment .runconfig gives its one unbounded entry. The strip drops
   to two tracks in that form so the remaining two cells fill their row. */
.omnibus-figures:has(.wide) { grid-template-columns: repeat(2, 1fr); }
.omnibus-figures .wide { grid-column: 1 / -1; }
.omnibus-figures dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2); margin: 0 0 4px;
}
.omnibus-figures dd {
  margin: 0; font-family: var(--mono); font-size: 15px;
  overflow-wrap: break-word;
}
/* The statistic and its p-value. The accent still has exactly one definition
   point (:root --accent); this is a reference to it. */
.omnibus-figures dd.key { color: var(--accent); font-weight: 600; }

/* Findings 2-5. Two across, because four cells in a three-track grid orphans the
   fourth -- the same rule .protocol follows. Each cell is a sentence, so it
   needs more measure than the short-value strips above and drops to one column
   earlier. */
.findings {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  margin: 24px 0 16px;
}
.findings div { background: var(--card); padding: 14px 16px; min-width: 0; }
.findings dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px;
}
.findings dd { margin: 0; font-size: 14px; line-height: 1.55; overflow-wrap: break-word; }

/* Wide tables scroll inside their own container at every viewport width,
   rather than making the whole document scroll sideways. `display: block`
   on the <table> itself is deliberately avoided -- it breaks the table's own
   column sizing -- so the table stays a table and only its wrapper scrolls. */
.table-scroll {
  position: relative;
  overflow-x: auto;
}
/* The right-edge scroll cue lives in a media query at the bottom of this file
   rather than here. It used to be unconditional: a hairline announcing that the
   table continued past the edge, drawn whether or not there was anything past
   the edge. With seven columns instead of ten, neither table overflows above
   667px of viewport (measured: the results table's intrinsic minimum is 619px,
   which fits the 24px-padded .wrap from 667px up), so at desktop widths that
   hairline would have been marking content that does not exist -- the same false
   affordance as a tab that cannot be clicked. */

table.results, table.pairwise {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--rule); font-size: 14px;
}
.results th, .pairwise th {
  text-align: left; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2);
  font-weight: 400; padding: 10px 12px; border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.results td, .pairwise td {
  padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: baseline;
}
.results tr:last-child td, .pairwise tr:last-child td { border-bottom: none; }
.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.model { font-family: var(--mono); font-size: 13px; }
/* A model id is one identifier. Once the reasoning-effort column was added the
   auto layout squeezed this column until "gpt-5.6-sol" broke across two lines,
   which reads as two things. The table already scrolls inside .table-scroll, so
   the first column can just take the width it needs. Prose-ish columns
   (capture method) are still allowed to wrap. */
.results td:first-child, .results th:first-child { white-space: nowrap; }
.group { font-family: var(--mono); font-weight: 600; color: var(--accent); }
.state-warn { color: var(--warn); font-family: var(--mono); font-size: 13px; }
.state-empty { color: var(--ink-2); font-family: var(--mono); font-size: 13px; }

.ciplot { margin: 28px 0 8px; }
/* The generated plot draws its whiskers and point estimates in currentColor,
   so the accent stays defined once, in :root. */
.ciplot svg { color: var(--accent); }

/* Hover and focus feedback on the CI plot.
   All of it is CSS on the inline SVG, so it lands on the first frame -- the
   complaint being fixed here is that a native <title> tooltip is the only
   response, and it arrives after an OS delay with no visual change at all, so
   the chart reads as dead. Three changes per row, chosen to be legible without
   moving anything: the whisker thickens, the point estimate grows, and the model
   label takes the accent and bolds.
   :focus-within (and :focus, for the group itself) is listed everywhere :hover
   is, so a keyboard user tabbing the rows sees exactly what a mouse shows.
   Geometry (stroke-width, r) only -- no box-shadow, no fill wash, nothing that
   would need a second colour definition. */
.ciplot g[data-model] line,
.ciplot g[data-model] circle,
.ciplot g[data-model] text {
  transition: stroke-width 100ms linear, r 100ms linear, fill 100ms linear;
}
.ciplot g[data-model]:hover line,
.ciplot g[data-model]:focus line,
.ciplot g[data-model]:focus-within line {
  stroke-width: 3;
}
.ciplot g[data-model]:hover circle,
.ciplot g[data-model]:focus circle,
.ciplot g[data-model]:focus-within circle {
  r: 6.5;
}
.ciplot g[data-model]:hover text,
.ciplot g[data-model]:focus text,
.ciplot g[data-model]:focus-within text {
  fill: var(--accent);
  font-weight: 700;
}
/* Focus stays visible on its own terms: the UA ring around a full-width row band
   is a wide rectangle, so it is replaced with a hairline in the accent. */
.ciplot g[data-model]:focus { outline: none; }
.ciplot g[data-model]:focus rect { fill: none; stroke: currentColor; stroke-width: 1; }
@media (prefers-reduced-motion: reduce) {
  .ciplot g[data-model] line,
  .ciplot g[data-model] circle,
  .ciplot g[data-model] text { transition: none; }
}

/* The plot's tooltip. Shown by the small inline script in index.template.html,
   which reads each row's own <title> text -- so the figures here are the same
   string the table renders, formatted once in the generator. Fixed position and
   pointer-events:none so it never blocks the row it describes. */
.ci-tip {
  position: fixed;
  z-index: 20;
  max-width: 42ch;
  padding: 6px 9px;
  background: var(--card);
  border: 1px solid var(--ink-2);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
  pointer-events: none;
}
.ci-tip[hidden] { display: none; }
/* Captions belong to the element above them, so they take that element's width.
   They used to be capped at 78ch, which is right for an article and wrong here:
   the results table, the pairwise table and the CI plot all span the full 1032px
   column, and a caption stopping at 564px underneath one of them reads as text
   that failed to fill its box rather than as a chosen measure. Every caption on
   this site sits directly under a full-width table, plot or strip, so there is no
   case where the narrow measure was the deliberate-looking one.

   What the long measure costs is bought back three ways rather than ignored:
   more leading (1.7 against the body's 1.55), which is what a wide measure needs
   to keep the eye on its line; `text-wrap: pretty`, so the last line is not left
   as an orphan word; and the fact that captions are 12px mono reference text read
   in two-to-five line blocks, not sustained prose. Body <p> is unchanged and still
   spans the column -- it already matched the tables, and narrowing it would create
   exactly the mismatch this rule removes. */
.caption {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  line-height: 1.7;
  text-wrap: pretty;
}

.foot {
  margin: 80px 0 40px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-2);
}
.colophon { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.colophon a { color: var(--ink-2); }

/* .protocol is always a 4-item list. Fixed track counts (never auto-fit) so
   it lands on 4 across, 2 across, or 1 across -- never a lopsided 3. */
@media (max-width: 820px) {
  .protocol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .protocol { grid-template-columns: 1fr; }
}

/* The tier strip carries a sentence per cell, so it needs more room per column
   than .protocol's short values. Three states, so it goes 3 across or 1 across --
   a 2/1 split would orphan Tier C on its own row. */
@media (max-width: 820px) {
  .tierstrip { grid-template-columns: 1fr; }
}

/* .runconfig is a 4-item list like .protocol, and takes the same 4 / 2 / 1
   ladder for the same reason -- never a lopsided 3. */
@media (max-width: 820px) {
  .runconfig, .runconfig:has(.wide) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .runconfig, .runconfig:has(.wide) { grid-template-columns: 1fr; }
}

/* The omnibus strip takes the same ladder as the other four-item lists.
   .findings carries a sentence per cell rather than a short value, so it gives
   up its second column earlier -- at the width where two columns of prose stop
   being readable rather than where they stop fitting. */
@media (max-width: 820px) {
  .omnibus-figures, .omnibus-figures:has(.wide) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .findings { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .omnibus-figures, .omnibus-figures:has(.wide) { grid-template-columns: 1fr; }
  .omnibus-claim { font-size: 16px; padding: 14px 15px; }
}

/* Below the point where six columns stop fitting comfortably, the table gives up
   width in the two places that cost nothing: header labels wrap instead of
   forcing their full single-line width, and cell padding tightens. That is what
   keeps the results table from overflowing its wrapper on a phone, rather than
   letting it scroll. The model id keeps `white-space: nowrap` throughout -- it is
   one identifier and must not break across lines -- so it sets the floor. */
@media (max-width: 900px) {
  .results th, .pairwise th { white-space: normal; }
  .results th, .results td, .pairwise th, .pairwise td { padding: 9px 7px; }
}
@media (max-width: 600px) {
  table.results, table.pairwise { font-size: 13px; }
  .results .model, .results th:first-child { font-size: 12px; }
  .results th, .results td, .pairwise th, .pairwise td { padding: 8px 5px; }
}

/* The scroll cue, and only at the widths that actually have something to scroll.
   The results table's intrinsic minimum is 619px at the 601-900px padding regime
   -- a model id is nowrap and sets that floor -- and .wrap adds 48px of
   horizontal padding, so 667px is the first viewport width where the table fits
   its wrapper (measured: 666px overflows by 1px, 667px does not). At 666px and
   below it does not fit, and this inset hairline marks the edge it continues
   past. The tightened phone padding below 600px takes the table to 564px, which
   still does not fit inside a 600px viewport, so every width in that band
   overflows too. The results table sets the breakpoint; the narrower pairwise
   table fits sooner. No gradient, no box-shadow: a plain 2px rule. */
@media (max-width: 666px) {
  .table-scroll::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; right: 1px;
    width: 2px;
    background: var(--ink-2);
    pointer-events: none;
  }
}

@media (max-width: 700px) {
  .masthead { flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
  .nav { margin-left: 0; }
}

/* ---- Summary (home) -------------------------------------------------------
   The takeaways a reader should leave with, above everything else on the site.
   Each is a claim in one line and its evidence in the next, numbered because
   the findings page refers back to them. Same hairline rules as the strips
   above; no cards, no icons. */
.summary { margin: 0 0 56px; }
.summary > h2 {
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
  margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.takeaways { list-style: none; margin: 0; padding: 0; counter-reset: takeaway; }
.takeaways li {
  counter-increment: takeaway;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.takeaways li::before {
  content: counter(takeaway, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 4px;
}
.takeaways .claim {
  display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.3; margin-bottom: 5px; text-wrap: balance;
}
.takeaways .evidence { display: block; color: var(--ink-2); font-size: 15.5px; max-width: 80ch; }
.takeaways .evidence b { color: var(--ink); font-weight: 600; }
.so-what {
  background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  padding: 16px 18px; margin: 26px 0 14px;
}
.so-what p { margin: 0; max-width: 84ch; }
.so-what p + p { margin-top: 8px; }

/* Three experiments, so three across or one across (the .tierstrip ladder). */
.experiments {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0 0 8px;
}
.experiments div { background: var(--card); padding: 12px 14px; }
.experiments dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2); margin: 0 0 5px;
}
.experiments dd { margin: 0; font-size: 13px; line-height: 1.5; }
.experiments dd a { color: var(--accent); }
@media (max-width: 820px) { .experiments { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .takeaways li { grid-template-columns: 26px minmax(0, 1fr); }
  .takeaways .claim { font-size: 17px; }
}

/* ---- Findings tables ------------------------------------------------------
   Context experiment: a number and a bar on a common 0-100 track, so the three
   conditions read as lengths before they read as digits. A plain filled element,
   not a gradient. */
.results td.bar { position: relative; min-width: 104px; padding-bottom: 17px; }
.results td.bar .track {
  position: absolute; left: 12px; right: 12px; bottom: 8px; height: 3px;
  background: var(--rule);
}
.results td.bar .track i { display: block; height: 100%; background: var(--accent); }

/* Street-sense round: one cell per model and trap. Shading is the share missed,
   one hue in four steps from the accent, light to dark; the count is printed in
   every cell, so shade is never the only carrier. Ink on the darkest step is
   5.9:1. */
table.heat-table { min-width: 760px; }
.heat-table th { white-space: normal; vertical-align: bottom; text-align: center; line-height: 1.35; }
.heat-table th:first-child { text-align: left; }
.heat-table td.heat {
  text-align: center; font-family: var(--mono); font-size: 13px; white-space: nowrap;
  border-left: 2px solid var(--card);
}
.heat .of { color: var(--ink-2); }
.heat.m1 { background: #dee7f1; }
.heat.m2 { background: #bdcfe3; }
.heat.m3 { background: #9cb7d5; }
.heat.m4 { background: #7b9fc7; }
.heat.m1, .heat.m2, .heat.m3, .heat.m4 { font-weight: 600; }
.heat.m3 .of, .heat.m4 .of { color: var(--ink); }
.heat.none { color: var(--ink-2); font-size: 12px; }
.heat-key {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin: 10px 0 0;
}
.heat-key span { display: inline-flex; align-items: center; gap: 6px; }
.heat-key i { display: inline-block; width: 16px; height: 12px; border: 1px solid var(--rule); background: var(--card); }
.heat-key i.m1 { background: #dee7f1; } .heat-key i.m2 { background: #bdcfe3; }
.heat-key i.m3 { background: #9cb7d5; } .heat-key i.m4 { background: #7b9fc7; }

.inshort { margin: 0 0 8px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.inshort li { padding: 12px 0; border-bottom: 1px solid var(--rule); max-width: 92ch; }
.inshort li a { color: var(--accent); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.traps { margin: 20px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.traps div { background: var(--card); padding: 12px 14px; min-width: 0; }
.traps dt { font-weight: 700; font-size: 14px; margin: 0 0 3px; }
.traps dt span { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.traps dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 700px) { .traps { grid-template-columns: 1fr; } }

/* Prose links take the accent. :where() keeps this at the specificity of a bare
   element selector, so the masthead and colophon rules above still win. */
:where(.wrap) a { color: var(--accent); }

/* ---- Number-sense round: outcome bars --------------------------------------
   One bar per model and condition, split into right, "I can't tell" and wrong,
   every bar on the same 0-100% width so lengths compare across the grid. The net
   score is printed beside each bar, so no reading depends on colour alone, and
   each cell carries its counts as text for a screen reader. Right takes the
   accent and wrong the site's --wrong; "I can't tell" is a neutral grey because
   it is the neutral outcome. The three were checked for separation under
   deuteranopia, protanopia and tritanopia and for 3:1 against the card.
   The table is complete without script. /assets/ns-chart.js adds the tooltip and,
   on the main chart, the row order buttons, which it un-hides itself. */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ns-figure { margin: 24px 0 20px; }
.ns-figure > .caption { margin: 10px 0 0; }
.ns-chart {
  --ns-right: var(--accent); --ns-unsure: #88928e; --ns-wrong: var(--wrong);
  background: var(--card); border: 1px solid var(--rule); padding: 14px 16px 4px;
}
.ns-chart i.right { background: var(--ns-right); }
.ns-chart i.unsure { background: var(--ns-unsure); }
.ns-chart i.wrong { background: var(--ns-wrong); }
/* An answer that was not read (a timeout, or a reply that chose no option) is not
   a decline, so it is not drawn as one: a pale segment with its own legend entry,
   shown only on a chart that has any. */
.ns-chart i.none { background: #d3d9d6; }
.ns-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; margin: 0 0 12px;
}
.ns-legend, .ns-sort {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
}
.ns-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ns-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.ns-sort { gap: 6px; }
.ns-sort[hidden] { display: none; }
.ns-sort span { margin-right: 4px; }
.ns-sort button {
  font: inherit; color: var(--ink-2); background: var(--card);
  border: 1px solid var(--rule); border-radius: 2px; padding: 4px 9px; cursor: pointer;
}
.ns-sort button:hover { color: var(--accent); border-color: var(--accent); }
.ns-sort button[aria-pressed="true"] { color: var(--card); background: var(--accent); border-color: var(--accent); }
.ns-sort button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ns-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.ns-table th { text-align: left; font-weight: 400; }
.ns-table thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-2); line-height: 1.35; vertical-align: bottom;
  padding: 8px 16px 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.ns-table thead th:first-child { width: 176px; }
.ns-table th.ns-extra, .ns-table td.ns-extra { width: 148px; }
.ns-table tbody tr { background: var(--card); }
.ns-table tbody tr + tr > * { border-top: 1px solid var(--rule); }
.ns-table tbody th.model { font-family: var(--mono); font-size: 13px; white-space: nowrap; padding: 9px 16px 9px 0; }
.ns-table tbody td { padding: 8px 16px 8px 0; }
.ns-table tr > :last-child { padding-right: 0; }
.ns-table td.ns-extra { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.ns-sig {
  font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent);
  margin-left: 4px;
}
.ns-cell { display: flex; align-items: center; gap: 8px; cursor: default; outline: none; }
.ns-bar { display: flex; gap: 2px; flex: 1 1 0; min-width: 0; height: 18px; border-radius: 3px; }
.ns-bar i { display: block; flex: 0 1 0; min-width: 0; height: 100%; }
.ns-bar i:first-child { border-radius: 3px 0 0 3px; }
.ns-bar i:last-child { border-radius: 0 3px 3px 0; }
.ns-bar i:only-child { border-radius: 3px; }
.ns-net { flex: 0 0 40px; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--ink); }
/* Hover, keyboard focus and a tapped cell look the same: a hairline round the
   bar and the net score in the accent. Geometry only, like the CI plot. */
.ns-cell:hover .ns-bar, .ns-cell:focus-visible .ns-bar, .ns-cell.is-open .ns-bar {
  outline: 1.5px solid var(--ink); outline-offset: 2px;
}
.ns-cell:hover .ns-net, .ns-cell:focus-visible .ns-net, .ns-cell.is-open .ns-net { color: var(--accent); font-weight: 700; }
.ns-tip { max-width: 34ch; padding: 8px 10px; }
.ns-tip span { display: block; }
.ns-tip .ns-tip-who { font-weight: 700; }
.ns-tip .ns-tip-what { color: var(--ink-2); margin-bottom: 4px; }
.ns-tip .ns-tip-net { color: var(--accent); font-weight: 600; }

/* On a phone four bars side by side are too short to read, so each model becomes
   a block and its conditions stack, each labelled from the column heading. The
   bars keep the full width and stay comparable down the page. */
@media (max-width: 760px) {
  .ns-chart { padding: 12px 12px 2px; }
  .ns-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .ns-table, .ns-table tbody, .ns-table tbody tr, .ns-table tbody th.model, .ns-table tbody td { display: block; width: auto; }
  .ns-table tbody tr { padding: 10px 0 8px; border-top: 1px solid var(--rule); }
  .ns-table tbody tr + tr > * { border-top: none; }
  .ns-table tbody th.model { padding: 0 0 4px; font-weight: 700; }
  .ns-table tbody td, .ns-table td.ns-extra {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center;
    column-gap: 8px; padding: 3px 0; width: auto;
  }
  .ns-table tbody td::before {
    content: attr(data-col); font-family: var(--mono); font-size: 11px; line-height: 1.3; color: var(--ink-2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ns-table tbody tr { transition: none !important; }
}

/* What was expected in advance against what happened: prose in both columns. */
table.expected td { vertical-align: top; white-space: normal; font-size: 14px; }
table.expected td:first-child { white-space: normal; width: 44%; }
table.expected th:first-child { white-space: normal; }

/* Four experiments now, so the strip is four across, two across, or one. */
.experiments.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .experiments.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .experiments.four { grid-template-columns: 1fr; } }

/* A short list of findings inside a section: hairline rows, like .inshort. */
.behaviours { margin: 0 0 18px; padding: 0; list-style: none; border-top: 1px solid var(--rule); max-width: 96ch; }
.behaviours li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
