/* assets/css/print.css */
@media print {
  /* Hide navigation chrome */
  header, .masthead, .site-menu, .side-menu, footer { display: none !important; }

  /* Remove background colours / shading */
  * { background: transparent !important; box-shadow: none !important; }

  /* Force ALL text to black for ink-friendly print (no coloured subtitles) */
  *, *::before, *::after { color: #000 !important; }

  /* Layout */
  body { margin: 0; }
  main.page-main { padding: 0 !important; }
  .content { max-width: none !important; width: 100% !important; }

  /* Print-only header */
  .print-legal { display: block !important; }

  /* Ensure links are readable in print */
  a, a:visited { color: #000 !important; text-decoration: underline; }

  /* Avoid awkward breaks */
  h1, h2, h3 { break-after: avoid-page; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}

/* 2026-01 print fixes */
@media print {
  html, body { font-size: 11pt !important; line-height: 1.35 !important; }

  /* Never print UI controls (print links/instructions) */
  .no-print { display: none !important; }

  /* Full width print layout */
  main.page-main,
  .page-main,
  .content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  /* Print header */
  .print-legal { display: block !important; }
  .print-banner{ text-align: center; }
  .print-banner img {
    width: auto !important;
    max-width: 260px !important;
    max-height: 80px !important;
    height: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
  }
  .print-legal-line{ text-align: center; }

  /* Homepage: section-only printing support
     JS sets body.print-section-mode and marks a single section as .print-target
     before calling window.print(). */
  body.print-section-mode .section { display: none !important; }
  body.print-section-mode .section.print-target { display: block !important; }
}
