/* Blue chapters, continuous reading. Loaded after the legacy section styles. */
:root {
  --chapter-pale: #edf4ff;
  --chapter-blue: #dceaff;
  --rhythm-width: 1248px;
  --rhythm-gutter: clamp(20px, 4vw, 56px);
}

/* A shared surface joins the introduction and its three demonstrations. */
.learning-introduction.wrap, .learning.wrap {
  width: 100%; max-width: none; margin: 0;
  padding-inline: max(var(--rhythm-gutter), calc((100% - var(--rhythm-width)) / 2));
  background: var(--chapter-pale);
}
.learning-introduction .journey-next {
  position: relative; height: auto; min-height: 0;
  display: grid; grid-template-columns: 1.35fr 1fr; align-items: end;
  gap: 20px 72px; padding-block: 80px 40px;
}
.learning-introduction .family-eyebrow { display: none; }
.learning-introduction .journey-next h2 {
  font-size: clamp(38px, 4.4vw, 64px); line-height: 1.08;
  letter-spacing: -.035em; margin: 0;
}
.learning-introduction .journey-title-line { display: inline; }
.learning-introduction .journey-title-last { padding-left: 0; }
.learning-introduction .journey-next-bottom { display: block; padding: 0; }
.learning-introduction .journey-next-bottom p { margin: 0; font-size: 18px; max-width: 42ch; }
.learning-introduction .journey-down { display: none; }
.learning.wrap { padding-top: 0; padding-bottom: 80px; overflow: clip; }
.learning .story-row {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr);
  max-width: none; gap: 64px; margin: 0; padding: 32px 0 0;
  border-top: 1px solid #cadcf1;
}
.learning .story-row.reverse { grid-template-columns: minmax(0, 1.3fr) minmax(0, .82fr); }
.learning .story-copy { max-width: 460px; }
.learning .learning-step { margin-bottom: 18px; gap: 16px; }
.learning .learning-step > span { font-size: 44px; color: #567aa8; }
.learning .story-copy h3 { font-size: clamp(28px, 2.7vw, 39px); }
.learning .story-copy p { font-size: 17px; line-height: 1.65; }
.learning .learning-capture { margin: 0; padding: 12px; background: #cfe2ff; border-radius: 16px; }
.learning .learning-capture-frame { background: #fff; border-radius: 10px; }
.learning .learning-demo { transform: none; }
.learning .learning-connector { height: 56px; margin-block: 16px; }

/* The existing blue gallery is the contrast point between two pale chapters. */
.chapter-feedback.chapter-surface { padding: 80px 0; }
.chapter-feedback .fj-passage { display: none; }
.chapter-feedback .feedback.wrap {
  width: min(var(--rhythm-width), calc(100% - var(--rhythm-gutter) * 2));
  display: block; padding: 0; border: 0;
}
.chapter-feedback .feedback > header {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: end;
  gap: 56px; margin: 0 0 48px;
}
.chapter-feedback .feedback .fb-heading { font-size: clamp(36px, 3.5vw, 50px); margin: 0; }
.chapter-feedback .feedback > header p { margin: 0; max-width: 44ch; font-size: 17px; }
.chapter-feedback .feedback .fb-panel { min-height: 520px; }

/* Parent heading and copy live in the same flow as the real report. */
.parent-perspective.parent-typography { background: var(--chapter-blue); padding: 76px 0; }
.parent-typography .parents.section {
  width: min(var(--rhythm-width), calc(100% - var(--rhythm-gutter) * 2));
  height: auto; min-height: 0; padding: 0; margin: auto;
  background: transparent; overflow: visible; scroll-margin-top: 110px;
}
.parent-typography .parent-copy {
  display: grid !important; grid-template-columns: 1.2fr 1fr;
  align-items: end; gap: 56px; margin: 0 0 32px;
}
.parent-typography .pt-heading { display: block; }
.parent-typography .pt-line {
  position: static; display: block; width: auto; white-space: normal;
  font-size: clamp(38px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -.035em;
}
.parent-typography .pt-targets, .parent-typography .pt-curtain { display: none; }
.parent-perspective.parent-typography .parent-copy > .pt-description {
  position: static; margin: 0; max-width: 44ch; font-size: 17px;
}
.parent-perspective.parent-typography .parents .pv-visual {
  position: relative; inset: auto; width: 100%; max-width: none;
  margin: 0; padding: 0;
}
.parent-typography .pp-report-stage { height: auto; padding: 0; background: transparent; }
.parent-perspective.parent-typography .pv-folder {
  height: auto; border: 0; border-radius: 16px;
  box-shadow: 0 22px 42px -32px #112e6359;
}
.parent-typography .pt-report-head { padding: 22px 28px; border-bottom: 1px solid #dce6f2; }
.parent-typography .pv-paper-meta { color: var(--body); font-size: 12px; }
.parent-perspective.parent-typography .pv-folder-tabs button { min-height: 44px; font-size: 13px; }
.parent-typography .pv-paper { padding: 24px 28px; }
.parent-typography .pv-report-panel { flex: none; }
.parent-typography .pv-report-panel[hidden] { display: none; }
.parent-typography .pv-product-figure { flex: none; height: 340px; }
.parent-typography .pv-product-figure img { object-fit: contain; }
.parent-typography .pv-reading-hint { display: none; }
.parent-typography .pv-screen-caption { margin-top: 18px; font-size: 13px; }
.parent-perspective.parent-typography .pv-visual-caption { position: static; margin-top: 16px; }

/* More room for the real teachers; no extra viewport hold. */
.chapter-courses.chapter-surface { padding: 80px 0; }
.chapter-courses .courses.wrap {
  width: min(var(--rhythm-width), calc(100% - var(--rhythm-gutter) * 2));
  margin: auto; padding: 0;
}
.chapter-courses .course-content { grid-template-columns: minmax(0, .82fr) minmax(0, 1.9fr); gap: 48px; }
.chapter-courses .faculty-carousel { height: 480px; --teacher-blue: var(--blue); }
.courses .school-switch button[aria-pressed=true], .subject-indicator { background: var(--blue); }
.courses .subject-switch button[aria-pressed=true] { color: var(--blue); }

/* Preserve the existing narrow-screen treatment; desktop uses the restored portrait scene. */
@media(max-width:900px){
.family-journey.family-carousel { background: var(--chapter-pale); padding: 76px 0; }
.family-carousel .family-stage {
  width: min(var(--rhythm-width), calc(100% - var(--rhythm-gutter) * 2));
  max-width: var(--rhythm-width); padding: 0;
}
.family-carousel .family-editorial { margin-bottom: 32px; }
.family-carousel .family-card {
  height: auto; min-height: 0; padding: 24px; transform: none;
  background: #fff; overflow: hidden; box-shadow: none;
}
.family-carousel .family-card-two { background: var(--blue); }
.family-carousel .family-person { display: block; margin-bottom: 18px; }
.family-carousel .family-portrait {
  width: calc(100% + 48px); height: 180px; border-radius: 0;
  margin: -24px -24px 20px; background: #cfe2ff;
}
.family-carousel .family-portrait img { object-position: 50% 35%; }
.family-carousel .family-portrait-john img { transform: none; }
.family-carousel .family-card blockquote,
.family-carousel .family-card-two blockquote { font-size: 27px; line-height: 1.2; text-wrap: initial; }
.family-carousel .family-context { margin: 18px 0 22px; font-size: 15px; }
.family-carousel .family-controls {
  position: relative; inset: auto; justify-content: flex-end;
  gap: 12px; opacity: 1; margin-top: 24px;
}
.family-carousel .family-controls button { position: static; transform: none; pointer-events: auto; box-shadow: none; }
.family-carousel .family-footnote { margin-top: 12px; }
}
.sst-faq.section { padding-block: 72px; }
.sst-blog-copy .sst-blog-kicker, .sst-blog-pause { color: #fff; }

@media (max-width: 1000px) {
  .learning-introduction .journey-next { gap: 32px; }
  .learning .story-row, .learning .story-row.reverse { gap: 32px; }
  .learning .story-copy h3 { font-size: 30px; }
  .parent-typography .parent-copy { gap: 32px; }
  .parent-typography .pt-report-head { display: block; }
  .parent-typography .pv-paper-meta { margin-bottom: 12px; }
  .chapter-courses .faculty-carousel { height: 440px; }
}
@media (max-width: 900px) {
  .family-carousel .family-cards { grid-template-columns: 1fr; }
  .family-carousel .family-card { display: grid; grid-template-columns: .8fr 1fr; gap: 0 28px; }
  .family-carousel .family-person { grid-row: 1 / 4; margin: 0; }
  .family-carousel .family-portrait { width: 100%; margin: 0 0 16px; border-radius: 10px; }
}
@media (max-width: 850px) {
  .chapter-feedback .feedback > header { display: block; margin-bottom: 80px; }
  .chapter-feedback .feedback > header p { margin-top: 20px; }
  .chapter-feedback .feedback .fb-panel { min-height: 0; }
  .chapter-feedback .feedback .fb-panel + .fb-panel { margin-top: 72px; }
  .chapter-feedback .feedback .fb-barry { transform: translateX(-50%) scale(.72); transform-origin: center bottom; }
}
@media (max-width: 760px) {
  .learning-introduction .journey-next { display: block; padding-block: 52px 24px; }
  .learning-introduction .journey-next h2 { max-width: 15ch; font-size: 40px; }
  .learning-introduction .journey-next-bottom { margin-top: 24px; }
  .learning-introduction .journey-next-bottom p { font-size: 17px; }
  .learning.wrap { padding-bottom: 52px; }
  .learning .story-row, .learning .story-row.reverse { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .learning .story-copy, .learning .learning-capture { grid-column: auto; grid-row: auto; }
  .learning .learning-step { margin-bottom: 14px; }
  .learning .learning-step > span { font-size: 36px; }
  .learning .learning-connector { height: 32px; margin-block: 14px; }
  .learning .learning-capture { padding: 8px; }
  .chapter-feedback.chapter-surface, .chapter-courses.chapter-surface { padding-block: 52px; }
  .parent-perspective.parent-typography { padding-block: 52px; }
  .parent-typography .parent-copy { display: block !important; margin-bottom: 28px; }
  .parent-typography .pt-line { font-size: 40px; }
  .parent-perspective.parent-typography .parent-copy > .pt-description { margin-top: 20px; font-size: 17px; max-width: none; }
  .parent-typography .pt-report-head { padding: 16px; }
  .parent-typography .pv-folder-tabs { gap: 4px; }
  .parent-perspective.parent-typography .pv-folder-tabs button { font-size: 12px; padding: 8px; white-space: normal; }
  .parent-typography .pv-paper { padding: 20px 16px; }
  .parent-typography .pv-product-figure { height: 240px; overflow: auto; }
  .parent-typography .pv-screenshot-link { width: max(100%, 640px); height: auto; min-height: 100%; }
  .parent-typography .pv-product-figure img { width: 100%; height: auto; }
  .parent-typography .pv-reading-hint { display: block; color: var(--body); font-size: 12px; margin: 14px 0 0; line-height: 1.5; }
  .chapter-courses .course-content { grid-template-columns: 1fr; gap: 24px; }
  .chapter-courses .faculty-carousel { height: 410px; }
  .family-journey.family-carousel { padding-block: 52px; }
  .family-carousel .family-card { display: flex; }
  .family-carousel .family-portrait { width: calc(100% + 48px); margin: -24px -24px 20px; border-radius: 0; height: 190px; }
  .family-carousel .family-person { margin-bottom: 20px; }
  .family-carousel .family-card blockquote { font-size: 27px; }
  .sst-faq.section { padding-block: 52px; }
}
