/* Shared off-screen and print geometry. */
.booklet { color: #201e1b; font-size: 10pt; line-height: 1.25; }
.booklet h1, .booklet h2, .booklet h3, .booklet h4, .booklet h5, .booklet h6 {
  color: #713c32; font-family: var(--display); line-height: 1.25; letter-spacing: .025em;
  break-after: avoid; page-break-after: avoid;
}
.booklet h2 { font-size: 16pt; margin: 0 0 .15in; }
.booklet h3 { font-size: 12pt; margin: .15in 0 .07in; }
.booklet h4, .booklet h5, .booklet h6 { font-size: 10.5pt; margin: .12in 0 .05in; }
.booklet p, .booklet li, .booklet dd { orphans: 3; widows: 3; overflow-wrap: anywhere; }
.booklet p { margin: .06in 0 .1in; }
/* Fixed, unbreakable reading boxes fill one sheet each; forced breaks add a blank page in WebKit. */
.booklet-page { break-before: auto; page-break-before: auto; break-after: auto; page-break-after: auto; }
.booklet-cover > .booklet-content { text-align: center; border: 2px solid #713c32; padding: .2in; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; }
.booklet-empty-rooms { font-style: italic; }
.booklet-cover h1 { font-size: 30pt; line-height: 1.12; margin: .25in 0; }
.booklet-kicker { font-family: var(--display); font-size: 11pt; letter-spacing: .12em; }
.booklet-levels { font-size: 13pt; }
.booklet-cover-art { display: block; width: 100%; height: 4.1in; margin: .15in auto; }
.booklet-teaser { max-width: 5.5in; margin: .15in auto !important; font-size: 12pt; }
.booklet-credit { font-size: 8pt; margin-top: .2in !important; }
.booklet-map-page { break-inside: avoid; page-break-inside: avoid; }
.booklet-map-page figure { position: relative; margin: 0; }
.booklet-map-page figure > svg { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; transform-box: border-box; max-width: none; max-height: none; margin: 0; border: 0; }

.booklet-section { margin: 0 0 .12in; }
.booklet-subtitle { font-style: italic; break-after: avoid; page-break-after: avoid; }
.booklet-room > h6, .booklet-room > h5, .booklet-room > h4, .booklet-room > h3 { border-bottom: 1pt solid #713c32; padding-bottom: .04in; }
.booklet .boxed { margin: .1in 0; padding: .1in; border: .75pt solid #713c32; border-left: 3pt solid #713c32; background: #f4ecd8; color: #201e1b; break-inside: avoid; page-break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.booklet dl { display: block; margin: .05in 0 .1in; }
.booklet dt, .booklet dd { display: inline; margin: 0; }
.booklet dt { font-weight: bold; }
.booklet dt::after { content: ': '; }
.booklet-line, .booklet-stat, .booklet-group { break-inside: avoid; page-break-inside: avoid; }
.booklet ul { padding-left: .17in; margin: .07in 0 .12in; }
.booklet-art svg { display: block; width: 100%; max-height: 2in; margin: .1in auto; object-fit: contain; }
.booklet-totals { font-weight: bold; border-block: 1pt solid #713c32; padding: .08in 0; break-inside: avoid; }
/* These rules load on screen too, so measurement and print use identical inches and type. */
.booklet { font-family: var(--serif); }
.booklet-measure { position: absolute; left: -10000px; top: 0; display: block; pointer-events: none; }
/* Contain rounding/column/SVG overflow within each physical page, including in WebKit. */
.booklet-page { position: relative; box-sizing: border-box; width: 8.5in; height: 10.99in; padding: .5in; margin: 0; overflow: hidden; break-inside: avoid; page-break-inside: avoid; }
.booklet-content { width: 100%; height: 9.99in; display: flow-root; }
/* Explicit fixed columns share screen/print geometry without WebKit multicol fragmentation. */
.booklet-columns { display: flex; gap: .3in; }
.booklet-col { position: relative; display: flow-root; flex: 0 0 calc(50% - .15in); width: calc(50% - .15in); height: 100%; min-width: 0; }
.booklet-col + .booklet-col:not(:empty)::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(-.15in - .25pt); border-left: .5pt solid #777; }
.booklet-block { display: flow-root; break-inside: avoid; page-break-inside: avoid; }
.booklet-folio { position: absolute; bottom: .2in; left: 0; width: 100%; text-align: center; font: 9pt var(--display); }
[data-booklet-role="cover"] > .booklet-folio,
[data-booklet-role="inside-front-cover"] > .booklet-folio,
[data-booklet-role="inside-back-cover"] > .booklet-folio,
[data-booklet-role="back-cover"] > .booklet-folio { display: none; }
.booklet-back-cover > .booklet-content { display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; border: 1pt solid #713c32; padding: .3in; box-sizing: border-box; }
.booklet-ornament { width: 2in; height: 1.25in; }
.booklet-scale-frame { position: relative; break-inside: avoid; }
.booklet-scale-art { position: absolute; top: 0; left: 0; transform-origin: top left; display: flow-root; }
.booklet-ruled { display: block; width: 100%; height: 88%; }
.booklet-folded .booklet { font-size: 9pt; }
.booklet-folded .booklet-page { width: 5.5in; height: 8.49in; padding: .4in .45in; break-after: auto; page-break-after: auto; flex: 0 0 5.5in; }
.booklet-folded .booklet-recto { padding-left: .5in; padding-right: .4in; }
.booklet-folded .booklet-verso { padding-left: .4in; padding-right: .5in; }
.booklet-folded .booklet-content { height: 7.69in; }
.booklet-folded .booklet-col { flex-basis: 100%; width: 100%; }
.booklet-folded .booklet-cover h1 { font-size: 23pt; margin: .1in 0; }
.booklet-folded .booklet-cover-art { height: 3in; }
.booklet-folded .booklet-teaser { font-size: 10pt; }
.booklet-folded .booklet-sheet { display: flex; box-sizing: border-box; width: 11in; height: 8.49in; margin: 0; padding: 0; overflow: hidden; break-inside: avoid; page-break-inside: avoid; break-after: page; page-break-after: always; }
.booklet-folded .booklet-sheet:last-child { break-after: auto; page-break-after: auto; }

.booklet-intrinsic { display: flow-root; }

.booklet-map-legend { display: grid; grid-template-columns: 1fr 1fr; gap: .04in .1in; font: 7pt/1.2 var(--serif); }
.booklet-map-legend > div { display: flex; align-items: center; gap: .04in; }
.booklet-map-legend svg { flex: 0 0 .16in; width: .16in; height: .16in; }

/* Each atom is its own block, so margins no longer collapse: keep list and stat spacing tight. */
.booklet-block > dl { margin: 0 0 .03in; }
.booklet-block > ul { margin: 0 0 .03in; }
.booklet-block > p { margin: 0 0 .07in; }
.booklet-block > blockquote.boxed { margin: .04in 0 .08in; }
.booklet-block:first-child > h2, .booklet-block:first-child > h3, .booklet-block:first-child > h4, .booklet-block:first-child > h5, .booklet-block:first-child > h6 { margin-top: 0; }

.booklet { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.booklet-cover > .booklet-content { background: #f4ecd8; }
.booklet-room > h3, .booklet-room > h4, .booklet-room > h5, .booklet-room > h6 { color: #8c302c; }
