/*
 * AITraining2U — shared print styles for slide decks & proposals.
 *
 * Our decks render every slide as `position:absolute; inset:0` stacked inside a
 * `position:fixed` #deck, with `html,body{overflow:hidden}`. That's great on
 * screen (one slide at a time) but means a normal print only captures the first
 * slide. This stylesheet un-stacks the slides into a one-per-page document flow
 * so the whole deck prints / exports to PDF.
 *
 * It is linked with media="print", so these rules only apply when printing:
 *   <link rel="stylesheet" href="/deck-print.css" media="print">
 *
 * Fix print behaviour once here and every deck benefits.
 */

/* Landscape pages to match 16:9 slides; drop the default page margins. */
@page { size: landscape; margin: 0; }

/* Un-clip the document so slides can flow across multiple pages. */
html, body {
  height: auto !important;
  overflow: visible !important;
  background: #fff !important;
}

/* The deck must flow normally instead of being a fixed, clipped viewport. */
#deck {
  position: static !important;
  inset: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* Every slide becomes its own fully-visible page. */
.slide {
  position: relative !important;
  inset: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  height: auto !important;
  min-height: 100vh;
  width: 100% !important;
  overflow: visible !important;
  page-break-after: always;
  break-after: page;
  page-break-inside: avoid;
}
.slide:last-child {
  page-break-after: auto;
  break-after: auto;
}

/* Slides set inline overflow-y:auto for on-screen scrolling — show it all. */
.slide[style*="overflow"] { overflow: visible !important; }

/* Respect the password gate: a locked deck must NOT leak its slides into print
   (our visibility override above would otherwise expose them even though the
   page hides #deck). Only the unlocked state reveals content. */
body.locked .slide { visibility: hidden !important; }

/* Keep slide background colours & gradients (dark / brand slides). */
* {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* Hide on-screen-only chrome. */
#progress, .deck-chrome, #counter, .hint, .corner-brand,
.navbtn, .copy-btn, .show-hint .hint { display: none !important; }
