/* ---------------------------------------------------------
   16. Print
   --------------------------------------------------------- */
@media print {
  /* Print is always ink-on-white, regardless of the active theme (screen
     dark mode must never bleed into a printout). Every component consumes
     these same custom properties, so redeclaring the LIGHT values here
     (docs/ui/DESIGN_CONTRACT.md §2) — with !important to outrank the
     higher-specificity :root[data-theme="dark"] block in tokens.css —
     resets the whole page to paper/ink without touching any other partial.
     This is the sanctioned literal-color exception for print (contract §1). */
  :root {
    --color-bg:            #ffffff !important;
    --color-surface:       #ffffff !important;
    --color-surface-2:     #f4f4ef !important;
    --color-border:        #dddcd3 !important;
    --color-border-strong: #999992 !important;
    --color-text:          #000000 !important;
    --color-text-muted:    #3d3f44 !important;
    --accent-fill:         #2145c9 !important;
    --accent-ink:          #2145c9 !important;
    --accent-soft:         #e9edfa !important;
    --on-accent:           #ffffff !important;
    --color-danger:        #b42332 !important;

    --st-ok:        #166534 !important; --st-ok-bg:      #e7f5ec !important; --st-ok-border:      #b7e0c5 !important;
    --st-warn:      #8a5a00 !important; --st-warn-bg:    #fdf3d8 !important; --st-warn-border:    #efd9a0 !important;
    --st-bad:       #b42332 !important; --st-bad-bg:     #fdecee !important; --st-bad-border:     #f4c2c9 !important;

    --ch-ok:   #1a7f37 !important;
    --ch-warn: #d4900e !important;
    --ch-bad:  #cf222e !important;
    --ch-na:   #9a9c94 !important;

    color-scheme: light !important;
  }

  html, body { background: #fff !important; color: #000 !important; }

  .site-header,
  .site-footer,
  .nav-toggle,
  .page-header__actions { display: none !important; }

  .site-main { padding: 0; max-width: 100%; }
  .data-table { font-size: 0.75rem; }
  /* Zebra striping is a screen scanning aid, not needed on paper — drop it to
     keep printouts ink-light. Semaforo row tints (.row-*) still print. */
  .data-table tbody tr:nth-child(even) { background: none; }

  /* Neutralise the DVR two-column shell so the printable document is full width. */
  .dvr-workspace { display: block !important; }
  .dvr-tabs { display: none !important; }
}

