/* Curriculum (the hub) only: linked after pages.css by the page's front matter "css": ["p-curriculum"].
   Design review r1, 18 Nov 2026 (F2): R1-04, R1-05, R1-06, R1-07, R1-17, R1-18, R1-19. Page review round 2 (r2b,
   18 Nov 2026): the Design seat's fixes 1-10 (own photos, filled right columns, the stage cards under the table, even
   activity chips, the finder centred on the answer, shorter FAQ head). Tokens from style.css. */

/* hero: the student sits right of the headline (cur-hero, flipped so he looks towards it); a deep wash on the left keeps
   the bright window behind the crumbs, kicker and headline dark */
.phero__img img { object-position: 60% 45%; }
@media (min-width: 761px) {
  .phero::before {
    background: linear-gradient(to top, rgba(7, 39, 36, .94) 0%, rgba(7, 39, 36, .62) 38%, rgba(7, 39, 36, .3) 66%, rgba(7, 39, 36, .7) 84%, rgba(7, 39, 36, .74) 100%),
                linear-gradient(90deg, rgba(7, 39, 36, .92) 0%, rgba(7, 39, 36, .86) 46%, rgba(7, 39, 36, .4) 62%, transparent 78%);
  }
}
@media (max-width: 760px) {
  .phero__img img { object-position: 74% 40%; }
  .phero::before { background: linear-gradient(to top, rgba(7, 39, 36, .95) 0%, rgba(7, 39, 36, .84) 48%, rgba(7, 39, 36, .8) 100%); }
}

/* the age finder beside the answer: all thirteen ages in one row from 761px, the card centred on the answer (Design 7);
   on a phone it scrolls in its box, with a fade on the right edge that says there is more */
@media (min-width: 961px) { .lede__side { align-self: center; } }
@media (min-width: 761px) {
  body:not([data-page-type="home"]) .lede__side .finder__ages { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .lede__side .finder__ages button { min-width: 0; padding-inline: 0; font-size: 14px; }
}
@media (max-width: 760px) {
  body:not([data-page-type="home"]) .lede__side .finder__ages { padding-right: 40px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
}

/* the stacked chapter head, until pages.css carries .sec__head--stack */
.sec__head--stack { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.sec__head--stack > p { justify-self: start; max-width: 60ch; }

/* the map of the set together (Design 8): the table, one "ask us" line, then the five stage cards. Each card shows its
   destination page's own photo, in a landscape frame so no face is cut. */
.tbox-note { margin: 18px 0 0; color: var(--muted); font-size: 15.5px; }
.tbox-note a { color: var(--pine); font-weight: 600; }
.stage-cards { margin-top: clamp(30px, 3.4vw, 44px); }
.stage-cards .tile__img { aspect-ratio: 4 / 3; }
.stage-cards a:nth-child(3) .tile__img img { object-position: 72% 50%; }
.stage-cards a:nth-child(5) .tile__img img { object-position: 50% 28%; }

/* preschool: one landscape photo of two preschoolers */
.duo__img--wide img { aspect-ratio: 5 / 4; }

/* secondary steps (were inline styles) */
.duo__text .steps { margin-top: 30px; }
.steps-after { margin-top: 24px; }

/* milestones: the head stacked over its paragraph (Design 4), then the path, then the results as one row: the school's
   words and the link, and the two figures (Design 3: no cropped results-banner photo) */
#milestones .sec__head--stack .h2 { max-width: 22ch; }
.results-band { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 28px clamp(32px, 4vw, 64px); align-items: end; margin-top: clamp(56px, 6vw, 90px); }
.results-band__text .lead { color: var(--paper); margin: 0 0 22px; max-width: 30ch; }
.results-band .stat { padding-bottom: 6px; }
@media (max-width: 960px) {
  .results-band { grid-template-columns: 1fr 1fr; }
  .results-band__text { grid-column: 1 / -1; }
}

/* ESL: the head with the ESL page's own photo as a linked card on the right (Design 4), then a wide classroom band above
   its three hour facts */
.esl-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; }
.esl-head > div > p { color: var(--muted); max-width: 58ch; margin: 18px 0 0; }
.esl-card, .cca-card { position: relative; display: flex; align-items: flex-end; min-height: 230px; padding: 22px 24px; border-radius: 10px; overflow: hidden; color: var(--paper); text-decoration: none; isolation: isolate; }
.esl-card img, .cca-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.esl-card::before, .cca-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 39, 36, .92), rgba(7, 39, 36, .25) 70%); }
.esl-card:hover img, .cca-card:hover img { transform: scale(1.05); }
.esl-card span, .cca-card span { display: flex; flex-direction: column; gap: 6px; font: 400 clamp(24px, 2.1vw, 31px)/1.1 var(--serif); }
.esl-card span::after, .cca-card span::after { content: "→"; position: absolute; right: 24px; bottom: 22px; color: var(--gold-l); font-size: 26px; }
.esl-card small, .cca-card small { font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-l); }
.esl-wide { margin: 0; border-radius: 10px; overflow: hidden; background: var(--paper); }
.esl-wide img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 58%; }
.esl-facts { margin-top: clamp(26px, 3vw, 40px); }
@media (max-width: 960px) { .esl-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .esl-wide img { aspect-ratio: 4 / 3; } }

