/* OpenWise web on paper (Milan 18. 11.: Tomáš prints pages to PDF and needs them well readable).
   Loaded with media="print" and wrapped in @media print, so nothing here reaches the screen; css/site.css is untouched.
   Method: the ink scale is mirrored (dark surfaces turn light, light text turns dark), mint goes dark green, and
   everything the scripts keep hidden until it scrolls in or is clicked open (reveals, FAQ answers, job ads, steps) is shown.
   Text never depends on a printed background: it is dark on white with „Background graphics“ on or off.
   Checked on every page by tools/print-check/ (audit.ts: contrast and hidden text on paper; coverage.ts: no text missing;
   regress.ts: the screen is unchanged). Run them after a change here or after new hide-until-scrolled styles in site.css. */
@media print{
  @page{margin:14mm 12mm}
  :root{
    color-scheme:light;
    --ink-50:#060b09;--ink-100:#101a16;--ink-200:#1e2924;--ink-300:#35443e;--ink-400:#465750;--ink-500:#667870;
    --ink-600:#94a69e;--ink-700:#cbd8d2;--ink-800:#dfe8e4;--ink-900:#f1f7f4;--ink-950:#fff;
    --mint-50:#042f23;--mint-100:#042f23;--mint-200:#0b513b;--mint-300:#066447;--mint-400:#066447;--mint-500:#066447;--mint-600:#066447;
    --mint-ink:#fff; /* only on small mint marks (arrow in a dot); buttons below do not use it */
    -webkit-print-color-adjust:exact;print-color-adjust:exact; /* light tiles and mint marks print as drawn */
  }
  html,body{background:#fff!important}
  body{overflow:visible!important}
  *,*::before,*::after{animation:none!important;transition:none!important;text-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

  /* site chrome that has no place on paper */
  .skip,.grain,.ck,.notes-fab,.mnav,.hdr .nav,.hdr-cta,.heat,canvas,.hero-bg,.faq-ic,.pc-tog{display:none!important}
  .hdr{position:static!important;height:auto!important;padding-top:0!important;padding-bottom:8mm!important;background:none!important}
  .hdr::after,.hero::before,.phero::before,.closing::before{display:none!important}

  /* content the scripts hold back until it scrolls into view */
  [data-reveal],[data-reveal]>*,.w>span,.hx .phero h1~*,.jobs .job-g>*,.faq-a p,.faq .faq-n,.faq .faq-qi,.stp-p>*,.stp-ic,.tl2 li>*{opacity:1!important;transform:none!important;filter:none!important}
  .faq::after,.faq .faq-i::before,.tl2::before,.tl2 li::before{transform:none!important}
  .w{overflow:visible!important}
  /* everything a visitor can open is open: FAQ answers, job ads, steps, the long profile texts */
  .faq-a,.job-body{grid-template-rows:1fr!important;visibility:visible!important}
  .job-in{visibility:visible!important}
  .stp-p{grid-area:auto!important;visibility:visible!important}
  /* stepper: the five panels follow each other, numbered like the list of steps above them */
  .stp{display:block!important}
  .stp-list{margin-bottom:6mm}
  .stp-card{display:block!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:6mm!important}
  .stp-big,.job-x{display:none!important}
  .stp-panels{display:block!important;counter-reset:stp}
  .stp-p{counter-increment:stp;break-inside:avoid;padding:4mm 0;border-top:1px solid var(--line)}
  .stp-p:first-child{border-top:0;padding-top:0}
  .stp-p::before{content:"0" counter(stp);margin-bottom:2mm;font-family:var(--f-mono);font-size:12px;color:var(--fg-3)}
  .stp-what{max-width:none!important;margin-bottom:3mm!important;font-size:20px!important}
  .stp-you{margin-top:0!important}
  /* step cards driven by the scroll (--e set inline by the script) */
  .stc-card{--e:1!important;clip-path:none!important;transform:none!important;min-height:0!important}
  .stc-card>*{opacity:1!important;transform:none!important}
  .stc-nav{position:static!important}
  .acard-go{display:none!important} /* hover arrow */
  .pc :is(.pc-more,.pc-tags){display:block!important}

  /* tall screen sections shrink to their content */
  .hero,.phero,.closing{min-height:0!important;height:auto!important}
  .hero{padding-top:0!important}
  .phero{padding-top:6mm!important;padding-bottom:8mm!important}
  /* screen spacing is measured in viewport heights, which on paper means a quarter of a sheet between sections */
  .sec{padding-top:12mm!important}
  .sec.tight{padding-top:8mm!important}
  .sh{margin-bottom:6mm!important}
  .closing{padding-top:14mm!important;padding-bottom:6mm!important}
  .foot{margin-top:12mm!important;padding-top:8mm!important}

  /* buttons: outline with dark text, readable with or without printed backgrounds */
  .cta,.pill.hdr-cta,.prose a.cta{background:#fff!important;color:#060b09!important;border:1.5px solid #066447!important;box-shadow:none!important}
  .cta *,.cta::before,.cta::after{background:none!important;color:inherit!important}

  /* logos are white or light grey for the dark web; on paper the same shapes in black, our own logo dark with a green dot */
  .logos,.logos-track{-webkit-mask-image:none!important;mask-image:none!important;transform:none!important}
  /* the logo strip is a moving band wider than the sheet: on paper one set of logos, wrapped */
  .logos{overflow:visible!important}
  .logos-track{display:block!important;width:auto!important}
  .logos ul{flex-wrap:wrap!important;gap:6mm 10mm!important;padding:0!important}
  .logos ul[aria-hidden="true"]{display:none!important}
  .ref-logos img,.pv-logo img,.logos .lg,.oref-side img,.csr-logo{filter:brightness(0)!important}
  .logo img,.foot .wm{filter:invert(1) hue-rotate(180deg)!important}
  /* the quote's client logo is a mask over a coloured box, which prints as a solid bar: show the image itself */
  .quote-lg{-webkit-mask-image:none!important;mask-image:none!important;background:none!important}
  .quote-lg img{opacity:1!important;filter:brightness(0)!important}
  .person .ph img{filter:none!important}
  .person .ph{max-width:48mm!important} /* portraits are shot on black: passport size is enough on paper */
  .cal-embed{min-height:0!important} /* the booking calendar is a live embed; no empty half page when it has nothing to print */
  .person .ph::after{display:none!important}

  /* page breaks */
  h1,h2,h3,h4,.sh{break-after:avoid;page-break-after:avoid}
  h1,h2,h3,h4{break-inside:avoid;page-break-inside:avoid}
  figure,img,svg,tr,blockquote,.card,.fact,.faq-i,.person,.acard,.cl-card{break-inside:avoid;page-break-inside:avoid}
  p,li{orphans:3;widows:3}
}
