/* Parents' words (/testemonials/) only: linked after pages.css by the page's front matter "css": ["p-testemonials"].
   AEO package Phase 3 (author a4, 18 Nov 2026); round-2 rework (w2f, 18 Nov 2026): each chapter its own composition
   (a pine big quote, a card + pull quote, a duo, a centred quote over a two-column grid, a duo of reviews), at most three
   cards before a "More from parents" fold, and a small label of who or where on each card. Tokens from style.css; no new
   colour. */

/* the hero: the phone wash is deepened under the crumbs, kicker and chips (contrast >= 4.5:1 on the bright play area) */
@media (max-width: 760px) {
  .phero--short::before { background: linear-gradient(to top, rgba(7, 39, 36, .97) 0%, rgba(7, 39, 36, .86) 55%, rgba(7, 39, 36, .7) 80%, rgba(7, 39, 36, .76) 100%); }
}
@media (min-width: 761px) {
  .phero--short::before { background: linear-gradient(to top, rgba(7, 39, 36, .95) 0%, rgba(7, 39, 36, .76) 45%, rgba(7, 39, 36, .56) 75%, rgba(7, 39, 36, .64) 100%),
                                      linear-gradient(90deg, rgba(7, 39, 36, .72), transparent 66%); }
}

/* the current crumb, a touch lighter than the shared .62 so it holds 4.5:1 over the photo */
.phero .crumbs li:last-child { color: rgba(251, 248, 242, .8); }

/* who or where, above the name (the system's dt look) */
.testi-tag { display: block; font: 700 12px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 6px; }
.review--accent .testi-tag, .testi-pull .testi-tag { color: var(--gold-l); }

/* rows of up to three cards (a grid, so a row reads as a row) */
.testi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.testi-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.testi-row .review, .testi-grid .review { margin: 0; }

/* the teachers chapter (pine): the featured mother's words centred, the three cards under them */
.testi-big { margin-bottom: clamp(48px, 6vw, 80px); }
.testi-big blockquote { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.38; }
.testi-big figcaption span { display: block; margin-top: 10px; font: 500 14px/1.4 var(--sans); letter-spacing: .02em; text-transform: none; color: rgba(251, 248, 242, .78); }

/* the confidence chapter: a card of pupils (it opens the curriculum page, whose photo it shows) beside a pine pull quote */
.testi-pair { display: grid; grid-template-columns: 5fr 7fr; gap: 20px; margin-bottom: 20px; }
.testi-pull { margin: 0; background: var(--pine-dd); border-radius: 10px; padding: clamp(30px, 4vw, 54px); display: grid; align-content: center; gap: 22px; }
.testi-pull blockquote { margin: 0; font: 400 clamp(21px, 1.9vw, 28px)/1.42 var(--serif); color: var(--paper); text-wrap: pretty; }
.testi-pull figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: rgba(251, 248, 242, .78); }
.testi-pull figcaption b { font: 600 15px/1.3 var(--sans); color: var(--gold-l); }

/* link cards: the destination's own photo with its name on it (the .next card look) */
.testi-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; padding: 26px; border-radius: 10px; overflow: hidden; color: var(--paper); text-decoration: none; isolation: isolate; }
.testi-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.testi-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 39, 36, .95) 0%, rgba(7, 39, 36, .86) 34%, rgba(7, 39, 36, .5) 60%, rgba(7, 39, 36, 0) 86%); }
.testi-card:hover img { transform: scale(1.04); }
.testi-card span { display: grid; gap: 8px; }
.testi-card small { font: 700 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-l); }
.testi-card b { font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); }
.testi-card b::after { content: " →"; color: var(--gold-l); }
.testi-card--land { min-height: 0; aspect-ratio: 3 / 2; }

/* the inclusive chapter: a narrower photo column (the swimming photo is 819 px wide), kept in view beside the text */
.testi-incl { grid-template-columns: 4fr 7fr; }
@media (min-width: 961px) {
  .testi-incl .duo__media, .testi-online .duo__media { position: sticky; top: calc(var(--hdr-h) + 24px); }
}
.duo__text .testi-quote { margin: 28px 0 0; }
.duo__text .testi-quote + .testi-quote { margin-top: 18px; }
.testi-sub { font: 400 clamp(24px, 2vw, 30px)/1.2 var(--serif); color: var(--pine-dd); letter-spacing: -.005em; margin: 34px 0 12px; max-width: 30ch; }
.duo__text .testi-sub + p { margin-top: 0; }
.duo__text .link-arrow { margin-top: 18px; }
.testi-three { margin-top: clamp(48px, 6vw, 80px); }

/* the character chapter (white): the village line centred and large, then two columns */
.testi-head > p { text-align: center; max-width: 60ch; }
.testi-village { margin-bottom: clamp(44px, 5vw, 70px); }
.testi-village blockquote { font-size: clamp(26px, 3.2vw, 46px); }
.testi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; align-items: start; }
.testi-grid .review--photo img { aspect-ratio: 3 / 2; }

/* the reviews chapter: the Japanese and Korean reviews in their own script, with a short note in English under each */
.review blockquote[lang] { line-height: 1.75; }
.testi-en { margin: -6px 0 16px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.duo__text p.testi-en { max-width: none; }

/* "More from parents": the rest of a chapter's cards, folded */
.testi-more { margin-top: 20px; }
.testi-more summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font: 600 14px/1 var(--sans); letter-spacing: .04em; color: var(--pine-dd); padding: 14px 20px; border-radius: 99px; box-shadow: 0 0 0 1px var(--line); background: var(--white); }
.testi-more summary::-webkit-details-marker { display: none; }
.testi-more[open] summary { margin-bottom: 20px; }
.testi-grid + .testi-more { max-width: 1040px; margin-left: auto; margin-right: auto; }

/* questions as h3 (a heading per question for search engines), looking exactly like the summary line */
.faq-item summary h3 { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }

@media (max-width: 960px) {
  .testi-row, .testi-pair, .testi-incl { grid-template-columns: minmax(0, 1fr); }
  .testi-row--2, .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi-card { min-height: 300px; }
  .testi-card--land { min-height: 0; max-width: 560px; }
}
@media (max-width: 760px) {
  .testi-row--2, .testi-grid { grid-template-columns: 1fr; }
  .testi-card { min-height: 260px; }
  .testi-card--land { min-height: 0; }
  .testi-head > p { text-align: left; }
}
