/* Paper: the result page printed or saved as PDF (SPEC "Decisions of 24 Nov 2026", point 3).
   The colour roles turn black on white in tokens.css; this file hides what paper does not need
   and keeps tables and boxes whole. Only var(--…) tokens. */

@layer print {
  @media print {
    body { font-size: 11pt; background: var(--color-surface); }
    .topbar, .skip-link, nav, form, button, .btn, .actions, .no-print, .section-nav, .breadcrumb, .sticky-summary { display: none !important; }
    .print-only { display: block; }
    .print-head { margin: 0 0 var(--space-3); padding-bottom: var(--space-2); border-bottom: var(--border-thin) solid var(--color-text); }
    .page { max-width: none; padding: 0; }
    a { color: var(--color-text); text-decoration: none; }
    .ext-link::after { content: ""; }
    .table-wrap { overflow: visible; box-shadow: none; }
    .card, .kv, .stat, .table-wrap, .next-step, .form-section { box-shadow: none; }
    .stat { background: var(--color-surface); }
    /* the four key figures in one row on A4 */
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
    .stat { padding: var(--space-2) var(--space-3); }
    .stat__value { font-size: var(--text-lg); }
    .stat__sub { font-size: var(--text-xs); }
    .table-wrap, .kv, tr, .verdict, .alert, details { break-inside: avoid; }
    thead { display: table-header-group; }
    h2, h3 { break-after: avoid; }
    .data th, .data td { white-space: normal; }
    .data .col-focus { background: none; font-weight: var(--weight-semibold); }
    .data--sticky tr > * { position: static !important; box-shadow: none !important; }
    /* the result page on paper: one column, assumptions first, every collapsed part open
       (static/forms.js opens <details> before printing; ::details-content covers a browser
       printing without JavaScript where it is supported) */
    .result-layout { display: block; }
    .result-layout__aside { position: static; margin-bottom: var(--space-5); }
    details::details-content { content-visibility: visible; display: contents; }
    .disclosure__summary::after { display: none; }
  }
}
