
/* =====================================================================================================
   FULL SITE (5 Nov 2026): inner pages. Same tokens, type and rhythm as the homepage; nothing here changes
   a homepage section except the story photo band (.sband) and the small "sec-more" links.
   Loaded by every page after style.css (src/layout.html).
   ===================================================================================================== */

/* ---------- header extras: School life dropdown, ESL link, current page ---------- */
.nav__item--drop { position: relative; }
.drop {
  position: absolute; left: -18px; top: 100%; min-width: 230px; padding: 10px; margin-top: 8px;
  background: var(--paper); color: var(--ink); border-radius: 8px; display: grid;
  box-shadow: 0 30px 60px -20px rgba(7, 39, 36, .45), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .35s;
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item--drop:hover .drop, .nav__item--drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drop a { padding: 10px 12px; border-radius: 5px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--pine-dd); }
.drop a:hover, .drop a[aria-current="page"] { background: var(--cream); }
.mega__intro .link-arrow + .link-arrow { margin-top: 10px; }
.nav > a[aria-current="page"]::after { transform: scaleX(1); }
.menu__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding: 8px 0 14px; border-bottom: 1px solid var(--line-l); }
.menu__sub a { font: 400 17px/1.3 var(--sans); padding: 8px 0; border-bottom: 0; color: rgba(251, 248, 242, .78); }
.menu__nav a[aria-current="page"] { color: var(--gold-l); }
.foot__line { margin-top: 14px; font-size: 15px; }
.foot__line a { color: var(--gold-l); text-decoration: none; font-weight: 600; }
.foot__col a[aria-current="page"] { color: var(--white); }

/* ---------- small helpers ---------- */
.sec-more { margin: 40px 0 0; text-align: center; }
.sec-more--left { text-align: left; margin-top: 22px; }
.link-arrow--light { color: var(--gold-l); }
.link-arrow--light:hover { color: var(--white); }
.milestone a { color: var(--pine); font-weight: 600; }
.life__intro .link-arrow, .campuses__intro .link-arrow { margin-top: 10px; }

/* ---------- "Our story" photo band: the four campus buildings ---------- */
.sband { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 14px; height: clamp(320px, 34vw, 480px); margin: 0 0 clamp(50px, 6vw, 80px); }
.sband__item { position: relative; border-radius: 8px; overflow: hidden; background: var(--pine-d); margin: 0; }
.sband__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.sband__item:hover img { transform: scale(1.04); }
.sband__item::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(7, 39, 36, .82), transparent); pointer-events: none; }
.sband__item figcaption { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; color: var(--paper); display: flex; flex-direction: column; gap: 4px; }
.sband__item figcaption b { font: 400 24px/1.1 var(--serif); }
.sband__item figcaption span { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-l); }
.sband__item--main figcaption b { font-size: 30px; }

/* ---------- page hero (every inner page) ---------- */
.phero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; background: var(--pine-dd); color: var(--paper); }
.phero__img { position: absolute; inset: 0; z-index: -2; }
.phero__img img { width: 100%; height: 100%; object-fit: cover; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(7, 39, 36, .94) 0%, rgba(7, 39, 36, .62) 38%, rgba(7, 39, 36, .18) 70%, rgba(7, 39, 36, .45) 100%),
              linear-gradient(90deg, rgba(7, 39, 36, .7), transparent 62%); }
