/* Facilities only: linked after pages.css by the page's front matter "css": ["p-facilities"].
   AEO package Phase 3 (author a3) and round 2 (w2e, 18 Nov 2026). Tokens from style.css; components from pages.css. */

/* the hero: a pupil on the Cheras climbing wall; on a phone the frame centres on her and the wash is deeper,
   so the crumbs, kicker and chips keep at least 4.5:1 over the bright wall */
.phero .crumbs ol { color: rgba(251, 248, 242, .86); }
@media (min-width: 761px) {
  .phero::before { background: linear-gradient(to top, rgba(7, 39, 36, .94) 0%, rgba(7, 39, 36, .66) 38%, rgba(7, 39, 36, .28) 70%, rgba(7, 39, 36, .5) 100%),
    linear-gradient(90deg, rgba(7, 39, 36, .86), rgba(7, 39, 36, .55) 34%, transparent 64%); }
}
@media (max-width: 760px) {
  .phero__img img { object-position: 60% 50%; }
  .phero::before { background: linear-gradient(to top, rgba(7, 39, 36, .96) 0%, rgba(7, 39, 36, .9) 50%, rgba(7, 39, 36, .84) 72%, rgba(7, 39, 36, .5) 100%); }
}

/* the school's list as a table: the facility, its campus, what it is for */
@media (min-width: 761px) {
  .fac-list tbody th { width: 15em; }
  .fac-list td:nth-child(2) { width: 17em; }
}
.fac-list + .note, .tbox + .note { margin-top: 22px; }
#list .note { max-width: 980px; }

/* a mosaic, not a strip: the Kuala Lumpur pool large, two smaller beside it */
#list .fac-mosaic { margin-top: clamp(36px, 4vw, 54px); }
@media (min-width: 761px) {
  .fac-mosaic { grid-template-columns: 2fr 1fr; }
  .fac-mosaic > :first-child { grid-row: span 2; }
  .fac-mosaic > :first-child img { aspect-ratio: auto; height: 100%; }
}
.g > a { display: block; height: 100%; }
/* gallery captions: a deeper band behind the label and title (pages.css's fade measured under 4.5:1 on bright photos) */
.g figcaption { padding-top: 30px; background: linear-gradient(to top, rgba(7, 39, 36, .92), rgba(7, 39, 36, .87) 66%, rgba(7, 39, 36, 0)); }
.g > a + figcaption { pointer-events: none; }

/* the school's own words about the rink */
.rink-q { margin: 22px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold); }
.rink-q blockquote { margin: 0; }
.rink-q p { margin: 0; font: italic 400 clamp(19px, 1.55vw, 23px)/1.45 var(--serif); color: var(--pine-dd); }
.rink-q figcaption { margin-top: 10px; font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }

/* inline links in the chapter text: pine and bold, like the rest of the page's links */
#rink .duo__text a, #calm .duo__text a { color: var(--pine); font-weight: 600; }

/* a short caption on a solid pine pill over the chapter photos (readable on any photo) */
.duo__img { position: relative; }
.cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 11px; border-radius: 99px;
  background: var(--pine-dd); color: var(--paper); font: 600 12.5px/1.15 var(--sans); letter-spacing: .03em; pointer-events: none; }

/* campus by campus: the table (the campus name is the link), then each campus's photos one after another,
   the large photo changing sides from campus to campus */
@media (min-width: 761px) {
  .fac-table tbody th { width: 1%; white-space: nowrap; padding-right: 40px; }
  .fac-table td { max-width: 64ch; }
}
.fac-campus { margin-top: clamp(44px, 5vw, 68px); }
.fac-campus__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 18px;
  font: 400 clamp(25px, 2.3vw, 34px)/1.15 var(--serif); color: var(--pine-dd); }
.fac-campus__t small { font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.fac-camp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 16vw, 240px); gap: 16px; }
.fac-camp .g--wide { grid-column: span 2; }
.fac-camp .g img { aspect-ratio: auto; height: 100%; }
.fac-camp__note { grid-column: span 2; display: flex; align-items: flex-end; padding: 24px 28px; border-radius: 8px;
  background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.fac-camp__note p { margin: 0; max-width: 44ch; font: 400 clamp(19px, 1.6vw, 23px)/1.4 var(--serif); color: var(--pine-dd); }
.fac-camp__note a { color: var(--pine); font-weight: 600; }
@media (min-width: 761px) and (max-width: 960px) { .fac-camp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .fac-camp { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
  .fac-camp .g--wide, .fac-camp__note { grid-column: span 2; }
  .fac-camp .g img { aspect-ratio: 4 / 3; height: auto; }
  .fac-camp .g--wide img { aspect-ratio: 16 / 9; }
  .fac-camp__note { padding: 18px 20px; }
  .fac-camp__note p { font-size: 18px; }
}

/* activities on pine: four groups, each a heading, the sentence that ties it to the facilities, and its chips */
.fac-groups { display: grid; gap: 22px; margin: 26px 0 0; }
.fac-groups > div { padding-top: 18px; border-top: 1px solid var(--line-l); }
.fac-groups h3 { margin: 0 0 6px; font: 400 clamp(21px, 1.7vw, 25px)/1.22 var(--serif); }
.fac-groups p { margin: 0; }
.fac-chips { margin-top: 12px; }
#activities .duo__text > p:last-child { margin-top: 26px; }
#activities .duo__text a { color: var(--gold-l); font-weight: 600; }
@media (min-width: 961px) { #activities .duo__media { position: sticky; top: 110px; } }

/* everyday school life: three short answers under one heading */
.day { display: grid; gap: 22px; margin-top: 24px; }
.day > div { padding-top: 18px; border-top: 1px solid var(--line); }
.day .day__t { margin: 0 0 6px; max-width: none; font: 400 clamp(22px, 1.8vw, 26px)/1.2 var(--serif); color: var(--pine-dd); }
.day p { margin: 0; color: var(--muted); max-width: 60ch; }
.day a { color: var(--pine); font-weight: 600; }

/* each question is an h3 inside its summary (for the engines), styled exactly as the summary is */
.faq-item summary h3 { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }

/* the two cards at the foot: a deeper wash where the small label sits */
.next a::before { background: linear-gradient(to top, rgba(7, 39, 36, .94), rgba(7, 39, 36, .62) 55%, rgba(7, 39, 36, .3)); }
