/* Colour tokens. privacy.html and 404.html carry the same block, and
   tools/check_placeholders.py fails if they drift. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f5f5f5;
  --text: #171717;
  --text-soft: #525252;
  --text-dim: #737373;
  --line: rgba(0, 0, 0, 0.12);
  --field: #8f8f8f;
  --button: #171717;
  --button-hover: #000000;
  --button-text: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #1a1a1a;
  --text: #f5f5f5;
  --text-soft: #b5b5b5;
  --text-dim: #a3a3a3;
  --line: rgba(255, 255, 255, 0.14);
  --field: #737373;
  --button: #f5f5f5;
  --button-hover: #ffffff;
  --button-text: #0a0a0a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  --gutter: 20px;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 40rem) {
  body { --gutter: 24px; }
}

/* From 64rem the edges follow a 77rem column centred on wide screens. */
@media (min-width: 64rem) {
  body { --gutter: clamp(2rem, (100vw - 90rem) * 1.2 + 2rem, (100vw - 77rem) / 2); }
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header: the mark on the left, plain links on the right. It scrolls away
   with the page. */
.site-header {
  display: flex;
  align-items: center;
  height: 80px;
  padding-inline: var(--gutter);
}

.site-header nav {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.025em;
}

@media (min-width: 40rem) {
  .site-header nav { font-size: 18px; }
}

.home {
  display: flex;
  margin-left: -4px;
}

/* 40px puts the 320-unit mark on an 8-unit grid, so every bar edge lands on
   a whole pixel. */
.logo {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (min-width: 40rem) {
  .nav-links { gap: 28px; }
  .theme-switch button { padding-inline: 12px; }
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
}

.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-github svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* On a narrow screen the GitHub link is its mark alone. */
@media (max-width: 26rem) {
  .nav-github span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* On a narrow screen the contact link is in the footer only. */
@media (max-width: 26rem) {
  .nav-links a[href="/contact"],
  .nav-links a[href$="ormaos.com/contact"] { display: none; }
}

/* Below 30rem the links and the theme switch sit closer, and the GitHub
   link, which the footer also has, is left out. */
@media (max-width: 30rem) {
  .site-header nav { gap: 12px; }
  .nav-links { gap: 10px; }
  .nav-links .nav-github { display: none; }
  .theme-switch button { padding-inline: 6px; }
}

/* Theme: a two-option switch, the current one filled. */
.theme-switch {
  display: flex;
  padding: 2px;
  border-radius: 9999px;
  background: var(--panel);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: normal;
}

.theme-switch[hidden] {
  display: none;
}

.theme-switch button {
  padding: 4px 10px;
  border: 0;
  border-radius: 9999px;
  background: none;
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
}

.theme-switch button:hover {
  color: var(--text);
}

.theme-switch button[aria-pressed="true"] {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line);
}

/* Main: one centred column, everything stacked: 42rem for text and code.
   Only a terminal window that plays a recording is wider (56rem), so its
   font is large. */
main {
  width: 100%;
  padding: 48px var(--gutter) 80px;
}

@media (min-width: 48rem) {
  main { padding-top: 72px; }
}

.band {
  margin-top: 72px;
  scroll-margin-top: 24px;
}

.band.first {
  margin-top: 0;
}

@media (min-width: 48rem) {
  .band { margin-top: 96px; }
}

main .band > * {
  max-width: 42rem;
  margin-inline: auto;
}

main .band > .wide {
  max-width: 56rem;
}

/* The home page is short and its column is narrower, as on ollama.com. */
.short main .band > * {
  max-width: 36rem;
}

.short main .band > .wide {
  max-width: 48rem;
}

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.375;
  letter-spacing: -0.025em;
}

.lead {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

h3 {
  margin: 32px 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

@media (min-width: 48rem) {
  h1 { font-size: 22px; }
  .lead { font-size: 20px; line-height: 28px; }
}

/* The long pages are read like an article: larger titles, same weight. */
.long h1 { font-size: 30px; line-height: 1.25; }
.long h2 { font-size: 24px; line-height: 1.3; }
.long h3 { font-size: 18px; }

p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
}

main p a,
main li a,
main td a,
main dd a,
main summary a {
  text-decoration: underline;
}

.kicker {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--text-dim);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}

.actions a:not(.button) {
  text-decoration: underline;
}

main .band > .video {
  margin-top: 56px;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-variant-ligatures: none;
}

code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 0.875em;
}

