/* print.css — print-only stylesheet. Hides ALL app chrome and shows only the
   #print-root region (filled by PrintButton, the Family Handbook, the ICE card
   or Family Access notes). Always dark ink on white, whatever the theme. */

#print-root { display: none; }

@media print {
  #app, #update-banner, #toast-container, .form-sheet, #more-drawer, #drawer-scrim,
  #lock-screen, #lv-db-blocked, [aria-modal="true"], .demo-bar { display: none !important; }

  html, body { background: #fff !important; color: #000 !important; padding: 0 !important; }
  #print-root { display: block !important; }

  .print-doc { max-width: 100%; padding: 0; font-family: 'DM Sans', Arial, sans-serif; color: #000; }
  .print-doc h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 24pt; margin: 0 0 2pt; }
  .print-doc h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 16pt; margin: 14pt 0 6pt; border-bottom: 1px solid #bbb; padding-bottom: 3pt; break-after: avoid; }
  .print-doc h3 { font-size: 12pt; margin: 10pt 0 4pt; break-after: avoid; }
  .print-doc ol { margin: 0 0 6pt 16pt; padding: 0; font-size: 10.5pt; }
  .print-doc li { margin: 0 0 2pt; }
  .print-sub { font-size: 10pt; color: #444; margin: 0 0 12pt; border-bottom: 1px solid #ccc; padding-bottom: 8pt; }
  .pr-note { font-size: 9.5pt; color: #444; margin: 0 0 6pt; }
  .pr-title { font-weight: 600; font-size: 11pt; margin: 0 0 3pt; }
  .pr-tag { font-weight: 400; color: #555; font-size: 9pt; }
  .pr-box { font-size: 12pt; }

  .print-record { margin: 0 0 10pt; break-inside: avoid; page-break-inside: avoid; }
  .print-record + .print-record { border-top: 1px dashed #ccc; padding-top: 8pt; }
  .print-record table { width: 100%; border-collapse: collapse; }
  .print-record th { text-align: left; width: 34%; vertical-align: top; padding: 2pt 8pt 2pt 0; font-size: 9.5pt; color: #444; font-weight: 600; }
  .print-record td { padding: 2pt 0; font-size: 10.5pt; color: #000; overflow-wrap: anywhere; }
  .print-rich { line-height: 1.6; }
  .print-rich p { margin: 0 0 6pt; }

  /* ICE wallet card at real size: 3.375in × 2.125in per face, side by side to fold */
  .ice-print .ice-card { display: flex; flex-wrap: nowrap; gap: 0; justify-content: flex-start; margin: 0 0 0.35in; break-inside: avoid; }
  .ice-print .ice-face { width: 3.375in; height: 2.125in; min-height: 0; box-sizing: border-box; border: 0.75pt solid #000; border-radius: 0.12in; padding: 0.1in 0.12in; font-size: 6.5pt; line-height: 1.3; background: #fff; color: #000; }
  .ice-print .ice-face + .ice-face { border-left: 0.75pt dashed #777; border-top-left-radius: 0; border-bottom-left-radius: 0; }
  .ice-print .ice-band { margin: -0.1in -0.12in 0.05in; padding: 0.03in 0.12in; font-size: 6.5pt; background: #F6DCDD !important; color: #8E3E48 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ice-print .ice-name { font-size: 11pt; }
  .ice-print .ice-label { font-size: 5.5pt; margin-top: 0.04in; color: #444; }
  .ice-print .ice-meta, .ice-print .ice-more, .ice-print .ice-extra { color: #444; }
  .ice-print-note { font-family: 'DM Sans', Arial, sans-serif; font-size: 9pt; color: #444; }

  @page { margin: 16mm; }
}
