/* A newsroom proof sheet: one reading column for prose and wider
   exhibit blocks for the answer grids. Every answer square opens its prompt and full answer.
   The surface is square and ruled. No corner on the site is rounded, and nothing in the interface casts
   a soft shadow (only the book covers on the about page, which are pictures of objects, keep theirs).
   One line bounds a thing, never two: a box inside a box is told apart by its ground, not by a second
   border. A bar of ink marks the current choice (the open tab, the page you are on, the section you
   are in). Small labels are set in sentence case, never in capitals.
   Type and space are one system, set out in the tokens below:
   - One family in three cuts, drawn to sit together (the same x-height and capital height): Source Serif 4
     for headlines and for text to read, Source Sans 3 for everything that is data or a control, Source Code
     Pro for the prompts.
   - Seven text sizes, each with one job, and two weights, 400 and 600. No rule sets a size of its own: it
     takes a step of the scale.
   - Space in steps of 4px. Every box has the same room on all four sides, and what belongs together sits
     closer than what doesn't (--gap-tie, --gap-text, --gap-block).
   - One centre line. Text to read sits on it in a column one measure wide; tables and charts take the
     page's full width, so they reach equally to either side of the column. */
:root {
  --paper: #f5f6f3; --sheet: #ffffff; --ink: #17191e; --muted: #5a5f6b; --rule: #d8dad4; --recess: #e7e8e3;
  /* --link: Tech for Palestine's green (#268024 in its logo), a shade deeper (5.7:1 on the paper).
     Links are set in ink and underlined in it, and turn green on hover; it also marks focus and the
     controls' hover. --pencil marks the data and the notes on it: "hostage" in the answer grids (white
     letters on it, 6.1:1), the parts of a prompt that change. It is the same green for now, kept as its
     own colour so the data can be tuned apart from the links. Red is the Israel side in the tables,
     so it is never a link. --c-ham, the blue of the other side's captor in the thinking-time chart,
     is a second side, not a brand colour, so it stays blue. */
  --link: #1a7119; --link-soft: #e3f4e2;
  --pencil: #1a7119; --pencil-soft: #e3f4e2;
  --pencil-some: #5fa95b;   /* the share bars (test 1's further checks): some answers "hostage", not all; a step lighter than --pencil (2.9:1 on the sheet) */
  /* the word-mix bars (test 1's company tables): "hostage" is --pencil; the other words in greys apart in
     lightness (dataviz validator: detainee against the green, deutan ΔE 13.8 light, 21.4 dark) */
  --w-det: #767b85; --w-cap: #b4b8bf; --w-pri: #92969e;
  --mark: #b8321c; --mark-soft: #f8e5e0; --fact: #6b1409;
  --amber: #8a5a00; --amber-soft: #f6ecd6;
  --sage: #2f6e48; --sage-soft: #e1efe6;
  --c-isr: #b8321c; --c-ham: #2447b5;
  --art: rgb(23 25 30 / 0.1);   /* the drawing behind a masthead: ink, barely there */
  /* news value 1 to 5: a warm ramp with a break in it, as in a newsroom. 5 (the front-page lead) is
     a deep red, by far the strongest step; 4 (front page) a lighter orange, so the jump from 4 to 5
     does the work; 3 and below (inside, brief, not run) pale sand tints that recede. Built in OKLCH:
     lightness monotone, steps >= 0.06 apart (dataviz validator, --ordinal); 1 sits almost on the
     page, so it also gets an outline. Numbers on 4 and 5 are white in light mode and dark in dark
     mode; on 1 to 3 they are a muted ink, as white would vanish on the pale tints. */
  --v1: #fefaf3; --v2: #f4e2c8; --v3: #e8caa3; --v4: #f4a06a; --v5: #b51f1a; --v1b: #ddd0b8;
  --v1t: #9a8a6e; --v2t: #85704f; --v3t: #715a3a; --v4t: #ffffff; --v5t: #ffffff;
  --display: "Source Serif 4", "Iowan Old Style", "Charter", Georgia, serif;
  --body: "Source Serif 4", "Iowan Old Style", "Charter", Georgia, serif;
  --ui: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: "Source Code Pro", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* The scale: seven sizes from the classic one (12, 14, 16, 18, 24, 36, 60), each with its line height, a
     multiple of 4px. The top three are smaller on a phone (20, 28, 36). The only sizes outside it are the
     letters in answer squares too small to hold 12px, which are sized to their square. */
  --t-title: clamp(2.25rem, 1.375rem + 3.75vw, 3.75rem); --l-title: 1.0667;   /* 60/64  a page's title */
  --t-head: clamp(1.75rem, 1.5rem + 1.07vw, 2.25rem); --l-head: 1.1111;        /* 36/40  a section's headline */
  --t-sub: clamp(1.25rem, 1.125rem + 0.55vw, 1.5rem); --l-sub: 1.3333;         /* 24/32  a subheading; the opening finding */
  --t-read: 1.125rem; --l-read: 1.5556;                                        /* 18/28  text to read: prose, findings, quotations */
  --t-data: 1rem; --l-data: 1.5;                                               /* 16/24  tables, charts, controls */
  --t-note: 0.875rem; --l-note: 1.4286;                                        /* 14/20  notes, captions, table headings */
  --t-mark: 0.75rem; --l-mark: 1.3333;                                         /* 12/16  tags, axis ticks, the letters in answer squares */
  --l-tight: 1.25;     /* a label or control that stays on one line, where the line shouldn't add height */
  --l-mono: 1.7143;    /* the prompts, 14/24: fixed-width text wants more room between its lines */
  /* Space. --measure is the one width for text to read, about 68 characters a line. The three gaps say how
     closely two things belong: a thing and its note or key, two paragraphs, two blocks of a section. */
  --measure: 40rem; --gap-tie: 0.75rem; --gap-text: 1.5rem; --gap-block: 2rem; --pad-section: 6rem;
  color-scheme: light;
}
@media (max-width: 700px) { :root { --pad-section: 4rem; } }
/* The dark theme is the light one turned over, not a second design. The sheet is each theme's extreme
   (white there, near black here) and the paper a step in from it, so an exhibit, the menu bar and the
   footer sit deeper than the page in the dark as they sit brighter than it in the light. Its greys are
   neutral, with the paper's own faint tint, not blue. --recess is the step past the paper, away from
   the sheet (a band of totals, a tab that isn't open). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #181916; --sheet: #0c0d0b; --ink: #ecede8; --muted: #a5a79f; --rule: #34362f; --recess: #22231f;
    --link: #7cbe78; --link-soft: #182917;
    --pencil: #7cbe78; --pencil-soft: #1e351d; --pencil-some: #4a8447; --w-det: #6b717d; --w-cap: #3f444d; --w-pri: #565b65; --mark: #ff8a72; --mark-soft: #3a1f1a; --fact: #c8352a;
    --amber: #e8b04a; --amber-soft: #352a14; --sage: #74c996; --sage-soft: #18301f;
    --c-isr: #e8644d; --c-ham: #6f88ea; --art: rgb(233 234 237 / 0.075);
    --v1: #22201c; --v2: #382f23; --v3: #503f2b; --v4: #9b4d24; --v5: #ff5146; --v1b: #4a4438;
    --v1t: #8b8579; --v2t: #a69a89; --v3t: #c2b29a; --v4t: #17191e; --v5t: #17191e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #181916; --sheet: #0c0d0b; --ink: #ecede8; --muted: #a5a79f; --rule: #34362f; --recess: #22231f;
  --link: #7cbe78; --link-soft: #182917;
  --pencil: #7cbe78; --pencil-soft: #1e351d; --pencil-some: #4a8447; --w-det: #6b717d; --w-cap: #3f444d; --w-pri: #565b65; --mark: #ff8a72; --mark-soft: #3a1f1a; --fact: #c8352a;
  --amber: #e8b04a; --amber-soft: #352a14; --sage: #74c996; --sage-soft: #18301f;
  --c-isr: #e8644d; --c-ham: #6f88ea; --art: rgb(233 234 237 / 0.075);
  --v1: #22201c; --v2: #382f23; --v3: #503f2b; --v4: #9b4d24; --v5: #ff5146; --v1b: #4a4438;
  --v1t: #8b8579; --v2t: #a69a89; --v3t: #c2b29a; --v4t: #17191e; --v5t: #17191e;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--t-read); line-height: var(--l-read); font-optical-sizing: auto;
  /* the page is at least as tall as the window, and <main> takes the room the content leaves, so the
     footer sits at the bottom of a short page (dvh: the window as it is, with a phone's bars shown) */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
main { flex: 1 0 auto; }
.wrap {
  max-width: 1040px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
/* The centre line. Text to read sits on it, one measure wide: the blocks of prose (.col), the subheadings
   and the lists of findings between the exhibits. Everything else in a section takes the wrap's full width. */
.col, section > .wrap > :is(h3, ul.found, ol.found, ul.books, pre.code) { width: 100%; max-width: var(--measure); margin-inline: auto; }
b, strong { font-weight: 600; }
/* links: ink, with a green underline; a link with a class of its own (the menu, the cards, the
   footer) keeps its own colours on hover */
a { color: var(--ink); text-decoration-color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:not([class]):hover { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; }
h1 { font-size: var(--t-title); line-height: var(--l-title); letter-spacing: -0.015em; }   /* large type is set a little closer */
h2 { font-size: var(--t-head); line-height: var(--l-head); letter-spacing: -0.01em; }
h3 { font-size: var(--t-sub); line-height: var(--l-sub); }
p { margin: 0; }
p, li, blockquote, figcaption { text-wrap: pretty; }   /* no word left alone on a paragraph's last line */
.stack { display: flex; flex-direction: column; gap: var(--gap-text); }
/* what belongs together sits together: the small label close over its heading, and a plain list close
   under the line that introduces it (no margin of its own, the usual indent) */
.stack > .eyebrow + :is(h1, h2, h3) { margin-top: calc(0.5rem - var(--gap-text)); }
.stack > :not(.eyebrow) + h3 { margin-top: 1rem; }
.stack > h3 + * { margin-top: calc(1rem - var(--gap-text)); }
.stack > :is(ul, ol):not([class]) { margin: calc(var(--gap-tie) - var(--gap-text)) 0 0; }
/* the small label over a heading or in a card: the interface face, in sentence case */
.eyebrow { font-family: var(--ui); font-size: var(--t-note); font-weight: 600; color: var(--muted); line-height: var(--l-note); }
a.eyebrow.home, .eyebrow a.home { color: var(--muted); text-decoration: none; }   /* the label links to the home page */
a.eyebrow.home:hover, .eyebrow a.home:hover { color: var(--ink); text-decoration: underline; }
.small { font-size: var(--t-data); color: var(--muted); line-height: var(--l-data); }
em.w { font-style: normal; font-family: var(--ui); font-weight: 600; font-size: 0.86em; padding: 0.05em 0.35em; background: var(--pencil-soft); color: var(--pencil); white-space: nowrap; }

/* the menu bar along the top of every page (layout.html); the page you are on is marked, in ink with a bar of ink under it */
.menubar { background: var(--sheet); border-bottom: 1px solid var(--rule); font-family: var(--ui); font-size: var(--t-data); }
.menubar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2rem; }   /* on the page's centre line */
.menubar a { display: inline-flex; align-items: center; min-height: 3.5rem; color: var(--muted); font-weight: 400; text-decoration: none; }
.menubar a:hover { color: var(--ink); text-decoration: underline; }
.menubar a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px var(--ink); }
/* The Tests menu: a button that opens a popover listing the tests (the browser's own popover, which
   closes on Escape or a click outside), placed under the button by CSS anchor positioning (core-end.js
   places it where that isn't supported). The button reads as current on a test's page, as the menu's
   links do on theirs. A test that is coming soon is listed but not linked. */