/* Code blocks. Two kinds, so that they are told apart at a glance:
   - a file or commands to copy: a light panel with a bar above it;
   - what a terminal printed: a dark terminal window, in both themes.
   The bar holds what the block is and, with JavaScript, its copy button. */
.code {
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 6px 8px 6px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
  tab-size: 4;
  color: var(--text);
}

.code.tall pre {
  max-height: 30rem;
  overflow-y: auto;
}

/* Prose in a block (a sentence to hand to an agent) wraps. */
.code.wrap pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.code pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 1em;
}

/* Commands to copy: each line starts with a "$" that is drawn, not text,
   so it is never copied. */
.code.sh .cmd::before,
.chip code::before {
  content: "$ ";
  color: var(--text-dim);
  user-select: none;
}

.code .cmd {
  font-weight: 600;
}

/* The terminal window. */
.term {
  text-align: left;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #101010;
}

.term .code-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: #1b1b1b;
  color: #b5b5b5;
}

.term .code-label {
  flex: 1 1 auto;
  min-width: 0;
}

.term pre {
  color: #e5e5e5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.term .cmd {
  color: #ffffff;
}

.term .prompt {
  color: #56d364;
  font-weight: 600;
  user-select: none;
}

.term .out {
  color: #d4d4d4;
}

.term .hl {
  color: #79c0ff;
}

.term .next,
.term .elide {
  color: #9a9a9a;
}

