/* Print: the answer becomes a clean A4 report.
   Loaded with media="print" on check/index.html. */

@page { size: A4; margin: 14mm 14mm 16mm; }

:root, :root[data-theme="dark"] {
  --bg: #ffffff; --bg-tint: #f1efe9; --surface: #ffffff; --surface-2: #f7f6f2;
  --ink: #111315; --ink-2: #2e3238; --muted: #5a5f66; --line: #d9d5ca; --line-strong: #b9b3a3;
  --mark: #f2b31b; --mark-soft: #fbe7b0; --mark-ink: #7a5200;
  --under: #0f6e4b; --under-soft: #d6efe3; --band: #8f5a00; --band-soft: #fbecc8; --over: #b8350f; --over-soft: #fadfd4;
  --cell-empty: #e4e0d5; --cell-fill: #111315; --cell-band: #f2b31b; --cell-over: #d24a1f;
  --shadow-1: none; --shadow-2: none;
}

html { font-size: 9.5pt; }
body { background: #fff !important; color: #111315; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
*, *::before, *::after { animation: none !important; transition: none !important; }
.reveal { opacity: 1 !important; transform: none !important; }

/* Hide everything that is not the report */
.site-header, .site-footer, .skip-link, .stepper-bar, .toast, noscript,
[data-state-panel="upload"], [data-state-panel="review"], .consent,
.screen-only, .action-bar, .answer-again, template, .all-lines summary::marker { display: none !important; }

/* Always print the answer, whatever state the screen is in */
.check .state { display: none !important; }
.check [data-state-panel="answer"] { display: block !important; padding: 0 !important; }
.wrap { max-width: none !important; padding: 0 !important; }
.print-only { display: flex !important; }

.report-brand { align-items: center; justify-content: space-between; gap: 8mm; margin-bottom: 6mm; padding-bottom: 3mm; border-bottom: 0.4pt solid var(--line); font: 500 8pt/1 "IBM Plex Mono", monospace; color: var(--muted); }
.report-brand .wordmark { height: 7mm; width: auto; color: #111315; }
.report-brand .wm-cell { fill: #f2b31b; }

.report-head { display: block; border-bottom: 1.2pt solid #111315; padding-bottom: 4mm; }
.report-head h1 { font-size: 22pt; margin: 0 0 2mm; }
.report-meta { font-size: 7.5pt; }
.report-meta .badge { border: 0.5pt solid var(--line-strong); }

.answer-summary { font-size: 12.5pt; margin: 5mm 0; max-width: none; }

.answer-hero { display: block; }
.role-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6mm; padding: 5mm; border-radius: 3mm; border: 0.5pt solid var(--line-strong); break-inside: avoid; }
.role-feature .headline-range { font-size: 26pt; }
.role-feature-grid year-grid svg { max-height: 62mm; }

/* Every role in a row of four, so nothing hides behind a tab */
.role-list { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 3mm; margin-top: 4mm; break-inside: avoid; }
.role-tab { padding: 3mm; border-radius: 2mm; border: 0.5pt solid var(--line-strong) !important; box-shadow: none !important; transform: none !important; }
.role-tab[aria-selected="true"] { border-color: #111315 !important; border-width: 1pt !important; }
.role-tab-range { font-size: 11pt; }
.role-list-note { grid-column: 1 / -1; }

.answer-block { margin-top: 7mm; }
.block-head { margin-bottom: 3mm; padding-bottom: 2mm; break-after: avoid; }
.block-head h2 { font-size: 14pt; }
.issue, .fix-item, .questions li, .drivers li, .after-fixes { break-inside: avoid; }
.issue { padding: 3mm 4mm; border-radius: 2mm; gap: 3mm; }
.issue h3 { font-size: 10.5pt; }
.issue-meta a { text-decoration: none; }
.issues, .fixes { gap: 2mm; }
.fix-item { padding: 3mm 4mm; border-radius: 2mm; grid-template-columns: 8mm 1fr 52mm; }
.fix-item::before { width: 7mm; height: 7mm; border-radius: 1.5mm; }
.fix-text h3 { font-size: 10pt; }
.after-fixes { padding: 4mm 5mm; border-radius: 2mm; }
.after-grid b { font-size: 15pt; }
.questions { border-radius: 2mm; }
.questions li { padding: 2.5mm 4mm; }
.questions p { font-size: 10pt; }

/* Show the full line table in print */
.all-lines { display: block; }
.all-lines > *:not(summary) { display: block !important; }
.all-lines summary { list-style: none; font-weight: 600; }
.table-scroll { overflow: visible !important; }
.compare { font-size: 8.5pt; }
.compare th, .compare td { padding: 1.5mm 3mm; }

.report-foot { margin-top: 8mm; font-size: 8pt; break-inside: avoid; max-width: none; }
a { color: inherit; }
