/* Little Pine Hills (/best-preschool-in-selangor/) only: linked after pages.css by the page's front matter
   "css": ["p-best-preschool-in-selangor"]. AEO package Phase 3, 18 Nov 2026 (author a1; round-2 rework w2b).
   Tokens from style.css. */

/* phase2-lessons 10: each FAQ question is an h3 inside its summary; it looks exactly like the summary did */
.faq-item summary h3 { flex: 1; margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }

/* the banner (the sports-day photo): the children's faces stay in frame on a phone, and the wash under the crumbs,
   kicker and lead is deep enough for 4.5:1 at 390, 768 and 1440 (round 2, measured with PIL on fresh screenshots) */
.phero__img img { object-position: 50% 30%; }
.phero::before {
  background: linear-gradient(to top, rgba(7, 39, 36, .95) 0%, rgba(7, 39, 36, .7) 40%, rgba(7, 39, 36, .5) 66%, rgba(7, 39, 36, .62) 100%),
              linear-gradient(90deg, rgba(7, 39, 36, .84) 0%, rgba(7, 39, 36, .62) 46%, rgba(7, 39, 36, .12) 76%, transparent 90%);
}
/* the page you are on, in the crumbs: a touch brighter than the shared .62 (4.5:1 over the photo) */
.phero .crumbs li:last-child { color: rgba(251, 248, 242, .8); }
@media (max-width: 760px) {
  .phero__img img { object-position: 47% 30%; }
  .phero::before { background: linear-gradient(to top, rgba(7, 39, 36, .96) 0%, rgba(7, 39, 36, .84) 55%, rgba(7, 39, 36, .8) 80%, rgba(7, 39, 36, .68) 100%); }
}

/* a photo with its own short caption under it (the campus, when the photo folder names it) */
.duo__cap { margin: 0; }
.duo__cap figcaption { margin-top: 12px; font: 600 12.5px/1.4 var(--sans); letter-spacing: .04em; color: var(--muted); }
.sec--pine .duo__cap figcaption { color: rgba(251, 248, 242, .78); }

/* the nine early years subjects: one checkable table in three groups (a list of blocks on a phone) */
.subj-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.subj-table caption { caption-side: top; text-align: left; padding: 0 0 14px; font: 600 12.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.subj-table thead th { padding: 16px 24px; text-align: left; font: 700 12.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); background: var(--cream); }
.subj-table tbody + tbody { border-top: 2px solid rgba(196, 164, 106, .55); }
.subj-table tbody tr + tr td { border-top: 1px solid var(--line); }
.subj-table tbody th { width: 24%; padding: 20px 24px; text-align: left; vertical-align: top; font: 400 clamp(21px, 1.7vw, 25px)/1.2 var(--serif); color: var(--pine-dd); border-right: 1px solid var(--line); }
.subj-table td { padding: 18px 24px; vertical-align: top; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.subj-table td:first-of-type { width: 24%; font: 400 clamp(19px, 1.5vw, 22px)/1.25 var(--serif); color: var(--pine-dd); }
@media (max-width: 760px) {
  .subj-table, .subj-table tbody, .subj-table tr, .subj-table th, .subj-table td { display: block; width: auto; }
  .subj-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .subj-table caption { display: block; }
  .subj-table tbody th { width: auto; border-right: 0; padding: 20px 20px 4px; font-size: 22px; }
  .subj-table tbody th::before { content: ""; display: block; width: 32px; height: 2px; background: var(--gold); margin-bottom: 12px; }
  .subj-table td { padding: 0 20px; }
  .subj-table td:first-of-type { width: auto; padding-top: 12px; font-size: 19px; }
  .subj-table td:last-child { padding-bottom: 12px; font-size: 15px; }
  .subj-table tbody tr + tr td { border-top: 0; }
  .subj-table tbody tr + tr td:first-of-type { border-top: 1px solid var(--line); }
  .subj-table tbody tr:last-child td:last-child { padding-bottom: 20px; }
}

/* play: the line after the ten activities */
#play .play-after { margin-top: 24px; color: rgba(251, 248, 242, .82); }

/* the principal's words beside the chapter head (no empty half at 1440) */
.believe-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.believe-grid .lead { margin: 24px 0 16px; }
.believe-grid > div > p:last-child { margin: 0; color: var(--muted); }
.principal.believe { margin: 0; max-width: none; text-align: left; padding-left: clamp(24px, 3vw, 44px); border-left: 2px solid var(--gold); }
.principal.believe blockquote { font-size: clamp(22px, 2.1vw, 32px); text-wrap: pretty; }
.principal.believe figcaption { align-items: flex-start; flex-direction: row; gap: 14px; }
.principal.believe .principal__line { width: 32px; height: 1px; align-self: center; }
@media (max-width: 960px) { .believe-grid { grid-template-columns: minmax(0, 1fr); } }

/* the gallery captions: a deeper band under the gold campus labels over bright floors and turf (Design 7) */
.g figcaption { padding-top: 56px; background: linear-gradient(to top, rgba(7, 39, 36, .94) 0%, rgba(7, 39, 36, .8) 55%, transparent 100%); }

/* two parents' words side by side (one column on a phone) */
.reviews--2 { columns: 2; }
@media (max-width: 760px) { .reviews--2 { columns: 1; } }

/* the visit chapter: steps beside the questions card */
#visit .checklist { align-self: start; }
#visit .duo__text .steps { margin-top: 30px; }
