/* Typefaces (SIL Open Font License), served from bitsig.net. */
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #0e0e0d;
  --paper: #f3f1ea;
  --bg: #f3f1ea;
  --fg: #0e0e0d;
  --muted: #605e57;
  --line: #d8d4c8;
  --field: #8a877e;
  --panel: #e9e6dc;
  --accent: #00a83a;
  --accent-ink: #007a2a;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211;
    --fg: #ecebe4;
    --muted: #918f87;
    --line: #2b2b28;
    --field: #6b6a64;
    --panel: #1b1b19;
    --accent: #00ff41;
    --accent-ink: #00ff41;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121211;
  --fg: #ecebe4;
  --muted: #918f87;
  --line: #2b2b28;
  --field: #6b6a64;
  --panel: #1b1b19;
  --accent: #00ff41;
  --accent-ink: #00ff41;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--fg); color: var(--bg); text-decoration: none; }
.skip:focus { top: 8px; }
::placeholder { color: var(--muted); opacity: 1; }

code, pre, kbd, samp, .mono { font-family: var(--mono); font-size: 0.92em; }

/* The shared bit: black when 0, white when 1, whatever the page theme. */
[data-bit-surface] {
  background: var(--ink);
  color: var(--paper);
  transition: background-color 140ms ease, color 140ms ease;
}
[data-bit-surface][data-bit="1"] { background: var(--paper); color: var(--ink); }

.topbar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mark { font: 700 20px/1 var(--mono); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.mark::after { content: "✓"; color: var(--accent); font-weight: 700; display: inline-block; line-height: 0; font-size: 1.5em; margin-left: 1px; transform: translateY(-0.03em); }
.navs { display: flex; align-items: flex-end; gap: 22px; }
.topbar nav { display: flex; gap: 16px; font-size: 15px; }


.fn-label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 0 6px; background: var(--bg); color: var(--muted); font: 500 10px/12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }

