/* ==========================================================================
   Print — a separate delivery channel, not a nicety.
   One A4 sheet handed out at the CNAP; the only channel that reaches
   people over 60 without a smartphone.
   ========================================================================== */

@media print {
  @page { margin: 14mm; }

  html { font-size: 12pt; }

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

  .site-header,
  .site-footer,
  .header-tools,
  .skip-link,
  .btn-row,
  .btn,
  .chip-row,
  .map-frame,
  .no-print { display: none !important; }

  main { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }

  h1 { font-size: 18pt; margin-bottom: 4mm; }
  h2 { font-size: 14pt; }

  .print-only { display: block !important; }

  .step,
  .card {
    border: none !important;
    border-bottom: 1px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 3mm 0 !important;
    margin: 0 0 3mm !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Hand-tickable box before every step */
  .step__title::before { content: "☐  "; font-size: 14pt; }

  .step__docs {
    background: transparent !important;
    padding: 0 !important;
    font-size: 11pt;
  }

  .note {
    background: transparent !important;
    color: #000 !important;
    padding: 1mm 0 !important;
    font-size: 11pt;
  }
  .note--blocker::before { content: "! "; font-weight: bold; }

  /* Phone numbers must survive on paper */
  a[href^="tel:"] { font-weight: bold; text-decoration: none; color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  a[href^="tel:"]::after,
  a[href^="#"]::after { content: ""; }

  .verified { border-top: 1px solid #999 !important; font-size: 9pt; }
}

.print-only { display: none; }

/* Folded groups must print open: paper has no disclosure triangle, and a
   printed page with hidden sections silently loses half the catalogue. */
details.group > .rows,
details.group[open] > .rows { display: block !important; }
details.group:not([open]) > .rows { display: block !important; }