.copy {
  flex: none;
  min-width: 64px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.copy:hover {
  border-color: var(--text);
}

.term .copy {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #f5f5f5;
}

.term .copy:hover {
  border-color: #ffffff;
}

.term :focus-visible {
  outline-color: #ffffff;
}

/* One command on a line of its own, with its copy button. */
.chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 7px 8px 7px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.chip code {
  padding: 0;
  overflow-x: auto;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.caption {
  margin: 12px 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* The text of a recording, closed until it is asked for. */
details.text {
  margin: 12px 0 0;
}

details.text summary {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

details.text summary::-webkit-details-marker {
  display: none;
}

details.text summary::before {
  content: "+ ";
  color: var(--text-dim);
}

details.text[open] summary::before {
  content: "2  ";
}

details.text summary:hover {
  border-color: var(--field);
}

/* Facts: a big value over a small grey label. The <dt> comes first for
   screen readers and is drawn under its value. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  margin: 40px auto 0;
}

.facts.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-block: 24px;
}

.facts div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.facts dt {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-dim);
}

.facts dd {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 48rem) {
  .facts dd { font-size: 28px; }
}

/* Steps: a number, a name, what it does, and its command. */
.steps {
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 0 0 32px;
}

.step:last-child {
  padding-bottom: 0;
}

.step h3 {
  margin: 0 0 6px;
}

.steps {
  counter-reset: step;
}

.step h3::before {
  counter-increment: step;
  content: counter(step);
  margin-right: 10px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.step p {
  color: var(--text-soft);
}

.step > :last-child {
  margin-bottom: 0;
}

/* On this page: the sections of a long page. */
.toc {
  margin-top: 32px;
}

.toc h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--text-dim);
}

.toc ol {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  font-size: 16px;
}

@media (min-width: 40rem) {
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.toc li {
  counter-increment: toc;
}

.toc li::before {
  content: counter(toc);
  display: inline-block;
  width: 1.5em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* Tables: rows on hairlines. */
.table-wrap {
  overflow-x: auto;
  margin: 20px auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

table.results {
  font-variant-numeric: tabular-nums;
}

table.results th,
table.results td {
  text-align: right;
  white-space: nowrap;
}

table.results th:first-child,
table.results td:first-child {
  text-align: left;
  white-space: normal;
}

table.results td {
  font-weight: 500;
}

/* The verbs: one block per verb: its name, what it is for, one example. */
table.verbs thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

table.verbs,
table.verbs tbody,
table.verbs tr,
table.verbs td {
  display: block;
}

table.verbs tr {
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

table.verbs tbody tr:first-child {
  border-top: 1px solid var(--line);
}

table.verbs td {
  padding: 0;
  border: 0;
}

table.verbs td:first-child code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 600;
}

table.verbs td:nth-child(2) {
  margin: 4px 0 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Lists: rows on hairlines. */
ul.rows {
  margin: 0 auto 16px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

ul.rows li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}

ul.rows.links li {
  padding: 0;
}

ul.rows.links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  text-decoration: none;
}

ul.rows.links a:hover b {
  text-decoration: underline;
}

ul.rows.links b {
  flex: none;
  font-weight: 600;
}

ul.rows.links span {
  color: var(--text-soft);
  text-align: right;
}

ol.plain {
  margin: 0 auto 16px;
  padding-left: 1.25rem;
  font-size: 16px;
  line-height: 1.65;
}

ol.plain li {
  margin-bottom: 8px;
}

/* Questions: the question, then its answer. */
.qa {
  scroll-margin-top: 24px;
}

.qa h3 {
  margin-top: 40px;
}

.qa .a > :last-child {
  margin-bottom: 0;
}

.qa .a p,
.qa .a li {
  color: var(--text-soft);
}

/* Items: one under the other, on hairlines. */
.cards {
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.card {
  min-width: 0;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.card h3 {
  margin-top: 0;
}

.card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Under a wide terminal window, the words stay in the text column. */
.wide > .caption,
.wide > h3 {
  max-width: 42rem;
  margin-inline: auto;
}

.wide > h3 {
  margin-top: 48px;
}

.wide > details.text > summary {
  margin-left: max(0px, calc((100% - 42rem) / 2));
}

.short .wide > .caption {
  max-width: 36rem;
}

.short .wide > details.text > summary {
  margin-left: max(0px, calc((100% - 36rem) / 2));
}

.card p {
  color: var(--text-soft);
}

.card .more {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.card > :last-child {
  margin-bottom: 0;
}

/* Recordings: the player sits in a terminal window and takes its colours
   from the class below. On a narrow screen it keeps a readable font and
   scrolls sideways. */
.cast {
  overflow: hidden;
  background: #101010;
}

.cast.scroll {
  overflow-x: auto;
}

.cast .ap-player {
  border-radius: 0;
}

.asciinema-player-theme-ormaos {
  --term-color-foreground: #e5e5e5;
  --term-color-background: #101010;
  --term-color-0: #101010;
  --term-color-1: #ff7b72;
  --term-color-2: #56d364;
  --term-color-3: #e3b341;
  --term-color-4: #79c0ff;
  --term-color-5: #d2a8ff;
  --term-color-6: #76e3ea;
  --term-color-7: #c9c9c9;
  --term-color-8: #9a9a9a;
  --term-color-9: #ff7b72;
  --term-color-10: #56d364;
  --term-color-11: #e3b341;
  --term-color-12: #79c0ff;
  --term-color-13: #d2a8ff;
  --term-color-14: #76e3ea;
  --term-color-15: #ffffff;
}

.cast-note {
  padding: 16px 20px;
  color: #b5b5b5;
  font-size: 14px;
}

.about {
  margin: 48px auto 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* The signup form. */
.signup {
  margin: 0;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.field-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--field);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

.field-row input::placeholder {
  color: var(--text-dim);
}

.button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 9999px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

main p a.button,
.button:hover {
  text-decoration: none;
}

.button:hover {
  background: var(--button-hover);
}



.button:disabled {
  opacity: 0.5;
  cursor: default;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.micro,
.form-status {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

.micro a,
.form-status a {
  text-decoration: underline;
}

.form-status {
  margin-top: 8px;
  color: var(--text);
}

.form-status:empty {
  display: none;
}

/* Footer: one line, small and grey. */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding: 16px var(--gutter);
  font-size: 14px;
  color: var(--text-dim);
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.copyright {
  order: 2;
  margin: 8px 0 0;
}

@media (min-width: 48rem) {
  footer {
    flex-direction: row;
    justify-content: space-between;
    padding-block: 14px;
    font-size: 12px;
  }

  footer ul { order: 2; column-gap: 24px; }
  .copyright { order: 1; margin: 0; }
}

/* The benchmark pages: what docs/index.html does not have. Written by
   site/benchmarks/build.py. */
:root {
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --neutral: #a8a7a1;
}

:root[data-theme="dark"] {
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --neutral: #6b6a66;
}

.chart {
  margin: 28px auto 4px;
  overflow-x: auto;
}

.chart svg {
  display: block;
  width: 100%;
  min-width: 30rem;
  height: auto;
}

.chart text {
  fill: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.chart text.label,
.chart text.value {
  fill: var(--text);
}

.chart .grid {
  stroke: var(--line);
  stroke-width: 1;
}

.chart .whisker {
  fill: none;
  stroke-width: 2;
}

.chart .dot {
  stroke: var(--bg);
  stroke-width: 2;
}

.chart rect.s1, .chart circle.s1 { fill: var(--series-1); }
.chart rect.s2, .chart circle.s2 { fill: var(--series-2); }
.chart rect.s3, .chart circle.s3 { fill: var(--series-3); }
.chart rect.s4, .chart circle.s4 { fill: var(--series-4); }
.chart line.s1 { stroke: var(--series-1); }
.chart line.s2 { stroke: var(--series-2); }
.chart line.s3 { stroke: var(--series-3); }
.chart line.s4 { stroke: var(--series-4); }
.chart rect.neutral { fill: var(--neutral); }

table.plain td,
table.answers td {
  overflow-wrap: anywhere;
}

table.answers {
  table-layout: fixed;
}

table.answers th:first-child,
table.answers td:first-child {
  width: 8.5rem;
}

table.answers td code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.verbatim pre {
  max-height: 36rem;
  overflow-y: auto;
  font-size: 13px;
}

main .band > .facts.bench {
  gap: 16px 40px;
  margin: 24px auto 8px;
}

main .band > details.text {
  margin: 20px auto 0;
}

main .band > p.sentence {
  margin-top: 16px;
}

/* From 64rem the benchmark pages use a wider column, 1100 px: charts,
   tables and cards take all of it, text stays near 70 characters a line.
   Each wide chart is drawn twice; the style shows the one that fits. */
.narrow-only { display: none; }

@media (max-width: 63.99rem) {
  .wide-only { display: none; }
  .narrow-only { display: block; }
}

@media (min-width: 64rem) {
  .bench main .band {
    max-width: 68.75rem;
    margin-inline: auto;
  }

  .bench main .band > * {
    max-width: none;
    margin-inline: 0;
  }

  .bench main .band > :is(p, h1, h2, h3, ul.rows, nav.toc, details, figure.code) {
    max-width: 70ch;
    margin-inline: 0;
  }

  .bench .chart svg {
    min-width: 0;
  }
}

.bench main .band > p.headline {
  margin-top: 32px;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 48px;
}

@media (min-width: 64rem) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pair .table-wrap,
.card .table-wrap {
  margin-top: 12px;
}

main .band > .facts.three {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 40px;
  margin-top: 40px;
}

@media (min-width: 48rem) {
  main .band > .facts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.facts.three dt a {
  text-decoration: underline;
}

.cards.grid {
  border-top: 0;
}

.cards.grid .card {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding-bottom: 24px;
}

@media (min-width: 64rem) {
  .cards.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

.card .chart {
  margin-top: 12px;
}

/* A grid of cells fits the column; the other charts keep a readable font
   and scroll sideways on a narrow screen. */
.chart svg.fit {
  min-width: 0;
}

@media (max-width: 30rem) {
  table.answers th:first-child,
  table.answers td:first-child { width: 7rem; }
  table.answers th,
  table.answers td { padding-right: 10px; }
}

.facts.bench dd {
  font-size: 22px;
}

.question {
  margin-top: 40px;
}

.question + p {
  color: var(--text-soft);
}
