/*
 * Compact chapter layout.
 * Related content stays intact, but repeated section intros and oversized card
 * heights are compressed into eight visual chapters.
 */

.section-pad {
  padding-top: clamp(78px, 7vw, 112px);
  padding-bottom: clamp(78px, 7vw, 112px);
}

.chapter-stack {
  position: relative;
  width: 100%;
}

.chapter-stack > .section-pad {
  padding-top: clamp(48px, 4.5vw, 72px);
  padding-bottom: clamp(48px, 4.5vw, 72px);
}

.chapter-stack > .section-pad:first-child {
  padding-top: clamp(84px, 7vw, 112px);
}

.chapter-stack > .section-pad:last-child {
  padding-bottom: clamp(84px, 7vw, 112px);
}

.chapter-stack > .section-pad + .section-pad {
  border-top-width: 1px;
}

.chapter-stack > .section-pad:not(:first-child) .section-heading-row,
.chapter-stack > .section-pad:not(:first-child) .section-heading {
  margin-bottom: clamp(30px, 3vw, 44px);
}

.chapter-stack > .section-pad:not(:first-child) .section-heading-main > h2 {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.16;
}

.chapter-stack > .section-pad:not(:first-child) .section-label {
  font-size: 12px;
}

/* 01 / Concept */
.skill-card {
  min-height: 420px;
  padding: 24px;
}

.skill-en {
  margin-bottom: 50px;
}

.skill-card h3 {
  font-size: clamp(29px, 2.6vw, 42px);
}

.skill-card ul {
  margin-top: 24px;
}

.formula {
  margin-top: 36px;
  padding-block: 20px;
}

/* 02 / How it works */
.flow-intro {
  margin-bottom: 42px;
}

.flow-track article {
  padding: 24px;
}

.flow-track h3 {
  margin-top: 22px;
}

.flow-track ul {
  margin-top: 18px;
}

.flow-footnote {
  margin-top: 32px;
}

.support-heading,
.capacity-heading,
.space-heading {
  margin-bottom: 38px;
}

.support-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.support-list article {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.support-list article:hover {
  padding: 22px;
}

.support-list h3 {
  font-size: clamp(19px, 1.6vw, 24px);
}

.capacity-card,
.capacity-card-dark,
.capacity-card-lined,
.capacity-card-open {
  min-height: 300px;
  padding: 22px;
}

.capacity-card > strong {
  margin-top: 28px;
  font-size: clamp(58px, 6vw, 92px);
}

.capacity-card h3 {
  margin-top: 28px;
}

.capacity-note {
  margin-top: 32px;
}

.feedback-board {
  max-width: none;
}

/* 03 / Mentor and works */
.mentor-works-chapter > .mentor {
  padding-top: 0;
  padding-bottom: 0;
}

.mentor-heading {
  padding-top: clamp(84px, 7vw, 112px);
  padding-bottom: clamp(40px, 4vw, 60px);
}

.mentor-card {
  min-height: 650px;
}

.mentor-copy {
  padding-bottom: clamp(64px, 6vw, 92px);
}

.mentor-works-chapter > .works {
  padding-top: clamp(54px, 5vw, 76px);
}

.work-card {
  min-height: 380px;
}

/* 04 / Learning and outcomes */
.curriculum-grid article {
  min-height: 270px;
  padding: 24px;
}

.curriculum-grid h3 {
  margin: 24px 0 16px;
}

.output-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.output-card,
.output-card:nth-child(n) {
  min-height: 128px;
  padding: 20px;
}

.output-card:nth-child(4) {
  grid-column: 1 / 2;
}

.output-card:nth-child(5) {
  grid-column: 2 / 4;
}

.small-work-copy ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 28px;
  border-left: 1px solid var(--line-dark);
}

.small-work-copy li {
  grid-template-columns: 70px minmax(0, 1fr);
  padding: 12px 14px;
  border-right: 1px solid var(--line-dark);
}

.career-grid article,
.career-grid .career-dark {
  min-height: 210px;
  padding: 24px;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.timeline-list article {
  display: block;
  padding: 24px;
  border-top: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-list h3 {
  margin-top: 34px;
}

.day-schedule div {
  min-height: 205px;
  padding: 18px;
}

.day-schedule h3 {
  margin-top: 46px;
}

.day-note {
  margin-top: 30px;
}

.learning-chapter > .voices {
  padding-right: 0;
  padding-left: 0;
}

.voice-card,
.voice-card-dark {
  min-height: 300px;
}

.voice-card blockquote {
  margin-block: 30px;
}

/* 05 / Price and membership */
.pricing-heading,
.flexible-heading {
  margin-bottom: 40px;
}

.price-card,
.price-card-featured,
.price-card-support {
  padding: 26px;
}

.flexible-grid article,
.flexible-grid article:first-child {
  min-height: 240px;
  padding: 26px;
}

.flexible-grid h3 {
  margin-top: 46px;
}

/* 06 / Values and relationship */
.promise-columns article {
  padding: 24px;
}

.relationship-grid {
  gap: clamp(42px, 6vw, 80px);
}

.community-line {
  margin-top: 48px;
}

/* 07 / FAQ */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  border-left: 1px solid var(--line-dark);
}

.faq-list details {
  padding-inline: 20px;
  border-right: 1px solid var(--line-dark);
}

.faq-list summary {
  padding-block: 18px;
}

/* 08 / Next step */
.message-grid {
  margin-bottom: 46px;
}

.message-closing {
  margin-top: 64px;
}

.next-step-chapter > .entry {
  padding-top: clamp(60px, 5vw, 80px);
  padding-bottom: clamp(72px, 6vw, 96px);
}

@media (max-width: 1200px) and (min-width: 761px) {
  .skill-grid,
  .capacity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-card {
    min-height: 390px;
    border-bottom: 1px solid var(--line);
  }

  .capacity-card,
  .capacity-card-dark,
  .capacity-card-lined,
  .capacity-card-open {
    min-height: 270px;
  }
}

@media (max-width: 1000px) {
  .section-pad,
  .chapter-stack > .section-pad,
  .chapter-stack > .section-pad:first-child,
  .chapter-stack > .section-pad:last-child {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .support-list,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .support-list article,
  .faq-list details {
    border-right: 0;
  }

  .timeline-list {
    grid-template-columns: 1fr;
  }

  .timeline-list article {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
  }

  .timeline-list h3 {
    margin-top: 0;
  }

  .day-schedule div {
    min-height: 180px;
  }
}

@media (max-width: 760px) {
  .section-pad,
  .chapter-stack > .section-pad,
  .chapter-stack > .section-pad:first-child,
  .chapter-stack > .section-pad:last-child {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .chapter-stack > .section-pad:not(:first-child) .section-heading-main > h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .skill-grid,
  .capacity-grid,
  .output-stack,
  .small-work-copy ol {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .capacity-card,
  .capacity-card-dark,
  .capacity-card-lined,
  .capacity-card-open,
  .curriculum-grid article,
  .career-grid article,
  .career-grid .career-dark,
  .day-schedule div,
  .flexible-grid article,
  .flexible-grid article:first-child {
    min-height: 0;
  }

  .output-card:nth-child(4),
  .output-card:nth-child(5) {
    grid-column: auto;
  }

  .small-work-copy li {
    border-right: 0;
  }

  .timeline-list article {
    display: block;
  }

  .timeline-list h3 {
    margin-top: 24px;
  }

  .mentor-card {
    min-height: 520px;
  }

  .work-card,
  .voice-card,
  .voice-card-dark {
    min-height: 300px;
  }
}
