/* Print is its own typographic artifact, not a screenshot of the page. */
@page { size: A4; margin: 18mm 16mm 20mm }

:root, html[data-theme], html[data-theme="dark"] {
  --paper: #fff; --paper-2: #fff; --ink: #000; --ink-soft: #444;
  --rule: #bbb; --saffron: #000; --maroon: #000; --gold: #555;
}
html, body { background: #fff !important; color: #000 !important }
html[data-fs] { --fs-step: 1 !important }
body { font-size: 11.5pt }

/* chrome has no business on paper */
.site-head, .site-nav, .controls, .search, .tabs, .toast, .crumb, .crumbs, .also,
.site-foot .nav, [data-noprint] { display: none !important }

.print-head { display: block !important; border-bottom: 1pt solid #000;
              margin-bottom: 7mm; padding-bottom: 2mm }
.print-only { display: block !important }

h1 { font-size: 17pt; break-after: avoid-page }
h2 { font-size: 13pt; break-after: avoid-page }

.deity-head { display: block; padding: 0 }
.deity-head img { max-width: 46mm; float: right; margin: 0 0 4mm 5mm }

/* a verse must never straddle a page break -- the whole point when reciting */
.verse { break-inside: avoid; page-break-inside: avoid; orphans: 2; widows: 2;
         padding: 0 0 3.2mm; border-bottom: 0 }
.verse[data-role="doha"] { break-after: avoid-page }
.verse[data-role="doha"] + .verse { break-before: avoid-page }
.verse[data-role="marker"] { break-after: avoid-page }

.vtext[data-variant="devanagari"] p { font-size: 12pt; line-height: 1.9 }
.vtext[data-variant="roman"] p { font-size: 10.5pt; line-height: 1.55 }

/* refrain as a one-line cue, or a short aarti triples in length */
.verse.is-echo { font-style: italic; color: #333 }

/* provenance and honesty must survive onto paper */
.notice { display: block !important; border: 1pt solid #000; padding: 2mm; font-size: 9pt }
.attribution, .deity-head figcaption { display: block !important; font-size: 8pt; color: #333 }
.attribution a::after, .print-url::after { content: ' (' attr(href) ')'; word-break: break-all }

* { box-shadow: none !important; text-shadow: none !important }
