/* Third-stage artwork and spacing stay isolated from the other course pages. */
.third-stage-page { --fs-paper: #f8eee3; --fs-ink: #203f5c; --sj-paper: var(--fs-paper); --sj-ink: var(--fs-ink); --sj-accent: #bd5838; --sj-serif: var(--fs-serif); }
.ts-page { font-family: var(--fs-serif); }
.ts-page .fs-wrap, .ts-page .sj-wrap { width: min(1200px, calc(100% - 80px)); }
.ts-section { scroll-margin-top: 24px; }
.ts-page h2 { font-size: 44px; }
.ts-page .fs-hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.ts-page .fs-hero__title { aspect-ratio: 2.16; }
.ts-page .fs-hero__art { aspect-ratio: 1.2; }
.ts-page .fs-hero__visual { grid-row: 1 / 3; }
.ts-page .fs-hero__subtitle { grid-column: 1; font-size: 28px; }
.ts-page .fs-hero { padding-bottom: 50px; }
.ts-page .sj-pains { padding-bottom: 40px; }
.ts-page .sj-pain { border-radius: 28px; }
.ts-page .sj-pain h3 { color: #fffdf5; }
.ts-audience { padding-block: 40px 64px; }
.ts-audience .fs-lined-title { justify-content: start; text-align: left; }
.ts-audience .fs-lined-title::before { display: none; }
.ts-audience .fs-lined-title > span { max-width: 90%; }
.ts-audience__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 52px; margin-top: 36px; }
.ts-audience__item { text-align: center; min-width: 0; }
.ts-audience__item img { width: 100%; aspect-ratio: 1.42; margin-bottom: 18px; }
.ts-audience__item h3 { font-size: 36px; }
.ts-page .sj-philosophy { background: #f9dfc2; padding-block: 48px 60px; }
.ts-page .sj-philosophy h2 { font-size: 44px; }
.ts-page .sj-philosophy__head { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ts-page .sj-questions { margin-top: 18px; }
.ts-page .sj-question { background: #fbefdf; }
.ts-outcomes { padding-block: 64px; }
.ts-page .ss-outcomes__list li { width: 100%; background: linear-gradient(90deg, #688492 65%, transparent); }
.ts-page .ss-outcomes__list li:nth-child(3n + 2) { background: linear-gradient(90deg, #829d8e 65%, transparent); }
.ts-page .ss-outcomes__list li:nth-child(3n) { background: linear-gradient(90deg, #b7593b 65%, transparent); }
.ts-page .ss-outcomes__list li:nth-child(even) { background: linear-gradient(270deg, #688492 65%, transparent); }
.ts-page .ss-outcomes__list li:nth-child(6n + 2) { background: linear-gradient(270deg, #829d8e 65%, transparent); }
.ts-page .ss-outcomes__list li:nth-child(6n) { background: linear-gradient(270deg, #b7593b 65%, transparent); }
.ts-page .ss-outcomes__list li { padding-inline: 48px; gap: 24px; }
.ts-page .ss-outcomes__list .fs-prose { font-size: 28px; text-shadow: 0 1px 3px #183d4c35; }
.ts-band { background: #f9dfc2; }
.ts-curriculum { padding-block: 70px; }
.ts-curriculum h2 { font-size: 58px; }
.ts-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: center; margin-block: 32px 48px; padding: 28px 24px; background: #fbefdf; border-radius: 8px; }
.ts-summary > div { position: relative; min-width: 0; }
.ts-summary > div + div::before { content: "+"; position: absolute; top: 26px; left: -24px; width: 24px; font-size: 34px; }
.ts-summary p { color: #bd5838; line-height: 1.2; }
.ts-summary p strong { font-size: 104px; font-weight: 500; }
.ts-summary p span { font-size: 24px; }
.ts-summary .fs-prose { font: 24px/1.6 "Noto Sans TC", sans-serif; margin-top: 12px; text-wrap: balance; }
.ts-chapters { display: grid; gap: 32px; }
.ts-chapter { --ts-panel: #688492; --ts-heading: #234b5b; width: 76%; display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.4fr); align-items: center; position: relative; min-width: 0; }
.ts-chapter--1 { --ts-panel: #829d8e; --ts-heading: #264f3f; }
.ts-chapter--2 { --ts-panel: #b7593b; --ts-heading: #652e25; }
.ts-chapter:nth-child(3n + 2) { margin-left: 12%; }
.ts-chapter:nth-child(3n) { margin-left: 24%; }
.ts-chapter__visual { position: relative; z-index: 1; min-width: 0; }
.ts-chapter__visual img { width: 100%; aspect-ratio: 1.08; object-position: center; }
.ts-chapter__copy { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; background: var(--ts-panel); padding: 20px 26px; border-radius: 0 8px 8px 0; color: var(--ts-heading); position: relative; isolation: isolate; }
.ts-chapter__copy::before { content: ""; position: absolute; width: 64px; inset: 0 100% 0 auto; z-index: -1; background: linear-gradient(90deg, transparent, var(--ts-panel)); }
.ts-chapter__label, .ts-chapter__english { font-size: 25px; line-height: 1.35; }
.ts-chapter h3 { font-size: 40px; line-height: 1.35; margin: 4px 0 16px; }
.ts-chapter .fs-prose { color: #fffdf7; font: 23px/1.65 "Noto Sans TC", sans-serif; text-wrap: balance; }
.ts-chapter--reverse { grid-template-columns: minmax(0, 1.4fr) minmax(0, .65fr); }
.ts-chapter--reverse .ts-chapter__visual { grid-column: 2; grid-row: 1; }
.ts-chapter--reverse .ts-chapter__copy { grid-column: 1; grid-row: 1; border-radius: 8px 0 0 8px; }
.ts-chapter--reverse .ts-chapter__copy::before { inset: 0 auto 0 100%; background: linear-gradient(270deg, transparent, var(--ts-panel)); }
.ts-resources { padding-block: 60px 80px; }
.ts-resources .ss-resources__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ts-resources .ss-resource img { aspect-ratio: 1.3; }
.ts-page .fs-instructor { padding-bottom: 60px; }
.ts-page .ss-testimonials { padding-top: 54px; }
.ts-page .ss-testimonial { background: #fbefdf; }
.ts-cta { text-align: center; padding-block: 36px 60px; }

@media (max-width: 1000px) {
  .ts-page .fs-wrap, .ts-page .sj-wrap { width: calc(100% - 56px); }
  .ts-page h2, .ts-page .sj-philosophy h2 { font-size: 32px; }
  .ts-page .fs-hero__subtitle { font-size: 22px; }
  .ts-audience__item h3 { font-size: 28px; }
  .ts-summary p strong { font-size: 80px; }
  .ts-summary .fs-prose { font-size: 20px; }
  .ts-chapter { width: 88%; }
  .ts-chapter:nth-child(3n + 2) { margin-left: 6%; }
  .ts-chapter:nth-child(3n) { margin-left: 12%; }
  .ts-chapter__label, .ts-chapter__english { font-size: 20px; }
  .ts-chapter h3 { font-size: 30px; }
  .ts-chapter .fs-prose { font-size: 20px; }
  .ts-page .ss-outcomes__list .fs-prose { font-size: 23px; }
}
@media (max-width: 640px) {
  .ts-page .fs-wrap, .ts-page .sj-wrap { width: calc(100% - 32px); }
  .ts-page h2, .ts-page .sj-philosophy h2 { font-size: 25px; }
  .ts-page .fs-hero__title { aspect-ratio: 5.9; }
  .ts-page .fs-hero__subtitle { font-size: 17px; }
  .ts-page .fs-hero__art { aspect-ratio: 1.27; }
  .ts-page .fs-hero { padding-bottom: 24px; }
  .ts-page .sj-pains { padding-top: 0; padding-bottom: 20px; }
  .ts-page .sj-pain { border-radius: 20px; }
  .ts-audience { padding-block: 20px 32px; }
  .ts-audience .fs-lined-title > span { max-width: 100%; }
  .ts-audience .fs-lined-title::after { display: none; }
  .ts-audience__list { gap: 24px 16px; margin-top: 20px; }
  .ts-audience__item img { margin-bottom: 10px; }
  .ts-audience__item h3 { font-size: 20px; }
  .ts-page .sj-philosophy { padding-block: 28px 32px; }
  .ts-page .sj-philosophy__head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ts-page .sj-philosophy__art { width: 50%; max-width: 200px; margin-left: auto; }
  .ts-outcomes { padding-block: 32px; }
  .ts-page .ss-outcomes__list li { padding: 12px 18px; gap: 12px; }
  .ts-page .ss-outcomes__list .fs-prose { font-size: 17px; }
  .ts-curriculum { padding-block: 40px; }
  .ts-curriculum h2 { font-size: 32px; }
  .ts-summary { padding: 20px 12px; gap: 16px; margin-block: 24px 32px; }
  .ts-summary p strong { font-size: 52px; }
  .ts-summary p span { font-size: 15px; }
  .ts-summary > div + div::before { font-size: 24px; width: 16px; left: -16px; top: 14px; }
  .ts-summary .fs-prose { font-size: 14px; line-height: 1.6; margin-top: 10px; }
  .ts-chapters { gap: 24px; }
  .ts-chapter { width: 100%; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); }
  .ts-chapter:nth-child(n) { margin-left: 0; }
  .ts-chapter--reverse { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
  .ts-chapter__copy { padding: 14px 12px; }
  .ts-chapter__copy::before { width: 28px; }
  .ts-chapter__label, .ts-chapter__english { font-size: 16px; }
  .ts-chapter h3 { font-size: 23px; margin-bottom: 10px; }
  .ts-chapter .fs-prose { font-size: 15px; line-height: 1.7; }
  .ts-resources { padding-block: 32px 48px; }
  .ts-resources .ss-resources__list { gap: 12px; }
  .ts-resources .ss-resource h3 { font-size: 15px; }
  .ts-page .fs-instructor { padding-bottom: 36px; }
  .ts-page .ss-testimonials { padding-top: 32px; }
  .ts-cta { padding-block: 24px 40px; }
}
@media (max-width: 359px) {
  .ts-resources .ss-resources__list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ts-resources .ss-resource { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 12px; }
  .ts-resources .ss-resource h3 { font-size: 17px; }
  .ts-chapter h3 { font-size: 21px; }
}
