/* A saved or printed check ("Save as PDF"): every finding open with its steps, on white,
   with nothing to press. preview.js opens the collapsed parts before printing. */
@page { margin: 16mm 14mm; }
html, body { background: #fff !important; color: #142D4E !important; }
body { font-size: 11pt; line-height: 1.45; }
main, .result { padding: 0 !important; margin: 0 !important; max-width: none !important; }

/* Controls and screen-only parts. */
.top, .foot, .later, .send, .platform-pick, .actions, .btn, button, .copy, .maker, .spinner, select, .linkish { display: none !important; }
.kit-kind label { display: none !important; }
.rtg-consent { display: none !important; }
:focus, :focus-visible { outline: none !important; }

/* The report's own heading: what was checked, when, and where the live check is. */
.print-head[hidden] { display: block !important; margin: 0 0 14pt; padding-bottom: 8pt; border-bottom: 1px solid #B9B09D; }
.print-head p { margin: 0 0 3pt; font-size: 10.5pt; color: #4E5E75; overflow-wrap: anywhere; }
.print-head .print-brand { font-size: 12pt; font-weight: 600; color: #142D4E; }

/* Plain blocks: no card fills or shadows. A finding may run onto the next page (a whole one
   moved over left pages half empty), but its steps, evidence and list items stay together. */
.first-card, .panel, .howto, .tags-panel, .kit, .postcard, .record, .sample { background: none !important; box-shadow: none !important; }
.record, .panel, .howto, .previews, .kit-list li, .ready-block li { break-inside: avoid; }
h1, h2, h3, summary, .howto-title, .area-label { break-after: avoid; }
p, li { orphans: 3; widows: 3; }
/* Plain blocks rather than grids, so a card whose opening lines don't fit starts on the next
   page instead of leaving its empty top edge behind. */
.first-list { display: block !important; }
.first-card { display: block !important; position: relative; padding-left: 52pt !important; margin-bottom: 12pt; }
.first-card .num { position: absolute; left: 12pt; top: 16pt; }
.previews { grid-template-columns: 1fr 1fr !important; }
.area { margin-top: 20pt !important; }
.enter { animation: none !important; opacity: 1 !important; transform: none !important; }

/* Collapsed rows print as headings with their text under them. */
summary { min-height: 0 !important; }
.row-body { padding-left: 0 !important; }

/* Help links keep their address on paper. */
.howto-link a::after, .records a::after { content: attr(href); display: block; font-size: 10.5pt; color: #4E5E75; overflow-wrap: anywhere; }
pre, code { white-space: pre-wrap !important; overflow-wrap: anywhere; }
.evidence pre { font-size: 10.5pt; }
.evidence summary { color: #4E5E75 !important; text-decoration: none !important; font-size: 10.5pt; }