.mtests { display: inline-flex; }
.mt-btn { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 3.5rem; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 400; color: var(--muted); cursor: pointer; anchor-name: --tests; }
.mt-btn:hover, .mtests:has(:popover-open) .mt-btn { color: var(--ink); }
.mtests:has(a[aria-current="page"]) .mt-btn { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px var(--ink); }
.mt-btn svg { width: 0.7rem; height: 0.7rem; transition: rotate 0.15s ease; }
.mtests:has(:popover-open) .mt-btn svg { rotate: 180deg; }
.mt-menu { position-anchor: --tests; position-area: bottom span-right; position-try-fallbacks: flip-inline;
  inset: auto; margin: 0.25rem 0 0; padding: 0.5rem; min-width: 16rem; max-width: calc(100vw - 1rem);
  background: var(--sheet); color: var(--ink); border: 1px solid var(--ink);   /* an ink line, as it lies over the page with no shadow */
  font-family: var(--ui); font-size: var(--t-data); }
.mt-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.menubar .mt-menu a, .mt-soon { display: block; min-height: 0; padding: 0.75rem 1rem; line-height: var(--l-data); }
.menubar .mt-menu a { color: var(--ink); font-weight: 400; }
.menubar .mt-menu a:hover { background: var(--paper); text-decoration: none; }
.menubar .mt-menu a[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 var(--ink); }
.mt-soon { color: var(--muted); }
@media (max-width: 520px) {   /* phones: a step smaller and spread across the bar, so the items stay on one line */
  .menubar { font-size: var(--t-note); }
  .menubar .wrap { justify-content: space-between; gap: 0 0.5rem; }
  .menubar a, .mt-btn { min-height: 3rem; }
}
/* The masthead is the reading column: its wrap is one measure wide, so the logo, the title and the opening
   text share the column's two edges. The logo and the title each get a little more room under them. */
header.mast { padding-block: 4rem; border-bottom: 1px solid var(--rule); }
header.mast > .wrap { max-width: calc(var(--measure) + 2rem); }
header.mast .stack > .brand { margin-bottom: 0.5rem; }
header.mast .stack > h1 { margin-bottom: 0.5rem; }
header.mast .stack > h2 { margin-top: 1.5rem; }   /* a heading in the header: twice the room over it as under it, as it belongs to the text it introduces */
@media (max-width: 700px) { header.mast { padding-block: 2.5rem 3rem; } }
/* The balance behind the mastheads of test 1 and the home page (class "balance"): a mizan as a silhouette in flat shapes, its beam a
   few degrees off level against a dial (assets/mizan-balance.svg, 1200 × 730, drawn by balance.py). One SVG used as a mask,
   so it takes --art, a faint ink, in either theme. Faint enough for text to cross it, so where the page has no
   margin to spare (phones and tablets) it is drawn large behind the logo and the title and runs off the right
   edge, cut by about a third, so the crop reads as meant; on a wide screen it hangs in the margin right of the
   reading column, level with the title, and grows with the screen. Decoration only: no text, nothing to select. */
