/* One legible lesson treatment: dark navigation and dark teaching slides.
   Explicit native control palettes prevent OS dropdowns inheriting white text. */
.topic-load-status{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:16px;background:#111f30;color:#edf3f8;line-height:1.5}
.topic-load-status[data-state="error"]{border-top:2px solid #e6b75c}
.topic-load-status button,.topic-load-status a{padding:9px 12px;border:1px solid #6d859f;border-radius:8px;background:#172538;color:#edf3f8;font:inherit;text-decoration:none;cursor:pointer}
.lesson-reader,.ln-panel,.lesson-presentation-shell{color-scheme:dark}
.lesson-presentation-primary .lesson-presentation-shell .phase3-deck-side .phase3-kicker{color:#93c5fd}
.lesson-reader :is(select,option,optgroup),.ln-panel :is(select,option,optgroup),.lesson-presentation-shell :is(select,option,optgroup){background:#172538;color:#f1f5f9;color-scheme:dark}
.lesson-reader :is(input,textarea),.ln-panel input{background:#0f172a;color:#f1f5f9;color-scheme:dark;border:1px solid #70849e}
.lesson-reader :is(input,textarea)::placeholder,.ln-panel input::placeholder{color:#b5c4d8;opacity:1}
.lesson-presentation-primary .lesson-presentation-shell .deep-slide{--slide-ink:#f1f5f9;--slide-muted:#cfdaea;--slide-paper:#101f33;--slide-line:#415a78;--slide-accent:#93c5fd;--slide-accent-soft:#203956;color:#f1f5f9;color-scheme:dark;line-height:1.6;overflow-wrap:break-word;background:#101f33!important;border-color:#415a78}
.lesson-presentation-primary .lesson-presentation-shell .phase3-main{height:100%;min-height:0}
.lesson-presentation-primary .lesson-presentation-shell .deep-slide{height:100%!important;max-height:100%!important;aspect-ratio:auto!important;min-height:0;overflow:auto}
/* These palette overrides must survive older, lazily appended slide styles. */
.lesson-presentation-primary .lesson-presentation-shell .deep-slide :is(h1,h2,h3,h4,p,strong,b,li){color:#f1f5f9!important}
.lesson-presentation-primary .lesson-presentation-shell .deep-slide ul{font-size:clamp(1rem,1.45vw,1.3rem)!important;line-height:1.55!important}
.lesson-presentation-primary .lesson-presentation-shell .deep-slide .phase3-kicker{color:#93c5fd!important;background:transparent!important}
.lesson-presentation-primary .lesson-presentation-shell .deep-slide .phase3-equation{background:#203956!important;color:#dbeafe!important;border:1px solid #415a78}
.lesson-presentation-primary .lesson-presentation-shell .deep-slide :is(select,option,optgroup,input,textarea){background:#172538;color:#f1f5f9;color-scheme:dark;border:1px solid #70849e}
.lesson-presentation-primary .lesson-presentation-shell .deep-slide :is(input,textarea)::placeholder{color:#b5c4d8;opacity:1}
.lesson-presentation-primary .lesson-presentation-shell .ls-figure{background:#172b43!important;border-color:#415a78;display:block;visibility:visible;opacity:1;flex-shrink:0}
.lesson-presentation-primary .lesson-presentation-shell .ls-figure svg{display:block;width:100%;height:auto;min-height:180px;max-height:320px;aspect-ratio:25/16;visibility:visible;opacity:1}
.lesson-presentation-primary .lesson-presentation-shell .ls-figure text{fill:#e2e8f0}
.lesson-presentation-primary .lesson-presentation-shell .ls-figure :is(path,ellipse,rect,.orbit){stroke:#a9bdd4}
.lesson-presentation-primary .lesson-presentation-shell .ls-figure :is(.curve,.arrow){stroke:#80c9ff}
.lesson-presentation-primary .lesson-presentation-shell .ls-figure :is(marker path,circle,rect:not(.box)){fill:#80c9ff;stroke:none}
.lesson-presentation-primary .lesson-presentation-shell .ls-figure .box{fill:#203956;stroke:#80c9ff}
.lesson-presentation-primary .lesson-presentation-shell .ls-figure .orbit{fill:none;stroke:#a9bdd4}
.lesson-presentation-primary .lesson-presentation-shell .ls-figure .error{stroke:#fbbf77}
.lesson-presentation-primary .lesson-presentation-shell .ls-figure figcaption{color:#c3d2e5}
@media print{
 .lesson-presentation-primary .lesson-presentation-shell .deep-slide{background:white!important;color:#17212b;--slide-ink:#17212b;height:auto!important;max-height:none!important;overflow:visible}
 .lesson-presentation-primary .lesson-presentation-shell .deep-slide :is(h1,h2,h3,h4,p,strong,b,li){color:#17212b!important}
 .lesson-presentation-primary .lesson-presentation-shell .deep-slide .phase3-kicker{color:#24558c!important}
}
.lesson-reader-section :is(p,li){max-width:76ch;line-height:1.7}
.lesson-reader :focus-visible,.ln-panel :focus-visible,.topic-load-status :focus-visible{outline:3px solid #80e0cc;outline-offset:3px}
@media(max-width:600px){
 .lesson-reader-top h2{line-height:1.25}
 .lesson-reader-actions button,.lesson-reader-nav button,.ln-panel button,.lesson-reader-footer button{min-height:44px}
 .ln-copy strong{white-space:normal;line-height:1.4}
 .lesson-reader :is(input,select,textarea),.ln-panel :is(input,select){font-size:16px}
 .lesson-presentation-primary .lesson-presentation-shell .deep-slide{min-height:0;line-height:1.6}
 .lesson-presentation-primary .lesson-presentation-shell .ls-with-visual .ls-figure{grid-row:1}
}
