:root{
  --ink:#1F2A44;
  --body:#3A4661;
  --muted:#6B7387;
  --paper:#FFF8ED;
  --cream:#FBEFDA;
  --coral:#E95F4D;
  --teal:#4F7DFF;
  --sun:#F5BF2A;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  text-rendering:optimizeLegibility;
}
a{color:inherit}
.site-shell{max-width:980px;margin:0 auto;padding:0 22px 56px}
.topbar{
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  padding:18px 0;
}
.brand{
  font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  font-weight:900;text-decoration:none;font-size:18px;
}
.back-link{
  text-decoration:none;font-size:13px;font-weight:800;color:var(--body);
}
.story-header{text-align:center;max-width:680px;margin:40px auto 30px}
.character{
  color:var(--coral);font-size:12px;font-weight:900;
  letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px;
}
h1{
  font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  font-size:clamp(38px,7vw,64px);line-height:1.03;margin-bottom:16px;
}
.deck{font-size:17px;line-height:1.65;color:var(--body)}
.meta{font-size:12px;color:var(--muted);margin-top:14px}
.story-hero{
  display:block;overflow:hidden;border-radius:28px;
  box-shadow:0 14px 36px rgba(31,42,68,.12);
  background:var(--cream);
}
.story-hero img{
  width:100%;height:auto;display:block;
}
.story-layout{
  display:grid;grid-template-columns:minmax(0,1fr) 260px;
  gap:36px;align-items:start;max-width:900px;margin:42px auto 0;
}
.story-text{
  background:#fff;border-radius:24px;padding:34px 36px;
  box-shadow:0 8px 24px rgba(31,42,68,.07);
}
.story-text p{
  font-size:18px;line-height:1.82;color:var(--body);
}
.story-text p+p{margin-top:1.2em}
.story-text .dialogue{color:var(--ink);font-weight:650}
.sidebar{display:grid;gap:18px}
.panel{
  background:var(--cream);border-radius:20px;padding:22px;
}
.panel h2{
  font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  font-size:18px;margin-bottom:12px;
}
.panel ul{padding-left:19px}
.panel li,.panel p{
  font-size:14px;line-height:1.6;color:var(--body);
}
.panel li+li{margin-top:7px}
.next-story{
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  max-width:900px;margin:34px auto 0;background:var(--teal);color:white;
  padding:20px 24px;border-radius:20px;text-decoration:none;font-weight:850;
}
.next-story small{display:block;font-weight:600;opacity:.8;margin-bottom:3px}
.footer{text-align:center;padding:44px 20px 0;color:var(--muted);font-size:13px}
@media(max-width:760px){
  .story-header{margin-top:24px}
  .story-hero{border-radius:20px}
  .story-layout{grid-template-columns:1fr;gap:22px;margin-top:24px}
  .story-text{padding:26px 24px}
  .story-text p{font-size:17px;line-height:1.75}
  .sidebar{grid-template-columns:1fr}
}

.read-along{
  margin:32px auto 36px;
  max-width:900px;
  background:#fff;
  border-radius:20px;
  padding:24px 28px;
  box-shadow:0 8px 24px rgba(31,42,68,.08);
}
.read-along h2{
  font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  font-size:22px;
  margin-bottom:8px;
}
.read-along .audio-intro{
  font-size:14px;
  line-height:1.6;
  color:var(--body);
  margin-bottom:16px;
}
.read-along audio{
  display:block;
  width:100%;
}
.audio-actions{
  margin-top:16px;
}
.download-audio{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--teal);
  color:#fff;
  text-decoration:none;
  padding:10px 18px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
}
.download-audio:hover{
  opacity:.92;
}
.download-audio:focus-visible{
  outline:3px solid rgba(79,125,255,.3);
  outline-offset:3px;
}


  .teacher-nav{flex-direction:column}
}


