/* Browser print keeps the vector maps, local fonts and selectable text. */
@page { margin: 0.45in; }
html { font-size: 12px; scroll-behavior: auto; }
body { margin: 0; min-height: 0; background: white; color: var(--ink); font-size: 10pt; }
.skip, .controls, .site-head, .site-foot, .noscript, dialog, .copy-buffer { display: none !important; }
main { display: block; width: auto; margin: 0; }
.sheet { margin: 0; padding: 0; border: 0; box-shadow: none; background: white; }
.sheet::before, .sheet::after { display: none; }
.sheet, .sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet * { transition: none !important; transform: none !important; box-shadow: none !important; animation: none !important; }
.sheet-tools, .print-help, .map-tools, .solo-actions, .solo-tools, .solo-log { display: none !important; }
.solo-panel { border: 0; box-shadow: none; padding: 0; margin: 0 0 .5rem; background: white; }
.treasure-title { font-size: 22pt; }
.treasure-types { font-size: 12pt; }
.totals-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.totals-strip > div, .sheet-banner, .key-entry, table, tr, .key-monster { break-inside: avoid; page-break-inside: avoid; }
.sheet h3 { break-after: avoid; page-break-after: avoid; }
.level-sheet + .level-sheet { break-before: page; page-break-before: always; border-top: 0; margin-top: 0; padding-top: 0; }
.map-frame { break-inside: avoid; page-break-inside: avoid; border: 1px solid #8d7048; background: white; }
.map-view { height: auto !important; min-height: 0; overflow: visible; }
.map-view svg { width: 100%; height: auto; max-height: 9in; }
.dungeon-map .lead { animation: none !important; }
p { orphans: 3; widows: 3; }
.encounter-card { break-inside: avoid; page-break-inside: avoid; margin-bottom: .7rem; }
.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
details::details-content { display: block; content-visibility: visible; }
.roll-log { display: none !important; }
.treasure-link { display: none; }
.key-entry { cursor: auto; }
.dungeon-map.solo .rock-fill { fill: #f4efe6; }
.dungeon-map.solo .rock-grid { stroke: #e6dccb; }
.dungeon-map.solo .scale path, .dungeon-map.solo .north path { stroke: #2a2118; fill: #2a2118; }
.dungeon-map.solo .scale text, .dungeon-map.solo .north text { fill: #2a2118; }
