/* QED: the registry of Lean-verified proofs.
   One stylesheet. Layout idea: a reference work set like a journal. One shape carries the identity:
   the end-of-proof mark (the tombstone). It follows the wordmark, ends theorem-style paragraphs,
   and makes the kernel strip, one mark per kernel of the run: filled when a kernel accepted,
   outlined when it did not run, struck when it rejected, barred when it gave no verdict, half
   filled when it declined an axiom, and short when the kernel is advisory. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/plex-400.639e77c02d.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/plex-600.01c4150930.woff2") format("woff2"); }
@font-face { font-family: "STIX Two Text"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/stix-600.777ed30299.woff2") format("woff2"); }
@font-face { font-family: "STIX Two Text"; font-weight: 400; font-style: italic; font-display: swap; src: url("/static/fonts/stix-400i.bb78c34534.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/mono-400.1ea4e9d5bc.woff2") format("woff2"); }

:root {
  --paper: #f3f4ef;
  --surface: #fbfcf8;
  --ink: #141920;
  --ink-2: #434c58;
  --ink-3: #5c6470;
  --rule: #d4d8cd;
  --line: #8a929c;
  --accent: #2440c4;
  --accent-soft: #e3e7fa;
  --good: #1b6e4b;
  --warn: #8a5700;
  --bad: #b0241d;
  --code-bg: #eceee6;
  --hl: #fff1b8;
  --display: "STIX Two Text", "STIX Two Math", Cambria, Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "DejaVu Sans Mono", "Noto Sans Mono", "STIX Two Math", "Cambria Math", ui-monospace, monospace;
  --w: 1180px;
  --gut: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1318; --surface: #161c23; --ink: #e7eae2; --ink-2: #b6bec7; --ink-3: #939da9; --rule: #2b343e;
    --line: #6f7a86; --accent: #a3b2ff; --accent-soft: #1d2646; --good: #6bd3a4; --warn: #e4b458; --bad: #ff9a90;
    --code-bg: #0b0e12; --hl: #4a3f12;
  }
}
@media (min-width: 1500px) { :root { --w: 1320px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); overflow-wrap: break-word; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.18; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -0.01em; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
p { margin: 0; }
p + p { margin-top: 0.75em; }
ul, ol { margin: 0; padding-left: 1.3em; }
code, kbd, samp { font-family: var(--mono); font-size: 0.86em; }
:not(pre) > code { background: var(--code-bg); padding: 1px 4px; border-radius: 3px; overflow-wrap: anywhere; }
small, .small { font-size: 13.5px; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.86em; }
.nowrap { white-space: nowrap; }
.prose { max-width: 70ch; }
.prose h2 { margin: 1.6em 0 0.5em; }
.prose h3 { margin: 1.3em 0 0.4em; }
.prose ul, .prose ol { margin: 0.6em 0; }
.prose li + li { margin-top: 0.3em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }

/* ---- the mark ---- */
.sq { display: inline-block; width: 0.58em; height: 0.84em; background: currentColor; vertical-align: -0.06em; flex: none; }
.strip { display: inline-flex; gap: 2px; vertical-align: middle; flex: none; }
.strip .k { width: 8px; height: 12px; border: 1.5px solid var(--line); display: block; position: relative; }
.strip.lg { gap: 4px; }
.strip.lg .k { width: 15px; height: 22px; border-width: 2px; }
.k.acc { background: var(--ink); border-color: var(--ink); }
.k.rej { border-color: var(--bad); background: linear-gradient(to top right, transparent calc(50% - 1px), var(--bad) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.k.nov { border-color: var(--warn); background: linear-gradient(transparent calc(50% - 1px), var(--warn) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.k.nr { border-color: var(--ink-3); border-style: solid; }
.k.dec { border-color: var(--ink-3); background: linear-gradient(to top left, var(--ink-3) 50%, transparent 50%); }
.k.run { border-color: var(--accent); }
/* An advisory kernel's mark is short, at full colour: its verdict is shown and does not decide.
   Its colours keep the 3:1 of WCAG 1.4.11 (tests/contrast.rs); opacity would not. */
.strip .k.adv { height: 7px; align-self: flex-end; }
.strip.lg .k.adv { height: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .k.run { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { background: var(--accent-soft); } }
}
.end { display: inline-block; width: 0.5em; height: 0.72em; background: var(--ink); margin-left: 0.35em; vertical-align: -0.04em; }

/* ---- shell ---- */
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 4px; }
.skip:focus { top: 8px; }
.top { background: var(--paper); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { font: 600 28px/1 var(--display); color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 5px; padding: 8px 0; min-height: 44px; }
.brand .sq { width: 11px; height: 11px; vertical-align: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; order: 3; width: 100%; margin: 0 -8px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 7px 8px; font-weight: 600; font-size: 14.5px; border-radius: 3px; min-height: 36px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.hsearch { flex: 1 1 200px; display: flex; min-width: 0; max-width: 440px; margin-left: auto; }
.hsearch input { flex: 1 1 auto; min-width: 0; }
@media (min-width: 900px) {
  .nav { order: 0; width: auto; margin: 0; }
  .hsearch { order: 2; }
}
main { padding: 26px 0 64px; min-height: 60vh; }
.foot { border-top: 1px solid var(--rule); padding: 26px 0 44px; color: var(--ink-2); font-size: 14px; }
.foot .cols { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot nav a { color: var(--ink-2); display: inline-block; padding: 3px 0; min-height: 24px; }
@media (min-width: 760px) { .foot .cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.fixture { background: var(--hl); color: var(--ink); border-bottom: 1px solid var(--rule); font-size: 14px; }
.fixture .wrap { padding-top: 8px; padding-bottom: 8px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.crumbs a { color: var(--ink-2); }
.crumbs li { list-style: none; display: inline; min-width: 0; overflow-wrap: anywhere; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 6px; padding: 0; margin: 0; min-width: 0; }
.crumbs li + li::before { content: "/" / ""; color: var(--ink-3); margin-right: 6px; }

/* ---- controls ---- */
input:not([type]), input[type="search"], input[type="text"], input[type="url"],
input[type="email"], input[type="password"], select, textarea {
  font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; padding: 8px 10px; max-width: 100%; min-height: 40px;
}
textarea { font-family: var(--mono); font-size: 14px; width: 100%; min-height: 180px; resize: vertical; tab-size: 2; }
::placeholder { color: var(--ink-3); opacity: 1; }
button, .btn { font: 600 14.5px/1 var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; min-height: 40px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .btn:hover { border-color: var(--ink); }
button.primary, .btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
button.small, .btn.small { font-size: 13px; padding: 5px 9px; min-height: 28px; }
.hsearch button { border-radius: 0 4px 4px 0; border-left: 0; }
.hsearch input { border-radius: 4px 0 0 4px; }
label { font-weight: 600; font-size: 14px; color: var(--ink-2); display: block; margin-bottom: 4px; }
.field + .field { margin-top: 14px; }
.hint { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
fieldset { border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px 16px; margin: 0; }
legend { font-weight: 600; padding: 0 6px; }
.error-text { color: var(--bad); font-weight: 600; font-size: 14px; margin-top: 4px; }

/* ---- layout pieces ---- */
.stack > * + * { margin-top: 16px; }
.stack-l > * + * { margin-top: 30px; }
.row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.grid2 { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; } }
.rail { font-size: 14.5px; }
.rail > section + section { margin-top: 24px; }
.section { border-top: 2px solid var(--ink); padding-top: 12px; }
.section > h2, .section > header h2 { font-size: 21px; margin-bottom: 10px; }
.section > header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section > header h2 { margin-bottom: 0; min-width: 0; }
.section .aside { font-size: 14px; color: var(--ink-3); }
.eyebrow { font: 600 12.5px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.lead { font: italic 400 19px/1.5 var(--display); max-width: 64ch; color: var(--ink); }
.lead b { font-style: normal; font-weight: 600; letter-spacing: 0.01em; }
.note { overflow-wrap: anywhere; border-left: 3px solid var(--accent); background: var(--surface); padding: 10px 14px; font-size: 14.5px; color: var(--ink-2); }
.note.warn { border-left-color: var(--warn); }
.note.bad { border-left-color: var(--bad); }
.note.plain { border-left-color: var(--line); }
.empty { color: var(--ink-2); padding: 18px 0; display: flex; gap: 10px; align-items: baseline; }
.empty .sq { color: var(--line); }

/* key-value */
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { dl.kv { grid-template-columns: minmax(0, 1fr); gap: 0; } dl.kv dd { margin-bottom: 8px; } }

/* ---- tables as a ledger ---- */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th { text-align: left; font: 600 12.5px/1.25 var(--body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
td { padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
@media (max-width: 640px) {
  table.stackable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; }
  table.stackable tr { border-bottom: 1px solid var(--rule); padding: 8px 0; }
  table.stackable td { border: 0; padding: 2px 0; text-align: left; }
  table.stackable td[data-l]::before { content: attr(data-l) ": "; color: var(--ink-3); font-size: 13px; }
}

/* ---- theorem lists ---- */
.tlist { list-style: none; padding: 0; margin: 0; }
.tlist > li { border-bottom: 1px solid var(--rule); padding: 11px 0 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; }
.tlist.native-results > li { grid-template-columns: minmax(0, 1fr); }
.tlist > li:first-child { border-top: 1px solid var(--ink); }
.tlist .strip { margin-top: 5px; grid-row: span 4; }
.tlist .tt { font: italic 400 15.5px/1.4 var(--display); color: var(--ink-2); }
.tlist .tt .who { font: 400 12.5px/1.2 var(--body); font-style: normal; color: var(--ink-3); }
@media (max-width: 640px) {
  .tlist > li { grid-template-columns: minmax(0, 1fr); }
  .tlist .strip { grid-row: auto; margin: 0 0 4px; }
}
.tlist .tn { font: 400 15px/1.4 var(--mono); overflow-wrap: anywhere; }
.tlist .tn a { text-decoration: none; color: var(--ink); }
.tlist .tn a:hover { text-decoration: underline; }
.tlist .ts { font: 400 13.5px/1.45 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.tlist .tm { font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.tlist .tm a { color: var(--ink-2); }
.tag { font: 600 12px/1 var(--body); padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.tag.cond { border-color: var(--warn); color: var(--warn); }
.tag.fix { border-color: var(--warn); background: var(--hl); color: var(--ink); }
.tag.ok { border-color: var(--good); color: var(--good); }
.tag.bad { border-color: var(--bad); color: var(--bad); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 0; font-size: 14.5px; }
.pager a { display: inline-block; padding: 6px 0; min-height: 24px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--ink-2); margin: 8px 0 12px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend .strip .k { width: 8px; height: 12px; }
.legend .strip .k.adv { height: 7px; }

/* ---- home ---- */
.hero { padding: 6px 0 8px; }
.hero h1 { max-width: 27ch; }
.bigsearch { display: flex; max-width: 680px; margin-top: 18px; }
.bigsearch input { flex: 1 1 auto; min-width: 0; font-size: 17px; padding: 12px 14px; min-height: 50px; border-radius: 4px 0 0 4px; }
.bigsearch button { border-radius: 0 4px 4px 0; min-height: 50px; padding: 0 18px; }
.examples { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.examples a { color: var(--ink-2); }
.tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.tally > div { padding: 12px 14px 12px 0; }
.tally b { display: block; font: 600 28px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.tally span { font-size: 13.5px; color: var(--ink-2); }
@media (min-width: 760px) { .tally { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cards { display: grid; gap: 0 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { border-top: 1px solid var(--rule); padding: 12px 0 14px; }
.card h3 { font-size: 17px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: 14.5px; color: var(--ink-2); margin-top: 3px; }
.card .count { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }

/* ---- theorem page ---- */
.thead h1, h1.mono { font: 400 clamp(21px, 3.2vw, 30px)/1.25 var(--mono); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.thead .title { font: italic 400 19px/1.45 var(--display); color: var(--ink-2); margin-top: 6px; }
.verdict { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 14px; }
.verdict .says { font-size: 15px; }
.verdict .says b { font-weight: 600; }
.claim { font-size: 14.5px; color: var(--ink-2); border-left: 3px solid var(--line); padding: 2px 0 2px 12px; max-width: 70ch; }
.statement { position: relative; }
pre.lean { font: 400 14px/1.6 var(--mono); background: var(--code-bg); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; margin: 0; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
pre.lean a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
pre.lean a:hover { text-decoration-color: var(--accent); color: var(--accent); }
pre.lean .kw { font-weight: 400; color: var(--accent); }
pre.cmd { font: 400 13.5px/1.6 var(--mono); background: var(--code-bg); border: 1px solid var(--rule); border-radius: 4px; padding: 12px 14px; margin: 0; overflow-x: auto; white-space: pre; }
.copyrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.copyrow h3 { font-size: 16px; }
.doc { font-size: 15.5px; max-width: 70ch; }
.doc .who { font: 600 12.5px/1.2 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 6px; }
.kernels { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (min-width: 640px) { .kernels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .kernels { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kernels li { padding: 10px 0 10px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; align-items: start; }
.kernels .k { width: 15px; height: 22px; border: 2px solid var(--line); grid-row: span 3; margin-top: 2px; }
.kernels b { font-weight: 600; font-size: 14.5px; }
.kernels span { font-size: 13px; color: var(--ink-3); }
.axioms { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.axioms li { font: 400 13.5px/1.3 var(--mono); overflow-wrap: anywhere; min-width: 0; max-width: 100%; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 3px; background: var(--surface); }
.axioms li.other { border-color: var(--warn); }
.links { list-style: none; padding: 0; margin: 0; }
.links li { padding: 6px 0; border-bottom: 1px solid var(--rule); font: 400 14px/1.45 var(--mono); overflow-wrap: anywhere; }
.links li .ts { display: block; color: var(--ink-3); font-size: 12.5px; }
.links li .lm { display: block; color: var(--ink-3); font: 400 12.5px/1.45 var(--body); }
.links.plain li { font-family: var(--body); font-size: 14.5px; }
.cols2 { columns: 2 260px; column-gap: 28px; }
.cols2 li { break-inside: avoid; }
details > summary { cursor: pointer; min-height: 24px; }
details.more > summary { color: var(--accent); font-size: 14.5px; padding: 6px 0; }
.badge-preview { padding: 10px 0; }

/* ---- run page ---- */
.runhead { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.result { font: 600 15px/1 var(--body); display: inline-flex; gap: 8px; align-items: center; padding: 7px 11px; border-radius: 4px; border: 1.5px solid var(--line); }
.result.pass { border-color: var(--good); color: var(--good); }
.result.fail { border-color: var(--bad); color: var(--bad); }
.result.fault { border-color: var(--warn); color: var(--warn); }
.result.run { border-color: var(--accent); color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: 14.5px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div > span { display: block; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.facts div > b, .facts div > a, .facts div > code { font-weight: 600; overflow-wrap: anywhere; }
.steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.steps > li { border-bottom: 1px solid var(--rule); }
.steps > li > details > summary, .steps > li > .stephead { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 4px; list-style: none; }
.steps > li > details > summary::-webkit-details-marker { display: none; }
.steps > li > details > summary:hover { background: var(--surface); }
.steps > li > details[open] > summary { background: var(--surface); }
.steps .k { width: 13px; height: 19px; border: 2px solid var(--line); justify-self: center; }
.steps .sname { font-weight: 600; font-size: 15px; }
.steps .smeta { font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 2px 12px; grid-column: 2 / -1; }
.steps .sdur { font: 400 13.5px/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.stepbody { padding: 4px 0 16px 36px; }
@media (max-width: 640px) { .stepbody { padding-left: 0; } }
.logbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 8px; }
.logbar input { min-height: 32px; padding: 4px 8px; font-size: 14px; flex: 0 1 240px; }
.log { font: 400 12.5px/24px var(--mono); background: var(--code-bg); border: 1px solid var(--rule); border-radius: 4px; margin: 0; padding: 8px 0; overflow-x: auto; max-height: 620px; overflow-y: auto; counter-reset: none; }
.log .ln { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); white-space: pre; }
.log .ln > a { color: var(--ink-3); text-align: right; padding-right: 12px; text-decoration: none; user-select: none; -webkit-user-select: none; }
.log .ln > a:hover { color: var(--accent); }
.log .ln:target, .log .ln.hit { background: var(--hl); }
.log .ln > span { padding-right: 14px; }
.log .a-red { color: var(--bad); } .log .a-green { color: var(--good); } .log .a-yellow { color: var(--warn); }
.log .a-blue { color: var(--accent); } .log .a-dim { color: var(--ink-3); } .log .a-bold { font-weight: 700; }
.truncated { font-size: 13.5px; color: var(--warn); margin-top: 6px; font-weight: 600; }
.artifacts { display: grid; gap: 0; }
.artifacts > div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.artifacts > div > span { color: var(--ink-3); }
.artifacts code { overflow-wrap: anywhere; }
@media (max-width: 640px) { .artifacts > div { grid-template-columns: minmax(0, 1fr); } }
.cmpgrid td.same { color: var(--good); }
.cmpgrid td.diff { color: var(--bad); font-weight: 600; }
pre.json { font: 400 12.5px/1.5 var(--mono); background: var(--code-bg); border: 1px solid var(--rule); border-radius: 4px; padding: 12px 14px; margin: 0; overflow: auto; max-height: 560px; white-space: pre; }

/* ---- badges in pages ---- */
.vbadge { display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1 var(--body); padding: 6px 9px; border-radius: 3px; background: var(--ink); color: var(--paper); text-decoration: none; }
.vbadge .sq { width: 7px; height: 10px; }
.vbadge.cond { background: var(--warn); color: var(--paper); }
.vbadge.off { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }

/* ---- search ---- */
.sform { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.sform .q { flex: 1 1 320px; display: flex; min-width: 0; }
.sform .q input { flex: 1 1 auto; min-width: 0; border-radius: 4px 0 0 4px; }
.sform .q button { border-radius: 0 4px 4px 0; }
.sform .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sform select { min-width: 0; max-width: 100%; }
.count { font-size: 14.5px; color: var(--ink-2); margin: 14px 0 6px; }

@media (hover: none) { a:hover, button:hover { text-decoration-thickness: 1px; } }
@media print { .top, .foot, .hsearch, .copy, .fixture { display: none; } body { background: #fff; } }
@media (forced-colors: active) { .k.acc, .sq, .end { forced-color-adjust: none; background: CanvasText; } }
.mt { margin-top: 8px; }
pre.wrapcode { white-space: pre-wrap; overflow-wrap: anywhere; }
input.wide { width: 100%; }
.modes { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.modes a { display: inline-block; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.modes a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.answer { font-size: 17px; display: flex; gap: 10px; align-items: baseline; }
.answer .sq { flex: none; }
.eyebrow code { text-transform: none; letter-spacing: 0; }

/* ---- browsing a large project ---- */
form.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
form.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); flex: 1 1 220px; min-width: 0; }
form.filters input, form.filters select { width: 100%; }
.scope ol { display: flex; flex-wrap: wrap; gap: 2px 6px; padding: 0; margin: 12px 0 0; }
.scope li { list-style: none; }
.scope li + li::before { content: "/" / ""; color: var(--ink-3); margin-right: 6px; }
.browse { display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.groups { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 0 0 8px; }
.groups li { list-style: none; min-width: 0; overflow-wrap: anywhere; }
.groups a { display: inline-block; padding: 3px 0; min-height: 24px; }

/* Connections between the published theorems of one verification. */
.proof-graph {
  display: grid; gap: 16px; grid-template-areas: "focus" "inputs" "outputs";
  grid-template-columns: minmax(0, 1fr); align-items: start;
}
.proof-node {
  min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line);
  border-radius: 4px; padding: 14px; background: var(--surface);
}
.proof-focus { grid-area: focus; border-color: var(--accent); background: var(--accent-soft); }
.proof-inputs { grid-area: inputs; }
.proof-outputs { grid-area: outputs; }
.proof-node li { padding-block: 8px; border-top: 1px solid var(--rule); }
.proof-node li span { display: block; }
@media (min-width: 900px) {
  .proof-graph {
    grid-template-areas: "inputs focus outputs"; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px; align-items: center;
  }
  .proof-focus { position: relative; text-align: center; }
  .proof-focus::before, .proof-focus::after {
    position: absolute; top: 50%; width: 30px; border-top: 1px solid var(--line); content: "";
  }
  .proof-focus::before, .proof-focus::after { display: none; }
  .proof-focus.has-inputs::before { right: 100%; display: block; }
  .proof-focus.has-outputs::after { left: 100%; display: block; }
}

/* Approved registry home. See design.md and ADR 0010. */
body.home-page { background:#000; }
#qed-home {
  --qs-stage-height:100svh;
  --qs-safe-top:env(safe-area-inset-top,0px);
  --qs-safe-right:env(safe-area-inset-right,0px);
  --qs-safe-bottom:env(safe-area-inset-bottom,0px);
  --qs-safe-left:env(safe-area-inset-left,0px);
  --qs-paper:#f3f0e8; --qs-ink:#201d18; --qs-text:#f5f3ed; --qs-muted:#dedbd4; --qs-focus:#e6c18e;
  position:relative; isolation:isolate; width:100%; height:var(--qs-stage-height); container-type:inline-size;
  color-scheme:dark; color:var(--qs-text); font-family:"IBM Plex Sans",sans-serif;
}
#qed-home * { box-sizing:border-box; }
#qed-home .qs-poster,#qed-home .qs-field { position:absolute; inset:0; z-index:0; }
#qed-home .qs-poster img { display:block; width:100%; height:100%; object-fit:cover; }
#qed-home .qed-milky-canvas { position:relative; width:100%; height:100%; overflow:hidden; }
/* The original preview viewport equalled its stage. Preserve that sizing. */
#qed-home .qed-milky-canvas > section { height:100% !important; background:transparent !important; }
/* The renderer shows its canvas only once it holds the frame the still shows. See design.md. */
#qed-home .qs-field { opacity:0; }
#qed-home .qs-field[data-scene] { opacity:1; }
@media (prefers-reduced-motion:no-preference) {
  #qed-home .qs-field[data-scene] { transition:opacity 400ms ease; }
}
#qed-home:has(.qs-field[data-scene="settled"]) .qs-poster { visibility:hidden; }
#qed-home .qs-header { position:absolute; z-index:3; top:0; left:0; right:0; padding:max(31px,var(--qs-safe-top)) max(4.8%,var(--qs-safe-right)) 31px max(4.8%,var(--qs-safe-left)); display:flex; justify-content:space-between; align-items:center; gap:20px; pointer-events:none; }
#qed-home a { color:inherit; text-decoration:none; touch-action:manipulation; }
#qed-home a:hover { text-decoration:underline; text-underline-offset:4px; }
#qed-home .qs-header a { pointer-events:auto; }
#qed-home .qs-brand { display:inline-flex; gap:5px; align-items:baseline; min-height:44px; padding:8px 0; font:600 28px/1 "STIX Two Text",Georgia,serif; }
#qed-home .qs-square { width:11px; height:11px; display:inline-block; background:currentColor; }
#qed-home nav { display:flex; gap:26px; font-size:13px; line-height:1.4; }
#qed-home .qs-header nav { padding-right:0; }
#qed-home nav a { display:inline-flex; align-items:center; min-height:44px; text-shadow:0 1px 3px #000,0 3px 14px #000; }
#qed-home .qs-content { position:absolute; z-index:1; top:39%; left:max(4.8%,var(--qs-safe-left)); width:min(760px,calc(100% - max(4.8%,var(--qs-safe-left)) - max(4.8%,var(--qs-safe-right)))); min-height:0; padding:0; transform:translateY(-10%); pointer-events:none; }
#qed-home h1 { color:var(--qs-text); font-size:clamp(32px,min(64px,7.4cqw),76px); font-family:"IBM Plex Sans",sans-serif; font-weight:600; line-height:1.08; letter-spacing:-.045em; text-wrap:balance; margin:0 0 28px; text-shadow:0 1px 3px #000,0 4px 22px #000b; }
#qed-home .qs-search { width:100%; height:76px; display:flex; gap:8px; align-items:stretch; margin:0; padding:8px; background:var(--qs-paper); border:1px solid #fff9; border-radius:3px; box-shadow:0 9px 38px #0006; pointer-events:auto; color-scheme:light; }
#qed-home .qs-input-wrap { position:relative; display:flex; flex:1; min-width:0; }
#qed-home .qs-search input { min-width:0; width:100%; border:0; outline:0; border-radius:0; color:var(--qs-ink); background:transparent; font:400 20px/1.3 "IBM Plex Sans",sans-serif; padding:12px 13px; box-shadow:none; }
#qed-home .qs-search input::placeholder { color:#605c54; opacity:1; }
#qed-home .qs-example { display:none; position:absolute; top:50%; left:13px; right:13px; margin-top:-.65em; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#605c54; font:400 20px/1.3 "IBM Plex Sans",sans-serif; pointer-events:none; }
#qed-home[data-examples-ready="true"] .qs-example { display:block; }
#qed-home[data-examples-ready="true"] .qs-search:not(:focus-within) input::placeholder { color:transparent; }
#qed-home .qs-search:focus-within .qs-example,
#qed-home[data-has-query="true"] .qs-example { visibility:hidden; }
#qed-home .qs-search button { display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:2px; padding:0 25px; min-width:105px; font:600 15px/1.2 "IBM Plex Sans",sans-serif; background:#211e19; color:#fbf8f1; cursor:pointer; touch-action:manipulation; }
#qed-home .qs-search button:hover { background:#3a3022; }
#qed-home .qs-search:focus-within { outline:3px solid var(--qs-focus); outline-offset:4px; box-shadow:0 0 0 8px #0009,0 9px 38px #0006; }
#qed-home .qs-search button:focus-visible { outline:2px solid #211e19; outline-offset:3px; }
#qed-home .qs-qualifier { margin:17px 0 0; font-size:14px; font-weight:400; line-height:1.5; letter-spacing:0; color:var(--qs-muted); text-shadow:0 1px 2px #000,0 0 5px #000,0 2px 12px #000; }
#qed-home .qs-number { display:inline-grid; font-variant-numeric:tabular-nums; font-weight:600; color:var(--qs-text); }
#qed-home .qs-number span { grid-area:1 / 1; }
#qed-home .qs-count-reserve { visibility:hidden; }
#qed-home .qs-count { justify-self:end; }
#qed-home .qs-access { position:absolute; z-index:10; top:max(10px,var(--qs-safe-top)); left:max(4.8%,var(--qs-safe-left)); min-height:44px; padding:12px 16px; border:1px solid var(--qs-focus); border-radius:2px; color:var(--qs-text); background:#111; font:400 14px/1.4 "IBM Plex Sans",sans-serif; cursor:pointer; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; white-space:nowrap; }
#qed-home .qs-pause { position:absolute; z-index:3; right:max(4.8%,var(--qs-safe-right)); bottom:max(20px,var(--qs-safe-bottom)); min-height:44px; min-width:44px; padding:12px 0 12px 16px; border:0; border-radius:2px; color:var(--qs-text); background:transparent; font:400 12px/1.4 "IBM Plex Sans",sans-serif; text-shadow:0 1px 2px #000,0 0 5px #000,0 2px 12px #000; cursor:pointer; touch-action:manipulation; }
#qed-home .qs-pause:hover { text-decoration:underline; text-underline-offset:4px; }
#qed-home .qs-access:focus { clip-path:none; width:auto; height:auto; }
#qed-home a:focus-visible,#qed-home .qs-access:focus-visible,#qed-home .qs-pause:focus-visible { outline:2px solid var(--qs-focus); outline-offset:4px; box-shadow:0 0 0 6px #000; }
#qed-home .qs-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#qed-home .qs-footer { position:absolute; z-index:3; left:max(4.8%,var(--qs-safe-left)); bottom:max(20px,var(--qs-safe-bottom)); }
#qed-home .qs-footer nav { font-size:12px; }
@container(width < 640px) {
  #qed-home .qs-header { padding-top:max(25px,var(--qs-safe-top)); gap:10px; flex-wrap:wrap; }
  #qed-home nav { gap:16px; font-size:12px; }
  #qed-home .qs-header nav { padding-right:0; }
  #qed-home h1 { font-size:clamp(30px,min(64px,8.6cqw),44px); margin-bottom:23px; }
  #qed-home .qs-search { height:68px; gap:5px; padding:6px; }
  #qed-home .qs-search input { font-size:16px; padding:10px 8px; }
  #qed-home .qs-example { font-size:16px; left:8px; right:8px; }
  #qed-home .qs-search button { min-width:78px; font-size:13px; padding:0 15px; }
  #qed-home .qs-qualifier { font-size:13px; margin-top:16px; }
}
@media(prefers-reduced-motion:reduce) { #qed-home * { scroll-behavior:auto; } }

#qed-home .qs-fixture { position:absolute; z-index:3; top:105px; left:4.8%; right:4.8%; max-width:760px; margin:0; color:#f5f3ed; font-size:12px; text-shadow:0 1px 3px #000,0 0 6px #000; }
#qed-home .qs-search input:focus { outline:0; box-shadow:none; }
#qed-home .qs-pause[hidden] { display:none; }
@media (max-height:560px) {
  #qed-home .qs-header { padding-top:max(12px,var(--qs-safe-top)); padding-bottom:12px; }
  #qed-home .qs-content { top:46%; transform:translateY(-35%); }
  #qed-home h1 { font-size:clamp(30px,5cqw,46px); margin-bottom:16px; }
  #qed-home .qs-search { height:64px; padding:6px; }
  #qed-home .qs-qualifier { margin-top:12px; }
  #qed-home .qs-footer,#qed-home .qs-pause { bottom:max(8px,var(--qs-safe-bottom)); }
}
/* Zoom and very short windows may scroll to keep every action reachable. */
@media (max-height:360px) {
  #qed-home { min-height:360px; }
}

/* Shared document shell for About and Press. */
body.about-page, body.press-page { background:#10100f; }
:is(#qed-about,#qed-press) {
  --qa-paper:#10100f; --qa-surface:#191917; --qa-ink:#f5f3ed; --qa-body:#c6c4bd;
  --qa-muted:#a6a49c; --qa-rule:#343430; --qa-focus:#e6c18e;
  --ink:var(--qa-ink); --ink-3:var(--qa-muted); --line:var(--qa-muted);
  --code-bg:#242420; --bad:#f1b5a9; --warn:#e6c18e;
  color:var(--qa-ink); color-scheme:dark; font:400 16px/1.65 var(--body);
  min-height:100svh;
}
:is(#qed-about,#qed-press) .qa-gutter { padding-left:max(4.8%,env(safe-area-inset-left,0px)); padding-right:max(4.8%,env(safe-area-inset-right,0px)); }
:is(#qed-about,#qed-press) a { color:inherit; text-underline-offset:5px; touch-action:manipulation; }
:is(#qed-about,#qed-press) a:focus-visible, #qed-about summary:focus-visible { outline:2px solid var(--qa-focus); outline-offset:5px; border-radius:2px; }
:is(#qed-about,#qed-press) .qa-header { display:flex; justify-content:space-between; align-items:center; gap:20px; padding-top:max(31px,env(safe-area-inset-top,0px)); padding-bottom:31px; }
:is(#qed-about,#qed-press) .qa-brand { display:inline-flex; align-items:baseline; gap:5px; min-height:44px; padding:8px 0; font:600 28px/1 var(--display); text-decoration:none; }
:is(#qed-about,#qed-press) .qa-square { display:inline-block; width:11px; height:11px; background:currentColor; }
:is(#qed-about,#qed-press) .qa-header nav, :is(#qed-about,#qed-press) .qa-footer nav { display:flex; gap:26px; font-size:13px; }
:is(#qed-about,#qed-press) .qa-header nav a, :is(#qed-about,#qed-press) .qa-footer a { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; }
:is(#qed-about,#qed-press) .qa-header nav a:hover, :is(#qed-about,#qed-press) .qa-footer a:hover { text-decoration:underline; }
:is(#qed-about,#qed-press) .qa-skip { position:absolute; z-index:10; top:12px; left:4.8%; padding:12px 16px; background:var(--qa-paper); border:1px solid var(--qa-focus); clip-path:inset(50%); width:1px; height:1px; overflow:hidden; white-space:nowrap; }
:is(#qed-about,#qed-press) .qa-skip:focus { clip-path:none; width:auto; height:auto; }
:is(#qed-about,#qed-press) main { padding:0; min-height:0; }
:is(#qed-about,#qed-press) main:focus { outline:none; }
#qed-about .qa-intro { padding-top:86px; padding-bottom:89px; }
#qed-about .qa-label { color:var(--qa-muted); font-size:12px; line-height:1.5; font-weight:400; letter-spacing:.04em; margin:0 0 22px; }
:is(#qed-about,#qed-press) h1, :is(#qed-about,#qed-press) h2, :is(#qed-about,#qed-press) h3 { font-family:var(--body); font-weight:600; text-wrap:balance; }
:is(#qed-about,#qed-press) h1 { max-width:880px; font-size:clamp(40px,5.3vw,68px); line-height:1.08; letter-spacing:-.045em; }
:is(#qed-about,#qed-press) .qa-lead { max-width:665px; margin:28px 0 0; color:var(--qa-body); font-size:21px; line-height:1.55; letter-spacing:-.012em; }
#qed-about .qa-intro-link { display:inline-flex; align-items:center; gap:20px; margin-top:25px; min-height:44px; font-size:13px; text-decoration:none; }
#qed-about .qa-intro-link:hover { text-decoration:underline; }
#qed-about .qa-intro-link span { font-size:17px; }
#qed-about .qa-document { display:grid; grid-template-columns:220px minmax(0,760px); justify-content:space-between; column-gap:64px; border-top:1px solid var(--qa-rule); padding-top:64px; padding-bottom:82px; }
#qed-about .qa-contents { position:sticky; top:32px; align-self:start; display:flex; flex-direction:column; }
#qed-about .qa-contents .qa-label { margin-bottom:12px; }
#qed-about .qa-contents a { display:flex; align-items:center; min-height:40px; width:fit-content; color:var(--qa-body); font-size:13px; text-decoration:none; }
#qed-about .qa-contents a:hover, #qed-about .qa-contents a[aria-current="location"] { color:var(--qa-ink); text-decoration:underline; }
#qed-about .qa-sections { min-width:0; }
#qed-about .qa-section { scroll-margin-top:32px; }
#qed-about .qa-section + .qa-section { margin-top:66px; padding-top:58px; border-top:1px solid var(--qa-rule); }
#qed-about h2 { font-size:clamp(26px,2.6vw,34px); line-height:1.2; letter-spacing:-.03em; margin:0 0 20px; }
#qed-about h2[id] { scroll-margin-top:32px; }
#qed-about h3 { font-size:18px; line-height:1.4; letter-spacing:-.012em; }
#qed-about .qa-section p { color:var(--qa-body); max-width:67ch; }
#qed-about .qa-section-lead { font-size:17px; line-height:1.65; }
#qed-about .qa-process { list-style:none; counter-reset:verification; padding:0; margin:31px 0 0; }
#qed-about .qa-process > li { counter-increment:verification; display:grid; grid-template-columns:36px minmax(0,1fr); gap:16px; border-top:1px solid var(--qa-rule); padding:25px 0; }
#qed-about .qa-process > li::before { content:counter(verification,decimal-leading-zero); font:400 11px/1.8 var(--mono); color:var(--qa-muted); padding-top:3px; }
#qed-about .qa-step > p { margin-top:8px; font-size:15px; }
#qed-about details { color:var(--qa-body); }
#qed-about summary { cursor:pointer; min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:20px; list-style:none; }
#qed-about summary::-webkit-details-marker { display:none; }
#qed-about summary::after { content:"+"; flex:none; color:var(--qa-muted); font:400 20px/1 var(--body); }
#qed-about details[open] > summary::after { content:"−"; }
#qed-about .qa-detail { margin-top:6px; font-size:13px; }
#qed-about .qa-detail summary { justify-content:flex-start; gap:10px; width:fit-content; }
#qed-about .qa-detail summary::after { font-size:16px; }
#qed-about .qa-detail > div { padding:4px 0 12px; font-size:14px; }
#qed-about .qa-note { border-top:1px solid var(--qa-rule); padding-top:23px; font-size:14px; }
#qed-about .qa-trust { margin-top:10px; }
#qed-about .qa-section.qa-statement { background:var(--qa-surface); padding:36px; border:1px solid var(--qa-rule); }
#qed-about .qa-statement h2 { font-size:30px; }
#qed-about .qa-statement p { font-size:16px; }
#qed-about .qa-statuses { margin:30px 0 36px; }
#qed-about .qa-statuses > div { display:grid; grid-template-columns:120px minmax(0,1fr); gap:20px; border-top:1px solid var(--qa-rule); padding:19px 0; font-size:15px; }
#qed-about dt { font-weight:600; color:var(--qa-ink); }
#qed-about dd { margin:0; color:var(--qa-body); }
#qed-about .qa-marks h3 { margin-bottom:8px; }
#qed-about .qa-marks > p { font-size:14px; }
#qed-about .qa-mark-key { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px 20px; margin:25px 0 0; }
#qed-about .qa-mark-key dt { display:flex; align-items:center; gap:10px; font-size:13px; }
#qed-about .qa-mark-key dd { margin-top:6px; font-size:12px; color:var(--qa-muted); }
#qed-about .strip { min-width:12px; height:12px; align-items:center; }
#qed-about .strip .k { width:12px; height:12px; border-width:1px; }
#qed-about .strip .k.adv { height:6px; }
#qed-about .qa-links { display:flex; flex-wrap:wrap; gap:6px 28px; margin-top:19px; font-size:13px; }
#qed-about .qa-links a { display:inline-flex; align-items:center; gap:12px; min-height:44px; }
#qed-about .qa-faq h2 { margin-bottom:27px; }
#qed-about .qa-faq > details { border-top:1px solid var(--qa-rule); }
#qed-about .qa-faq > details:last-child { border-bottom:1px solid var(--qa-rule); }
#qed-about .qa-faq summary { padding:19px 0; color:var(--qa-ink); font-size:15px; }
#qed-about .qa-faq details > div { padding:0 30px 22px 0; font-size:15px; }
#qed-about .qa-back { display:inline-flex; align-items:center; justify-content:space-between; gap:48px; min-height:52px; margin-top:58px; padding:0 19px; border:1px solid #69675f; border-radius:2px; font-size:14px; text-decoration:none; }
#qed-about .qa-back:hover { background:var(--qa-surface); }
:is(#qed-about,#qed-press) .qa-footer { display:flex; justify-content:space-between; gap:24px; border-top:1px solid var(--qa-rule); padding-top:22px; padding-bottom:max(22px,env(safe-area-inset-bottom,0px)); color:var(--qa-muted); font-size:12px; }
:is(#qed-about,#qed-press) .qa-footer nav { font-size:12px; flex-wrap:wrap; }
:is(#qed-about,#qed-press) .qa-footer > a { gap:12px; }
@media (min-width:1600px) {
  #qed-about .qa-document { grid-template-columns:220px minmax(0,820px); justify-content:start; column-gap:clamp(64px,10vw,220px); }
}
@media (max-width:900px) {
  #qed-about .qa-document { grid-template-columns:160px minmax(0,1fr); column-gap:36px; }
  #qed-about .qa-mark-key { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #qed-about .qa-statuses > div { grid-template-columns:100px minmax(0,1fr); gap:15px; }
  #qed-about .qa-section.qa-statement { padding:26px; }
}
@media (max-width:640px) {
  :is(#qed-about,#qed-press) .qa-header { padding-top:max(25px,env(safe-area-inset-top,0px)); padding-bottom:20px; gap:10px; flex-wrap:wrap; }
  :is(#qed-about,#qed-press) .qa-header nav { gap:16px; font-size:12px; }
  #qed-about .qa-intro { padding-top:55px; padding-bottom:45px; }
  #qed-about .qa-label { margin-bottom:20px; }
  :is(#qed-about,#qed-press) h1 { font-size:clamp(36px,9.8vw,54px); }
  #qed-about .qa-title-break { display:none; }
  :is(#qed-about,#qed-press) .qa-lead { font-size:18px; margin-top:23px; }
  #qed-about .qa-intro-link { margin-top:18px; }
  #qed-about .qa-document { grid-template-columns:minmax(0,1fr); padding-top:29px; padding-bottom:48px; }
  #qed-about .qa-contents { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; border-bottom:1px solid var(--qa-rule); margin-bottom:38px; padding-bottom:24px; }
  #qed-about .qa-contents .qa-label { grid-column:1 / -1; margin-bottom:9px; }
  #qed-about .qa-contents a { min-height:44px; }
  #qed-about h2 { font-size:28px; }
  #qed-about .qa-section + .qa-section { margin-top:42px; padding-top:37px; }
  #qed-about .qa-process { margin-top:26px; }
  #qed-about .qa-process > li { grid-template-columns:25px minmax(0,1fr); gap:12px; padding:23px 0; }
  #qed-about .qa-section.qa-statement { padding:26px 22px; }
  #qed-about .qa-statement h2 { font-size:27px; }
  #qed-about .qa-statuses > div { grid-template-columns:minmax(0,1fr); gap:6px; padding:17px 0; }
  #qed-about .qa-mark-key { gap:24px 18px; }
  #qed-about .qa-mark-key dd { font-size:12px; }
  #qed-about .qa-back { margin-top:38px; }
  :is(#qed-about,#qed-press) .qa-footer { padding-top:15px; padding-bottom:max(15px,env(safe-area-inset-bottom,0px)); }
}
@media print {
  body.about-page, body.press-page, :is(#qed-about,#qed-press) { background:#fff; color:#111; --qa-ink:#111; --qa-body:#333; --qa-muted:#444; --qa-rule:#bbb; --qa-surface:#eee; --code-bg:#eee; }
  :is(#qed-about,#qed-press) .qa-header, #qed-about .qa-contents, :is(#qed-about,#qed-press) .qa-footer, #qed-about .qa-back, #qed-about .qa-intro-link { display:none; }
  #qed-about .qa-intro { padding-top:30px; padding-bottom:30px; }
  #qed-about .qa-document { display:block; padding-top:30px; }
}

/* Press: the official marks are the specimens, shown against their intended surfaces. */
#qed-press .press-intro { display:flex; justify-content:space-between; align-items:end; gap:32px; padding-top:65px; padding-bottom:60px; }
#qed-press .press-kit { flex:none; }
#qed-press .press-kit-link { display:flex; align-items:center; justify-content:space-between; gap:32px; min-height:52px; padding:0 18px; color:#201d18; background:#f3f0e8; border:1px solid #f3f0e8; border-radius:2px; text-decoration:none; font-weight:600; font-size:15px; }
#qed-press .press-kit-link:hover { background:#fff; }
#qed-press .press-kit p { margin-top:10px; font-size:12px; color:var(--qa-muted); }
#qed-press .press-contact-link { display:inline-flex; align-items:center; min-height:44px; font-size:13px; }
#qed-press .press-section { border-top:1px solid var(--qa-rule); padding-top:38px; padding-bottom:46px; }
#qed-press h2 { font-size:clamp(26px,2.6vw,34px); line-height:1.2; letter-spacing:-.03em; margin:0 0 14px; }
#qed-press h3 { font-size:16px; line-height:1.4; }
#qed-press .press-section p { color:var(--qa-body); }
#qed-press .press-specimens { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:28px 0 0; }
#qed-press .press-specimen { margin:0; min-width:0; }
#qed-press .press-preview { display:grid; place-items:center; min-height:188px; aspect-ratio:1.75; border:1px solid var(--qa-rule); border-radius:3px; overflow:hidden; }
#qed-press .press-preview-light { background:#f3f0e8; border-color:#f3f0e8; }
#qed-press .press-preview-dark { background:#000; }
#qed-press .press-preview-compact { background:#191917; }
#qed-press .press-preview img { display:block; width:70%; max-width:240px; height:auto; }
#qed-press .press-preview-compact img { width:34%; max-width:105px; }
#qed-press figcaption { display:flex; flex-wrap:wrap; gap:4px 20px; justify-content:space-between; align-items:center; padding-top:14px; }
#qed-press figcaption p { font-size:12px; color:var(--qa-muted); margin-top:3px; }
#qed-press .press-formats { display:flex; gap:16px; }
#qed-press .press-formats a, #qed-press .press-reference a { display:inline-flex; gap:6px; align-items:center; min-height:44px; font-size:13px; text-decoration:underline; }
#qed-press .press-formats a span, #qed-press .press-reference a span { text-decoration:none; }
#qed-press .press-guidance { margin-top:30px; display:grid; grid-template-columns:minmax(0,180px) minmax(0,760px); gap:20px; }
#qed-press .press-guidance p { margin:0; font-size:14px; }
#qed-press .press-info { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:64px; padding-top:46px; padding-bottom:64px; }
#qed-press .press-info p { max-width:68ch; }
#qed-press .press-reference { display:flex; flex-wrap:wrap; gap:0 24px; margin-top:14px; }
#qed-press .qa-footer [aria-current="page"] { color:var(--qa-ink); text-decoration:underline; }
@media (max-width:900px) {
  #qed-press .press-specimens { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #qed-press .press-info { gap:32px; }
}
@media (max-width:640px) {
  #qed-press .press-intro { flex-direction:column; align-items:start; gap:26px; padding-top:40px; padding-bottom:38px; }
  #qed-press .press-section { padding-top:30px; padding-bottom:36px; }
  #qed-press .press-specimens { grid-template-columns:minmax(0,1fr); gap:22px; margin-top:22px; }
  #qed-press .press-preview { min-height:156px; aspect-ratio:2; }
  #qed-press .press-guidance, #qed-press .press-info { grid-template-columns:minmax(0,1fr); gap:12px; }
  #qed-press .press-info { gap:32px; }
  :is(#qed-about,#qed-press) .qa-footer nav { gap:8px 16px; }
}
@media print {
  #qed-press .press-preview-dark, #qed-press .press-preview-compact { print-color-adjust:exact; }
  #qed-press .press-intro { padding-top:30px; padding-bottom:30px; }
  #qed-press .press-specimens { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