h1 { font: 600 clamp(28px, 3.4vw, 44px)/1.08 var(--sans); letter-spacing: -0.02em; margin: 10px 0 0; max-width: 18ch; }
h2 { font: 600 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.h1-link { text-decoration-thickness: 3px; text-underline-offset: 6px; }
.lede { margin: 0; color: var(--muted); max-width: 52ch; }

.result {
  display: block;
  min-height: 2.2em;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  font: 700 clamp(30px, 5vw, 64px)/1.1 var(--mono);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.result.small { font-size: clamp(16px, 2vw, 22px); font-weight: 500; letter-spacing: 0; word-break: break-all; }
.result.list { font-size: clamp(18px, 2.2vw, 26px); font-weight: 500; letter-spacing: 0; word-break: normal; }
.result.list ol { margin: 0; padding-left: 1.6em; }

.result.spaced { margin-top: 20px; }
.prov.after { margin-top: 10px; }
.prov + .prov { margin-top: 4px; }
.stack { margin-top: 18px; }
.btns .btn { margin: 0 6px 6px 0; }
pre.receipt { font-size: 13px; white-space: pre-wrap; word-break: break-all; }
.ops { margin-top: 18px; }
.share code { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.choices { margin: 0; padding-left: 1.6em; columns: 2 220px; }
.choices li { break-inside: avoid; }
.field select {
  font: 15px/1.4 var(--mono);
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  border-radius: 0;
  width: 100%;
}
.prov { margin: -10px 0 0; font: 13px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; min-height: 1.5em; }

.ops { display: flex; flex-wrap: wrap; gap: 8px; }
.ops button, .btn {
  font: 500 15px/1 var(--mono);
  padding: 12px 16px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  display: inline-block;
}
.ops button:hover, .btn:hover { background: var(--fg); color: var(--bg); }
.ops button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field textarea {
  font: 15px/1.4 var(--mono);
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  border-radius: 0;
  width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--fg); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; }

details.seed summary { cursor: pointer; font-size: 14px; color: var(--muted); }
details.seed[open] summary { margin-bottom: 10px; }
.note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.note code { overflow-wrap: anywhere; word-break: break-all; }

pre {
  margin: 0;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow-x: auto;
  line-height: 1.6;
}
.prompt { color: var(--muted); user-select: none; }

.foot { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Inner pages ---------- */

.page { max-width: 820px; margin: 0 auto; padding: 28px 20px 64px; padding-right: 96px; }
.page .topbar { margin-bottom: 8px; }
.page .lede { margin-top: 14px; }
.page section { margin-top: 40px; }
.page p, .page li { max-width: 68ch; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
td code { white-space: nowrap; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.steps li::before { content: counter(s); font: 600 13px/1.6 var(--mono); color: var(--muted); }
.steps li > div { min-width: 0; }
.steps code { overflow-wrap: anywhere; word-break: break-all; }
.ok { color: var(--accent-ink); font-weight: 600; }
.bad { color: var(--fg); font-weight: 600; }

.verify-form { display: grid; gap: 14px; margin-top: 20px; }
.verify-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.org { margin-top: 40px; }
.org .org-status { margin: 0 0 14px; }
.org-new { display: grid; gap: 14px; }
.org-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.muted { color: var(--muted); }
table.log td:first-child { width: 4.5em; }
table.log .note { margin: 0; }

.toc { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font: 14px/1.5 var(--mono); }
.about-lead { font-size: 19px; font-weight: 500; max-width: 60ch; }
h3.sub { font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
dl.about { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
dl.about dt { font-weight: 600; }
dl.about dd { margin: 0; color: var(--muted); max-width: 60ch; }

fieldset.when { border: 1px solid var(--line); padding: 16px 18px 14px; margin: 0; display: grid; gap: 14px; min-width: 0; }
fieldset.when legend { padding: 0 6px; font-size: 14px; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; font: 500 14px/1 var(--mono); padding: 10px 14px; border: 1px solid var(--line); }
.seg input:checked + span { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.when .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.when .when-at { grid-template-columns: 1fr 1fr 1.4fr; }
.when-preview { margin: 0; }

.sitefoot { max-width: 820px; margin: 0 auto; padding: 24px 20px 48px; padding-right: 96px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.sitefoot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 8px 0 0; color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.groups .result h2 { margin-bottom: 10px; }
.prose h2 { margin-top: 32px; }
.prose li { margin-bottom: 6px; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.guide-list li > a { font-weight: 600; }
.guide-list .note { margin: 2px 0 0; }
h2.stack { margin-top: 36px; }
.fill-numbers { grid-template-columns: 1fr 1fr auto !important; align-items: end; }

/* ---------- Corner bit on inner pages ---------- */

.corner {
  all: unset;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font: 600 42px/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line), 0 6px 20px rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
}
.corner small {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font: 500 9px/1 var(--mono);
  opacity: 0.6;
}
.corner:active { transform: scale(0.94); }
.corner:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.corner.nope { animation: nope 260ms ease; }
@keyframes nope { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Narrow screens ---------- */

@media (max-width: 820px) {
  .page { padding: 20px 16px 56px; padding-right: 16px; }
  .page .topbar { padding-right: 70px; }
  .topbar nav { gap: 12px; font-size: 14px; }
  .page .topbar { flex-wrap: wrap; row-gap: 10px; }
  .mark { font-size: 18px; }
  .corner { position: absolute; top: 12px; right: 12px; width: 52px; height: 52px; font-size: 32px; }
  .verify-form .row { grid-template-columns: 1fr; }
  .sitefoot { padding: 20px 16px 40px; }
  .fill-numbers { grid-template-columns: 1fr 1fr !important; }
  .when .row, .when .when-at { grid-template-columns: 1fr 1fr; }
  .when .when-at label:last-child { grid-column: 1 / -1; }
  .navs { gap: 14px; flex-wrap: wrap; }
  .topbar nav { gap: 12px; }
  dl.about { grid-template-columns: 1fr; gap: 2px; }
  dl.about dd { margin-bottom: 10px; }
  .org-row { grid-template-columns: 1fr; }
  td code { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Homepage selector ---------- */
.home h1 { max-width: 24ch; }
.h1-sub { display: block; margin-top: 10px; font-size: 0.6em; line-height: 1.2; }
.tool-lines { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { display: grid; grid-template-rows: auto auto 1fr; gap: 6px; padding: 16px; border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: var(--fg); }
.tile .preview { align-self: end; }
.tile.wide { grid-column: 1 / -1; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.tile.wide .preview { grid-row: 1 / 3; grid-column: 2; margin-top: 0; }
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 12px; }
  .tile-name { font-size: 16px; }
  .tile-what { font-size: 13px; }
  .preview { padding: 8px; font-size: 11px; }
  .pv-big { font-size: 18px; }
  .pv-sub { display: none; }
  .pv-cols { gap: 6px; }
  .tile.wide { grid-template-columns: 1fr; }
  .tile.wide .preview { grid-row: auto; grid-column: auto; margin-top: 6px; }
}
.tile:hover, .tile:focus-visible { border-color: var(--fg); color: var(--fg); }
.tile:hover .tile-name span { color: var(--accent); }
.tile-name { font: 600 19px/1.2 var(--sans); }
.tile-what { font-size: 14px; color: var(--muted); }
.preview { display: grid; align-content: start; gap: 4px; margin-top: 8px; padding: 12px; background: var(--panel); border: 1px solid var(--line); font: 13px/1.45 var(--mono); }
.pv-big { font: 700 24px/1.1 var(--mono); letter-spacing: -0.02em; }
.pv-sub { color: var(--muted); font-size: 12px; }
.pv-sub::before { content: "✓ "; color: var(--accent); }
.pv-list { margin: 0; padding-left: 1.5em; }
.pv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-cols b { display: block; font-weight: 600; color: var(--muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.pv-code { white-space: nowrap; }

/* Mode strip on each use-case page */
.modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.modes a { font: 500 13px/1 var(--mono); padding: 8px 10px; border: 1px solid var(--line); text-decoration: none; }
.modes a:hover { border-color: var(--fg); color: var(--fg); }
.modes a[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Draw result extras */
.snake { margin-top: 14px; }
.snake summary { cursor: pointer; font: 500 14px/1.4 var(--mono); }
.snake table { margin-top: 10px; font-size: 14px; }
.lottery-help .note { margin-top: 0; }
.scroll-x { overflow-x: auto; }
.snake td, .snake th { white-space: nowrap; }

/* ---------- Audit fixes: field borders, tap targets ---------- */
.field input, .field textarea, .field select { border-color: var(--field); }
.topbar nav a, .sitefoot a { display: inline-block; padding: 10px 0; }
.sitefoot nav { column-gap: 18px; }
.scroll-x:focus-visible { outline-offset: 0; }

/* ---------- Audit fixes: draw page ---------- */
.banner { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--fg); background: var(--panel); }
.tag { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 3px 5px; vertical-align: middle; }
.viewer { margin-top: 14px; }
.viewer p { margin: 0 0 10px; }
.viewer-check { margin-top: 14px; }
.viewer-check p { margin: 0 0 4px; }
.viewer-check.ok > p:first-child { font-weight: 600; }
.viewer-check.bad { padding: 12px 14px; border: 1px solid var(--fg); background: var(--panel); font-weight: 600; }
.organizer { margin-top: 18px; }
.organizer summary { cursor: pointer; font: 500 14px/1.4 var(--mono); color: var(--muted); }
.proof { margin-top: 14px; }
.proof summary { cursor: pointer; font: 500 14px/1.4 var(--mono); color: var(--muted); }
.org-inline { margin-bottom: 0; }

/* Top nav: use cases, then tools */
.navs { display: flex; flex-wrap: wrap; gap: 0 22px; align-items: baseline; }
.topbar nav.aux { padding-left: 22px; border-left: 1px solid var(--line); }
@media (max-width: 640px) { .topbar nav.aux { padding-left: 0; border-left: 0; } }

.devlist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 24px; }
.devlist a { font: 600 17px/1.3 var(--sans); }

/* ---------- Batch 1: import, odds, board, print ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.file-btn { cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.import-row { align-items: end; }
.odds { margin-top: 10px; }
.odds-table td, .odds-table th { white-space: nowrap; text-align: right; padding: 4px 8px; }
.odds-table td:first-child, .odds-table th:first-child { text-align: left; }
.odds-box { margin-top: 12px; }
.odds-box summary { cursor: pointer; font: 500 14px/1.4 var(--mono); }
ol.choices.long { columns: 3 180px; }
.board th, .board td { text-align: center; padding: 6px 8px; white-space: nowrap; }
.board thead th { vertical-align: bottom; }
@media print {
  .corner, .topbar, .sitefoot, .skip, .no-print, .btns { display: none !important; }
  body { background: #fff; color: #000; }
  .scroll-x { overflow: visible; }
  .board { font-size: 10px; }
  .page { max-width: none; padding: 0; }
}
.board-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 8px 0 12px; }
.board-controls .field { width: 150px; margin: 0; }
.board-controls .btns { margin: 0; }

/* ---------- Batch 2: reveal, certificate, embed ---------- */
.reveal-mode .sitefoot, .reveal-mode .skip, .cert-mode .sitefoot, .embed-mode .sitefoot, .embed-mode .skip { display: none; }
.reveal-mode { background: var(--ink); color: var(--paper); }
.reveal { min-height: 100vh; max-width: 1100px; margin: 0 auto; padding: 32px 24px; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 16px; }
.reveal .mark { color: var(--paper); }
.reveal h1 { color: var(--paper); font-size: clamp(28px, 5vw, 56px); margin: 0; }
.reveal-stage { display: grid; place-content: center; text-align: center; min-height: 40vh; font: 600 clamp(24px, 4vw, 40px)/1.2 var(--sans); }
.reveal-stage .rv-label { display: block; font: 500 clamp(16px, 2.5vw, 28px)/1.2 var(--mono); color: #00ff41; letter-spacing: 0.08em; }
.reveal-stage .rv-big { display: block; font: 700 clamp(40px, 9vw, 120px)/1.05 var(--mono); letter-spacing: -0.02em; animation: rv-in 400ms ease-out; }
@keyframes rv-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal-stage .rv-big { animation: none; } }
.reveal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font: 15px/1.3 var(--mono); }
.reveal-list li { border: 1px solid #3a3a36; padding: 6px 10px; }
.reveal-list .rv-label { color: #00ff41; margin-right: 8px; }
.reveal-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.reveal .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.reveal .btn[disabled] { opacity: 0.4; }
.reveal-order { font: 14px var(--mono); }
.reveal-order select { margin-left: 6px; }
.reveal-foot { color: #b9b7ae; font-size: 13px; margin: 0; }
.cert { max-width: 820px; margin: 0 auto; padding: 24px 20px; }
.cert-sheet { border: 2px solid var(--fg); padding: 36px 40px; background: var(--bg); }
.cert-sheet header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.cert-kind { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cert-sheet h1 { margin: 22px 0 20px; }
.cert-result { font: 600 20px/1.5 var(--mono); }
.cert-facts { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.cert-facts th { text-align: left; vertical-align: top; width: 150px; padding: 8px 12px 8px 0; color: var(--muted); font-weight: 500; }
.cert-facts td { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.cert-facts th { border-top: 1px solid var(--line); }
code.sig { font-size: 11px; word-break: break-all; }
@media print { .cert-sheet { border: 2px solid #000; } @page { margin: 14mm; } }
.embed { padding: 14px 16px; max-width: none; }
.embed-head { margin: 0 0 8px; font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.embed-result { font: 600 16px/1.4 var(--mono); margin: 0 0 8px; padding-left: 1.4em; }
p.embed-result { padding-left: 0; }
.embed-check { font-size: 13px; color: var(--muted); margin: 0; }
.embed-check.ok { color: var(--accent-ink); }
.embed-check.bad { color: #b3261e; }
.embed-box { margin-top: 14px; }
.embed-box summary { cursor: pointer; font: 500 14px/1.4 var(--mono); }
.embed-box pre { white-space: pre-wrap; word-break: break-all; font-size: 12px; }

/* ---------- Batch 3: hidden names ---------- */
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; margin-top: 12px; }
.check input { width: 18px; height: 18px; }
.mask-note { margin-top: 4px; }
.mask-box { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); background: var(--panel); }
.mask-box h2 { margin-top: 0; }
.mask-check { align-items: end; }
.mask-names { font: 14px/1.5 var(--mono); }
.linklike { background: none; border: 0; padding: 0 0 0 6px; font: inherit; font-size: 12px; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }

.santa li { margin: 2px 0; }
.santa .muted { font-size: 0.7em; }
.prose blockquote { margin: 16px 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--line); color: var(--muted); }
.prose h3 { font: 600 17px/1.3 var(--sans); margin: 22px 0 6px; }
.table-wrap { overflow-x: auto; margin: 12px 0 18px; }
.prose code { overflow-wrap: anywhere; }

/* Secret Santa: teams and pairs */
fieldset.excl { border: 1px solid var(--line); padding: 16px 18px 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
fieldset.excl legend { padding: 0 6px; font-size: 14px; color: var(--muted); }
.excl-verdict { min-height: 1.4em; margin: 0; }
.excl-verdict.bad { font-weight: 600; }
.excl-verdict.ok { font-weight: 600; }
button.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.nowrap { white-space: nowrap; }
@media (min-width: 1100px) { .sitefoot { max-width: 960px; } }
