:root{--habitat-accent:#4d706d}
body.world-story{margin:0!important;overflow:hidden!important;min-height:100vh;min-height:100dvh;background:#e0e7e3;color:#263f37;font-family:Manrope,Arial,sans-serif}
.world-story .mast{position:fixed;z-index:40;left:0;right:0;top:0;display:flex;align-items:flex-start;justify-content:space-between;padding:25px 34px;pointer-events:none}
.world-story .mast>*{pointer-events:auto}.world-story .brand{text-decoration:none;color:#2e4b43;font:28px/1 Georgia,serif;letter-spacing:.07em}.world-story .brand span{display:block;margin-top:8px;font:8px/1.4 Arial,sans-serif;letter-spacing:.22em}
.world-story .hall-nav{display:flex;gap:9px}.world-story .quiet{background:#f5f1e6e8;border:1px solid #8b9e8a;color:#2f493f;border-radius:24px;padding:11px 16px;min-height:43px;font:12px/1.4 Arial;cursor:pointer}
.world-story>.entrance,.world-story>.credits,.world-story>.notice{display:none!important}.world-story>.hall{position:fixed!important;inset:0!important;margin:0!important;padding:0!important;width:100vw!important;max-width:none!important;height:100vh!important;height:100dvh!important;overflow:hidden}
.world-story #hall-canvas,.world-story .hall-heading,.world-story .panorama,.world-story .loading-label,.world-story .hall-hint,.world-story .hall-tour{display:none!important}
.world-story .walk-title{max-width:470px}.world-story .walk-title h2{font-family:Georgia,serif}.world-story #walk-viewport{position:absolute;inset:0;width:100%;height:100%}.world-story #gallery-preparing{position:absolute;inset:0;display:grid;place-items:center;background:#e4e8df;z-index:15;font:22px Georgia,serif}.world-story #gallery-preparing[hidden]{display:none}
body[data-habitat] .walk-title p{color:var(--habitat-accent)}body[data-habitat] .walk-bottom{border-color:color-mix(in srgb,var(--habitat-accent),#fff 55%)}
#world-read-button{position:fixed;right:30px;top:91px;z-index:42;border:1px solid #82998a;background:#f5f1e6f0;color:#2c463b;min-height:43px;border-radius:24px;padding:10px 18px;font:12px/1.5 Arial;cursor:pointer;box-shadow:0 7px 25px #25382b18}
.world-reader{box-sizing:border-box;width:min(1080px,calc(100vw - 38px));max-width:calc(100vw - 38px);height:min(88dvh,1000px);max-height:90dvh;border:1px solid #adb6a5;background:#f6f3e9;color:#253d32;border-radius:18px;padding:0;overflow:hidden;box-shadow:0 25px 100px #162f3655}
.world-reader::backdrop{background:#14352b99;backdrop-filter:blur(7px)}.world-reader>header{position:relative!important;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 24px;border-bottom:1px solid #bfc6b4;background:#eeefe3;color:#2a4436;z-index:2}
.world-reader>header small{font:8px/1.5 Arial;letter-spacing:.2em}.world-reader>header h2{font:400 clamp(19px,2.2vw,28px)/1.25 Georgia,serif;color:#2a4436;margin:5px 0 0}.world-reader>header button{flex-shrink:0;width:44px;height:44px;border:1px solid #9ba78f;border-radius:50%;background:#f5f3e8;color:#2d4b3c;font-size:25px;cursor:pointer}
.world-reading{height:calc(100% - 104px);overflow:auto;overscroll-behavior:contain;padding:0 24px 35px;scroll-behavior:auto;line-height:1.8}.world-reading .page{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;padding:20px 0!important;display:block!important;background:transparent!important}.world-reading .cadnv-entry,.world-reading .mv-exhibit,.world-reading .cadnv-crumbs{display:none!important}.world-reading .cadnv-reading-space{box-sizing:border-box;width:100%!important;max-width:880px!important;margin:0 auto!important;padding:12px 0!important;box-shadow:none!important;display:block!important;background:transparent!important;border:0!important}
.world-reading h2{font-family:Georgia,serif;line-height:1.3;color:#294332}.world-reading h3{color:#34503a}.world-reading a{color:#305848;text-underline-offset:4px}.world-reading section{scroll-margin-top:15px}.world-reading img{max-width:100%;height:auto}.world-reading table{display:block;overflow:auto;max-width:100%}.world-reading .origin-listen,.world-reading .origin-timeline{position:static!important}.world-reading .ce-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.world-story :focus-visible{outline:3px solid #758a65;outline-offset:4px}
@media(max-width:760px){.world-story .mast{padding:19px 18px}.world-story .brand{font-size:23px}.world-story .hall-nav{gap:6px;max-width:225px;flex-wrap:wrap;justify-content:flex-end}.world-story .quiet{font-size:10px;padding:9px 12px;min-height:40px}#world-read-button{right:18px;top:113px;font-size:10px;padding:9px 12px}.world-story .walk-title{top:178px;max-width:290px}.world-story .walk-title span{max-width:270px;font-size:11px}.world-reader{width:calc(100vw - 20px);max-width:calc(100vw - 20px);height:92dvh;max-height:94dvh;border-radius:13px}.world-reader>header{padding:13px 16px;gap:12px}.world-reader>header h2{font-size:18px}.world-reading{padding:0 16px 28px;height:calc(100% - 100px)}.world-reading .ce-grid{grid-template-columns:1fr}.world-reading .origin-cover{padding:0}.world-story .walk-bottom{max-height:36vh;overflow:auto}}
@media(prefers-reduced-motion:reduce){.world-story *{scroll-behavior:auto!important}}

.world-story>#walk-mode{display:none!important}

body[data-habitat]{min-height:100vh;min-height:100dvh}

body[data-habitat] .walk-title{box-sizing:border-box;background:#f5f2e6d9;border:1px solid #bdc6b4a0;border-radius:17px;padding:13px 24px;backdrop-filter:blur(7px);max-width:min(620px,76vw)}body[data-habitat] .walk-title h2{margin:5px 0 8px}body[data-habitat] .walk-actions button{min-height:40px;border:1px solid #93a38c!important;border-radius:22px!important;padding:8px 13px!important;text-decoration:none!important;font-size:12px!important}body[data-habitat] .walk-actions #walk-choose{background:var(--habitat-accent)!important;color:#fff9e9!important;border-color:var(--habitat-accent)!important}@media(max-width:760px){body[data-habitat] .walk-title{max-width:88vw;padding:11px 15px}body[data-habitat] .walk-title h2{font-size:23px}body[data-habitat] .walk-actions button{font-size:10px!important;padding:7px 9px!important;min-height:39px}}
#world-reader .world-reading{color:#294234!important;background:#f6f3e9!important}
#world-reader .world-reading :is(p,li,strong,em,cite,label){color:#30463a!important;opacity:1!important}
#world-reader .world-reading :is(h1,h2,h3,h4){color:#294b37!important;opacity:1!important}
#world-reader .world-reading :is(section,article,nav,aside,details,.origin-specimen,.origin-feature,.origin-local){background:#f5f3e9!important;color:#30463a!important;border-color:#bdc8b1!important;box-shadow:none!important}
#world-reader .world-reading .origin-epoch-panel,#world-reader .world-reading .origin-evidence-grid article,#world-reader .world-reading .origin-quiz{background:#e8ede2!important;border:1px solid #b5c2aa!important;border-radius:14px!important;padding:22px!important}
#world-reader .world-reading :is(.origin-eyebrow,.origin-date,.origin-note,.origin-ref,.origin-status,.origin-specimen span){color:#5b6e4f!important;opacity:1!important}
#world-reader .world-reading .origin-specimen em{color:#294b37!important}
#world-reader .world-reading .origin-epochs a{display:flex;flex-direction:column;gap:6px;min-height:70px;padding:12px;border:1px solid #a9ba9d;border-radius:11px;text-decoration:none;background:#e6ecdd!important;color:#344c37!important;line-height:1.5}
#world-reader .world-reading .origin-epochs a[aria-selected=true]{background:#425f48!important;color:#fff8e7!important}
#world-reader .world-reading .origin-epochs a span{color:inherit!important}
#world-reader .world-reading .origin-choices button{min-height:54px;text-align:left;padding:14px;border:1px solid #96aa8b;border-radius:12px;background:#e8edde;color:#304835}
#world-reader .world-reading .origin-choices button[aria-pressed=true]{background:#3c5b43;color:#fff9e9}
#world-reader .world-reading .origin-epoch-panel p{font-size:16px!important;line-height:1.8!important}
.world-story .walk-title{z-index:25!important;display:block!important;opacity:1!important}

/* Reading occupies its own viewport; inherited exhibit headers cannot float over a chapter. */
body.world-story .world-reader{z-index:300!important;height:90dvh;max-height:94dvh;display:none;flex-direction:column;isolation:isolate}
body.world-story .world-reader[open]{display:flex!important}.world-reader>header{flex:0 0 auto!important;min-height:72px!important;box-sizing:border-box!important}.world-reader .world-reading{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;scroll-padding-top:20px}
body.world-story .world-reading,body.world-story .world-reading *{box-sizing:border-box!important;min-width:0;max-width:100%}
body.world-story .world-reading :is(header,footer,aside,nav,section,article,.origin-timeline,.origin-listen){position:relative!important;inset:auto!important;transform:none!important;float:none!important}
body.world-story .world-reading :is(.origin-grid,.origin-intro,.origin-evidence-grid,.origin-epochs,.ce-grid){gap:18px!important;align-items:start!important}
body.world-story .world-reading h1{font:400 clamp(28px,4vw,42px)/1.16 Georgia,serif!important;margin:24px 0!important}
body.world-story .world-reading h2{font:400 clamp(24px,3vw,34px)/1.22 Georgia,serif!important;margin:30px 0 16px!important}
body.world-story .world-reading h3{font:600 19px/1.3 Georgia,serif!important;margin:23px 0 12px!important}
body.world-story .world-reading :is(p,li){font-size:16px!important;line-height:1.8!important;overflow-wrap:anywhere!important;margin-top:0!important;margin-bottom:15px!important}
body.world-story .world-reading :is(a,button){overflow-wrap:anywhere!important;white-space:normal!important}.world-reader .world-reading .origin-epochs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}.world-reader .world-reading .origin-epochs a{height:auto!important;min-height:80px!important}.world-reader .world-reading .origin-quiz{margin-top:24px!important}.world-reader .world-reading .origin-choices{display:grid!important;gap:10px!important}.world-reader .world-reading .origin-choices button{width:100%!important;height:auto!important;min-height:50px!important;line-height:1.5!important}
.world-reader .world-reading [hidden]{display:none!important}
body.world-story #world-read-button{z-index:75!important;top:auto!important;bottom:122px!important;right:24px!important;min-height:42px!important;border-radius:24px!important;padding:10px 16px!important;background:#faf8f0ed!important;color:#35483e!important;border-color:#b8bdab!important}
@media(max-width:760px){
 body.world-story .world-reader{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;margin:8px!important;border-radius:14px!important}
 .world-reader>header{padding:13px 16px!important;gap:10px!important;min-height:76px!important}.world-reader>header h2{font:400 20px/1.2 Georgia,serif!important;margin:5px 0 0!important}.world-reader .world-reading{padding:0 18px 28px!important}
 body.world-story .world-reading :is(.origin-grid,.origin-intro,.origin-evidence-grid,.ce-grid){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}.world-reader .world-reading .origin-epochs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.world-reader .world-reading .origin-epochs a{min-height:90px!important;padding:11px!important;font-size:13px!important}
 body.world-story .world-reading :is(p,li){font-size:15px!important;line-height:1.75!important}.world-reader .world-reading .origin-epoch-panel,.world-reader .world-reading .origin-quiz{padding:16px!important}
 body.world-story #world-read-button{bottom:calc(113px + env(safe-area-inset-bottom))!important;right:16px!important;font-size:10px!important;min-height:40px!important;max-width:185px!important}
 body.world-story:has(.has-destination) #world-read-button{bottom:calc(202px + env(safe-area-inset-bottom))!important}
 body.world-story #world-read-button,body.world-story:has(.has-destination) #world-read-button{bottom:calc(var(--walk-rail-height,54px) + 59px + env(safe-area-inset-bottom))!important}
}