header.mast.balance { position: relative; isolation: isolate; }
header.mast.balance::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--art);
  --bw: clamp(17rem, 40vw + 4rem, 26rem);   /* phone 17–20rem, tablet 23–26rem */
  -webkit-mask: url(/assets/mizan-balance.svg) right calc(-0.32 * var(--bw)) top 1.75rem / var(--bw) auto no-repeat;
  mask: url(/assets/mizan-balance.svg) right calc(-0.32 * var(--bw)) top 1.75rem / var(--bw) auto no-repeat;
}
@media (min-width: 701px) {
  /* tablets: level with the logo, its left pan reaching in over the title's end */
  header.mast.balance::before { -webkit-mask-position: right calc(-0.3 * var(--bw)) top 3rem; mask-position: right calc(-0.3 * var(--bw)) top 3rem; }
}
@media (min-width: 1100px) {
  /* the column's right edge is 20rem from the centre line: the drawing starts 2rem past it and grows with the
     screen, from 22rem to 46rem; where the margin is narrower than that it runs off the right edge, as on a phone */
  header.mast.balance::before { --bw: clamp(22rem, 60vw - 26rem, 46rem);
    -webkit-mask-position: left calc(50vw + 22rem) top 7.5rem; mask-position: left calc(50vw + 22rem) top 7.5rem;
    -webkit-mask-size: var(--bw) auto; mask-size: var(--bw) auto; }
}
@media (forced-colors: active) { header.mast.balance::before { display: none; } }
/* Tech for Palestine's logo, as published; its black wordmark sits on a light plate in dark mode */
.t4p { display: inline-flex; align-self: flex-start; margin-bottom: 0.5rem; }
.t4p img { display: block; height: 48px; width: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t4p img { background: #f5f6f3; padding: 6px 10px; box-sizing: content-box; } }
:root[data-theme="dark"] .t4p img { background: #f5f6f3; padding: 6px 10px; box-sizing: content-box; }
/* "What is Mizan?" (test 1's masthead): a short note on the project, opened on request */
details.about summary { width: fit-content; cursor: pointer; font-family: var(--ui); font-size: var(--t-data); font-weight: 600; }
/* the toggles that open a note, a table or a full answer read as links */
:is(details.about, details.tableview) > summary { color: var(--ink); text-decoration: underline 2px var(--link); text-underline-offset: 4px; }
:is(details.about, details.tableview) > summary:hover { color: var(--link); }
details.about p { margin-top: 0.75rem; padding: 1rem; background: var(--sheet); border: 1px solid var(--rule); font-size: var(--t-data); line-height: var(--l-data); }
/* the finding, set as the page's opening statement (no rule: a bar down the side reads as a quote) */
.verdict { font-size: var(--t-sub); line-height: var(--l-sub); font-weight: 400; }
/* the key figure: the page's one comparison across all its models, built from the page's data */
.keyfig { margin: 0; padding: 1.5rem; background: var(--sheet); border: 1px solid var(--rule); font-family: var(--ui); }
.keyfig figcaption { font-size: var(--t-note); color: var(--muted); margin-bottom: 1rem; line-height: var(--l-note); }
/* the rows share one grid: the label column is as wide as the longest name in the face the reader
   has (a fixed width let "Palestinian" run into its bar on phones), and every bar starts at the same place */
.keyfig .krs { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: 0.75rem 1rem; margin: 0; }
.keyfig .kr { grid-column: 1 / -1; display: grid; grid-template-columns: 6rem minmax(0, 1fr) 2.8rem; grid-template-columns: subgrid; gap: 0 1rem; align-items: center; font-size: var(--t-data); line-height: var(--l-tight); }
.keyfig .kr b { font-weight: 600; }
.keyfig .pc { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.keyfig .tr { height: 0.75rem; }   /* on the beam, below */
.keyfig .fl { height: 100%; background: var(--ink); }
.keyfig .kr.isr b { color: var(--mark); }   /* Israel's label and bar in the red the tables give the Israel column */
.keyfig .kr.isr .fl { background: var(--mark); }
.keyfig .kr.minor { color: var(--muted); }
.keyfig .kr.minor .fl { background: color-mix(in srgb, var(--muted) 55%, var(--sheet)); }   /* mixed, not see-through: the beam runs under it */
.keyfig .kr.minor b, .keyfig .kr.minor .pc { font-weight: 400; }
/* The beam. A bar on this site is a measure, not a progress bar: a solid block laid along a hairline
   that runs the bar's full length, with a stop at each end. The beam left bare is what the bar falls
   short by, and an empty bar is the beam alone. The key figure, the leaderboard, the share bars and the
   small score meters all lie on it. */
.keyfig .tr, .btr, .sbar, .meter:not(.gapm) {
  --beam: color-mix(in srgb, var(--muted) 62%, transparent);
  background: linear-gradient(var(--beam), var(--beam)) 0 50% / 100% 1px no-repeat,
    linear-gradient(var(--beam), var(--beam)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--beam), var(--beam)) 100% 0 / 1px 100% no-repeat; }
/* how the test was run: one quiet line, as it describes the method, not the result */
.method { margin: 0; font-family: var(--ui); font-size: var(--t-note); line-height: var(--l-note); color: var(--muted); }
/* A figure's note (what it counts, what it leaves out), set as its source line: the figure's own face,
   smaller and quieter than anything in it. In a frame (the key figure, an exhibit) it is the frame's
   last line, under a rule across the frame, so it reads as the foot of the figure, not the next
   paragraph; under a frameless figure (a table, a prompt) it sits close below it. */
.fnote { margin: 0; max-width: var(--measure); font-family: var(--ui); font-size: var(--t-note); line-height: var(--l-note); color: var(--muted); }
/* the foot of a frame: its rule runs edge to edge, with the same room over the note as under it */
.keyfig > .fnote { max-width: none; margin: 1.5rem -1.5rem -1.5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--rule); }
/* in an exhibit the rule runs edge to edge too, and the note keeps to one measure, so its lines don't run the exhibit's full width */
.exhibit > .fnote { max-width: none; margin: 0 calc(-1 * var(--xpad)); padding: 1rem max(var(--xpad), calc(100% + var(--xpad) - var(--measure))) 0 var(--xpad); border-top: 1px solid var(--rule); }
.exhibit > .fnote:last-child { margin-bottom: calc(-1 * var(--xpad)); padding-bottom: 1rem; }
.exhibit > .fnote + .fnote { margin-top: -1rem; padding-top: 0; border-top: 0; }   /* a note's second paragraph, under the same rule, 8px below the first */
/* under a frameless figure (a table, a prompt) the note is tied to it, closer than the next block or paragraph would be */
section > .wrap > :is(.grid-scroll, .asked) + .fnote { margin-top: calc(var(--gap-tie) - var(--gap-block)); }
.stack > :is(.grid-scroll, .asked) + .fnote { margin-top: calc(var(--gap-tie) - var(--gap-text)); }
nav.toc { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--ui); font-size: var(--t-data); line-height: var(--l-data); }

section { padding-block: var(--pad-section); border-bottom: 1px solid var(--rule); }
section > .wrap { display: flex; flex-direction: column; gap: var(--gap-block); }
/* a subheading between a section's blocks (Findings) belongs to what follows it: three times the room over it as under it */
section > .wrap > h3 { margin-top: 1rem; }
section > .wrap > h3 + * { margin-top: calc(1rem - var(--gap-block)); }
.exhibit { --xpad: clamp(1rem, 3vw, 2rem); background: var(--sheet); border: 1px solid var(--rule); padding: var(--xpad); display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.grid-scroll { overflow-x: auto; }
/* a chart's own small title, at the top of its box */
.exhibit > .xt { font-family: var(--ui); font-size: var(--t-read); font-weight: 600; line-height: var(--l-sub); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; }
@media (max-width: 820px) { .two { grid-template-columns: minmax(0, 1fr); } }
.panel { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.panel > h3 { font-family: var(--ui); font-size: var(--t-data); line-height: var(--l-data); font-weight: 600; }   /* a panel's own title */
.asked { font-family: var(--mono); font-size: var(--t-note); line-height: var(--l-mono); background: var(--sheet); border: 1px solid var(--rule); padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.asked .slot { background: var(--pencil-soft); color: var(--pencil); padding: 0 0.2em; }
/* The prompt picker (tests 1, 2 and 3): one ruled frame, read as a table with a single cell. The
   variable runs along the top (the person, or the report), the four sides down the left, and the cell
   where the chosen two meet holds the prompt. The options are the frame's own headings, parted by its
   hairlines, so nothing in it has a border of its own: the chosen heading takes the cell's ground and
   a bar of ink along its outer edge (over the frame's line there, not beside it), and the others stay
   on the page's ground. Every version of an item sits stacked in the cell, so the frame keeps one height. */
.pgrid { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); font-family: var(--ui); background: var(--paper); border: 1px solid var(--rule); }
.pg-corner { grid-column: 1; grid-row: 1; display: flex; align-items: flex-end; padding: 0.75rem 1rem;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: var(--t-note); font-weight: 600; color: var(--muted); }
/* an option is set in ink, as something to press, and lightens towards the cell's ground under the pointer; grey is kept
   for the labels, which are not */
.pg-top button, .pg-side button { min-height: 3rem; border: 0; background: var(--paper); color: var(--ink); font: inherit;
  font-size: var(--t-data); font-weight: 400; line-height: var(--l-tight); cursor: pointer; }
.pg-top button:hover, .pg-side button:hover { background-color: color-mix(in srgb, var(--sheet) 60%, var(--paper)); }
.pg-top button[aria-checked="true"], .pg-side button[aria-checked="true"] { background: var(--sheet); font-weight: 600; }
/* top: the headings side by side, as wide as each other; the lines between them are the gaps, where the rule colour under them shows */
.pg-top { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
.pg-top button { flex: 1 1 0; padding: 0.5rem 1rem; }
.pg-top button[aria-checked="true"] { box-shadow: 0 -1px var(--ink), inset 0 2px var(--ink); }
/* the chosen heading runs into the cell: its ground covers the line between them (the top headings only
   where they sit in one row, as on phones five reports take two) */
@media (min-width: 721px) { .pg-top button[aria-checked="true"] { box-shadow: 0 -1px var(--ink), inset 0 2px var(--ink), 0 1px var(--sheet); } }
/* left: the sides in their two groups. A group's name is a heading, not an option, and is set as one: small
   and grey, at the column's edge, with no cell of its own. Its options sit under it, set in from it, each in
   its own cell: the lines between a group's options start at the indent, and only the line between the two
   groups runs the column's full width. */
.pg-side { --in: 2rem; grid-column: 1; grid-row: 2; display: flex; flex-direction: column; border-right: 1px solid var(--rule); }
.pg-grp { padding: 0.75rem 1rem 0.25rem; font-size: var(--t-note); line-height: var(--l-note); color: var(--muted); white-space: nowrap; }
.pg-grp:not(:first-child) { border-top: 1px solid var(--rule); }
.pg-side button { padding: 0.5rem 1rem 0.5rem var(--in); text-align: left; }
.pg-side button + button { background-image: linear-gradient(var(--rule), var(--rule)); background-size: calc(100% - var(--in)) 1px; background-position: var(--in) 0; background-repeat: no-repeat; }
.pg-side button[aria-checked="true"] { box-shadow: -1px 0 var(--ink), inset 2px 0 var(--ink), 1px 0 var(--sheet); }
.pgrid button:focus-visible { outline: 2px solid var(--link); outline-offset: -3px; }
.pg-body { grid-column: 2; grid-row: 2; display: grid; min-width: 0; background: var(--sheet); }
.pg-body .asked { grid-area: 1 / 1; align-self: start; border: 0; background: none; padding: 1.5rem; transition: opacity 0.22s ease; }
.pg-body .asked[data-off] { opacity: 0; visibility: hidden; transition: opacity 0.16s ease, visibility 0s linear 0.16s; }
/* each part that changes is a fixed-width field, as wide as its longest version (in ch, as the
   prompt is monospaced), so every version wraps the same way and the words that stay put never
   move; a new value fades in and its field flashes briefly */
.pg-body .slot { display: inline-block; text-align: left; white-space: nowrap; box-sizing: content-box; vertical-align: baseline;
  border-bottom: 1px dashed color-mix(in srgb, var(--pencil) 45%, transparent); }
.pg-body .slot .v { display: inline-block; }
.pg-body .pg-nw { white-space: nowrap; }
.pg-body .slot.flash { animation: pg-flash 0.9s ease-out; }
.pg-body .slot .v.in { animation: pg-in 0.32s ease-out; }
@keyframes pg-flash { from { background: color-mix(in srgb, var(--pencil) 38%, var(--pencil-soft)); } to { background: var(--pencil-soft); } }
@keyframes pg-in { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pg-body .asked, .pg-body .asked[data-off] { transition: none; }
  .pg-body .slot.flash, .pg-body .slot .v.in { animation: none; }
}
@media (max-width: 720px) {
  .pgrid { grid-template-columns: 6.4rem minmax(0, 1fr); }
  .pg-side { --in: 1rem; }
  .pg-corner, .pg-grp { padding-left: 0.5rem; padding-right: 0.25rem; }
  .pg-top button { font-size: var(--t-note); padding: 0.25rem; min-height: 2.75rem; flex-basis: 30%; }   /* five reports: three, then two */
  .pg-side button { font-size: var(--t-note); padding: 0.5rem 0.5rem 0.5rem var(--in); min-height: 2.75rem; }
  .pg-grp { font-size: var(--t-mark); line-height: var(--l-mark); }
  .pg-body .asked { font-size: var(--t-mark); padding: 0.75rem; }
}
@media (max-width: 360px) {
  .pg-body .asked { padding: 0.5rem; }
}
ul.found { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
/* a quotation: text to read, set in from a rule; its opening quotation mark hangs in the indent, so every line starts on a letter */
blockquote { margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--rule); color: var(--ink); text-indent: -0.42em; }
blockquote cite { display: block; margin-top: 0.5rem; font-style: normal; font-family: var(--ui); font-size: var(--t-note); color: var(--muted); text-indent: 0; line-height: var(--l-note); }
.data th, .data td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-family: var(--ui); font-size: var(--t-data); line-height: var(--l-data); }
.data thead th { font-size: var(--t-note); color: var(--muted); font-weight: 600; line-height: var(--l-note); }
.data td.num, .data th.num { text-align: right; }
.data caption { caption-side: top; text-align: left; padding: 0 0.5rem 0.75rem; font-family: var(--ui); font-size: var(--t-read); font-weight: 600; color: var(--ink); line-height: var(--l-sub); }
.data tfoot th, .data tfoot td { border-top: 1px solid var(--muted); border-bottom: 0; white-space: nowrap; }   /* a totals row */
.data col.check { background: var(--pencil-soft); }   /* a further check's own columns, beside test 1's */
/* a group of rows gets a small grey label over it (the lab over its models). The group reads as one
   block: no rule under the label or between its rows, which sit close; the rule comes after its last row */
.data tr.grp > * { padding-top: 0.75rem; padding-bottom: 0; border-bottom: 0; }
.data tr.grp th { font-size: var(--t-note); line-height: var(--l-note); font-weight: 400; color: var(--muted); }
.data tr.grp + tr > *, .data tr.grp ~ tr:not(.grp) + tr:not(.grp) > * { padding-top: 0.25rem; }
.data tbody:has(tr.grp) tr:not(.grp):has(+ tr:not(.grp)) > * { padding-bottom: 0.25rem; border-bottom: 0; }
/* share tables (test 1's further checks, table.share): core.js draws each "6 of 12" cell as a bar of the
   same length, on the beam, filled with the share of answers that said "hostage": deep green when every
   answer did, a lighter green when some did, the bare beam when none did; a tick under it marks half. The numbers stay in
   the cell for screen readers and show in the tooltip on hover, tap or keyboard focus. */
.data.share td { vertical-align: middle; }
td.sv { cursor: default; }   /* a share cell anywhere: the further checks, and the company tables' totals (test 1) */
td.sv:focus { outline: none; }
.sbar { display: block; position: relative; width: 5.5rem; height: 0.75rem; transition: transform 0.12s ease; }
.sbar > .sclip { position: absolute; inset: 0; overflow: hidden; }
.sclip > span { display: block; height: 100%; background: var(--pencil-some); }
.sclip > span.all { background: var(--pencil); }
.sbar::after { content: ""; position: absolute; left: 50%; top: calc(100% + 2px); width: 1px; height: 3px;
  background: color-mix(in srgb, var(--muted) 60%, transparent); }
td.sv:hover .sbar, td.sv.on .sbar { transform: scale(1.06); }
td.sv.on .sbar, td.sv:focus-visible .sbar { outline: 2px solid var(--ink); outline-offset: 3px; }
.share-key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; margin: calc(var(--gap-tie) - var(--gap-block)) 0 0; padding: 0 0.5rem;
  font-family: var(--ui); font-size: var(--t-note); font-weight: 600; color: var(--ink); }
.share-key > span { display: inline-flex; align-items: center; gap: 0.5rem; }
.share-key .sbar { width: 1.7rem; }
.share-key .sbar::after { display: none; }
/* under a company table's answer key (test 1): the totals rows' share bars */
.share-key + .fnote { margin-top: calc(var(--gap-tie) - var(--gap-block)); }
.tip .tv { font-size: var(--t-data); white-space: nowrap; }
.tip .tv b { font-size: var(--t-read); }
.tip .tl { opacity: 0.78; }
.tip .tl.m { opacity: 1; font-weight: 600; margin-top: 0.1rem; }
/* test 1's company tables (table.cap.wmix): each cell is one bar, the answers by word, "hostage" first
   so it lines up across cells, then detainee, captive, prisoner and no single word (hatched), with 2px
   gaps; the bar is as long and as tall as the totals' share bars, with the same tick at half. Under it
   the letters of its words; the counts show in the tooltip (core.js). A model's answers, one square
   each, are in a row of their own (tr.xrow) under its row, opened by the button by its name. */
.mbar { display: block; position: relative; width: 5.5rem; height: 0.75rem; transition: transform 0.12s ease; }
.mclip { position: absolute; inset: 0; display: flex; gap: 2px; overflow: hidden; }
.mclip > span { min-width: 0; }
.mbar::after { content: ""; position: absolute; left: 50%; top: calc(100% + 2px); width: 1px; height: 3px;
  background: color-mix(in srgb, var(--muted) 60%, transparent); }
.w-hostage { background: var(--pencil); }
.w-detainee { background: var(--w-det); }
.w-captive { background: var(--w-cap); }
.w-prisoner { background: var(--w-pri); }
.w-other { background: repeating-linear-gradient(135deg, var(--muted) 0 1.5px, transparent 1.5px 4px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 55%, transparent); }
.mlet { display: block; margin-top: 0.5rem; font-size: var(--t-mark); font-weight: 600; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; line-height: var(--l-mark); }
td.sv:hover .mbar, td.sv.on .mbar { transform: scale(1.06); }
td.sv.on .mbar, td.sv:focus-visible .mbar { outline: 2px solid var(--ink); outline-offset: 3px; }
/* the bars sit at the top of their cells, level with the model's name, so opening the row (which trims the
   padding under them, below) doesn't move them */
.cap.wmix tbody tr.mrow > td { vertical-align: top; }
.cap.wmix tbody tr.mrow > th { padding-right: 2.5rem; cursor: pointer; }
/* the button sits inside the name's cell: positioned on wide screens; on phones the cell is sticky, which
   positions it already (relative there would undo the sticking and shift the name down by --hh) */
@media (min-width: 701px) { .cap.wmix tbody tr.mrow > th { position: relative; } }
.xbtn { position: absolute; right: 0.5rem; top: 0.75rem; width: 1.5rem; height: 1.5rem; padding: 0;   /* at the top of the cell, level with the name and as tall as its line */
  display: grid; place-items: center; border: 1px solid var(--rule); background: var(--sheet); color: var(--muted); cursor: pointer; }
.xbtn svg { width: 0.85rem; height: 0.85rem; transition: transform 0.15s ease; }
.xbtn:hover { color: var(--ink); border-color: var(--muted); }
.cap.wmix tr.mrow.open .xbtn { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.cap.wmix tr.mrow.open .xbtn svg { transform: rotate(180deg); }
.cap.wmix tr.mrow.open > * { border-bottom-color: transparent; }
.cap.wmix tr[hidden] { display: none; }
.cap.wmix tr.xrow > td:not(.hl) { background: color-mix(in srgb, var(--ink) 3.5%, var(--sheet)); }
.cap.wmix tr.xrow > td { padding-top: 0.25rem; padding-bottom: 0.75rem; }
.cap.wmix tr.mrow.open > td { padding-bottom: 0.25rem; }   /* the squares close under the bars' letters (about 9px) */
/* The squares: the doctor's grid, then the boy's, six to a row (--n, set by page.js). They are sized to their
   column: a row of them fills the cell's width, whatever the window's. Each grid is a size container, so
   100cqi is its width, and a square's side (--s) is a sixth of that less the gaps, rounded down to a whole
   pixel by round(), so every square starts on a device pixel and draws the same size. It stops growing at
   28px. A square's letter is half its side, up to the scale's smallest size, and there is none in a square
   under 16px (the clamp()'s middle term is below zero until then, far above the cap after), as on phones. */
.cap.wmix tr.xrow .xsqs { --g: 3px; display: grid; grid-template-columns: repeat(var(--n, 6), auto); gap: var(--g); justify-content: start; container-type: inline-size; }
.cap.wmix tr.xrow .xsqs + .xsqs { margin-top: calc(2 * var(--g)); }
.cap.wmix tr.xrow .sq { --s: 18px; width: var(--s); height: var(--s); font-size: clamp(0px, calc((var(--s) - 15px) * 99), min(var(--t-mark), calc(var(--s) / 2))); }
@media (max-width: 1060px) { .cap.wmix tr.xrow .sq { --s: 16px; } }   /* the sizes a browser without round() keeps: 18px, 16px, and 10px on phones */
.mkey .msw { display: inline-block; width: 1.1rem; height: 0.55rem; margin-right: 0.1rem; }
.mkey b { font-weight: 600; color: var(--ink); margin-right: 0.15rem; }
.mkey .mob { display: none; }   /* phones only: "detainee (or captive)", the outlined squares' other words */
@media (max-width: 700px) { .mkey .mob { display: inline; } [data-legend] .desk { display: none; } }
@media (max-width: 700px) {
  .cap.wmix tbody tr.mrow > th { padding-right: 2.25rem; }
  .xbtn { right: 0; top: 0.5rem; }
  .cap.wmix tr.xrow .sq { --s: 10px; border-width: 1px; }
  .cap.wmix tr.xrow .xsqs { --g: 2px; }
  .cap.wmix tr.xrow > td.xlab { display: none; }   /* the opened row's empty first cell: no line of its own on phones */
}
@supports (width: round(down, 1cqi, 1px)) {
  .cap.wmix tr.xrow .sq { --s: min(1.75rem, round(down, calc((100cqi - (var(--n, 6) - 1) * var(--g)) / var(--n, 6)), 1px)); }
}
/* A bar in a table fills its column as the squares do, and is exactly as long as a row of them, so a model's
   bar and the squares under it end at the same place. Its wrapper (.bfit, put round it by the scripts) is a
   size container as wide as the cell, like the squares' grid, and the bar's length is six of the squares'
   sides (the same sum) and their five gaps. Where there is no round(), a bar keeps its fixed length. */
.bfit { --g: 3px; display: block; container-type: inline-size; }
@media (max-width: 700px) { .bfit { --g: 2px; } }
@supports (width: round(down, 1cqi, 1px)) {
  .bfit > :is(.mbar, .sbar) { --s: min(1.75rem, round(down, calc((100cqi - (var(--n, 6) - 1) * var(--g)) / var(--n, 6)), 1px));
    width: calc(var(--n, 6) * var(--s) + (var(--n, 6) - 1) * var(--g)); }
}
/* Size containers add nothing to their columns' widths, so the table's columns are set, not left to its
   contents: the model column has a width of its own (room for the longest name and the button beside it; a
   name and its tag on one line on a wide window) and the four columns of answers share the rest equally. */
@media (min-width: 701px) {
  .cap.wmix { table-layout: fixed; }
  .cap.wmix thead tr:first-child > :first-child { width: 12.5rem; }
}
@media (min-width: 1061px) { .cap.wmix thead tr:first-child > :first-child { width: 14rem; } }
/* the totals under a company table: one block, set apart from the models' rows by a heavier rule above
   it (as a sum line) and a recessed band, labelled once ("“Hostage” totals") over its two rows, each
   captor and each side, with no rule between them */
.cap.wmix tfoot { background: var(--recess); }
.cap.wmix tfoot td.hl { background: transparent; }   /* one band: no Western-backed tint in the totals */
.cap.wmix tfoot tr:first-child > * { border-top: 2px solid var(--ink); padding-top: 0.75rem; padding-bottom: 0.5rem; }
.cap.wmix.byrow tfoot tr.bysides > * { border-top: 0; padding-top: 0.5rem; padding-bottom: 0.75rem; }   /* .byrow too: outranks the shared dashed rule, later in the file */
.cap.wmix tfoot th { font-weight: 600; }
/* each bar named over it: the captor in the first row, the side in the second */
.cap.wmix tfoot .side { margin-bottom: 0.25rem; }
.cap.wmix tfoot th, .cap.wmix tfoot td { vertical-align: bottom; }   /* each bar beside its row's label, under the block's label */
.cap.wmix tfoot .tlead { display: block; margin-bottom: 0.25rem; font-size: var(--t-note); font-weight: 600; color: var(--muted); }
@media (max-width: 700px) {
  .cap.wmix tfoot tr:first-child > td { border-top: 0; padding-top: 0.25rem; }
  .cap.wmix.byrow tfoot tr.bysides > :first-child { border-top: 0; padding-top: 0.5rem; }
  .cap.wmix.byrow tfoot tr.bysides > td { padding-top: 0.5rem; padding-bottom: 1rem; }   /* more space between the rows than from a name to its bar */
  /* the second row's heading has only a label for screen readers: out of the grid, so no empty line */
  .cap.wmix.byrow tfoot tr.bysides > th { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 560px) { .mbar { width: 4.2rem; } }
@media (prefers-reduced-motion: reduce) {
  .mbar, .xbtn svg { transition: none; }
  td.sv:hover .mbar, td.sv.on .mbar { transform: none; }
}
@media (max-width: 560px) {
  .sbar { width: 4.2rem; }
  .share-key { padding: 0 0.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sbar { transition: none; }
  td.sv:hover .sbar, td.sv.on .sbar { transform: none; }
}
.sub { display: flex; flex-direction: column; gap: var(--gap-block); padding-top: var(--gap-block); border-top: 1px dashed var(--rule); }

/* answer grids */
.cap th, .cap td { padding: 0.75rem 0.5rem; text-align: left; border-bottom: 1px solid var(--rule); font-family: var(--ui); font-size: var(--t-data); vertical-align: top; line-height: var(--l-data); }
.cap thead th { font-size: var(--t-note); color: var(--muted); font-weight: 600; vertical-align: bottom; line-height: var(--l-note); }
.cap tbody th { font-weight: 600; white-space: nowrap; }
.cell-tally { margin-top: 0.25rem; font-size: var(--t-note); color: var(--muted); }
.sq { width: 1.7rem; height: 1.7rem; display: inline-grid; place-items: center; font-family: var(--ui); font-weight: 600; font-size: var(--t-mark); line-height: 1; border: 1.5px solid transparent; padding: 0; }
button.sq { cursor: pointer; background: transparent; color: var(--ink); }
button.sq:hover { box-shadow: 0 0 0 2px var(--pencil-soft); }
.sq.hostage, .sq.hostage-plus { background: var(--pencil); color: var(--sheet); }   /* H* as H: only the star differs, as D* and D */
.sq.detainee, .sq.detainee-plus, .sq.captive, .sq.prisoner { border: 1.5px solid var(--muted); }
/* no single word: a quiet solid tile with its "?", and no outline. A model that won't choose can fill a whole
   column with these, so they are drawn to recede: together they make an even ground, and the answers that
   did choose a word stand out on it. No answer at all is an empty slot: a hairline round its dash. */
.sq.other { background: color-mix(in srgb, var(--muted) 22%, transparent); color: var(--muted); }
.sq.missing { border: 1px solid var(--rule); color: var(--muted); font-weight: 400; }
/* test 1 grids: one row per model, one column per captor, so more models only add rows */
.cap.byrow { width: 100%; }
.cap.byrow th.hl, .cap.byrow td.hl { background: var(--mark-soft); }
.cap.byrow thead th.hl { color: var(--mark); }
.cap.byrow tbody th { vertical-align: middle; }
.cap.byrow thead th { position: sticky; top: 0; z-index: 1; background: var(--sheet); border-bottom: 0; box-shadow: inset 0 -1px var(--rule); }
.cap.byrow thead th.hl { background: var(--mark-soft); }
/* row headings: the model, then its impartiality score as a number and a short meter */
.mname { display: block; white-space: normal; }
.mname .mn { white-space: nowrap; }
/* the model's category, beside its name, as a small square tag: the lab's current flagship (filled),
   its other premium models (outlined) and its legacy ones (dashed); its efficient, lower-cost ones have no tag */
.tier { display: inline-block; margin-left: 0.25rem; padding: 0 0.25rem; border: 1px solid transparent;
  font-size: var(--t-mark); font-weight: 600; line-height: var(--l-mark); vertical-align: 0.1em; white-space: nowrap; }
.tier.flag { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.tier.prem { border-color: var(--ink); color: var(--ink); }
.tier.legacy { border-color: var(--muted); border-style: dashed; color: var(--muted); font-weight: 400; }
.score { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.15rem; font-size: var(--t-note); font-weight: 400; color: var(--muted); white-space: nowrap; }
.score b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { width: 2.2rem; height: 5px; overflow: hidden; }   /* on the beam */
.meter.gapm { height: 4px; background: var(--rule); }
.meter > span { display: block; height: 100%; background: var(--muted); }
/* test 3's gap meter: centred on zero, filling right for a positive gap and left for a negative one */
.meter.gapm { position: relative; width: 3rem; overflow: visible; }
.meter.gapm > span { position: absolute; top: 0; }
.meter.gapm::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; margin-left: -0.5px; background: var(--muted); }
.colhead .lead, .colhead .name { display: block; }
.colhead .lead { font-size: var(--t-note); font-weight: 400; color: var(--muted); }
.colhead .name { font-size: var(--t-data); font-weight: 600; color: var(--ink); }
.colhead.hl .name { color: var(--mark); }
.cap.byrow .cell { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.cap.byrow .cell .cell-tally { margin-top: 0; }
.cap.byrow tfoot th, .cap.byrow tfoot td { border-bottom: 0; font-weight: 600; white-space: nowrap; }
.cap.byrow tfoot small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-note); }
/* the columns come in two groups: the sides backed by Western governments (Israel, Ukraine),
   shaded, then the other side in each war (Hamas, Russia), in the same order */
.cap.byrow thead tr.grp > * { position: static; background: none; box-shadow: none; padding-bottom: 0; vertical-align: bottom; }
.cap.byrow thead tr.grp th span { display: block; border-top: 2px solid var(--rule); padding-top: 0.25rem; margin-right: 0.5rem; font-size: var(--t-note); font-weight: 600; color: var(--muted); }
.cap.byrow thead tr.grp th.west span { border-top-color: var(--mark); color: var(--mark); }
.cap.byrow[data-group] thead tr.grp th span { border-top: 0; padding-top: 0; border-bottom: 2px solid var(--rule); padding-bottom: 0.25rem; }   /* test 1's tables: the side labels' bars under them */
.cap.byrow[data-group] thead tr.grp th.west span { border-bottom-color: var(--mark); }
/* the bars run the full width of the two columns under them: the cell's padding moves onto the label, so its
   words stay level with the column heads' */
.cap.byrow[data-group] thead tr.grp th { padding-left: 0; padding-right: 0; }
.cap.byrow[data-group] thead tr.grp th span { margin-right: 0; padding-left: 0.5rem; }
@media (max-width: 700px) { .cap.byrow[data-group] thead tr.grp th span { padding-left: 0.25rem; } }
.cap.byrow tfoot tr.bysides > * { border-top: 1px dashed var(--rule); }
.cap.byrow tfoot .side { display: block; font-size: var(--t-note); font-weight: 600; color: var(--muted); }
/* wide screens: squares and cell padding sized so the model column and four cells of six fit the card */
@media (min-width: 1061px) {
  .cap.byrow th, .cap.byrow td { padding-left: 0.5rem; padding-right: 0.5rem; }
  .cap.byrow .sq:not(.hsq) { width: 1.6rem; height: 1.6rem; font-size: var(--t-mark); }
}
/* phones: the model's name on its own line, its four cells below it */
@media (max-width: 700px) {
  .cap.byrow, .cap.byrow thead, .cap.byrow tbody, .cap.byrow tfoot { display: block; }
  .cap.byrow tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cap.byrow tr > :first-child { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0.15rem; }
  .cap.byrow .span2 { grid-column: span 2; }
  .cap.byrow thead tr.grp { padding-top: 0.5rem; }
  .cap.byrow tfoot tr.bysides > :first-child { border-top: 1px dashed var(--rule); padding-top: 0.5rem; }
  .cap.byrow tfoot tr.bysides > td { border-top: 0; }
  /* the whole heading row sticks; "Model" is plain from the names, so only screen readers get it */
  .cap.byrow thead { position: sticky; top: 0; z-index: 2; background: var(--sheet); box-shadow: 0 1px var(--rule); }
  .cap.byrow thead th { position: static; box-shadow: none; }
  .cap.byrow thead tr > :first-child { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cap.byrow th, .cap.byrow td { padding-left: 0.25rem; padding-right: 0.25rem; }
  .cap.byrow tbody th { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.15rem 0.5rem; }
  .cap.byrow tbody th .score { margin-left: auto; }
  /* the model's name and score stay in view below the headings while its row scrolls past
     (--hh is the headings' height, measured by the script) */
  .cap.byrow tbody th { position: sticky; top: var(--hh, 0px); z-index: 1; background: var(--sheet); padding-top: 0.5rem; }
  .cap.byrow .sq { width: 1.4rem; height: 1.4rem; font-size: 0.625rem; }
  .cap.byrow .sq.hsq { width: 1.3rem; height: 1.3rem; font-size: 0.625rem; }
}
@media (max-width: 380px) {
  .cap.byrow .hsqs { gap: 2px; }
  .cap.byrow .sq { width: 1.25rem; height: 1.25rem; font-size: 0.5625rem; }
  .cap.byrow .sq.hsq { width: 1.2rem; height: 1.2rem; font-size: 0.5625rem; }
}
@media (max-width: 340px) {
  .cap.byrow .sq, .cap.byrow .sq.hsq { width: 1.12rem; height: 1.12rem; font-size: 0.5625rem; }
}
/* a model's row reached from the leaderboard: below the sticky headings (--hh). It turns green as soon as
   its link is followed, so it slides into view already marked ("hit"); once the page has stopped
   scrolling it holds a moment and fades back ("fade"), and after that it looks like the others, with no
   mark left (page.js sets and clears both). A change of colour only, nothing moves, so it plays for
   readers who ask for less motion too. */
.cap.byrow tbody tr { scroll-margin-top: calc(var(--hh, 0px) + 0.75rem); }
.cap.byrow tbody tr.hit > * { background-color: color-mix(in srgb, var(--link) 22%, var(--sheet)); }
.cap.byrow tbody tr.fade > * { animation: rowhit 1.4s ease-out 0.5s backwards; }
@keyframes rowhit { from { background-color: color-mix(in srgb, var(--link) 22%, var(--sheet)); } }
/* test 1's impartiality leaderboard: the flagship and premium models, most impartial first, as on the video's board. One
   neutral hue, as the score is not about the word "hostage". Each bar lies on a beam that runs to 100, so the
   beam left bare is the distance from impartial. The rows are evenly spaced and close, so the bars read against each other as one chart.
   Each row links to the model's row in its table; the bars grow once, when the board comes into view. */
.board { list-style: none; margin: 0; padding: 0; font-family: var(--ui); }
.board li + li { margin-top: 1px; }
.brow { display: grid; grid-template-columns: 1.5rem minmax(0, 20rem) minmax(0, 1fr) 2.5rem; column-gap: 1rem; align-items: center;
  margin: 0 -0.5rem; padding: 0.25rem 0.5rem; color: var(--ink); text-decoration: none; }
.brow:hover { background: var(--link-soft); }
.brow:focus-visible { outline: 2px solid var(--link); outline-offset: 0; }
/* each row's place, by the name */
.bk { margin-right: -0.5rem; text-align: left; white-space: nowrap; font-size: var(--t-note); font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }   /* quiet: the order already says the rank */
.bk { position: relative; }
.bk .eq { position: absolute; right: 100%; margin-right: 0.1em; font-weight: 400; opacity: 0.75; }   /* a shared place, "=16": the sign hangs left, so its digits line up with the others */
.bn { min-width: 0; font-size: var(--t-data); line-height: var(--l-data); }
.bn .mn { font-weight: 600; white-space: nowrap; }
.brow:hover .mn { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bn .co { margin-left: 0.5rem; color: var(--muted); white-space: nowrap; }
.btr { display: block; height: 0.75rem; }
.bfl { display: block; height: 100%; width: var(--w); background: var(--ink);
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 35ms); }
.board:not(.on) .bfl { width: 0; }
.bfl { min-width: 3px; }   /* a score of 0 still shows a sliver of bar, so it reads as a score, not a bar yet to load */
.brow.legacy .bfl { background: color-mix(in srgb, var(--muted) 60%, var(--sheet)); }   /* legacy models set lighter, as in the video (mixed, not see-through: the beam runs under it) */
.bv { text-align: right; font-size: var(--t-read); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
/* narrow screens: the name and score on one line, the bar under them */
@media (max-width: 640px) {
  .brow { grid-template-columns: 1.15rem minmax(0, 1fr) auto; column-gap: 0.5rem; grid-template-areas: "k n v" ". b b"; row-gap: 0.25rem; padding-block: 0.5rem; }
  .bk { grid-area: k; margin-right: 0; } .bn { grid-area: n; } .bv { grid-area: v; } .btr { grid-area: b; height: 0.5rem; }
  .bk, .bn, .bv { align-self: baseline; }   /* rank, name and score on one baseline */
}
@media print { .board .bfl { width: var(--w); transition: none; } }
/* Test 1's answer comparison (test-01/page.js). Selecting a square opens a panel under its model's
   row with the answer next to its mirror (the same model, person and answer number, with the other side
   of the same war as captor). The selected square is ringed, its mirror ringed with a dashed line, and
   the row's other squares fade; the row is marked in the margin. The panel is a band of the page's
   ground across the table, with no border of its own, and the two cards lie on it in the table's column
   order. The selected answer's card has a bar of ink along its top and its mirror's a dashed one, as
   their squares are ringed in the table (the same thickness, so the two cards' contents line up). The
   words that differ between the two prompts are marked as in the prompt picker. The panel's header,
   with its buttons, stays in view below the table's headings while the panel scrolls past. */
.cap.byrow .sq { transition: opacity 0.2s ease; }
.cap.byrow:not(.wmix) tr.cmp-on .sq:not(.is-sel):not(.is-pair) { opacity: 0.25; }   /* test 1's tables (.wmix) keep every square at full strength */
.cap.byrow:not(.wmix) tr.cmp-on > th { box-shadow: inset 3px 0 var(--ink); }   /* test 1's tables (.wmix): no bar by the name */
.cap.byrow .sq.is-sel { outline: 2px solid var(--ink); outline-offset: 2px; }
.cap.byrow .sq.is-pair { outline: 2px dashed var(--ink); outline-offset: 2px; }
.cap.byrow tr.cmp-row > td { padding: 0.25rem 0 1.5rem; background: none; vertical-align: top; }
.cmp { display: flex; flex-direction: column; gap: 1rem; padding: 0 1rem 1rem;
  background: var(--paper); font-family: var(--ui); font-size: var(--t-data); color: var(--ink); }
.cmp.in { animation: cmp-in 0.2s ease-out; }
@keyframes cmp-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .cmp.in { animation: none; } }
.cmp-head { position: sticky; top: var(--sh, 0px); z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; margin: 0 -1rem; padding: 0.75rem 1rem 0.75rem; background: var(--paper); border-bottom: 1px solid var(--rule); }
.cmp-head h3 { font-family: var(--display); font-size: var(--t-sub); font-weight: 600; line-height: var(--l-sub); }
.cmp-sub { margin-top: 0.1rem; font-size: var(--t-note); color: var(--muted); }
.cmp-ctrls { display: flex; align-items: center; gap: 0.5rem; }
.cmp-nav { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; border: 1px solid var(--rule);
  background: var(--sheet); color: var(--ink); cursor: pointer; }
.cmp-nav svg { width: 15px; height: 15px; }
.cmp-nav:hover:not(:disabled) { border-color: var(--ink); }
.cmp-nav:disabled { opacity: 0.35; cursor: default; }
.cmp .close { min-height: 2.25rem; padding-inline: 1rem; background: var(--sheet); }
.cmp .close svg { display: none; width: 15px; height: 15px; }
.cmp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cmp-card { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; padding: 1rem 1rem 1rem; background: var(--sheet);
  border-top: 2px dashed var(--ink); }
.cmp-card.sel { border-top-style: solid; }
.cmp-a { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
/* side by side, the two cards share their rows (header, answer, label, prompt), so the prompts line up
   whatever the length of the answers above them */
@media (min-width: 821px) {
  .cmp-cards { grid-template-rows: repeat(4, auto); row-gap: 0; }
  .cmp-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0.5rem; align-content: start; }
  /* and the right-hand card's header mirrors the left's: the captor and its square on the right, the
     tag on the left (the rest of the card reads from the left) */
  .cmp-card:last-child .cmp-ch, .cmp-card:last-child .cmp-who { flex-direction: row-reverse; }
}
.cmp-ch { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cmp-who { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-size: var(--t-note); font-weight: 400; color: var(--muted); }
.cmp-tag { padding: 0.05rem 0.5rem; border: 1px solid var(--rule); font-size: var(--t-mark); font-weight: 600; color: var(--muted); white-space: nowrap; }
.cmp-card.sel .cmp-tag { border-color: var(--ink); color: var(--ink); }
.cmp-full { max-height: 16rem; overflow-y: auto; font-family: var(--body); font-size: var(--t-data); }
.cmp-full.none { color: var(--muted); }
.cmp-meta { font-size: var(--t-note); color: var(--muted); }
.cmp-label { margin-top: 0.25rem; font-size: var(--t-note); font-weight: 600; color: var(--muted); }
.cmp-prompt { font-size: var(--t-note); line-height: var(--l-mono); }
mark.cmp-diff { padding: 0 0.15em; background: var(--pencil-soft); color: var(--pencil); }
.cmp-foot { font-size: var(--t-note); line-height: var(--l-note); color: var(--muted); }
.cmp-foot kbd, .cmp kbd { display: inline-block; min-width: 1.4em; padding: 0 0.3em; border: 1px solid var(--rule); border-bottom-width: 2px;
  background: var(--sheet); font-family: var(--ui); font-size: var(--t-mark); line-height: var(--l-mark); text-align: center; color: var(--ink); }
@media (hover: none) { .cmp-keys { display: none; } }   /* no keyboard hint on touch screens */
.cmp-tabs { display: none; }
@media (max-width: 820px) {
  .cmp-cards { grid-template-columns: minmax(0, 1fr); }
  /* narrow screens: the two answers as tabs on top of the card they open, in the table's order, the
     selected answer's open first. The open tab is part of its card: the same sheet, with no line between
     them, and the card's bar along its own top instead (solid for the selected answer, dashed for its
     mirror); the other tab is shaded, and shows its answer's square, without the table's ring (the
     open tab doesn't: its card shows it just below) */
  .cmp-tabs { position: relative; z-index: 1; display: flex; gap: 1px; margin-bottom: -1rem; }   /* no gap to the card */
  .cmp-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; min-width: 0; min-height: 2.5rem;
    padding: 0.25rem 0.5rem; border: 0; border-top: 2px dashed transparent;
    background: var(--recess); color: var(--muted); font: inherit; font-size: var(--t-data); font-weight: 600; line-height: var(--l-tight); cursor: pointer; }
  .cmp-tab:hover { color: var(--ink); }
  .cmp-tab:focus-visible { outline-offset: -4px; }
  .cmp-tab[aria-selected="true"] { background: var(--sheet); color: var(--ink); font-weight: 600; border-top-color: var(--ink); }
  .cmp-tab.sel[aria-selected="true"] { border-top-style: solid; }
  .cmp-card { border-top: 0; }
  .cmp-tabs .cmp-tab .sq { flex: none; width: 1.25rem; height: 1.25rem; font-size: 0.5625rem; }
  .cmp-tab[aria-selected="true"] .sq { display: none; }
  .cmp-card:not(.on) { display: none; }
}
@media (max-width: 380px) { .cmp-tab { gap: 0.5rem; padding-inline: 0.5rem; } }
@media (max-width: 700px) {   /* phones: the panel is a block under the row's grid of cells */
  .cap.byrow tr.cmp-row { display: block; }
  .cap.byrow tr.cmp-row > td { display: block; padding: 0.5rem 0 1.25rem; }
  .cmp { padding: 0 0.75rem 0.75rem; }
  .cmp-head { flex-wrap: nowrap; margin: 0 -0.75rem; padding: 0.5rem 0.75rem; }   /* one line: the buttons beside the title */
  .cmp-titles { min-width: 0; flex: 1 1 auto; }
  .cmp-head h3 { font-size: var(--t-read); }
  .cmp-ctrls { flex: none; gap: 0.25rem; }
  .cmp .close { display: inline-grid; place-items: center; width: 2.2rem; padding: 0; }
  .cmp .close svg { display: block; }
  .cmp .close .cl-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cmp-card { padding: 0.75rem 0.75rem 1rem; }
  .cmp-prompt { font-size: var(--t-mark); padding: 0.5rem 0.75rem; }
}
@media (pointer: coarse) { .cmp-nav, .cmp .close { height: 2.75rem; min-height: 2.75rem; } .cmp-nav { width: 2.75rem; } }   /* finger-sized */
@media (pointer: coarse) and (max-width: 700px) { .cmp .close { width: 2.75rem; } }
/* text only screen readers get */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; font-family: var(--ui); font-size: var(--t-note); color: var(--muted); }
.legend > span { display: inline-flex; gap: 0.5rem; align-items: center; }
.legend .sq { width: 1.35rem; height: 1.35rem; font-size: 0.625rem; }
/* a grid's key stays at the bottom of the screen while its grid is in view, edge to edge of the card */
[data-legend], [data-hlegend] { position: sticky; bottom: 0; z-index: 3; background: var(--sheet); box-shadow: 0 -1px var(--rule);
  margin: 0 calc(-1 * var(--xpad)); padding: 0.75rem var(--xpad); }
.legend-note { margin: calc(var(--gap-tie) - 1.5rem) 0 0; font-family: var(--ui); font-size: var(--t-note); color: var(--muted); line-height: var(--l-note); }
/* test 2: headline labels */
.sq.hsq { width: 1.3rem; height: 1.3rem; font-size: 0.625rem; }
.hsqs { display: grid; grid-template-columns: repeat(3, auto); gap: 3px; justify-content: start; }
/* stated as fact goes further than leaving the accused out: a darker red than left out */
.sq.fact { background: var(--fact); color: #fff; }
.sq.first, .sq.last { border: 1.5px solid var(--muted); }
/* the accusation arrows are drawn, in the text colour, because arrow characters vary by device */
.sq.first::before, .sq.last::before { content: ""; width: 64%; height: 64%; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.sq.first { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 8H3.5M7.5 4 3.5 8l4 4' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
.sq.last { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9.5M8.5 4l4 4-4 4' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
.sq.absent { background: var(--mark); color: var(--sheet); }
.hcap th, .hcap td { padding: 0.5rem 0.5rem; }
@media (max-width: 640px) {
  .data th, .data td { padding-left: 0.25rem; padding-right: 0.25rem; font-size: var(--t-note); }
  .data tr.grp th { font-size: var(--t-mark); line-height: var(--l-mark); }
  .data caption { padding-left: 0.25rem; padding-right: 0.25rem; }
}
@media (max-width: 700px) {
  .cap.byrow thead tr { align-items: end; }
}
@media (max-width: 380px) {
  .data th, .data td { padding-left: 0.25rem; padding-right: 0.25rem; font-size: var(--t-mark); }
  .data caption { padding-left: 0.25rem; padding-right: 0.25rem; }
  .data thead th { font-size: var(--t-mark); }
}
ul.labels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: var(--t-data); }
ul.labels li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.5rem; align-items: start; }
ul.labels .sq { margin-top: 0.25rem; }
section.divider { background: var(--sheet); border-top: 4px solid var(--ink); }
.test-tag { color: var(--ink); }
.also { font-family: var(--ui); font-size: var(--t-note); color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; line-height: var(--l-note); }
/* the home page's test cards: two share the reading column; with a third they reach out equally past both its edges */
nav.tests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
nav.tests:has(> :nth-child(3)) { --w: min(62rem, 100vw - 2rem); grid-template-columns: repeat(3, minmax(0, 1fr)); width: var(--w); margin-inline: calc((100% - var(--w)) / 2); }
@media (max-width: 760px) { nav.tests, nav.tests:has(> :nth-child(3)) { grid-template-columns: minmax(0, 1fr); width: auto; margin-inline: 0; } }
a.testcard { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: var(--sheet); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
a.testcard:hover { border-color: var(--link); }
a.testcard.current { border-color: var(--ink); border-width: 1.5px; }
a.testcard.current b { text-decoration: none; }
a.testcard b { font-family: var(--display); font-size: var(--t-sub); font-weight: 600; text-decoration: underline 2px var(--link); text-underline-offset: 4px; line-height: var(--l-sub); }
a.testcard:hover b { color: var(--link); }
a.testcard span:last-child { font-family: var(--ui); font-size: var(--t-data); color: var(--muted); line-height: var(--l-data); }

/* test 3: news value squares, 1 (lightest) to 5 (darkest), each with its number */
.sq.nsq { width: 1.3rem; height: 1.3rem; font-size: 0.625rem; }
.sq.v1 { background: var(--v1); color: var(--v1t); box-shadow: inset 0 0 0 1px var(--v1b); } .sq.v2 { background: var(--v2); color: var(--v2t); }
.sq.v3 { background: var(--v3); color: var(--v3t); } .sq.v4 { background: var(--v4); color: var(--v4t); }
.sq.v5 { background: var(--v5); color: var(--v5t); }
ul.labels.scale .sq { width: 1.6rem; height: 1.6rem; font-size: var(--t-mark); margin-top: 0.1rem; }
ul.labels.scale li { grid-template-columns: 1.6rem minmax(0, 1fr); }
[data-nlegend] { position: sticky; bottom: 0; z-index: 3; background: var(--sheet); box-shadow: 0 -1px var(--rule);
  margin: 0 calc(-1 * var(--xpad)); padding: 0.75rem var(--xpad); }
.cell-tally b { color: var(--ink); font-weight: 600; }
.cell-tally > span { display: block; white-space: nowrap; }
/* all models at once: one bar per side, its answers split by rating, the 5s first so they line up */
.sb { display: flex; flex-direction: column; gap: 0.5rem; font-family: var(--ui); }
.sb .row { display: grid; grid-template-columns: 10rem minmax(0, 1fr) 3.2rem; gap: 0.75rem; align-items: center; }
.sb .who b { display: block; font-size: var(--t-data); font-weight: 600; line-height: var(--l-tight); }
.sb .who small { display: block; font-size: var(--t-note); color: var(--muted); line-height: var(--l-note); }
.sb .bar { display: flex; gap: 2px; height: 2rem; }
.sb .seg { display: grid; place-items: center; min-width: 0; overflow: hidden; font-size: var(--t-note); font-weight: 600; font-variant-numeric: tabular-nums; cursor: default; }
.sb .seg.v3 { background: var(--v3); color: var(--v3t); } .sb .seg.v4 { background: var(--v4); color: var(--v4t); }
.sb .seg.v5 { background: var(--v5); color: var(--v5t); } .sb .seg.v2 { background: var(--v2); color: var(--v2t); }
.sb .seg.v1 { background: var(--v1); color: var(--v1t); box-shadow: inset 0 0 0 1px var(--v1b); }
/* bars lined up on the front-page lead (leadBar): 4 and lower to the left of the line, 5 to the right */
.sb .bar.dv { position: relative; display: flex; gap: 0; }
.sb .bar.dv .side { display: flex; gap: 2px; min-width: 0; }
.sb .bar.dv .side.l { justify-content: flex-end; padding-right: 2px; }
.sb .bar.dv .side.r { justify-content: flex-start; padding-left: 2px; }
.sb .bar.dv .axis { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); }
.sb .dvhead { position: relative; height: 1.1em; }
.sb .dvhead span { position: absolute; top: 0; white-space: nowrap; }
.sb .dvhead .l { padding-right: 0.5rem; } .sb .dvhead .r { padding-left: 0.5rem; }
.sb .dvhead .l::before { content: "◂ "; } .sb .dvhead .r::after { content: " ▸"; }
/* on this page the Western-backed columns are tinted grey, not pink, so the shading doesn't
   compete with the red and orange of the ratings */
.cap.byrow:is([data-ngroup], [data-ogroup], [data-qgroup]) :is(th.hl, td.hl), .cap.byrow:is([data-ngroup], [data-ogroup], [data-qgroup]) thead th.hl { background: var(--paper); }
.cap.byrow:is([data-ngroup], [data-ogroup], [data-qgroup]) .colhead.hl .name, .cap.byrow:is([data-ngroup], [data-ogroup], [data-qgroup]) thead th.hl { color: var(--ink); }
.cap.byrow:is([data-ngroup], [data-ogroup], [data-qgroup]) thead tr.grp th.west span { border-top-color: var(--ink); color: var(--ink); }
.sb .avg { text-align: right; font-size: var(--t-read); font-weight: 600; font-variant-numeric: tabular-nums; }
.sb .head { font-size: var(--t-note); color: var(--muted); }
.sb .head .avg { font-size: var(--t-note); font-weight: 600; line-height: var(--l-tight); }
@media (max-width: 560px) {
  .sb .row { grid-template-columns: 6.6rem minmax(0, 1fr) 2.6rem; gap: 0.5rem; }
  .sb .who b { font-size: var(--t-note); }
}
table.data td.top { font-weight: 600; }
/* named outlets: one small panel of bars per editor, all on the same scale */
.multi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
@media (max-width: 820px) { .multi { grid-template-columns: minmax(0, 1fr); } }
.multi h3 { font-family: var(--ui); font-size: var(--t-data); font-weight: 600; margin-bottom: 0.5rem; }
.multi h3 small { font-weight: 400; color: var(--muted); font-size: var(--t-note); }
.multi .sb .row { grid-template-columns: 4.6rem minmax(0, 1fr) 2.6rem; gap: 0.5rem; }
.multi .sb .bar { height: 1.6rem; }
.multi .sb .avg { font-size: var(--t-data); }
table.data td.lead2 { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* named outlets: tabs to switch the model-by-model grids between editors, drawn as the prompt picker's
   headings are: one ruled strip (the lines are its gaps), the open tab on the sheet with a bar of ink along its top */
.otabs { display: inline-flex; flex-wrap: wrap; gap: 1px; padding: 1px; background: var(--rule); align-self: flex-start; }
.otabs button { flex: 1 1 auto; font-family: var(--ui); font-size: var(--t-data); font-weight: 600; min-height: 2.5rem; padding: 0.25rem 1rem; border: 0; background: var(--paper); color: var(--muted); cursor: pointer; }
.otabs button:hover { color: var(--ink); }
.otabs button[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 -1px var(--ink), inset 0 2px var(--ink); }
.otabs button:focus-visible { outline: 2px solid var(--link); outline-offset: -3px; }
/* same deaths, no one responsible: a heading per place, then the attack and the earthquake */
.sb .grp { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 1rem; padding-top: 0.75rem; font-size: var(--t-note); font-weight: 600; color: var(--muted); border-top: 1px solid var(--rule); }
.sb .grp:first-of-type { border-top: 0; }
.sb .grp .diff { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* dialog */
dialog.peek { width: min(960px, calc(100% - 32px)); max-height: calc(100% - 48px); margin: auto; padding: 0; border: 1px solid var(--ink); background: var(--sheet); color: var(--ink); overflow: auto; }   /* an ink line and the dimmed page behind it, no shadow */
dialog.peek::backdrop { background: rgb(12 13 11 / 0.6); }
.peek-in { padding: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 2rem; }
@media (max-width: 820px) { .peek-in { grid-template-columns: minmax(0, 1fr); } }
.peek-head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 0.5rem 1rem; align-items: flex-start; font-family: var(--ui); font-size: var(--t-data); padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.peek-head h3 { font-family: var(--display); font-size: var(--t-sub); font-weight: 600; margin: 0 0 0.25rem; }
.peek-head .meta { display: block; color: var(--muted); font-size: var(--t-note); margin-top: 0.25rem; }
.peek h4 { margin: 0 0 0.25rem; font-family: var(--ui); font-size: var(--t-note); color: var(--muted); font-weight: 600; }
.box { font-size: var(--t-data); line-height: var(--l-data); white-space: pre-wrap; overflow-wrap: anywhere; padding: 0.75rem 1rem; background: var(--paper); }
.box.mono { font-family: var(--mono); font-size: var(--t-note); line-height: var(--l-mono); }
.close { font-family: var(--ui); font-size: var(--t-note); background: transparent; border: 1px solid var(--rule); padding: 0.25rem 0.75rem; cursor: pointer; color: var(--ink); }
.close:hover { border-color: var(--ink); }

/* thinking-time chart: one row per model, a square mark per captor on a shared token axis */
.dumb { display: flex; flex-direction: column; gap: 0.15rem; font-family: var(--ui); }
.dumb .row { display: grid; grid-template-columns: 10rem minmax(0, 1fr) 3.5rem; gap: 1rem; align-items: center; min-height: 2rem; }
.dumb .group { font-size: var(--t-note); color: var(--muted); font-weight: 600; padding-top: 1rem; line-height: var(--l-note); }
.dumb .name { font-size: var(--t-data); font-weight: 600; }
.dumb .ratio { font-size: var(--t-note); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.track { position: relative; height: 2rem; }
.track .grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.track .bar { position: absolute; top: calc(50% - 2px); height: 4px; background: var(--c-isr); opacity: 0.35; }
.track .dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid var(--sheet); padding: 0; cursor: default; }
.track .dot::after { content: ""; position: absolute; inset: -8px; }
.track .dot.isr { background: var(--c-isr); }
.track .dot.ham { background: var(--c-ham); }
#thinking .track .dot { width: 26px; height: 18px; margin: -9px 0 0 -13px; box-shadow: 0 0 0 1px var(--rule); background: center / cover no-repeat; }
#thinking .track .dot.ham { background-image: var(--flag-ps); background-position: left center; }
#thinking .track .dot.isr { background-image: var(--flag-il); }
.axis { display: grid; grid-template-columns: 10rem minmax(0, 1fr) 3.5rem; gap: 1rem; font-size: var(--t-mark); color: var(--muted); }
.axis .ticks { position: relative; height: 1.2rem; }
.axis .ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.swatch { width: 12px; height: 12px; display: inline-block; }
.swatch.isr { background: var(--c-isr); }
.swatch.ham { background: var(--c-ham); }
/* test 1's reasoning chart: each mark is the captor's flag, in a flag's own shape, Israeli where Israel holds the
   person and Palestinian where Hamas does (set from its hoist, so the Palestinian flag's triangle stays in view) */
:root { --flag-il: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 160'%3E%3Crect width='220' height='160' fill='%23fff'/%3E%3Crect y='15' width='220' height='25' fill='%230038b8'/%3E%3Crect y='120' width='220' height='25' fill='%230038b8'/%3E%3Cg fill='none' stroke='%230038b8' stroke-width='5.5'%3E%3Cpath d='M110 47 138.6 96.5H81.4z'/%3E%3Cpath d='M110 113 81.4 63.5H138.6z'/%3E%3C/g%3E%3C/svg%3E"); --flag-ps: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 150'%3E%3Crect width='300' height='50' fill='%23000'/%3E%3Crect y='50' width='300' height='50' fill='%23fff'/%3E%3Crect y='100' width='300' height='50' fill='%23149954'/%3E%3Cpath d='M0 0 100 75 0 150z' fill='%23e4312b'/%3E%3C/svg%3E"); }
#thinking .swatch { width: 18px; height: 12px; box-shadow: 0 0 0 1px var(--rule); background: center / cover no-repeat; vertical-align: -1px; }
#thinking .swatch.ham { background-image: var(--flag-ps); }
#thinking .swatch.isr { background-image: var(--flag-il); }
@media (max-width: 560px) {
  .dumb .row, .axis { grid-template-columns: 6.25rem minmax(0, 1fr) 2.75rem; gap: 0.5rem; }
  .dumb .name { font-size: var(--t-note); line-height: var(--l-tight); }
  #thinking .track .dot { width: 20px; height: 14px; margin: -7px 0 0 -10px; border-width: 1px; }   /* smaller flags, as the axis is a third as long */
}
.tip { position: fixed; z-index: 10; pointer-events: none; background: var(--ink); color: var(--sheet); font-family: var(--ui); font-size: var(--t-note); line-height: var(--l-note); padding: 0.5rem 0.75rem; max-width: 16rem; opacity: 0; transition: opacity .1s; }
.tip.on { opacity: 1; }
details.tableview summary { cursor: pointer; font-family: var(--ui); font-size: var(--t-data); }
details.tableview[open] summary { margin-bottom: 0.5rem; }

/* Kimi K2.6's reasoning (test 1): the runs drawn on one scale, each bar ending in its answer (the
   answer grids' marks), then the steps they quote; the bars take the thinking-time chart's colour for
   the captor */
.kr-note { margin: 0; font-family: var(--ui); font-size: var(--t-note); color: var(--muted); }
.kr-chart { display: flex; flex-direction: column; gap: 0.25rem; font-family: var(--ui); }
.kr-row { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.kr-lab { display: flex; flex-direction: column; font-size: var(--t-note); line-height: var(--l-note); }
.kr-lab b { font-weight: 600; }
.kr-lab > span { color: var(--muted); }
.kr-track { position: relative; height: 2.4rem; }
.kr-track .grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.kr-bar { position: absolute; left: 0; top: calc(50% - 4px); height: 8px; opacity: 0.45; }
.kr-row.ham .kr-bar { background: var(--c-ham); }
.kr-row.isr .kr-bar { background: var(--c-isr); }
.kr-ans { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.sq.kr-ans { width: 1.55rem; height: 1.55rem; font-size: var(--t-mark); }
.sq.kr-ans:not(.hostage) { background: var(--sheet); }
.sq.kr-ans.other { background: color-mix(in srgb, var(--muted) 22%, var(--sheet)); }
.kr-tk { position: absolute; top: 50%; transform: translateY(-50%); font-size: var(--t-note); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kr-tkm { display: none; }
.kr-axis .kr-ticks { position: relative; height: 1.1rem; font-size: var(--t-mark); color: var(--muted); font-variant-numeric: tabular-nums; }
.kr-axis .kr-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.kr-axis .kr-ticks span:first-child { transform: none; }
.kr-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; max-width: var(--measure); padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.kr-grp { padding-top: 0.5rem; border-top: 3px solid; }
.kr-grp.ham { border-top-color: var(--c-ham); }
.kr-grp.isr { border-top-color: var(--c-isr); }
.kr-grp h3 { font-size: var(--t-read); }
.kr-grp p { margin-top: 0.15rem; font-family: var(--ui); font-size: var(--t-note); color: var(--muted); }
.kr-run { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.kr-out { display: flex; gap: 0.75rem; align-items: center; font-family: var(--ui); font-size: var(--t-note); line-height: var(--l-note); }
.kr-out .sq { flex: none; width: 1.75rem; height: 1.75rem; font-size: var(--t-mark); }
.kr-out b { display: block; font-size: var(--t-data); font-weight: 600; }
.kr-out span { color: var(--muted); }
ol.kr-steps { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
ol.kr-steps li::marker { font-family: var(--ui); font-size: var(--t-note); font-weight: 600; color: var(--muted); }
.kr-sl { display: block; font-family: var(--ui); font-size: var(--t-note); font-weight: 600; line-height: var(--l-note); }
ol.kr-steps q { display: block; margin-top: 0.25rem; font-style: italic; font-size: var(--t-data); line-height: var(--l-data); }
.kr-read { margin-top: auto; align-self: flex-start; min-height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--ui); font-size: var(--t-data); color: var(--ink); text-decoration: underline 2px var(--link); text-underline-offset: 4px; }
.kr-read:hover { color: var(--link); }
@media (min-width: 900px) {
  .kr-cols { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; }
  .kr-grp { grid-row: 1; grid-column: var(--col) / span var(--span); }
  .kr-run { grid-row: 2; grid-column: var(--col); }
}
@media (max-width: 640px) {
  .kr-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kr-lab { flex-direction: row; flex-wrap: wrap; column-gap: 0.3em; }
  .kr-lab b::after { content: ","; }
  .kr-tk { display: none; }
  .kr-tkm { display: inline; }
  .sq.kr-ans { width: 1.35rem; height: 1.35rem; font-size: 0.625rem; }
  .kr-axis > span:first-child { display: none; }
}
/* the full reasoning, in the dialog: one column to read down, its header (and Close) kept in view */
dialog.peek.read { --dpad: clamp(1rem, 4vw, 2rem); width: min(calc(var(--measure) + 2 * var(--dpad) + 1.5rem), calc(100% - 32px)); overscroll-behavior: contain; }   /* its reasoning one measure wide */
dialog.peek.read .peek-in { display: block; padding: 0 0 var(--dpad); }
dialog.peek.read .peek-head { position: sticky; top: 0; z-index: 1; background: var(--sheet); padding: 1.5rem var(--dpad) 1rem; }
.kr-body { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem var(--dpad) 0; }
.kr-text { font-size: var(--t-read); line-height: var(--l-read); white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 1.5rem; border-left: 2px solid var(--rule); }

/* methodology page: numbered steps, request fields and the counting code */
ol.found { margin: 0; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.data code { font-family: var(--mono); font-size: var(--t-note); }
/* wide reference tables keep their columns and scroll inside their box on phones */
table.data.wide { min-width: 46rem; }
pre.code { margin: 0; padding: 1rem; background: var(--sheet); border: 1px solid var(--rule); overflow-x: auto; font-family: var(--mono); font-size: var(--t-note); line-height: var(--l-mono); color: var(--ink); }
/* Tech for Palestine's logo at the top of the masthead: its light version on the light page, its
   dark version (white lettering) on the dark page, switched like the colours above */
.brand { display: inline-flex; align-self: flex-start; }
.brand img { display: block; height: 36px; width: auto; }
.brand .on-dark { display: none; }
@media (max-width: 600px) { .brand img { height: 30px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .on-light { display: none; }
  :root:not([data-theme="light"]) .brand .on-dark { display: block; }
}
:root[data-theme="dark"] .brand .on-light { display: none; }
:root[data-theme="dark"] .brand .on-dark { display: block; }
/* The about page: no rules between its parts, which run on as one text */
header.mast.plain, section.plain { border-bottom: 0; }
header.mast.plain { padding-bottom: 1.5rem; }
section.plain { padding-block: 2.5rem; }
/* The books behind the tests, as their covers, each linking to its publisher's page. The cover sits on
   the page like a book on a table (square corners, a soft shadow); title and author under it. */
.books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 12.5rem)); gap: 2rem 2.5rem; }
.book { display: flex; flex-direction: column; gap: 0.25rem; color: var(--ink); text-decoration: none; }
.book img { display: block; width: 100%; height: auto; margin-bottom: 0.5rem;
  box-shadow: 0 1px 2px rgba(15, 18, 25, 0.18), 0 10px 24px -8px rgba(15, 18, 25, 0.35);
  outline: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); outline-offset: -1px; }   /* a dark cover keeps its edge on the dark theme */
.book .bt { font-size: var(--t-data); line-height: var(--l-data); }
.book .bt i { font-style: italic; }
.book .ba { font-family: var(--ui); font-size: var(--t-note); color: var(--muted); }
.book:hover .bt { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.book:focus-visible { outline-offset: 6px; }
@media (max-width: 480px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; } }
/* The about page's contact address, written out rather than linked, in the display face. One click
   selects all of it, for copying. */
.address { font-family: var(--display); font-size: var(--t-sub); font-weight: 400;
  line-height: var(--l-sub); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
/* A page's own note (how its answers were collected), after its last section, in small print */
.pagenote { padding-block: 3rem; }
.pagenote .wrap > * { max-width: var(--measure); margin-inline: auto; }   /* on the centre line, as the text is */
.pagenote p { font-family: var(--ui); font-size: var(--t-note); line-height: var(--l-mono); color: var(--muted); }   /* small print that runs on: more room between its lines than a one-line note has */
.pagenote b { color: var(--ink); font-weight: 600; }
.pagenote p + p { margin-top: 0.75rem; }
/* a list in the page's note (test 1: each model's reasoning effort), in the note's own small type */
.pagenote ul { margin: 0.5rem auto 0; padding-left: 1rem; display: flex; flex-direction: column; gap: 0.25rem;
  font-family: var(--ui); font-size: var(--t-note); line-height: var(--l-mono); color: var(--muted); }
/* The site footer, the same on every page. It sits on the sheet colour with a rule above it, as the
   menu bar does at the top, so every page is framed by the same strip at both ends. The project and
   what it does, then two short columns (the tests, the project's pages) with sentence-case
   headings; under a rule, who runs it and a way back to the top. The current page is marked, as in the
   menu bar, and a page that is coming soon says so, as its test card does. */
footer.site { background: var(--sheet); border-top: 1px solid var(--rule); font-family: var(--ui); padding-block: 4rem 2rem; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.fbrand .brand img { height: 28px; }
.fname { margin-top: 1rem; font-family: var(--display); font-size: var(--t-sub); font-weight: 600; line-height: var(--l-sub); letter-spacing: -0.01em; }
.fname a { color: var(--ink); text-decoration: none; }
.fname a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.fbrand p:not(.fname) { margin-top: 0.25rem; max-width: 19rem; font-size: var(--t-note); line-height: var(--l-note); color: var(--muted); }
footer.site h2 { margin-bottom: 0.75rem; font-family: var(--ui); font-size: var(--t-note); font-weight: 600; letter-spacing: 0; line-height: var(--l-note); color: var(--ink); }
.fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.fcol li, .fcol p { font-size: var(--t-note); line-height: var(--l-note); color: var(--muted); }
.fcol li a { color: var(--muted); text-decoration: none; }
.fcol li a:hover { color: var(--ink); text-decoration: underline; }
.fcol li a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.fcol .soon { display: inline-block; padding: 0 0.5rem; border: 1px solid var(--rule); font-size: var(--t-mark); font-weight: 600; white-space: nowrap; vertical-align: 0.1em; }
.fbase { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: var(--t-note); line-height: var(--l-note); color: var(--muted); }
.fbase a { color: inherit; }
.fbase a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fbrand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .fgrid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  footer.site { padding-top: 2.25rem; }
}
/* Section navigator: a slim rail fixed to the right edge that shows where you are on the page (one
   square mark per section: passed, current, still to come; the current one a bar of ink) and opens into
   the list of sections, which takes an ink line round it, as it then lies over the page. It stays
   out of the way while the page's own list of sections, in the header, is on screen. Built by the
   script from that list, so each page gets its own. */
.sidenav { position: fixed; z-index: 5; top: 50%; right: max(12px, env(safe-area-inset-right, 0px)); transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: stretch; gap: 0.15rem; padding: 0.25rem;
  font-family: var(--ui); background: var(--sheet); border: 1px solid var(--rule);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s; }
.sidenav.away { opacity: 0; visibility: hidden; transform: translate(10px, -50%); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.sidenav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.sn-toggle { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.25rem; padding: 0.25rem;
  border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.sn-toggle svg { width: 14px; height: 14px; flex: none; transition: transform .2s ease; }
.sn-title { display: none; font-size: var(--t-note); font-weight: 600; }
.sidenav:not(.open) { cursor: pointer; }
.sidenav:not(.open) .sn-toggle { padding-block: 0.5rem; }
.sidenav a { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-width: 1.75rem; min-height: 1.75rem; color: var(--muted); text-decoration: none; font-size: var(--t-note); line-height: var(--l-tight); }
.sn-dot { flex: none; width: 6px; height: 6px; background: var(--rule); transition: height .2s ease, background-color .2s ease; }
.sidenav li.done .sn-dot { background: var(--muted); }
.sidenav a[aria-current] .sn-dot { height: 18px; background: var(--ink); }
.sidenav a[aria-current] { color: var(--ink); font-weight: 600; }
.sn-label { display: none; }
/* open: the labels beside the marks, and the heading in the button */
.sidenav.open { padding: 0.5rem 0.5rem 0.5rem; width: 14rem; border-color: var(--ink); max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.sidenav.open .sn-toggle { justify-content: space-between; padding: 0.25rem 0.25rem 0.25rem 0.5rem; }
.sidenav.open .sn-title { display: block; }
.sidenav.open .sn-toggle svg { transform: rotate(180deg); }
.sidenav.open a { justify-content: flex-start; padding: 0.25rem 0.5rem; }
.sidenav.open .sn-dot { margin-left: 0.15rem; }
.sidenav.open .sn-label { display: block; }
/* closed: each mark names its section on hover or focus */
@media (hover: hover) {
  .sn-toggle:hover, .sidenav a:hover { background: var(--paper); color: var(--ink); }
  .sidenav:not(.open) a:hover::after, .sidenav:not(.open) a:focus-visible::after { content: attr(data-label); position: absolute;
    right: calc(100% + 0.8rem); top: 50%; transform: translateY(-50%);
    background: var(--ink); color: var(--sheet); font-size: var(--t-note); font-weight: 600; white-space: nowrap; padding: 0.25rem 0.5rem; pointer-events: none; }
}
/* phones: flush with the right edge, half in the margin. Closed, it is only the arrow, so it covers
   no text; open, it stays open while the page scrolls (the script) */
@media (max-width: 700px) {
  .sidenav { right: 0; padding: 0.25rem 0.05rem; border-right: 0; }
  .sidenav a { min-width: 1.3rem; min-height: 1.5rem; }
  .sidenav:not(.open) ol { display: none; }
  .sidenav:not(.open) .sn-toggle { padding: 0.25rem 0; }
  .sidenav.open { width: min(15rem, calc(100vw - 3rem)); padding: 0.5rem 0.5rem 0.5rem 0.5rem; }
}
@media print { .sidenav { display: none; } }
/* links within the page glide to their section rather than jump (not for readers who ask for less
   motion), and stop a little above it */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:target, section[id] { scroll-margin-top: 0.75rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* test 1's leaderboard: a model whose line's score has changed beyond chance since its first version */

/* test 1's "Over time": one row per line of models, its versions' scores as bars, oldest first */
.steps { font-family: var(--ui); display: flex; flex-direction: column; }
.steps .trow { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 10rem; column-gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--rule); }
.steps .trow:first-child { border-top: 0; }
.steps .colhead { font-size: var(--t-note); color: var(--muted); padding: 0 0 0.25rem; align-items: end; }
.steps .tname { display: flex; flex-direction: column; line-height: var(--l-tight); }
.steps .tname .tlab { font-size: var(--t-note); color: var(--muted); font-weight: 600; }
.steps .tname b { font-size: var(--t-data); }
.steps .tname small, .steps .tchg small { font-size: var(--t-note); color: var(--muted); }
.steps .tchg { display: flex; flex-direction: column; line-height: var(--l-tight); }
.steps .tchg b { font-size: var(--t-data); font-variant-numeric: tabular-nums; }
.steps .tchg b span { font-weight: 400; }
.steps .vtrack { position: relative; display: flex; align-items: flex-start; padding-left: 2rem; }
.steps .vtrack .gl { position: absolute; left: 1.9rem; right: 0; border-top: 1px solid var(--rule); }
.steps .vtrack .gl.g100 { top: 22px; } .steps .vtrack .gl.g50 { top: 54px; }
.steps .vtrack .yl { position: absolute; left: 0; width: 1.5rem; text-align: right; font-size: var(--t-mark); color: var(--muted); line-height: 1; }
.steps .vtrack .yl.y100 { top: 18px; } .steps .vtrack .yl.y0 { top: 82px; }
.steps .vcol { flex: 0 1 4.9rem; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; color: var(--ink); text-decoration: none; }
.steps .vcol:hover .ver, .steps .vcol:focus-visible .ver { text-decoration: underline 2px var(--link); text-underline-offset: 3px; }
.steps .vwell { height: 86px; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; border-bottom: 1px solid var(--muted); box-sizing: border-box; }
.steps .vnum { font-weight: 600; font-size: var(--t-data); line-height: 1; font-variant-numeric: tabular-nums; background: var(--sheet); padding: 0 3px; position: relative; }
.steps .vbar { width: 26px; background: var(--muted); opacity: 0.5; flex: none; position: relative; }
.steps .vcol.cur .vbar { background: var(--ink); opacity: 1; }
.steps .ver { font-size: var(--t-note); font-weight: 600; margin-top: 0.25rem; white-space: nowrap; }
.steps .vcol.cur .ver { font-weight: 600; }
.steps .dt { font-size: var(--t-mark); color: var(--muted); white-space: nowrap; min-height: 1em; }
.tkey { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-family: var(--ui); font-size: var(--t-note); color: var(--muted); }
.tkey span { display: inline-flex; align-items: center; gap: 0.5rem; }
.tkey i { width: 9px; height: 12px; display: inline-block; }
.tkey i.cur { background: var(--ink); } .tkey i.old { background: var(--muted); opacity: 0.5; }
@media (max-width: 640px) {
  .steps .trow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.5rem; }
  .steps .trow > .vtrack { grid-column: 1 / -1; grid-row: 2; }
  .steps .tname { flex-direction: row; flex-wrap: wrap; gap: 0 0.5rem; align-items: baseline; }
  .steps .tname .tlab { flex-basis: 100%; }
  .steps .tchg { text-align: right; }
  .steps .colhead { display: none; }
  .steps .vcol { flex-basis: 3.3rem; }
  .steps .vbar { width: 20px; }
  .steps .ver { font-size: var(--t-mark); } .steps .dt { font-size: var(--t-mark); }
  .steps .vtrack { padding-left: 1.5rem; } .steps .vtrack .gl { left: 1.6rem; }
}
/* test 1's leaderboard: the switch that adds the legacy models. Its box is drawn here, square, as the
   browser's own has rounded corners: an outline that fills with ink and takes a tick when checked. */
.ltoggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--ui); font-size: var(--t-data); color: var(--ink); cursor: pointer; }
.ltoggle input { -webkit-appearance: none; appearance: none; flex: none; display: inline-grid; place-content: center; width: 1.05rem; height: 1.05rem; margin: 0;
  border: 1.5px solid var(--muted); background: var(--sheet); cursor: pointer; }
.ltoggle input::before { content: ""; width: 0.3rem; height: 0.58rem; margin-top: -0.14rem; border: solid var(--sheet); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.ltoggle:hover input { border-color: var(--ink); }
.ltoggle input:checked { background: var(--ink); border-color: var(--ink); }
.ltoggle input:checked::before { opacity: 1; }
@media (forced-colors: active) { .ltoggle input { -webkit-appearance: auto; appearance: auto; } .ltoggle input::before { display: none; } }
/* the board's rows coming and going (test-01/page.js, drawBoard): a row put in is tinted and fades back,
   its bar growing; a row taken out is tinted as it closes */
.brow.coming { animation: browin 2.2s ease-out; }
.brow.coming .bfl { transition-delay: 0.12s; }
@keyframes browin { 0%, 35% { background-color: color-mix(in srgb, var(--link) 20%, transparent); } }
.brow.going { background-color: color-mix(in srgb, var(--muted) 14%, transparent); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .brow.coming { animation: none; } }
