/* Counterproof. The result reads as a printed audit document: paper, ink, hairline rules, one signal colour per
   verdict. Type: Geist (interface), Geist Mono (identifiers, hashes, dates), Newsreader (display). */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --paper: #f4f2ec;
  --sheet: #fbfaf6;
  --ink: #16150f;
  --ink-2: #3d3b33;
  --muted: #67645a;
  --rule: #dcd8cc;
  --rule-2: #c9c4b5;
  --wash: #ebe8df;
  --block: #b3261e;
  --block-wash: #f6e3df;
  --review: #9a5200;
  --review-wash: #f6ead8;
  --clear: #1c6b3e;
  --clear-wash: #e2efe5;
  --focus: #2447c9;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11110f;
    --sheet: #181815;
    --ink: #edebe4;
    --ink-2: #cdcac0;
    --muted: #9c988c;
    --rule: #2c2b26;
    --rule-2: #3d3c35;
    --wash: #22211d;
    --block: #ff7d6e;
    --block-wash: #3a1915;
    --review: #f0a54a;
    --review-wash: #33240f;
    --clear: #6fcf95;
    --clear-wash: #142a1c;
    --focus: #8ea6ff;
    color-scheme: dark;
  }
}

/* --- base ----------------------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.86em; font-variant-numeric: tabular-nums slashed-zero; }
kbd { border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: 0.8em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 12px; }
.label { font: 500 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* --- masthead ------------------------------------------------------------------------------------------------- */

.masthead { border-bottom: 1px solid var(--ink); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.seal-mark { width: 24px; height: 24px; }
.masthead-nav { display: flex; gap: 22px; font-size: 14px; flex-wrap: wrap; }
.masthead-nav a { text-decoration: none; color: var(--ink-2); }
.masthead-nav a:hover { color: var(--ink); text-decoration: underline; }
.ticker { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 7px; padding-bottom: 7px; font: 12px/1.4 var(--mono); color: var(--muted); }
.ticker-lists::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rule-2); margin-right: 8px; vertical-align: 1px; }
.ticker-lists.live::before { background: var(--clear); }
.ticker-lists.down::before { background: var(--block); }
.ticker-net { text-transform: uppercase; letter-spacing: 0.08em; }

/* --- hero and query ------------------------------------------------------------------------------------------- */

.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); max-width: 900px; }
.kicker { font: 500 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.hero h1 { font: 400 clamp(40px, 7.4vw, 84px)/0.98 var(--serif); letter-spacing: -0.025em; margin: 0 0 22px; text-wrap: balance; }
.hero h1 em { font-style: italic; }
.lede { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 640px; margin: 0; text-wrap: pretty; }

.query { border-top: 1px solid var(--ink); padding-top: 14px; }
.query-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.query-label { font: 500 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.query-hint { font-size: 12px; color: var(--muted); }
.query-row { display: flex; border: 1.5px solid var(--ink); background: var(--sheet); }
.query-row:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.query-row input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 clamp(18px, 2.4vw, 24px)/1.2 var(--sans); letter-spacing: -0.01em; padding: 18px 20px; }
.query-row input::placeholder { color: var(--muted); opacity: 0.8; }
.query-row input:focus { outline: none; }
#go { border: 0; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; padding: 0 32px; letter-spacing: 0.01em; }
#go:hover { background: var(--ink-2); }
#go:focus-visible { outline-offset: -5px; outline-color: var(--paper); }
#go:disabled { cursor: progress; opacity: 0.7; }
.query-opts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; margin-top: 14px; }
.types { display: flex; gap: 4px 20px; flex-wrap: wrap; border: 0; margin: 0; padding: 0; }
.types label { position: relative; cursor: pointer; }
.types input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.types span { display: inline-block; font-size: 14px; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.types label:hover span { color: var(--ink); }
.types input:checked + span { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.types input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.person-fields { display: none; gap: 16px; flex-wrap: wrap; }
.query.person .person-fields { display: flex; }
.person-fields label { display: grid; gap: 4px; font: 500 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.person-fields input { font: 400 15px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule-2); padding: 8px 10px; width: 220px; max-width: 100%; }
.person-fields input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }

.cases { margin: 40px 0 8px; }
.case-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.case-list li { border-bottom: 1px solid var(--rule); }
.case-list li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--rule); }
.case { width: 100%; height: 100%; text-align: left; background: none; border: 0; padding: 14px 16px 16px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-content: start; transition: background-color 0.15s; }
.case:hover { background: var(--sheet); }
.case:hover .case-title { text-decoration: underline; text-underline-offset: 3px; }
.case:focus-visible { outline-offset: -2px; }
.case-n { grid-row: span 2; font: 12px/1.6 var(--mono); color: var(--muted); }
.case-title { font-weight: 500; }
.case-note { font-size: 13px; color: var(--muted); }

