.book-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:2rem;align-items:start;margin-top:2rem}
.book-toc{position:sticky;top:1rem;padding:1.25rem;border:1px solid #b49b6855;border-radius:12px}
.book-toc h2{font-size:1.1rem;margin-top:0}.book-toc a{display:block;padding:.45rem 0;line-height:1.4}
.book-toc{max-height:calc(100vh - 2rem);overflow-y:auto}.book-toc a[aria-current=page]{font-weight:bold;text-decoration:underline}.book-toc h3{font-size:1rem;margin-top:1rem}.book-toc summary{cursor:pointer;margin-top:1rem}
.book-reader{max-width:78ch;min-width:0;background:#faf6ed;color:#29251e;padding:clamp(1rem,3vw,2.5rem);border-radius:12px;font-family:Georgia,serif;font-size:1.1rem;line-height:1.75}
.book-reader h2,.book-reader h3{color:#49361e;line-height:1.3;scroll-margin-top:6rem}.book-reader h3{margin-top:2rem}
.book-reader a{color:#784414;text-decoration:underline}.book-reader a:focus-visible{outline:3px solid #784414;outline-offset:3px}
.book-reader blockquote{border-left:4px solid #997944;margin:1.5rem 0;padding:.5rem 1.25rem;background:#efe6d5}
.book-notice{padding:1rem;border-left:3px solid #b49b68;background:#b49b6818}.book-source{font-size:.9rem}
.book-reader figure{margin:1.5rem 0}.book-reader img{width:100%;height:auto;display:block}.book-reader figcaption{font-size:.9rem;margin-top:.5rem}
.book-reader .book-culture-art{width:150px;max-width:40%;height:auto;float:left;margin:0 1.25rem .75rem 0}.book-reader h3,.book-reader .book-table-wrap,.book-reader figure{clear:both}
.book-reader .book-equipment-art{width:240px;max-width:100%;height:auto}.book-menu-note{font-size:.9rem}
.book-table-wrap{overflow-x:auto}.book-reader table{border-collapse:collapse;width:100%;font-size:1rem;margin:1rem 0}.book-reader th,.book-reader td{padding:.65rem;text-align:left;border-bottom:1px solid #cdbd9f}.book-reader th{background:#eee4d1}.book-reader caption{text-align:left;font-weight:bold}
.book-reader details{margin-top:1.5rem}.book-reader summary{cursor:pointer;font-weight:bold}.book-reader .book-qr{width:186px;max-width:100%;height:auto}.book-legal{font-size:1rem}.book-credit-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.5rem}.book-credit-column{font-size:.95rem;line-height:1.5;overflow-wrap:anywhere}.book-contents{list-style:none;padding:0}.book-contents li{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px dotted #cdbd9f;padding:.35rem 0}.book-folio{font-variant-numeric:tabular-nums}.book-pagination{display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;border-top:1px solid #cdbd9f;margin-top:2rem;padding-top:1rem}.book-pagination a:only-child[rel=next]{margin-left:auto}
@media(max-width:800px){.book-layout{grid-template-columns:1fr}.book-toc{position:static}.book-reader{max-width:none}}
@media(max-width:800px){.book-toc{max-height:none}.book-toc>a{display:inline-block;margin-right:1rem}.book-credit-columns{grid-template-columns:1fr}}

.book-reader .book-gm-tip{margin:1.5rem 0;padding:1rem 1.25rem;border:1px solid #8caa9b;border-radius:8px;background:#e5f0e9}.book-reader .book-gm-tip h3{margin-top:0}.book-reader .book-gm-tip p:last-child{margin-bottom:0}

.book-reader .book-journey-portrait{float:right;width:190px;max-width:45%;margin:0 0 1rem 1.25rem}.book-reader .book-gm-tip{clear:both}
.book-reader #events-on-the-tigris th:first-child{width:5rem;min-width:5rem;white-space:nowrap}

.book-villain-profile{display:flow-root;margin:1.5rem 0}.book-reader .book-villain-profile figure{float:right;width:180px;max-width:40%;margin:0 0 1rem 1.5rem}.book-villain-profile p{margin-top:0}
@media(max-width:600px){.book-reader .book-villain-profile figure{float:none;width:220px;max-width:100%;margin:0 auto 1rem}}

.book-toc .book-section-menu{border:0;border-radius:0;background:none;padding:0}.book-toc .book-section-menu ul{list-style:none;margin:0;padding-inline-start:1rem}.book-toc .book-section-menu li{margin:0;padding:0}
.book-reader h4{color:#49361e;line-height:1.4;scroll-margin-top:6rem;margin:1.5rem 0 .5rem}.book-reader .book-gm-tip h4{margin-top:0}
.book-reader .book-atlas-portrait{max-width:340px;margin-inline:auto}.book-reader .book-atlas-table th:first-child{width:6rem;min-width:6rem;white-space:nowrap}
.book-atlas-worldmap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.book-atlas-worldmap figure{min-width:0}
@media(max-width:800px){.book-toc-long{max-height:60vh;overflow-y:auto}}
.book-reader h4{clear:both}.book-reader h5{color:#49361e;line-height:1.4;font-size:1.05rem;scroll-margin-top:6rem;margin:1.5rem 0 .5rem}
.book-reader .book-tools-portrait{max-width:340px;margin-inline:auto}.book-reader .book-faction-banner{float:right;width:125px;max-width:30%;margin:0 0 1rem 1.25rem;clear:none}.book-reader .book-faction-banner figcaption{font-size:.8rem;line-height:1.5}
.book-reader .book-tools-table:not(.book-encounter-table):not(#sicarii-contracts):not(#allies-table) th:first-child{width:6rem;min-width:6rem;white-space:nowrap}
.book-reader .book-tools-table td p:first-child{margin-top:0}.book-reader .book-tools-table td p:last-child{margin-bottom:0}
.book-reader .book-encounter-table{min-width:48rem}.book-reader .book-encounter-table td,.book-reader .book-encounter-table thead th{white-space:nowrap}.book-reader .book-encounter-table th:first-child{position:sticky;left:0;min-width:11rem;max-width:13rem;white-space:normal;background:#eee4d1}
.book-reader #sicarii-contracts tbody th{font-weight:normal;background:transparent;white-space:normal}.book-reader .book-table-wrap:focus-visible{outline:3px solid #784414;outline-offset:3px}

.book-reader .book-event-portrait{max-width:340px;margin-inline:auto}
.book-reader .book-encounter-profile{border:1px solid #b49b68;padding:1rem;margin:1.5rem 0;background:#f3ead8;clear:both}.book-reader .book-encounter-profile h4{margin-top:0}
.book-reader .book-event-table th:first-child{min-width:5rem}.book-reader .book-event-table tbody th{font-weight:normal}
.book-reader #solo-gladiator-opponents,.book-reader #team-gladiator-opponents,.book-reader #wagers-during-events{min-width:32rem}
.book-reader #passenger-identities{min-width:60rem}.book-reader #passenger-identities th:first-child{position:sticky;left:0;background:#eee4d1}
.book-reader #passenger-identities th:nth-child(2),.book-reader #passenger-identities td:nth-child(2){min-width:8rem;white-space:nowrap}.book-reader #passenger-identities td:nth-child(3){min-width:18rem}.book-reader #passenger-identities td:nth-child(4){min-width:14rem}.book-reader #passenger-identities td:nth-child(5){min-width:10rem}
.book-reader #vault-key-locations th:first-child,.book-reader #inner-chamber-contents th:first-child,.book-reader #story-developments th:first-child,.book-reader #passenger-secrets th:first-child,.book-reader #hot-spring-effects th:first-child,.book-reader #lower-market th:first-child,.book-reader #upper-market th:first-child{white-space:nowrap;min-width:5rem}
.book-reader .book-event-abilities{min-width:25rem}.book-reader .book-event-abilities td{white-space:nowrap}
.book-art-spread{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.book-art-spread figure{min-width:0}.book-art-spread figcaption{padding-inline:.5rem}
.book-spell-lists{columns:2;column-gap:2rem}.book-spell-lists h5{break-after:avoid}.book-spell-lists ul{break-inside:avoid}.book-skill-tracker{font-variant-numeric:tabular-nums}
@media(max-width:600px){.book-spell-lists{columns:1}}
@media(min-width:801px){.book-toc{top:6rem;max-height:calc(100vh - 7rem)}}

.book-reader .book-source-legend{margin:1.5rem 0;padding:1rem 1.25rem;background:#e5f0e9;border:1px solid #8caa9b;border-radius:8px}.book-source-legend>div+div{margin-top:1rem}.book-source-legend dd{margin:.4rem 0 0}
.book-reader .book-source-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.15rem .45rem;border:1px solid #c7b99f;border-radius:4px;background:#f6f0e3;color:#49361e;font-size:.8rem;line-height:1.5;font-weight:normal;text-decoration:none}.book-reader a.book-source-badge:hover{text-decoration:underline;background:#eee4d1}.book-reader .book-source-badge img{width:20px;height:20px;object-fit:contain;display:inline-block;margin:0;flex-shrink:0}
.book-source-badges{display:flex;flex-wrap:wrap;gap:.35rem}.book-reader .book-reference-entry{padding:1rem 0;border-bottom:1px solid #d9ccb5;scroll-margin-top:6rem}.book-reference-entry dt{font-weight:bold;font-size:1.08rem;margin-bottom:.4rem}.book-reference-entry dd{margin:0}.book-reader .book-reference-entry p{margin:.5rem 0 0}.book-source-legend>div{scroll-margin-top:6rem}
.book-reader .book-reference-alphabet{display:flex;flex-wrap:wrap;gap:.4rem;margin:1.5rem 0}.book-reference-alphabet a{display:flex;align-items:center;justify-content:center;min-width:2.5rem;min-height:2.75rem;border:1px solid #c7b99f;border-radius:4px;text-decoration:none}.book-reference-alphabet a:hover{background:#eee4d1}.book-closing-ad{margin-top:2.5rem}
