/* print.css — the export lane (lanes-finish.md): print.html's own layout, on the screen and on paper. The core boots print.html in print mode
   (html[data-print="on"]: the journey read only, the whole poster laid out at scale 1, no camera); export.js sets the page's numbers
   (--print-pw, --print-ph: the page in units, the poster plus a margin and the signature under it; --print-m, the margin; --print-fit, the
   screen preview's scale) and an @page rule the poster's size in millimetres at 1 unit = 1 CSS px. On the screen the poster is shown whole,
   scaled to the window, under a strip with the way to the pdf and the mail-out offer; on paper only the poster prints, one sheet. Other
   lanes add html[data-print="on"] rules for their own pieces in their own CSS. */
html[data-print="on"], html[data-print="on"] * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
html[data-print="on"] { height: auto; overflow-x: hidden; }   /* the poster is wider than any screen until it is scaled: it must not widen a phone's layout viewport */
html[data-print="on"] body { height: calc(var(--print-ph, 6000) * var(--print-fit, 1) * 1px + 190px); overflow-x: hidden; overflow-y: auto; }
/* only the paper, the poster and the strip: no chrome, no opening, no cursor, no bubble, no deck, no night layer, no grain */
html[data-print="on"] body > :not(.paper):not(.world):not(.print-ui):not(svg):not(script) { display: none !important; }
html[data-print="on"] .world { position: absolute !important; left: max(12px, calc((100vw - var(--print-pw, 6000) * var(--print-fit, 1) * 1px) / 2)) !important; top: 178px !important; right: auto !important; bottom: auto !important;
  width: calc(var(--print-pw, 6000) * 1px) !important; height: calc(var(--print-ph, 6000) * 1px) !important; overflow: hidden !important; transform: scale(var(--print-fit, 1)) !important; transform-origin: 0 0 !important;
  -webkit-mask-image: none !important; mask-image: none !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; touch-action: auto !important; transition: none !important; z-index: 2; }
html[data-print="on"] .poster { position: absolute !important; left: calc(var(--print-m, 96) * 1px) !important; top: calc(var(--print-m, 96) * 1px) !important; transform: none !important; will-change: auto !important; }
html[data-print="on"] .world .place { opacity: 1 !important; visibility: visible !important; transition: none !important; }
html[data-print="on"] #place-years > * { opacity: 1 !important; visibility: visible !important; }
/* what means nothing on paper: the typewriter's arrows, the page-turn links, controls drawn over the sheets */
html[data-print="on"] .tw-controls, html[data-print="on"] .sheet-next, html[data-print="on"] .panel-next, html[data-print="on"] .bubble, html[data-print="on"] .tip, html[data-print="on"] .bot, html[data-print="on"] .no-export, html[data-print="on"] [data-export="skip"] { display: none !important; }
html[data-print="on"] .typed-block .carriage { display: none !important; }
html[data-print="on"] [data-print-hidden] { visibility: hidden !important; }   /* held by the page, not shown (export.js marks them): kept off the paper and out of the PDF */
/* the off-screen clone a sheet's picture is measured from (export.js): visible whatever the live page is doing to the sheet as a whole at that
   moment (a neighbour faded while the years' deck runs); it never paints: it lives for one synchronous pass */
.place.export-clone, .world .place.export-clone { opacity: 1 !important; visibility: visible !important; }   /* the sheet itself; what a sheet hides inside itself stays hidden (a lane's hook may show more) */
.place.export-clone, .place.export-clone * { transition: none !important; animation: none !important; }   /* a clone starts its entrance animations again from their first frame: never in a picture */
/* the tooth through the ink, one layer for the whole poster (export.js explains why): each ink element's own mask goes in print mode */
html[data-print="on"][data-print-tooth="one"] .inked, html[data-print="on"][data-print-tooth="one"] .typed-ink, html[data-print="on"][data-print-tooth="one"] .chrome { -webkit-mask-image: none !important; mask-image: none !important; }
.print-tooth { position: absolute; left: -96px; top: -96px; width: calc(var(--print-pw, 6000) * 1px); height: calc(var(--print-ph, 6000) * 1px); background-size: 512px 512px; background-repeat: repeat; mix-blend-mode: lighten; pointer-events: none; z-index: 30; }
/* the signature under the poster (export.js): the mark with the 27, the dates, "free your mind" in the hand */
.print-signature { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.print-signature canvas { mix-blend-mode: multiply; }
.print-signature .print-theme { opacity: 0.85; }
/* the strip on the screen: the way to the pdf, a button, the size, the offer, the way back */
.print-ui { position: fixed; left: 0; right: 0; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; padding: 16px 22px 14px; background: var(--paper); box-shadow: 0 1px 0 rgba(21, 20, 26, 0.08), 0 8px 18px -12px rgba(60, 45, 30, 0.35); font-family: var(--type); color: var(--ink); }
.print-ui p { margin: 0; }
.print-ui > * { min-width: 0; max-width: 100%; }
.print-ui canvas { max-width: 100%; height: auto !important; }   /* a written line wider than a phone shrinks to it */
.print-ui canvas { display: block; mix-blend-mode: multiply; filter: url(#soak); }
.print-ui .print-now { background: none; border: 0; padding: 10px 6px; min-height: 44px; min-width: 44px; cursor: pointer; border-bottom: 1px solid rgba(21, 20, 26, 0.35); }
.print-ui .print-now:hover, .print-ui .print-now:focus-visible { border-color: currentColor; outline: none; }
.print-ui .print-size { flex-basis: 100%; font-size: 13px; letter-spacing: 0.02em; opacity: 0.75; }
.print-ui a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; border: 0; }
.print-ui a:hover, .print-ui a:focus-visible { opacity: 0.7; outline: none; }
.print-ui .print-offer { opacity: 0.85; }
.print-ui :focus-visible { outline: 1.5px dashed var(--chrome); outline-offset: 3px; }
@media (max-width: 600px) { .print-ui { padding: 10px 12px; gap: 2px 14px; } .print-ui .print-size { font-size: 12px; } html[data-print="on"] .world { top: 236px !important; } }
/* on paper: one sheet, the poster at its own size; nothing but the poster */
@media print {
  html[data-print="on"], html[data-print="on"] body { height: auto !important; overflow: visible !important; margin: 0 !important; }
  html[data-print="on"] .print-ui { display: none !important; }
  html[data-print="on"] .world { left: 0 !important; top: 0 !important; transform: none !important; }
  html[data-print="on"] .paper { position: absolute !important; left: 0; top: 0; width: calc(var(--print-pw, 6000) * 1px); height: calc(var(--print-ph, 6000) * 1px); }
}
