/* =========================================================
   Curriculum & Materials page (curriculum-material.html) — parts only this page uses.
   Shared parts come from home.css + camp.css (cards, FAQ-free, form) + term.css (facts strip).
   ========================================================= */

/* Hero without a photo: a CEFR staircase on the right */
.c-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.c-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 85% 20%, rgba(216, 176, 81, .18), transparent 60%); }
.c-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-top: 72px; padding-bottom: 168px; }
.c-hero__text { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.c-hero h1 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 900; }
.c-hero__tag { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--gold); font-size: 20px; margin: 0; }

.c-stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; height: 300px; }
.c-stairs li { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; border-radius: 12px 12px 4px 4px; padding: 10px 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); min-width: 0; }
.c-stairs li:nth-child(1) { height: 30%; } .c-stairs li:nth-child(2) { height: 42%; } .c-stairs li:nth-child(3) { height: 54%; }
.c-stairs li:nth-child(4) { height: 66%; } .c-stairs li:nth-child(5) { height: 80%; }
.c-stairs li:nth-child(6) { height: 100%; background: var(--gold); border-color: var(--gold); color: var(--ink); }
.c-stairs b { font-family: var(--font-display); font-size: 22px; font-weight: 900; line-height: 1; }
.c-stairs span { font-size: 12px; font-weight: 700; letter-spacing: .02em; opacity: .9; overflow-wrap: anywhere; }
.c-stairs a { color: inherit; text-decoration: none; display: contents; }

/* Course building blocks: 4 parts */
.c-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.c-parts li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.c-parts b { font-size: 17px; }
.c-parts span { font-size: 14px; color: var(--body); }
.c-parts em { font-style: normal; font-size: 12px; font-weight: 800; color: #7A5A12; background: var(--gold-soft); align-self: flex-start; padding: 3px 10px; border-radius: 999px; }
.c-parts .is-optional { border-style: dashed; }

/* Six stages */
.c-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.c-stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 96px; }
.c-stage__top { display: flex; align-items: center; gap: 12px; }
.c-stage__num { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 18px; }
.c-stage h3 { font-size: 19px; font-weight: 900; line-height: 1.25; }
.c-stage__en { display: block; font-size: 13px; font-weight: 600; color: var(--body); }
.c-stage__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.c-stage__chips span { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); font-variant-numeric: tabular-nums; }
.c-stage__chips .is-cefr { background: var(--gold-soft); color: #7A5A12; }
.c-stage__goal { margin: 0; font-size: 15px; color: var(--ink); }
.c-stage dl { margin: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.c-stage dl div { display: grid; gap: 2px; }
.c-stage dt { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--gold-text, #8A6A1E); }
.c-stage dd { margin: 0; font-size: 14px; color: var(--body); }
.c-stage--top { background: var(--navy); color: #fff; border-color: var(--navy); }
.c-stage--top .c-stage__num { background: var(--gold); color: var(--ink); }
.c-stage--top .c-stage__en, .c-stage--top dd { color: var(--muted-on-dark); }
.c-stage--top .c-stage__goal { color: #fff; }
.c-stage--top dl { border-color: rgba(255, 255, 255, .15); }
.c-stage--top dt { color: var(--gold); }
.c-stage--top .c-stage__chips span { background: rgba(255, 255, 255, .12); color: #fff; }
.c-stage--top .c-stage__chips .is-cefr { background: var(--gold); color: var(--ink); }

/* CEFR coverage chart: 1 label column + 7 level columns, bars drawn on the same grid */
.c-chart-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.c-chart { min-width: 680px; display: grid; grid-template-columns: 190px repeat(7, minmax(0, 1fr)); row-gap: 10px; align-items: center; font-size: 14px; }
.c-chart__head { font-size: 12px; font-weight: 800; color: var(--body); text-align: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.c-chart__head:first-child { text-align: left; }
.c-chart__label { grid-column: 1; font-weight: 700; color: var(--ink); line-height: 1.25; padding-right: 10px; }
.c-chart__label small { display: block; font-weight: 500; font-size: 12px; color: var(--body); }
.c-chart__bar { height: 30px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 3px; }
.c-chart__bar.is-gold { background: var(--gold); color: var(--ink); }
.c-chart__bar.is-soft { background: var(--gold-soft); color: #7A5A12; }
.c-chart__bar.is-grade { background: repeating-linear-gradient(135deg, var(--soft) 0 8px, #E8ECF4 8px 16px); color: var(--ink); }
.c-chart__swipe { display: none; margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--gold-text, #8A6A1E); }
.c-chart__note { margin: 14px 0 0; font-size: 13px; color: var(--body); }

/* Cambridge exam route */
.c-route { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-route li { display: flex; align-items: center; gap: 8px; }
.c-route li:not(:last-child)::after { content: "→"; color: var(--gold-text, #8A6A1E); font-weight: 800; }
.c-route b { display: inline-flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; line-height: 1.2; }
.c-route b small { font-size: 11px; font-weight: 700; color: var(--body); }
.c-route .is-ielts b { background: var(--navy); color: #fff; }
.c-route .is-ielts b small { color: var(--muted-on-dark); }

/* Placement note */
.c-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; border-radius: var(--radius); background: var(--gold-wash, #FBF6E8); border: 1px solid rgba(138, 106, 30, .18); }
.c-note ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink); }

@media (max-width: 1080px) {
  .c-hero__inner { grid-template-columns: 1fr; gap: 36px; padding-bottom: 150px; }
  .c-stairs { height: 220px; max-width: 560px; }
  .c-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .c-hero__inner { padding-top: 40px; padding-bottom: 130px; }
  .c-stairs { height: 180px; gap: 5px; }
  .c-stairs li { padding: 8px 5px; }
  .c-stairs b { font-size: 16px; }
  .c-stairs span { font-size: 10px; }
  .c-parts, .c-stages { grid-template-columns: 1fr; }
  .c-note { grid-template-columns: 1fr; }
  .c-chart-wrap { padding: 16px; }
  .c-chart { min-width: 560px; grid-template-columns: 128px repeat(7, minmax(0, 1fr)); font-size: 13px; }
  .c-chart__swipe { display: block; }
}