.teacher-info{
  max-width:900px;
  margin:0 auto 30px;
  padding:20px 22px;
  border-radius:20px;
  background:#E7F4F2;
  border:1px solid rgba(79,125,255,.18);
  text-align:left;
}
.teacher-info h2{
  font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  font-size:20px;
  margin-bottom:7px;
}
.teacher-info p{
  font-size:14px;
  line-height:1.65;
  color:var(--body);
}
.facilitator-pill{
  display:inline-flex;
  align-items:center;
  margin-bottom:18px;
  padding:8px 14px;
  border-radius:999px;
  background:var(--teal);
  color:#fff;
  font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  font-size:13px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.facilitator-guide{
  margin:34px auto 34px;
}
.facilitator-guide > h2{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}


/* Teacher Edition v2 */
.teacher-mode-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:14px;
  padding:8px 14px;
  border-radius:999px;
  background:var(--teal);
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.teacher-info{
  max-width:900px;
  margin:0 auto 30px;
  padding:22px 24px;
  border:1px solid rgba(79,125,255,.18);
  border-radius:22px;
  background:#E7F4F2;
  box-shadow:0 7px 20px rgba(31,42,68,.05);
}
.teacher-info h2{
  font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  font-size:20px;
  margin-bottom:7px;
}
.teacher-info p{
  font-size:14px;
  line-height:1.65;
  color:var(--body);
}
.teacher-info p+p{margin-top:6px}
.facilitator-guide{
  max-width:900px;
  margin:34px auto 0;
  padding:30px 32px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 8px 24px rgba(31,42,68,.07);
}
.facilitator-pill{
  display:inline-flex;
  align-items:center;
  margin-bottom:20px;
  padding:8px 14px;
  border-radius:999px;
  background:var(--teal);
  color:#fff;
  font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  font-size:13px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.guide-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px 28px;
}
.guide-section{
  min-width:0;
}
.guide-section.full{
  grid-column:1 / -1;
}
.guide-section h3{
  font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  font-size:16px;
  margin-bottom:7px;
}
.guide-section p,.guide-section li{
  font-size:15px;
  line-height:1.7;
  color:var(--body);
}
.guide-section ol,.guide-section ul{
  padding-left:21px;
}
.guide-section li+li{margin-top:7px}
.story-section-label{
  max-width:900px;
  margin:36px auto -22px;
  font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  font-size:24px;
}
.reading-note{
  margin:1.35em 0;
  padding:14px 16px;
  border-left:4px solid var(--sun);
  border-radius:0 12px 12px 0;
  background:#FFF7D8;
  color:#5D542E;
  font-size:14px;
  line-height:1.6;
  font-style:italic;
}
.pause-point{
  display:flex;
  align-items:center;
  gap:12px;
  margin:1.7em 0;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.pause-point::before,.pause-point::after{
  content:"";
  height:1px;
  flex:1;
  background:rgba(31,42,68,.16);
}
.teacher-story-nav{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  max-width:900px;
  margin:34px auto 0;
}
.teacher-story-nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:70px;
  padding:16px 18px;
  border-radius:18px;
  background:var(--teal);
  color:#fff;
  text-decoration:none;
  font-weight:850;
}
.teacher-story-nav small{
  display:block;
  margin-bottom:3px;
  font-weight:650;
  opacity:.8;
}
.teacher-story-nav .library-link{
  grid-column:1 / -1;
  justify-content:center;
  min-height:auto;
  background:var(--cream);
  color:var(--ink);
}
@media(max-width:760px){
  .teacher-info{padding:19px 20px}
  .facilitator-guide{padding:25px 23px}
  .guide-grid{grid-template-columns:1fr}
  .guide-section.full{grid-column:auto}
  .teacher-story-nav{grid-template-columns:1fr}
  .teacher-story-nav .library-link{grid-column:auto}
}


/* Teacher Edition v3 */
.facilitator-steps{display:grid;gap:0}
.facilitator-step{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;padding-bottom:26px}
.facilitator-step:last-child{padding-bottom:0}
.facilitator-step:not(:last-child)::after{content:"";position:absolute;left:21px;top:44px;bottom:0;width:2px;background:rgba(79,125,255,.18)}
.step-number{position:relative;z-index:1;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--teal);color:#fff;font-size:17px;font-weight:900}
.step-content{padding-top:4px}
.step-content h3{font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;font-size:17px;margin-bottom:8px}
.step-content p,.step-content li{font-size:15px;line-height:1.7;color:var(--body)}
.step-content p+p{margin-top:8px}
.prompt-cue{margin-top:12px;padding:13px 14px;border-radius:14px;background:var(--cream)}
.after-story{max-width:900px;margin:28px auto 0;display:grid;gap:18px}
.after-story .panel{background:#fff;box-shadow:0 8px 24px rgba(31,42,68,.07)}
.after-story .think-panel{border-left:5px solid var(--teal)}
.after-story .vocab-panel{border-left:5px solid var(--sun)}
.story-layout{display:block;max-width:900px;margin:42px auto 0}
.story-layout .sidebar{display:none}
@media(max-width:760px){
  .facilitator-step{grid-template-columns:40px minmax(0,1fr);gap:13px}
  .step-number{width:38px;height:38px;font-size:16px}
  .facilitator-step:not(:last-child)::after{left:18px;top:40px}
}
