/* R25 experience-focused additions: lesson-specific scenes, not generic decoration */
.hero{margin-bottom:15px;padding-top:27px;padding-bottom:27px}
.hero .eyebrow{color:#438370;font-size:11px;letter-spacing:.16em}
.hero h1{margin:12px 0 8px}
.chapter{margin:16px 0}
.chapter>.step{display:block;letter-spacing:.09em}
.story-scene{background:linear-gradient(145deg,#f0f7f4,#e4f1ea);border:1px solid #c9dfd1;border-radius:20px;padding:16px 12px;margin:17px 0 11px}
.story-scene svg{display:block;width:100%;height:auto;max-width:560px;margin:auto}
.scene-kicker{font-size:12px!important;line-height:1.6!important;letter-spacing:.04em;font-weight:850;color:#3d8370!important;margin:0 4px 8px!important}
.story-scene .scene-caption{font-size:12px;color:#507668;line-height:1.7;margin:4px 4px 0}
.scene-nudge{font-size:15px;font-weight:750;color:#2f735b;background:#e8f4e8;border-radius:10px;padding:11px 14px;margin-top:11px}
.chapter.explore{border-color:#bddac8;box-shadow:0 8px 26px #35836613}
.chapter.explore>.step{color:#be8441}
.chapter.explore .diagram{background:#eaf5f1;border:1.5px solid #c3ddcf}
.chapter.explore h2{margin-bottom:12px}
.story-panel{background:#e8f3ed;border:1px solid #c6dfd1;padding:13px 15px;border-radius:15px;margin:13px 0}
.story-panel strong{font-size:15px}
.story-panel p{margin:6px 0;font-size:14px}
.discovery-note{background:#fff2dd;border:1px solid #e6cfa6;border-left:5px solid #bb8742;border-radius:14px;margin:16px 0;padding:13px 15px;font-weight:750;color:#74542f}
.discovery-note strong{color:#76502d}
.scene-eq{display:flex;gap:9px;align-items:center;justify-content:center;margin:15px auto;flex-wrap:wrap}
.scene-eq span{border:1px solid #b4d7c4;border-radius:12px;background:#fffefa;padding:7px 11px;font-weight:800;color:#387360}
.scene-eq b{color:#b07a36}
.graph-zoom-caption{background:#fff4df;border-left:4px solid #c9924f;border-radius:8px;padding:10px 12px;color:#674f32;font-size:13px;line-height:1.8}
.diagram-caption{max-width:620px;margin-left:auto!important;margin-right:auto!important}
.demo-legend{display:flex;flex-wrap:wrap;gap:9px;margin-top:9px}
.demo-legend span{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#467163;font-weight:700}
.demo-legend i{width:10px;height:10px;border-radius:50%;display:inline-block;background:var(--legend-color)}
.chapter:nth-of-type(odd):not(.mystery):not(.quiz){border-color:#d4e5dc}
@media(max-width:390px){
 .hero{padding:23px 19px}
 .story-scene{padding:10px 7px}
 .story-panel{padding:11px}
 .chapter.explore .diagram{padding:6px 2px}
 .graph-zoom-caption{font-size:12px}
 .chapter h2{font-size:clamp(23px,6vw,28px)}
}
@media(prefers-reduced-motion:no-preference){.scene-pulse{animation:scene-fade 2.8s ease-in-out infinite alternate}@keyframes scene-fade{from{opacity:.54}to{opacity:1}}}

/* R25 VISUAL LABEL FIX: readable static story text on 320px displays */
.story-scene svg text{font-size:16px}
@media(max-width:390px){.story-scene svg text{font-size:17px}}