.phero__in { width: min(var(--wrap), 100% - var(--gutter) * 2); margin: 0 auto; padding: calc(var(--util-h) + var(--hdr-h) + 60px) 0 clamp(46px, 7vh, 86px); }
.phero h1 { font: 400 clamp(46px, 6.4vw, 104px)/.98 var(--serif); letter-spacing: -.028em; max-width: 14ch; text-wrap: balance; margin: 0 0 22px; }
.phero h1 em { font-style: italic; color: var(--gold-l); }
.phero__lead { max-width: 52ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: rgba(251, 248, 242, .88); margin: 0; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.phero__meta span { font: 600 12.5px/1 var(--sans); letter-spacing: .06em; padding: 9px 13px; border-radius: 99px; border: 1px solid rgba(227, 207, 165, .38); color: var(--gold-l); background: rgba(7, 39, 36, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.phero--short { min-height: min(64vh, 620px); }
.phero--plain { min-height: 0; background: radial-gradient(120% 90% at 50% 0%, #135A51 0%, var(--pine) 45%, var(--pine-d) 100%); }
.phero--plain::before { display: none; }
.phero--plain .phero__in { padding-bottom: clamp(40px, 5vw, 64px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 26px; padding: 0; list-style: none; font: 600 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(251, 248, 242, .62); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--gold); }
.crumbs a { color: var(--gold-l); text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* ---------- generic sections ---------- */
.sec { padding: clamp(84px, 10vw, 150px) 0; position: relative; }
.sec--paper { background: var(--paper); }
.sec--cream { background: var(--cream); }
.sec--white { background: var(--white); }
.sec--pine { background: var(--pine-dd); color: var(--paper); overflow: hidden; isolation: isolate; }
.sec--pine::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 85% 15%, rgba(28, 106, 95, .5), transparent 70%); }
.sec--pine .h2, .sec--pine h3 { color: var(--paper); }
.sec--pine .kicker { color: var(--gold-l); }
.sec--pine p { color: rgba(251, 248, 242, .8); }
.sec--tight { padding: clamp(60px, 7vw, 100px) 0; }
.sec__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec__head > p { color: var(--muted); max-width: 46ch; justify-self: end; margin: 0; }
.sec--pine .sec__head > p { color: rgba(251, 248, 242, .75); }
.sec__head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.sec__head--center .h2 { max-width: 20ch; }
.sec__head--center .kicker { justify-content: center; }
.sec__head--center > p { justify-self: center; }
.h3 { font: 400 clamp(28px, 2.6vw, 40px)/1.08 var(--serif); color: var(--pine-dd); letter-spacing: -.015em; margin: 0 0 16px; }
.duo__text > p { color: var(--muted); max-width: 56ch; }
.duo__text .lead { color: var(--ink); margin: 24px 0 16px; }
.duo__text .h2 + p { margin-top: 26px; }
.sec--pine .duo__text > p { color: rgba(251, 248, 242, .8); }
.sec--pine .duo__text .lead { color: var(--paper); }

/* ---------- intro: big statement + text ---------- */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 110px); align-items: start; }
.intro__big { font: 400 clamp(28px, 3vw, 44px)/1.2 var(--serif); color: var(--pine-dd); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.intro__big em { color: var(--gold-ink); }
.intro__text p { color: var(--muted); }
.intro__text .lead { color: var(--ink); }

/* ---------- duo: text beside photos ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.duo--rev .duo__media { order: 2; }
.duo--wide { grid-template-columns: 7fr 5fr; }
.duo--rev.duo--wide { grid-template-columns: 5fr 7fr; }
.duo--top { align-items: start; }
.duo__media { position: relative; }
.duo__img { border-radius: 8px; overflow: hidden; background: var(--cream); margin: 0; }
.duo__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.duo__img--land img { aspect-ratio: 3/2; }
.duo__img--sq img { aspect-ratio: 1; }
.duo__media--pair { padding-bottom: 70px; }
.duo__media--pair .duo__img:first-child { width: 80%; }
.duo__media--pair .duo__img + .duo__img { position: absolute; right: 0; bottom: 0; width: 46%; box-shadow: 0 0 0 10px var(--paper), 0 30px 60px -30px rgba(7, 39, 36, .5); }
.sec--cream .duo__media--pair .duo__img + .duo__img { box-shadow: 0 0 0 10px var(--cream), 0 30px 60px -30px rgba(7, 39, 36, .5); }
.sec--white .duo__media--pair .duo__img + .duo__img { box-shadow: 0 0 0 10px var(--white), 0 30px 60px -30px rgba(7, 39, 36, .5); }
.sec--pine .duo__media--pair .duo__img + .duo__img { box-shadow: 0 0 0 10px var(--pine-dd), 0 30px 60px -30px rgba(0, 0, 0, .5); }
.duo__media--pair .duo__img + .duo__img img { aspect-ratio: 1; }
.duo__arch { position: relative; aspect-ratio: 1; display: grid; place-items: end center; margin: 0; }
.duo__arch::before { content: ""; position: absolute; inset: 6% 6% 0; border-radius: 50% 50% 10px 10px; background: radial-gradient(circle at 50% 30%, rgba(196, 164, 106, .32), rgba(196, 164, 106, .1) 70%); border: 1px solid rgba(196, 164, 106, .35); }
.duo__arch img { position: relative; width: 96%; object-fit: contain; }
.quote-card { position: absolute; left: -30px; bottom: 30px; width: min(340px, 78%); padding: 24px 24px 20px; border-radius: 8px; background: var(--white); box-shadow: 0 40px 70px -40px rgba(7, 39, 36, .5); margin: 0; }
.quote-card blockquote { margin: 0 0 12px; font: italic 400 18px/1.45 var(--serif); color: var(--pine-dd); }
.quote-card figcaption { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- tiles: cards that lead somewhere ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tiles--5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tile { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
a.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(7, 39, 36, .45); }
.tile__img { aspect-ratio: 4/3; overflow: hidden; background: var(--cream); margin: 0; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.tile:hover .tile__img img { transform: scale(1.05); }
.tiles--5 .tile__img { aspect-ratio: 4/5; }
.tile__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile__body .pill { align-self: flex-start; }
.tile h3 { font: 400 25px/1.12 var(--serif); color: var(--pine-dd); margin: 4px 0 2px; }
.tile p { font-size: 15px; color: var(--muted); margin: 0; }
.tile .link-arrow { margin-top: auto; padding-top: 10px; align-self: flex-start; }
.sec--cream .tile { box-shadow: none; }

/* ---------- gallery: their own photos with captions ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.g { position: relative; border-radius: 8px; overflow: hidden; background: var(--cream); margin: 0; }
.g img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; transition: transform 1.2s var(--ease); }
.g:hover img { transform: scale(1.04); }
.g--wide { grid-column: span 2; }
.g--tall { grid-row: span 2; }
.g--tall img { aspect-ratio: auto; }
.g figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 13px; background: linear-gradient(to top, rgba(7, 39, 36, .8), transparent); color: var(--paper); font: 400 18px/1.2 var(--serif); }
.g figcaption small { display: block; font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 4px; }
.gtabs .tabs { margin-bottom: 30px; }
.gtabs .panel { display: block; }
.gtabs .panel[hidden] { display: none; }

/* ---------- subjects ---------- */
.subjects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.subject { margin: 0; }
.subject img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--cream); }
.subject figcaption { margin-top: 10px; font: 400 19px/1.2 var(--serif); color: var(--pine-dd); }
.chips--lg { gap: 9px; }
.chips--lg li { font-size: 15.5px; padding: 10px 16px; }
.chips--lg li small { color: var(--gold-ink); font-weight: 600; margin-left: 4px; font-size: 13px; }
.sublist h3 { font: 700 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 26px 0 12px; }
.sublist h3:first-child { margin-top: 0; }

/* ---------- a numbered path (Cambridge milestones, steps) ---------- */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: p; border-top: 1px solid var(--line-l); }
.path--3 { grid-template-columns: repeat(3, 1fr); }
.path li { counter-increment: p; padding: 28px 26px 10px 0; border-right: 1px solid var(--line-l); }
.path li:last-child { border-right: 0; }
.path li + li { padding-left: 26px; }
.path li::before { content: "0" counter(p); display: block; font: italic 400 18px/1 var(--serif); color: var(--gold-l); margin-bottom: 14px; }
.path b { display: block; font: 400 26px/1.15 var(--serif); color: var(--paper); margin-bottom: 8px; }
.path span { font-size: 15px; color: rgba(251, 248, 242, .72); }
.sec--paper .path, .sec--cream .path, .sec--white .path { border-top-color: var(--line); }
.sec--paper .path li, .sec--cream .path li, .sec--white .path li { border-right-color: var(--line); }
.sec--paper .path li::before, .sec--cream .path li::before, .sec--white .path li::before { color: var(--gold-ink); }
.sec--paper .path b, .sec--cream .path b, .sec--white .path b { color: var(--pine-dd); }
.sec--paper .path span, .sec--cream .path span, .sec--white .path span { color: var(--muted); }

/* ---------- values (HOPEFUL) ---------- */
.hopeful { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 10px; }
.hopeful li { background: var(--white); border-radius: 10px; padding: 22px 12px 20px; text-align: center; box-shadow: 0 0 0 1px var(--line); }
.hopeful b { display: block; font: 400 52px/1 var(--serif); color: var(--gold-ink); margin-bottom: 10px; }
.hopeful span { font: 600 14px/1.2 var(--sans); color: var(--pine-dd); }

