/* ------------------------------------------------------------------
   Print as an A4 document (loaded with media="print").
   The 16:9 "like a monitor" mode switches this file off (see main.js).
   ------------------------------------------------------------------ */
@page { size: A4; margin: 14mm 12mm; }
@media print {
  html { scroll-behavior: auto; }
  body { font-size: 10.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Things that only make sense on screen */
  .top, .fly, .mobile-panel, .cookie-banner, .skip-link, .lang-switch, .map, .contact-side .btn,
  .proj-nav, .cert-nav, .dots, .flow-controls, .cert-filters, .lightbox, .doc-viewer,
  .admin-hint, #wpadminbar, video, .hero-ctas, .svc-actions, .svc-cta .btn, .ams .btn,
  .back-link, .ams-ctas, .doc-cta { display: none !important; }
  html { margin-top: 0 !important; }
  /* Show everything that normally appears on scroll */
  .reveal-on .rv, .tl.tl-anim .tl-card { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js-fly .hero-logo img { visibility: visible !important; }
  .steps li::after { transform: none !important; }
  .steps.steps-anim li::before, .steps.steps-anim li h3 { opacity: 1 !important; color: inherit; }
  .steps.steps-anim li h3 { color: var(--fg) !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Calmer spacing, no full-screen sections */
  .screen, .contact, .hero { padding-block: 10mm !important; min-height: 0 !important; border-bottom: 0; }
  .screen:nth-of-type(even) { background: none; }
  .wrap { max-width: none; padding-inline: 0; }
  h1 { font-size: 26pt !important; }
  h2 { font-size: 19pt !important; }
  .head { margin-bottom: 6mm; }
  /* Backgrounds behind text: keep the page white and readable */
  .hero-media, .band-media, .svc-bg { display: none !important; }
  .hero, .contact { background: none !important; }
  .card { box-shadow: none !important; }
  /* Keep blocks whole across pages */
  .card, .svc, .value, .tl-item, .doc, .proj, .steps li, .fact, .brand-logo, .member, .figure, .sch-sheet, .plc-props, .plc-rack, .bridge-helm, .av-stage, .av-panel { break-inside: avoid; page-break-inside: avoid; }
  h2, h3, .head, .eyebrow { break-after: avoid; page-break-after: avoid; }
  /* Grids that break cleanly across pages */
  .svc-all { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 4mm !important; }
  .svc-all > * { width: auto !important; max-width: none !important; min-height: 0 !important; }
  .contact .wrap { break-inside: avoid; page-break-inside: avoid; }
  .contact-side { display: none !important; }
  .contact-grid, .contact-grid.has-map { grid-template-columns: 1fr !important; }
  .site-footer { break-before: avoid; page-break-before: avoid; }
  /* Sliders become grids, so every item is printed */
  .track, .cert-track { display: grid !important; grid-auto-flow: row !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; overflow: visible !important; }
  /* Certificates: a compact list (name, issuer, training) instead of big previews */
  .cert-track { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 3mm 5mm !important; }
  .doc-page { display: none !important; }
  .doc-open { padding: 3mm 0 !important; border-top: 1px solid var(--line) !important; text-align: left; }
  .doc-text { -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { transform: none !important; width: auto !important; }
  .marquee-set[aria-hidden="true"], .marquee-set .run-item[aria-hidden="true"] { display: none !important; }
  .marquee-set { flex-wrap: wrap; justify-content: center; }
  .photo-strip { display: none !important; }
  /* AMS page: print the front screen of the carousel only */
  .flow-stage { height: auto !important; perspective: none; }
  .flow-item { display: none !important; }
  .flow-item[data-pos="0"], .flow:not(.ready) .flow-item:first-child { display: flex !important; position: static !important; transform: none !important; width: 70% !important; margin: 0 auto !important; opacity: 1 !important; }
  .flow-item img { max-height: 120mm !important; }
  .hmi { position: static !important; }
  /* Timeline: one column */
  .tl::before, .tl::after { left: 11px !important; transform: none !important; }
  .tl::after { height: 100% !important; box-shadow: none; }
  .tl-item, .tl-item.is-left, .tl-item.is-right { grid-template-columns: 24px minmax(0, 1fr) !important; grid-template-areas: "dot card" !important; column-gap: 12px; }
  .tl-year { display: none !important; }
  .tl-year-in { display: block !important; }
  .tl-photo img { max-height: 60mm; object-fit: cover; }
  /* Links: show where the contact details lead */
  .contact-card a[href^="mailto:"]::after, .contact-card a[href^="tel:"]::after { content: none; }
  a { color: inherit; text-decoration: none; }
  .site-footer .cookie-settings, .site-footer nav { display: none !important; }
}
