/* Print / PDF stylesheet — used for browser printing and for generating the
   PAIA manual PDF. Keeps brand type, drops all site chrome. */

@page {
  size: A4;
  margin: 20mm 18mm 22mm;
}

@media print {
  html { scroll-behavior: auto; }

  body {
    background: #fff !important;
    color: #1F2937 !important;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  /* Drop site chrome */
  .site-header,
  .site-footer,
  .skip-link,
  .breadcrumb,
  .nav-toggle,
  .btn-row,
  .cta-band { display: none !important; }

  /* Reveal anything the scroll observer has not fired on */
  [data-reveal] { opacity: 1 !important; transform: none !important; }

  /* Page hero becomes a document masthead */
  .page-hero {
    background: #fff !important;
    color: #1F2937 !important;
    padding: 0 0 8mm !important;
    border-bottom: 2pt solid #111827;
    margin-bottom: 8mm;
  }
  .page-hero::before, .page-hero::after { display: none !important; }
  .page-hero h1 {
    color: #111827 !important;
    font-size: 24pt !important;
    max-width: none !important;
    margin-bottom: 4mm;
  }
  .page-hero .lede {
    color: #374151 !important;
    font-size: 11pt !important;
    max-width: none;
  }
  .page-hero .eyebrow { color: #2563EB !important; font-size: 8pt !important; }
  .page-hero .eyebrow::before { background: #2563EB !important; }

  .section { padding-block: 0 !important; }
  .wrap, .wrap-narrow { width: 100% !important; max-width: none !important; }
  .prose { max-width: none !important; }

  /* Typography */
  h2 {
    font-size: 13pt !important;
    color: #111827 !important;
    margin-top: 7mm !important;
    margin-bottom: 2.5mm !important;
    break-after: avoid;
    page-break-after: avoid;
  }
  h3 { font-size: 11.5pt !important; break-after: avoid; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  .prose li::before { background: #2563EB !important; }

  /* Document meta block */
  .doc-meta {
    border: 0.5pt solid #D1D5DB !important;
    background: #F9FAFB !important;
    padding: 5mm !important;
    margin-bottom: 7mm !important;
    font-size: 9.5pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .doc-meta div { grid-template-columns: 48mm 1fr !important; }

  /* Tables */
  .tbl-wrap { overflow: visible !important; }
  .tbl {
    min-width: 0 !important;
    font-size: 9.5pt;
    break-inside: auto;
  }
  .tbl thead { display: table-header-group; }
  .tbl thead th {
    background: #F3F4F6 !important;
    color: #111827 !important;
    border-bottom: 0.75pt solid #9CA3AF !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .tbl th, .tbl td {
    border-bottom: 0.5pt solid #E5E7EB !important;
    padding: 2mm 3mm !important;
  }
  .tbl tr { break-inside: avoid; page-break-inside: avoid; }

  .callout {
    background: #F9FAFB !important;
    border: 0.5pt solid #D1D5DB !important;
    border-left: 2pt solid #2563EB !important;
    break-inside: avoid;
  }

  /* Links: show the target, since a printed link is not clickable */
  a { color: #1D4ED8 !important; text-decoration: none; }
  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8.5pt;
    color: #6B7280;
    word-break: break-all;
  }
  .prose a[href^="/"]::after {
    content: " (prospraenterprises.com" attr(href) ")";
    font-size: 8.5pt;
    color: #6B7280;
  }
  a[href^="mailto:"]::after { content: none !important; }
}
