/* The reading layer keeps the complete lesson in the page's normal scroll. */
:root{--ink:#173e47;--muted:#4d666d;--accent:#087581;--line:#cfe3df;--soft:#eef8f4;color:var(--ink);background:#eff9f7;font-size:16px}html{scroll-padding-top:24px}body{background:linear-gradient(180deg,#d8f3f3 0,#f2faf4 620px,#f5faf7 100%);min-width:0}.app,.app:has(>.illustrated-stories),.app.without-browse:has(>.illustrated-stories){display:block;height:auto;min-height:100dvh;max-width:1200px;padding:0 32px 32px;margin:auto}button,.button,input,select,textarea{font-size:16px;min-height:48px;border-radius:16px;padding:11px 16px;line-height:1.35}button,.button{border:1px solid #b9d7cd;background:linear-gradient(#fff,#edf8f1);box-shadow:0 3px 0 #bed8cb;text-wrap:pretty}button:hover,.button:hover{background:#e1f4ea}button:active{transform:translateY(2px);box-shadow:0 1px 0 #bed8cb}button[aria-pressed=true]{background:#d6efe5;border-color:#6cab99;color:#173f38}.app :focus-visible{outline:3px solid #05798d;outline-offset:5px}.app [tabindex="-1"]:focus{outline:none}header{min-height:76px;border-bottom:1px solid #b7d9d6;gap:16px}.brand{font-size:16px}.brand img{width:46px;height:46px}.collection-name{font-size:16px}.back{font-size:16px;min-height:48px;display:flex;align-items:center;white-space:nowrap}.modes{padding:16px 0;gap:10px;flex-wrap:wrap}.modes button{min-height:48px;padding:10px 17px;font-size:16px;border-color:#b9d7cd}.modes button[aria-pressed=true]{border-color:#6cab99}#lesson-count{font-size:16px;min-width:26px;padding:1px 7px;background:#fff}.more-links{font-size:16px}.more-links summary{min-height:48px;display:flex;align-items:center;padding:10px 14px;border-radius:16px;background:#ffffffa8}.modes .more-links a{font-size:16px;padding:14px;line-height:1.5}.browse-panel{border:1px solid #bddfd3;border-radius:20px;background:#ffffffd9;padding:0 20px;margin:0 0 30px}.browse-panel>summary{min-height:58px;cursor:pointer;font-size:16px;font-weight:700;padding:16px 0;line-height:1.4}.browse-panel>summary span{font-size:16px;font-weight:400;color:var(--muted);margin-left:12px}.browse{display:block;padding:2px 0 22px}#categories{flex-wrap:wrap;gap:9px;overflow:visible;padding:0 0 18px}#categories button{min-height:48px;font-size:17px;padding:10px 16px;flex:0 1 auto}.find{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:12px;width:100%;max-width:none}.find #search,.find #region,.find #subject{width:100%!important;min-width:0!important;max-width:100%;font-size:17px;min-height:52px;flex:none!important}.heading{display:block;margin:0 auto 24px;max-width:1000px;padding:0}.heading h1{font-family:"Avenir Next Rounded Pro","Arial Rounded MT Bold","Trebuchet MS",sans-serif;font-size:clamp(36px,4.6vw,56px);line-height:1.12;letter-spacing:-1.2px;font-weight:800;margin:12px 0 16px;overflow-wrap:normal}#subtitle{font-size:16px;line-height:1.5;color:#426169;margin:0;max-width:65ch}.eyebrow{font-size:15px;letter-spacing:1.5px;line-height:1.5;font-weight:800}.app main{min-height:0}.mode-panel{height:auto;min-height:0}.article{display:block;height:auto;max-width:1000px;margin:auto;padding:32px clamp(24px,4vw,60px) 48px;background:#fffefa;border:1px solid #d7e4d8;border-radius:32px;box-shadow:0 8px 0 #d2e6d8,0 20px 60px #406a5510}.overview{display:block;padding:0;overflow:visible}#overview{font-size:16px;line-height:1.65;margin:14px 0 18px;max-width:65ch}.reading-context{font-size:17px;line-height:1.55;color:var(--muted);margin:0 0 25px}.visual{display:block;grid-row:auto;padding:0;margin:0 0 30px;overflow:visible;border:none;gap:0;background:#fff}.visual-content{position:relative;display:block;min-height:0;height:auto;overflow:visible;background:#fff;border:1px solid #e2e9df;border-radius:24px;padding:16px}.plate{display:block;width:100%;height:auto;max-height:540px;object-fit:contain}.visual.is-expanded .plate{max-height:none}.visual figcaption{font-size:16px;line-height:1.6;color:var(--muted);margin:15px 0;padding:0 4px}.picture-actions{display:flex;gap:12px;flex-wrap:wrap}.picture-actions button{font-size:17px}.reading-links{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 40px}.reading-links button{font-size:17px;background:#edf8f4;box-shadow:none}.reading-section,.story-chapter{padding:34px 0;border-top:1px solid #dce6dd;max-width:100%;scroll-margin-top:24px}.reading-section h2,.story-chapter h2{font-family:"Arial Rounded MT Bold","Trebuchet MS",sans-serif;font-size:24px;font-weight:800;line-height:1.25;letter-spacing:-.5px;margin:8px 0 22px}.reading-section p,.story-chapter>p,.details-body p{font-size:16px;line-height:1.7;max-width:65ch;margin:15px 0}.reading-section p.eyebrow,.story-chapter>p.eyebrow{font-size:15px;margin:0}.details dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0}.details dl>div{background:#eff7eb;border:1px solid #dde9d6;border-radius:18px;padding:20px}.details dt{font-size:16px;line-height:1.5;margin:0 0 9px;color:#4b6550}.details dd{font-size:16px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}.story-chapter>p.chapter-sources{font-size:16px;line-height:1.55;margin:20px 0 0;color:var(--muted)}.chapter-sources a,.source-list a{overflow-wrap:anywhere}.deeper-reading,.teacher-details{border:1px solid #cadfd5;background:#f5faf5;border-radius:20px;margin:16px 0 34px;padding:0 24px}.deeper-reading>summary,.teacher-details>summary{font-size:16px;font-weight:750;line-height:1.45;cursor:pointer;min-height:64px;padding:18px 0}.deeper-reading>summary span,.teacher-details>summary span{display:block;font-size:16px;font-weight:400;color:var(--muted);margin:5px 0 0}.details-body{padding:0 0 20px}.level{font-size:17px;display:flex;flex-direction:column;gap:9px;margin:15px 0 20px;max-width:340px}.level select{font-size:16px;min-height:52px;width:100%;min-width:0}.details-body #level-tag{font-size:16px;margin-bottom:0}.details-body h3,.reading-section h3{font-size:16px;line-height:1.4;margin:24px 0 12px}.details-body h4{font-size:16px;margin:25px 0 8px}.original-chapter{padding:20px 0 10px}.original-chapter>p.chapter-sources{font-size:16px}.evidence-note{border-left:4px solid #80b4a7;padding-left:18px}.model-steps{padding-left:30px;counter-reset:none}.model-steps li{font-size:16px;margin:22px 0;padding-left:10px;line-height:1.65}.model-steps h3{margin:0 0 6px}.model-steps p{margin:0}.activity{display:block}.activity .view-tabs{gap:12px;margin:5px 0 25px}.view-tabs button{min-height:48px;font-size:17px;padding:10px 16px}#activity-content{font-size:16px;line-height:1.7}#activity-content p{margin:18px 0}.quiz-choices{gap:13px}.quiz-choices button{min-height:54px;font-size:16px;line-height:1.5;padding:14px 18px}.quiz-choices button:disabled{opacity:1}.quiz-feedback{padding:18px!important}.text-button,#quiz-reset{min-height:48px;padding:10px 14px;font-size:16px}.related{display:grid;grid-template-columns:1fr 1fr;gap:15px}.related button{font-size:16px;min-height:78px;padding:18px 20px;justify-content:space-between;text-align:left;line-height:1.4}.source-list{list-style:none;padding:0}.source-list li{padding:18px 0;font-size:16px;line-height:1.6}.source-list a{font-size:16px}.source-list small{font-size:16px;margin-top:6px}.teacher-notes{display:block}.teacher-notes>div{margin:24px 0}.teacher-notes dt{font-size:16px;font-weight:750;color:var(--ink);margin-bottom:7px}.teacher-notes dd{font-size:16px;line-height:1.65;font-weight:400}.illustrated-stories{margin:40px auto 20px;border:1px solid #c7dfd0;border-radius:24px;max-width:1000px;padding:24px;gap:24px;background:#ffffffb5}.illustrated-stories strong{font-size:16px}.illustrated-stories>div>span,.illustrated-stories small{font-size:16px;line-height:1.5}.illustrated-stories>a{font-size:16px;line-height:1.4;min-height:74px}.illustrated-stories img{width:95px;height:72px}footer{min-height:96px;padding:24px 0;display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:16px;line-height:1.5;border-top:0}#article-pager{margin-left:auto;display:flex;gap:12px}footer button{font-size:16px;min-height:48px;padding:10px 17px}#footer-note{font-size:16px}footer>span{font-size:16px}.small{font-size:16px;line-height:1.6}.image-error{position:static;font-size:16px;max-width:100%;padding:20px}.place-card{max-width:none}.place-card p{font-size:16px}.card{overflow:visible;height:auto;max-height:none;padding:26px;border-radius:24px}.card h2{font-size:20px;line-height:1.35}.card h3{font-size:16px}.card p,.card label{font-size:16px;line-height:1.65}.card .small,.card .map-note,.card .map-selected{font-size:16px}.atlas-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:24px;overflow:visible}.map-card{display:block;height:auto;min-height:0}#map-container{min-height:320px;height:400px}#map-container svg{height:auto;max-height:none}.atlas-list{display:block;height:auto;overflow:visible}#atlas-entries{overflow:visible;min-height:0;display:flex;margin-top:20px}#atlas-entries button,.atlas-list #atlas-entries button{font-size:16px!important;padding:12px 14px!important;min-height:48px}#atlas-detail{overflow:visible;padding:22px 0;margin-top:20px}.timeline-layout{height:auto;display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.8fr);gap:24px;overflow:visible}.timeline-chapters{display:block;overflow:visible;max-height:none}.timeline-chapters h2{display:block;margin-bottom:18px}.timeline-chapters select{width:100%;min-width:0;max-width:none;font-size:16px}.timeline-chapters #timeline-chapters{display:flex;flex-direction:column;overflow:visible;padding:15px 0;max-height:none}.timeline-chapters #timeline-chapters button{font-size:16px;min-height:56px;padding:14px;white-space:normal}.timeline-chapters #timeline-chapters button span{font-size:16px}.timeline-chapters #timeline-chapters button strong{font-size:16px;line-height:1.45}.event-intro{display:block}.event-intro h2{font-size:24px}.event-intro .event-date{font-size:24px}.event-map-stage{margin:20px 0}#event-map{height:220px}.event-map-stage figcaption{font-size:16px}#event-body{font-size:16px;line-height:1.7}.source-links a{font-size:17px;line-height:1.5}.timeline-controls{position:static;margin-top:30px}.timeline-controls label,.timeline-controls span,.timeline-controls p{font-size:17px}.timeline-controls button{font-size:16px;min-height:48px}.lesson-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;overflow:visible}.lesson-entry{padding:22px 0}.entry-controls{gap:12px;flex-wrap:wrap}.entry-controls button{min-height:48px;font-size:17px;padding:10px 14px}.lesson-settings label{margin:18px 0 8px;display:block}.lesson-settings input,.lesson-settings select,.lesson-settings textarea{width:100%;max-width:100%;font-size:16px}.export-actions{gap:12px}.export-actions button{min-height:50px;font-size:16px;padding:14px}.empty-state{font-size:16px;line-height:1.6}.noscript{font-size:16px;padding:24px;background:#fff;position:fixed;inset:20px auto auto 20px;max-width:calc(100vw - 40px);border:2px solid #21616b;z-index:20}.static-reading{max-width:1000px;margin:auto;padding:30px}.static-reading .static-index{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:24px;background:#fff;border-radius:20px}.static-reading .static-index a{font-size:16px;padding:12px}.static-reading article{background:#fffefa;padding:32px;margin:35px 0;border-radius:24px;scroll-margin-top:20px}.static-reading article h2{font-size:24px}.static-reading article h3{font-size:20px}.static-reading article p{font-size:16px;line-height:1.7}.static-reading img{width:100%;max-height:530px;object-fit:contain}.static-reading figcaption,.static-reading .chapter-sources{font-size:16px;line-height:1.6}.static-reading li{font-size:16px;line-height:1.65;margin:12px 0}
@media(max-width:900px){.app,.app:has(>.illustrated-stories),.app.without-browse:has(>.illustrated-stories){padding:0 22px 24px}.heading{padding:0}.heading>div{width:100%}.collection-name{display:none}.article{padding:28px 30px}.atlas-layout,.timeline-layout,.lesson-layout{grid-template-columns:1fr}.timeline-chapters #timeline-chapters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.timeline-chapters #timeline-chapters button{flex-direction:column;align-items:flex-start}.timeline-chapters h2{display:block}.atlas-list #atlas-detail p{font-size:16px}.atlas-list #atlas-detail h3{font-size:16px}.find{grid-template-columns:1fr 1fr}.find #subject{grid-column:1/-1}.illustrated-stories{flex-wrap:wrap}.illustrated-stories>div{flex-basis:100%}.illustrated-stories>a{flex-basis:calc(50% - 12px)}.event-intro .eyebrow{font-size:15px}.event-intro .event-date{font-size:24px}.event-intro h2{font-size:24px}.map-label{display:none}.atlas-list{padding:26px}.app [hidden]{display:none!important}}
@media(max-width:600px){.app,.app:has(>.illustrated-stories),.app.without-browse:has(>.illustrated-stories){padding:0 14px 22px}header{gap:8px;min-height:70px}.brand{font-size:16px;gap:5px}.brand img{width:36px;height:36px}.brand span{display:none}.back{font-size:17px}.modes{gap:10px;padding:16px 0}.modes button{padding:10px 14px;font-size:17px}.more-links{margin-left:0}.more-links>div{left:0;right:auto;max-width:calc(100vw - 32px)}.more-links summary{font-size:17px;padding:10px 14px}.browse-panel{padding:0 16px;margin-bottom:25px}.browse-panel>summary{font-size:16px}.browse-panel>summary span{display:block;margin:5px 0 0}.browse-panel #categories{overflow:visible;flex-shrink:1;gap:10px}.browse-panel #categories button{flex:1 1 auto;white-space:normal;min-width:0}.find{grid-template-columns:1fr}.find #subject{grid-column:auto}.heading h1{font-size:24px;margin:12px 0 16px;letter-spacing:-.8px}#subtitle{font-size:16px}.article{border-radius:24px;padding:26px 20px 28px}#overview{font-size:16px;line-height:1.65}.visual{margin-left:-8px;margin-right:-8px}.visual-content{padding:5px;border-radius:18px}.plate{max-height:420px}.visual figcaption{font-size:16px}.picture-actions{gap:10px}.picture-actions button{font-size:16px}.reading-links{gap:10px;margin:0 0 28px}.reading-links button{font-size:16px;padding:11px 13px;flex:1 1 auto}.reading-section,.story-chapter{padding:28px 0}.reading-section h2,.story-chapter h2{font-size:20px;margin-bottom:18px}.reading-section p,.story-chapter>p,.details-body p,#activity-content,#event-body{font-size:16px;line-height:1.7}.details dl{grid-template-columns:1fr;gap:12px}.details dl>div{padding:17px 19px}.details dd{font-size:16px}.deeper-reading,.teacher-details{padding:0 18px;border-radius:18px}.deeper-reading>summary,.teacher-details>summary{font-size:16px}.details-body h3,.reading-section h3{font-size:16px}.model-steps{padding-left:25px}.model-steps li{padding-left:4px}.related{grid-template-columns:1fr}.related button{font-size:16px;min-height:68px}.source-list a{font-size:16px}.teacher-notes dd{font-size:16px}.illustrated-stories{padding:22px;display:flex;align-items:stretch;flex-direction:column}.illustrated-stories>a{font-size:16px;padding-top:18px;border-top:1px solid #c7dfd0}.illustrated-stories img{width:85px}.illustrated-stories>div{flex-basis:auto}footer{display:block;padding-top:14px}footer>span{display:block;margin:10px 0}#article-pager{margin-top:24px;justify-content:space-between}#article-pager button{font-size:17px}.card{padding:22px}.card p{font-size:16px}.timeline-chapters #timeline-chapters{grid-template-columns:1fr}.timeline-chapters select{width:100%;max-width:none}.event-intro h2{font-size:20px}.control-row{flex-wrap:wrap}.control-row button{flex:1 1 auto}.event-map-stage figcaption{font-size:16px}.atlas-list{padding:22px}#map-container{height:300px;min-height:0}.map-card .widget-head{display:block}.map-card h2{margin-bottom:10px}.map-point .map-hit{r:70px}.lesson-settings{max-width:100%}.static-reading{padding:18px}.static-reading .static-index{grid-template-columns:1fr;padding:15px}.static-reading article{padding:22px}.static-reading article p{font-size:16px}.static-reading figure{margin:20px 0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}button:active{transform:none}}
@media print{body{background:#fff}.app,.skip,.noscript{display:none!important}.static-reading .static-index{display:none}.static-reading article{break-before:page;padding:0}#print-content{display:block}}
/* Cancel remaining compact-dashboard constraints in the retained tool styles. */
*{box-sizing:border-box}.heading #subtitle{display:block}.heading .eyebrow{font-size:15px}.level select{max-width:100%}#expand{display:inline-flex;min-height:48px;font-size:17px;padding:11px 16px;border:1px solid #b9d7cd}.atlas-layout,.timeline-layout{grid-template-rows:none}.lesson-collection{max-height:none;min-height:0}.timeline-chapters h2{white-space:normal}.timeline-chapters #timeline-chapters strong{display:block}.map-card .widget-head h2{font-size:20px}.lesson-settings>label{font-size:16px}.lesson-settings input,.lesson-settings select,.lesson-settings textarea{min-height:48px}.timeline-controls .small{font-size:16px}.reading-links #show-sources{min-height:48px}.app [hidden]{display:none!important}
/* Keep shared wayfinding at the same readable scale as the lesson controls. */
.app header .ww-context{font-size:16px;line-height:1.5;gap:16px;max-width:70%;flex-wrap:wrap}.app header .ww-context a{font-size:16px!important;min-height:48px;padding:8px 0!important}.app header .ww-current{font-size:16px}
@media(max-width:700px){.app header{flex-wrap:wrap;padding:14px 0 10px;row-gap:6px}.app header .ww-context{flex:1 0 100%;width:100%;max-width:100%;margin-left:0;justify-content:flex-start;gap:20px}.app header .ww-context .ww-subject{display:inline-flex!important}.app header .ww-context .ww-subject[hidden]{display:none!important}.app header .ww-context .ww-current{display:none}.app header .ww-context .ww-version{max-width:none;text-align:left}}

/* White reading surfaces, with colour reserved for small interface accents. */
:root{color-scheme:light;background:#fff}body{background:#fff;color:#20333b}.library-intro,.subject-card,.subject-scene,.facts,.browse,.deeper,.card{background:#fff;box-shadow:none}.library-intro::after{display:none}.library-intro,.subject-card{border:1px solid #dbe2e5}.library-header nav{background:#fff;box-shadow:none}.welcome-orca{filter:none}
