/* Light studio treatment. Layout, chapter heights and animation timings stay in the original files. */
body{background:#edf2f8;color:#172b46;color-scheme:light}
.bar{background:linear-gradient(#f7faffed,#e9f0f8dc);border-bottom-color:#9baec640;color:#172b46}
.pill{border-color:#8ca5c1;background:#f6faff90}
.stage,.scroll-chapters,.chapter-stage,.chapter-frame{background:#cbd8e7}
.live-studio .hero-render::after{background:linear-gradient(90deg,#eaf1f9eb 0%,#eaf1f98c 29%,#eaf1f912 51%,transparent 72%)}
.live-studio.learning .hero-render::after{background:linear-gradient(90deg,#edf3faf5 0%,#edf3fae0 31%,#edf3fa8c 50%,#edf3fa10 73%,transparent 88%)}
.headline{color:#142944}
.headline h1 span,.headline h2 span{color:#396389}
.headline p{color:#435d78}
.kicker,.facts .kicker{color:#1962bd}
.roundlink b{border-color:#6c87a8}
.rail button{color:#4b6380}
.rail button.active{color:#0e3669}
.rail i{background:#849ab4}
.rail button.active i{background:#1769ed}
.scroll,.chaptercount,.film-notice,.studio-status{color:#405a78}
.bottomline{background:#45658640}
.bottomline span{background:#1769ed}
.callout{color:#15395b}
.callout b{background:#2675b8}
.callout span{border-color:#557eaa}
.status{color:#405979;mix-blend-mode:normal;background:#edf3fad9;padding:5px 9px;border-radius:4px}
.mode{color:#264b75;background:#f0f6fae8;border-color:#94abc4}
.chapter-lessons>section{color:#172b46}
.chapter-lessons :is(p,li),.chapter-lessons .facts-top p,.chapter-lessons .coverage-head p,.chapter-lessons .coverage-bottom p,.chapter-lessons .recommendation{color:#435c76}
.chapter-lessons :is(h2,h3,h4){color:#142944}
.chapter-lessons :is(summary,.inline-link),.story-source a,.thickness-lab output,.install-steps span{color:#155caa}
.install-steps a,.install-steps button{background:#f1f6fbea;border-color:#9fb5ce;color:#244f7b}
.install-steps button[aria-pressed="true"]{background:#245fb4;color:#fff;border-color:#245fb4}
.chapter-lessons .story-reading article,.chapter-lessons .install-panel,.story-source>div,.finish-chapter-heading,.windshield-lesson .film-detail,.windshield-lesson .film-choice-check,.interior-reference .interior-topic,.interior-model-status{background:#f4f8fcea;border-color:#97aec54d;color:#172b46}
.finish-chapter-heading{border-top-color:#2674cf}
.windshield-lesson .film-detail p,.interior-reference p,.interior-reference li,.film-detail p,.finish-result p{color:#435c76}
.chapter-lessons .tabs button{color:#31577d;background:#edf4facc;border-color:#8fa8c4}
.chapter-lessons .tabs button.active{background:#1769ed;border-color:#1769ed;color:#fff}
.chapter-lessons .spot-card{color:#172b46;background:#edf3fae8;border-radius:8px;padding:15px}
.chapter-lessons .spot-card :is(p,small){color:#435c76}
.chapter-lessons .spot-card .num{color:#1962bd}
.thickness-stack>div{background:#d7e2ef;color:#183d66}
#film-cross-section{background:#3579b7;color:#fff}
footer{background:#e4ecf6;color:#45607d}
/* Keep text readable over the dark interior without hiding the cabin on the right. */
.live-studio.interior-active.learning .hero-render::after{background:linear-gradient(90deg,#edf3faf7 0%,#edf3faed 30%,#edf3fa9c 52%,transparent 78%)}
@media(max-width:700px){
 .live-studio .hero-render::after{background:linear-gradient(#edf3faf2 0%,#edf3fa99 27%,transparent 57%,#e2ebf470 100%)}
 .live-studio.learning .hero-render::after,.live-studio.interior-active.learning .hero-render::after{background:linear-gradient(90deg,#edf3faf2,#edf3faca 68%,#edf3fa99)}
}

/* Reading surfaces: one translucent layer, never stacked opaque sheets. */
.live-studio.learning .hero-render::after,
.live-studio.interior-active.learning .hero-render::after {
  background:linear-gradient(90deg,#edf3fab8 0%,#edf3fa78 32%,#edf3fa24 53%,transparent 76%);
}
.chapter-lessons .story-source>div,
.chapter-lessons .story-reading>div {background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none}
.chapter-lessons .story-reading article,
.chapter-lessons .finish-chapter-heading {background:rgba(247,250,255,.48);border-color:#8ba8ca55;backdrop-filter:none}
.chapter-lessons #installation,
.chapter-lessons #aftercare {background:transparent;color:#172b46}
.chapter-lessons :is(#installation,#aftercare) .kicker {
 color:#1b57a4;font-weight:750;letter-spacing:.2em;
 display:flex;align-items:center;gap:14px;
}
.chapter-lessons :is(#installation,#aftercare) .kicker::before {
 content:"";width:32px;height:3px;flex:none;background:#3876df;border-radius:3px;
}
.chapter-lessons :is(#installation,#aftercare) h2 {
 color:#142944;letter-spacing:-.045em;font-weight:750;text-wrap:balance;
 text-shadow:0 2px 20px #f4f8ff80;
}
.chapter-lessons :is(#installation,#aftercare) :is(h3,h4) {color:#163b65;letter-spacing:-.02em}
.chapter-lessons :is(#installation,#aftercare) :is(p,li) {color:#294764}
.chapter-lessons :is(#installation,#aftercare) .install-panel,
.chapter-lessons :is(#installation,#aftercare) .story-reading article {
 background:linear-gradient(110deg,rgba(245,250,255,.62),rgba(233,243,255,.30));
 border:1px solid #789dcc55;border-left:3px solid #3979d8;
 box-shadow:0 12px 32px #28456908;backdrop-filter:none;
}
.chapter-lessons :is(#installation,#aftercare) .install-steps :is(a,button) {
 background:#eef6ff85;border-color:#7b9fc66b;color:#234c7d;
 box-shadow:inset 0 2px 0 #ffffff80;
}
.chapter-lessons :is(#installation,#aftercare) .install-steps :is(a,button):hover {
 background:#dcecffb3;border-color:#3876df;
}
.chapter-lessons :is(#installation,#aftercare) a:focus-visible {outline:3px solid #2869cc;outline-offset:4px}
@media(max-width:700px){
 .live-studio.learning .hero-render::after,
 .live-studio.interior-active.learning .hero-render::after {
  background:linear-gradient(90deg,#edf3fac9,#edf3fa85 68%,#edf3fa45);
 }
}
/* Interior reading area: clean type over a localized fade, clear model at right. */
.live-studio.interior-active.learning .hero-render::after {
  background:linear-gradient(90deg,rgba(8,21,38,.94) 0%,rgba(8,21,38,.88) 26%,rgba(8,21,38,.64) 42%,rgba(8,21,38,.15) 58%,transparent 72%);
}
.chapter-lessons #interior-ppf :is(p,li),
.chapter-lessons #interior-ppf .interior-reference :is(p,li) {
  color:#eef5ff;font-weight:400;text-shadow:none;max-width:48ch;
}
.chapter-lessons #interior-ppf :is(h2,h3,h4) {
  color:#fff;text-shadow:none;max-width:22ch;
}
.chapter-lessons #interior-ppf :is(.kicker,summary,a) {
  color:#add3ff;font-weight:650;text-shadow:none;
}
.chapter-lessons #interior-ppf .interior-reference {max-width:42rem}
.chapter-lessons #interior-ppf .interior-topic {
  background:rgba(13,33,55,.62);border-color:#b2d4ff45;
}
.chapter-lessons #interior-ppf a {text-decoration-thickness:1px;text-underline-offset:3px}
@media(max-width:700px){
 .live-studio.interior-active.learning .hero-render::after {
  background:linear-gradient(90deg,rgba(8,21,38,.91),rgba(8,21,38,.78) 58%,rgba(8,21,38,.38));
 }
}
/* Navy learning library, before Choose With Confidence. */
.outro .learning-library {
  background:#19294f;
  padding:clamp(24px,4vw,56px);
  border:1px solid #41649b;
  border-radius:18px;
  color:#fff;
}
.outro .learning-library > div {background:transparent;border:0;padding:0}
.outro .learning-library :is(h2,h3) {color:#fff}
.outro .learning-library > h3,
.outro .learning-library .eyebrow {color:#a9cdff}
.outro .learning-library p {color:#d4e1f3}
.outro .learning-library .learning-card {
  background:#243a62;border-color:#6386b65c;color:#fff;
}
.outro .learning-library .learning-card h3 {color:#fff}
.outro .learning-library .learning-card p {color:#d4e1f3}
.outro .learning-library .learning-card span {color:#a9cdff}
.outro .learning-library .learning-card:hover {background:#2e4775;border-color:#8ab8ff}
.outro .learning-library .learning-card:focus-visible {outline-color:#a9cdff}
/* Continue the navy surface through the full section 10. */
.outro#find {background:#19294f;color:#fff}
.outro#find :is(h2,h3) {color:#fff}
.outro#find p {color:#d4e1f3}
.outro#find .kicker {color:#a9cdff!important}
.outro#find .checklist {color:#e4edfa;border-color:#7794bd55}
.outro#find .checklist>div {border-color:#7794bd55}
.outro#find .checklist span {color:#a9cdff}
.outro#find .action {background:#4976e3;color:#fff;border-color:#729cf0}
.outro#find .learning-library {background:transparent;border:0;border-bottom:1px solid #7794bd55;border-radius:0;padding:0 0 48px}

/* Compact hotspot descriptions keep the vehicle in view. */
.chapter-lessons .spot-card{left:2%;top:auto;bottom:3%;width:220px;max-width:38%;box-sizing:border-box;padding:12px 14px;border-radius:8px}
.chapter-lessons .spot-card .num{font-size:9px;letter-spacing:1.5px}
.chapter-lessons .spot-card h3{font-size:20px;line-height:1.15;letter-spacing:-.5px;margin:8px 0}
.chapter-lessons .spot-card h3 br{display:none}
.chapter-lessons .spot-card p{font-size:12px;line-height:1.45;margin:8px 0}
.chapter-lessons .spot-card small{display:block;font-size:8px;line-height:1.3;margin-top:10px}
@media(max-width:760px){
 .chapter-lessons .spot-card{left:5%;top:55%;bottom:auto;width:90%;max-width:none;padding:12px 14px}
 .chapter-lessons .spot-card h3{font-size:19px;margin:6px 0}
 .chapter-lessons .spot-card p{font-size:12px;margin:6px 0}
 .chapter-lessons .spot-card small{display:none}
}

/* Keep the coverage controls beside, rather than across, the Porsche. */
.chapter-lessons #coverage{width:48%;margin-left:2%;margin-right:auto}
.chapter-lessons #coverage .coverage-head{padding:0 0 20px}
.chapter-lessons #coverage h2{font-size:clamp(28px,2.6vw,40px);line-height:1.08}
.chapter-lessons #coverage .coverage-head p{font-size:13px;line-height:1.5}
.chapter-lessons #coverage .coverage-visual{aspect-ratio:1672/941;overflow:hidden}
.chapter-lessons #coverage .spot-card{position:relative;left:auto;top:auto;bottom:auto;width:100%;max-width:none;margin:10px 0 14px}
.chapter-lessons #coverage .coverage-bottom{display:block;padding:0 0 36px}
.chapter-lessons #coverage .coverage-bottom>p{margin-top:14px}
.chapter-lessons #coverage .tabs{gap:6px}
.chapter-lessons #coverage .tabs button{padding:9px 12px;font-size:11px}
.chapter-lessons #coverage .spot{width:30px;height:30px;font-size:20px}
.chapter-lessons #coverage .spot1{left:46%;top:40%}
.chapter-lessons #coverage .spot2{left:44%;top:61%}
.chapter-lessons #coverage .spot3{left:89%;top:33%}
.chapter-lessons #coverage .spot4{left:88%;top:57%}
@media(max-width:760px){
 .chapter-lessons #coverage{width:auto;margin-inline:6%}
 .chapter-lessons #coverage .spot{width:34px;height:34px}
}