/* --- progress and errors -------------------------------------------------------------------------------------- */

.progress { display: grid; gap: 10px; margin: 40px 0 0; font: 13px/1.4 var(--mono); color: var(--muted); }
.progress-line { display: block; height: 2px; background: var(--rule); position: relative; overflow: hidden; }
.progress-line::after { content: ""; position: absolute; inset: 0; width: 30%; background: var(--ink); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { translate: -100% 0; } to { translate: 340% 0; } }
.error { margin: 32px 0 0; border-left: 3px solid var(--block); background: var(--block-wash); color: var(--ink); padding: 12px 16px; }

/* --- report --------------------------------------------------------------------------------------------------- */

.report { --tone: var(--muted); --tone-wash: var(--wash); margin: 40px 0 0; background: var(--sheet); border: 1px solid var(--rule-2); border-top: 0; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgb(0 0 0 / 0.25); }
.report.BLOCK { --tone: var(--block); --tone-wash: var(--block-wash); }
.report.REVIEW { --tone: var(--review); --tone-wash: var(--review-wash); }
.report.CLEAR { --tone: var(--clear); --tone-wash: var(--clear-wash); }
.report-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; background: var(--ink); color: var(--paper); font: 12px/1.4 var(--mono); padding: 8px clamp(16px, 3vw, 32px); letter-spacing: 0.02em; }
.report-meta span:first-child { text-transform: uppercase; letter-spacing: 0.08em; }
.report-inner { padding: 0 clamp(16px, 3vw, 32px) 8px; }

