/* ============================================================
   VYRON — print.css
   PDF export: one slide per landscape page, all content shown.
   Use the browser's "Print" (Cmd/Ctrl + P) → Save as PDF,
   landscape, margins: none, background graphics: ON.
   Tip: add ?print to the URL to force this layout on screen too.
   ============================================================ */

@page { size: 1280px 720px; margin: 0; }

@media print, (min-width: 1px) and (prefers-print) {
  html.print-mode, html.print-mode body { overflow: visible !important; height: auto !important; }
}

@media print {
  html, body { overflow: visible !important; height: auto !important; background: #000 !important; }

  #progress, #controls, #section-tag, #help, #hint,
  .nav-edge, #audio-el { display: none !important; }

  #deck { position: static !important; }

  .slide {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
    width: 1280px; height: 720px;
    page-break-after: always; break-after: page;
    overflow: hidden;
  }

  /* Avoid a trailing blank page after the final slide */
  .slide:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  /* Drop the costly feTurbulence grain in print (smaller, cleaner files) */
  .amb::after { display: none !important; }

  /* Reveal every fragment & staggered child in print */
  .fragment, .stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .slide.is-active .bg-media img,
  .slide.is-active .bg-media .ph { animation: none !important; transform: scale(1.05) !important; }

  /* Colour-open overlays are a live-only beat: exports show the dark frame. */
  .bg-color { opacity: 0 !important; }

  /* Force backgrounds to print */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
