/* Witsenhausen leaderboard: one stylesheet for every page (copied to site/assets/site.css). */
@font-face { font-family: "Latin Modern Roman"; src: url("../vendor/latin-modern/LM-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Latin Modern Roman"; src: url("../vendor/latin-modern/LM-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Latin Modern Roman"; src: url("../vendor/latin-modern/LM-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Latin Modern Roman"; src: url("../vendor/latin-modern/LM-bold-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
:root {
  color-scheme: light;
  --page: #ffffff;
  --band: #f4f5f8;
  --ink: #111318;
  --ink-2: #3b404b;
  --muted: #676d7a;
  --rule: #d8dbe3;
  --link: #1b3f8f;
  --wash: rgba(17, 19, 24, 0.09);
  --s1: #2a78d6;   /* reported in a paper */
  --s2: #eb6834;   /* verified by the evaluator */
  --ref: #9aa0ae;
  --good: #006300;
  --serif: "Latin Modern Roman", "Latin Modern Roman 10", "CMU Serif", "Computer Modern Serif", "STIX Two Text", Cambria, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
/* Dark colours, used only when the reader picks dark with the button in the top bar (data-theme on <html>). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #151b2a;
  --band: #1c2335;
  --ink: #e9ecf3;
  --ink-2: #c0c7d8;
  --muted: #949cb1;
  --rule: #2e3750;
  --link: #a9c1ff;
  --wash: rgba(233, 236, 243, 0.14);
  --s1: #3987e5;
  --s2: #d95926;
  --ref: #5f6883;
  --good: #0ca30c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.5; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
[id] { scroll-margin-top: 16px; }
/* Latin Modern is a little lighter on screen than the KaTeX maths fonts; a hairline stroke evens the two out.
   Not in dark mode, where light text on a dark background already looks heavier. Bold text gets no stroke. */
body { -webkit-text-stroke: 0.15px currentColor; }
:root[data-theme="dark"] body { -webkit-text-stroke-width: 0; }
b, strong, h2, h3, .brand, .runin, .name, .cost, .tip .v, .pagehead h1,
pre, code, .katex, svg { -webkit-text-stroke: 0; }
.katex { font-size: 1em; }
.katex-display { margin: 0.75em 0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.prose { max-width: 43em; }
.prose p { margin: 0 0 0.85em; text-align: justify; hyphens: auto; }
.prose ul { margin: 0 0 0.85em; padding-left: 1.3em; }
.prose li { margin: 0 0 0.45em; }
.runin { font-weight: 700; }

/* ---------- top bar: site title and one link per page ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--page); padding: 4px 10px; border: 1px solid var(--rule); }
.skip:focus { left: 12px; }
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: baseline; gap: 6px 22px; padding-top: 14px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand:hover span { text-decoration: underline; }
/* the staircase mark before the site title, the same as the favicon */
.brand .logo { width: 1.25em; height: 1.25em; vertical-align: -0.28em; margin-right: 0.4em; }
.brand .logo .tile { fill: #151b2a; }
.brand .logo path { fill: none; stroke: #eb6834; stroke-width: 3; stroke-linecap: round; }
/* the dark page has the tile's own colour, so the tile gets a lighter fill and an outline */
:root[data-theme="dark"] .brand .logo .tile { fill: var(--band); stroke: var(--rule); stroke-width: 2; }
.top nav { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.top nav a { color: var(--ink-2); text-underline-offset: 6px; }
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; }
.top .tools { margin-left: auto; display: flex; align-items: baseline; gap: 6px 16px; }
.theme { color: var(--ink-2); background: none; border: 1px solid var(--rule); border-radius: 3px;
  padding: 4px 7px; cursor: pointer; display: inline-flex; align-items: center; align-self: center; }
.theme:hover { color: var(--ink); border-color: var(--ink-2); }
.theme svg { width: 15px; height: 15px; flex: none; }

/* ---------- home: title block and hero ---------- */
.title { padding: 46px 0 6px; }
.title h1 { font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.1; margin: 0 0 10px; }
.subtitle { font-style: italic; font-size: 1.3rem; line-height: 1.3; margin: 0 0 12px; color: var(--ink-2); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; padding: 30px 0 44px; align-items: start; }
/* the two buttons under the title of the home page */
.actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 20px 0 2px; }
.button { display: inline-block; padding: 7px 16px 8px; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); font-weight: 700; line-height: 1.3; -webkit-text-stroke: 0; }
.button:hover { text-decoration: none; background: var(--band); }
.button.primary { background: var(--ink); color: var(--page); }
.button.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
/* "hover over the plot": on the line of the plot's axis label, and only where there is a pointer that can hover */
.hint { margin: 0 0 -1.45em; text-align: right; font-size: 0.85rem; color: var(--muted); position: relative; pointer-events: none; }
@media (hover: none) { .hint { display: none; } }
/* the top of the leaderboard on the home page: one line per entry on a wide screen */
.toplist .tablehead { margin-top: 0; }
@media (min-width: 1000px) {
  #top-board > tbody > tr > td { white-space: nowrap; }
  #top-board > tbody > tr > td.ctrl { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
.claims { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.claims li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: baseline; }
.key { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.claims strong { font-weight: 700; }
.claims .sub { color: var(--muted); }
/* a disputed claim: drawn as a ring in the history chart and its legend */
.key.ring { background: transparent; box-shadow: inset 0 0 0 1.7px var(--s1); }

/* ---------- section pages ---------- */
.pagehead { padding: 42px 0 4px; }
.pagehead h1 { font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.2rem); line-height: 1.15; margin: 0 0 18px; }
/* section headings inside a page: about the size of LaTeX's section headings (1.35 times the text) */
h2.subhead { font-weight: 700; font-size: 1.35em; line-height: 1.25; margin: 40px 0 10px; }
.prose > h2.subhead:first-child { margin-top: 10px; }
.eq:target .katex-display { background: var(--band); border-radius: 3px; }

/* verification page: what happens to a submission, as numbered cards; commands; the formulas at the end */
ol.flow { list-style: none; counter-reset: flow; padding: 0; margin: 6px 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
ol.flow > li { counter-increment: flow; position: relative; background: var(--band); border-radius: 4px; padding: 14px 18px 16px 56px; }
ol.flow > li::before { content: counter(flow); position: absolute; left: 17px; top: 14px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--page); font-weight: 700; font-size: 0.95rem; line-height: 26px; text-align: center; -webkit-text-stroke: 0; }
ol.flow h3 { font-size: 1.05em; line-height: 1.3; margin: 1px 0 5px; }
ol.flow p { margin: 0; font-size: 0.95rem; line-height: 1.45; }
pre.cmd { margin: 4px 0 10px; max-width: 52rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.prose p.after { margin-top: 10px; text-align: left; }  /* long file names would stretch a justified line */
details.formulas { margin: 44px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
details.formulas > summary { font-weight: 700; font-size: 1.15em; }
details.formulas[open] > summary { margin-bottom: 0.9em; }
@media (max-width: 760px) { ol.flow { grid-template-columns: minmax(0, 1fr); } }

/* figures and captions */
figure { margin: 0; }
.cap { font-size: 0.93rem; line-height: 1.42; color: var(--ink-2); margin: 8px 0 0; max-width: 46em; }
.cap b { color: var(--ink); }
.cap.above { margin: 0 0 8px; }
.tikz { overflow-x: auto; padding: 6px 0 2px; }
.tikz svg { display: block; width: 100%; min-width: 660px; max-width: 900px; height: auto; margin: 0 auto; color: var(--ink); }
/* the block diagram is drawn twice: across the page, and top to bottom for a phone */
.tikz .narrow { display: none; }
.formats-example { margin-top: 20px; }  /* the example under the table of controller formats */
.tikz .narrow svg { min-width: 0; max-width: 360px; }
@media (max-width: 719px) { .tikz .wide { display: none; } .tikz .narrow { display: block; } }
.figgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 36px; }
.paneltitle { font-size: 0.95rem; margin: 0 0 2px; }

[hidden] { display: none !important; }
/* leaderboard: setting, headline numbers, evidence filter and evidence levels */
.controls { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; }
.controls select { font: inherit; color: var(--ink); background: var(--page); border: 1px solid var(--ink-2); border-radius: 3px; padding: 2px 6px; }
.scorebar { display: flex; flex-wrap: wrap; gap: 6px 40px; margin: 0 0 6px; color: var(--ink-2); }
.scorebar b { color: var(--ink); font-weight: 700; }
.tablehead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin: 36px 0 8px; }
.tablehead h2.subhead { margin: 0; }
.ticks { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ticks label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.ticks input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.ev { white-space: nowrap; }
.ev::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--muted); vertical-align: 0.02em; }
/* on the leaderboard an evidence level is a link to its evidence: underlined lightly, like a footnote */
a.ev { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.ev:hover { color: var(--link); text-decoration-color: currentColor; }
.ev.claimed::before { background: var(--s1); }
.ev.numerical::before { background: var(--s2); }
.ev.peer::before { background: var(--good); }
ul.evidence { list-style: none; padding-left: 0; }
/* a disputed claim: a ring, as in the history chart */
.ev.preprint::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.ev.disputed::before { background: transparent; box-shadow: inset 0 0 0 1.7px var(--s1); }
.idea { color: var(--muted); }  /* the plain name of a lower bound */
/* in the leaderboard tables, a link that leaves the site ends in an arrow (not underlined, not read aloud) */
#board a[href^="http"]::after, #bounds a[href^="http"]::after { content: "\2197"; content: "\2197" / "";
  display: inline-block; margin-left: 2px; font-size: 0.78em; color: var(--muted); text-decoration: none; }
ul.evidence .ev { font-weight: 700; }
details.more { margin: 0 0 0.85em; }
details.more > summary { cursor: pointer; color: var(--link); width: fit-content; }
details.more[open] > summary { margin-bottom: 0.6em; }
td.empty { color: var(--muted); text-align: center; padding: 18px 4px; }

/* booktabs tables */
.tablewrap { overflow-x: auto; }
table.bt { border-collapse: collapse; width: 100%; font-size: 0.95rem; border-top: 1.7px solid var(--ink); border-bottom: 1.7px solid var(--ink); }
table.bt th, table.bt td { text-align: left; padding: 8px 12px; vertical-align: top; }
table.bt th:first-child, table.bt td:first-child { padding-left: 4px; }
table.bt th:last-child, table.bt td:last-child { padding-right: 4px; }
table.bt thead th { font-weight: 400; border-bottom: 1px solid var(--ink); white-space: nowrap; vertical-align: bottom; }
table.bt tbody tr + tr > td { border-top: 1px solid var(--rule); }
table.bt td.num, table.bt th.num { text-align: right; white-space: nowrap; }
table.bt td.nowrap { white-space: nowrap; }
td .name { font-weight: 700; }
.cost { font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
/* values are left-aligned with their decimal points in line: the integer part fills a box as wide as the
   widest integer part in the column (site.js sets --ip on the table body) */
table.bt td.val { white-space: nowrap; }
.cost .ip { display: inline-block; min-width: var(--ip, 1ch); text-align: right; }
.tag { display: inline-block; font-size: 0.84rem; line-height: 1.3; padding: 0 7px 1px; border: 1px solid var(--muted); border-radius: 3px; color: var(--ink-2); white-space: nowrap; vertical-align: 1px; }
.tag.record { border-color: var(--s2); color: var(--ink); }
a.tag:hover { color: var(--link); border-color: var(--link); text-decoration: none; }
.tag.ai, .ai-note { cursor: help; }
.tag.ai { font-size: 0.625rem; padding: 0 4px; vertical-align: 2px; }  /* smaller than the other tags: a note on the name, not on the result */
/* "AI-assisted" inside a sentence (the home page): a dotted underline says the tooltip has more */
.ai-note { text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.btn { font: inherit; font-size: 0.9rem; color: var(--link); background: none; border: 1px solid var(--rule); border-radius: 3px; padding: 1px 9px 2px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--link); }
/* a leaderboard row opens its details when clicked; the arrow at its end turns while they are open */
tr.expandable { cursor: pointer; }
tr.expandable:hover, tr.expandable.open { background: var(--band); }
tr.disputed, tr.disputed .cost { color: var(--muted); }
button.rowtoggle { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; margin: -2px 0; border: 0; border-radius: 3px; background: none; color: var(--link); font: inherit; font-size: 0.9rem; white-space: nowrap; cursor: pointer; vertical-align: middle; }
.rowtoggle svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.rowtoggle path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rowtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
tr.expandable:hover .rowtoggle span, .rowtoggle:focus-visible span { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .rowtoggle svg { transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* On a wide screen every leaderboard row is one line: the controller's name gives way, ending in an
   ellipsis when it is too long (its tooltip and the details have it in full). */
@media (min-width: 1000px) {
  #board > tbody > tr:not(.detail) > td { white-space: nowrap; }
  #board > tbody > tr:not(.detail) > td.ctrl { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
table.bt tr.detail > td { background: var(--band); padding: 18px 16px 16px; }
.detailgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 30px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 16px; font-size: 0.92rem; margin: 0; align-content: start; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
table.mini { border-collapse: collapse; font-size: 0.92rem; border-top: 1.2px solid var(--ink); border-bottom: 1.2px solid var(--ink); }
table.mini th, table.mini td { padding: 3px 12px; text-align: right; white-space: nowrap; border: 0; }
table.mini th { font-weight: 400; border-bottom: 1px solid var(--ink); }

/* theory log */
.theory { list-style: none; margin: 0; padding: 0; border-top: 1.7px solid var(--ink); border-bottom: 1.7px solid var(--ink); }
.theory li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 18px; padding: 11px 4px; }
.theory li + li { border-top: 1px solid var(--rule); }
.theory .cite { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.theory .kind { font-size: 0.92rem; color: var(--ink-2); text-align: right; }

/* contribute */
.steps { margin: 0 0 24px; padding-left: 1.3em; max-width: 43em; }
.steps li { margin: 0 0 6px; }
pre { background: var(--band); border-radius: 3px; padding: 12px 14px; overflow-x: auto; font-size: 0.78rem; line-height: 1.5; margin: 0; }
pre.wrapped { white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: var(--mono); font-size: 0.86em; }
pre code { font-size: 1em; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 30px; align-items: start; }
.two > :only-child { grid-column: 1 / -1; max-width: 43em; }
.prehead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.prehead h2 { font-size: 1rem; font-weight: 700; margin: 0; }

footer { border-top: 1px solid var(--rule); margin-top: 44px; padding: 20px 0 40px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; gap: 6px 28px; flex-wrap: wrap; }

/* charts */
.chartbox { position: relative; }
.plot { position: relative; }
.ylab { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 2px; }
.xlab { font-size: 0.92rem; color: var(--ink-2); text-align: center; margin: 0; }
svg.chart { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--serif); }
svg.chart .grid line { stroke: var(--rule); stroke-width: 1; shape-rendering: crispEdges; }
svg.chart .axis line { stroke: var(--ink-2); stroke-width: 1; shape-rendering: crispEdges; }
svg.chart text { fill: var(--ink-2); font-size: 13px; }
svg.chart text.lbl { fill: var(--ink); font-size: 13.5px; paint-order: stroke; stroke: var(--page); stroke-width: 5px; stroke-linejoin: round; }
svg.chart .ref { stroke: var(--ref); stroke-width: 1; fill: none; }
svg.chart .refline { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 3; shape-rendering: crispEdges; }
svg.chart .series { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.chart .xhair { stroke: var(--ink-2); stroke-width: 1; opacity: 0.6; shape-rendering: crispEdges; }
svg.chart .dot { stroke: var(--page); stroke-width: 2; }
tr.detail svg.chart .dot { stroke: var(--band); }
svg.chart .hit { fill: transparent; }
svg.chart g.pt:focus { outline: none; }
svg.chart g.pt:focus .dot, svg.chart g.pt:hover .dot { stroke: var(--ink); }
svg.chart .dot.ring { stroke: var(--s1); stroke-width: 1.8; }
svg.chart g.pt:focus .dot.ring, svg.chart g.pt:hover .dot.ring { stroke: var(--ink); }
.tip { position: absolute; pointer-events: none; z-index: 5; background: var(--page); color: var(--ink); border: 1px solid var(--ink-2); border-radius: 3px; padding: 5px 9px; font-size: 0.88rem; line-height: 1.35; min-width: 150px; max-width: 290px; opacity: 0; }
.tip.on { opacity: 1; }
.tip .v { font-weight: 700; }
.tip .l { color: var(--ink-2); }
.tip .row { display: flex; align-items: baseline; gap: 8px; }
.tip .row i { display: inline-block; flex: none; width: 12px; height: 2px; transform: translateY(-4px); }
.legend { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 0.95rem; color: var(--ink-2); margin: 0 0 12px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero, .figgrid, .detailgrid, .two { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 30px; padding-top: 22px; }
  .theory li { grid-template-columns: 48px minmax(0, 1fr); }
  .theory .kind { grid-column: 2; text-align: left; }
  .prose p { text-align: left; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  /* title and theme button share the first line; the page links go below */
  .top .brand { order: 1; }
  .top .tools { order: 2; }
  .top nav { order: 3; width: 100%; }
  .top .gh { display: none; }  /* the footer links to the repository too */
  .pagehead { padding-top: 30px; }
}
@media (max-width: 700px) {
  /* numbered equations: reserve room for the tag and scroll sideways when too wide */
  .katex-display > .katex { text-align: left; white-space: nowrap; }
  .katex-display > .katex > .katex-html { display: inline-block; min-width: 100%; padding-right: 2.8em; box-sizing: border-box; }
}
/* On a phone or a narrow window each table row becomes a short block: rank, value and the details arrow on
   the first line, then the evidence level, the name, and the author and date. */
@media (max-width: 780px) {
  /* child selectors only, so the small tables inside an open Details row keep their own layout */
  table.bt.stack > thead { display: none; }
  table.bt.stack, table.bt.stack > tbody { display: block; }
  table.bt.stack > tbody > tr { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; padding: 11px 0; }
  table.bt.stack > tbody > tr + tr { border-top: 1px solid var(--rule); }
  table.bt.stack > tbody > tr > td { padding: 0; text-align: left; border-top: 0; }
  table.bt.stack > tbody > tr > td:nth-child(1) { grid-area: 1 / 1; color: var(--ink-2); }
  table.bt.stack > tbody > tr > td:nth-child(2) { grid-area: 1 / 2; }
  table.bt.stack > tbody > tr > td:nth-child(3) { grid-area: 2 / 2 / 3 / 4; }
  table.bt.stack > tbody > tr > td:nth-child(4) { grid-area: 3 / 2 / 4 / 4; }
  table.bt.stack > tbody > tr > td:nth-child(5) { grid-area: 4 / 2; color: var(--ink-2); }
  table.bt.stack > tbody > tr > td:nth-child(6) { grid-area: 4 / 3; color: var(--ink-2); text-align: right; }
  #board > tbody > tr > td.go { grid-area: 1 / 3; text-align: right; }
  table.bt.stack > tbody > tr.detail { display: block; padding: 0; }
  table.bt.stack > tbody > tr.detail > td { display: block; padding: 16px 12px; }
  table.bt.stack > tbody > tr > td.empty { grid-column: 1 / -1; text-align: center; }
}
/* On a phone, a three-column table (the evaluator's tests, the controller formats) becomes one block per row */
@media (max-width: 600px) {
  table.bt.cards > thead { display: none; }
  table.bt.cards, table.bt.cards > tbody, table.bt.cards > tbody > tr { display: block; }
  table.bt.cards > tbody > tr { padding: 10px 0; }
  table.bt.cards > tbody > tr + tr { border-top: 1px solid var(--rule); }
  table.bt.cards > tbody > tr > td { display: block; padding: 0; border-top: 0; text-align: left; white-space: normal; }
  table.bt.cards > tbody > tr > td + td { margin-top: 3px; color: var(--ink-2); }
  #checks > tbody > tr > td:nth-child(3)::before { content: "Required agreement: "; color: var(--muted); }
}
@media print {
  .top nav, .top .tools, .skip, .controls, .ticks, .btn, .rowtoggle { display: none; }
}
