@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:light;--ink:#203a38;--muted:#687a73;--paper:#f5f6f2;--green:#1f6759;--line:#dce4dd;--lime:#dcefa8;--sans:'DM Sans',Arial,sans-serif;--heading:'Manrope',Arial,sans-serif}*{box-sizing:border-box}html{background:var(--paper);scroll-behavior:smooth}body{margin:0;color:var(--ink);font:15px/1.6 var(--sans)}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0}button,a,input,select{-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d29535;outline-offset:4px}button:not(:disabled):hover{filter:brightness(.95)}a{color:inherit}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;left:20px;top:-100px;z-index:30;padding:10px;background:var(--lime)}.skip:focus{top:10px}h1,h2,h3,p{margin-top:0}.eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--green);line-height:1.5}.masthead{height:90px;max-width:1600px;margin:auto;padding:0 4.8%;display:flex;justify-content:space-between;align-items:center;gap:25px}.brand{display:flex;align-items:center;gap:11px;background:none;text-align:left;padding:0;font:800 19px/1.4 var(--heading);letter-spacing:-.7px}.brand-icon{display:grid;place-items:center;width:40px;height:43px;border-radius:10px;background:var(--green)}.brand-icon svg{width:28px;stroke:#f2f3df;stroke-width:1.5;fill:none}.brand-edition{display:block;font:600 8px/1.7 var(--sans);letter-spacing:1.7px;color:var(--muted)}.header-right{display:flex;gap:28px;align-items:center}.nav-button{font-size:12px;font-weight:600;background:none;padding:10px 0}.nav-button span{margin-right:6px}.header-progress{font-size:10px;border:1px solid var(--line);padding:9px 14px;border-radius:30px;color:var(--green);white-space:nowrap}.hero{position:relative;margin:0 2%;height:610px;border-radius:18px;overflow:hidden;color:white;background:#253e3e}.hero-image,.hero-shade{position:absolute;inset:0}.hero-image{background:url('./assets/warehouse-hero.png') center 53%/cover}.hero-shade{background:linear-gradient(90deg,#152b2cee 0%,#193133c7 28%,#1c353677 49%,#18343812 75%),linear-gradient(0deg,#10252644,transparent 30%)}.hero-content{position:relative;padding:56px 4.7%;max-width:690px}.hero-eyebrow{color:#e1eabf;font-size:9px;letter-spacing:2px;margin-bottom:24px;display:flex;gap:8px;align-items:center}.hero-eyebrow>span{width:5px;height:5px;background:var(--lime);border-radius:50%}.hero h1{font:500 clamp(38px,4.3vw,65px)/1.09 var(--heading);letter-spacing:-2.6px;margin-bottom:22px}.hero h1 em{font-style:normal;color:#dbeab5}.hero-copy{font-size:14px;line-height:1.8;max-width:390px;color:#e5eee6;margin-bottom:27px}.hero-actions{display:flex;align-items:center;gap:23px}.primary,.secondary{display:inline-flex;justify-content:space-between;align-items:center;gap:28px;min-height:48px;border-radius:7px;padding:14px 20px;font-size:12px;font-weight:600}.primary{background:var(--green);color:white}.hero .primary{background:var(--lime);color:#254735}.secondary{border:1px solid #97b3a3;color:var(--green);background:transparent}.hero-note{font-size:10px;line-height:1.75;color:#dbe5db}.hero-meta{display:flex;gap:24px;margin-top:34px;font-size:10px;color:#d2dfd8}.hero-meta span{padding-right:24px;border-right:1px solid #ffffff30}.hero-meta span:last-child{border:0;padding:0}.hero-meta strong{font-size:15px;font-weight:600;color:white;padding-right:5px}.hero-location{position:absolute;bottom:28px;right:32px;background:#183436b8;backdrop-filter:blur(10px);border:1px solid #ffffff30;padding:10px 15px;border-radius:8px;font-size:8px;letter-spacing:1.2px}.hero-location>span:last-child{display:block;font-size:10px;color:#d2e0d7;letter-spacing:0;padding:3px 0 0 13px}.live-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#d2e8a6;margin-right:7px;vertical-align:middle}.page-section{max-width:1400px;margin:0 auto;padding:62px 4.8%}.section-heading{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;margin-bottom:28px}.section-heading .eyebrow{margin-bottom:9px}.section-heading h2{font:600 32px/1.2 var(--heading);letter-spacing:-1.1px;margin:0}.section-heading>p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}.course-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.course-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;text-align:left;padding:0}.course-card:hover{box-shadow:0 8px 24px #1d463b12}.course-art{height:145px;width:100%;position:relative;background:#e8ede6;overflow:hidden}.course-art svg{width:100%;height:100%}.course-number{position:absolute;left:14px;top:12px;font-size:9px;font-weight:600;color:var(--green);background:#ffffffd9;padding:3px 7px;border-radius:4px}.course-body{padding:20px;flex:1;display:flex;flex-direction:column}.course-card h3{font:700 16px/1.35 var(--heading);letter-spacing:-.3px;margin-bottom:9px}.course-card p{font-size:11px;line-height:1.75;color:var(--muted);margin-bottom:22px;flex:1}.course-card-footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--green)}.course-card-footer .arrow{font-size:17px}.course-progress{height:3px;background:#e8eee7;margin-top:11px;border-radius:2px;overflow:hidden}.course-progress i{display:block;height:100%;background:#63987d}.resources{display:grid;grid-template-columns:31% 1fr 22%;gap:38px;align-items:center;background:#e9eee5;border:1px solid #d9e2d5;border-radius:14px;margin:8px auto 0;max-width:calc(100% - 9.6%);padding:35px}.resource-art{position:relative;border-radius:10px;overflow:hidden;background:#e5eddf}.resource-art svg{display:block;width:100%}.resource-art>span{position:absolute;bottom:14px;right:16px;font-size:8px;letter-spacing:1.5px;color:#4e6857}.resource-copy .eyebrow{margin-bottom:11px}.resource-copy h2{font:600 29px/1.25 var(--heading);letter-spacing:-.9px;margin-bottom:14px}.resource-copy p:not(.eyebrow){font-size:12px;color:#5d7265;line-height:1.8;max-width:350px;margin-bottom:19px}.resource-copy .secondary{font-size:11px;min-height:43px;padding:10px 14px}.resource-topics{display:flex;flex-direction:column;gap:15px;font-size:11px;color:#56715f;border-left:1px solid #cdd9c9;padding-left:26px}.resource-topics>span:before{content:'↗';display:inline-block;margin-right:9px;color:#3c745c}.team-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:18px}.portrait{display:block;aspect-ratio:1;border-radius:9px;background-image:url('./assets/team-portraits.png');background-size:400% 200%;border:1px solid #dfe5dc}.team-card strong{display:block;font-size:12px;margin:12px 0 2px;font-weight:600}.team-card>span:last-child{display:block;font-size:9px;line-height:1.55;color:var(--muted)}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 4.8%;padding:26px 0;font-size:10px;color:var(--muted)}.footer-brand{font:800 13px var(--heading);color:var(--ink);letter-spacing:-.4px}.footer-brand span{color:var(--green);margin-left:3px;font-weight:500}.text-button{background:none;padding:6px 0;font-size:11px;color:var(--green)}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.lesson-area{padding:0 3.3%}.lesson-breadcrumb{height:55px;display:flex;justify-content:space-between;align-items:center;gap:15px}.lesson-breadcrumb>span{font-size:9px;letter-spacing:1.2px;color:var(--muted)}.theatre{display:grid;grid-template-columns:minmax(0,1fr) minmax(365px,37%);border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#e1e8e1;min-height:650px;height:calc(100vh - 252px);max-height:820px}.world-column{position:relative;min-width:0;overflow:hidden;background:#cedcd5}.world{position:absolute;inset:0;overflow:hidden}.world canvas{display:block;width:100%;height:100%}.world-tag{position:absolute;top:21px;left:22px;padding:6px 10px;border:1px solid #ffffffa0;border-radius:5px;background:#fbfdf5dc;backdrop-filter:blur(12px);font-size:8px;letter-spacing:1.2px;color:#365349}.world-tag .live-dot{background:#548b65}.scene-motion{position:absolute;top:22px;right:21px;padding:6px 9px;background:#fbfdf5db;border:1px solid #ffffff88;border-radius:4px;font-size:9px;color:#476356}.scene-caption{position:absolute;bottom:24px;left:24px;right:24px;max-width:530px;background:#f8faf0ed;backdrop-filter:blur(10px);border:1px solid #fff;border-radius:8px;padding:16px 20px;box-shadow:0 4px 30px #25443410}.scene-caption .eyebrow{font-size:8px;margin-bottom:6px;letter-spacing:1.4px;color:#648269}.scene-caption p{font-size:12px;line-height:1.65;margin:0;color:#355548}.story-panel{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fff;padding:27px 29px;border-left:1px solid var(--line)}.story-kicker{display:flex;justify-content:space-between;gap:15px;font-size:8px;font-weight:600;letter-spacing:1px;color:var(--muted);margin-bottom:22px}.phase-track{display:flex;gap:4px;margin-bottom:22px}.phase-track>span{border-top:3px solid #e9eee7;flex:1;padding-top:5px;font-size:9px;color:#8a978d}.phase-track>span.active{color:var(--green);border-color:#529779}.phase-track>span.past{border-color:#a6c7b0;color:#63836f}.phase-label{font-size:8px;letter-spacing:1.2px;margin-bottom:8px}.story-panel h1{font:700 clamp(23px,2.05vw,33px)/1.18 var(--heading);letter-spacing:-.9px;margin-bottom:20px}.speaker{display:flex;gap:11px;align-items:center;padding-bottom:17px;border-bottom:1px solid #edf0ea;margin-bottom:16px;flex-shrink:0}.speaker-avatar{width:43px;height:43px;flex-shrink:0;display:block;background-image:url('./assets/team-portraits.png');background-size:400% 200%;border-radius:50%;border:1px solid #dfe4d7}.speaker strong{display:block;font-size:12px;font-weight:600}.speaker div>span{display:block;font-size:9px;color:var(--muted)}.voice-bars{display:flex;align-items:center;gap:3px;margin-left:auto;height:23px}.voice-bars i{height:5px;width:2px;background:#79a68b;border-radius:1px}.is-speaking .voice-bars i{animation:voice .8s infinite alternate}.is-speaking .voice-bars i:nth-child(2){animation-delay:-.4s}.is-speaking .voice-bars i:nth-child(3){animation-delay:-.7s}.is-speaking .voice-bars i:nth-child(4){animation-delay:-.2s}@keyframes voice{to{height:19px}}.story-scroll{overflow:auto;min-height:100px;flex:1;padding-right:7px;margin-right:-7px;scrollbar-width:thin;scrollbar-color:#c9d6ca transparent}.story-scroll>p{font-size:14px;line-height:1.85;color:#425d50;margin-bottom:16px}.choices{display:grid;gap:10px}.choice{display:flex;gap:11px;align-items:flex-start;text-align:left;padding:13px;border:1px solid #ccdbcd;border-radius:7px;background:#f6f9f2;font-size:12px;line-height:1.6}.choice-letter{flex-shrink:0;background:#e0ebda;width:22px;height:23px;text-align:center;border-radius:4px;font-size:10px;color:var(--green);padding-top:3px}.scene-terms{padding:12px 0 3px;display:flex;gap:5px;align-items:center;flex-wrap:wrap;border-top:1px solid #edf0ea;margin-top:10px}.scene-terms:empty{display:none}.scene-terms>span{font-size:8px;font-weight:600;color:#829383;margin-right:3px}.term-chip{font-size:9px;background:#eef3ea;border:1px solid #dbe6d7;color:#3f745a;border-radius:4px;padding:4px 6px}.story-next{width:100%;flex-shrink:0;min-height:46px;margin-top:13px;font-size:11px;justify-content:center}.transcript-link{font-size:9px;margin:9px auto 0;padding:2px}.playback{display:flex;gap:22px;align-items:center;justify-content:space-between;padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:11px;margin-top:12px}.transport{display:flex;gap:10px;align-items:center;flex-shrink:0}.round-button{display:inline-grid;place-items:center;width:35px;height:35px;border-radius:50%;border:1px solid #cbd8cd;background:transparent;font-size:17px;padding:0;flex-shrink:0}.round-button.play{background:var(--green);color:white;border:0;width:39px;height:39px;font-size:13px}.round-button.subtle{border:0;font-size:20px;color:#76917e}.audio-status{font-size:9px;line-height:1.8}.audio-status strong{font-size:11px;display:block;font-weight:600;max-width:220px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.audio-status>span{color:var(--muted)}.timeline{display:flex;align-items:center;gap:10px;flex:1;max-width:370px;min-width:100px;font:9px var(--sans);font-variant-numeric:tabular-nums;color:var(--muted)}.timeline input{width:100%;height:3px;accent-color:var(--green);cursor:pointer}.playback-options{display:flex;gap:16px;align-items:center;font-size:10px;white-space:nowrap}.playback-options label{display:flex;gap:7px;align-items:center}.playback-options input{accent-color:var(--green)}select{background:#f0f5eb;border:1px solid var(--line);color:var(--green);font-size:10px;padding:5px;border-radius:5px}.chapter-strip{display:flex;align-items:center;gap:28px;padding:26px 0 30px}.chapter-strip-intro{width:150px;flex-shrink:0}.chapter-strip-intro .eyebrow{font-size:8px;letter-spacing:1.5px}.chapter-strip-intro>span:last-child{display:block;font-size:10px;color:var(--muted);margin-top:5px}.chapter-links{display:flex;flex:1;gap:14px;overflow-x:auto}.chapter-link{border-top:2px solid var(--line);text-align:left;background:none;flex:1;min-width:75px;padding:5px 0;font-size:9px;color:var(--muted)}.chapter-link b{display:block;font-size:9px;font-weight:600;padding:3px 0;color:#8ba290}.chapter-link.active{border-color:var(--green);color:var(--green)}.chapter-link.active b{color:var(--green)}.chapter-link.done b:after{content:' ✓';color:var(--green)}.closing{min-height:60vh;text-align:center;padding-top:90px}.closing h1{font:600 58px/1.1 var(--heading);letter-spacing:-2px}.closing p{max-width:540px;margin-left:auto;margin-right:auto;color:var(--muted);font-size:14px}.closing button{margin:10px 9px}dialog{background:#fafbf7;color:var(--ink);border:1px solid #d4dfd0;border-radius:14px;width:calc(100% - 40px);max-width:1000px;max-height:89vh;overflow:auto;padding:32px;box-shadow:0 25px 100px #14372745}dialog::backdrop{background:#172f2eaa;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.dialog-head .eyebrow{margin-bottom:8px}.dialog-head h2{font:600 31px/1.2 var(--heading);letter-spacing:-1px;margin-bottom:18px}.dialog-intro{font-size:12px;max-width:650px;color:var(--muted);margin-bottom:22px}.chapter-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.chapter-card{padding:20px;border:1px solid var(--line);border-radius:9px;background:#fff}.chapter-start{display:block;width:100%;text-align:left;background:none;padding:0}.chapter-card b{font-size:10px;letter-spacing:1px;color:var(--green)}.chapter-card h3{font:700 17px/1.4 var(--heading);margin:8px 0}.chapter-card p{font-size:11px;color:var(--muted);margin-bottom:12px}.chapter-card small{font-size:10px;color:var(--green)}.chapter-card details{border-top:1px solid var(--line);margin-top:14px;padding-top:10px;font-size:10px}.chapter-card summary{cursor:pointer;color:var(--green)}.scene-menu{display:grid;gap:4px;padding-top:10px}.scene-menu button{padding:7px;background:#f1f5ed;text-align:left;font-size:10px;border-radius:3px}.scene-menu button span{color:#507754;margin-right:5px}#transcriptDialog,#aboutDialog{max-width:700px}#transcriptContent h3{font-size:9px;letter-spacing:1px;color:var(--green);margin:25px 0 10px}#transcriptContent p,#aboutDialog p{font-size:14px;line-height:1.9;color:#526c5a}#transcriptContent details{padding:15px;border:1px solid var(--line);border-radius:5px;font-size:12px}.small{font-size:11px!important;margin-top:26px}.storage-warning{background:#f8ead0;border-bottom:1px solid #e5c68f;padding:12px 5%;font-size:12px;color:#735930}.load-error{position:fixed;z-index:100;bottom:20px;left:20px;right:20px;padding:20px;background:#fff1df;border:1px solid #ce9d71;border-radius:8px}.world-unavailable .world{background:url('./assets/warehouse-hero.png') center/cover}.world-unavailable .world:after{content:'Esplora la scena attraverso il racconto';position:absolute;left:24px;top:70px;background:#f7faf0e6;border-radius:5px;padding:10px;font-size:11px}
@media(min-width:1550px){.hero{max-width:1536px;margin:auto;height:700px}.hero-content{padding-top:76px}.hero h1{font-size:73px}.hero-copy{font-size:15px}.resources{max-width:1266px}.story-panel{padding:32px 38px}.story-scroll>p{font-size:16px}}
@media(max-width:1150px){.hero{height:570px}.hero-content{padding-top:47px}.hero h1{font-size:53px}.hero-copy{max-width:350px}.course-grid{gap:13px}.course-body{padding:16px}.course-card h3{font-size:14px}.resources{grid-template-columns:34% 1fr;gap:28px}.resource-topics{display:none}.team-grid{gap:12px}.theatre{grid-template-columns:minmax(0,1fr) 380px}.story-panel{padding:24px}.timeline{max-width:230px}.playback-options{gap:10px}.header-right{gap:20px}}
@media(max-width:850px){.header-progress{display:none}.masthead{height:80px}.hero{height:560px;margin:0 3%;border-radius:12px}.hero-content{padding:47px 5%}.hero h1{font-size:50px}.hero-shade{background:linear-gradient(90deg,#132e30ed,#142f32b8 50%,#19383633)}.hero-copy{font-size:13px;max-width:340px}.hero-location{right:20px;bottom:22px}.hero-note{display:none}.course-grid{grid-template-columns:repeat(2,1fr);gap:20px}.course-art{height:160px}.course-body{padding:20px}.course-card h3{font-size:17px}.course-card p{font-size:12px}.page-section{padding-top:45px;padding-bottom:45px}.resources{padding:25px;gap:23px}.resource-copy h2{font-size:25px}.resource-art{align-self:stretch;display:flex;align-items:center}.team-grid{grid-template-columns:repeat(4,1fr);gap:23px}.team-card strong{font-size:13px}.team-card>span:last-child{font-size:10px}.lesson-area{padding:0 3%}.lesson-breadcrumb>span{display:none}.theatre{display:flex;flex-direction:column;height:auto;min-height:0;max-height:none}.world-column{height:410px;flex-shrink:0}.story-panel{padding:28px;border-left:0;border-top:1px solid var(--line);min-height:500px}.story-panel h1{font-size:29px;margin-bottom:18px}.story-scroll{min-height:120px;max-height:400px}.story-scroll>p{font-size:15px}.phase-track{max-width:350px}.scene-terms{padding-top:15px;margin-top:15px}.story-next{max-width:500px;margin-left:auto;margin-right:auto}.playback{flex-wrap:wrap;gap:17px}.transport{flex:1}.timeline{max-width:none;flex:1;min-width:170px}.playback-options{width:100%;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px}.chapter-strip{flex-direction:column;align-items:stretch;gap:15px}.chapter-strip-intro{width:auto;display:flex;justify-content:space-between;align-items:center}.chapter-links{flex:none}.chapter-strip-intro>span:last-child{margin:0}.footer{flex-wrap:wrap}.footer>span:nth-child(2){display:none}.section-heading>p{font-size:11px;max-width:260px}.section-heading h2{font-size:29px}}
@media(max-width:520px){.masthead{padding:0 5%;height:74px;gap:10px}.brand{font-size:15px;gap:8px;letter-spacing:-.7px}.brand-icon{width:32px;height:35px;border-radius:8px}.brand-icon svg{width:25px}.brand-edition{font-size:6px;letter-spacing:1px}.header-right{gap:13px}.nav-button{font-size:10px}.nav-button span{display:none}.hero{height:600px}.hero h1{font-size:43px;letter-spacing:-1.9px;line-height:1.15}.hero-content{padding:42px 7%}.hero-eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:26px}.hero-image{background-position:60% center}.hero-shade{background:linear-gradient(90deg,#152c2eed,#142f32c7 65%,#19383655)}.hero-copy{font-size:13px;max-width:290px;line-height:1.9;margin-bottom:25px}.hero-meta{gap:13px;margin-top:29px;font-size:9px;flex-wrap:wrap}.hero-meta span{padding-right:13px}.hero-meta strong{font-size:14px}.hero-location{left:7%;right:auto;bottom:25px;padding:8px 12px;font-size:7px}.hero-location>span:last-child{font-size:9px}.section-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:24px}.section-heading h2{font-size:28px}.section-heading>p{font-size:12px;max-width:none}.section-heading>p br{display:none}.page-section{padding-left:6%;padding-right:6%;padding-top:37px;padding-bottom:37px}.course-grid{gap:13px}.course-art{height:116px}.course-number{font-size:8px;left:9px;top:9px}.course-body{padding:13px}.course-card h3{font-size:13px;line-height:1.4;letter-spacing:-.3px}.course-card p{font-size:10px;line-height:1.7;margin-bottom:13px}.course-card-footer{font-size:9px}.resources{max-width:88%;padding:23px;grid-template-columns:1fr;gap:23px}.resource-art{height:170px;width:100%;justify-content:center}.resource-art svg{height:200px;width:300px;flex-shrink:0}.resource-copy h2{font-size:27px}.team-grid{grid-template-columns:repeat(4,1fr);gap:18px 10px}.team-card strong{font-size:11px;margin-top:8px}.team-card>span:last-child{font-size:8px}.portrait{border-radius:6px}.footer{padding:22px 0;gap:10px}.footer-brand{font-size:11px}.footer .text-button{font-size:9px}.lesson-breadcrumb .text-button{font-size:10px}.world-column{height:325px}.world-tag{left:14px;top:16px;font-size:7px;padding:5px 7px}.scene-motion{right:12px;top:16px;font-size:8px;padding:5px 7px}.scene-caption{bottom:15px;left:14px;right:14px;padding:12px 15px}.scene-caption p{font-size:11px}.scene-caption .eyebrow{font-size:7px}.story-panel{padding:24px 22px;min-height:520px}.story-panel h1{font-size:26px;letter-spacing:-.7px}.story-kicker{font-size:7px;margin-bottom:18px}.story-scroll>p{font-size:14px}.phase-track{margin-bottom:18px}.playback{padding:18px;gap:13px}.transport{width:100%;flex-basis:100%}.timeline{flex-basis:100%;padding:8px 0}.playback-options{font-size:9px}.chapter-links{gap:15px}.chapter-link{min-width:78px}.chapter-strip-intro>span:last-child{font-size:9px}.chapter-grid{grid-template-columns:1fr}dialog{width:calc(100% - 20px);padding:23px;max-height:92vh}.dialog-head h2{font-size:27px}.closing h1{font-size:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The voice controls remain available while the learner reads or observes. */
@media(min-width:521px){.hero-location{top:28px;bottom:auto}}
.in-story .playback{position:sticky;bottom:10px;z-index:8;box-shadow:0 7px 28px #183b2820}
@media(max-width:850px){.in-story .playback{bottom:8px;padding:12px 17px;gap:8px}.in-story .playback-options{padding-top:8px}.in-story .timeline{padding:2px 0}}

/* Text language navigation and French reading layout */
.masthead .header-right { margin-left:auto; }
.language-switch {
  display:inline-flex; flex:none; gap:2px; padding:3px;
  border:1px solid var(--line); border-radius:24px;
  font-size:12px; font-weight:700; line-height:1.2;
}
.language-switch a { padding:8px 10px; border-radius:18px; text-decoration:none; }
.language-switch a[aria-current="page"] { background:var(--green); color:#fff; }
.language-switch a:not([aria-current]):hover { background:#e9efe7; }
html[lang="fr"] .world-unavailable .world:after { content:'Explore la scène à travers le récit'; }
html[lang="fr"] .audio-status { min-width:0; }
@media (max-width:680px) {
  .masthead {
    height:auto; padding:12px 5% 7px;
    display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 10px;
  }
  .masthead .header-right { grid-row:2; grid-column:1 / -1; margin-left:0; gap:21px; }
  .language-switch { grid-row:1; grid-column:2; font-size:11px; }
  .language-switch a { padding:7px 8px; }
  html[lang="fr"] .hero-note { display:inline; }
  html[lang="fr"] .hero-actions { flex-wrap:wrap; gap:10px 14px; }
  html[lang="fr"] .hero-note br { display:none; }
}
@media (max-width:365px) {
  .brand { font-size:14px; }
  .brand-edition { letter-spacing:.7px; }
  .language-switch a { padding:6px; }
  html[lang="fr"] .hero h1 { font-size:37px; }
}

