/* Plain, text-first report pages: one self-hosted monospace font, near-black, one accent.
   Status markers are words in brackets, so they read without colour. Shares its look with stook.dev. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --bg: #0e0e0c;
  --bg-2: #171714;
  --line: #34332d;
  --text: #e6e2d8;
  --muted: #a8a397;
  --accent: #e8915a;
  --pass: #8fd19e;
  --warn: #e9c46a;
  --fail: #ff8f7f;
  --error: #c9a8ff;
  --na: #a8a397;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f4ee;
    --bg-2: #ebe8df;
    --line: #cfcabd;
    --text: #1c1b17;
    --muted: #5c584f;
    --accent: #a8480f;
    --pass: #2a6f39;
    --warn: #7d5800;
    --fail: #b02a1e;
    --error: #6a3dab;
    --na: #5c584f;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--mono); font-size: 14px; line-height: 1.55;
  -webkit-text-size-adjust: 100%; overflow-wrap: anywhere;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--text); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 82ch; margin: 0 auto; padding: 0 16px; }
code, pre { font-family: var(--mono); font-size: 1em; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.muted { color: var(--muted); }

header.top { padding: 14px 0 0; }
header.top .wrap { display: flex; gap: 1ch; align-items: center; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6ch; color: var(--text); font-weight: 700; text-decoration: none; min-height: 40px; }
.brand svg { width: 16px; height: 16px; color: var(--accent); }
.crumb { color: var(--muted); }
.crumb a { display: inline-block; padding: 10px 0; }

h1, h2, h3 { font-size: 1em; line-height: 1.4; margin: 0; }
h1 { font-size: 1.15em; font-weight: 700; margin-top: 20px; }
h2 { font-weight: 700; margin: 0 0 6px; }
h2::before { content: "## "; color: var(--muted); font-weight: 400; }
h3 { font-weight: 700; }
.eyebrow { color: var(--muted); margin: 0; }

.fixture-banner { margin: 14px 0 0; padding: 6px 1ch; border: 1px dashed var(--warn); color: var(--warn); }
.fixture-tag { color: var(--warn); }

.head { padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.desc { margin: 4px 0 0; color: var(--muted); }
.facts { margin: 10px 0 0; }
.facts div { display: grid; grid-template-columns: 18ch 1fr; gap: 1ch; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.checked { margin: 10px 0 0; }
.links { margin: 6px 0 0; display: flex; gap: 2ch; flex-wrap: wrap; }
.links a { display: inline-block; padding: 10px 0; }

.ev { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact { margin: 0; }
.ev > .muted { margin: 2px 0 8px; }

.checks, .rows, .cmds { list-style: none; margin: 0; padding: 0; }
.check { padding: 10px 0; border-top: 1px dotted var(--line); }
.check:first-child { border-top: 0; }
.check-head { display: flex; gap: 1ch; align-items: baseline; flex-wrap: wrap; }
.check .fact { margin-top: 2px; }
.check .summary { margin: 2px 0 0; color: var(--muted); }

.st { font-weight: 700; white-space: pre; }
.st-pass { color: var(--pass); }
.st-warn { color: var(--warn); }
.st-fail { color: var(--fail); }
.st-error { color: var(--error); }
.st-not_applicable { color: var(--na); }

details.findings { margin: 6px 0 0; }
details.findings summary { cursor: pointer; color: var(--text); padding: 6px 0; list-style: none; }
details.findings summary::-webkit-details-marker { display: none; }
details.findings summary::before { content: "[+] "; color: var(--muted); }
details.findings[open] summary::before { content: "[-] "; }
details.findings ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 1ch; border-left: 1px solid var(--line); }
.finding { padding: 4px 0 4px 1ch; }
.finding p { margin: 0; }
.f-detail, .f-loc { color: var(--muted); }
.f-link a { display: inline-block; padding: 8px 0; }
.sev { font-weight: 700; }
.sev-critical, .sev-high { color: var(--fail); }
.sev-medium { color: var(--warn); }
.sev-low, .sev-info { color: var(--muted); }
.withheld { margin: 6px 0 0; color: var(--warn); }

.cmds li { margin: 0 0 10px; }
pre {
  margin: 4px 0 0; padding: 8px 1ch; background: var(--bg-2); border-left: 2px solid var(--line);
  overflow-x: auto; white-space: pre; line-height: 1.45;
}
.raw { margin: 2px 0 0; color: var(--muted); }
.repeat > h3 { margin-top: 12px; }
.scanners { border-collapse: collapse; margin-top: 4px; }
.scanners th, .scanners td { text-align: left; padding: 1px 2ch 1px 0; vertical-align: top; font-weight: 400; }
.scanners th { color: var(--muted); }

.row { padding: 6px 0; border-top: 1px dotted var(--line); }
.row:first-child { border-top: 0; }
.row-link { display: flex; gap: 2ch; flex-wrap: wrap; align-items: baseline; padding: 4px 0; }
.row-name { font-weight: 700; }
.row-date { color: var(--muted); }
.strip { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2ch; }
.strip li { white-space: nowrap; }
.strip .k { color: var(--muted); }
.legend { margin: 8px 0 0; }

footer.method { padding: 16px 0 28px; color: var(--muted); }
footer.method h2 { color: var(--text); }
footer.method ul { margin: 4px 0 0; padding-left: 2ch; }
footer.method li + li { margin-top: 2px; }

@media (max-width: 480px) {
  body { font-size: 13px; }
  .facts div { grid-template-columns: 1fr; gap: 0; padding: 2px 0; }
}

/* Features in forks. */
.fork-list { list-style: none; margin: 6px 0 8px; padding: 0; }
.fork-list > li { padding: 8px 0; border-top: 1px dotted var(--line); overflow-wrap: anywhere; }
.fork-list .titles { list-style: none; margin: 4px 0 0; padding: 0 0 0 2ch; }
.fork-list .titles li::before { content: "- "; color: var(--muted); }
.how { margin: 8px 0 0; padding-left: 2ch; }

/* Preview: screenshots of the official demo, desktop beside phone, one caption below. */
.shots-fig { margin: 8px 0 0; }
.shots { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 2ch; align-items: start; }
.shots.one { grid-template-columns: minmax(0, 1fr); }
.shot { display: block; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--bg-2); }
.shots.one .shot-phone { max-width: 240px; }
.shots-fig figcaption { margin-top: 6px; color: var(--muted); }
@media (max-width: 480px) {
  .shots { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shot-phone { max-width: 60%; }
}