/* ---------- big numbers on light ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nums > div { padding: 30px 26px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.nums > div:first-child { padding-left: 0; }
.nums > div:last-child { border-right: 0; }
.nums b { font: 400 clamp(44px, 4.4vw, 64px)/.95 var(--serif); color: var(--pine); letter-spacing: -.02em; }
.nums b sup { font-size: .42em; vertical-align: top; position: relative; top: .3em; color: var(--gold-ink); font-style: italic; }
.nums span { font-size: 14.5px; color: var(--muted); max-width: 26ch; }

/* ---------- chronicle: the full history, with photos ---------- */
.chron { position: relative; display: grid; gap: 0; }
.chron::before { content: ""; position: absolute; left: 180px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.chron__item { display: grid; grid-template-columns: 180px 1fr; gap: 0; padding: 0 0 54px; position: relative; }
.chron__item:last-child { padding-bottom: 0; }
.chron__item::before { content: ""; position: absolute; left: 174px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--paper); }
.chron__year { font: 400 clamp(30px, 2.8vw, 42px)/1 var(--serif); color: var(--pine); letter-spacing: -.01em; padding-right: 22px; white-space: nowrap; }
.chron__body { padding-left: 44px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.chron__body h3 { font: 400 clamp(24px, 2vw, 30px)/1.15 var(--serif); color: var(--pine-dd); margin: 0; }
.chron__body p { color: var(--muted); margin: 0; max-width: 62ch; }
.chron__item--photo .chron__body { grid-template-columns: 1fr 1fr; align-items: start; gap: 18px 40px; }
.chron__txt { display: grid; gap: 12px; align-content: start; }
.chron__body figure { margin: 0; border-radius: 8px; overflow: hidden; }
.chron__body figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.chron__tag { font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }

/* ---------- reviews: parents' words ---------- */
.reviews { columns: 3; column-gap: 20px; }
.review { break-inside: avoid; margin: 0 0 20px; background: var(--white); border-radius: 10px; padding: 26px 26px 22px; box-shadow: 0 0 0 1px var(--line); }
.review blockquote { margin: 0 0 18px; font: 400 18px/1.5 var(--serif); color: var(--pine-dd); }
.review blockquote[lang="ja"], .review blockquote[lang="ko"] { font-family: var(--sans); font-size: 16px; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--muted); }
.review figcaption b { font: 600 15px/1.3 var(--sans); color: var(--ink); }
.review__stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; margin: 0 0 12px; }
.review--photo { padding: 0; overflow: hidden; }
.review--photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.review--accent { background: var(--pine); box-shadow: none; }
.review--accent blockquote { color: var(--paper); }
.review--accent figcaption { color: rgba(251, 248, 242, .7); }
.review--accent figcaption b { color: var(--gold-l); }
.feature-q { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(30px, 6vw, 100px); align-items: center; margin: 0; }
.feature-q + .feature-q { margin-top: clamp(60px, 7vw, 100px); }
.feature-q--rev .q__art { order: 2; }
.feature-q .q__art img { opacity: 1; transform: none; }
.feature-q blockquote { margin: 0 0 24px; font: 400 clamp(22px, 2.2vw, 32px)/1.35 var(--serif); letter-spacing: -.01em; color: var(--paper); text-wrap: pretty; }
.feature-q figcaption { font-size: 14.5px; color: rgba(251, 248, 242, .7); }
.feature-q figcaption b { display: block; font: 600 16px/1.3 var(--sans); color: var(--gold-l); margin-bottom: 2px; }

/* ---------- videos (a picture until play is pressed; then YouTube's own player) ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 22px; }
.vid { margin: 0; }
.vid figcaption { margin-top: 12px; font: 400 19px/1.3 var(--serif); color: var(--pine-dd); }
.sec--pine .vid figcaption { color: var(--paper); }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: var(--pine-dd); cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.yt:hover img { transform: scale(1.04); filter: brightness(.85); }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(7, 39, 36, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23E3CFA5'/%3E%3C/svg%3E") 56% 50%/30px no-repeat; border: 1px solid rgba(227, 207, 165, .6); transition: transform .4s var(--ease), background-color .4s; }
.yt:hover::after { transform: scale(1.08); background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23072724'/%3E%3C/svg%3E"); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing::after { display: none; }
.yt--big { border-radius: 10px; box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .7); }
.yt--big::after { width: 92px; height: 92px; margin: -46px 0 0 -46px; background-size: 40px; }

/* ---------- campus rows ---------- */
.crow { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(50px, 6vw, 90px) 0; border-top: 1px solid var(--line); }
.crow:first-child { border-top: 0; padding-top: 0; }
.crow--rev .crow__media { order: 2; }
.crow--rev { grid-template-columns: 5fr 7fr; }
.crow__media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.crow__media figure { margin: 0; border-radius: 8px; overflow: hidden; background: var(--cream); }
.crow__media figure:first-child { grid-row: span 2; }
.crow__media img { width: 100%; height: 100%; object-fit: cover; }
.crow__media figure:first-child img { aspect-ratio: 4/3.4; }
.crow__text h2 { font: 400 clamp(38px, 4vw, 58px)/1 var(--serif); color: var(--pine-dd); letter-spacing: -.02em; margin: 0 0 8px; }
.crow__text address { color: var(--muted); margin: 16px 0 12px; font-size: 16px; line-height: 1.6; }
.crow__text .campus__tel { font-size: 16px; }
.crow__text .btn-row { margin-top: 22px; }
.crow__list { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0; }
.crow__list li { font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 99px; background: var(--white); color: var(--pine); border: 1px solid var(--line); }

/* ---------- contact ---------- */
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.ccard { background: var(--white); border-radius: 10px; padding: 26px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
a.ccard:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 26px 40px -26px rgba(7, 39, 36, .45); }
.ccard small { font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.ccard b { font: 400 26px/1.15 var(--serif); color: var(--pine-dd); }
.ccard span { font-size: 14.5px; color: var(--muted); }

/* ---------- note, next ---------- */
.note { position: relative; margin-top: 28px; padding: 18px 20px 18px 58px; border-radius: 8px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font-size: 15px; color: var(--muted); }
.note::before { content: "i"; position: absolute; left: 20px; top: 17px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--pine-dd); font: italic 600 15px/1 var(--serif); }
.note a { color: var(--pine); font-weight: 600; }
.sec--pine .note { background: rgba(251, 248, 242, .06); box-shadow: 0 0 0 1px var(--line-l); color: rgba(251, 248, 242, .78); }
.sec--pine .note a { color: var(--gold-l); }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.next a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 28px; border-radius: 10px; overflow: hidden; color: var(--paper); text-decoration: none; isolation: isolate; }
.next a img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 39, 36, .9), rgba(7, 39, 36, .2)); }
.next a:hover img { transform: scale(1.05); }
.next small { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 8px; }
.next b { font: 400 clamp(28px, 2.6vw, 38px)/1.08 var(--serif); font-weight: 400; }
.next b::after { content: " →"; color: var(--gold-l); }

