/* print.css — the text column only (DESIGN §2.5). media="print"; loaded on every Missal surface, after
   the surface sheets (S9 T31). Ink on paper: no chrome, no controls, no clamps, no fixed boxes; the page's
   title and every quotation's source survive. Colours are tokens only (the gate's tokens family reads these rules). */

/* the chrome and every control: menu, foot, layers, search, buttons, arrows, page-to-page links, hints.
   A verse is role=button on screen (it opens the gloss) but it is the text: it stays. */
.mn,.ft,.skip-link,.x,.ly,.sug,.find,.pg__find,.pg__go,#gloss,#chooser,#contents,
button,[role=button]:not([data-csl-verse]),[role=tablist],input,select,textarea,.arr,.top__m,
.scr__foot,.hint,.cl__go,.hd .cl__go,[data-csl-with-pick],.voice__more,.wk__more,.rd__trc{display:none!important}

/* the head prints only when it holds the page's h1 (Today's date, Read's chapter): as the title, in flow */
.top:not(:has(h1)){display:none!important}
.top{position:static!important;display:block;height:auto;margin:0 0 24px;padding:0;background:none;transform:none!important}
.top__place{display:block!important;text-align:center;white-space:normal}
.top__place>a,.top__place>span{display:inline;line-height:24px;overflow:visible}
.top__lw{display:inline!important}
.top__ln{display:none!important}

/* the reading's translation, as a word (its control is hidden): data-csl-tr follows a swap */
.rd__tr[data-csl-tr]::after{content:attr(data-csl-tr);font:var(--f-meta);font-variant-caps:all-small-caps;letter-spacing:.1em;color:var(--faint)}

/* paper: no backgrounds, ink text, nothing pinned to the viewport */
html,body{background:none!important}
body{color:var(--ink)}
.top,.ft,.ly,.mn{box-shadow:none}
[style*="position:sticky"],.era__h{position:static!important}

/* every quotation keeps its source: the Source line prints with the fragment's address after it */
.voice__f{display:flex!important}
.voice__f .voice__src::after{content:" " attr(href);font-variant-caps:normal;letter-spacing:0;word-break:break-all;white-space:normal}
.voice__f .voice__src{white-space:normal;min-height:0}

/* clamps open: a clamped text prints whole */
.is-cut,.voice__c,.wk__b{max-height:none!important;-webkit-line-clamp:none!important;overflow:visible!important}
.is-cut::after,.voice__c::after{content:none!important}

/* page breaks: a heading stays with what follows it; no line left alone at a page's top or foot */
h1,h2,h3,h4,.hd,.lab,.cit,.rd__h,.voice__nm,.voice__k,.chron__h,.chron__era{break-after:avoid;page-break-after:avoid}
.rd__h,.voice__nm,.voice__k{break-inside:avoid}
p,li,.voice__t{orphans:3;widows:3}
