/* The illustrated Valthara edition. Earlier shared styles stay untouched. */
:root{--ink:#e5dfd0;--muted:#a8aea5;--paper:#0c1416;--paper-light:#142023;--night:#0a1215;--gold:#d4b77d;--line:#b99a5b38;--green:#d9c18e;color-scheme:dark;scroll-padding-top:88px}
body.illustrated-lore{background:radial-gradient(ellipse at 80% 16%,#23433720,transparent 36%),radial-gradient(ellipse at 5% 52%,#a3753420,transparent 25%),#0b1316;color:var(--ink);font-size:17px;line-height:1.85}
.illustrated-lore .wide{width:min(1440px,90%)}
.illustrated-lore h2,.illustrated-lore h3,.illustrated-lore h4{color:#f4edda;font-weight:400}
.illustrated-lore h2{font-size:clamp(2.3rem,4.5vw,4.1rem);line-height:1.12;letter-spacing:-.035em}
.illustrated-lore p{color:#c5cabf}
.illustrated-lore a{color:#e5c790}
.illustrated-lore button{background:#142024;color:#e9d9b4;border:1px solid #cba86d63;border-radius:2px;transition:background .2s,border-color .2s,transform .25s}
.illustrated-lore button:hover{background:#263331;border-color:#d0b278}
.illustrated-lore button:disabled{opacity:.35;cursor:default;transform:none}
.illustrated-lore :is(a,button,input,summary,[tabindex]):focus-visible{outline:3px solid #f3d19a;outline-offset:5px}
.illustrated-lore .eyebrow,.illustrated-lore .chapter-number{color:#d2b67e;font-size:.68rem;letter-spacing:.19em}
.illustrated-lore .small-note{color:#a8b0a6}
.illustrated-lore .site-nav{border-bottom-color:#bfa36845;background:#0a1013}
.illustrated-lore .site-nav .nav-inner{min-height:96px}
.illustrated-lore .site-nav .brand{flex-basis:230px}
.illustrated-lore .site-nav .brand img{max-height:94px}
.illustrated-lore .site-nav .nav-links a{background:#111a1d;border-image-width:8px}
.illustrated-lore .site-nav .nav-links a.active{color:#ffedc6;background:#26372b}

.illustrated-lore .illustrated-cover{min-height:720px;min-height:min(850px,calc(100svh - 80px));position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;background:#132326;border-bottom:1px solid #bca26a70;overflow:hidden}
.cover-art,.cover-shade{position:absolute;inset:0;width:100%;height:100%}
.cover-art{object-fit:cover;object-position:center;z-index:-3}
.cover-shade{z-index:-2;background:linear-gradient(90deg,#060d13d9 0%,#08111799 37%,#0a131820 70%),linear-gradient(0deg,#091215 0%,transparent 32%,#08111a28 80%,#050c1070)}
.illustrated-lore .cover{padding:5.3rem 0 6rem;margin-top:auto;margin-bottom:auto}
.cover>.eyebrow{color:#f4d598;font-size:.72rem;letter-spacing:.3em;text-shadow:0 2px 8px #000}
.cover-rule{display:flex;align-items:center;gap:1rem;width:190px;color:#e8c385;font-size:.75rem;margin:1.5rem 0 .5rem;opacity:.8}
.cover-rule span{height:1px;width:70px;background:linear-gradient(90deg,transparent,#d1b279)}
.cover-rule span:last-child{transform:rotate(180deg)}
.illustrated-lore .cover h1{font-size:clamp(5.2rem,11vw,10.5rem);font-weight:400;line-height:1.02;letter-spacing:-.055em;margin:.2rem 0 1.4rem;color:#fff0cb;text-shadow:0 5px 40px #03101799}
.illustrated-lore .cover .cover-lede{color:#eee6cf;font-size:clamp(1.2rem,2vw,1.55rem);font-style:normal;line-height:1.7;max-width:490px;text-shadow:0 2px 10px #000b}
.cover-actions{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;margin-top:2rem}
.illustrated-lore .gold-button,.outline-button{min-height:51px;display:inline-flex;align-items:center;justify-content:center;gap:2rem;margin:0;font:700 .72rem/1.5 system-ui,sans-serif;letter-spacing:.06em;padding:1rem 1.35rem;text-decoration:none;border-radius:2px}
.illustrated-lore .gold-button{color:#172223;background:linear-gradient(135deg,#e9c993,#c5a068);border:1px solid #f6dfb1;box-shadow:0 4px 20px #0003}
.illustrated-lore .gold-button:hover{background:#efd7aa}
.outline-button{border:1px solid #f3d9a865;color:#fff2d4!important;background:#1020225c;backdrop-filter:blur(5px)}
.outline-button:hover{border-color:#e6c891;background:#152a2bba}
.cover-bottom{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.2rem!important;color:#d4c7a4;font:600 .59rem/1.6 system-ui,sans-serif;letter-spacing:.16em}
.illustrated-lore .art-text-button,.illustrated-lore .text-button{background:none;border:0;color:#e7c995;font:.74rem/1.6 system-ui,sans-serif;padding:.5rem 0;letter-spacing:.02em}
.illustrated-lore .art-text-button:hover,.illustrated-lore .text-button:hover{background:none;color:#fff0cb;text-decoration:underline;text-underline-offset:5px}
.chapter-nav{position:sticky;top:0;z-index:15;display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:1.1rem 5%;background:#0b1518ed;backdrop-filter:blur(14px);border-bottom:1px solid #b4935b40;font:.66rem/1.5 system-ui,sans-serif}
.chapter-nav a{text-decoration:none;white-space:nowrap;color:#bfc7bd}
.chapter-nav a:hover{color:#f4d79e}
.chapter-nav .chronicle-wordmark{color:#e0c28c;font-weight:700;letter-spacing:.18em}
.chronicle-wordmark span{color:#9aab9e;margin-left:.6rem;font-size:.55rem;letter-spacing:.15em}
.chapter-nav>div{display:flex;gap:1.8rem;align-items:center}
.illustrated-lore section{scroll-margin-top:90px}
.illustrated-lore .section-heading{align-items:flex-end;margin-bottom:2.4rem;gap:2rem}
.section-heading-note{text-align:right;font:italic .96rem/1.6 Georgia,serif;color:#a4b0a5!important;margin:0 0 .2rem}
.illustrated-lore .opening{display:grid;grid-template-columns:1fr 1.1fr;gap:7%;padding:7rem 0 6.5rem}
.opening-heading h2{font-size:clamp(2.5rem,4.1vw,3.7rem);margin-bottom:2rem}
.fine-rule{height:1px;width:100px;background:linear-gradient(90deg,#d5b577,transparent);margin:1.4rem 0}
.illustrated-lore .opening-aside{font-size:1rem;font-style:italic;max-width:350px;color:#acb6a8}
.opening-prose{font-size:1.06rem}
.illustrated-lore .opening p:first-of-type:first-letter{float:none;font:inherit;padding:0;color:inherit}
.opening-prose p:first-child:first-letter{float:left!important;font:4.5rem/.9 Georgia,serif!important;padding:.4rem .6rem 0 0!important;color:#d1b47c!important}
.opening-prose p:first-child{margin-top:0}
.realms-section{padding-bottom:7rem}
.realm-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1.1rem}
.illustrated-lore .realm-tile{position:relative;display:block;grid-column:span 4;min-height:300px;padding:0;overflow:hidden;border:1px solid #c1a36a4d;background:#172425;text-align:left;isolation:isolate}
.realm-tile:nth-child(1){grid-column:span 7;min-height:360px}
.realm-tile:nth-child(2){grid-column:span 5;min-height:360px}
.realm-tile:nth-child(6),.realm-tile:nth-child(7){grid-column:span 6;min-height:340px}
.realm-tile>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s ease,filter .5s}
.realm-tile:after{content:'';position:absolute;inset:0;z-index:0;background:linear-gradient(0deg,#061014f2,transparent 75%);pointer-events:none}
.realm-tile:hover>img,.realm-tile:focus-visible>img{transform:scale(1.045);filter:saturate(1.1)}
.realm-tile-copy{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:2rem 1.8rem 1.5rem}
.realm-tile-copy .eyebrow{display:block;font-size:.54rem;line-height:1.9;letter-spacing:.12em;color:#e6d3a4!important}
.realm-tile-copy h3{font-size:clamp(1.6rem,2.4vw,2.3rem);line-height:1.15;margin:.45rem 0 .7rem;text-shadow:0 2px 14px #000}
.realm-enter{display:block;color:#d6c196;font:.66rem/1.5 system-ui,sans-serif}
.realm-tile:hover .realm-enter{color:#fff2ca}
.warmaster-section{padding:1rem 0 7rem}
.warmaster-feature{display:grid;grid-template-columns:1.2fr 1fr;border:1px solid #c3a26540;background:linear-gradient(135deg,#1c2823,#111b1f);box-shadow:0 20px 80px #0002}
.warmaster-art{display:flex;align-items:center;background:radial-gradient(ellipse at center,#8b683d22,transparent 70%),#0b1215;min-width:0}
.illustrated-lore .artwork-trigger{position:relative;display:block;padding:0;width:100%;background:#0b1316;border:1px solid #bca16a50;overflow:hidden;border-radius:0;text-align:left;line-height:0}
.artwork-trigger>img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:contain;transition:filter .4s}
.artwork-trigger:hover>img{filter:brightness(1.08)}
.artwork-cue{position:absolute;top:1rem;right:1rem;z-index:2;padding:.5rem .65rem;background:#0a131bcc;color:#f4deaf;border:1px solid #d7ba7d70;font:.6rem/1.4 system-ui,sans-serif;letter-spacing:.02em;opacity:0;transform:translateY(-3px);transition:opacity .2s,transform .2s;backdrop-filter:blur(5px)}
.artwork-trigger:hover .artwork-cue,.artwork-trigger:focus-visible .artwork-cue{opacity:1;transform:translateY(0)}
.warmaster-art .artwork-trigger{border:0}
.warmaster-introduction{padding:2.5rem 2.5rem 2rem}
.warmaster-introduction blockquote{font-size:1.65rem;line-height:1.45;font-style:italic;margin:1.1rem 0 1.4rem;color:#f0d6a1}
.warmaster-introduction p{font-size:.94rem;line-height:1.9}
.warmaster-facts{display:flex;flex-wrap:wrap;gap:1rem 2rem;border-top:1px solid var(--line);margin:1.5rem 0 0;padding:1.2rem 0 0}
.warmaster-facts dt{color:#a0ad9f;font:600 .57rem/1.5 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase}
.warmaster-facts dd{font-size:.8rem;margin:.3rem 0 0;color:#e7d4ae}
.warmaster-story{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;padding:2rem 1rem 1.5rem;font-size:1rem}
.summons-figure{margin:1.7rem 0 0}
.summons-figure .artwork-trigger>img{max-height:620px}
.summons-figure figcaption{margin-top:.8rem;color:#a2ada1;text-align:center;font:italic .88rem/1.6 Georgia,serif}
.sanctuary-section{background:linear-gradient(180deg,#102126,#0e1b1e 65%,#0b1719);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-bottom:5rem}
.sanctuary-panorama{max-width:1920px;margin:auto;position:relative}
.sanctuary-panorama .artwork-trigger{border:0}
.sanctuary-panorama .artwork-trigger>img{width:100%;max-height:760px;aspect-ratio:2/1;object-fit:contain}
.sanctuary-copy{display:grid;grid-template-columns:1fr 1.1fr;gap:8%;padding-top:4rem;padding-bottom:3rem}
.sanctuary-heading h2{font-size:clamp(3.5rem,6vw,5.8rem);margin:1rem 0 1.7rem}
.sanctuary-heading blockquote{font-style:italic;line-height:1.7;font-size:1.05rem;margin:0 0 1.5rem;max-width:370px;color:#cbbd9c}
.sanctuary-seal{display:inline-block;border-top:1px solid #b9a16c88;border-bottom:1px solid #b9a16c88;padding:.6rem 0;font:600 .59rem/1.5 system-ui,sans-serif;letter-spacing:.18em;color:#d6be8a}
#sanctuary-story{padding-top:1.1rem}
#sanctuary-story p{font-size:1.05rem;line-height:1.95}
.provisions-feature{display:grid;grid-template-columns:1.2fr 1fr;gap:4%;align-items:center;padding-top:2.8rem;border-top:1px solid var(--line)}
.provisions-feature h3{font-size:clamp(2rem,3.1vw,3rem);line-height:1.15;margin:.8rem 0 1.4rem}
.provisions-feature p{font-size:.98rem}
.provisions-feature .quiet-link{display:inline-block;margin-top:.7rem}
.illustrated-lore .heroes-section{padding:6rem 0;border:0;background:radial-gradient(ellipse at 50% 0,#506b4320,transparent 55%),#0a1316}
.illustrated-lore .section-intro{color:#b8c1b3;max-width:790px;font-size:1rem}
.illustrated-lore .hero-tools{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:1.1rem 0;color:#c5c9bb}
.illustrated-lore input[type=radio],.illustrated-lore input[type=checkbox]{accent-color:#cead74}
.illustrated-lore .hero-grid{gap:1.2rem}
.illustrated-lore .hero{background:#111e21;border:1px solid #b69c652b;transition:border-color .2s,background .2s}
.illustrated-lore .hero:hover{border-color:#c3a36b78;background:#162327}
.illustrated-lore .hero-art{height:300px;background:radial-gradient(ellipse at 50% 70%,#a8864f26,transparent 65%),linear-gradient(0deg,#102226,#0d181c);border-bottom:1px solid #d3b27218}
.illustrated-lore .hero-art img{height:98%;width:98%;object-fit:contain;filter:drop-shadow(0 10px 12px #0007)}
.illustrated-lore .hero-heading{padding:1.3rem 1.6rem 1.6rem;border-top:0}
.illustrated-lore .hero-heading h3{font-size:1.85rem}
.illustrated-lore .hero-heading p{color:#a5b5aa;font-size:.83rem}
.illustrated-lore .hero-heading .eyebrow{font-size:.57rem;letter-spacing:.12em}
.illustrated-lore .read-cue{font-size:.64rem;color:#ccb485;letter-spacing:.04em;margin-top:1.1rem}
.illustrated-lore .hero[open]{background:#152227;border-color:#c3a36b75}
.illustrated-lore .hero[open] .read-cue:after{content:'Close origin tradition −';font-size:.64rem}
.illustrated-lore .hero[open] .hero-heading h3{font-size:2.7rem}
.illustrated-lore .hero[open] .hero-art{height:320px;border:0}
.illustrated-lore .hero-body{padding:0 2.2rem 2.2rem}
.illustrated-lore .hero-body>blockquote{font-size:1.25rem;border-left-color:#ceac72;color:#dfc592}
.illustrated-lore .hero-prose{font-size:.98rem;column-gap:3rem}
.illustrated-lore .lore-facts{border-color:#b99a5b38;gap:1.5rem 2.5rem}
.illustrated-lore .lore-facts dt,.illustrated-lore .realm-facts dt{color:#c1aa79;font-size:.59rem;letter-spacing:.12em}
.illustrated-lore .lore-facts dd{color:#c1c9bc;font-size:.83rem}
.illustrated-lore .hero-homeland{font:.71rem/1.5 system-ui,sans-serif;margin-top:1rem;padding:.7rem 1rem}
.illustrated-lore .atlas-section{padding-top:5rem;padding-bottom:6rem}
.illustrated-lore .atlas-tools{border-color:var(--line);gap:1.1rem;color:#c2cabd;font-size:.75rem}
.illustrated-lore .atlas-tools button{font-size:.7rem}
.illustrated-lore .atlas-layout{border-color:#bfa36c50;background:#122226;box-shadow:0 15px 70px #0003}
.illustrated-lore .map-card{background:#132125;border-color:#bfa36c50;padding:1.5rem}
.illustrated-lore .map-card h3{font-size:1.65rem}
.illustrated-lore .map-card p{font-size:.84rem;line-height:1.8}
.illustrated-lore .map-card .eyebrow{color:#d8ba82;font-size:.57rem}
.illustrated-lore .map-card .small-note{color:#9eaea2;font-size:.7rem}
.illustrated-lore .map-card button{font:.69rem/1.5 system-ui,sans-serif;text-align:left;padding:.65rem .85rem;margin-top:.5rem}
.illustrated-lore .realm-shortcuts{gap:.5rem;margin-top:1.2rem}
.illustrated-lore .realm-shortcuts button{font-size:.64rem;padding:.5rem .75rem}
.map-footnote{margin-top:1.4rem;max-width:950px}
.illustrated-lore .route-book{border-color:var(--line);background:#122025;padding:1.2rem 1.5rem;margin-top:2rem}
.illustrated-lore .route-book>summary{color:#d2bb8d;font:.8rem/1.5 system-ui,sans-serif}
.illustrated-lore .route-grid{margin-top:1.3rem;gap:1.7rem}
.illustrated-lore .route-grid article{border-color:var(--line)}
.illustrated-lore .route-grid h4{font-size:1.25rem}
.illustrated-lore .history-section{padding-top:1rem;padding-bottom:6rem}
.illustrated-lore .timeline{max-width:1120px;margin-top:3.5rem}
.illustrated-lore .timeline:before{border-color:#b69b665c}
.illustrated-lore .event{margin-bottom:3rem}
.illustrated-lore .event-year{color:#d4ba84;font-size:.78rem;padding-top:.4rem}
.illustrated-lore .event-copy h3{font-size:1.8rem;margin-bottom:.8rem}
.illustrated-lore .event-copy p{font-size:.97rem}
.illustrated-lore .event-copy:before{background:#d0ae72;border-color:#edcd95;box-shadow:0 0 18px #cda36933}
.illustrated-lore .present{width:100%;background:#152328;border:1px solid #b99a5b3d;padding:2.4rem 3rem;margin:3rem 0}
.illustrated-lore .present h3{font-size:2rem}
#present-day{columns:2;column-gap:3rem}
#present-day p{margin-top:0;font-size:.96rem;break-inside:avoid}
.illustrated-lore .faction-title{font-size:2rem;margin-bottom:1.8rem}
.illustrated-lore .faction{background:linear-gradient(150deg,#1e2928,#132024);border-top:1px solid #c5a36a;border-bottom:1px solid #b99a5b25;padding:1.7rem}
.illustrated-lore .faction h4{font-size:1.3rem;color:#e5d2a9}
.illustrated-lore .faction p{font-size:.88rem}
.illustrated-lore .gazetteer-section{padding-top:1rem;padding-bottom:6rem}
.illustrated-lore .search-label{font-size:.71rem;letter-spacing:.03em;color:#d2bf98;max-width:640px}
.illustrated-lore .search-label input{background:#152327;border:1px solid #c6a56d70;color:#f0e5cb;padding:.9rem 1.1rem;margin-top:.6rem;border-radius:2px}
.illustrated-lore .search-label input::placeholder{color:#8c9e93;letter-spacing:0}
.illustrated-lore .place-grid{gap:1.4rem}
.illustrated-lore .place-card{padding:0;background:#132125;border:1px solid #bba0653d;overflow:hidden;display:flex;flex-direction:column}
.illustrated-lore .place-scene-trigger{position:relative;border:0;border-bottom:1px solid #bba0653d;padding:0;border-radius:0;overflow:hidden;line-height:0;text-align:left;flex:none}
.place-scene-trigger>img{width:100%;height:auto;aspect-ratio:1.85/1;object-fit:cover;display:block;transition:transform .6s,filter .5s}
.place-scene-trigger:hover>img{transform:scale(1.04);filter:brightness(1.1)}
.place-scene-cue{position:absolute;right:.8rem;bottom:.8rem;background:#0b1519dc;border:1px solid #cdb07880;padding:.45rem .6rem;font:.57rem/1.4 system-ui,sans-serif;color:#e8d1a0}
.place-card-copy{padding:1.4rem 1.5rem 1.5rem;flex:1;display:flex;flex-direction:column}
.illustrated-lore .place-card .eyebrow{font-size:.53rem;letter-spacing:.12em;color:#c8ad78}
.illustrated-lore .place-card h3{font-size:1.5rem;line-height:1.25;margin:.65rem 0 .8rem}
.illustrated-lore .place-card p{font-size:.86rem;line-height:1.85;margin:.1rem 0 1rem;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.illustrated-lore .place-card .dungeon-map-trigger:not(.place-scene-trigger){align-self:flex-start;margin-top:auto;font:.64rem/1.4 system-ui,sans-serif;padding:.55rem .8rem}
.illustrated-lore .release-tag{color:#dfbf7e;border:1px solid #b5995e50;padding:.25rem .45rem;font-size:.53rem;letter-spacing:.09em;align-self:flex-start;margin:0 0 1rem}
.illustrated-lore .book-tools{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:1.5rem 0 3rem;border-top:1px solid var(--line)}
.book-tools button{font:.7rem/1.5 system-ui,sans-serif}
.illustrated-lore footer{background:#070f12;border-top:1px solid #b99a5b35;padding:3.8rem 5%;gap:1rem;color:#9cab9e}
.illustrated-lore footer strong{color:#e3c18a;font-size:.8rem;letter-spacing:.25em}
.illustrated-lore footer>span{font-size:.65rem;letter-spacing:.08em}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.8rem 1.8rem;margin:.6rem 0}
.footer-links a{text-decoration:none;font-size:.68rem}
.illustrated-lore footer p{font:italic .9rem/1.7 Georgia,serif;color:#8da095;margin:.2rem 0}

/* In-place reading rooms and the full painting gallery. */
.illustrated-lore .lore-dialog{color:#dfdfd0;background:#101c20;border:1px solid #c6a56e99;border-radius:3px;box-shadow:0 25px 140px #000c;max-width:none;width:min(1320px,96vw);max-height:94vh;max-height:94dvh;overflow:auto;overscroll-behavior:contain;margin:auto;padding:1.6rem 1.8rem}
.lore-dialog::backdrop{background:#030b11e3;backdrop-filter:blur(9px)}
.illustrated-lore .dialog-heading{align-items:center;gap:1.5rem}
.illustrated-lore .dialog-heading h2{font-size:clamp(1.5rem,3.1vw,2.6rem);line-height:1.15;margin:.4rem 0 .6rem}
.illustrated-lore .dialog-heading .chapter-number{font-size:.57rem}
.illustrated-lore .close-dialog{padding:.65rem .9rem;font:600 .69rem/1.5 system-ui,sans-serif;background:#19282b;border-color:#c2a36980;min-width:88px}
.close-dialog span{font-size:1.1rem;padding-left:.5rem}
.dialog-help{font:.69rem/1.7 system-ui,sans-serif;color:#99aca0!important;margin:.3rem 0 1.2rem}
.dialog-controls{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-top:1px solid var(--line);padding-top:1rem}
.dialog-controls button{font:.68rem/1.5 system-ui,sans-serif;padding:.65rem .9rem}
.dialog-controls .small-note{font-size:.65rem;text-align:center}
.illustrated-lore .region-dialog{padding:0;width:min(1420px,96vw)}
.region-dialog-heading{position:sticky;top:0;z-index:4;padding:1.1rem 2rem .8rem;background:#0e1a1ff2;backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.region-dialog>.dialog-help{padding:.8rem 2rem 0;margin:0 0 .8rem}
.region-panorama{position:relative;background:#0b1418}
.region-panorama .artwork-trigger{border:0}
.region-panorama-copy{position:absolute;left:0;right:0;bottom:0;padding:4rem 3rem 2rem;background:linear-gradient(transparent,#081518ef);pointer-events:none}
.region-panorama-copy .eyebrow{color:#f0d59e;font-size:.75rem}
.region-panorama-copy p{color:#e7e1cc;max-width:930px;font-size:1.08rem;margin:.6rem 0 0;line-height:1.7}
.region-inner{padding:1rem 3rem 3rem}
.illustrated-lore .realm-facts{border-color:var(--line);margin:1.2rem 0 2.6rem;gap:2rem;font-size:.84rem;grid-template-columns:.9fr 1.6fr .9fr}
.realm-facts dd{color:#b6c3b7;line-height:1.85}
.region-subheading{margin:0 0 1.5rem}
.region-subheading h3,.region-origins>h3,.region-dungeons>h3{font-size:2rem;margin:.4rem 0 1.5rem}
.landmark-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem;margin-bottom:3.5rem}
.landmark-card{margin:0;background:#17262a;border:1px solid #bba16b30}
.landmark-card .artwork-trigger{border:0;border-bottom:1px solid #bba16b30}
.landmark-card figcaption{padding:1.3rem}
.landmark-card h4{font-size:1.22rem;line-height:1.35;color:#e5d4b0;margin:0 0 .7rem}
.landmark-card p{font-size:.83rem;line-height:1.85;margin:0;color:#b6c1b4}
.region-reading{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(220px,1fr);gap:3rem}
.region-reading-main>h3{font-size:2rem;margin:.6rem 0 1.6rem}
.region-reading-main>p{font-size:.98rem;line-height:1.95;margin:0 0 1.5rem}
.illustrated-lore .realm-custom{border-left:2px solid #cba66b;color:#d6c5a0;padding:.5rem 0 .5rem 1.4rem;font-size:1rem;line-height:1.85;margin:2rem 0 0}
.illustrated-lore .realm-aside{align-self:start;border-left:1px solid var(--line);padding-left:2rem;margin-top:2.7rem;font-size:.85rem}
.illustrated-lore .realm-aside h4{color:#dfc18c;font-size:1.2rem;margin:0 0 .8rem}
.illustrated-lore .realm-aside p{line-height:1.9;font-size:.84rem;margin:0 0 1.7rem}
.illustrated-lore .realm-relation{display:block;padding:0;border:0;background:none;text-align:left;color:#d6c195;font:.7rem/1.6 system-ui,sans-serif;margin:1rem 0 .5rem}
.illustrated-lore .realm-relation:hover{background:none;color:#fff1c8;text-decoration:underline;text-underline-offset:4px}
.region-origins{border-top:1px solid var(--line);padding-top:2.8rem;margin-top:3rem}
.region-origin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}
.region-hero-origin{border:1px solid #bfa16b40;background:#15262a;align-self:start}
.region-hero-origin>summary{display:grid;grid-template-columns:140px 1fr;align-items:center;list-style:none;cursor:pointer}
.region-hero-origin>summary::-webkit-details-marker{display:none}
.region-hero-origin .hero-art{height:155px}
.region-hero-origin .hero-heading{padding:1rem}
.region-hero-origin .hero-heading h3{font-size:1.8rem}
.region-hero-origin .hero-heading .eyebrow{font-size:.5rem}
.region-hero-origin[open]{grid-column:1/-1}
.region-hero-origin[open]>summary{grid-template-columns:180px 1fr}
.region-hero-origin[open] .hero-art{height:185px}
.region-hero-origin[open] .read-cue{font-size:0}
.region-hero-origin[open] .read-cue:after{content:'Close origin tradition −';font-size:.64rem}
.region-hero-origin .hero-body{padding:1rem 2rem 2rem}
.region-dungeons{border-top:1px solid var(--line);padding-top:2.5rem;margin-top:3rem}
.region-dungeon-links{display:flex;gap:.65rem;flex-wrap:wrap}
.region-dungeon-links button{font:.72rem/1.6 system-ui,sans-serif;padding:.75rem 1rem}
.region-dialog-controls{position:sticky;bottom:0;z-index:4;background:#102025f5;backdrop-filter:blur(12px);padding:1rem 2rem;border-top:1px solid #baa06c60}
.illustrated-lore .artwork-dialog{width:min(1500px,97vw);background:#090f13;padding:1.2rem 1.5rem 1rem}
.artwork-dialog .dialog-heading{padding:0 .1rem .7rem}
.artwork-dialog .dialog-heading h2{font-size:1.5rem}
.artwork-figure{margin:0}
.artwork-figure>img{width:100%;height:auto;max-height:66dvh;object-fit:contain;display:block;background:#05090c;border:1px solid #b59a5f38}
.artwork-figure figcaption{max-width:900px;margin:1rem auto;text-align:center;font:italic .97rem/1.65 Georgia,serif;color:#c3cbbd}
.gallery-hint{font:.6rem/1.5 system-ui,sans-serif;text-align:center;margin:1rem 0 0;color:#8fa295!important}
.illustrated-lore .place-map-layout{grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr);gap:1.7rem}
.place-map-scene{margin-bottom:1rem}
.place-map-scene .artwork-trigger{border-color:#b69c665c}
.illustrated-lore .place-map-image{border-color:#b69c665c}
.illustrated-lore .place-map-story .eyebrow{color:#c8ad75;font-size:.57rem}
.illustrated-lore .place-map-story h3{font-size:1.75rem}
.illustrated-lore .place-map-story p{font-size:.97rem;line-height:1.9}
.illustrated-lore .place-map-story .threshold-note{border-color:#c7a46b;color:#d4c09a;font-size:.87rem}
.print-realm-chapters{display:none}

@media(min-width:1650px){.illustrated-lore .cover{width:min(1600px,90%)}.realm-tile{min-height:340px!important}.realm-tile:nth-child(1),.realm-tile:nth-child(2){min-height:410px!important}}
@media(max-width:1150px){.chapter-nav{gap:1rem}.chapter-nav>div{gap:1.1rem}.chronicle-wordmark span{display:none}.illustrated-lore .opening{gap:5%}.warmaster-feature{grid-template-columns:1fr 1fr}.warmaster-introduction{padding:2rem}.warmaster-introduction blockquote{font-size:1.35rem}.warmaster-facts{gap:.8rem 1.2rem}.realm-tile-copy{padding:1.6rem 1.4rem 1.3rem}.region-inner{padding:1rem 2rem 2rem}.region-panorama-copy{padding:4rem 2rem 1.5rem}.region-reading{gap:2rem;grid-template-columns:minmax(0,2fr) minmax(200px,1fr)}.landmark-card figcaption{padding:1rem}.region-origin-grid{grid-template-columns:1fr}.region-hero-origin>summary{grid-template-columns:140px 1fr}}
@media(max-width:900px){.illustrated-lore .wide{width:90%}.illustrated-lore .illustrated-cover{min-height:680px}.chapter-nav{padding:1rem 5%;overflow:auto;gap:2rem;white-space:nowrap}.chapter-nav .chronicle-wordmark{display:none}.chapter-nav>div{gap:1.6rem}.illustrated-lore .opening{grid-template-columns:1fr;gap:2rem;padding:4.5rem 0}.opening-heading h2 br{display:none}.opening-aside{display:none}.opening-prose{max-width:760px}.realm-tile,.realm-tile:nth-child(1),.realm-tile:nth-child(2),.realm-tile:nth-child(6),.realm-tile:nth-child(7){grid-column:span 6;min-height:290px}.realm-tile:last-child{grid-column:1/-1}.warmaster-feature{grid-template-columns:1fr}.warmaster-art .artwork-trigger>img{max-height:610px}.warmaster-introduction{padding:2.5rem}.warmaster-introduction blockquote{font-size:1.75rem}.warmaster-facts{gap:1.5rem 3rem}.warmaster-story{gap:2rem;padding-left:0;padding-right:0}.sanctuary-copy{gap:4%;grid-template-columns:1fr 1.2fr}.sanctuary-heading h2{font-size:3.4rem}.provisions-feature{gap:2rem;grid-template-columns:1fr}.provisions-feature>div:last-child{max-width:730px}.provisions-feature h3 br{display:none}.illustrated-lore .atlas-layout{grid-template-columns:1fr}.illustrated-lore .map-card{border-top:1px solid #bfa36c50;border-left:0}.illustrated-lore .map-card p{max-width:900px}.illustrated-lore .faction-grid,.illustrated-lore .place-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.region-reading{display:block}.illustrated-lore .realm-aside{border-left:0;border-top:1px solid var(--line);padding:2rem 0 0;margin-top:2rem}.landmark-grid{gap:.8rem}.landmark-card h4{font-size:1.1rem}.landmark-card p{font-size:.78rem}.region-reading-main>h3{font-size:1.8rem}.illustrated-lore .place-map-layout{grid-template-columns:1fr}.illustrated-lore .place-map-story{border-top:1px solid var(--line);padding-top:1rem}.illustrated-lore .place-map-story p{max-width:850px}}
@media(max-width:650px){:root{scroll-padding-top:70px}.illustrated-lore .wide{width:90%}.illustrated-lore .site-nav .nav-inner{padding:.5rem 0 .9rem}.illustrated-lore .site-nav .brand img{max-height:80px}.illustrated-lore .site-nav .nav-links a{font-size:.65rem}.illustrated-lore .illustrated-cover{min-height:620px;min-height:80svh}.cover-art{object-position:59% center}.cover-shade{background:linear-gradient(90deg,#061118c9,#0b1b2470),linear-gradient(0deg,#091215 1%,transparent 60%)}.illustrated-lore .cover{padding:4.5rem 0 4rem}.cover>.eyebrow{font-size:.59rem;letter-spacing:.2em}.illustrated-lore .cover h1{font-size:clamp(4.6rem,17vw,7rem);letter-spacing:-.05em;margin-top:.5rem}.illustrated-lore .cover .cover-lede{font-size:1.12rem}.cover-actions{gap:.7rem;align-items:stretch}.illustrated-lore .gold-button,.outline-button{font-size:.62rem;padding:.85rem 1rem;gap:1.5rem;min-height:46px}.cover-bottom{margin-bottom:.8rem!important;align-items:flex-start;gap:.7rem}.cover-bottom>span{max-width:180px;font-size:.47rem;line-height:1.8;letter-spacing:.1em}.illustrated-lore .art-text-button{font-size:.59rem;padding:0}.chapter-nav{padding:.95rem 5%;font-size:.6rem}.chapter-nav>div{gap:1.4rem}.illustrated-lore section{scroll-margin-top:72px}.illustrated-lore .section-heading{display:block;margin-bottom:1.7rem}.section-heading-note{text-align:left;font-size:.87rem;margin-top:1rem}.section-heading-note br{display:none}.section-heading .quiet-link,.section-heading .text-button{display:inline-block;margin-top:.8rem}.illustrated-lore h2{font-size:2.6rem}.illustrated-lore .opening{padding:3.5rem 0 4rem}.opening-heading h2{font-size:2.7rem}.opening-prose{font-size:.98rem}.illustrated-lore .chapter-number{font-size:.58rem}.realm-grid{display:block}.illustrated-lore .realm-tile{width:100%;min-height:300px!important;margin-bottom:1rem}.realm-tile-copy{padding:2rem 1.5rem 1.5rem}.realm-tile-copy h3{font-size:2rem}.realm-tile-copy .eyebrow{font-size:.52rem}.realms-section{padding-bottom:4.5rem}.warmaster-section{padding-bottom:4.5rem}.warmaster-introduction{padding:1.7rem}.warmaster-introduction blockquote{font-size:1.4rem}.warmaster-introduction p{font-size:.92rem}.warmaster-facts{gap:1rem 2rem}.warmaster-story{display:block;padding:1.2rem 0 .4rem}.warmaster-story p{font-size:.96rem}.summons-figure{margin-top:.7rem}.summons-figure figcaption{font-size:.78rem}.artwork-cue{opacity:1;transform:none;top:.6rem;right:.6rem;font-size:.5rem;padding:.4rem .5rem}.sanctuary-copy{display:block;padding-top:2.5rem;padding-bottom:1rem}.sanctuary-heading h2{font-size:3.7rem}.sanctuary-heading blockquote{font-size:.98rem}.sanctuary-seal{font-size:.52rem}#sanctuary-story{padding-top:1.5rem}#sanctuary-story p{font-size:.98rem;line-height:1.9}.provisions-feature{padding-top:2rem;gap:1.5rem}.provisions-feature h3{font-size:2.3rem}.provisions-feature p{font-size:.95rem}.sanctuary-section{padding-bottom:3rem}.illustrated-lore .heroes-section{padding:3.5rem 0}.illustrated-lore .hero-grid{grid-template-columns:1fr}.illustrated-lore .hero-tools{font-size:.72rem;gap:.8rem}.illustrated-lore .hero-tools .small-note{font-size:.68rem}.illustrated-lore .hero-art{height:300px}.illustrated-lore .hero[open]>summary{grid-template-columns:1fr}.illustrated-lore .hero[open] .hero-art{height:300px}.illustrated-lore .hero[open] .hero-heading h3{font-size:2rem}.illustrated-lore .hero-body{padding:0 1.5rem 1.5rem}.illustrated-lore .hero-body>blockquote{font-size:1.1rem;padding:.4rem 1rem}.illustrated-lore .hero-prose{columns:auto;font-size:.94rem}.illustrated-lore .lore-facts{grid-template-columns:1fr;gap:1.2rem}.illustrated-lore .atlas-section{padding-top:3.5rem;padding-bottom:4rem}.illustrated-lore .atlas-tools{font-size:.68rem}.atlas-tools fieldset{gap:.7rem}.atlas-tools .zoom-label{font-size:.67rem}.illustrated-lore .map-card{padding:1.2rem}.illustrated-lore .route-book{padding:1rem}.illustrated-lore .route-grid{grid-template-columns:1fr}.illustrated-lore .history-section{padding-bottom:3rem}.illustrated-lore .event{gap:28px;grid-template-columns:63px 1fr;margin-bottom:2.3rem}.illustrated-lore .event-copy h3{font-size:1.45rem}.illustrated-lore .event-copy p{font-size:.92rem}.illustrated-lore .event-year{font-size:.67rem}.illustrated-lore .present{padding:1.7rem 1.4rem}#present-day{columns:auto}#present-day p{font-size:.93rem}.illustrated-lore .faction-grid,.illustrated-lore .place-grid{grid-template-columns:1fr}.illustrated-lore .faction{padding:1.5rem}.illustrated-lore .gazetteer-section{padding-bottom:3.5rem}.place-scene-trigger>img{aspect-ratio:2/1}.illustrated-lore .place-card-copy{padding:1.3rem 1.5rem 1.5rem}.illustrated-lore .place-card h3{font-size:1.6rem}.illustrated-lore .book-tools{gap:1rem}.book-tools .quiet-link{font-size:.66rem}.book-tools button{font-size:.63rem}.illustrated-lore .lore-dialog{width:97vw;max-height:96vh;max-height:96dvh;padding:1rem}.illustrated-lore .dialog-heading{gap:.8rem;align-items:flex-start}.illustrated-lore .dialog-heading h2{font-size:1.7rem;line-height:1.25}.illustrated-lore .close-dialog{padding:.5rem .6rem;min-width:70px;font-size:.62rem}.close-dialog span{padding-left:.3rem}.dialog-help{font-size:.61rem;line-height:1.7}.illustrated-lore .region-dialog{padding:0}.region-dialog-heading{padding:1rem 1.1rem .7rem}.region-dialog>.dialog-help{padding:.6rem 1.1rem 0}.region-panorama-copy{position:static;padding:1rem 1.3rem 1.4rem;background:#0c191d}.region-panorama-copy .eyebrow{font-size:.57rem}.region-panorama-copy p{font-size:.9rem;line-height:1.85}.region-inner{padding:.2rem 1.3rem 2rem}.illustrated-lore .realm-facts{display:block;margin:1.2rem 0 2rem;padding-bottom:.6rem}.realm-facts>div{margin-bottom:1.2rem}.realm-facts dd{font-size:.82rem}.region-subheading h3,.region-origins>h3,.region-dungeons>h3{font-size:1.8rem}.landmark-grid{grid-template-columns:1fr;gap:1rem;margin-bottom:2.7rem}.landmark-card h4{font-size:1.3rem}.landmark-card p{font-size:.85rem}.landmark-card figcaption{padding:1.2rem}.region-reading-main>p{font-size:.94rem;line-height:1.95}.region-reading-main>h3{font-size:1.75rem}.illustrated-lore .realm-custom{font-size:.94rem;padding-left:1rem}.region-origins,.region-dungeons{padding-top:2rem;margin-top:2.2rem}.region-hero-origin>summary,.region-hero-origin[open]>summary{grid-template-columns:100px 1fr}.region-hero-origin .hero-art,.region-hero-origin[open] .hero-art{height:150px}.region-hero-origin .hero-heading{padding:.9rem}.region-hero-origin .hero-heading h3{font-size:1.45rem}.region-hero-origin .hero-heading p{font-size:.75rem}.region-hero-origin .hero-heading .eyebrow{font-size:.45rem}.region-hero-origin .hero-body{padding:1rem 1.2rem 1.5rem}.region-dungeon-links button{font-size:.65rem;padding:.65rem .8rem}.region-dialog-controls{padding:.85rem 1rem}.dialog-controls{gap:.6rem}.dialog-controls button{font-size:.6rem;padding:.6rem .65rem}.dialog-controls .small-note{font-size:.57rem}.illustrated-lore .artwork-dialog{padding:1rem .8rem}.artwork-dialog .dialog-heading h2{font-size:1.3rem}.artwork-figure>img{max-height:65dvh}.artwork-figure figcaption{font-size:.85rem;margin:.8rem .4rem}.gallery-hint{font-size:.55rem}.illustrated-lore .place-map-story h3{font-size:1.6rem}.illustrated-lore .place-map-story p{font-size:.93rem}.illustrated-lore footer{padding:3rem 5%}.footer-links{gap:.7rem 1.2rem}.footer-links a{font-size:.61rem}.illustrated-lore footer p{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}.illustrated-lore *{transition:none!important;animation:none!important}.realm-tile:hover>img,.place-scene-trigger:hover>img{transform:none}}
@media print{body.illustrated-lore{background:white!important;color:#171c1b;font-size:11pt}.illustrated-lore :is(p,h2,h3,h4,dd,blockquote){color:#222!important}.illustrated-lore :is(.chapter-number,.eyebrow,.small-note){color:#665339!important}.illustrated-lore .site-nav,.chapter-nav,.cover-actions,.cover-bottom,.realm-grid,.artwork-cue,.hero-tools,.hero-homeland,.book-tools,.quiet-link,.text-button,.lore-dialog,.footer-links,.place-scene-cue{display:none!important}.illustrated-lore .illustrated-cover{min-height:300px;height:300px}.illustrated-lore .cover{padding:2rem 0}.illustrated-lore .cover h1{font-size:5rem;color:#fff5dc!important}.illustrated-lore .cover p{color:white!important}.cover-art{opacity:.75}.illustrated-lore .opening{display:block;padding:2rem 0}.opening-prose p:first-child:first-letter{float:none!important;font:inherit!important;padding:0!important;color:inherit!important}.opening-heading h2 br{display:none}.print-realm-chapters{display:block}.print-realm-chapter{break-before:page;margin:1rem 0 2rem}.print-realm-chapter>img{width:100%;max-height:280px;object-fit:cover}.print-realm-chapter p{orphans:3;widows:3}.print-realm-chapter .realm-facts{display:block}.print-realm-chapter .realm-facts>div{margin:.6rem 0}.warmaster-feature,.warmaster-story,.sanctuary-copy,.provisions-feature{display:block;background:white!important;box-shadow:none;border-color:#aaa}.warmaster-art .artwork-trigger>img,.summons-figure img,.sanctuary-panorama img,.provisions-art img{max-height:330px;object-fit:contain}.warmaster-introduction{padding:1rem}.warmaster-facts{color:#333}.warmaster-facts dt,.warmaster-facts dd{color:#333!important}.sanctuary-section,.heroes-section,.hero,.faction,.present,.place-card{background:white!important;border-color:#aaa!important}.sanctuary-section{padding:0}.sanctuary-copy{padding:1rem 0}.sanctuary-heading h2 br{display:none}.provisions-feature{padding-top:1rem}.illustrated-lore .hero[open]>summary{grid-template-columns:25% 1fr}.illustrated-lore .hero-art{height:190px!important;background:#eee}.illustrated-lore .hero-art img{filter:none}.illustrated-lore .hero-body{padding:1rem}.hero-prose,#present-day{columns:auto}.illustrated-lore .hero-grid{display:block}.illustrated-lore .hero{break-before:page}.illustrated-lore .event{break-inside:avoid}.illustrated-lore .place-card p{display:block;-webkit-line-clamp:unset}.illustrated-lore .place-card-copy{padding:1rem}.illustrated-lore .place-card .dungeon-map-trigger{display:none}.illustrated-lore .faction-grid,.illustrated-lore .place-grid{grid-template-columns:1fr 1fr}.illustrated-lore .place-card,.illustrated-lore .faction{break-inside:avoid}.illustrated-lore .place-scene-trigger>img{max-height:150px;object-fit:cover}.illustrated-lore .section-heading{display:block}.illustrated-lore section{padding-top:1rem;padding-bottom:1rem}.illustrated-lore footer{display:none}}

/* Atlas portal: one view at a time, with the paintings a menu away. */
.illustrated-lore .illustrated-cover{min-height:300px;height:300px;justify-content:center}
.illustrated-lore .cover{padding:1.4rem 0;margin:auto}
.cover-rule,.illustrated-lore .cover-bottom{display:none}
.illustrated-lore .cover h1{font-size:clamp(3.6rem,6.7vw,6rem);line-height:1;margin:.35rem 0 .65rem}
.illustrated-lore .cover .cover-lede{font-size:1rem;line-height:1.55;margin:.35rem 0;max-width:460px}
.cover>.eyebrow{font-size:.58rem;letter-spacing:.23em}
.cover-actions{margin-top:1rem;gap:.7rem}
.illustrated-lore .cover-actions a{min-height:42px;padding:.65rem 1rem;font-size:.64rem}
.chapter-nav{padding:.55rem 5%;gap:1rem}
.chapter-nav>div{gap:.2rem;overflow-x:auto;scrollbar-width:thin}
.illustrated-lore .chapter-nav button[role=tab]{flex:none;border:0;border-bottom:2px solid transparent;border-radius:0;min-height:44px;background:transparent;color:#afbeb4;font:.71rem/1.5 system-ui,sans-serif;padding:.6rem .95rem;white-space:nowrap}
.illustrated-lore .chapter-nav button[role=tab]:hover{color:#fff0ce;background:#24342f}
.illustrated-lore .chapter-nav button[aria-selected=true]{border-bottom-color:#dbb976;color:#f6d99e;background:#1b2b29}
.portal-panel{min-width:0;scroll-margin-top:76px}
.portal-panel:focus{outline:none}
.portal-panel[hidden]{display:none!important}
.illustrated-lore .portal-panel>section{padding-top:2.3rem;padding-bottom:3rem}
.illustrated-lore .portal-panel .section-heading{margin-bottom:1rem}
.illustrated-lore .portal-panel .section-heading h2{font-size:clamp(2rem,3.5vw,3.1rem)}
.illustrated-lore .atlas-intro{font-size:.88rem;margin:.7rem 0 1.25rem;color:#b9c4b7;max-width:1000px}
.atlas-gallery-link{margin-left:.8rem;font:.75rem/1.7 system-ui,sans-serif;text-underline-offset:4px}
.illustrated-lore .atlas-tools{padding:.7rem 0;gap:.6rem 1.15rem;font-size:.72rem}
.atlas-tools input[type=range]{max-width:130px}
.illustrated-lore .atlas-tools button{font-size:.65rem;min-height:36px;padding:.5rem .75rem}
.illustrated-lore .atlas-layout{grid-template-columns:minmax(0,1fr) 310px;align-items:stretch}
.illustrated-lore .map-card{padding:1rem;height:clamp(425px,calc(45vw - 155px),565px);max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.illustrated-lore .map-card h3{font-size:1.5rem;line-height:1.2;margin:.55rem 0 .8rem}
.illustrated-lore .map-card>p{font-size:.82rem;line-height:1.75}
.illustrated-lore .map-card>.eyebrow{display:block;font-size:.52rem;margin-top:1.1rem}
.illustrated-lore .map-card .small-note{font-size:.66rem}
.illustrated-lore .map-card .map-card-panorama{padding:0;margin:0 0 .7rem;border:1px solid #c5a57255}
.map-card-panorama img{aspect-ratio:2/1;object-fit:cover}
.map-card-panorama .artwork-cue{top:.5rem;right:.5rem;font-size:.5rem;padding:.3rem .45rem}
.illustrated-lore .map-card .map-card-label{font:600 .5rem/1.5 system-ui,sans-serif;letter-spacing:.13em;color:#cfb57e;margin:.8rem 0 .5rem}
.map-landmark-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}
.illustrated-lore .map-landmark-thumbs .map-landmark-thumb{padding:0;margin:0;min-width:0;border:1px solid #bfa16955}
.map-landmark-thumb>img{aspect-ratio:2/1;object-fit:cover}
.map-landmark-thumb .artwork-cue{display:none}
.map-landmark-name{display:block;font:.49rem/1.5 system-ui,sans-serif;padding:.4rem .3rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d9c79d}
.map-visit-options{display:flex;gap:.35rem;padding:.4rem 0 .8rem;margin-bottom:.7rem;border-bottom:1px solid var(--line)}
.illustrated-lore .map-visit-options button{min-height:36px;margin:0;padding:.45rem .7rem;font-size:.65rem}
.illustrated-lore .map-visit-options button[aria-pressed=true]{background:#d1b17a;color:#112325;border-color:#f0d7a8}
.illustrated-lore .map-marker.realm{z-index:3;padding:.35rem .5rem;background:#0e2726d9;border:1px solid #c1a3708c;font-size:.54rem;letter-spacing:.025em;border-radius:2px;box-shadow:0 2px 8px #0008}
.illustrated-lore .map-marker.realm:hover,.illustrated-lore .map-marker.realm[aria-pressed=true]{color:#fff0c6;background:#4e4a2f;border-color:#eed297;z-index:6}
.illustrated-lore .map-marker.place{width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;font-size:0;z-index:5}
.map-marker.place::after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:9px;height:9px;border:2px solid #ffe2a4;border-radius:50%;background:#315c59;box-shadow:0 0 0 3px #08182266,0 2px 6px #000c;transition:width .15s,height .15s,background .15s}
.illustrated-lore .map-marker.place:hover,.illustrated-lore .map-marker.place[aria-pressed=true]{background:transparent;z-index:7}
.map-marker.place:hover::after,.map-marker.place:focus-visible::after,.map-marker.place[aria-pressed=true]::after{width:12px;height:12px;background:#ffe1a2;border-color:#fff2d5;box-shadow:0 0 0 5px #e7b96140,0 2px 10px #000b}
.map-preview{position:absolute;z-index:12;width:210px;padding:0 0 .6rem;border:1px solid #ddbd7ca6;border-radius:3px;background:#0c1b20f5;box-shadow:0 10px 35px #000c;pointer-events:none;transform:translate(18px,18px);text-align:left}
.map-preview.preview-left{transform:translate(calc(-100% - 18px),18px)}
.map-preview.preview-above{transform:translate(18px,calc(-100% - 18px))}
.map-preview.preview-left.preview-above{transform:translate(calc(-100% - 18px),calc(-100% - 18px))}
.map-preview>img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;border-bottom:1px solid #c5a36c70}
.map-preview>strong{display:block;color:#f0d6a3;font:600 .72rem/1.4 Georgia,serif;padding:.65rem .7rem .2rem}
.map-preview>span{display:block;color:#afc0b0;font:.56rem/1.6 system-ui,sans-serif;padding:0 .7rem}
.illustrated-lore .realm-shortcuts{margin-top:.8rem;gap:.4rem}
.illustrated-lore .realm-shortcuts button{font-size:.59rem;min-height:34px;padding:.4rem .6rem}
.illustrated-lore .map-footnote{font-size:.67rem;margin-top:.8rem}
.illustrated-lore .route-book{margin-top:1.25rem;padding:.85rem 1rem}
.illustrated-lore .route-book>summary{font-size:.72rem;cursor:pointer}
.world-prologue{border:1px solid var(--line);background:#112125;margin:1rem 0 1.5rem;padding:.8rem 1.1rem}
.world-prologue>summary{font:.75rem/1.7 system-ui,sans-serif;color:#d8bd84;cursor:pointer}
.illustrated-lore .world-prologue .opening{padding:2rem 0 .5rem}
.warmaster-submenu{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1.5rem}
.illustrated-lore .warmaster-submenu button{font:.73rem/1.6 system-ui,sans-serif;min-height:40px;padding:.6rem 1rem}
.illustrated-lore .warmaster-submenu button[aria-pressed=true]{background:#314235;border-color:#d8b979;color:#f4dfb3}
.art-gallery-tools{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1rem 0;margin-bottom:1.4rem;border-bottom:1px solid var(--line)}
.art-gallery-tools label{font:.7rem/1.8 system-ui,sans-serif;color:#c9b583}
.art-gallery-tools select{display:block;min-height:42px;min-width:240px;max-width:100%;padding:.6rem .9rem;margin-top:.35rem;background:#15272b;color:#f0dfbd;border:1px solid #bda16d80;border-radius:2px;font:.75rem/1.5 system-ui,sans-serif}
.art-gallery-tools p{font-size:.74rem;margin:.5rem 0}
.artwork-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.gallery-art-card{margin:0;min-width:0;background:#132327;border:1px solid #bda16a42}
.gallery-art-card>.artwork-trigger{border:0;border-bottom:1px solid #bda16a42}
.gallery-art-card>figcaption{padding:1rem 1.15rem 1.15rem}
.gallery-art-card .eyebrow{font-size:.49rem;letter-spacing:.08em}
.gallery-art-card h3{font-size:1.35rem;line-height:1.25;margin:.45rem 0 .6rem}
.illustrated-lore .gallery-art-card p{font-size:.78rem;line-height:1.75;margin:0 0 .6rem}
.gallery-view-cue{font:.58rem/1.5 system-ui,sans-serif;color:#d5b57a}
.illustrated-lore footer{padding:1.7rem 5%}
.illustrated-lore footer p{display:none}
@media(max-width:1100px){.chapter-nav .chronicle-wordmark{display:none}.illustrated-lore .atlas-layout{grid-template-columns:minmax(0,1fr) 275px}.illustrated-lore .map-card{max-height:530px}.artwork-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.illustrated-lore .atlas-layout{grid-template-columns:1fr}.illustrated-lore .map-card{height:auto;max-height:none;overflow:visible;display:block;border-left:0;border-top:1px solid var(--line)}.map-card>.map-card-panorama{max-width:360px}.map-landmark-thumbs{max-width:420px}.illustrated-lore .map-card>p{max-width:780px}.illustrated-lore .illustrated-cover{height:300px;min-height:300px}.chapter-nav{overflow:visible}.chapter-nav>div{width:100%;gap:.1rem}.illustrated-lore .chapter-nav button[role=tab]{padding:.6rem .85rem}.map-preview{width:190px}}
@media(max-width:650px){.illustrated-lore .illustrated-cover{height:300px;min-height:300px}.illustrated-lore .cover{padding:1.3rem 0}.illustrated-lore .cover h1{font-size:4.2rem}.illustrated-lore .cover .cover-lede{font-size:.88rem;line-height:1.5}.cover>.eyebrow{font-size:.5rem}.cover-actions{margin-top:.85rem}.illustrated-lore .cover-actions a{font-size:.59rem;min-height:40px;padding:.6rem .8rem}.chapter-nav{padding:.4rem 3%}.illustrated-lore .chapter-nav button[role=tab]{font-size:.64rem;min-height:44px;padding:.55rem .7rem}.illustrated-lore .portal-panel>section{padding-top:1.6rem;padding-bottom:2rem}.illustrated-lore .portal-panel .section-heading h2{font-size:2.1rem}.illustrated-lore .atlas-intro{font-size:.79rem;line-height:1.75}.atlas-gallery-link{display:inline-block;margin-left:0}.illustrated-lore .atlas-tools{font-size:.64rem;gap:.5rem .7rem}.atlas-tools input[type=range]{max-width:95px}.illustrated-lore .atlas-tools button{font-size:.6rem}.illustrated-lore .map-card{padding:1rem}.illustrated-lore .map-card .map-card-panorama{max-width:none}.map-landmark-thumbs{max-width:none}.illustrated-lore .map-marker.realm{font-size:.49rem}.artwork-grid{grid-template-columns:1fr;gap:1rem}.art-gallery-tools{align-items:stretch;gap:.3rem}.art-gallery-tools label{width:100%}.art-gallery-tools select{width:100%}.warmaster-submenu{margin-top:1rem}.illustrated-lore .warmaster-submenu button{font-size:.66rem}.gallery-art-card h3{font-size:1.4rem}}
@media(prefers-reduced-motion:reduce){.map-marker.place::after{transition:none}}
@media print{.portal-panel[hidden]{display:block!important}#panel-artwork{display:none!important}.warmaster-submenu,.map-preview{display:none!important}}

/* Shared location context joins the existing atlas, chapters and collections. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.lore-context{scroll-margin-top:76px;display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .65rem;min-height:48px;margin-top:.75rem!important;padding:.45rem 0 .65rem;border-bottom:1px solid var(--line);font:.66rem/1.5 system-ui,sans-serif}
.context-label{color:#94a699;font-size:.54rem;letter-spacing:.1em;text-transform:uppercase;margin-right:.35rem}
.context-divider{color:#6c7f75;font-size:.65rem}
.illustrated-lore .context-crumb{border:0;background:none;padding:.3rem 0;color:#d7bf8c;font:.68rem/1.5 system-ui,sans-serif;text-align:left}
.illustrated-lore .context-crumb:hover{background:none;color:#fff0c3;text-decoration:underline;text-underline-offset:4px}
.illustrated-lore .context-place{color:#e7e1cd}
.illustrated-lore .context-reset{margin-left:auto;padding:.4rem .65rem;font:.59rem/1.5 system-ui,sans-serif;background:#14262b;border-color:#bfa26a50}
.map-related-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;border-top:1px solid var(--line);padding-top:.7rem;margin-top:.8rem}
.illustrated-lore .map-related-actions button{font:.61rem/1.5 system-ui,sans-serif;padding:.45rem .6rem;min-height:33px;margin:0;background:#15272b;border-color:#ae965d5c}
.illustrated-lore .map-related-actions button:hover{background:#283b33;color:#f6dfad}
.region-context-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.7rem;padding:.9rem 2rem;background:#102127;border-bottom:1px solid var(--line)}
.region-context-actions .map-related-actions{border:0;padding:0;margin:0}
.illustrated-lore .region-atlas-link{font:.68rem/1.5 system-ui,sans-serif;padding:.6rem .85rem;border-color:#c7aa7180;background:#21362e}
.illustrated-lore .realm-tile.is-context-realm{border-color:#e5c385;box-shadow:inset 0 0 0 1px #e5c38570}
.illustrated-lore .hero.is-context-hero{border-color:#bda16f8c}
@media(max-width:650px){.lore-context{font-size:.61rem;gap:.25rem .5rem;margin-top:.5rem!important;padding:.5rem 0}.context-label{width:100%;font-size:.5rem}.illustrated-lore .context-crumb{font-size:.62rem}.illustrated-lore .context-reset{margin-left:0;font-size:.56rem}.region-context-actions{padding:.8rem 1.1rem;gap:.6rem}.illustrated-lore .region-atlas-link{font-size:.63rem}.illustrated-lore .map-related-actions button{font-size:.59rem}.region-context-actions .map-related-actions{gap:.5rem}}
@media print{.lore-context,.region-context-actions,.map-related-actions{display:none!important}}

/* The atlas is the shared surface; chapters open inside its reader. */
.illustrated-lore .illustrated-cover{height:190px;min-height:190px}
.illustrated-lore .cover{padding:1.1rem 0}
.illustrated-lore .cover h1{font-size:clamp(3rem,5.4vw,4.6rem);margin:.25rem 0 .45rem}
.illustrated-lore .cover .cover-lede{font-size:.88rem;line-height:1.5;margin:.3rem 0}
.cover-actions{margin-top:.65rem}
.illustrated-lore .cover-actions a{min-height:44px;padding:.6rem .9rem}
.chapter-nav{padding:.3rem 3%;border-top:1px solid #baa06c24;box-shadow:0 4px 16px #0003}
.chapter-nav>div{gap:.15rem;scrollbar-width:thin}
.illustrated-lore .map-workspace{width:min(1600px,94%);padding:1rem 0 1.4rem;scroll-margin-top:58px}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.7rem}
.workspace-heading h2{font-size:1.8rem;margin:.15rem 0 0;line-height:1.15}
.workspace-heading .chapter-number{font-size:.52rem;letter-spacing:.14em}
.workspace-heading .quiet-link{font-size:.67rem;min-height:44px;display:flex;align-items:center}
.workspace-toolbar{position:relative;z-index:8;display:flex;align-items:flex-end;gap:.65rem;padding:.7rem .8rem;background:#112226;border:1px solid #bba06b59;border-bottom:0;border-radius:5px 5px 0 0;font:.65rem/1.5 system-ui,sans-serif}
.workspace-toolbar label{display:block;color:#b7c4b6;font-size:.61rem;min-width:0}
.picker-search-label{flex:1 1 200px;max-width:300px}
.place-picker-label{flex:1 1 250px;max-width:390px}
.workspace-toolbar :is(input[type=search],select){display:block;width:100%;min-width:0;min-height:44px;margin-top:.25rem;padding:.55rem .65rem;background:#0b191e;color:#eee1c1;border:1px solid #b29b676b;border-radius:3px;font:16px/1.4 system-ui,sans-serif}
.workspace-toolbar input::placeholder{color:#94a79c;font-size:.78rem}
.workspace-toolbar select{font-size:.78rem;text-overflow:ellipsis}
.workspace-zoom{display:flex;align-items:center;gap:.3rem;margin-left:auto;flex:none}
.illustrated-lore .workspace-zoom button{min-width:44px;min-height:44px;padding:.5rem .65rem;font:.85rem/1 system-ui,sans-serif}
.illustrated-lore .workspace-zoom #overview-map{font-size:.68rem;padding:.6rem .8rem}
#map-zoom-status{font:600 .62rem/1.5 system-ui,sans-serif;color:#b8c6b8;min-width:34px;text-align:center;font-variant-numeric:tabular-nums}
.workspace-layers{position:relative;flex:none;align-self:flex-end}
.workspace-layers>summary{min-height:44px;display:flex;align-items:center;gap:.4rem;padding:.5rem .7rem;border:1px solid #b29b676b;border-radius:3px;background:#182b2e;color:#e2cca0;cursor:pointer;list-style:none}
.workspace-layers>summary:after{content:'▾';font-size:.65rem}
.workspace-layers[open]>summary:after{content:'▴'}
.workspace-layers>fieldset{position:absolute;right:0;top:calc(100% + 6px);z-index:25;display:grid;gap:0;min-width:160px;padding:.35rem .7rem;background:#102126;border:1px solid #bba06b8c;box-shadow:0 8px 25px #0008}
.workspace-layers>fieldset label{min-height:44px;display:flex;gap:.65rem;align-items:center;font-size:.72rem;color:#e6d6b1;white-space:nowrap}
.workspace-layers input{width:18px;height:18px}
#map-help{margin:0;padding:.5rem .8rem;background:#112226;border-left:1px solid #bba06b59;border-right:1px solid #bba06b59;color:#9db1a3;font-size:.64rem;line-height:1.65}
.map-surface{position:relative;isolation:isolate;border:1px solid #bba06b70;border-radius:0 0 5px 5px;overflow:hidden;background:#071419;box-shadow:0 15px 55px #0003}
.map-viewport{position:relative;height:clamp(480px,68svh,780px);width:100%;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;background:radial-gradient(ellipse at center,#24413d,#071419 80%);outline-offset:-4px!important}
.map-viewport.is-dragging,.map-viewport:active{cursor:grabbing}
.illustrated-lore #map-canvas{position:absolute;left:0;top:0;width:1774px;height:887px;min-width:0;max-width:none;transform-origin:0 0;will-change:transform;isolation:isolate;transition:none}
#map-canvas>img{display:block;width:1774px;height:887px;max-width:none;pointer-events:none;-webkit-user-drag:none}
#map-markers{position:absolute;inset:0;pointer-events:none}
.illustrated-lore .map-marker{pointer-events:auto;touch-action:none;transform:translate(-50%,-50%) scale(var(--inverse-map-scale,1));transform-origin:center;transition:none}
.illustrated-lore .map-marker.realm{font:600 .57rem/1.2 system-ui,sans-serif;padding:.4rem .6rem;min-height:44px;display:flex;align-items:center;background:#102a28eb;box-shadow:0 2px 10px #0009;border-color:#ddbf87a6}
.illustrated-lore .map-marker.place{width:44px;height:44px;min-height:44px;min-width:44px;z-index:5}
.map-marker.place::after{width:10px;height:10px;border-width:2px;box-shadow:0 0 0 3px #07141999,0 2px 7px #000e}
.map-marker.place:hover::after,.map-marker.place:focus-visible::after,.map-marker.place[aria-pressed=true]::after{width:13px;height:13px;box-shadow:0 0 0 7px #e5bf6b30,0 2px 12px #000b}
.illustrated-lore .map-marker:focus-visible{outline-offset:-4px;border-radius:3px}
.map-routes{pointer-events:none}
.map-preview{z-index:10;width:190px;max-width:calc(100% - 24px);border-radius:4px;transform:none!important;overflow:hidden}
.map-preview>strong{font-size:.75rem}
.map-preview>span{font-size:.61rem}
.map-popover{position:absolute;z-index:14;width:300px;max-width:calc(100% - 24px);max-height:calc(100% - 24px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y;background:#0d2025f7;border:1px solid #dfbd7ba8;border-radius:6px;box-shadow:0 8px 35px #000b;cursor:auto;user-select:text;-webkit-user-select:text;scrollbar-width:thin;transition:none}
.map-popover[data-anchor-visible=false],.map-preview[data-anchor-visible=false]{visibility:hidden;pointer-events:none}
.map-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.45rem .5rem .4rem .85rem;border-bottom:1px solid #bba06b42;background:#12292b}
.illustrated-lore .map-popover-heading h3{font-size:1.1rem;line-height:1.25;margin:0}
.illustrated-lore #close-map-popover{min-width:44px;min-height:44px;font:.64rem/1.4 system-ui,sans-serif;padding:.45rem .55rem;flex:none;background:#13262a}
.illustrated-lore .map-popover .map-card{display:block;height:auto;max-height:none;overflow:visible;border:0;padding:.7rem .85rem .85rem;background:transparent}
.illustrated-lore .map-popover .map-card :is(p,.small-note){font-size:.76rem;line-height:1.65;margin:.5rem 0}
.illustrated-lore .map-popover .map-card .eyebrow{font-size:.52rem;margin:.4rem 0}
.illustrated-lore .map-popover .map-card h3{font-size:1.1rem;margin:.45rem 0}
.map-popover .map-card>img,.map-popover .map-card .map-card-panorama{display:block;width:100%;aspect-ratio:2/1;max-height:112px;object-fit:cover;margin:0 0 .55rem;border-radius:2px}
.map-popover .map-card-panorama>img{height:112px;aspect-ratio:auto;object-fit:cover}
.illustrated-lore .map-popover button{min-height:44px;font:.7rem/1.4 system-ui,sans-serif;margin:0;padding:.55rem .7rem}
.popover-actions{display:flex;gap:.4rem;margin-top:.65rem}
.popover-actions button{flex:1;text-align:center!important}
.illustrated-lore .popover-actions button:first-child{background:#d4b77d;color:#102426;border-color:#f3d9a5;font-weight:600}
.illustrated-lore .popover-actions button:first-child:hover{background:#ebd09f}
.map-popover .map-visit-options{padding:0 0 .4rem;margin:0 0 .45rem;gap:.35rem;border-bottom:1px solid var(--line)}
.map-popover .map-related-actions{gap:.35rem;margin-top:.55rem;padding-top:.55rem}
.map-popover .map-related-actions button{flex:1}
.map-reader{position:absolute;z-index:18;top:12px;right:12px;bottom:12px;width:min(560px,48%);display:flex;flex-direction:column;min-height:0;overflow:hidden;border:1px solid #d0ae6f96;border-radius:6px;background:#0c1a1ff7;box-shadow:-12px 5px 40px #0008;backdrop-filter:blur(16px);touch-action:pan-y}
.reader-heading{flex:none;display:flex;align-items:center;gap:.35rem;min-height:56px;padding:.4rem .5rem;border-bottom:1px solid #bfa26a60;background:#152a2e}
.illustrated-lore .reader-heading h2{flex:1;min-width:0;font-size:1.1rem;line-height:1.25;letter-spacing:0;margin:0;padding:0 .35rem}
.illustrated-lore .reader-heading button{min-width:44px;min-height:44px;font:.63rem/1.3 system-ui,sans-serif;padding:.5rem .6rem;flex:none;background:#102126}
.reader-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#7f7857 #112126;scroll-padding-top:15px}
.map-reader.is-collapsed{bottom:auto}
.map-reader.is-collapsed .reader-scroll{display:none}
.illustrated-lore .reader-scroll .wide{width:100%}
.illustrated-lore .reader-scroll .portal-panel>section,.reader-scroll .reader-view{margin:0;padding:1.1rem!important;width:100%;max-width:none;border:0;background:transparent;box-shadow:none}
.illustrated-lore .reader-scroll .portal-panel{scroll-margin-top:0;outline-offset:-5px}
.illustrated-lore .reader-scroll .section-heading{display:block;margin-bottom:.9rem;gap:1rem}
.illustrated-lore .reader-scroll :is(.section-heading h2,.opening-heading h2){font-size:1.8rem;line-height:1.15;margin:.4rem 0 .7rem}
.reader-scroll .section-heading-note{text-align:left;font-size:.85rem;margin-top:.7rem}
.reader-scroll .section-heading-note br{display:none}
.illustrated-lore .reader-scroll p{font-size:.91rem;line-height:1.85}
.reader-scroll .section-intro{margin:.7rem 0 1rem}
.illustrated-lore .reader-scroll :is(button,.quiet-link,summary){touch-action:manipulation}
.illustrated-lore .reader-scroll button{min-height:44px}
.reader-scroll .world-prologue{padding:.6rem .8rem;margin:0 0 1rem}
.illustrated-lore .reader-scroll .opening{display:block;padding:1rem 0 .3rem;gap:1rem}
.reader-scroll .opening-heading .fine-rule{margin:.6rem 0}
.reader-scroll .realm-shortcuts{gap:.35rem;margin:.5rem 0 1rem}
.illustrated-lore .reader-scroll .realm-shortcuts button{font-size:.62rem}
.reader-scroll .realm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.illustrated-lore .reader-scroll .realm-tile{grid-column:auto!important;min-height:170px!important;width:100%;margin:0}
.reader-scroll .realm-tile-copy{padding:1rem .8rem .8rem}
.reader-scroll .realm-tile-copy h3{font-size:1.3rem;margin:.3rem 0 .4rem}
.reader-scroll .realm-tile-copy .eyebrow{font-size:.45rem}
.reader-scroll .realm-enter{font-size:.58rem}
.reader-scroll .warmaster-submenu{padding:0 1.1rem;width:100%;margin-top:1rem;gap:.35rem}
.illustrated-lore .reader-scroll .warmaster-submenu button{font-size:.64rem;padding:.5rem .65rem}
.reader-scroll .warmaster-feature{grid-template-columns:1fr}
.reader-scroll .warmaster-introduction{padding:1rem 1.2rem}
.reader-scroll .warmaster-story{display:block;padding:1rem 0}
.reader-scroll .warmaster-facts{gap:.8rem 1.4rem;margin-top:1rem;padding-top:.85rem}
.reader-scroll .warmaster-facts dd{font-size:.78rem}
.reader-scroll .summons-figure{margin:.5rem 0 0}
.reader-scroll .sanctuary-copy{display:block;padding:1rem 0 .5rem}
.reader-scroll .sanctuary-heading h2{font-size:2.5rem}
.reader-scroll .sanctuary-heading h2 br{display:none}
.reader-scroll .sanctuary-heading blockquote{font-size:.9rem}
.reader-scroll #sanctuary-story{padding-top:.5rem}
.reader-scroll .provisions-feature{display:block;padding-top:1rem}
.reader-scroll .provisions-feature h3{font-size:1.7rem;margin:.6rem 0}
.reader-scroll .provisions-feature h3 br{display:none}
.reader-scroll .hero-tools{display:block;margin:.8rem 0;padding:.7rem 0}
.reader-scroll .hero-tools fieldset{margin-bottom:.5rem}
.reader-scroll .hero-tools label{display:inline-flex;align-items:center;min-height:44px}
.illustrated-lore .reader-scroll .hero-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.illustrated-lore .reader-scroll .hero-art{height:200px}
.illustrated-lore .reader-scroll .hero-heading{padding:.8rem}
.illustrated-lore .reader-scroll .hero-heading h3{font-size:1.45rem}
.illustrated-lore .reader-scroll .hero-heading p{font-size:.74rem}
.reader-scroll .hero[open]>summary{grid-template-columns:110px 1fr}
.illustrated-lore .reader-scroll .hero[open] .hero-art{height:170px}
.illustrated-lore .reader-scroll .hero[open] .hero-heading h3{font-size:1.6rem}
.illustrated-lore .reader-scroll .hero-body{padding:1rem}
.reader-scroll .hero-prose{columns:auto}
.reader-scroll .lore-facts{grid-template-columns:1fr;gap:1rem}
.reader-scroll .timeline{margin:1.5rem 0}
.reader-scroll .timeline:before{left:63px}
.illustrated-lore .reader-scroll .event{grid-template-columns:52px 1fr;gap:29px;margin-bottom:1.8rem}
.illustrated-lore .reader-scroll .event-year{font-size:.63rem}
.reader-scroll .event-copy:before{left:-21px;width:8px;height:8px}
.illustrated-lore .reader-scroll .event-copy h3{font-size:1.3rem}
.illustrated-lore .reader-scroll .event-copy p{font-size:.85rem}
.illustrated-lore .reader-scroll .present{padding:1rem;margin:1.2rem 0}
.reader-scroll #present-day{columns:auto}
.reader-scroll .faction-grid,.reader-scroll .place-grid{grid-template-columns:1fr!important}
.illustrated-lore .reader-scroll .faction{padding:1rem}
.reader-scroll .faction-title{font-size:1.5rem}
.reader-scroll .art-gallery-tools{padding:.6rem 0;margin-bottom:1rem;display:block}
.reader-scroll .art-gallery-tools select{width:100%;min-width:0;font-size:16px}
.reader-scroll .artwork-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.reader-scroll .gallery-art-card>figcaption{padding:.7rem .8rem}
.reader-scroll .gallery-art-card h3{font-size:1.1rem}
.illustrated-lore .reader-scroll .gallery-art-card p{font-size:.74rem;line-height:1.75}
.reader-scroll .artwork-cue{opacity:1;transform:none;font-size:.48rem;top:.5rem;right:.5rem;padding:.35rem .45rem}
.reader-scroll .dialog-heading{display:flex;gap:.6rem;align-items:flex-start}
.reader-scroll .dialog-heading h2{font-size:1.75rem}
.reader-scroll .region-dialog-heading{position:static;padding:0 0 .7rem;background:none;backdrop-filter:none}
.reader-scroll .region-dialog>.dialog-help{padding:0;margin:.6rem 0;font-size:.64rem}
.reader-scroll .region-panorama-copy{position:static;padding:.9rem 0;background:none}
.reader-scroll .region-panorama-copy .eyebrow{font-size:.6rem}
.reader-scroll .region-inner{padding:0}
.illustrated-lore .reader-scroll .realm-facts{display:block;margin:1rem 0;padding-bottom:.5rem}
.reader-scroll .realm-facts>div{margin-bottom:.8rem}
.reader-scroll .region-reading{display:block}
.illustrated-lore .reader-scroll .realm-aside{border-left:0;border-top:1px solid var(--line);margin-top:1rem;padding:1rem 0 0}
.reader-scroll .landmark-grid{grid-template-columns:1fr;gap:.8rem;margin-bottom:1.5rem}
.reader-scroll .landmark-card figcaption{padding:.8rem 1rem}
.reader-scroll .landmark-card h4{font-size:1.2rem}
.reader-scroll .region-reading-main>h3,.reader-scroll .region-subheading h3,.reader-scroll .region-origins>h3,.reader-scroll .region-dungeons>h3{font-size:1.5rem;margin:1rem 0 .8rem}
.reader-scroll .region-origin-grid{grid-template-columns:1fr}
.reader-scroll .region-hero-origin>summary,.reader-scroll .region-hero-origin[open]>summary{grid-template-columns:100px 1fr}
.illustrated-lore .reader-scroll .region-hero-origin .hero-art{height:140px}
.reader-scroll .region-origins,.reader-scroll .region-dungeons{margin-top:1.4rem;padding-top:1rem}
.reader-scroll .region-context-actions{padding:.7rem 0;background:none}
.reader-scroll .region-dialog-controls{position:static;padding:1rem 0 0;margin-top:1rem;background:none;backdrop-filter:none}
.reader-scroll .dialog-controls{gap:.4rem}
.reader-scroll .dialog-controls button{font-size:.6rem;padding:.4rem .55rem}
.reader-scroll .place-map-controls{display:flex;gap:.5rem;justify-content:space-between;align-items:center;padding-top:1rem;border-top:1px solid var(--line)}
.reader-scroll .place-map-controls button{font-size:.66rem}
.reader-scroll .place-map-scene{margin:.7rem 0}
.reader-scroll .place-reader .map-visit-options{margin:.5rem 0 .8rem}
.reader-scroll .place-reader .map-visit-options button{font:.68rem/1.4 system-ui,sans-serif}
.illustrated-lore .map-workspace>.lore-context{padding:.55rem .2rem;margin-top:.35rem!important;border-bottom:0;min-height:44px}
.illustrated-lore .map-workspace .context-crumb,.illustrated-lore .map-workspace .context-reset{min-height:44px;padding:.4rem .3rem}
.illustrated-lore .map-workspace>.route-book{margin-top:0;padding:.7rem .8rem;background:#102126}
.map-workspace>.route-book>summary{min-height:30px;display:list-item;align-content:center}
.illustrated-lore footer{padding:1.3rem 4%;font-size:.65rem;border-top:1px solid var(--line)}
@media(max-width:1050px){.workspace-toolbar{flex-wrap:wrap}.picker-search-label{max-width:none;flex:1 1 35%}.place-picker-label{max-width:none;flex:1 1 50%}.workspace-zoom{margin-left:0}.workspace-layers{margin-left:auto}.map-reader{width:50%}.illustrated-lore .reader-scroll .hero-grid,.reader-scroll .artwork-grid{grid-template-columns:1fr}}
@media(max-width:760px){
 .illustrated-lore .site-nav .nav-inner{min-height:70px;padding:.3rem 0;gap:.5rem;flex-direction:row;flex-wrap:nowrap}
 .illustrated-lore .site-nav .brand{flex:0 0 105px;min-width:0;width:105px}.illustrated-lore .site-nav .brand img{height:58px;max-height:58px;width:105px;object-fit:contain}
 .illustrated-lore .site-nav .nav-links{display:flex;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:.35rem;scrollbar-width:thin;min-width:0;width:auto;padding:.4rem 0}
 .illustrated-lore .site-nav .nav-links a{flex:none;font-size:.59rem;min-height:40px;display:flex;align-items:center;white-space:nowrap;padding:.5rem .7rem}
 .illustrated-lore .illustrated-cover{height:auto;min-height:185px}
 .illustrated-lore .cover{width:92%;padding:.65rem 0}
 .illustrated-lore .cover h1{font-size:3rem;margin:.2rem 0 .3rem}
 .cover>.eyebrow{font-size:.48rem;letter-spacing:.14em}
 .illustrated-lore .cover .cover-lede{font-size:.75rem;margin:.2rem 0}
 .cover-actions{margin-top:.4rem;gap:.5rem}
 .illustrated-lore .cover-actions a{min-height:40px;font-size:.56rem;padding:.45rem .65rem}
 .chapter-nav{padding:.2rem 2%;gap:0;overflow:visible}.chapter-nav>div{width:100%;gap:0}
 .illustrated-lore .chapter-nav button[role=tab]{font-size:.64rem;padding:.55rem .75rem;min-height:44px}
 .illustrated-lore .map-workspace{width:96%;padding:.7rem 0 1rem}
 .workspace-heading{margin-bottom:.5rem;padding:0 .25rem}.workspace-heading h2{font-size:1.55rem}.workspace-heading .chapter-number{font-size:.48rem}
 .workspace-toolbar{padding:.5rem;gap:.45rem .5rem}
 .picker-search-label{flex:1 1 35%;width:35%}.place-picker-label{flex:1 1 53%;width:53%}
 .workspace-toolbar label{font-size:.57rem}.workspace-toolbar :is(input[type=search],select){margin-top:.15rem;padding:.5rem;font-size:16px;min-height:44px}
 .workspace-toolbar select{font-size:16px}.workspace-toolbar input::placeholder{font-size:.7rem}
 .workspace-zoom{gap:.25rem}.illustrated-lore .workspace-zoom button{font-size:.8rem}.illustrated-lore .workspace-zoom #overview-map{font-size:.64rem;padding:.5rem .65rem}
 .workspace-layers>summary{font-size:.63rem;padding:.4rem .6rem}.workspace-layers>fieldset{right:0}
 #map-help{font-size:.59rem;padding:.35rem .6rem;line-height:1.6}
 .map-viewport{height:65svh;min-height:380px;max-height:700px}
 .map-reader{top:auto;right:0;bottom:0;left:0;width:100%;height:72%;max-height:calc(100% - 68px);border-radius:12px 12px 0 0;border-left:0;border-right:0;border-bottom:0;box-shadow:0 -10px 35px #0009}
 .map-reader.is-collapsed{top:auto;bottom:0;height:56px;max-height:56px}
 .reader-heading{min-height:56px;padding:.35rem .4rem;gap:.25rem}.illustrated-lore .reader-heading h2{font-size:1rem;padding:0 .2rem}.illustrated-lore .reader-heading button{font-size:.58rem;padding:.4rem .5rem}
 .illustrated-lore .reader-scroll .portal-panel>section,.reader-scroll .reader-view{padding:1rem!important}
 .map-popover{width:280px;max-width:calc(100% - 24px);border-radius:6px}
 .map-popover .map-card>img,.map-popover .map-card .map-card-panorama{max-height:90px}
 .map-popover .map-card-panorama>img{height:90px}
 .illustrated-lore .map-popover .map-card{padding:.55rem .75rem .7rem}
 .illustrated-lore .map-popover .map-card p{font-size:.73rem;line-height:1.6}
 .illustrated-lore .map-marker.realm{font-size:.53rem;padding:.35rem .5rem}
 .map-preview{display:none!important}
 .reader-scroll .realm-grid{gap:.6rem}.illustrated-lore .reader-scroll .realm-tile{min-height:160px!important}.reader-scroll .realm-tile-copy{padding:.8rem .65rem}.reader-scroll .realm-tile-copy h3{font-size:1.2rem}
 .illustrated-lore .reader-scroll .hero-grid,.reader-scroll .artwork-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .illustrated-lore .reader-scroll .hero-art{height:180px}.illustrated-lore .reader-scroll .hero-heading h3{font-size:1.3rem}
 .reader-scroll .gallery-art-card>figcaption{padding:.65rem}.reader-scroll .gallery-art-card h3{font-size:1.05rem}
 .illustrated-lore .map-workspace>.lore-context{gap:.15rem .45rem;padding:.2rem .4rem}.lore-context .context-label{width:auto;font-size:.48rem}.lore-context .context-reset{margin-left:auto}.illustrated-lore .context-crumb{font-size:.59rem}
}
@media(max-width:370px){.workspace-toolbar{gap:.4rem}.workspace-layers>summary{padding:.4rem;font-size:.59rem}.illustrated-lore .workspace-zoom #overview-map{padding:.5rem .45rem}#map-zoom-status{min-width:30px;font-size:.56rem}.map-popover{width:260px}.illustrated-lore .reader-heading h2{font-size:.87rem}.illustrated-lore .reader-heading button{font-size:.54rem;padding:.4rem}.reader-scroll .realm-grid,.illustrated-lore .reader-scroll .hero-grid,.reader-scroll .artwork-grid{grid-template-columns:1fr}.illustrated-lore .reader-scroll .realm-tile{min-height:180px!important}}
@media(prefers-reduced-motion:reduce){#map-canvas,.map-reader,.map-popover{scroll-behavior:auto;transition:none!important}}
@media print{.workspace-toolbar,#map-help,.map-popover,.map-preview,.reader-heading{display:none!important}.map-viewport{height:400px;min-height:0}.map-reader{position:static;width:100%;height:auto;max-height:none;overflow:visible;box-shadow:none}.reader-scroll{overflow:visible}.illustrated-lore .map-workspace{width:100%}}

/* Mobile map: the page owns vertical swipes until the reader opts into exploring. */
.map-surface{touch-action:auto}
.map-viewport,.map-popover{touch-action:pan-y}
.map-popover{overscroll-behavior-y:auto}
.map-interactive .map-viewport,.map-interactive .map-popover{touch-action:none}
.illustrated-lore .map-marker{touch-action:pan-y}
.map-interactive .map-marker{touch-action:none}
.workspace-toolbar{align-items:center;flex-wrap:wrap}
.illustrated-lore #toggle-map-interaction{min-height:44px;padding:.6rem .8rem;font:.72rem/1.3 system-ui,sans-serif}
.illustrated-lore #toggle-map-interaction[aria-pressed=true]{background:#d4b77d;color:#102426;border-color:#f3d9a5}
.workspace-zoom{margin-left:0}
#map-zoom-controls[hidden]{display:none!important}
.chapter-picker-label{display:none}
.workspace-tools{margin-left:auto;position:relative}
.workspace-tools>summary{min-height:44px;align-content:center;padding:.5rem .7rem;cursor:pointer;color:#e2c88f}
.workspace-secondary{position:absolute;right:0;top:calc(100% + 6px);width:min(390px,85vw);padding:.85rem;display:grid;gap:.7rem;background:#102126;border:1px solid #bba06b80;border-radius:5px;box-shadow:0 10px 30px #0008}
.workspace-secondary :is(.picker-search-label,.place-picker-label){width:100%;max-width:none}
.workspace-secondary .workspace-layers{margin:0}
.workspace-secondary .workspace-layers>fieldset{position:static;box-shadow:none;margin-top:.5rem;width:100%}
@media(max-width:760px){
 .illustrated-lore .chapter-nav>[role=tablist]{display:none}
 .chapter-picker-label{display:flex;align-items:center;gap:.7rem;width:100%;padding:.35rem .6rem;font:.68rem/1.3 system-ui,sans-serif;color:#c6bb9f}
 .chapter-picker-label select{flex:1;min-width:0;min-height:44px;font:16px/1.4 system-ui,sans-serif;padding:.5rem .7rem;color:#f0dfb9;background:#102126;border:1px solid #bba06b70;border-radius:4px}
 .workspace-toolbar{gap:.35rem;padding:.4rem .5rem}
 .workspace-zoom{order:3;width:100%;justify-content:center;padding-top:.25rem}
 .workspace-tools>summary{font-size:.67rem}
 .map-viewport{height:clamp(260px,48svh,420px);min-height:260px;max-height:420px}
 .reader-open .map-viewport{height:clamp(420px,72svh,680px);min-height:420px;max-height:680px}
 .map-popover{user-select:none;-webkit-user-select:none}
 .map-popover .popover-excerpt{display:none}
 .map-popover .map-card .map-card-panorama,.map-popover .map-card-panorama>img{max-height:64px;height:64px;aspect-ratio:auto;object-fit:cover}
 .illustrated-lore .map-popover .map-card{padding:.4rem .65rem .6rem}
 .map-popover .popover-actions{margin-top:.35rem}
}

/* Every location starts visible; these controls are available without a menu. */
.map-location-controls{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;min-width:0;margin:0;padding:.1rem .8rem;background:#112226;border:1px solid #bba06b59;border-top:0;border-bottom:0;font:.7rem/1.4 system-ui,sans-serif}
.map-location-controls>span{color:#b7c4b6}
.map-location-controls label,.workspace-secondary .road-visibility{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;color:#e6d6b1;cursor:pointer}
.map-location-controls input,.road-visibility input{width:18px;height:18px;margin:0;accent-color:#d4b77d;flex:none}
.map-location-controls input:focus-visible{outline:2px solid #f3d9a5;outline-offset:3px}
@media(max-width:760px){.map-location-controls{gap:.65rem;padding:.1rem .6rem;font-size:.67rem}}

/* Atlas presentation: visible zoom, a quieter frame and the existing painted realms. */
.illustrated-lore .map-workspace{width:min(1500px,94%);padding-top:1.05rem}
.workspace-heading{position:relative;gap:.85rem;padding:0 .25rem .7rem;margin-bottom:0;border-bottom:1px solid #d1b5786b}
.workspace-heading>div{margin-right:auto}
.workspace-heading h2{font-family:Georgia,'Times New Roman',serif;font-size:2.15rem;letter-spacing:.035em;color:#f0ddb3}
.workspace-heading .chapter-number{color:#c9b17e;letter-spacing:.21em}
.atlas-compass{flex:none;color:#d2b57a;opacity:.8}
.workspace-heading .quiet-link{color:#d7c396;letter-spacing:.05em}
.workspace-toolbar{align-items:center;gap:.65rem;padding:.65rem .75rem;border-color:#c5a56570;border-radius:0;background:linear-gradient(90deg,#182925,#0c1b1c)}
.workspace-zoom{order:0;display:flex;align-items:center;gap:.35rem;width:auto;margin:0;padding:0}
.illustrated-lore .workspace-zoom button{min-width:46px;min-height:46px;font:600 1.15rem/1 system-ui,sans-serif;border:1px solid #d4b77d70;border-radius:3px;background:#0c1c1e;color:#f0dfb9;box-shadow:inset 0 1px 0 #fff1}
.illustrated-lore .workspace-zoom #zoom-map-in{background:linear-gradient(#e3c995,#bea069);border-color:#efd9ae;color:#142522}
.illustrated-lore .workspace-zoom #overview-map{min-width:70px;padding:.55rem .8rem;font:600 .72rem/1.3 system-ui,sans-serif;letter-spacing:.02em}
#map-zoom-status{min-width:4ch;text-align:center;color:#e5d2ab;font:600 .78rem/1.3 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.illustrated-lore #toggle-map-interaction{order:1;margin-left:.35rem;background:transparent;border-color:#bda26a65;color:#e2d1ad}
.workspace-tools{order:2;margin-left:auto}
.workspace-tools>summary{color:#deca9e;text-underline-offset:.2em}
.map-location-controls{gap:1.1rem;padding:0 .8rem;background:#0f201f;border-color:#c5a56570;font-size:.72rem}
.map-location-controls>span{color:#9da88e}
.map-location-controls label{color:#e4d4af}
#map-help{border-color:#c5a56570;background:#0f201f;color:#b4bda9;padding:.25rem .8rem .6rem;font-size:.67rem}
.map-surface{border:1px solid #c9ab70b3;border-radius:2px;box-shadow:0 0 0 4px #081719,0 0 0 5px #b79a5d3b,0 18px 45px #0005;background:#091a1d}
.map-surface::after{content:'';position:absolute;z-index:11;inset:5px;pointer-events:none;border:1px solid #e0c58225;border-radius:1px;box-shadow:inset 0 0 24px #050d1055}
.map-viewport{background-color:#0b2023;background-image:radial-gradient(ellipse at 45% 45%,#2b443b55,transparent 68%),repeating-linear-gradient(0deg,#c8af7410 0 1px,transparent 1px 35px),repeating-linear-gradient(90deg,#c8af740c 0 1px,transparent 1px 35px)}
.illustrated-lore .map-marker.realm{isolation:isolate;font:700 .64rem/1.2 Georgia,'Times New Roman',serif;letter-spacing:.085em;padding:.4rem .6rem;color:#f8e4b1;border:1px solid transparent;border-radius:1px;background:transparent;text-shadow:0 1px 2px #000;box-shadow:none}
.map-marker.realm::before{content:'';position:absolute;z-index:-1;left:0;right:0;top:50%;height:2em;transform:translateY(-50%);pointer-events:none;border:1px solid #dac0849e;border-radius:1px;background:linear-gradient(#21382df2,#0a1c1bf0);box-shadow:0 2px 8px #0009,inset 0 0 0 2px #d9ba7526}
.illustrated-lore .map-marker.realm:hover,.illustrated-lore .map-marker.realm:focus-visible,.illustrated-lore .map-marker.realm[aria-pressed=true]{color:#fff2ca;border-color:transparent;background:transparent;box-shadow:none}
.map-marker.realm:hover::before,.map-marker.realm:focus-visible::before,.map-marker.realm[aria-pressed=true]::before{border-color:#ffdfa0;background:linear-gradient(#526144f5,#253c2cf5);box-shadow:0 2px 12px #000b,inset 0 0 0 2px #e2ca8150}
.map-popover{border-color:#d8b97fc4;background:#10201ff7;box-shadow:0 10px 34px #000a,0 0 0 3px #0a161d7a}
.map-popover-heading{background:linear-gradient(90deg,#26382b,#112321);border-bottom-color:#bfa46a66}
.illustrated-lore .map-popover-heading h3{font-family:Georgia,'Times New Roman',serif;color:#f0dfb9}
.map-reader{border-color:#d3b77eaa;background:#0e1d1ff7}
.reader-heading{background:linear-gradient(90deg,#24372c,#122528);border-color:#bca16473}
.map-workspace>.atlas-realm-ribbon{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(132px,1fr);gap:.55rem;margin:.9rem 0 .15rem;padding:2px 2px .45rem;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b79a64 #0e1d1d}
.illustrated-lore .atlas-realm-ribbon button{position:relative;isolation:isolate;display:block;min-width:0;height:92px;min-height:44px;overflow:hidden;margin:0;padding:0;border:1px solid #c0a16a75;border-radius:2px;background:#152d29;box-shadow:none;text-align:left;white-space:normal}
.atlas-realm-ribbon button>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.87;transition:opacity .18s}
.atlas-realm-ribbon button::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 10%,#04101138 40%,#041011e8);pointer-events:none}
.atlas-realm-ribbon button>span{position:absolute;z-index:2;left:.65rem;right:.5rem;bottom:.5rem;color:#f2e2be;font:600 .71rem/1.25 Georgia,'Times New Roman',serif;text-shadow:0 1px 3px #000}
.illustrated-lore .atlas-realm-ribbon button:hover,.illustrated-lore .atlas-realm-ribbon button:focus-visible{border-color:#f1d49c;outline-offset:2px}
.atlas-realm-ribbon button:hover>img,.atlas-realm-ribbon button:focus-visible>img{opacity:1}
.illustrated-lore .map-workspace>.route-book{background:transparent;border-color:#bba16a33;padding:.5rem .2rem}
@media(max-width:760px){
 .illustrated-lore .illustrated-cover{min-height:150px;height:auto}
 .illustrated-lore .cover{padding:.5rem 0}
 .illustrated-lore .cover h1{font-size:2.65rem;line-height:1.03;margin:.15rem 0}
 .illustrated-lore .cover .cover-lede{font-size:.7rem;line-height:1.45;margin:.2rem 0}
 .cover-actions{margin-top:.35rem;gap:.4rem}
 .illustrated-lore .cover-actions a{min-height:44px;padding:.4rem .65rem;font-size:.56rem}
 .illustrated-lore .map-workspace{width:calc(100% - 16px);padding-top:.65rem}
 .workspace-heading{gap:.55rem;padding:0 .25rem .5rem}
 .workspace-heading h2{font-size:1.7rem}
 .workspace-heading .chapter-number{font-size:.45rem;letter-spacing:.15em}
 .atlas-compass{width:42px;height:42px}
 .workspace-heading .quiet-link{font-size:.65rem}
 .workspace-toolbar{gap:.4rem .65rem;padding:.5rem .6rem}
 .workspace-zoom{order:0;flex:1 1 100%;width:100%;justify-content:flex-start;gap:.4rem;padding:0}
 .illustrated-lore .workspace-zoom button{min-height:46px;min-width:48px;font-size:1.15rem}
 #map-zoom-status{flex:1;font-size:.82rem;min-width:4ch}
 .illustrated-lore .workspace-zoom #overview-map{font-size:.72rem;min-width:72px;padding:.5rem .7rem}
 .illustrated-lore #toggle-map-interaction{margin-left:0;font-size:.7rem}
 .workspace-tools>summary{font-size:.7rem;padding:.45rem .2rem}
 .map-location-controls{padding:0 .65rem;font-size:.69rem;gap:1rem}
 #map-help{font-size:.63rem;line-height:1.55;padding:.2rem .65rem .6rem}
 .map-viewport{height:clamp(240px,66vw,420px);min-height:240px;max-height:420px}
 .reader-open .map-viewport{height:clamp(420px,72svh,680px);min-height:420px;max-height:680px}
 .illustrated-lore .map-marker.realm{font-size:.6rem;padding:.35rem .45rem;letter-spacing:.05em}
 .map-workspace>.atlas-realm-ribbon{grid-auto-columns:138px;gap:.5rem;margin-top:.75rem}
 .illustrated-lore .atlas-realm-ribbon button{height:86px}
 .atlas-realm-ribbon button>span{font-size:.73rem;left:.55rem;bottom:.45rem}
 .map-popover .map-card .map-card-panorama,.map-popover .map-card-panorama>img{height:88px;max-height:88px}
}
@media(prefers-reduced-motion:reduce){.atlas-realm-ribbon button>img{transition:none}}
.map-interactive .map-popover{touch-action:pan-y}

/* Mobile reading is a full viewport, portalled outside the clipped atlas. */
@media(max-width:760px){
 .reader-open .map-viewport{height:clamp(240px,66vw,420px);min-height:240px;max-height:420px}
 body.mobile-reader-open>#map-reader.is-mobile-reader{position:fixed;z-index:2000;inset:0;top:var(--reader-viewport-top,0px);bottom:auto;width:100%;height:100vh;height:var(--reader-viewport-height,100vh);min-height:0;max-height:none;box-sizing:border-box;display:flex;flex-direction:column;margin:0;padding:0;overflow:hidden;border:0;border-radius:0;background:#0b191c;box-shadow:none;backdrop-filter:none;touch-action:pan-y}
 @supports(height:100dvh){body.mobile-reader-open>#map-reader.is-mobile-reader{height:var(--reader-viewport-height,100dvh)}}
 body.mobile-reader-open>#map-reader.is-mobile-reader>.reader-heading{position:relative;flex:0 0 auto;min-height:60px;box-sizing:border-box;display:flex;align-items:center;gap:.5rem;padding:calc(.5rem + env(safe-area-inset-top,0px)) calc(.6rem + env(safe-area-inset-right,0px)) .5rem calc(.6rem + env(safe-area-inset-left,0px));background:linear-gradient(90deg,#273b2f,#122528);border-bottom:1px solid #c8ab7278}
 .illustrated-lore #map-reader.is-mobile-reader .reader-heading h2{font:600 1.08rem/1.25 Georgia,'Times New Roman',serif;min-width:0;margin:0;padding:0 .15rem;color:#f2dfb6}
 .illustrated-lore #map-reader.is-mobile-reader .reader-heading button{flex:none;min-width:48px;min-height:44px;padding:.5rem .65rem;font:.74rem/1.25 system-ui,sans-serif}
 #map-reader.is-mobile-reader #collapse-reader,#map-reader.is-mobile-reader #reader-back:disabled{display:none}
 body.mobile-reader-open>#map-reader.is-mobile-reader>.reader-scroll{display:block;flex:1 1 auto;min-height:0;height:auto;max-height:none;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:0 env(safe-area-inset-right,0px) calc(.65rem + env(safe-area-inset-bottom,0px)) env(safe-area-inset-left,0px);scroll-padding-block:1rem}
 #map-reader.is-mobile-reader .region-dialog>.dialog-help{display:none}
 #map-reader.is-mobile-reader .reader-scroll .place-map-scene{margin:.75rem 0 1rem}
 #map-reader.is-mobile-reader .reader-scroll .place-map-scene img{width:100%;max-height:none;aspect-ratio:2/1;object-fit:cover}
 #map-reader.is-mobile-reader .reader-scroll .chapter-number,#map-reader.is-mobile-reader .reader-scroll .artwork-cue{display:none}
 #map-reader.is-mobile-reader .region-dialog-heading,#map-reader.is-mobile-reader .place-reader>.dialog-heading{display:none}
 #map-reader.is-mobile-reader .region-reading-main>h3:first-of-type{display:none}
 #map-reader.is-mobile-reader .reader-scroll .reader-view{padding:0 1.1rem 1.2rem!important}
 #map-reader.is-mobile-reader .reader-scroll .place-map-scene{margin:0 -1.1rem 1rem}
 #map-reader.is-mobile-reader .region-panorama{margin:0 -1.1rem}
 #map-reader.is-mobile-reader .region-panorama-copy{padding:1rem 1.1rem .25rem}
 #map-reader.is-mobile-reader .reader-scroll p{font-size:1rem;line-height:1.85}
 #map-reader.is-mobile-reader .region-context-actions{margin-top:1.25rem;padding-top:1rem;border-top:1px solid #bda56d55}
}
.illustrated-lore .reader-scroll button.lore-inline-link{display:inline;min-width:0;min-height:0;width:auto;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:inherit;line-height:inherit;letter-spacing:inherit;text-transform:none;text-align:inherit;color:#e5cc96;text-decoration:underline;text-decoration-color:#b99c65;text-decoration-thickness:1px;text-underline-offset:.16em;cursor:pointer;vertical-align:baseline;white-space:normal}
.illustrated-lore .reader-scroll button.lore-inline-link:hover{color:#fff0c6;text-decoration-color:currentColor}
.illustrated-lore .reader-scroll button.lore-inline-link:focus-visible{outline:2px solid #f0d5a0;outline-offset:3px;text-decoration-color:currentColor}

/* Keep the painting and primary zoom controls in view; optional tools share one drawer. */
.workspace-secondary>#toggle-map-interaction{width:100%;margin:0!important}
.workspace-secondary .map-location-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.9rem;margin:0;padding:0;border:0;background:none;font-size:.7rem}
.workspace-secondary .map-location-controls label{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;font-size:.7rem}
.workspace-secondary{max-height:65vh;max-height:65dvh;overflow-y:auto;overscroll-behavior-y:contain}
@media(max-width:760px){
 .workspace-toolbar{gap:.3rem;padding:.4rem}
 .workspace-zoom{flex:0 1 auto;width:auto;gap:.25rem;justify-content:flex-start}
 .illustrated-lore .workspace-zoom button{min-width:44px;min-height:44px}
 .illustrated-lore .workspace-zoom #overview-map{min-width:58px;min-height:44px;padding:.45rem .4rem;font-size:.67rem}
 #map-zoom-status{flex:none;min-width:3.9ch;font-size:.74rem}
 .workspace-tools{flex:0 0 auto;margin-left:auto}
 .workspace-tools>summary{min-height:44px;padding:.4rem .1rem;font-size:.65rem;white-space:nowrap}
 #map-help{font-size:.61rem;padding:.15rem .5rem .4rem}
 .map-viewport,.reader-open .map-viewport{height:auto;aspect-ratio:2/1;min-height:0;max-height:none}
}

/* Mobile previews can extend beyond the short atlas while the painted viewport stays clipped. */
@media(max-width:760px){
 .map-surface{overflow:visible}
 .map-surface:has(>#map-popover:not([hidden])){z-index:12}
 .map-viewport{overflow:hidden}
 .map-popover{max-width:calc(100% - 20px);box-sizing:border-box;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior-y:auto;user-select:text;-webkit-user-select:text;scroll-padding-block:64px}
 .map-interactive .map-popover{touch-action:pan-y}
 .map-popover-heading{position:sticky;top:0;z-index:2}
 .illustrated-lore .map-popover .map-card{padding:.65rem .75rem .75rem}
 .illustrated-lore .map-popover .map-card .map-card-panorama{height:auto;max-height:none;max-width:none;aspect-ratio:2/1;padding:0}
 .map-popover .map-card-panorama>img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:2/1;object-fit:contain}
 .illustrated-lore .map-popover .map-card .popover-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:.82rem;line-height:1.6;margin:.55rem 0}
 .map-popover .map-visit-options{flex-wrap:wrap}
 .map-popover .map-visit-options button{flex:1 1 auto;min-height:44px}
 .map-popover .popover-actions{position:sticky;bottom:0;z-index:1;flex-wrap:wrap;gap:.4rem;margin:.55rem -.75rem -.75rem;padding:.55rem .75rem .75rem;border-top:1px solid #bfa46a66;background:#10201f}
 .map-popover .popover-actions button{min-width:0;min-height:44px}
}

/* The Bastion is a sanctuary, distinct from the dungeon expedition markers. */
.illustrated-lore .map-marker.camp{display:flex;align-items:center;justify-content:flex-end;flex-direction:column;width:72px;height:44px;min-width:72px;min-height:44px;margin:0;padding:0 2px 1px;border:0;border-radius:3px;background:transparent;box-shadow:none;color:#f8dda2;font:600 .6rem/1.2 Georgia,'Times New Roman',serif;letter-spacing:.02em;text-transform:none;text-shadow:0 1px 2px #000;white-space:nowrap;z-index:6;touch-action:pan-y;transform:translate(-50%,-50%) scale(var(--inverse-map-scale,1)) translateY(9px)}
.map-marker.camp::before{content:'';position:absolute;top:1px;left:50%;width:24px;height:24px;transform:translateX(-50%);background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%232b2113' stroke-width='1.5' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='6' r='3.5' fill='%23ffe6a7'/%3E%3Cpath d='M12 0v2M4 6h2M18 6h2M6 1l1.5 1.5M18 1l-1.5 1.5' stroke='%23e8bc69'/%3E%3Cpath d='M3 22V11h4v3h3v-3h4v3h3v-3h4v11h-7v-5h-4v5Z' fill='%23dfb364'/%3E%3C/g%3E%3C/svg%3E");filter:drop-shadow(0 1px 2px #000c);pointer-events:none}
.camp-marker-label{display:block;padding:1px 4px;border:1px solid #cba866a8;border-radius:2px;background:linear-gradient(#514128f5,#231d13f5);box-shadow:0 1px 5px #0009;font:inherit;line-height:1.2;color:inherit;pointer-events:none}
.illustrated-lore .map-marker.camp:hover,.illustrated-lore .map-marker.camp[aria-pressed=true]{background:transparent;box-shadow:none;color:#fff0c5;z-index:7}
.map-marker.camp:hover .camp-marker-label,.map-marker.camp[aria-pressed=true] .camp-marker-label{border-color:#ffe0a0;background:linear-gradient(#6c5430,#352819)}
.illustrated-lore .map-marker.camp:focus-visible{outline:2px solid #ffe0a0;outline-offset:3px;background:#d5aa4a12}
.map-interactive .map-marker.camp{touch-action:none}
.aurelian-warmaster-feature{margin:1.4rem 0 1.8rem;padding:0;overflow:hidden;border:1px solid #c7a56b7d;border-radius:2px;background:linear-gradient(135deg,#233327,#102020);box-shadow:0 5px 20px #0002}
.aurelian-warmaster-art.artwork-trigger{margin:0;border:0;border-bottom:1px solid #c7a56b52}
.aurelian-warmaster-art.artwork-trigger>img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:2/1;object-fit:contain}
.aurelian-warmaster-copy{padding:1rem 1.1rem 1.1rem}
.illustrated-lore .aurelian-warmaster-copy h3{margin:0 0 .6rem;color:#f1d9a4;font:600 1.45rem/1.25 Georgia,'Times New Roman',serif}
.illustrated-lore .aurelian-warmaster-copy p{margin:0;font-size:.95rem;line-height:1.8}
.aurelian-warmaster-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.illustrated-lore .aurelian-warmaster-actions button{flex:1 1 auto;min-height:44px;margin:0;padding:.6rem .75rem;font:.7rem/1.35 system-ui,sans-serif}

/* Leaders, heraldry and chronicles are reached through the existing map reader. */
.workspace-story-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.4rem 1rem}
.illustrated-lore .workspace-story-links button{border:0;background:transparent;padding:.55rem 0;min-height:44px;color:var(--gold);text-decoration:underline;text-underline-offset:5px;font:inherit}
.realm-leadership{display:grid;grid-template-columns:minmax(80px,116px) minmax(0,1fr);gap:1.2rem;align-items:center;margin:1.4rem 0;padding:1.2rem 1.6rem;border-block:1px solid var(--line);background:linear-gradient(100deg,#24372b4a,transparent)}
.realm-leadership h3{margin:.3rem 0;font-size:1.55rem;line-height:1.2}
.realm-leadership p{margin:.4rem 0;font-size:.88rem;line-height:1.6}
.illustrated-lore .story-link{display:inline-block;padding:.55rem .8rem;min-height:44px;font:inherit;line-height:1.6;text-align:left;white-space:normal;overflow-wrap:anywhere}
.world-story-copy{padding:clamp(1rem,4vw,2.2rem);max-width:850px;margin-inline:auto;overflow-wrap:anywhere}
.world-story-heading{margin-bottom:1.5rem}
.world-story-heading h2{font-size:clamp(1.8rem,4vw,2.7rem);margin:.6rem 0;line-height:1.15}
.world-story-heading .world-story-lead{font-size:1.05rem;line-height:1.75;color:#e2dac3}
.world-story-copy>p{font-size:1rem;line-height:1.9}
.world-story-copy h3{font-size:1.4rem;line-height:1.4;margin-top:1.8rem}
.world-story-copy h4{font-size:1.1rem;line-height:1.4}
.person-portrait{display:block;width:100%}
.person-portrait img{width:100%;height:auto;aspect-ratio:2/1;object-fit:cover}
.heraldry-artwork{display:block;text-align:center;background:radial-gradient(ellipse,#c19c4717,transparent 72%)!important}
.heraldry-artwork>img{display:block;width:min(100%,240px);height:auto;aspect-ratio:1;object-fit:contain;margin-inline:auto}
.realm-crest .artwork-cue,.person-crest .artwork-cue{font-size:.6rem;padding:.2rem .3rem;right:2px;bottom:2px}
.person-heraldry{display:grid;grid-template-columns:minmax(80px,128px) minmax(0,1fr);align-items:center;gap:1.2rem;margin:1.5rem 0;padding-block:1rem;border-block:1px solid var(--line)}
.person-heraldry figcaption{font-size:.84rem;line-height:1.7;color:var(--muted)}
.faction-large-crest{max-width:240px;margin:0 auto 1.5rem}
.story-related-links{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--line)}
.story-faction-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:.7rem;margin:2rem 0}
.illustrated-lore .faction-discovery{display:flex;align-items:center;gap:.8rem;min-height:76px;width:100%;padding:.65rem .8rem;text-align:left;white-space:normal}
.faction-discovery img{flex:0 0 64px;width:64px;height:64px;object-fit:contain}
.faction-discovery strong{display:block;font:500 1.05rem/1.3 Georgia,serif}
.faction-discovery .read-cue{display:block;font-size:.68rem;line-height:1.5;margin-top:.4rem;color:var(--gold)}
.campaign-stage{margin-block:2rem;padding-block:1rem;border-top:1px solid var(--line)}
.campaign-cause-chain{margin-top:2rem}
.campaign-cause-chain article{border-left:2px solid var(--gold);padding:.2rem 0 .8rem 1.2rem;margin-top:1.1rem}
.campaign-cause-chain h4{margin:.2rem 0}
.illustrated-lore .campaign-discovery{display:grid;gap:.6rem;width:100%;padding:1.4rem;text-align:left;margin:1.5rem 0 2rem;white-space:normal}
.campaign-discovery strong{font:500 clamp(1.4rem,3vw,2rem)/1.3 Georgia,serif;color:var(--ink)}
.campaign-discovery>span:not(.eyebrow):not(.read-cue){font-size:.92rem;line-height:1.8;color:#c5cabf}
.dungeon-rulers{margin-top:1.2rem}
.dungeon-rulers>h3,.dungeon-return-story>h3{font-size:1.5rem;line-height:1.3}
.dungeon-ruler-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:1rem;margin:1rem 0}
.dungeon-ruler{display:flex;gap:.9rem;align-items:center;min-width:0;border:1px solid var(--line);padding:.6rem;background:#152124}
.dungeon-ruler h4{font-size:1.1rem;line-height:1.3;margin:.2rem 0 .4rem;overflow-wrap:anywhere}
.dungeon-ruler .small-note{font-size:.78rem;line-height:1.65;margin:.3rem 0}
.illustrated-lore .figure-portrait{flex:0 0 88px;min-width:0;width:88px;padding:0;border:1px solid #bda26d66;border-radius:4px;background:radial-gradient(ellipse,#465c614a,#0d181c);overflow:hidden}
.figure-portrait img{display:block;width:88px;height:104px;object-fit:contain}
.is-notable .figure-portrait{flex-basis:64px;width:64px}
.is-notable .figure-portrait img{width:64px;height:76px}
.dungeon-notables{gap:.6rem}
.illustrated-lore .portrait-link{display:flex;gap:.75rem;align-items:center;min-height:48px;max-width:100%;padding:.25rem .5rem .25rem .25rem;white-space:normal;text-align:left;font:inherit;color:var(--gold)}
.portrait-link>img{display:block;flex:0 0 64px;width:64px;height:64px;object-fit:cover;border:1px solid #bda26d66;border-radius:4px;background:#102127}
.leader-portrait-link{margin-top:.5rem;font:500 1.3rem/1.25 Georgia,serif!important}
.portrait-link>img.ally-portrait{object-fit:contain}
.timeline-person{margin-top:1rem}
.mystery-discovery{margin:1.8rem 0;padding:1rem 1.2rem;border:1px solid #9b74554a;background:linear-gradient(120deg,#211a1a,#0c151b)}
.mystery-discovery h3{margin-top:0}
.mystery-discovery p{font-size:.95rem;line-height:1.85;color:#c5cabf}
.related-fragments{margin-block:1.5rem;padding-block:1rem;border-block:1px solid var(--line)}
.related-fragments .portrait-link{margin:.7rem 0}
.faction-methods{padding-left:1.3rem;font-size:1rem;line-height:1.85;color:#c5cabf}
.dungeon-purpose{border-left:2px solid var(--gold);padding-left:1rem;color:#e6d8b7!important}
.dungeon-return-story{border-top:1px solid var(--line);margin-top:1.8rem;padding-top:1rem}
.return-cause-chain{margin:1.2rem 0}
.return-cause-chain>div{padding:.75rem 0;border-bottom:1px solid var(--line)}
.return-cause-chain dt{font-size:.7rem;color:var(--gold);text-transform:uppercase;letter-spacing:.1em;margin-bottom:.3rem}
.return-cause-chain dd{margin:0;font-size:.95rem;line-height:1.85;color:#c5cabf}
.illustrated-lore .ally-reason{font-size:.95rem;line-height:1.8;margin:.55rem 0 .15rem;color:#c5cabf}
.illustrated-lore .ally-origin-link{font:inherit;text-align:left;white-space:normal}
.gallery-art-card .heraldry-artwork>img{width:100%;height:220px;aspect-ratio:2/1;object-fit:contain}
@media(max-width:760px){
 .workspace-story-links{gap:.2rem .8rem;font-size:.8rem;max-width:48%}
 .realm-leadership{grid-template-columns:80px minmax(0,1fr);gap:.8rem;padding:1rem;margin:1rem 0}
 .realm-leadership h3{font-size:1.25rem}
 .world-story-copy{padding:1rem 1.05rem}
 .world-story-copy>p{font-size:1rem}
 .person-heraldry{grid-template-columns:84px minmax(0,1fr);gap:.8rem}
 .dungeon-ruler-grid{grid-template-columns:1fr}
 .story-faction-grid{grid-template-columns:1fr}
 .leader-portrait-link{font-size:1.1rem!important}
 .leader-portrait-link>img{flex-basis:52px;width:52px;height:60px}
}
@media(max-width:360px){.workspace-story-links{font-size:.74rem;gap:0 .5rem}.realm-leadership{grid-template-columns:56px minmax(0,1fr);padding:.75rem;gap:.6rem}.leader-portrait-link{gap:.45rem}.leader-portrait-link>img{flex-basis:44px;width:44px;height:52px}}


/* Full scenes carry the origins; artwork controls never cover arms or leaders. */
.illustrated-lore .person-portrait .artwork-cue{position:static;display:block;opacity:1;transform:none;backdrop-filter:none;border:0;border-top:1px solid #bca16a30;background:transparent;padding:.5rem .75rem;text-align:right;font:.65rem/1.5 system-ui,sans-serif}
.illustrated-lore .hero>summary,.illustrated-lore .hero[open]>summary,.illustrated-lore .region-hero-origin>summary,.illustrated-lore .region-hero-origin[open]>summary,.illustrated-lore .reader-scroll .region-hero-origin>summary,.illustrated-lore .reader-scroll .region-hero-origin[open]>summary{display:block}
.illustrated-lore .hero .hero-origin-scene,.illustrated-lore .hero[open] .hero-origin-scene,.illustrated-lore .region-hero-origin .hero-origin-scene,.illustrated-lore .reader-scroll .region-hero-origin .hero-origin-scene{height:auto;aspect-ratio:2/1;width:100%;overflow:hidden;background:#0d181c}
.illustrated-lore .hero-origin-scene img{display:block;width:100%;height:100%;object-fit:contain;filter:none}
.illustrated-lore .hero-origin-scene>.origin-painting{display:block;width:100%;height:100%;min-height:44px;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in}
.illustrated-lore .origin-painting:focus-visible{outline:2px solid var(--gold);outline-offset:-3px}
.illustrated-lore .hero-alliance{grid-column:1/-1}
.hero-alliance-scene{margin:1rem 0 .25rem}
.hero-alliance-scene .artwork-trigger>img{aspect-ratio:2/1;object-fit:contain}
.hero-alliance-scene figcaption{margin-top:.65rem;font:italic .9rem/1.7 Georgia,serif;color:var(--muted)}
.hero-alliance-scene .artwork-cue{position:static;display:block;opacity:1;transform:none;backdrop-filter:none;background:transparent;border:0;border-top:1px solid #bca16a30;padding:.5rem .75rem;text-align:right;font:.65rem/1.5 system-ui,sans-serif}



/* Merchant stories remain within their realms and approved supply routes. */
.realm-merchants{margin:1rem 1.2rem;padding:.8rem 0;border-block:1px solid var(--line)}
.realm-merchants>summary{cursor:pointer;color:var(--gold);padding:.4rem 0;font:500 1.1rem/1.5 Georgia,serif}
.realm-merchants-body{padding:.5rem 0 1rem}
.supply-place-links{display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;margin:1rem 0;align-items:center}
.merchant-story-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:.8rem;margin:1rem 0}
.illustrated-lore .merchant-story-link{display:grid;grid-template-columns:64px minmax(0,1fr);width:100%;font:inherit}
.merchant-story-link>img{grid-row:1/3;object-fit:contain}
.merchant-story-link>span:not(.merchant-caption){font-size:1.05rem;line-height:1.4}
.merchant-caption{font:.72rem/1.5 system-ui,sans-serif;color:var(--muted)}
.illustrated-lore .merchant-portrait{max-width:620px;margin:0 auto;border:0}
.illustrated-lore .merchant-portrait>img{height:auto;width:100%;max-height:60dvh;aspect-ratio:auto;object-fit:contain}
.person-ancestry{margin:.2rem 0 1rem;color:var(--muted)}
.route-merchants{margin-top:1.5rem;padding-top:.6rem;border-top:1px solid var(--line)}
@media(max-width:650px){.realm-merchants{margin-inline:1rem}.merchant-story-grid{grid-template-columns:1fr}}

/* The two Krix-species leader avatars display-crop the unchanged full painting. */
.illustrated-lore .figure-portrait.has-artwork-avatar-frame{position:relative;height:104px}
.illustrated-lore .is-notable .figure-portrait.has-artwork-avatar-frame{height:76px}
.figure-portrait.has-artwork-avatar-frame img{position:absolute;left:50%;top:47%;width:calc(100% * var(--artwork-avatar-zoom));height:auto;max-width:none;object-fit:initial;transform:translate(calc(-100% * var(--artwork-avatar-x)),calc(-100% * var(--artwork-avatar-y)))}