.verdict { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 8px clamp(20px, 4vw, 56px); align-items: end; padding: clamp(24px, 4vw, 44px) 0 clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--ink); }
.verdict-word { margin: 0; font: 400 clamp(72px, 13vw, 148px)/0.82 var(--serif); letter-spacing: -0.035em; color: var(--tone); }
.verdict-side { display: grid; gap: 10px; padding-bottom: 6px; min-width: 0; }
.verdict-subject { margin: 0; font: 600 clamp(20px, 2.4vw, 26px)/1.2 var(--sans); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.verdict-kind { font: 12px/1.4 var(--mono); color: var(--muted); }
.verdict-decided { display: grid; gap: 6px; padding: clamp(18px, 2.5vw, 26px) 0; border-bottom: 1px solid var(--rule); }
.verdict-decided .label { color: var(--tone); }
.verdict-reason { margin: 0; font: 400 clamp(19px, 2.2vw, 24px)/1.4 var(--serif); max-width: 62ch; text-wrap: pretty; overflow-wrap: anywhere; }
.verdict-next { margin: 0; color: var(--ink-2); font-size: 15px; }

.regimes-block { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.regimes-title { margin-bottom: 12px; }
.regimes { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.regime { padding: 0 14px; border-left: 1px solid var(--rule); min-width: 0; }
.regime:first-child { border-left: 0; padding-left: 0; }
.regime dt { font: 12px/1.4 var(--mono); color: var(--muted); }
.regime dd { margin: 4px 0 0; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.mark { width: 11px; height: 11px; flex: none; border: 1.5px solid currentColor; }
.is-match { color: var(--block); }
.is-match .mark { background: currentColor; }
.is-possible { color: var(--review); }
.is-possible .mark { background: linear-gradient(135deg, currentColor 50%, transparent 50%); }
.is-clear { color: var(--ink-2); }
.is-clear .mark { border-color: var(--clear); border-radius: 50%; }
.is-unavailable { color: var(--muted); }
.is-unavailable .mark { border-style: dashed; }

.gaps { margin: 18px 0 0; border-left: 3px solid var(--review); background: var(--review-wash); padding: 12px 16px; font-size: 14px; }
.gaps strong { display: block; font-weight: 600; }
.gaps ul { margin: 4px 0 0; padding-left: 18px; }

/* numbered sections: the report's own and the page's */
.section { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 12px 32px; padding: 28px 0; border-top: 1px solid var(--rule); }
main > .section { border-top-color: var(--ink); margin-top: 72px; padding-top: 18px; }
main > .section + .section { margin-top: 0; padding-top: 18px; padding-bottom: 40px; }
.section-head { display: flex; flex-direction: column; gap: 4px; }
.section-n { font: 12px/1.4 var(--mono); color: var(--muted); }
.section-head h2, .section-head h3 { margin: 0; font: 600 17px/1.3 var(--sans); letter-spacing: -0.01em; }
.section-body { min-width: 0; }
.section-body > p:first-child { margin-top: 0; }
.summary { margin: 0 0 16px; color: var(--ink-2); max-width: 70ch; }
.report .section:first-of-type { border-top: 0; }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.how h3 { font: 400 26px/1.1 var(--serif); margin: 0 0 8px; letter-spacing: -0.01em; }
.how p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* matches */
.hits { list-style: none; margin: 0; padding: 0; }
.hit { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.hit:first-child { border-top: 0; padding-top: 0; }
.hit-score { font: 500 20px/1.1 var(--mono); letter-spacing: -0.02em; }
.hit-score small { display: block; margin-top: 6px; height: 3px; background: var(--rule); }
.hit-score small i { display: block; height: 100%; background: var(--ink); }
.hit-name { font-weight: 600; overflow-wrap: anywhere; }
.hit-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.hit-verdict { font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; padding: 1px 6px; border: 1px solid currentColor; }
.hit-verdict.BLOCK { color: var(--block); }
.hit-verdict.REVIEW { color: var(--review); }
.hit-verdict.CLEAR { color: var(--muted); }
.hit-meta { font: 12px/1.5 var(--mono); color: var(--muted); }
.hit ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.hit ul li::before { content: "— "; color: var(--muted); }
.hit a { font-size: 14px; display: inline-block; margin-top: 6px; }

details { margin-top: 12px; }
details > summary { cursor: pointer; font-size: 14px; color: var(--ink-2); list-style: none; display: inline-flex; gap: 8px; align-items: center; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; font-family: var(--mono); width: 1ch; }
details[open] > summary::before { content: "−"; }
details[open] > summary { margin-bottom: 12px; }

/* ownership chain */
.chain { list-style: none; margin: 0; padding: 0; }
.link { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 14px; padding-bottom: 22px; }
.link::before { content: ""; position: absolute; left: 10px; top: 16px; bottom: -4px; border-left: 1.5px solid var(--rule-2); }
.link:last-child { padding-bottom: 0; }
.link:last-child::before { display: none; }
.link.path::before { border-left: 2px solid var(--tone); }
.node-mark { width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--ink-2); background: var(--sheet); position: relative; z-index: 1; }
.link.subject .node-mark { border-radius: 50%; }
.link.hit-node .node-mark { background: var(--block); border-color: var(--block); }
.link.possible-node .node-mark { background: linear-gradient(135deg, var(--review) 50%, var(--sheet) 50%); border-color: var(--review); }
.node-role { font: 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.node-name { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.link.hit-node .node-name { color: var(--block); }
.node-meta { font: 12px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.node-flag { margin-top: 6px; display: inline-block; font-size: 13px; color: var(--block); border-left: 2px solid var(--block); padding-left: 8px; }
.link.possible-node .node-flag { color: var(--review); border-color: var(--review); }
.edge { font: 11px/1 var(--mono); color: var(--muted); margin: 8px 0 -10px; letter-spacing: 0.04em; }
.chain-end .node-mark { border-style: dashed; border-color: var(--rule-2); background: transparent; }
.chain-end .node-name { font-weight: 400; font-size: 15px; color: var(--ink-2); }
.chain-note { margin: 22px 0 12px; padding-top: 14px; border-top: 1px dashed var(--rule-2); }

/* tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-top: 1px solid var(--rule); vertical-align: top; }
th { font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-top: 0; border-bottom: 1px solid var(--ink); }
td.mono { white-space: nowrap; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
th.num { text-align: right; }

/* evidence and seal */
.coverage { margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
.coverage dt { font: 12px/1.6 var(--mono); color: var(--muted); }
.coverage dd { margin: 0; display: flex; gap: 8px; align-items: baseline; }
.coverage dd b { font-weight: 500; white-space: nowrap; }
.coverage .failed b { color: var(--review); }
.coverage dd span { color: var(--ink-2); overflow-wrap: anywhere; }
.seal { margin-top: 24px; border: 1.5px solid var(--ink); padding: 16px; display: grid; gap: 12px; }
.seal-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seal-digest { font: 400 clamp(13px, 1.6vw, 16px)/1.6 var(--mono); display: flex; flex-wrap: wrap; gap: 0 0.6ch; overflow-wrap: anywhere; }
.seal-digest span { transition: color 0.2s, background-color 0.2s; transition-delay: calc(var(--i) * 35ms); }
.seal.ok .seal-digest span { color: var(--clear); }
.seal.bad .seal-digest span { color: var(--block); }
.seal-status { font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.seal-status b { font-weight: 600; }
.seal.ok .seal-status b { color: var(--clear); }
.seal.bad .seal-status b { color: var(--block); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { border: 1px solid var(--ink); background: transparent; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.btn:hover { background: var(--wash); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--ink-2); }
.btn:disabled { opacity: 0.55; cursor: default; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 14px; }
.checks li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 12px; }
.check-tag { font: 500 11px/1.6 var(--mono); letter-spacing: 0.08em; }
.check-tag.pass { color: var(--clear); }
.check-tag.fail { color: var(--block); }
.check-tag.na { color: var(--muted); }
.checks span:last-child { overflow-wrap: anywhere; }
.verify-head { margin: 16px 0 0; font-weight: 600; }

/* second opinion */
.opinion { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--rule); }
.opinion:first-of-type { border-top: 0; padding-top: 0; }
.opinion-name { font-weight: 600; }
pre.digest { white-space: pre-wrap; max-height: 320px; overflow: auto; background: var(--wash); padding: 12px; }
.digest { font: 12px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }

/* watchlist and verifier */
.watch-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule); }
.watch-row:first-child { border-top: 0; }
.watch-name { font-weight: 600; overflow-wrap: anywhere; }
.watch-change { font-size: 13px; color: var(--review); font-weight: 500; }
.tag { font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; padding: 1px 6px; border: 1px solid currentColor; }
.tag.BLOCK { color: var(--block); }
.tag.REVIEW { color: var(--review); }
.tag.CLEAR { color: var(--clear); }
.tag.NONE { color: var(--muted); }
.link-btn { background: none; border: 0; padding: 2px 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--block); }
.drop { display: grid; place-items: center; gap: 10px; border: 1.5px dashed var(--rule-2); padding: 28px 16px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--sheet); color: var(--ink); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.drop input { font-size: 14px; max-width: 100%; color: var(--muted); }
.drop input::file-selector-button { font: 500 14px/1 var(--sans); color: var(--paper); background: var(--ink); border: 0; padding: 10px 14px; margin-right: 12px; cursor: pointer; }
.drop input:focus { outline: none; }

.foot { border-top: 1px solid var(--ink); margin-top: 24px; padding: 24px 0 56px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; }
.foot p { margin: 0; }
.foot-sources { color: var(--muted); font-size: 13px; }

/* --- motion: entrances only, and only when the reader allows it ----------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .report > *, .report-inner > * { transition: opacity 0.45s ease, translate 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
  @starting-style { .report > *, .report-inner > * { opacity: 0; translate: 0 10px; } }
  .verdict-word { transition: opacity 0.6s ease, letter-spacing 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  @starting-style { .verdict-word { opacity: 0; letter-spacing: 0.04em; } }
  .link { transition: opacity 0.4s ease, translate 0.4s ease; transition-delay: calc(200ms + var(--i, 0) * 120ms); }
  @starting-style { .link { opacity: 0; translate: -6px 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .progress-line::after { animation: none; width: 100%; opacity: 0.4; }
  .seal-digest span { transition: none; }
}

/* --- narrow screens ------------------------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .section { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .section-head { flex-direction: row; gap: 10px; align-items: baseline; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .case-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-list li:not(:nth-child(3n + 1)) { border-left: 0; }
  .case-list li:nth-child(2n) { border-left: 1px solid var(--rule); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .query-hint { display: none; }
  .query-row { flex-direction: column; }
  .query-row input { padding: 14px 16px; }
  #go { padding: 14px; }
  .case-list { grid-template-columns: minmax(0, 1fr); }
  .case-list li:nth-child(2n) { border-left: 0; }
  .case { padding: 12px 0; }
  .verdict { grid-template-columns: minmax(0, 1fr); }
  .regimes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .regime:nth-child(3) { border-left: 0; padding-left: 0; }
  .regime-body { display: none; }
  .hit { grid-template-columns: minmax(0, 1fr); }
  .hit-score { display: flex; align-items: center; gap: 10px; font-size: 15px; }
  .hit-score small { margin: 0; width: 80px; }
  .coverage { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .coverage dd { margin-bottom: 8px; flex-wrap: wrap; }
  .watch-row { grid-template-columns: auto minmax(0, 1fr); }
  .watch-row .link-btn { grid-column: 2; justify-self: start; }
}

/* --- print: the report alone, as a one-page audit record ------------------------------------------------------ */

@media print {
  :root { --paper: #fff; --sheet: #fff; --ink: #000; --ink-2: #222; --muted: #555; --rule: #bbb; --rule-2: #999; --wash: #f2f2f2; color-scheme: light; }
  body { font-size: 11pt; }
  .skip, .masthead, .hero, .query, .cases, .progress, .error, main > .section, .foot, .actions, .seal-actions, details > summary { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .report { margin: 0; border: 0; box-shadow: none; }
  .report-meta { background: none; color: #000; border-bottom: 2px solid #000; padding: 0 0 6px; }
  .report-inner { padding: 0; }
  .verdict-word { font-size: 64pt; }
  .section { grid-template-columns: 9rem minmax(0, 1fr); break-inside: avoid; }
  .table-scroll { overflow: visible; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; overflow-wrap: anywhere; }
}
