:root {
  --ground: #161616; --ground-2: #1c1c1b; --card: #1f1f1e; --line: #2c2c2a;
  --bone: #f2eee6; --dot: #f2f2f0; --dim: #70706e; --muted: #8a8f8c;
  --seal: #d04a3b; --seal-deep: #b6382c; --pass: #5fa37a; --warn: #c99a3e;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--bone); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--bone); text-decoration-color: var(--seal); text-underline-offset: 3px; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: .86em; background: #262624; padding: 1px 6px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
::selection { background: var(--seal); color: #fff; }

/* ---------- nav ---------- */
nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px;
  background: linear-gradient(#161616ee, #16161600); }
nav img { height: 30px; display: block; }
nav img.logo-light, :root[data-theme="light"] nav img.logo-dark { display: none; }
:root[data-theme="light"] nav img.logo-light { display: block; }
nav .nav-right { display: flex; align-items: center; gap: 22px; }
nav .links { display: flex; gap: 26px; font-size: 14px; }
nav .links a { color: var(--muted); text-decoration: none; transition: color .2s; }
nav .links a:hover, nav .links a:focus-visible, nav .links a[aria-current] { color: var(--bone); }
nav .links a { position: relative; }
nav .links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--seal);
  transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
nav .links a:hover::after, nav .links a:focus-visible::after, nav .links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
nav .links a[aria-current]::after { height: 2px; }  /* the section on screen (set by app.js) */
@media (prefers-reduced-motion: reduce) { nav .links a::after { transition: none; } }

/* ---------- hero ---------- */
/* One centred column. The hands are drawn by app.js in the space --hands-h reserves above the copy, and the two are centred
   together as a group; a short screen grows the hero rather than letting the hands cover the headline. */
.hero { position: relative; min-height: min(100vh, 1080px); min-height: min(100svh, 1080px); overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 74px 0 7vh; }
#dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.coin-tilt { position: absolute; width: var(--coin, 108px); height: var(--coin, 108px); transform: translate(-50%, -50%); perspective: 700px; z-index: 3; pointer-events: none; }
.coin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: spin 9s linear infinite; }
.coin > * { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: visible; }
.coin .edge { filter: brightness(.55); }
.coin .back { transform: rotateY(180deg) translateZ(10px); }
.coin-glow { position: absolute; left: 50%; top: 50%; width: 260%; height: 260%; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, #d04a3b2e 0%, #d04a3b0d 35%, transparent 65%); animation: breathe 4.5s ease-in-out infinite; z-index: -1; }
@keyframes spin { to { transform: rotateY(360deg); } }
@keyframes breathe { 50% { opacity: .55; transform: translate(-50%, -50%) scale(.9); } }
.hero-copy { position: relative; z-index: 4; margin-top: var(--hands-h, 240px); text-align: center; }
.kicker { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--seal); margin: 0 0 20px; }
h1, h2 { text-wrap: balance; }
.hero h1 { font-size: clamp(34px, 5vw, 76px); line-height: 1.04; letter-spacing: -.025em; margin: 0; font-weight: 750; }
.hero p.sub { color: #c9c5bd; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.5; max-width: 58ch; margin: 22px auto 30px; text-wrap: balance; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .btn { padding: 14px 26px; font-size: 15px; }
.hero .btn.primary { box-shadow: 0 0 34px #d04a3b4d; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: #1f1f1ecc;
  color: var(--bone); font: 600 14px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, border-color .2s, background .2s; }
.btn:hover { transform: translateY(-1px); border-color: #4a4a47; }
.btn.primary { background: var(--seal); border-color: var(--seal); color: #fff; }
.btn.primary:hover { background: #e05645; }

/* ---------- sections ---------- */
section.band { padding: 110px 0; border-top: 1px solid var(--line); }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 14px; }
.lead { color: #c9c5bd; font-size: 18px; max-width: 64ch; margin: 0 0 36px; }

/* ---------- verifier console ---------- */
.console { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.picker { padding: 14px; display: flex; flex-direction: column; gap: 8px; align-self: start; }
.picker h4 { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 8px 6px 4px; }
.cert-btn { text-align: left; border: 1px solid transparent; background: transparent; color: var(--bone); border-radius: 10px; padding: 10px 12px; cursor: pointer;
  font: 14px var(--sans); transition: background .15s, border-color .15s; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; }
.cert-btn:hover { background: #262624; }
.cert-btn.on { background: #2a2321; border-color: #5a2e28; }
.cert-btn .m { font-weight: 650; }
.cert-btn .s { font: 600 13px var(--mono); color: var(--bone); align-self: center; justify-self: end; grid-row: span 2; }
.cert-btn .r { font: 12px var(--mono); color: var(--muted); }
.drop { margin-top: 6px; border: 1px dashed #3a3a37; border-radius: 10px; padding: 14px; color: var(--muted); font-size: 13px; text-align: center; cursor: pointer; transition: border-color .2s, color .2s; }
.drop:hover, .drop.over { border-color: var(--seal); color: var(--bone); }
.stage { padding: 22px 24px 24px; position: relative; overflow: hidden; min-height: 620px; }
.stage-head { min-height: 96px; display: flex; justify-content: space-between; gap: 14px 18px; align-items: flex-start; flex-wrap: wrap; }
.stage-head .who-cert { flex: 1 1 0; min-width: 240px; }
.stage-head .t { font-size: 20px; font-weight: 700; }
.stage-head .meta { font: 13px var(--mono); color: var(--muted); margin-top: 4px; }
.cheat { margin: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cheat .lbl { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--seal); margin-right: 4px; }
.chip { border: 1px solid #3a3a37; background: #232322; color: #dcd8cf; border-radius: 999px; padding: 7px 13px; font: 13px var(--sans); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--seal); color: #fff; }
.chip.on { background: #3a1f1b; border-color: var(--seal); color: #fff; }
.chip.reset { border-style: dashed; }
.checks { list-style: none; margin: 16px 0 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid #262624; opacity: .45; transition: opacity .3s; }
.checks li.active, .checks li.pass, .checks li.fail, .checks li.info, .checks li.skip { opacity: 1; }
.checks li.na { opacity: .7; } .checks li.na .ic { border-color: #4a4a47; color: var(--muted); }  /* evidence this kind of round doesn't carry */
.checks .ic { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #4a4a47; display: grid; place-items: center; font: 700 12px var(--mono); margin-top: 1px; }
.checks li.running .ic { border-color: var(--bone); border-top-color: transparent; animation: rot .7s linear infinite; }
.checks li.pass .ic { border-color: var(--pass); color: var(--pass); }
.checks li.fail .ic { border-color: var(--seal); background: var(--seal); color: #fff; }
.checks li.info .ic { border-color: var(--warn); color: var(--warn); }
.checks li.skip .ic { border-color: var(--warn); color: var(--warn); }
@keyframes rot { to { transform: rotate(360deg); } }
.checks .nm { font-weight: 650; }
.checks .nm small { font: 12px var(--mono); color: var(--muted); font-weight: 400; margin-left: 8px; }
.checks .dt { grid-column: 2; font: 12.5px var(--mono); color: var(--muted); word-break: break-word; }
.checks li.fail .dt { color: #ff8b7c; }
/* the verdict stamp: in the head row beside the title (under it on a narrow screen), never on top of the title or its links */
.stamp { flex: none; max-width: 100%; margin: 2px 4px 8px 0; padding: 12px 18px; border: 4px solid currentColor; border-radius: 10px; font: 800 26px/1 var(--mono);
  letter-spacing: .06em; transform: rotate(-4deg) scale(1); opacity: 0; pointer-events: none; text-align: center; background: #1f1f1ee6; }
.stamp small { display: block; font: 600 12px/1.35 var(--mono); letter-spacing: .02em; margin: 6px auto 0; max-width: 30ch; overflow-wrap: anywhere; text-wrap: balance; }
.stamp.show { animation: stamp .45s cubic-bezier(.2, .9, .3, 1.3) forwards; }
.stamp.ok { color: var(--pass); } .stamp.bad { color: var(--seal); } .stamp.cant { color: var(--warn); }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(1.8); } 100% { opacity: 1; transform: rotate(-4deg) scale(1); } }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; }
details.note { margin-top: 8px; } details.note summary { cursor: pointer; color: #b9b5ac; } details.note[open] summary { margin-bottom: 6px; }
.diff { margin-top: 12px; font: 12.5px var(--mono); color: #ff8b7c; background: #2a1d1b; border: 1px solid #4a2a25; border-radius: 8px; padding: 10px 12px; display: none; }
.diff.show { display: block; }

/* ---------- results ---------- */
.rounds { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
/* one round showing (the chart's): the card takes the full width and lays its runs out in two columns */
.rounds.one { grid-template-columns: 1fr; }
.rounds.one .round { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.rounds.one .round > h3, .rounds.one .round > .meta { grid-column: 1 / -1; }
.more { margin-top: 16px; }
[tabindex="-1"]:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }  /* where focus lands after "Show all" */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 0; }
.mode { padding: 18px 20px; }
.mode h3 { margin: 0 0 4px; font-size: 16px; }
.mode .tag { font: 12px var(--mono); color: var(--muted); margin: 0 0 10px; }
.mode p { margin: 0; font-size: 14px; line-height: 1.5; color: #d9d5cc; }
/* the comparison chart: one round at a time, one series, a 95% interval per bar; columns, or rows in a narrow box */
.viz { position: relative; margin: 0 0 22px; padding: 24px 26px 20px; container-type: inline-size; }
.viz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.viz-title { display: block; font-weight: 650; font-size: 17px; }
.viz-sub { display: block; margin-top: 4px; font: 12.5px/1.5 var(--mono); color: var(--muted); }
.viz-rounds { display: flex; gap: 6px; flex-wrap: wrap; }
.viz-rounds .chip { padding: 5px 11px; font-size: 12.5px; }
.viz-plot { --h: 260px; position: relative; display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); padding-left: 44px; }
.viz-plot .grid { position: absolute; left: 0; right: 0; top: 0; height: var(--h); pointer-events: none; }
.viz-plot .grid span { position: absolute; left: 44px; right: 0; bottom: calc(var(--g) * 100%); border-top: 1px solid var(--line); }
.viz-plot .grid b { position: absolute; left: -44px; top: 0; transform: translateY(-50%); font: 500 11px var(--mono); color: var(--dim); }
.viz .col { position: relative; display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0 4px; margin: 0; color: inherit; font: inherit; cursor: pointer; border-radius: 8px; }
.viz .track { position: relative; display: block; width: 100%; height: var(--h); }
.viz .fill { position: absolute; left: 50%; bottom: 0; width: 24px; transform: translateX(-50%); height: max(2px, calc(var(--v) * 100%)); background: var(--seal); border-radius: 4px 4px 0 0;
  transition: height .9s cubic-bezier(.2, .8, .2, 1) var(--d), width .9s cubic-bezier(.2, .8, .2, 1) var(--d), filter .15s; }
.viz .lora .fill { background: repeating-linear-gradient(135deg, var(--seal) 0 4px, #7d2a22 4px 7px); }
.viz .whisker { position: absolute; left: 50%; bottom: calc(var(--lo) * 100%); height: calc((var(--hi) - var(--lo)) * 100%); width: 1.5px; transform: translateX(-50%); background: rgba(242, 238, 230, .72); z-index: 1; opacity: calc(var(--v) * 99); transition: opacity .3s calc(var(--d) + .8s); }
.viz .whisker::before, .viz .whisker::after { content: ""; position: absolute; left: -4px; width: 9.5px; height: 1.5px; background: inherit; }
.viz .whisker::before { top: 0; } .viz .whisker::after { bottom: 0; }
.viz .val { position: absolute; left: 50%; bottom: calc(var(--hi) * 100% + 8px); transform: translateX(-50%); font: 600 12.5px var(--mono); color: var(--bone); opacity: calc(var(--v) * 99); transition: opacity .3s calc(var(--d) + .8s); white-space: nowrap; }
.viz .lab { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 12px; text-align: center; min-height: 40px; }
.viz .lab .n { font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.viz .lab .v { font: 11px var(--mono); color: var(--muted); }
.viz .col:hover .fill, .viz .col:focus-visible .fill { filter: brightness(1.22); }
.viz .col:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.viz-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.viz-key .sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: var(--seal); margin-left: 12px; }
.viz-key .sw:first-child { margin-left: 0; }
.viz-key .sw.ci { background: linear-gradient(rgba(242, 238, 230, .6), rgba(242, 238, 230, .6)) center / 1.5px 100% no-repeat; }
.viz-key .sw.hatch { background: repeating-linear-gradient(135deg, var(--seal) 0 3px, #7d2a22 3px 5px); }
.viz-tip { position: absolute; z-index: 6; width: 280px; padding: 12px 14px; background: #0f0f0e; border: 1px solid #3a3a37; border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); pointer-events: none; }
.viz-tip .tv strong { font: 650 24px var(--mono); } .viz-tip .tv span { font: 14px var(--mono); color: var(--muted); }
.viz-tip .tv em { font: 600 13px var(--mono); font-style: normal; color: var(--bone); margin-left: 10px; padding: 2px 7px; border-radius: 99px; background: #3a1f1b; }
.viz-tip .tm { margin: 4px 0 10px; font: 12px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.viz-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 12.5px; }
.viz-tip dt { color: var(--muted); } .viz-tip dd { margin: 0; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.viz-tip .th { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--seal); }
@container (max-width: 620px) {
  .viz-plot { grid-template-columns: 1fr; padding-left: 0; row-gap: 4px; }
  .viz-plot .grid { display: none; }
  .viz .col { display: grid; grid-template-columns: 112px 1fr; align-items: center; padding: 4px 0; }
  .viz .lab { order: -1; align-items: flex-start; margin: 0; min-height: 0; text-align: left; padding-right: 10px; }
  .viz .track { height: 26px; width: calc(100% - 44px); background: linear-gradient(#2a2a28, #2a2a28) left center / 100% 14px no-repeat; border-radius: 0 4px 4px 0; }
  .viz .fill { left: 0; top: 50%; bottom: auto; transform: translateY(-50%); height: 14px; width: max(2px, calc(var(--v) * 100%)); border-radius: 0 4px 4px 0; }
  .viz .lora .fill { background: repeating-linear-gradient(45deg, var(--seal) 0 4px, #7d2a22 4px 7px); }
  .viz .whisker { left: calc(var(--lo) * 100%); bottom: auto; top: 50%; width: calc((var(--hi) - var(--lo)) * 100%); height: 1.5px; transform: translateY(-50%); }
  .viz .whisker::before, .viz .whisker::after { left: auto; top: -4px; width: 1.5px; height: 9.5px; }
  .viz .whisker::before { left: 0; } .viz .whisker::after { right: 0; bottom: auto; }
  .viz .val { left: calc(var(--hi) * 100% + 8px); bottom: auto; top: 50%; transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) { .viz .fill, .viz .whisker, .viz .val { transition: none; } }
.round { padding: 24px; }
.round h3 { margin: 0 0 4px; font-size: 18px; }
.round .meta { font: 12.5px var(--mono); color: var(--muted); margin-bottom: 18px; }
.bar-row { margin: 16px 0; }
.bar-row .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bar-row .name { font-weight: 650; } .bar-row .served { font: 12px var(--mono); color: var(--muted); }
.bar-row .score { font: 700 26px var(--mono); } .bar-row .score small { font-size: 14px; color: var(--muted); }
.bar { height: 10px; background: #2a2a28; border-radius: 99px; overflow: hidden; margin: 8px 0 8px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--seal-deep), var(--seal)); border-radius: 99px; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; font: 12px var(--mono); }
.pill { padding: 3px 9px; border-radius: 99px; background: #262624; color: #cfcac0; }
.pill.ok { color: var(--pass); } .pill.bad { color: #ff8b7c; } .pill.fmt { color: var(--warn); } .pill.cut { color: #a9a6ff; }
.callout { margin-top: 26px; padding: 18px 22px; border-left: 3px solid var(--seal); background: #1f1f1e; border-radius: 0 10px 10px 0; color: #d9d5cc; max-width: 80ch; }
.callout ul { margin: 8px 0 10px; padding-left: 18px; } .callout li { margin: 4px 0; }

/* ---------- explorer ---------- */
.ex-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.qa { display: grid; grid-template-columns: 54px 1fr 340px; gap: 4px 16px; padding: 14px 4px; border-bottom: 1px solid #262624; align-items: start; }
.qa .n { font: 12px var(--mono); color: var(--muted); }
.qa .q { font-size: 15px; } .qa .q a { font: 12px var(--mono); color: var(--muted); margin-left: 6px; }
.qa .a { font: 13px var(--mono); }
.qa .a .exp { color: var(--muted); display: block; }
.qa .a .said { display: block; word-break: break-word; }
.tag { font: 600 11px var(--mono); padding: 2px 8px; border-radius: 99px; margin-right: 6px; }
.tag.correct { background: #1e3327; color: var(--pass); } .tag.wrong { background: #3a1f1b; color: #ff8b7c; } .tag.format { background: #3a301b; color: var(--warn); } .tag.cut { background: #25233f; color: #a9a6ff; }

/* ---------- how / refusals / repro ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.step { padding: 18px 16px; }
.step b { display: block; font: 700 12px var(--mono); color: var(--seal); margin-bottom: 8px; }
.step h4 { margin: 0 0 6px; font-size: 16px; } .step p { margin: 0; font-size: 13.5px; color: #bdb9b0; }
.refusals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ref { padding: 16px 18px; }
.ref code { background: none; padding: 0; color: #ff8b7c; font-size: 12.5px; }
.ref.cant code { color: var(--warn); } .ref.ok code { color: var(--pass); }
.ref p { margin: 6px 0 0; font-size: 13.5px; color: #bdb9b0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split .panel { padding: 22px 24px; }
.split ul { margin: 8px 0 0; padding-left: 18px; color: #c9c5bd; font-size: 14.5px; }
pre.cmd { background: #111; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; overflow: auto; font-size: 13.5px; color: #e9e5dc; position: relative; }
pre.cmd .c { color: var(--dim); }
#repro p.cite { font: 15px/1.5 var(--sans); color: var(--muted); margin: 20px 0 0; max-width: 80ch; }  /* the outside pilot */
.copy { position: absolute; top: 10px; right: 10px; }
footer { padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .console, .rounds, .rounds.one .round, .split, .modes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .qa { grid-template-columns: 40px 1fr; } .qa .a { grid-column: 2; }
  nav .links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .coin, .coin-glow, .checks li.running .ic { animation: none; }
  .stamp.show { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* review fixes: status labels, full answers, links, mobile menu, screen-reader text */
.checks .st { font: 600 11px var(--mono); margin-left: 10px; color: var(--muted); letter-spacing: .02em; }
.checks li.pass .st { color: var(--pass); } .checks li.fail .st { color: #ff8b7c; } .checks li.info .st, .checks li.skip .st { color: var(--warn); }
.who { color: var(--bone); font-size: 16px; max-width: 70ch; margin: 4px 0 26px; padding-left: 14px; border-left: 2px solid var(--seal); }
.who a { white-space: nowrap; }
.links { font: 12px var(--mono); color: var(--muted); margin-top: 8px; } .links a, .stage-head .meta a { color: var(--muted); }
.links a:hover, .stage-head .meta a:hover { color: var(--bone); }
details.said summary { cursor: pointer; list-style: none; } details.said summary::-webkit-details-marker { display: none; }
details.said summary u { color: var(--muted); text-decoration-color: var(--seal); }
pre.full { white-space: pre-wrap; background: #111; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0 10px; font-size: 12px; max-height: 340px; overflow: auto; color: #dcd8cf; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.drop:focus-visible, .chip:focus-visible, .cert-btn:focus-visible, .btn:focus-visible, nav .menu:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
nav .menu, nav .theme { background: #1f1f1ecc; color: var(--bone); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 13px var(--sans); cursor: pointer; }
nav .menu { display: none; } nav .theme { order: 2; }  /* the theme switch sits last on a wide screen, beside Menu on a narrow one */
nav .theme:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
@media (max-width: 980px) {
  nav .menu { display: inline-flex; }
  body.menu-open nav .links { display: flex; position: absolute; top: 64px; right: 16px; flex-direction: column; align-items: flex-start; gap: 14px; background: #1f1f1e; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
}

@media (max-width: 760px) { .kicker { letter-spacing: .06em; line-height: 1.5; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
/* explorer rows: let long identifiers wrap instead of widening the grid past a narrow phone screen */
.qa > * { min-width: 0; } .qa .q, .qa .a { overflow-wrap: anywhere; }

/* ---------- light theme (the dark page above is the default and is unchanged; this only overrides it) ---------- */
:root[data-theme="light"] {
  --ground: #f6f3ec; --ground-2: #efebe2; --card: #fffdf8; --line: #ddd8cc;
  --bone: #1b1b1a; --dot: #1b1b1a; --dim: #8b8b86; --muted: #5d625f;
  --seal: #b6382c; --seal-deep: #9c2f24; --pass: #2f7a52; --warn: #8a6412;
  --soft: #45484a; --tint: #ebe6da; --edge: #c9c3b5; --blush: #f6e3df; --alert: #b6382c; --violet: #4a44b8;
}
[data-theme="light"] code { background: var(--tint); }
[data-theme="light"] pre.cmd code, [data-theme="light"] pre.full code, [data-theme="light"] .ref code { background: none; }
[data-theme="light"] nav { background: linear-gradient(#f6f3ecee, #f6f3ec00); }
[data-theme="light"] .hero p.sub, [data-theme="light"] .lead, [data-theme="light"] .split ul, [data-theme="light"] .mode p,
[data-theme="light"] .callout, [data-theme="light"] .step p, [data-theme="light"] .ref p { color: var(--soft); }
[data-theme="light"] .btn, [data-theme="light"] nav .menu, [data-theme="light"] nav .theme { background: #fffdf8cc; }
[data-theme="light"] .btn:hover { border-color: #a9a294; }
[data-theme="light"] .btn.primary { background: var(--seal); } [data-theme="light"] .btn.primary:hover { background: #c9463a; }
[data-theme="light"] .hero .btn.primary { box-shadow: 0 0 34px #b6382c33; }
[data-theme="light"] .cert-btn:hover { background: var(--ground-2); }
[data-theme="light"] .cert-btn.on { background: var(--blush); border-color: #d9a39b; }
[data-theme="light"] .drop { border-color: var(--edge); }
[data-theme="light"] .chip { border-color: var(--edge); background: var(--card); color: var(--bone); }
[data-theme="light"] .chip:hover { color: var(--bone); border-color: var(--seal); }
[data-theme="light"] .chip.on { background: var(--blush); color: var(--bone); }
[data-theme="light"] .checks li, [data-theme="light"] .qa { border-bottom-color: var(--line); }
[data-theme="light"] .checks .ic, [data-theme="light"] .checks li.na .ic { border-color: #a9a294; }
[data-theme="light"] .checks li.pass .ic { border-color: var(--pass); } [data-theme="light"] .checks li.fail .ic { border-color: var(--seal); }
[data-theme="light"] .checks li.info .ic, [data-theme="light"] .checks li.skip .ic { border-color: var(--warn); }
[data-theme="light"] .checks li.running .ic { border-color: var(--bone); border-top-color: transparent; }
[data-theme="light"] .checks li.fail .dt, [data-theme="light"] .checks li.fail .st, [data-theme="light"] .pill.bad,
[data-theme="light"] .ref code, [data-theme="light"] .diff { color: var(--alert); }
[data-theme="light"] .ref.cant code { color: var(--warn); } [data-theme="light"] .ref.ok code { color: var(--pass); }
[data-theme="light"] .stamp { background: #fffdf8e6; }
[data-theme="light"] details.note summary { color: var(--muted); }
[data-theme="light"] .diff { background: var(--blush); border-color: #e2b8b1; }
[data-theme="light"] .viz .whisker { background: rgba(27, 27, 26, .8); }
[data-theme="light"] .viz-key .sw.ci { background: linear-gradient(rgba(27, 27, 26, .7), rgba(27, 27, 26, .7)) center / 1.5px 100% no-repeat; }
[data-theme="light"] .viz-tip { background: var(--card); border-color: var(--edge); box-shadow: 0 12px 32px rgba(40, 30, 10, .16); }
[data-theme="light"] .viz-tip .tv em { background: var(--blush); }
[data-theme="light"] .bar { background: #e7e2d6; }
[data-theme="light"] .pill { background: var(--tint); color: var(--soft); }
[data-theme="light"] .pill.ok { color: var(--pass); } [data-theme="light"] .pill.fmt { color: var(--warn); } [data-theme="light"] .pill.cut { color: var(--violet); }
[data-theme="light"] .callout { background: var(--card); }
[data-theme="light"] .tag.correct { background: #dff0e5; } [data-theme="light"] .tag.wrong { background: var(--blush); color: var(--alert); }
[data-theme="light"] .tag.format { background: #f3e9cf; } [data-theme="light"] .tag.cut { background: #e4e2f7; color: var(--violet); }
[data-theme="light"] body.menu-open nav .links { background: var(--card); }
@container (max-width: 620px) { [data-theme="light"] .viz .track { background: linear-gradient(#e7e2d6, #e7e2d6) left center / 100% 14px no-repeat; } }
/* command blocks stay dark in both themes, like a terminal */
[data-theme="light"] pre.cmd .chip, [data-theme="light"] pre.cmd .btn { border-color: #3a3a37; background: #232322; color: #dcd8cf; }