/* ---------- forms on light pages (contact, careers), cards, skills ---------- */
.form--card { box-shadow: 0 0 0 1px var(--line), 0 40px 70px -50px rgba(7, 39, 36, .5); }
.eip--cards { grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; }
.eip--cards li { border-top: 0; background: rgba(251, 248, 242, .05); border: 1px solid var(--line-l); border-radius: 10px; padding: 24px 22px 26px; gap: 10px; }
.eip--cards li::before { color: var(--gold-l); font-size: 20px; }
.eip--cards b { color: var(--paper); font-size: 23px; }
.eip--cards span { color: rgba(251, 248, 242, .74); font-size: 15px; line-height: 1.55; }
.bigquote { margin: 0 auto; max-width: 980px; text-align: center; }
.bigquote blockquote { margin: 0; font: italic 400 clamp(26px, 3vw, 44px)/1.3 var(--serif); color: var(--pine-dd); text-wrap: balance; }
.sec--pine .bigquote blockquote { color: var(--paper); }
.bigquote figcaption { margin-top: 24px; font: 700 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.sec--pine .bigquote figcaption { color: var(--gold-l); }
.ticks--light li { color: rgba(251, 248, 242, .88); }
.ticks--light li::before { background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23072724' stroke-width='1.7'/%3E%3C/svg%3E"); }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card2 { border-radius: 12px; padding: clamp(26px, 3vw, 40px); background: rgba(251, 248, 242, .06); border: 1px solid var(--line-l); }
.card2 .pill { margin-bottom: 18px; display: inline-block; }
.card2 h3 { font: 400 clamp(28px, 2.6vw, 38px)/1.1 var(--serif); color: var(--paper); margin: 0 0 12px; }
.card2__hours { font: 400 clamp(48px, 5vw, 76px)/1 var(--serif); color: var(--gold-l); margin: 4px 0 14px; letter-spacing: -.02em; }
.card2__hours small { font: 600 14px/1 var(--sans); color: rgba(251, 248, 242, .7); letter-spacing: .06em; margin-left: 8px; }
.card2 p { color: rgba(251, 248, 242, .78); margin: 0; }
.skills4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skills4 li { background: var(--white); border-radius: 10px; padding: 24px 22px; box-shadow: 0 0 0 1px var(--line); }
.skills4 b { display: block; font: 400 22px/1.2 var(--serif); color: var(--pine-dd); margin-bottom: 8px; }
.skills4 span { font-size: 14.5px; color: var(--muted); }
.skills4 li::before { content: ""; display: block; width: 36px; height: 2px; background: var(--gold); margin-bottom: 18px; }
.partners-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.partners-row li { background: var(--white); border-radius: 10px; padding: 20px; box-shadow: 0 0 0 1px var(--line); }
.partners-row b { display: block; font: 400 21px/1.2 var(--serif); color: var(--pine-dd); }
.partners-row span { font-size: 14px; color: var(--gold-ink); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic figure { margin: 0; border-radius: 8px; overflow: hidden; background: var(--cream); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.mosaic figure:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic figure:first-child img { aspect-ratio: auto; }

/* ---------- inner pages: responsive ---------- */
@media (max-width: 1180px) {
  .tiles--5 { grid-template-columns: repeat(3, 1fr); }
  .tiles--4, .gallery--4 { grid-template-columns: repeat(2, 1fr); }
  .subjects { grid-template-columns: repeat(4, 1fr); }
  .hopeful { grid-template-columns: repeat(4, 1fr); }
  .eip--cards { grid-template-columns: repeat(2, 1fr); }
  .skills4 { grid-template-columns: repeat(2, 1fr); }
  .reviews { columns: 2; }
  .nav__item--drop .drop { left: auto; right: -18px; }
}
@media (max-width: 960px) {
  .sband { grid-template-columns: repeat(4, 74vw); height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .sband::-webkit-scrollbar { display: none; }
  .sband__item { aspect-ratio: 4/5; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .sec__head, .intro, .duo, .duo--wide, .duo--rev.duo--wide, .crow, .crow--rev, .feature-q { grid-template-columns: 1fr; }
  .sec__head > p { justify-self: start; }
  .duo--rev .duo__media, .crow--rev .crow__media, .feature-q--rev .q__art { order: 0; }
  .tiles, .gallery { grid-template-columns: repeat(2, 1fr); }
  .path, .path--3 { grid-template-columns: 1fr 1fr; }
  .path li:nth-child(2) { border-right: 0; }
  .path li:nth-child(3) { padding-left: 0; }
  .path li:nth-child(n+3) { border-top: 1px solid var(--line-l); }
  .sec--paper .path li:nth-child(n+3), .sec--cream .path li:nth-child(n+3), .sec--white .path li:nth-child(n+3) { border-top-color: var(--line); }
  .nums { grid-template-columns: 1fr 1fr; }
  .nums > div:nth-child(2) { border-right: 0; }
  .nums > div:nth-child(3) { padding-left: 0; }
  .nums > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .ccards { grid-template-columns: 1fr; }
  .chron__item--photo .chron__body { grid-template-columns: 1fr; }
  .feature-q .q__art { max-width: 300px; }
  .quote-card { position: relative; left: auto; bottom: auto; width: auto; margin: -50px 16px 0; }
  .cards2 { grid-template-columns: 1fr; }
  .partners-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .phero { min-height: 88svh; }
  .phero--short { min-height: 70svh; }
  .phero--plain { min-height: 0; }
  .phero__in { padding-top: calc(var(--hdr-h) + 70px); }
  .phero h1 { font-size: clamp(42px, 12.4vw, 60px); }
  .phero::before { background: linear-gradient(to top, rgba(7, 39, 36, .96) 0%, rgba(7, 39, 36, .7) 45%, rgba(7, 39, 36, .25) 75%, rgba(7, 39, 36, .5) 100%); }
  .phero__cta .btn { flex: 1 1 100%; }
  .crumbs ol { font-size: 12px; margin-bottom: 18px; }
  .tiles, .tiles--2, .tiles--4, .tiles--5, .gallery, .gallery--2, .gallery--4, .vgrid, .next { grid-template-columns: 1fr; }
  .tiles--5 .tile__img { aspect-ratio: 4/3; }
  .g--wide { grid-column: auto; }
  .g--tall { grid-row: auto; }
  .g--tall img { aspect-ratio: 3/2; }
  .subjects { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .subject figcaption { font-size: 17px; }
  .hopeful { grid-template-columns: repeat(2, 1fr); }
  .hopeful li:last-child { grid-column: 1 / -1; }
  .path, .path--3 { grid-template-columns: 1fr; }
  .path li, .path li + li { border-right: 0; padding: 22px 0 12px; border-top: 1px solid var(--line-l); }
  .path li:first-child { border-top: 0; }
  .sec--paper .path li, .sec--cream .path li, .sec--white .path li { border-top-color: var(--line); }
  .nums > div { padding: 22px 14px 20px 0; }
  .nums > div:nth-child(even) { padding-left: 16px; }
  .nums span { font-size: 13.5px; }
  .reviews { columns: 1; }
  .eip--cards, .skills4 { grid-template-columns: 1fr; }
  .chron::before { left: 6px; }
  .chron__item { grid-template-columns: 1fr; padding: 0 0 42px 34px; }
  .chron__item::before { left: 0; top: 6px; }
  .chron__year { padding: 0 0 10px; font-size: 32px; }
  .chron__body { padding-left: 0; }
  .crow__media { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .crow__media figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .crow__media figure img, .crow__media figure:first-child img { aspect-ratio: 4/3; }
  .duo__media--pair { padding-bottom: 50px; }
  .duo__media--pair .duo__img:first-child { width: 86%; }
  .duo__media--pair .duo__img + .duo__img { width: 50%; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .next a { min-height: 220px; }
}

/* a counting number inside a big stat keeps the stat's size (the label rule ".stat span" / ".nums span" must not reach it) */
.stat .stat__big .num, .nums b .num { font: inherit; color: inherit; letter-spacing: inherit; max-width: none; }

/* utility bar links (Careers, Contact) and the header on mid-size screens: "Inclusive education" is in the Learning menu too */
.util a.util__link { font-weight: 500; color: rgba(251, 248, 242, .78); }
.util a.util__link:hover, .util a.util__link[aria-current="page"] { color: var(--white); }
.util__sep { width: 1px; height: 14px; background: rgba(196, 164, 106, .35); }
@media (max-width: 1180px) { .nav > a[href="/special-needs/"] { display: none; } }
@media (max-width: 1180px) { .util__langs span:nth-child(n+3) { display: none; } }
.duo__arch { overflow: clip; }

/* ---------- articles and the IGCSE past papers page (AEO package, 12 Nov 2026) ---------- */
.prose { width: min(760px, 100% - var(--gutter) * 2); margin: 0 auto; color: var(--ink); font-size: clamp(17px, 1.2vw, 19px); line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 400 clamp(28px, 2.6vw, 38px)/1.12 var(--serif); color: var(--pine-dd); letter-spacing: -.015em; margin: 1.9em 0 .5em; }
.prose h3 { font: 600 clamp(18px, 1.3vw, 21px)/1.3 var(--sans); color: var(--pine-dd); margin: 1.6em 0 .3em; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--gold-ink, var(--pine)); font-weight: 600; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--pine-dd); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; border-radius: var(--radius, 12px); display: block; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose .answer { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.6; padding: 20px 24px; border-left: 3px solid var(--gold); background: var(--cream); border-radius: 0 10px 10px 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 600 13px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-l); margin: 18px 0 0; }
.byline { font: 600 13px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .72; margin: 18px 0 0; }  /* {{byline}}: who wrote the page and when it last changed (build_pages.py) */
.related { width: min(760px, 100% - var(--gutter) * 2); margin: clamp(48px, 6vw, 80px) auto 0; padding-top: 28px; border-top: 1px solid var(--line); }
.related p { font: 600 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related a { color: var(--pine); font-weight: 600; }
.posts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.posts a { display: block; height: 100%; padding: 22px 24px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--pine-dd); text-decoration: none; font: 400 22px/1.2 var(--serif); }
.posts a small { display: block; font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.posts a:hover { border-color: var(--gold); }
.papers { width: min(980px, 100% - var(--gutter) * 2); margin: 0 auto; display: grid; gap: 14px; }
.papers details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.papers summary { cursor: pointer; padding: 20px 24px; font: 400 clamp(22px, 2vw, 28px)/1.2 var(--serif); color: var(--pine-dd); list-style-position: inside; }
.papers summary small { font: 600 13px/1 var(--sans); color: var(--muted); letter-spacing: .04em; margin-left: 8px; }
.papers .tbl { overflow-x: auto; padding: 0 24px 24px; }
.papers table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.papers td { padding: 7px 10px 7px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.papers td strong { display: block; font: 600 15px/1.3 var(--sans); color: var(--pine-dd); padding-top: 10px; }
.papers td p { margin: 0; }
.papers a { color: var(--pine); }
@media (max-width: 640px) { .papers .tbl { padding: 0 14px 18px; } .papers td { font-size: 14px; padding-right: 8px; } }

/* ---------- legal pages + footer legal links (13 Nov 2026, the move to pinehills.edu.my) ---------- */
.foot__legal a { color: rgba(251, 248, 242, .78); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.foot__legal a:hover { color: var(--white); }
.prose .legal-contact { padding: 18px 20px; background: var(--cream); border-radius: 10px; }
/* the page-not-found page (404.html on the live site) */
.nf__links { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 1.4em; }
.nf__links .btn { color: var(--paper); text-decoration: none; }  /* beats .prose a, which made the labels pine on pine */

/* ---------- guides for parents (17 Nov 2026, weekly care: tools/guides.py) ---------- */
.guides-grid .tile h3 { font-size: 23px; }
/* 18 Nov 2026 (night sampling): no empty slot at the end of the guides grid. On a 3-column screen the grid runs on 6
   tracks, each card spans 2, and a last row of 1 or 2 cards is centred; on a 2-column screen a lone last card is centred. */
@media (min-width: 961px) {
  .tiles.guides-grid { grid-template-columns: repeat(6, 1fr); }
  .tiles.guides-grid > * { grid-column: span 2; }
  .tiles.guides-grid > :last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
  .tiles.guides-grid > :nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .tiles.guides-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 26px) / 2); }
}
.phero--guide h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.06; max-width: 22ch; }
.phero--guide .phero__lead { max-width: 60ch; }
.guide { width: min(var(--wrap), 100% - var(--gutter) * 2); margin: 0 auto; }
.guide .prose { width: auto; margin: 0; max-width: 700px; }
.guide__toc .toc { border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin: 0 0 32px; }
.guide__toc .toc summary { padding: 14px 18px; font: 600 14px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--pine-dd); }
.guide__toc .toc summary::after { width: 28px; height: 28px; }
.guide__toc ol { list-style: none; margin: 0; padding: 0 18px 16px; display: grid; gap: 2px; counter-reset: toc; }
.guide__toc li { counter-increment: toc; display: grid; grid-template-columns: 26px 1fr; font-size: 15px; line-height: 1.4; }
.guide__toc li::before { content: counter(toc) "."; color: var(--gold-ink); font-weight: 600; padding-top: 6px; }
.guide__toc a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.guide__toc a:hover, .guide__toc a.is-current { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
.prose h2[id] { scroll-margin-top: 110px; }
.guide__hero { margin: 1.6em 0 1.8em; }
.guide__hero img { aspect-ratio: 3/2; object-fit: cover; }
.takeaways { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; padding: 22px 26px 18px; }
.prose .takeaways h2 { font: 600 14px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--pine-dd); margin: 0 0 10px; }
.takeaways ul { margin: 0; }
.prose .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin: 1.6em 0; }
.prose .tbl:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose table:has(thead th:nth-child(4)) { min-width: 560px; }  /* 4+ columns scroll in their box on a phone */
.prose caption { caption-side: top; text-align: left; padding: 14px 18px 10px; font: 600 15px/1.35 var(--sans); color: var(--pine-dd); }
.prose thead th { background: var(--pine-dd); color: var(--paper); font: 600 14px/1.3 var(--sans); letter-spacing: .04em; text-align: left; padding: 12px 18px; }
.prose td, .prose tbody th { padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose tbody tr:nth-child(even) { background: var(--paper); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font: 400 clamp(20px, 1.6vw, 24px)/1.4 var(--serif); color: var(--pine-dd); }
.guide__faq { border-bottom: 1px solid var(--line); }
.guide__faq summary { font-size: clamp(19px, 1.5vw, 22px); }
.prose details > div p { color: var(--ink); padding-right: 0; }
.sources { font-size: 15px; }
.sources a { word-break: break-word; }
.guide-cta { margin-top: 2.4em; padding: clamp(24px, 3vw, 36px); border-radius: 14px; background: var(--pine-dd); color: var(--paper); }
.prose .guide-cta p { color: rgba(251, 248, 242, .82); }
.prose .guide-cta .guide-cta__title { font: 400 clamp(26px, 2.4vw, 34px)/1.15 var(--serif); color: var(--paper); margin: 0 0 .4em; }
.prose .guide-cta .btn { text-decoration: none; }
.prose .guide-cta .btn--pine { background: var(--gold); color: var(--pine-dd); }
.prose .guide-cta .btn--line-dark { color: var(--paper); border-color: rgba(251, 248, 242, .5); }
@media (min-width: 1100px) {
  .guide { display: grid; grid-template-columns: 250px minmax(0, 700px); gap: clamp(56px, 6vw, 110px); justify-content: start; align-items: start; }
  .guide__toc { position: sticky; top: 110px; }
  .guide__toc .toc { margin: 0; background: transparent; border: 0; }
  .guide__toc .toc summary { padding: 0 0 10px; pointer-events: none; }
  .guide__toc .toc summary::after { display: none; }
  .guide__toc ol { padding: 0; }
}
@media (max-width: 640px) {
  .takeaways { padding: 18px 18px 14px; }
  .prose table { font-size: 15px; }
  .prose td, .prose tbody th, .prose thead th, .prose caption { padding-left: 14px; padding-right: 14px; }
}

/* =====================================================================================================
   PHASE 2 DESIGN SYSTEM (AEO package, 18 Nov 2026). P/design-system/DESIGN-SYSTEM.md names every class below.
   FROZEN after Phase 2: a change here changes every page's ?v= tag and re-opens every page review. Styling for one
   page goes in assets/css/p-<stem>.css (front matter "css": ["p-<stem>"]).
   ===================================================================================================== */

/* ---------- shared fixes (every page, the homepage included; no markup changed) ---------- */
/* 761-860 px: the utility bar's links ran up to 78 px past the screen (sideways scroll). There the four-language
   strip steps aside and the links keep the bar to themselves; nothing changes at any other width. */
@media (min-width: 761px) and (max-width: 860px) {
  .util__langs { display: none; }
  .util__in { justify-content: flex-end; }
}
/* Card grids never leave an empty slot. Cards that lead somewhere (.tiles) are laid out as rows that wrap and centre
   their last row, so 3 cards on a 2-wide screen or 5 on a 3-wide one end on a centred row, never a hole.
   (Galleries keep their grid: their wide and tall photos fill the rows; DESIGN-SYSTEM.md "Grid counts".) */
.tiles, .tiles--2, .tiles--4, .tiles--5 { display: flex; flex-wrap: wrap; justify-content: center; --tg: 26px; gap: var(--tg); }
.tiles > * { flex: 0 1 calc((100% - var(--tg) * 2) / 3); min-width: 0; }
.tiles--2 > * { flex-basis: calc((100% - var(--tg)) / 2); }
.tiles--4 { --tg: 20px; }
.tiles--4 > * { flex-basis: calc((100% - var(--tg) * 3) / 4); }
.tiles--5 { --tg: 18px; }
.tiles--5 > * { flex-basis: calc((100% - var(--tg) * 4) / 5); }
/* the guides hub's 6-track centring (18 Nov night sampling) is now the general rule above */
.tiles.guides-grid > *, .tiles.guides-grid > :last-child:nth-child(3n+1), .tiles.guides-grid > :nth-last-child(2):nth-child(3n+1),
.tiles.guides-grid > :last-child:nth-child(odd) { grid-column: auto; justify-self: auto; width: auto; }
@media (max-width: 1180px) {
  .tiles--5 > * { flex-basis: calc((100% - var(--tg) * 2) / 3); }
  .tiles--4 > * { flex-basis: calc((100% - var(--tg)) / 2); }
}
@media (max-width: 960px) { .tiles > *, .tiles--5 > * { flex-basis: calc((100% - var(--tg)) / 2); } }
@media (max-width: 760px) { .tiles > *, .tiles--2 > *, .tiles--4 > *, .tiles--5 > * { flex-basis: 100%; } }
/* the seven HOPEFUL letters: 7 in a row; 4 + 3 centred at 761-1180 px; 2 a row with Love across on phones */
@media (min-width: 761px) and (max-width: 1180px) {
  .hopeful { display: flex; flex-wrap: wrap; justify-content: center; }
  .hopeful li { flex: 0 1 calc((100% - 36px) / 4); }
}
/* video grids: a lone last video on a 2-wide screen sits centred across the row */
@media (min-width: 761px) and (max-width: 960px) {
  .vgrid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 22px) / 2); }
}

/* ---------- the short answer (every deepened page): .lede = answer + byline, beside key facts ---------- */
.sec--lede { padding: clamp(56px, 7vw, 104px) 0 clamp(52px, 6vw, 92px); }
.lede { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.lede__answer { margin: 0; font: 400 clamp(19px, 1.75vw, 27px)/1.5 var(--serif); color: var(--pine-dd); letter-spacing: -.004em; max-width: 36em; text-wrap: pretty; }
.lede__answer a { color: var(--pine); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.lede__answer a:hover { text-decoration-color: currentColor; }
.lede .byline, .qa .byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; opacity: 1; color: var(--muted); font-size: 12.5px; }
.lede .byline::before, .qa .byline::before { content: ""; width: 36px; height: 2px; background: var(--gold); flex: none; }
.lede > *, .lede__side, .lede__side > * { min-width: 0; }
.lede__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.lede__side .btn { justify-self: start; }
.lede__side .finder { box-shadow: 0 0 0 1px var(--line); }

/* ---------- key facts: a list of labelled facts (.facts) or a band across the page (.facts--band) ---------- */
.facts { margin: 0; display: grid; border-top: 2px solid var(--gold); }
.facts > div { display: grid; gap: 4px; padding: 15px 0 14px; border-bottom: 1px solid var(--line); }
.facts dt { font: 700 12px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.facts dd { margin: 0; font: 400 clamp(20px, 1.55vw, 24px)/1.25 var(--serif); color: var(--pine-dd); }
.facts dd small { display: block; margin-top: 3px; font: 400 14.5px/1.45 var(--sans); color: var(--muted); }
.facts dd a { color: var(--pine); text-decoration: none; border-bottom: 1px solid var(--gold); }
.facts dd a:hover { border-bottom-color: var(--pine); }
.facts--band { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts--band > div { padding: 26px 26px 24px; border-bottom: 0; border-right: 1px solid var(--line); }
.facts--band > div:first-child { padding-left: 0; }
.facts--band > div:last-child { border-right: 0; }
.sec--pine .facts > div, .sec--pine .facts--band { border-color: var(--line-l); }
.sec--pine .facts dt { color: var(--gold-l); }
.sec--pine .facts dd { color: var(--paper); }
.sec--pine .facts dd small { color: rgba(251, 248, 242, .74); }

/* ---------- boxed tables (.tbox > table.dtable): header row in pine, rows ruled, scrolls inside its box ---------- */
.tbox { overflow-x: auto; border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -56px rgba(7, 39, 36, .5); }
.tbox:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; color: var(--ink); }
.dtable caption { caption-side: top; text-align: left; padding: 18px 24px 14px; font: 700 12.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.dtable thead th { background: var(--pine-dd); color: var(--paper); font: 600 12.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-align: left; padding: 15px 24px; white-space: nowrap; }
.dtable tbody th, .dtable td { padding: 18px 24px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.dtable tbody tr:first-child > * { border-top: 0; }
.dtable tbody th { font: 400 clamp(20px, 1.6vw, 24px)/1.2 var(--serif); color: var(--pine-dd); }
.dtable tbody th small { display: block; margin-top: 6px; font: 700 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.dtable tbody tr:nth-child(even) { background: var(--paper); }
.dtable td a, .dtable th a { color: var(--pine); font-weight: 600; }
.dtable td b { color: var(--pine-dd); font-weight: 600; white-space: nowrap; }
.dtable:has(thead th:nth-child(4)) { min-width: 700px; }
.dtable__who { display: flex; align-items: center; gap: 16px; }
.dtable__who img { width: 64px; height: 80px; flex: none; object-fit: cover; border-radius: 6px; background: var(--cream); }
.tbox + .note, .tbox + .sec-more { margin-top: 22px; }

/* ---------- numbered steps, top to bottom on a gold spine (.steps) ---------- */
.steps { display: grid; counter-reset: st; }
.steps > li { counter-increment: st; position: relative; padding: 0 0 34px 78px; min-height: 64px; }
.steps > li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: italic 400 21px/1 var(--serif); color: var(--pine-dd); background: var(--white); box-shadow: inset 0 0 0 1px var(--gold); }
.steps > li::after { content: ""; position: absolute; left: 27px; top: 62px; bottom: 6px; width: 1px; background: rgba(196, 164, 106, .7); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { font: 400 clamp(22px, 1.8vw, 27px)/1.2 var(--serif); color: var(--pine-dd); margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--muted); max-width: 60ch; }
.steps p + p { margin-top: 8px; }
.steps a { color: var(--pine); font-weight: 600; }
.sec--pine .steps > li::before { background: transparent; color: var(--gold-l); }
.sec--pine .steps h3 { color: var(--paper); }
.sec--pine .steps p { color: rgba(251, 248, 242, .78); }
.sec--pine .steps a { color: var(--gold-l); }

/* ---------- checklist: a card of ticks (.checklist + the homepage's .ticks) ---------- */
.checklist { background: var(--white); border-radius: 12px; padding: clamp(24px, 3vw, 38px); box-shadow: 0 0 0 1px var(--line); border-top: 3px solid var(--gold); }
.checklist__title { margin: 0; font: 400 clamp(24px, 2.1vw, 31px)/1.15 var(--serif); color: var(--pine-dd); }
.checklist__title + p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.checklist .ticks { margin-top: 20px; }
.checklist .ticks li { font-size: 16px; }
.checklist .ticks a { color: var(--pine); font-weight: 600; }
.ticks--2 { grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.ticks--2 > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sec--cream .checklist { box-shadow: none; }

/* ---------- questions page (.qa): sticky "On this page" (the guides' .guide__toc) beside themed groups ---------- */
.qa { width: min(var(--wrap), 100% - var(--gutter) * 2); margin: 0 auto; }
.qa__group { scroll-margin-top: 100px; padding-top: clamp(50px, 6vw, 84px); }
.qa > div > .qa__group:first-child { padding-top: 0; }
.qa__group + .qa__group { margin-top: clamp(50px, 6vw, 84px); border-top: 1px solid var(--line); }
.qa__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: 14px; }
.qa__num { display: block; font: italic 400 clamp(54px, 5.6vw, 86px)/.85 var(--serif); color: var(--gold-ink); margin-bottom: 14px; }
.qa__top .h3 { margin: 0 0 12px; }
.qa__top p { margin: 0; color: var(--muted); max-width: 52ch; }
.qa__top figure { margin: 0; border-radius: 8px; overflow: hidden; background: var(--cream); }
.qa__top figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.qa .faq__list { border-bottom: 0; }  /* design review r1 (R1-23): the next group's top rule is the one line between groups */
.qa details > div p { padding-right: 0; max-width: 68ch; }
.qa details > div a { color: var(--pine); font-weight: 600; }
.qa .guide__toc li { grid-template-columns: 30px 1fr; }
.qa .guide__toc small { color: var(--muted); font-size: 13px; margin-left: 6px; white-space: nowrap; }
@media (min-width: 1100px) {
  .qa { display: grid; grid-template-columns: 250px minmax(0, 880px); gap: clamp(56px, 6vw, 110px); justify-content: start; align-items: start; }
}

/* ---------- related pages row: the photo links of .next, three across (.next--3) ---------- */
@media (min-width: 761px) { .next--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- jump links in a page hero (the hero's chips, as links down the page) ---------- */
.phero__meta a { font: 600 12.5px/1 var(--sans); letter-spacing: .06em; padding: 9px 13px; border-radius: 99px; border: 1px solid rgba(227, 207, 165, .38); color: var(--gold-l); background: rgba(7, 39, 36, .35); text-decoration: none; transition: background-color .3s, color .3s; }
.phero__meta a:hover { background: var(--gold); color: var(--pine-dd); }

/* ---------- inner pages: the age finder runs as one ruler of 13 ages ----------
   From 761 px all thirteen sit in one row of equal cells (design review r1, R1-04: the scrolling ruler hid 14-16 in a
   392 px card); under 761 px it scrolls inside its box, with a fade on the right edge that says there is more. */
body:not([data-page-type="home"]) .finder__ages { grid-template-columns: repeat(13, minmax(0, 1fr)); grid-auto-flow: row; gap: 4px; }
body:not([data-page-type="home"]) .finder__ages button { min-width: 0; padding-inline: 0; font-size: 14px; }

/* ---------- Phase 2 components: responsive ---------- */
@media (max-width: 960px) {
  .lede, .qa__top { grid-template-columns: 1fr; }
  .qa__top figure { max-width: 520px; }
  .facts--band { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .facts--band > div:nth-child(2n) { border-right: 0; }
  .facts--band > div:nth-child(2n+1) { padding-left: 0; }
  .facts--band > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts--band > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ticks--2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .facts--band { grid-template-columns: 1fr; }
  .facts--band > div { padding: 18px 0; border-right: 0; }
  .facts--band > div + div { border-top: 1px solid var(--line); }
  .dtable { font-size: 15px; }
  .dtable thead th, .dtable tbody th, .dtable td, .dtable caption { padding-left: 16px; padding-right: 16px; }
  .dtable__who img { width: 48px; height: 60px; }
  .steps > li { padding-left: 66px; }
  .steps > li::before { width: 46px; height: 46px; font-size: 18px; }
  .steps > li::after { left: 23px; top: 54px; }
  body:not([data-page-type="home"]) .finder__ages { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44px; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 0 40px 2px 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  body:not([data-page-type="home"]) .finder__ages::-webkit-scrollbar { display: none; }
  body:not([data-page-type="home"]) .finder__ages button { font-size: 14.5px; }
}

/* =====================================================================================================
   DESIGN REVIEW r1 (18 Nov 2026, the last change before the freeze): P/design-system/review-pack/design-review-r1.md
   ===================================================================================================== */

/* ---------- R1-07 the stacked chapter head: kicker, h2, then the paragraph under it on the left ----------
   The split head (.sec__head: h2 left, paragraph far right) stays only above a full-width object (a table, gallery or
   card band), at most twice a page; every other chapter that needs a head uses this one. */
.sec__head--stack { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.sec__head--stack > p { justify-self: start; max-width: 56ch; }

/* ---------- R1-13 the boxed table on a phone: each row a block, the row's name as its title, every cell labelled ----------
   Under 761 px .dtable stacks (the header row is kept for screen readers only); each td carries its column's name in
   data-label. A table marked .dtable--wide keeps the old sideways scroll inside its box. */
@media (max-width: 760px) {
  .dtable:not(.dtable--wide), .dtable:not(.dtable--wide) tbody, .dtable:not(.dtable--wide) tr,
  .dtable:not(.dtable--wide) tbody th, .dtable:not(.dtable--wide) td { display: block; }
  .dtable:not(.dtable--wide):has(thead th:nth-child(4)) { min-width: 0; }
  .dtable:not(.dtable--wide) caption { display: block; }
  .dtable:not(.dtable--wide) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dtable:not(.dtable--wide) tbody tr { padding: 18px 16px 16px; border-top: 1px solid var(--line); }
  .dtable:not(.dtable--wide) tbody tr:first-child { border-top: 0; }
  .dtable:not(.dtable--wide) tbody th, .dtable:not(.dtable--wide) td { padding: 0; border-top: 0; }
  .dtable:not(.dtable--wide) tbody th { margin-bottom: 10px; }
  .dtable:not(.dtable--wide) td + td, .dtable:not(.dtable--wide) th + td { margin-top: 8px; }
  .dtable:not(.dtable--wide) td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 700 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
  .dtable:not(.dtable--wide) td b { white-space: normal; }
}

/* ---------- the boxed table with its pupils: larger stage thumbnails, so each row reads as a child (about) ---------- */
.dtable--pupils .dtable__who { gap: 20px; }
.dtable--pupils .dtable__who img { width: 96px; height: 120px; border-radius: 8px; }
@media (max-width: 760px) { .dtable--pupils .dtable__who img { width: 64px; height: 80px; } }

/* ---------- ticks with a name: the name in serif on its own line, the sentence under it ---------- */
.ticks--named { gap: 18px; }
.ticks--named li { padding-left: 34px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.ticks--named li b { display: block; margin-bottom: 2px; font: 400 clamp(20px, 1.6vw, 23px)/1.25 var(--serif); color: var(--pine-dd); }
.ticks--named li::before { top: 5px; }

/* ---------- a photo with a card overlapping its lower edge (the checklist, like the quote card on a duo) ---------- */
.duo__media--over { display: grid; }
.duo__media--over .duo__img img { aspect-ratio: 3 / 2; }
.duo__media--over > .checklist { position: relative; z-index: 1; margin: -96px 0 0 clamp(24px, 9%, 72px); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(7, 39, 36, .5); }
@media (max-width: 960px) { .duo__media--over > .checklist { margin: -50px 12px 0; } }

/* ---------- one wide photo across the page, with a gold-caps caption (the gallery's .g, alone) ---------- */
.g--band { margin: 0 0 clamp(36px, 4.5vw, 56px); }
.g--band img { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .g--band img { aspect-ratio: 3 / 2; } }

/* ---------- campus mosaic: four buildings two by two, each named under its photo (about's founder chapter) ---------- */
.cmosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; margin: 0; padding: 0; list-style: none; }
.cmosaic figure { margin: 0; }
.cmosaic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--paper); }
.cmosaic figcaption { margin-top: 12px; display: grid; gap: 3px; }
.cmosaic figcaption span { font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.cmosaic figcaption b { font: 400 clamp(21px, 1.7vw, 25px)/1.15 var(--serif); color: var(--pine-dd); }
.cmosaic figcaption small { font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 760px) { .cmosaic { gap: 22px 12px; } .cmosaic figcaption b { font-size: 19px; } .cmosaic figcaption small { font-size: 13.5px; } }

/* ---------- key facts that are sentences (a quote or a line per item): smaller serif, looser leading ---------- */
.facts--long dd { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.45; }
.facts--long dd q { quotes: "\201C" "\201D"; }
.duo__text > .facts--long, .duo__text > .ticks--named, .duo__text > .steps--years { margin-top: 30px; }

/* ---------- years down a gold spine (.steps--years): a dot per year instead of the step number (about's founder chapter) ---------- */
.steps--years > li { padding: 0 0 24px 46px; min-height: 0; }
.steps--years > li::before { content: ""; left: 7px; top: 12px; width: 14px; height: 14px; background: var(--gold); box-shadow: 0 0 0 5px rgba(196, 164, 106, .22); }
.steps--years > li::after { left: 13px; top: 36px; bottom: -6px; }
.steps--years h3 { margin: 0 0 4px; font-size: clamp(26px, 2.2vw, 32px); color: var(--pine); }
.duo__text > .steps--years + p { margin-top: 26px; }

/* ---------- speed pass (19 Nov 2026): the inner pages' opening animation runs on CSS ----------
   Same moves, timings and curves as the GSAP intro it replaces (main.js, ".phero"): the photo settles, the title rises
   word by word (split at build time, tools/build_pages.py presplit), the crumbs, kicker, lead, buttons, tags and video
   fade up (--sx = their order on the page, also set at build time). It starts when the page shows, not after the
   animation scripts load. Keyframes sx-fade-y / sx-rise and the .sx-* pieces are in style.css. */
@keyframes sx-settle { from { scale: 1.12; } }
@media (prefers-reduced-motion: no-preference) {
  .js .phero__img img { animation: sx-settle 2.4s cubic-bezier(.33, 1, .68, 1) backwards; }
  .js body:has(.phero) .hdr { --sx-y: -14px; animation: sx-fade-y 1.2s cubic-bezier(.16, 1, .3, 1) .15s backwards; }
  .js .phero h1 .sx-w { --sx-rise: 110%; animation: sx-rise 1.3s cubic-bezier(.16, 1, .3, 1) calc(.25s + var(--i) * .045s) backwards; }
  .js .phero .crumbs, .js .phero .kicker { --sx-y: 14px; animation: sx-fade-y 1.1s cubic-bezier(.16, 1, .3, 1) .2s backwards; }
  .js .phero__lead, .js .phero__cta, .js .phero__meta, .js .phero__video { --sx-y: 20px; animation: sx-fade-y 1.2s cubic-bezier(.16, 1, .3, 1) calc(.6s + var(--sx, 0) * .08s) backwards; }
}
/* Text-led openings (.phero--plain: the guides and their hub, the 2024 articles, the legal pages, the video page, the
   past-papers page, the 404): the lead, buttons, tags and video ARE the page's content, so they show at once and only
   the title rises. Chrome records an element that fades in from transparent on CSS as painted only when the fade ends,
   which put these pages' largest paint 1.8 s after the first one (19 Nov 2026 measurements). */
.js .phero--plain .phero__lead, .js .phero--plain .phero__cta, .js .phero--plain .phero__meta, .js .phero--plain .phero__video { animation: none; }
