/* print.css (media=print): the site forwards as a clean PDF. Paper-white, black on white, plate numerals and heads kept,
   every external link spelled out, nothing interactive. The midnight page goes white; the portrait is the static assets/portrait.svg. */
@page{margin:15mm 14mm 17mm}
:root{color-scheme:light;--paper:#fff;--paper-2:#fff;--ink:#000;--ink-2:#333;--rule:rgba(0,0,0,.32);--rule-hard:#000;--em:#9A5A00;--mach:#000;--hot:#9A5A00;--ul:#000;--acc:#000;--on-acc:#fff;--hl:transparent}
*{-webkit-print-color-adjust:exact;print-color-adjust:exact}
html,body{background:#fff;color:#000;overflow:visible}
body{font-size:11pt;line-height:1.5}
main{padding-inline:0}
.shell{display:block}

/* gone: chrome, controls, the interactive plate furniture */
.bar,.rail,a.skip,button,.ico,.kettle,.cup-fig,.contact,.thread-note,.cite-layer,.year-tools,.fig-readout,.scrub-row,.plate-tip,[data-year-stage],canvas,.tool-tip,.pf-ctl,.pf-stage{display:none!important}
.js .rv{opacity:1!important;transform:none!important;transition:none!important}
.hit,:target{background:none!important;animation:none!important}

/* plates: flat, tighter, still numbered */
.plate{padding-block:9mm;min-height:0!important}
.plate.hero{grid-template-columns:minmax(0,1fr) 62mm;gap:4mm 10mm;align-items:start}
.plate.hero>.hero-text{display:contents}
.plate.hero .hero-text>*{order:0;grid-column:1}
.plate.hero .hero-text>.eyebrow,.plate.hero .hero-text>h1{grid-column:1/-1}
.plate.hero .hero-text>.eyebrow{grid-row:1}.plate.hero .hero-text>h1{grid-row:2}.plate.hero .hero-text>.lede{grid-row:3}.plate.hero .hero-text>.tags{grid-row:4}.plate.hero .hero-text>.cta{grid-row:5}
.plate.hero>.hero-side{order:0;grid-column:2;grid-row:3/span 3;margin:0;width:100%;max-width:none}
.plate.hero .fig.portrait{display:block;margin:0;width:100%;max-width:none;--pw:100%}   /* portrait.css's tablet layout would size the frame by screen height */
.plate.hero .fig.portrait .fig-frame{width:100%}
.plate.hero .toolkit{margin-left:0}   /* the tablet rule that lines it up beside the plate would push it off the page */
.plate-head{margin-bottom:5mm}
.fig.portrait .fig-frame{background:#fff}
.num.counting{color:inherit!important}.num.counting::after{display:none!important}   /* count-ups print as their real digits */
.pull{background:none;padding:4mm 0}
.plate-head > span:first-child{background:none;border:1px solid #000;color:#000}
.cup-fig .pour,.cup-fig .cup{-webkit-mask:none;mask:none}
.fig{--crop:#000}
/* Chrome fragments grids badly when their items will not split (a whole plate jumps a page), so containers that only stack print as blocks */
.principles,.about-grid,.case,.case-pair,.coffee-grid{display:block}
.principles>*+*,.about-grid>*+*{margin-top:8mm}
.case>*+*{margin-top:5mm}
.about-not{grid-template-columns:minmax(0,1fr)}
.principle{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:3mm 9mm}
.principle .prose{grid-column:2;grid-row:1/span 2}
.ledger{grid-template-columns:repeat(2,minmax(0,1fr))}
.case{padding-block:7mm}
.case .meta{grid-column:1;padding:4mm 0 0;background:var(--dot) 0 0/8px 6px repeat-x;display:grid;grid-template-columns:repeat(auto-fit,minmax(48mm,1fr));gap:4mm 8mm}
.list{display:flex;flex-wrap:wrap;gap:0 .9em;line-height:1.6}.list li+li::before{content:"\00b7";margin-right:.9em}
h1{font-size:42pt!important}.a{font-size:30pt}.q{font-size:13pt}.pull p{font-size:26pt}.figure{font-size:34pt}.case h3{font-size:24pt}.principle h3{font-size:16pt}.not{font-size:26pt}.big,.lede,.sub{font-size:13pt}
img.portrait-static{display:block!important;visibility:visible!important;width:100%;height:auto}

/* the four Bidsights screens, all shown, two to a row */
.js .viewer.is-on .shots,.shots{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6mm}
.js .viewer.is-on .shot,.shot{grid-area:auto!important;opacity:1!important;visibility:visible!important}
.shot figcaption{font-size:9pt}

/* parse-first: the animated stage is left out; the five steps and the caption carry it */
#parse-first{break-inside:avoid}
.pf{margin:3mm 0 0}.pf-cap{min-height:0;margin:3mm 0 1mm}
.pf-v>.pipe{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}

/* the year, as numbers: the canvas is gone, so its table is opened (also by coffee.js, for browsers without ::details-content) */
details.year-table:not([open])::details-content{content-visibility:visible;display:block}

/* links say where they go */
a{color:#000}
.cta{display:flex;flex-direction:column;align-items:flex-start;gap:2mm}
.btn{display:block;background:none!important;border:0!important;padding:0!important;min-height:0;color:#000!important;font-weight:600}
a[href^="http"]::after{content:" (" attr(href) ")";font:400 8.5pt/1.3 var(--mono);letter-spacing:0;text-transform:none;color:#333;word-break:break-all}
.footer a[href^="/"]::after{content:" (https://chriswilliams.vercel.app" attr(href) ")";font:400 8.5pt/1.3 var(--mono);color:#333}

/* nothing splits a figure, a case's head, a principle, a declaration or a row */
.case-index,.case-index li,.fig,.shot,.principle,.declaration,.ledger .row,.pull,.case-head,.case .meta,.qa,.about-not,.pipe-wrap,.plate-head,.year-note{break-inside:avoid}
.coffee{break-inside:avoid}
/* a plate's head, question and answer (and the note under it) travel with whatever comes next, so a heading never ends a page alone.
   Kept to these few: break-after:avoid on a last child also binds its parent to the next block, so a blanket h3/.a/.sub rule chains a whole plate together. */
h1,h2,h4,h3.mono,.q,.plate-head,.qa,.year-note,.case-head,.ledger-head,.viewer-fig{break-after:avoid}
.ledger-foot{break-before:avoid}
p{orphans:3;widows:3}

.footer{background:none;color:#333;border-top:1px solid #000;margin-top:6mm;break-inside:avoid}
.footer-in{padding:4mm 0 0;font-size:8.5pt}
