/* HASL Brand Book — Print stylesheet
 * Activated via media="print" linkage.
 * Goal: produce a clean A4 PDF when user runs Cmd+P → Save as PDF.
 */

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

@media print {
  /* Force background colors and gradients to render */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: var(--color-void);
  }

  /* Hide top navigation chrome — it doesn't function in print */
  .bb-chrome-nav {
    display: none;
  }

  /* Compact the page container for print */
  .bb-page {
    padding: 0;
    max-width: none;
  }

  /* Each chapter starts on a fresh page */
  main {
    page-break-before: auto;
  }

  /* Section blocks should not break across pages */
  section {
    page-break-inside: avoid;
  }

  /* Prevent orphans / widows in body text */
  p {
    orphans: 3;
    widows: 3;
  }

  /* Remove animations in print */
  .motion-glow-pulse,
  .demo-btn {
    animation: none !important;
    transition: none !important;
  }

  /* Coverline at end of each page should still render */
  .bb-coverline {
    margin-top: 40px;
  }
}