/* inclusive education: one portrait photo of a pupil */
.incl-photo img { aspect-ratio: 4 / 5; }
@media (min-width: 961px) { .incl-photo { max-width: 520px; } }

/* Cheras: a campus row with one large building photo */
.crow--one { padding: 0; border-top: 0; }
.crow--one .crow__media { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.crow--one .crow__media figure:first-child { grid-row: auto; grid-column: auto; }
.crow--one .crow__media figure:first-child img { aspect-ratio: 4 / 3; }
.crow--one .crow__text h2.h2 { font: 400 clamp(32px, 3.1vw, 46px)/1.06 var(--serif); letter-spacing: -.02em; margin: 0 0 18px; }
.crow--one .crow__text .lead { margin: 0; }
.crow--one .crow__list { margin-top: 20px; }
.crow--one .crow__list li { font-size: 14.5px; padding: 8px 14px; }
.crow__note { margin: 20px 0 0; color: var(--muted); }

/* beyond lessons: the head with two linked cards on the right (the programmes and facilities pages' own photos,
   Design 4), then the sixteen chips as even columns across the whole wrap (Design 5) */
.cca-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; }
.cca-head > div > p { color: var(--muted); max-width: 54ch; margin: 18px 0 0; }
.cca-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 960px) { .cca-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cca-cards { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 761px) {
  .chips--8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips--8 li { text-align: center; }
}
@media (min-width: 1180px) { .chips--8 { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.cca-more { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); max-width: 78ch; color: var(--muted); }

/* FAQ: a shorter head one size down (Design 10); each question an h3 inside its summary, styled as the summary was */
#faq-title { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.06; }
.faq-item summary h3 { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }

/* the close: the heading on the left, the consultant card with the ways forward on the right (Design 4) */
.find-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; margin-bottom: 0; }
.find-card { background: var(--paper); border-radius: 12px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 0 0 1px var(--line); border-top: 3px solid var(--gold); }
.find-card > p { margin: 0 0 22px; color: var(--muted); max-width: none; }
.find-card .btn-row { margin: 0; }
.find-card__more { margin: 18px 0 0; }
@media (max-width: 960px) { .find-head { grid-template-columns: minmax(0, 1fr); } }

/* design r2 critical (crit2, 18 Nov 2026): the gold captions and white titles on the photo cards sat on the pupils' white
   shirts (1.6-3.2:1). A deeper pine wash under the words keeps every line at 4.5:1 or more; the top of each photo stays clear */
.esl-card::before, .cca-card::before { background: linear-gradient(to top, rgba(7, 39, 36, .95) 0%, rgba(7, 39, 36, .85) 45%, rgba(7, 39, 36, .7) 62%, rgba(7, 39, 36, .2) 92%); }
