/* Print the packet or one result as crisp, selectable text and vector art on white. */
@page { margin: 0.5in; }
html { font-size: 12px; }
body { background: white; color: #1f1a14; font-size: 10.5pt; line-height: 1.32; }
.skip, .controls, .site-head, .noscript, .roll-actions, .map-controls, .empty, .status { display: none !important; }
main { width: auto; margin: 0; }
.sheet { border: 0; box-shadow: none; padding: 0; margin: 0; background: white; }
.sheet[hidden] { display: none !important; }
.sec { border-top: 1px solid #b9a27f; padding: .5rem 0 .3rem; }
.sec h3, .sec h4, .sec h5, .sec h6, .sec header { break-after: avoid; page-break-after: avoid; }
.sec-sub { margin-left: .6rem; }
.lines { grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); gap: .1rem .7rem; }
.hook { background: none; border-left: 2px solid #9a7436; }
.die { color: #6b5636; border-color: #b9a27f; }
.art, .sec-realm, .sec-hex > .hook, figure, svg { break-inside: avoid; page-break-inside: avoid; }
.art > svg.shield { width: 1.3in; }
.art > svg.achievement { width: 1.9in; }
.dmap { margin: .2rem 0 .5rem; }
.dmap svg.hexmap-svg { width: 100%; max-width: 7.3in; max-height: 8.3in; border: 0; }
.sec-region > .dmap { break-after: page; }
/* The per-hex exploration rolls stay on screen; the printed key keeps the results. */
.optional-section { display: none !important; }
details::details-content { content-visibility: visible; display: contents; }
details > summary { list-style: none; font-weight: 600; }
.site-foot { width: auto; margin-top: 1rem; font-size: 8pt; }
.site-foot details.ogl > p { display: block; }
.book-table { font-size: 9pt; }
.book-table tr.on { background: none; font-weight: 700; }
tr { break-inside: avoid; page-break-inside: avoid; }
/* One result or the packet only */
body.print-result > :not(.result-print) { display: none !important; }
body.print-result > .result-print { display: block !important; margin: 0; padding: 0; }
@media print {
  body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-grayscale body { filter: grayscale(1); }
  .print-preference { display: none !important; }
}
/* Native Ctrl+P without our buttons prints only the newest result. */
body:not(.print-result) #output > .result:not(:first-of-type) { display: none !important; }
