/* Our fixes on top of the client's style.css (which stays byte-identical). Loaded after it.
   Remove a rule once the client ships the same fix in their CSS. */

/* Contact: the design keeps form + panel side by side at every width, so the inputs shrink
   to 0px on phones. Stack them, using the client's own breakpoints. */
@media (max-width: 991px) {
  .contact-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-form {
    padding: 64px 40px 56px;
  }
  .contact-panel {
    padding: 48px 40px;
  }
}

/* Footer: the design keeps its 4 columns at every width. On phones that makes the page ~712px
   wide, which pushes the fixed header buttons (menu, search, AR) off-screen. 4 → 2 → 1 columns. */
@media (max-width: 1199px) {
  .footer-brand {
    padding-right: 24px;
  }
  .footer-logo img {
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 40px;
    margin-top: 96px;
  }
  .footer-col-rule {
    padding: 40px 0 0;
    border-left: 0;
    border-top: 1px solid var(--footer-rule);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 64px;
  }
  .footer-legal {
    flex-wrap: wrap;
    gap: 8px 18px;
  }
}

@media (max-width: 575px) {
  .footer-cta-title {
    font-size: 40px;
    line-height: 48px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
    margin-top: 72px;
  }
  .footer-brand {
    padding-right: 0;
  }
  .footer-logo img {
    width: 240px;
  }
  .footer-col {
    padding-top: 40px;
    border-top: 1px solid var(--footer-rule);
  }
  .footer-heading {
    font-size: 28px;
  }
  .footer-heading-post {
    margin-top: 40px;
  }
  .footer-text,
  .footer-contact,
  .footer-links {
    margin-top: 24px !important;
  }
  .footer-social {
    margin-top: 36px !important;
  }
}

/* Programs (home + KG): the rail keeps its wide 1387:550 shape, so on tablets the open card's text
   is cut off and on phones the cards are slivers. Tablet: taller rail, narrower photo.
   Phone: a vertical accordion (main.js only toggles .is-active, so tapping a bar still opens it). */
@media (max-width: 991px) {
  .programs-rail {
    aspect-ratio: auto;
    height: 420px;
  }
  .program-media {
    width: calc(300 * var(--px));
  }
  .program-expanded {
    left: calc(330 * var(--px));
    right: 16px;
    width: auto;
    padding-top: 0;
  }
  .program-name,
  .program-vtitle {
    font-size: 28px;
  }
  .program-name {
    margin-top: 20px;
  }
  .program-cta {
    margin-top: 24px;
  }
}

@media (max-width: 767px) {
  .programs-rail {
    flex-direction: column;
    gap: 8px;
    height: auto;
    margin-top: 40px;
  }
  .program-card {
    flex: none;
    height: 64px;
    transition: height var(--prog-dur) var(--prog-ease);
  }
  .program-card.is-active {
    height: 400px;
  }
  .program-collapsed {
    width: 100%;
  }
  .program-collapsed .program-index {
    top: 50%;
    left: 20px;
    right: auto;
    transform: translateY(-50%);
  }
  .program-vtitle {
    left: 60px;
    font-size: 22px;
    writing-mode: horizontal-tb;
    transform: translateY(-50%);
  }
  .program-media {
    width: 100%;
    height: 220px;
    bottom: auto;
    clip-path: inset(0 0 100% 0);
  }
  .program-expanded {
    top: 220px;
    left: 0;
    right: 0;
    width: auto;
    justify-content: flex-start;
    padding: 24px 20px 0;
  }
  .program-name {
    margin-top: 12px;
    font-size: 26px;
  }
  .program-desc {
    max-width: none;
    margin-top: 12px;
  }
  .program-cta {
    margin-top: 20px;
  }
}

/* Glance arrows sit at half the card image height, worked out for 4 cards a row; site-fixes.js
   shows 2 on tablets and 1.15 on phones (27px gaps, image 327:345). */
@media (max-width: 991px) {
  .glance-stage .explore-nav {
    top: calc((100cqw - 27px) / 2 * 345 / 327 / 2);
  }
}

@media (max-width: 575px) {
  .glance-stage .explore-nav {
    top: calc((100cqw - 4.05px) / 1.15 * 345 / 327 / 2);
  }
}

/* History timeline: cards and photos alternate either side of a centre line, which leaves each
   card ~100px of text on phones. One column instead: line on the left, dot beside each card's
   title, photo under its card. (:nth-child(n) matches every item, at the same specificity as the
   design's :nth-child(even) rules, so these win for both sides.) */
@media (max-width: 767px) {
  .history {
    padding: 56px 0;
  }
  .history-rule {
    margin-top: 48px;
  }
  .timeline {
    padding-top: 48px;
  }
  .timeline-line {
    left: 10px;
  }
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    padding-left: 36px;
  }
  .timeline-item + .timeline-item {
    margin-top: 40px;
  }
  .timeline-item:nth-child(n) .timeline-card {
    grid-column: 1;
    padding: 28px 24px;
  }
  .timeline-item:nth-child(n) .timeline-card::before {
    top: 44px;
    right: auto;
    left: -36px;
  }
  .timeline-item:nth-child(n) .timeline-card::after {
    display: none;
  }
  .timeline-item:nth-child(n) .timeline-media {
    grid-row: 2;
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 575px) {
  .history-title {
    font-size: 32px;
    line-height: 38px;
  }
  .timeline-title {
    font-size: 24px;
    line-height: 28px;
  }
}

/* Split rows (KG intro/philosophy/Grade 1/facilities, STEM intro): photo and text stay side by
   side; the text column grows to its longest heading word, so on phones the photo shrinks to a
   thumbnail. One column, photo first. */
@media (max-width: 767px) {
  .section-split {
    padding: 48px 0 64px;
  }
  .section-split-follow {
    padding: 64px 0 0;
  }
  .split-row,
  .split-row-reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .split-row + .split-row,
  .section-split-follow .split-row + .split-row {
    margin-top: 56px;
  }
  .split-media {
    order: -1;
  }
  .split-body-intro,
  .split-body-philosophy,
  .split-body-sm {
    padding-top: 0;
  }
  .split-body .link-rule,
  .split-body-sm .link-rule {
    margin-top: 32px;
  }
  .split-body-sm .split-text {
    margin-top: 20px;
  }
}

@media (max-width: 575px) {
  .split-title,
  .split-title-sm {
    font-size: 32px;
    line-height: 36px;
  }
  .split-lead {
    margin-top: 20px;
    font-size: 17px;
  }
  .feature-list {
    margin-top: 28px;
  }
  .feature-item {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 20px;
  }
  .feature-item + .feature-item {
    margin-top: 32px;
  }
  .feature-icon {
    width: 40px;
  }
  .feature-title {
    font-size: 22px;
    line-height: 26px;
  }
}

/* STEM "Why Parents Choose": 5 fixed columns make the page ~481px wide on phones. A list instead:
   icon left, text beside it, the design's hairlines between items. */
@media (max-width: 767px) {
  .choose-title {
    margin-top: 64px;
  }
  .choose-list {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
  }
  .choose-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 20px;
    align-items: center;
    min-height: 0;
    padding: 20px 0;
  }
  .choose-item + .choose-item {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .choose-icon {
    width: 48px;
    height: 48px;
  }
  .choose-text {
    margin: 0;
  }
}

@media (max-width: 575px) {
  .thinkers {
    padding: 64px 0 72px;
  }
  .thinkers-title,
  .choose-title {
    font-size: 32px;
    line-height: 36px;
  }
}

/* Facilities: the category menu stays beside the panel, so on phones the panel, its lab cards and
   the FAQs get ~100px of width. Menu above the panel (not sticky, it would cover the content),
   card text panels full width. main.js's pinned card deck still runs on the stacked cards. */
@media (max-width: 767px) {
  .facilities {
    padding: 48px 0 64px;
  }
  .facilities-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .fac-nav {
    position: static;
  }
  .fac-panel {
    padding-top: 0;
  }
  .fac-card-body {
    width: 100%;
    margin-top: 0;
    padding: 24px 20px 28px;
  }
  .fac-arrow {
    width: 40px;
    height: 40px;
  }
  .fac-prev {
    left: 12px;
  }
  .fac-next {
    right: 12px;
  }
  .faq-inline {
    margin-top: 48px;
  }
  .faq-inline .faq-question {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .facilities-title,
  .faq-inline .faq-title {
    font-size: 32px;
    line-height: 36px;
  }
}

/* Phone headings: the design scales some section titles down for phones (~30px on the homepage)
   but leaves others at 46–64px. Bring them to the same scale. */
@media (max-width: 575px) {
  .programs-title,
  .news-title,
  .contact-title,
  .faq-title,
  .stem-faq .faq-title,
  .explore-title,
  .stem-explore .explore-title,
  .glance-title,
  .glance-light .glance-title {
    font-size: 32px;
    line-height: 36px;
  }
  .contact-title {
    margin-bottom: 32px;
  }
  .page-banner-title {
    font-size: 40px;
  }
}

/* Menu: centred vertically, so when it is taller than a phone screen its top ("Home") slides up
   under the logo and can't be scrolled to. "safe" keeps it centred only while it fits. */
.main-menu {
  align-items: safe center;
}

/* Header search + AR are 20px / 18x13px targets: give touch screens a bigger, invisible hit area. */
@media (pointer: coarse) {
  .nav-lang,
  .nav-search {
    position: relative;
  }
  .nav-lang::after,
  .nav-search::after {
    content: "";
    position: absolute;
    inset: -12px;
  }
}

/* Tour card covers a lot of a phone screen. */
@media (max-width: 575px) {
  .tour-card {
    width: 136px;
  }
}

/* Tour box (History, KG, STEM): text and photo stay side by side, so on phones the heading runs
   one word per line. Photo on top, text under it. (.tour-cta .tour-cta-inner matches the
   specificity of the STEM page's own column rule.) */
@media (max-width: 767px) {
  .tour-cta {
    padding: 48px 0 64px;
  }
  .tour-cta .tour-cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .tour-cta-media {
    order: -1;
  }
  .tour-cta-body {
    padding: 32px 24px 36px;
  }
}

@media (max-width: 575px) {
  .tour-cta-title {
    font-size: 28px;
    line-height: 32px;
  }
  .tour-cta-sub {
    font-size: 22px;
    line-height: 26px;
  }
}

/* Slider arrows sit centred on the slider's edges; with the 12px phone gutter half of each one
   hangs off-screen. Pull them inside. */
@media (max-width: 575px) {
  .explore-nav {
    width: 40px;
    height: 40px;
  }
  .explore-prev,
  .glance-prev {
    left: 20px;
  }
  .explore-next,
  .glance-next {
    left: calc(100% - 20px);
  }
}

@media (max-width: 575px) {
  .contact-form {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 30px;
    padding: 44px 24px 40px;
  }
  .contact-panel {
    padding: 40px 24px;
  }
}

/* DocPage text sections: the design's arrow link is full-width (made for a text column); under a centred
   section head keep it link-sized and centred. */
.facilities-head .link-rule {
  max-width: 360px;
  margin: 32px auto 0;
  text-align: left;
}

/* DocPage stacked arrow links (a hub's "Explore" list): the design spaces a single link far below the text;
   links that follow it sit close, like a list. */
.split-body .link-rule + .link-rule {
  margin-top: 24px;
}

/* Admissions forms (AD2, 2026-10-30): the design's contact form only styles inputs/textareas, and its floating label rises
   only once there's text (:placeholder-shown). Selects and date inputs always show a value, so their label sits raised;
   the consent checkbox is a plain row. Same classes as the Contact form. */
.contact-field select { display: block; width: 100%; height: 40px; padding: 10px 0 4px; border: 0; border-bottom: 1px solid var(--dark-200); border-radius: 0; background: transparent; font-size: 15px; color: var(--color-body); outline: none; transition: border-color var(--transition-duration) ease-out; }
.contact-field select:focus { border-bottom-color: var(--color-accent); }
.contact-field:has(select) label, .contact-field:has(input[type="date"]) label { transform: translateY(-20px) scale(0.86); color: var(--color-text-muted); }
.contact-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--color-body); }
.contact-check input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--color-accent); }

/* HTML sitemap (/sitemap, 2026-10-30): no client design; each section's pages as the design's arrow links, stacked
   close like a list (same spacing as a hub's "Explore" list). */
.sitemap-group .link-rule {
  margin-top: 24px;
}

/* Plain-text pages (LegalPage: Privacy Policy, 2026-10-30): no client design; one readable column of the design's text
   classes, with bullet lists (the design resets list styles). */
.legal-body { max-width: 820px; }
.legal-body .split-title { margin-top: 48px; font-size: 28px; }
.legal-body .split-text { margin-top: 16px; max-width: none; }
.legal-body ul { list-style: disc; padding-left: 1.25em; margin: 16px 0 0; }
.legal-body li { margin-top: 8px; }

/* Department Contacts (2026-11-01): no client design; the Contact page's navy panel (.contact-panel/.contact-list) once
   per team, equal heights, a team name in place of the logo, tighter padding for a third-width column. */
.dept-contacts .contact-panel { height: 100%; padding: 48px 36px 44px; }
.dept-contacts h3 { margin: 0; font-size: 26px; line-height: 1.2; color: var(--white); }
.dept-contacts .contact-list { margin-top: 28px; row-gap: 18px; overflow-wrap: anywhere; }

/* Photo Gallery (phase 6a, 2026-11-01): no client design; square thumbnails on Bootstrap's grid, each a link to the full photo. */
.gallery-photo { display: block; overflow: hidden; aspect-ratio: 1; background: var(--color-bg-soft); }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-duration) ease-out; }
.gallery-photo:hover img, .gallery-photo:focus-visible img { transform: scale(1.04); }
.gallery-back { margin-top: 40px; }

/* Error / status pages (500, 2026-11-01): the design's banner with the crest, a line of text and two buttons. */
.status-crest { display: inline-block; margin-bottom: 18px; }
.status-crest img { width: 72px; height: 72px; }
.status-text { max-width: 560px; margin: 16px auto 0; color: var(--white); font-size: 16px; line-height: 24px; }
.status-actions { flex-wrap: wrap; gap: 16px; }

/* Facility pages in the Campus & Facilities layout (F1, 2026-11-02, FacilityPage.tsx): a text-only section sits under
   the photo-card deck with the panel's own title/intro styles; a navy-band section becomes a card with a dotted list
   (the band list's bullets, in the card's text colour); arrow links in a card get the design's spacing. */
.fac-text {
  margin-top: 56px;
}
.fac-card-list {
  padding: 0;
  list-style: none;
}
.fac-card-list li {
  position: relative;
  padding-left: 22px;
}
.fac-card-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}
.fac-card-body .link-rule,
.fac-text .link-rule {
  margin-top: 20px;
}
@media (max-width: 767px) {
  .fac-text {
    margin-top: 40px;
  }
}

/* Numbered steps on the navy band (DocPage "steps", e.g. the Cambridge pathway). Built from the design's own parts:
   navy band + heading + intro (thinkers), item heading (feature-title), text (choose-text), hairlines between columns
   (choose-item) and the white arrow link (link-rule-light). Only the grid and the 01/02/03 numbers are ours. */
.doc-steps-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}
.doc-step {
  display: flex;
  flex-direction: column;
  padding-right: 32px;
}
.doc-step + .doc-step {
  padding-left: 46px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.doc-step-index {
  font-family: var(--heading-font);
  font-size: 48px;
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-accent);
}
.doc-step .feature-title {
  margin-top: 28px;
  color: var(--white);
}
.doc-step .choose-text {
  flex: 1 0 auto;
}
.doc-step .feature-title:not(:has(+ .choose-text)) {
  flex: 1 0 auto; /* a step with no text: its link still lines up at the bottom */
}
.doc-step .link-rule {
  margin-top: 28px;
}
.doc-steps-outro {
  margin-top: 56px;
}
/* Two-column table (DocPage "compare", e.g. Why Choose's "What Sets AIIPS Apart"): Bootstrap's table as the fee table;
   the first column stays narrow on wide screens, the arrow link is link-sized and centred like a text section's. */
.doc-compare .table-responsive {
  margin-top: 48px; /* the fee table gets this room from its caption; this table has none */
}
.doc-compare th[scope="row"] {
  width: 32%;
}
.doc-compare .link-rule {
  max-width: 360px;
  margin: 32px auto 0;
}
/* Section link(s) under the numbered steps (e.g. Mission & Vision's values): link-sized, stacked close like a list. */
.doc-steps-more {
  max-width: 360px;
  margin-top: 56px;
}
.doc-steps-more .link-rule + .link-rule {
  margin-top: 24px;
}
@media (max-width: 1599px) {
  .doc-steps-list {
    margin-top: 56px;
  }
  .doc-step + .doc-step {
    padding-left: 32px;
  }
}
@media (max-width: 991px) {
  .doc-steps-list {
    grid-auto-flow: row;
    margin-top: 32px;
  }
  .doc-step {
    padding: 28px 0;
  }
  .doc-step + .doc-step {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .doc-step-index {
    font-size: 40px;
  }
  .doc-step .feature-title {
    margin-top: 20px;
  }
  .doc-step .choose-text {
    margin-top: 14px; /* the phone rule for .choose-text (STEM list, above) sets 0 */
  }
}

/* Photo cards (DocPage "cards", e.g. Cambridge "Why Choose AIIPS"): the design's news cards on Bootstrap's grid, as on
   /news. The photo isn't a link here, so no hover zoom. */
.doc-cards .row {
  margin-top: 32px; /* + the row's 24px gutter = 56px under the heading */
}
.doc-cards .news-card-media:hover img {
  transform: none;
}
.doc-cards-outro {
  margin: 40px auto 0;
  text-align: center; /* centred like the heading and intro above the cards */
}
.doc-cards .news-card-link + .news-card-link {
  margin-top: 0; /* a second link sits right under the first */
  padding-top: 14px;
}

/* Link cards (DocPage "links", e.g. Cambridge "Explore Each Cambridge Stage"): white cards on the soft section, with the
   design's feature icon, news-card heading and round slider arrow (news-nav: accent on hover). */
.doc-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.doc-link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 30px 30px;
  background: var(--white);
  color: var(--color-heading);
}
.doc-link-card .feature-icon {
  margin: 0;
}
.doc-link-card .news-card-title {
  flex: 1 0 auto;
  margin: 28px 0 0;
}
.doc-link-card .news-card-title:has(+ .doc-link-text) {
  flex: none;
}
.doc-link-text {
  flex: 1 0 auto;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-body);
}
@media (min-width: 1200px) {
  .doc-links-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .doc-links-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.doc-link-arrow {
  display: grid;
  place-items: center;
  align-self: flex-end;
  width: 49px;
  height: 49px;
  margin-top: 28px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  transition: all var(--transition-duration) ease-out;
}
.doc-link-card:hover .doc-link-arrow,
.doc-link-card:focus-visible .doc-link-arrow {
  background: var(--color-accent);
  color: var(--white);
}
@media (max-width: 1199px) {
  .doc-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .doc-links-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 40px;
  }
  .doc-link-card {
    padding: 28px 24px 24px;
  }
}

/* Two photos side by side in a photo row's place (DocPage split `image2`, e.g. Primary "Facilities"): each half as tall as
   the single photo would be, so the row keeps its height. */
.split-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  --split-ratio: 304 / 540;
}

/* Ask Al Injaz chat (public/js/assist-ai.js): once there is a conversation the panel works like a chat: New chat pinned at the top,
   the conversation scrolling in the middle, the input pinned at the bottom. Before the first question it is the design's layout.
   :not([hidden]): the display here would otherwise beat the design's rule that hides the closed panel. */
.assist.has-thread .assist-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  height: min(620px, calc(100dvh - 140px));
  max-height: calc(100dvh - 140px);
}
.assist.has-thread .assist-results {
  flex: 1 0 auto;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.assist.has-thread .assist-form {
  order: 1;
  flex: none;
  position: sticky;
  bottom: -24px;
  z-index: 2;
  margin: 14px -22px -24px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgb(8, 44, 88);
}
.assist-chat-top {
  display: none;
}
.assist.has-thread .assist-chat-top {
  display: flex;
  flex: none;
  justify-content: flex-end;
  position: sticky;
  top: -44px;
  z-index: 2;
  margin: -44px -22px 8px;
  padding: 12px 22px 8px;
  background: rgb(8, 44, 88);
}
.assist-thread {
  display: flex;
  flex-direction: column;
}
.assist-you {
  align-self: flex-end;
  max-width: 85%;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 14px 14px 4px 14px;
  background: rgba(31, 173, 87, 0.22);
  font-size: var(--fs-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.assist-thread .assist-results-list {
  margin-bottom: 16px;
}
.assist-thread .assist-result {
  animation: none;
}
/* During a chat the topic chips stay away (focusing the input would otherwise push the thread down); "New chat" brings them back. */
.assist.has-thread .assist-tags {
  display: none;
}
.assist-new {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: none;
  color: inherit;
  font-size: var(--fs-sm);
  line-height: 1.3;
}
.assist-new:hover {
  background: rgba(255, 255, 255, 0.12);
}
/* The design's 374px panel, 34px from the right, runs off the left edge of phones. */
@media (max-width: 430px) {
  .assist {
    right: 12px;
  }
  .assist-panel {
    width: min(374px, calc(100vw - 24px));
  }
}

/* Public /news page numbers (no client design for them): the site's navy and green, comfortable to tap on a phone. */
.news-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.news-pager a,
.news-pager span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(1, 43, 93, 0.2);
  border-radius: 8px;
  color: rgb(1, 43, 93);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.news-pager a:hover {
  border-color: rgb(1, 43, 93);
  background: rgb(1, 43, 93);
  color: #fff;
}
.news-pager span {
  border-color: rgb(31, 173, 87);
  background: rgb(31, 173, 87);
  color: #fff;
}

/* Client meeting 2026-11-09. Side rail: only on the hero/banner (set in site-fixes.js), same exit as .is-muted;
   visibility keeps its hidden links out of the keyboard order. */
.side-rail {
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.side-rail.is-past-hero {
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0s linear 0.4s;
}
/* "Listen Director's Message", hidden for now: delete this rule to bring it back. */
.director-actions .link-rule:first-child {
  display: none;
}

/* Cookie choice: a small box above the left badge (fixed, so it never moves the page). */
.cookie-box {
  position: fixed;
  left: 30px;
  bottom: 145px;
  z-index: 96;
  width: 300px;
  max-width: calc(100vw - 40px);
  padding: 20px;
  border-radius: 12px;
  background: var(--color-bg);
  box-shadow: 0 12px 32px rgba(1, 43, 93, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s linear 0.3s;
}
.cookie-box.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.cookie-box-title {
  margin: 0 0 6px;
  color: var(--color-heading);
  font-size: 17px;
  font-weight: 600;
}
.cookie-box-text {
  margin: 0 0 16px;
  color: var(--color-body);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-box-text a {
  color: var(--color-brand);
  text-decoration: underline;
}
.cookie-box-actions {
  display: flex;
  gap: 10px;
}
.cookie-box-actions button {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.cookie-box-actions .cookie-box-deny {
  border-color: var(--color-brand);
  background: transparent;
  color: var(--color-brand);
}
.cookie-box-actions button:hover {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
}

/* Tour popup: two image cards, then the video in place or a short exit to the 360° page. */
html:has(.tour-pop[open]) {
  overflow: hidden;
  scrollbar-gutter: stable; /* the page must not jump when its scrollbar goes */
}
.tour-pop {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  transition: opacity 0.36s ease-out, transform 0.36s ease-out;
}
.tour-pop[open] {
  animation: tour-pop-in 0.32s ease-out;
}
.tour-pop::backdrop {
  background: rgba(1, 43, 93, 0.78);
}
.tour-pop.is-leaving {
  opacity: 0;
  transform: scale(1.05);
}
@keyframes tour-pop-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(14px);
  }
}
.tour-pop-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(1, 43, 93, 0.85);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.tour-pop-close:hover {
  background: var(--color-accent);
}
.tour-pop-close svg {
  width: 13px;
  height: 13px;
}
.tour-pop-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tour-pop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: min(62vh, 460px);
  padding: 16px;
  overflow: hidden;
  border: 0;
  background: var(--color-brand);
  color: #fff;
  text-align: center;
  cursor: pointer;
}
.tour-pop-card:hover {
  color: #fff;
}
.tour-pop-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}
.tour-pop-card:hover img {
  transform: scale(1.05);
}
.tour-pop-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 43, 93, 0.45);
  transition: background-color 0.3s;
}
.tour-pop-card:hover::after {
  background: rgba(1, 43, 93, 0.3);
}
.tour-pop-card > span {
  position: relative;
  z-index: 1;
}
.tour-pop-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
}
.tour-pop-icon svg {
  width: 20px;
  height: 22px;
  margin-left: 4px;
}
.tour-pop-icon-text {
  font-size: 19px;
  font-weight: 700;
}
.tour-pop-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}
.tour-pop-sub {
  font-size: 14px;
  letter-spacing: 0.04em;
}
.tour-pop-video {
  display: none;
}
.tour-pop.is-video .tour-pop-cards {
  display: none;
}
.tour-pop.is-video .tour-pop-video {
  display: block;
  animation: tour-pop-in 0.32s ease-out;
}
.tour-pop-video video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 32px);
  aspect-ratio: 16 / 9;
  background: #000;
}
@media (max-width: 575px) {
  .tour-pop-cards {
    grid-template-columns: 1fr;
  }
  .tour-pop-card {
    height: min(36vh, 260px);
  }
  .tour-pop-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
  }
  .tour-pop-title {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-pop,
  .tour-pop[open],
  .tour-pop-card img,
  .tour-pop.is-video .tour-pop-video {
    animation: none;
    transition: none;
  }
}

/* School Uniform: an endless carousel of uniforms, its rules beside it (UniformLooks.tsx). Three in view (user
   2026-11-15: taller figures, ~210 px with all five in a row → up to ~395): the centre one large and sharp, its
   neighbours smaller and faded, the rest hidden off the edges. Each look sits at `--o` widths from the centre (-1, 0, 1
   in view); `--dx` follows a drag. Hidden looks are transparent, so the jump from one end to the other isn't seen. */
.looks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px 40px;
  margin-top: 40px;
  padding: 40px;
  background: var(--color-bg);
}
.looks-row {
  --w: 33.333%;
  position: relative;
  height: 400px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.looks-row.is-dragging {
  cursor: grabbing;
}
.look {
  position: absolute;
  bottom: 0;
  left: calc(50% - var(--w) / 2);
  width: var(--w);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-origin: bottom center;
  transform: translateX(calc(var(--o) * 100% + var(--dx, 0px))) scale(0.82);
  filter: blur(2px);
  opacity: 0.55;
  transition: transform 0.6s ease-out, filter 0.6s ease-out, opacity 0.6s ease-out;
}
.look.is-active {
  z-index: 1;
  transform: translateX(calc(var(--o) * 100% + var(--dx, 0px)));
  filter: none;
  opacity: 1;
}
.look.is-off {
  opacity: 0;
  pointer-events: none;
}
.looks-row.is-dragging .look {
  transition: none;
}
.look img {
  -webkit-user-drag: none;
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.looks-tabs {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.looks-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--color-brand);
  background: transparent;
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.looks-tabs button[aria-pressed="true"] {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}
@media (hover: hover) {
  .looks-tabs button:hover {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
  }
}
.looks-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding-left: 32px;
  border-left: 1px solid var(--color-rule);
  animation: looks-in 0.3s ease-out;
}
@keyframes looks-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.looks-when {
  margin: 0 0 4px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.looks-title {
  margin: 0 0 14px;
  color: var(--color-heading);
  font-size: 28px;
}
.looks-rule {
  margin: 0 0 12px;
  color: var(--color-body);
  font-size: 15px;
  line-height: 1.55;
}
.looks-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-rule);
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 991px) {
  .looks {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 20px;
  }
  .looks-panel {
    grid-column: 1;
    grid-row: auto;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--color-rule);
  }
}
/* Phones: one uniform at a time; the neighbours wait just off the edges. */
@media (max-width: 767px) {
  .looks-row {
    --w: 100%;
    height: 340px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .look,
  .look.is-active,
  .looks-panel {
    animation: none;
    transition: none;
  }
}

/* School Uniform preview: students on one floor, a sliding row, "In this look" beside it (UniformStage.tsx).
   The navy strip keeps the site's light header readable over a light stage. */
.ustage {
  --visible: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 100vh;
  padding-top: var(--header-height);
  background: linear-gradient(var(--color-brand) 0 var(--header-height), var(--color-bg-soft) var(--header-height), #fff 100%);
}
.ustage-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 28px 32px 20px;
}
.ustage-head {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease-out;
}
.ustage-head h2 {
  margin: 0 0 4px;
  color: var(--color-heading);
  font-size: 36px;
}
.ustage-head p {
  margin: 0;
  color: var(--color-body);
  font-size: 15px;
}
.ustage.is-solo .ustage-head {
  opacity: 0;
  pointer-events: none;
}
.ustage-back {
  position: absolute;
  top: 34px;
  left: 32px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.ustage-back svg {
  width: 8px;
  height: 12px;
}
.ustage-row {
  position: relative;
  flex: 1;
  min-height: 300px;
}
.ufig {
  position: absolute;
  bottom: 0;
  left: calc((var(--i) - var(--offset) + 0.5) * 100% / var(--visible));
  height: calc(var(--size) * 1%);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateX(-50%);
  transform-origin: bottom center;
  transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease-out, transform 0.45s ease-out;
}
.ufig::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -5px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(1, 43, 93, 0.22), transparent);
}
.ufig img {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  transition: filter 0.2s linear;
}
.ufig:hover img {
  filter: drop-shadow(0 8px 16px rgba(1, 43, 93, 0.18));
}
.ustage.is-moving .ufig img {
  filter: url(#ustageMotion);
}
.ustage.is-solo .ufig:not(.is-picked) {
  opacity: 0;
  pointer-events: none;
}
.ustage.is-solo .ufig.is-picked {
  left: 50%;
  transform: translateX(-50%) scale(1.08);
}
.ustage-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.ustage-bar button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-brand);
  cursor: pointer;
}
.ustage-bar button:disabled {
  opacity: 0.3;
  cursor: default;
}
.ustage-bar svg {
  width: 8px;
  height: 13px;
}
.ustage-line {
  flex: 1;
  height: 2px;
  background: var(--color-rule);
}
.ustage-line span {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transition: width 0.45s ease-out;
}
.ustage-count {
  color: var(--color-brand);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.ustage-panel {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 20px;
  background: var(--color-bg);
  border-left: 1px solid var(--color-rule);
}
.ustage-label {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.ustage-look {
  flex: 1;
  animation: looks-in 0.3s ease-out;
}
.ustage-when {
  margin: 0 0 4px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ustage-look h3 {
  margin: 0 0 16px;
  color: var(--color-heading);
  font-size: 24px;
}
.ustage-look h3 span {
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: 400;
}
.ustage-look ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ustage-look li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--color-rule);
}
.ustage-thumb {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background-color: var(--color-bg-soft);
  background-repeat: no-repeat;
  background-size: auto 380%;
}
/* Short laptop screens: everything in the stage stays above the fold. */
@media (min-width: 992px) and (max-height: 760px) {
  .ustage-main {
    padding: 16px 32px 10px;
  }
  .ustage-head h2 {
    font-size: 28px;
  }
  .ustage-bar {
    margin-top: 10px;
  }
  .ustage-panel {
    padding: 14px 24px 12px;
  }
  .ustage-label {
    margin-bottom: 8px;
  }
  .ustage-look h3 {
    margin-bottom: 8px;
    font-size: 20px;
  }
  .ustage-look li {
    padding: 5px 0;
  }
  .ustage-thumb {
    width: 44px;
    height: 44px;
  }
  .ustage-foot p {
    margin: 8px 0 6px;
  }
  .ustage-cta {
    padding: 10px;
  }
}
.ustage-look strong {
  display: block;
  color: var(--color-heading);
  font-size: 15px;
  font-weight: 600;
}
.ustage-look small {
  display: block;
  color: var(--color-body);
  font-size: 13px;
  line-height: 1.4;
}
.ustage-prompt {
  margin: 0;
  color: var(--color-body);
  font-size: 15px;
}
.ustage-foot p {
  margin: 14px 0 12px;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 600;
}
.ustage-cta {
  display: block;
  padding: 14px;
  background: var(--color-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background-color 0.2s;
}
.ustage-cta:hover {
  background: var(--color-accent);
  color: #fff;
}
@media (max-width: 1199px) {
  .ustage {
    --visible: 3;
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 991px) {
  .ustage {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .ustage-row {
    flex: none;
    height: 460px;
  }
  .ustage-panel {
    border-top: 1px solid var(--color-rule);
    border-left: 0;
  }
}
@media (max-width: 575px) {
  .ustage {
    --visible: 1;
  }
  .ustage-main {
    padding: 20px 16px 12px;
  }
  .ustage-head h2 {
    font-size: 28px;
  }
  .ustage-row {
    height: 400px;
    margin-top: 14px;
  }
  .ufig {
    height: min(98%, calc(var(--size) * 1.22%));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ufig,
  .ufig img,
  .ustage-look,
  .ustage-line span {
    animation: none;
    transition: none;
  }
  .ustage.is-moving .ufig img {
    filter: none;
  }
}

/* Full-screen 360° tour page (TourViewer.tsx). */
.tour-full {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-brand);
}
.tour-full-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  background: var(--color-bg);
}
.tour-full-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tour-full-brand img {
  height: 44px;
  width: auto;
}
.tour-full-brand .tour-full-wordmark {
  height: 28px;
}
.tour-full-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tour-full-close:hover {
  color: var(--color-accent);
}
.tour-full-close svg {
  width: 14px;
  height: 14px;
}
.tour-full-view {
  flex: 1;
  min-height: 0;
}
.tour-full .pnlm-panorama-info {
  top: 12px;
  bottom: auto;
  left: 48px; /* clear of the viewer's zoom buttons */
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(1, 43, 93, 0.85);
}
.tour-full .pnlm-title-box {
  margin: 0;
  padding: 0;
  font-size: 18px;
}
.tour-full-nav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}
.tour-full-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.tour-full-arrow:hover {
  background: var(--color-accent);
}
.tour-full-arrow svg {
  width: 8px;
  height: 12px;
}
.tour-full-strip {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: safe center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tour-full-thumb {
  flex: none;
  width: 132px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.tour-full-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  opacity: 0.75;
  transition: opacity 0.2s, border-color 0.2s;
}
.tour-full-thumb:hover img,
.tour-full-thumb[aria-pressed="true"] img {
  opacity: 1;
}
.tour-full-thumb[aria-pressed="true"] img {
  border-color: var(--color-accent);
}
.tour-full-thumb span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 575px), (max-height: 480px) {
  .tour-full-bar {
    height: 52px;
    padding: 0 12px;
  }
  .tour-full-brand img {
    height: 36px;
  }
  .tour-full-brand .tour-full-wordmark {
    height: 20px;
  }
  .tour-full-thumb {
    width: 92px;
    font-size: 12px;
  }
  .tour-full .pnlm-title-box {
    font-size: 15px;
  }
}

/* School Uniform's "Uniform Categories" (DocPage `lookcards`): the link cards with a number for the icon and the arrow
   pointing up, as each card scrolls back up to that uniform in the row. */
.doc-lookcard-index {
  font-family: var(--heading-font);
  font-size: 32px;
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-accent);
}
.doc-lookcards .doc-link-arrow svg {
  transform: rotate(-90deg);
}

/* Achievements & Awards (client's layout, 2026-11-10): numbered achievement lists (AchievementList `numbered`), the
   number in the accent colour where the design's list has its dot. */
.doc-ach-numbered li {
  padding-left: 44px;
}
.doc-ach-numbered li::before {
  content: none;
}
.doc-ach-numbered li + li {
  margin-top: 10px;
}
.doc-ach-index {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--heading-font);
  font-weight: var(--fw-medium);
  color: var(--color-accent);
}

/* Testimonials (DocPage "quotes", client's layout 2026-11-10): quote cards in the design's white card on the light
   section, the featured one larger and wider; name in the heading font, role (e.g. the month) under it. */
.doc-quote {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 40px;
  background: var(--white);
}
.doc-quote blockquote {
  flex: 1 0 auto;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}
.doc-quote figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.doc-quote-photo {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.doc-quote-who {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-quote figcaption strong {
  font-family: var(--heading-font);
  font-weight: var(--fw-medium);
  color: var(--color-brand);
}
.doc-quote-who span {
  font-size: 14px;
  opacity: 0.7;
}
.doc-quotes .facilities-head + .row,
.doc-quotes .facilities-head + .doc-quote-featured {
  margin-top: 48px; /* the cards' own room under the heading (cards/links get it from their grid) */
}
.doc-quote-featured {
  height: auto;
  margin: 0 0 24px;
  padding: 56px 64px;
  border-left: 4px solid var(--color-accent);
}
.doc-quote-featured blockquote {
  font-family: var(--heading-font);
  font-size: 26px;
  line-height: 1.5;
  color: var(--color-brand);
}
@media (max-width: 767px) {
  .doc-quote,
  .doc-quote-featured {
    padding: 28px 24px;
  }
  .doc-quote-featured blockquote {
    font-size: 20px;
  }
}

/* The client's 2026-11 page flow on our theme (DocPage options). Text-only first row: heading left with the accent rule,
   text right (stacked on phones). */
.doc-intro-section {
  padding: 96px 0 88px;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(1, 43, 93, 0.1);
}
.doc-intro-text {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 96px;
  align-items: start;
}
.doc-intro-text .split-text:first-child {
  margin-top: 0;
}
/* `lead` under the text-only first row's heading (Bilingual's motto, client 2026-11-10): a soft box with the accent edge. */
.doc-intro-lead {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-soft);
  font-style: italic;
}
/* One link card alone takes the full width (Cambridge's "Cambridge vs. the Bilingual (GED) Pathway" box). */
.doc-links-grid.doc-links-1 {
  grid-template-columns: minmax(0, 1fr);
}
/* Steps' `center`: heading and intro centred over the steps, as the client's Cambridge pathway and GED structure. */
.doc-steps-center .split-title,
.doc-steps-center .thinkers-intro,
.doc-steps-center .split-text {
  text-align: center;
}
/* `label`: a small group heading above cards or a navy photo row (STEM Labs' kit tracks, client 2026-11-11): uppercase,
   accent bar in front, left-aligned; white on navy. */
.doc-group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
}
.doc-cards .facilities-head + .doc-group-label {
  margin-top: 56px;
}
.doc-navy-row .doc-group-label {
  color: var(--white);
  margin-bottom: 48px;
}
/* A band's `light`: the same photo + list on the light section (Student Council's structure, Clubs' activities). */
.thinkers.doc-band-light {
  background: var(--color-bg-soft);
  color: var(--color-body);
}
.doc-band-light .thinkers-title,
.doc-band-light .thinkers-list {
  color: var(--color-heading);
}
/* …and on a photo card ("Stage 01", Competitions' "Where AIIPS Competes"), lined up with the card's heading. */
.news-card .doc-badge {
  align-self: flex-start;
  width: fit-content;
  margin: 24px 8px 0 25px;
}
.news-card .doc-badge + .news-card-title {
  margin-top: 4px;
}
/* A heading-only text section sits right over the photo rows it introduces. */
.facilities.doc-head-only {
  padding-bottom: 0;
}
/* `badge` on a photo row: a small number pill over its heading (Innovation's stages 01–03). */
.doc-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(31, 173, 87, 0.12);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0.06em;
}
/* Navy photo rows that follow each other share one navy band (no light gap between them). */
.doc-navy-row:has(+ .doc-navy-row) {
  padding-bottom: 60px;
}
.doc-navy-row + .doc-navy-row {
  padding-top: 60px;
}
@media (max-width: 991px) {
  .doc-intro-section {
    padding: 56px 0 48px;
  }
  .doc-intro-text {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* `navy`: centred text, cards and link cards on the design's navy band (the cards themselves stay white). */
.facilities.doc-navy {
  background: var(--color-brand);
  color: var(--white);
}
.doc-navy .facilities-title,
.doc-navy .facilities-intro,
.doc-navy .doc-cards-outro {
  color: var(--white);
}
.doc-navy .doc-link-card {
  color: var(--color-text);
}
/* Photo cards have no card background: on navy their text turns white, as in the client's navy card sections. */
.doc-navy .news-card-title,
.doc-navy .news-card-text,
.doc-navy .news-card-link {
  color: var(--white);
}
.doc-navy .news-card-link {
  border-color: rgba(255, 255, 255, 0.35);
}
/* …but link cards keep their white card, so their heading stays dark. */
.doc-navy .doc-link-card .news-card-title {
  color: var(--color-heading);
}
/* A navy photo row (split/features `navy`): the design's text on white. */
.doc-navy-row .split-title,
.doc-navy-row .split-text,
.doc-navy-row .split-lead,
.doc-navy-row .feature-title,
.doc-navy-row .feature-text {
  color: var(--white);
}
/* `light` numbered steps: the steps grid on the light background, dark text and hairlines. */
.doc-steps-light {
  padding: 100px 0 120px;
  background: var(--color-bg-soft);
}
.doc-steps-light .doc-step .feature-title {
  color: var(--color-brand);
}
.doc-steps-light .doc-step + .doc-step {
  border-color: rgba(1, 43, 93, 0.15);
}
@media (max-width: 991px) {
  .doc-steps-light {
    padding: 64px 0 80px;
  }
}
/* Wide photo above the text (split/band/achievements `top`), as the client's Campus and Sports sections. */
.doc-top-media img {
  display: block;
  width: 100%;
  height: clamp(260px, 33vw, 480px);
  object-fit: cover;
}
.doc-top .split-title + .doc-top-media,
.doc-top .split-text + .doc-top-media {
  margin-top: 40px;
}
.doc-top-cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 96px;
  margin-top: 56px;
}
.doc-top-cols .thinkers-list {
  margin-top: 0;
}
.doc-top-cols .thinkers-list li {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(1, 43, 93, 0.12);
}
/* A long list beside the heading (9+ short items, Clubs' Co-Curricular Activities) flows into 3 columns, 2 on tablets. */
.doc-top-cols .thinkers-list:has(> li:nth-child(9)) {
  columns: 3;
  column-gap: 32px;
}
.doc-top-cols .thinkers-list:has(> li:nth-child(9)) li {
  break-inside: avoid;
}
@media (max-width: 991px) {
  .doc-top-cols .thinkers-list:has(> li:nth-child(9)) {
    columns: 2;
  }
}
.doc-top-list {
  margin-top: 48px;
}
.doc-top-list .thinkers-list {
  columns: 2;
  column-gap: 64px;
  margin-top: 0;
}
.doc-top-list .thinkers-list li {
  break-inside: avoid;
}
.doc-photo-top-body {
  max-width: 820px;
  margin-top: 40px;
}
@media (max-width: 991px) {
  .doc-top-cols {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }
  .doc-top-list .thinkers-list {
    columns: 1;
  }
}
/* Text sections laid out as the client's: heading and text left-aligned ("left"), or heading left, text right ("split"). */
.doc-text-left .facilities-head,
.doc-text-split .facilities-head {
  max-width: none;
  margin-left: 0;
  text-align: left;
}
.doc-text-left .facilities-intro {
  max-width: 980px;
  margin-left: 0;
}
/* A closing line under the cards stays centred on the page (its text is centred; the box was pinned left, so it sat
   off-centre, e.g. Bilingual's quote, Nisam 2026-11-14). */
.doc-text-left .doc-cards-outro {
  margin-right: auto;
  margin-left: auto;
}
.doc-text-left .link-rule,
.doc-text-split .link-rule {
  margin-left: 0;
}
.doc-text-split .facilities-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 96px;
  align-items: start;
}
.doc-text-split .facilities-intro {
  margin: 0;
}
@media (max-width: 991px) {
  .doc-text-split .facilities-head {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Light numbered steps as rows (`rows`): number | title | text, a hairline between rows. */
.doc-steps-rows .doc-steps-list {
  grid-auto-flow: row;
  margin-top: 48px;
}
.doc-steps-rows .doc-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 4fr) minmax(0, 7fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid rgba(1, 43, 93, 0.12);
}
.doc-steps-rows .doc-step + .doc-step {
  padding-left: 0;
  border-left: 0;
}
.doc-steps-rows .doc-step-index {
  font-size: 22px;
}
.doc-steps-rows .doc-step .feature-title {
  margin-top: 0;
}
.doc-steps-rows .doc-step .choose-text {
  margin: 0;
}
.doc-steps-rows .doc-step .link-rule {
  grid-column: 3;
  margin-top: 8px;
  max-width: 360px;
}
@media (max-width: 767px) {
  .doc-steps-rows .doc-step {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .doc-steps-rows .doc-step .choose-text,
  .doc-steps-rows .doc-step .link-rule {
    grid-column: 2;
  }
}
/* A long letter's remaining paragraphs (DocPage "prose"): one narrow column, bold closing line, signature under the rule. */
.doc-prose {
  display: flow-root; /* keeps the first paragraph's top margin inside (it leaked out as a white strip above the letter) */
  padding-top: 0;
}
.doc-prose-body {
  max-width: 760px;
  margin: 0 auto;
}
.doc-prose-lead {
  font-weight: 600;
  color: var(--color-brand);
}
.doc-prose-sign {
  margin-top: 40px;
}
.doc-prose-sign::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--color-accent);
}
/* Testimonials: a photo beside the featured quote (quotes `image`), and the cards in one sideways-scrolling row (`scroll`),
   native scroll snap, no script: 2 cards visible on wide screens, about 1.2 on phones. */
.doc-quote-lead {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  margin-bottom: 24px;
  background: var(--white);
}
.doc-quote-lead .doc-quote-featured {
  margin: 0;
}
.doc-quote-lead-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.doc-quotes-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 2);
  gap: 24px;
  margin-top: 48px;
  padding-bottom: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.doc-quotes-scroll > .doc-quote {
  scroll-snap-align: start;
}
@media (max-width: 991px) {
  .doc-quote-lead {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-quote-lead-photo {
    min-height: 240px;
  }
  .doc-quotes-scroll {
    grid-auto-columns: 82%;
  }
}

/* Inner-page banner (client, Nisam 2026-11-10: "reduce the top header image height … follow the new HTML header … one
   height everywhere"): one shorter height on every inner page (was the design's 600–817 px), the navy tint of the
   client's new pages over the photo, caption centred below the header. The homepage hero is a different block.
   2026-11-11 (Nisam: "reduce the height" again): 400 px (his shortest page's banner), 360 px on phones; was 440–520 / 420. */
.page-banner {
  height: 400px;
}
/* 2026-11-13 (user): the navy tint fades to nothing at the bottom of the photo (was 0.78 → 0.6). */
.page-banner-scrim {
  background: linear-gradient(180deg, rgba(0, 22, 41, 0.78) 0%, rgba(0, 22, 41, 0) 100%);
}
.page-banner-caption {
  justify-content: center;
  padding-bottom: 48px;
}
@media (max-width: 1399px) {
  .page-banner-caption {
    padding-bottom: 40px;
  }
}
@media (max-width: 767px) {
  /* At least 260 px (was a fixed 360, almost square: a wide photo showed only its middle 45 %, now ~60 %; Nisam
     2026-11-14), growing when a long title needs more room, so the text never overflows. */
  .page-banner {
    height: auto;
    min-height: 260px;
  }
  .page-banner-caption {
    position: relative;
    min-height: 260px;
  }
  .page-banner-caption {
    padding-bottom: 32px;
  }
}
/* …and the side rail starts high enough to sit over that shorter banner on any screen height (the homepage keeps the
   design's 27%); on phones the banner no longer reaches the rail's spot, so there it stays hidden (site-fixes.js). */
@media (min-width: 992px) {
  body:has(.page-banner) .side-rail {
    top: min(27%, 160px);
  }
}


/* Content pages (DocPage, `main.doc-page`) at the client's HTML sizes (2026-11-11 meeting, his DESIGN.md): 1280 px page
   with 16 / 32 / 64 px sides, 40 px headings (30 on phones), 24 px card titles, 18 px section text, 72 / 48 px section
   padding. Fonts and colours stay ours. Placed last so it wins over the equal-specificity rules above. */
.doc-page .container {
  max-width: 1280px;
  padding-left: 16px;
  padding-right: 16px;
}
.doc-page .split-title,
.doc-page .facilities-title,
.doc-page .faq-title,
.doc-page .tour-cta-title {
  font-size: 40px;
  line-height: 48px;
}
.doc-page .feature-title,
.doc-page h3.news-card-title {
  font-size: 24px;
  line-height: 32px;
}
.doc-page .split-text,
.doc-page .facilities-intro,
.doc-page .thinkers-intro {
  font-size: 18px;
  line-height: 28px;
}
.doc-page .section-split,
.doc-page .facilities,
.doc-page .thinkers,
.doc-page .doc-steps,
.doc-page .doc-intro-section,
.doc-page .faq {
  padding-top: 48px;
  padding-bottom: 48px;
}
/* No green line beside the FAQs (client 2026-11-11): the questions line up with the rest of the page. */
.doc-page .faq-inner {
  padding-left: 0;
  border-left: 0;
}
@media (min-width: 768px) {
  .doc-page .container {
    padding-left: 32px;
    padding-right: 32px;
  }
  .doc-page .section-split,
  .doc-page .facilities,
  .doc-page .thinkers,
  .doc-page .doc-steps,
  .doc-page .doc-intro-section,
  .doc-page .faq {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}
@media (min-width: 1024px) {
  .doc-page .container {
    padding-left: 64px;
    padding-right: 64px;
  }
}
@media (max-width: 767px) {
  .doc-page .split-title,
  .doc-page .facilities-title,
  .doc-page .faq-title,
  .doc-page .tour-cta-title {
    font-size: 30px;
    line-height: 38px;
  }
}

/* Content pages, photos and cards as in the client's HTML (2026-11-11): photo rows = two equal columns 32 px apart,
   text centred beside a 460 px photo (380 on phones, 384 for a photo pair) with a light shadow, 144 px between rows;
   photo cards boxed (white on light, a lighter navy on navy) with a 224 px photo and a medium shadow. */
.doc-page .split-media {
  --split-ratio: auto;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.doc-page .split-media img {
  height: 380px;
}
.doc-page .split-media-pair img {
  height: 300px;
}
.doc-page .split-body-intro,
.doc-page .split-body-philosophy,
.doc-page .split-body-sm {
  padding-top: 0;
}
.doc-page .split-body .link-rule {
  margin-top: 32px;
}
.doc-page .split-row + .split-row {
  margin-top: 96px;
}
.doc-page .news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 24px;
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.doc-page .doc-navy .news-card {
  background: rgba(255, 255, 255, 0.06);
}
.doc-page .news-card > :not(.news-card-media) {
  margin-left: 24px;
  margin-right: 24px;
}
.doc-page .news-card-media {
  aspect-ratio: auto;
  height: 224px;
}
.doc-page .doc-link-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* His card hover (Nisam 2026-11-14, his HTML `hover:-translate-y-1 hover:shadow-*`): lifts 4px, shadow grows. */
.doc-page .doc-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
@media (prefers-reduced-motion: reduce) {
  .doc-page .doc-link-card:hover {
    transform: none;
  }
}
@media (min-width: 768px) {
  .doc-page .split-media img {
    height: 460px;
  }
  .doc-page .split-media-pair img {
    height: 384px;
  }
  .doc-page .split-row + .split-row {
    margin-top: 144px;
  }
}
@media (min-width: 992px) {
  .doc-page .split-row,
  .doc-page .split-row-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
  }
}

/* Admissions pack in the client's HTML (2026-11-12). Link cards with no section heading: a page's closing "explore" row
   (name + arrow on one line, no icon) and the hub's two text columns (Who Can Apply / What You'll Need). */
.doc-links-bare .doc-links-grid {
  margin-top: 0;
}
.doc-link-card > .news-card-title:first-child {
  margin-top: 0; /* no icon above it */
}
.doc-page .doc-link-card > h2.news-card-title {
  font-size: 24px;
  line-height: 32px;
}
a.doc-link-card:not(:has(.feature-icon, .doc-link-text, .doc-figure)) {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 20px 28px;
}
a.doc-link-card:not(:has(.feature-icon, .doc-link-text, .doc-figure)) .news-card-title {
  flex: 1 1 auto;
  font-size: 20px;
  line-height: 28px;
}
a.doc-link-card:not(:has(.feature-icon, .doc-link-text, .doc-figure)) .doc-link-arrow {
  flex: none;
  margin-top: 0;
}
.doc-link-accent {
  background: #e3f5e9; /* the hub's Apply Online and Admission Enquiry, as his light green cards */
}
.doc-link-card .link-rule {
  margin-top: 24px;
}
.doc-link-card .link-rule + .link-rule {
  margin-top: 16px;
}
/* A large figure on a card or a closing box ("RO 25" over "Admission test fee"). */
.doc-figure {
  margin: 20px 0 0;
}
.doc-figure strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 48px;
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-accent);
}
.doc-figure span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-body);
}
.doc-navy .doc-figure span {
  color: var(--white);
}
/* A split row's green sub-heading under its heading (Transfers' "What Equivalency Means for Relocating Families"). */
.doc-split-sub {
  margin: 12px 0 0;
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: var(--fw-medium);
  line-height: 28px;
  color: var(--color-accent);
}
/* A closing box (text `layout: "box"`): heading and text left; figure, buttons or link right; stacked on phones. */
.doc-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 64px;
  align-items: center;
  padding: 48px 56px;
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.doc-navy .doc-box {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.doc-box .facilities-title {
  margin: 0;
  text-align: left;
}
.doc-box .facilities-intro {
  max-width: 680px;
  margin: 16px 0 0;
  text-align: left;
}
.doc-box-side {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}
.doc-box-side .doc-figure {
  flex-basis: 100%;
  margin: 0;
  text-align: right;
}
.doc-box-side .link-rule {
  margin: 0;
}
.doc-box .btn-outline {
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.doc-box .btn-outline::before {
  background: var(--color-brand);
}
.doc-box .btn-outline:hover {
  color: var(--white);
}
@media (max-width: 767px) {
  .doc-box {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px;
  }
  .doc-box-side {
    justify-content: flex-start;
  }
  .doc-box-side .doc-figure {
    text-align: left;
  }
  .doc-box-btn {
    width: 100%;
    min-width: 0;
  }
}
/* The line and link under a form (Book a Tour), and the small note under a form's button. */
.doc-form-after {
  margin-top: 40px;
  text-align: center;
}
.doc-form-after .link-rule {
  max-width: 360px;
  margin: 16px auto 0;
}
.contact-form-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-body);
}
/* Admission Enquiry's office details from Admin › Settings: one white box, two columns. */
.doc-office-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px;
  margin-top: 40px;
  padding: 48px 56px;
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.doc-office-box h3 {
  margin: 0;
}
.doc-office-group {
  margin-top: 24px;
}
.doc-office-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-body);
}
.doc-office-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-office-group li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 16px;
  line-height: 28px;
  color: var(--color-heading);
}
.doc-office-group .bi {
  color: var(--color-accent);
}
.doc-office-group a {
  color: inherit;
}
@media (max-width: 767px) {
  .doc-office-box {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px;
  }
}
/* An FAQ answer's link to its page (Admissions FAQs), link-sized under the answer. */
.faq-answer .link-rule {
  max-width: 320px;
  margin-top: 12px;
}
/* Room between a form section's heading/intro and the form (Book a Tour, Admission Enquiry, Apply Online). */
.doc-page .facilities-head + .contact-form {
  margin-top: 40px;
}
/* Careers' "Contact Our HR Team" (client's HTML, 2026-11-12): the office box in four columns. */
.doc-office-box-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.doc-office-box-4 .doc-office-group {
  margin-top: 0;
}
@media (max-width: 991px) {
  .doc-office-box-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .doc-office-box-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* News & Events (client's HTML, 2026-11-12): list (featured, tabs, cards, load more) and the post page. */
.news-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: var(--color-accent);
  color: var(--white);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-page .news-card-date {
  top: auto;
  left: auto;
  right: 16px;
  bottom: 16px;
  padding: 6px 12px;
  background: var(--white);
  color: var(--color-heading);
  font-size: 13px;
}
.news-feature-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
}
.news-feature-tags > * {
  position: static;
}
.news-page .news-featured {
  background: var(--color-bg-soft);
  padding: 72px 0;
}
.news-page .news-feature-big .news-card-media {
  flex: 1 0 auto;
  height: auto;
  min-height: 420px;
}
.news-page .news-feature-big .news-card-title {
  font-size: 32px;
  line-height: 40px;
}
.news-feature-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-feature-side .news-card {
  height: auto;
  flex: 1;
}
.news-page .news-list {
  background: var(--color-bg);
}
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(1, 43, 93, 0.1);
}
.news-tabs a {
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--color-heading);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-tabs a:hover,
.news-tabs a[aria-current] {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.news-page .news-list .facilities-head {
  margin-bottom: 40px;
  text-align: left;
}
.news-more {
  margin-top: 56px;
  text-align: center;
}
.news-more .btn-outline {
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.news-more .btn-outline::before {
  background: var(--color-brand);
}
.news-more .btn-outline:hover {
  color: var(--white);
}
.news-count {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}
.news-page [id^="more-"] {
  scroll-margin-top: 120px;
}
/* The post */
.news-article {
  padding: 80px 0 72px;
  background: var(--color-bg);
}
.news-article .container {
  max-width: 1000px;
}
.news-article-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-article-cat::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}
.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 24px 0 0;
  padding: 0 0 32px;
  border-bottom: 2px solid var(--color-accent);
  list-style: none;
  font-size: 14px;
  color: var(--color-text-muted);
}
.news-article-meta .bi {
  margin-right: 6px;
  color: var(--color-accent);
}
.news-article-cover {
  margin: 40px 0 0;
}
.news-article-cover img {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}
/* A post's video (2026-11-18): whole (phone videos are often upright), on black, no taller than the cover photo. */
.news-article-video {
  display: block;
  width: 100%;
  max-height: 600px;
  background: #000;
  object-fit: contain;
}
.news-article-body {
  max-width: 780px;
  margin: 48px auto 0;
}
.news-article-body p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 30px;
  color: var(--color-body);
}
.news-article-body > p:first-child {
  font-size: 20px;
  line-height: 32px;
  color: var(--color-heading);
}
.news-article-body h2 {
  margin: 48px 0 20px;
  font-family: var(--heading-font);
  font-size: 30px;
  font-weight: var(--fw-semibold);
  line-height: 38px;
  color: var(--color-heading);
}
.news-article-body blockquote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-soft);
  font-family: var(--heading-font);
  font-size: 22px;
  font-style: italic;
  line-height: 32px;
  color: var(--color-heading);
  white-space: pre-line;
}
.news-article-body ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.news-article-body li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-body);
}
.news-article-body li .bi {
  color: var(--color-accent);
}
.news-highlights {
  margin-top: 64px;
}
.news-highlights h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
}
.news-highlights h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(1, 43, 93, 0.15);
}
.news-highlights-grid {
  display: grid;
  grid-template-columns: 7fr 2.5fr 2.5fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}
.news-highlight {
  position: relative;
  display: block;
  overflow: hidden;
}
.news-highlight:first-child {
  grid-row: span 2;
}
.news-highlight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-float);
}
.news-highlight:hover img {
  transform: scale(1.04);
}
.news-highlight-more {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(1, 43, 93, 0.7);
  color: var(--white);
  font-weight: var(--fw-semibold);
}
.news-highlight-more span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-highlights-all {
  margin-top: 20px;
  text-align: right;
}
.news-highlights-all .link-rule {
  width: auto;
}
.news-article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(1, 43, 93, 0.1);
}
.news-back {
  color: var(--color-accent);
  font-weight: var(--fw-semibold);
}
.news-share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.news-share a,
.news-share button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(1, 43, 93, 0.2);
  background: none;
  color: var(--color-heading);
}
.news-share a:hover,
.news-share button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.news-page .news-more-list {
  background: var(--color-bg-soft);
}
.news-more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.news-more-head .link-rule {
  width: auto;
}
@media (max-width: 991px) {
  .news-page .news-feature-big .news-card-media {
    height: 300px;
  }
}
@media (max-width: 767px) {
  .news-article {
    padding: 56px 0 48px;
  }
  .news-highlights-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 140px 140px;
  }
  .news-highlight:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
  .news-page .news-feature-big .news-card-title {
    font-size: 24px;
    line-height: 32px;
  }
}
@media print {
  .page-banner,
  .news-highlights,
  .news-article-foot,
  .news-more-list,
  header,
  footer {
    display: none !important;
  }
}
/* Careers' vacancy posters (client's files, 2026-11-12): square, shown whole, the Apply Now link under each. */
.doc-page .doc-posters .news-card-media {
  height: auto;
  aspect-ratio: 1;
}
.doc-posters .news-card-media img {
  object-fit: contain;
}
.doc-posters .news-card-media + .news-card-link {
  margin-top: 0;
}

/* Contact page additions from Nisam's Contact page (pages-html/contact-us, 2026-11-13): Get Directions over the map,
   three detail cards, the Feedback & Suggestions box and the institutional notice (ContactMore.tsx). His sizes:
   section 72 px, card text 16/26, headings 20/28 and 24/32; our colours and card shadow. */
.contact-map {
  position: relative;
}
.contact-map-directions {
  position: absolute;
  right: 24px;
  bottom: 24px;
}
.contact-more {
  padding: 72px 0;
  background: var(--color-bg-soft);
}
.contact-more-card,
.contact-more-box,
.contact-notice {
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.contact-more-card {
  height: 100%;
  padding: 32px;
  font-size: 16px;
  line-height: 26px;
  overflow-wrap: anywhere;
}
.contact-more-card > i,
.contact-more-head > i {
  font-size: 24px;
  line-height: 1;
  color: var(--color-accent);
}
.contact-more-card h2 {
  margin: 16px 0 12px;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-brand);
}
.contact-more-card dl {
  margin: 0;
}
.contact-more-card dt {
  font-weight: 600;
  color: var(--color-brand);
}
.contact-more-card dd {
  margin: 0 0 12px;
}
.contact-more-card a {
  color: var(--color-accent);
}
.contact-more-card p {
  margin: 0 0 16px;
}
.contact-more-box {
  margin-top: 48px;
  padding: 40px;
}
.contact-more-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-more-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 32px;
  color: var(--color-brand);
}
.contact-more-head p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
}
.contact-more-box .contact-form {
  margin-top: 32px;
  padding: 0;
  background: transparent;
}
.contact-notice {
  margin-top: 48px;
  padding: 32px;
  border-left: 4px solid var(--color-accent);
}
.contact-notice h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
}
.contact-notice h2 i {
  font-size: 20px;
  color: var(--color-accent);
}
.contact-notice p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
}
@media (max-width: 575px) {
  .contact-more {
    padding: 48px 0;
  }
  .contact-more-box,
  .contact-more-card,
  .contact-notice {
    padding: 24px;
  }
  .contact-map-directions {
    right: 16px;
    bottom: 16px;
  }
}

/* Content pages: section backgrounds alternate white / light as in the client's HTML (Nisam 2026-11-13), his light
   #F4F7F9; navy sections keep the design's navy. The classes come from DocPage's alternate(). */
main.doc-page > section.doc-white {
  background: #fff;
}
main.doc-page > section.doc-light {
  background: #f4f7f9;
}
/* His navy on content-page bands (#001F38, most of his files) in place of the design's #012B5D; header, banner and
   footer keep ours. News: featured + list on his light; Contact: his single light #F4F7FA-ish, same #F4F7F9. */
main.doc-page > section.thinkers:not(.doc-band-light),
main.doc-page > section.doc-navy {
  background: var(--color-brand);
}
main.news-page > section.news-featured,
main.news-page > section.news-list,
main > section.contact,
main > section.contact-more,
main > section.contact-map {
  background: #f4f7f9;
}

/* Text sizes from the client's HTML (2026-11-13, user: "must follow html for font sizes"). Each content page (and a
   section where his file differs) carries his measured sizes as CSS variables (DocPage `fonts`, set by one-time updates
   in db/page-updates.ts): --f<kind>-l/m/s = font size at ≥1024 / 768–1023 / <768 px, --l<kind>-* = line height. Kinds:
   bn banner title, h1 intro heading, h2 section headings, h3 card/step titles, sm card/step text, bd body text. A page
   without them keeps the sizes above. Placed last so it wins. */
main.doc-page[style*="--fbn-l:"] .page-banner-title {
  font-size: var(--fbn-s);
  line-height: var(--lbn-s);
}
main.doc-page[style*="--fh1-l:"] h1.split-title {
  font-size: var(--fh1-s);
  line-height: var(--lh1-s);
}
main.doc-page[style*="--fh2-l:"] h2:is(.split-title, .facilities-title, .thinkers-title):not(.doc-label) {
  font-size: var(--fh2-s);
  line-height: var(--lh2-s);
}
main.doc-page[style*="--fh3-l:"] :is(h2, h3):is(.news-card-title, .feature-title) {
  font-size: var(--fh3-s);
  line-height: var(--lh3-s);
}
main.doc-page[style*="--fsm-l:"] :is(.doc-link-text, .news-card-text, .choose-text) {
  font-size: var(--fsm-s);
  line-height: var(--lsm-s);
}
main.doc-page[style*="--fbd-l:"] :is(.split-text, .facilities-intro, .thinkers-intro) {
  font-size: var(--fbd-s);
  line-height: var(--lbd-s);
}
main.doc-page[style*="--fq-l:"] .doc-quote:not(.doc-quote-featured) > blockquote {
  font-size: var(--fq-s);
  line-height: var(--lq-s);
}
main.doc-page[style*="--fqf-l:"] .doc-quote-featured > blockquote {
  font-size: var(--fqf-s);
  line-height: var(--lqf-s);
}
main.doc-page[style*="--fld-l:"] .doc-intro-lead {
  font-size: var(--fld-s);
  line-height: var(--lld-s);
}
main.doc-page[style*="--fsg-l:"] .doc-prose-sign {
  font-size: var(--fsg-s);
  line-height: var(--lsg-s);
}
main.doc-page[style*="--fot-l:"] :is(.doc-cards-outro, .doc-steps-outro) {
  font-size: var(--fot-s);
  line-height: var(--lot-s);
}
main.doc-page[style*="--fsb-l:"] .doc-split-sub {
  font-size: var(--fsb-s);
  line-height: var(--lsb-s);
}
main.doc-page[style*="--fgl-l:"] .doc-group-label {
  font-size: var(--fgl-s);
  line-height: var(--lgl-s);
}
main.doc-page[style*="--fnt-l:"] .contact-form-note {
  font-size: var(--fnt-s);
  line-height: var(--lnt-s);
}
@media (min-width: 768px) {
main.doc-page[style*="--fbn-l:"] .page-banner-title {
  font-size: var(--fbn-m);
  line-height: var(--lbn-m);
}
main.doc-page[style*="--fh1-l:"] h1.split-title {
  font-size: var(--fh1-m);
  line-height: var(--lh1-m);
}
main.doc-page[style*="--fh2-l:"] h2:is(.split-title, .facilities-title, .thinkers-title):not(.doc-label) {
  font-size: var(--fh2-m);
  line-height: var(--lh2-m);
}
main.doc-page[style*="--fh3-l:"] :is(h2, h3):is(.news-card-title, .feature-title) {
  font-size: var(--fh3-m);
  line-height: var(--lh3-m);
}
main.doc-page[style*="--fsm-l:"] :is(.doc-link-text, .news-card-text, .choose-text) {
  font-size: var(--fsm-m);
  line-height: var(--lsm-m);
}
main.doc-page[style*="--fbd-l:"] :is(.split-text, .facilities-intro, .thinkers-intro) {
  font-size: var(--fbd-m);
  line-height: var(--lbd-m);
}
main.doc-page[style*="--fq-l:"] .doc-quote:not(.doc-quote-featured) > blockquote {
  font-size: var(--fq-m);
  line-height: var(--lq-m);
}
main.doc-page[style*="--fqf-l:"] .doc-quote-featured > blockquote {
  font-size: var(--fqf-m);
  line-height: var(--lqf-m);
}
main.doc-page[style*="--fld-l:"] .doc-intro-lead {
  font-size: var(--fld-m);
  line-height: var(--lld-m);
}
main.doc-page[style*="--fsg-l:"] .doc-prose-sign {
  font-size: var(--fsg-m);
  line-height: var(--lsg-m);
}
main.doc-page[style*="--fot-l:"] :is(.doc-cards-outro, .doc-steps-outro) {
  font-size: var(--fot-m);
  line-height: var(--lot-m);
}
main.doc-page[style*="--fsb-l:"] .doc-split-sub {
  font-size: var(--fsb-m);
  line-height: var(--lsb-m);
}
main.doc-page[style*="--fgl-l:"] .doc-group-label {
  font-size: var(--fgl-m);
  line-height: var(--lgl-m);
}
main.doc-page[style*="--fnt-l:"] .contact-form-note {
  font-size: var(--fnt-m);
  line-height: var(--lnt-m);
}
}
@media (min-width: 1024px) {
main.doc-page[style*="--fbn-l:"] .page-banner-title {
  font-size: var(--fbn-l);
  line-height: var(--lbn-l);
}
main.doc-page[style*="--fh1-l:"] h1.split-title {
  font-size: var(--fh1-l);
  line-height: var(--lh1-l);
}
main.doc-page[style*="--fh2-l:"] h2:is(.split-title, .facilities-title, .thinkers-title):not(.doc-label) {
  font-size: var(--fh2-l);
  line-height: var(--lh2-l);
}
main.doc-page[style*="--fh3-l:"] :is(h2, h3):is(.news-card-title, .feature-title) {
  font-size: var(--fh3-l);
  line-height: var(--lh3-l);
}
main.doc-page[style*="--fsm-l:"] :is(.doc-link-text, .news-card-text, .choose-text) {
  font-size: var(--fsm-l);
  line-height: var(--lsm-l);
}
main.doc-page[style*="--fbd-l:"] :is(.split-text, .facilities-intro, .thinkers-intro) {
  font-size: var(--fbd-l);
  line-height: var(--lbd-l);
}
main.doc-page[style*="--fq-l:"] .doc-quote:not(.doc-quote-featured) > blockquote {
  font-size: var(--fq-l);
  line-height: var(--lq-l);
}
main.doc-page[style*="--fqf-l:"] .doc-quote-featured > blockquote {
  font-size: var(--fqf-l);
  line-height: var(--lqf-l);
}
main.doc-page[style*="--fld-l:"] .doc-intro-lead {
  font-size: var(--fld-l);
  line-height: var(--lld-l);
}
main.doc-page[style*="--fsg-l:"] .doc-prose-sign {
  font-size: var(--fsg-l);
  line-height: var(--lsg-l);
}
main.doc-page[style*="--fot-l:"] :is(.doc-cards-outro, .doc-steps-outro) {
  font-size: var(--fot-l);
  line-height: var(--lot-l);
}
main.doc-page[style*="--fsb-l:"] .doc-split-sub {
  font-size: var(--fsb-l);
  line-height: var(--lsb-l);
}
main.doc-page[style*="--fgl-l:"] .doc-group-label {
  font-size: var(--fgl-l);
  line-height: var(--lgl-l);
}
main.doc-page[style*="--fnt-l:"] .contact-form-note {
  font-size: var(--fnt-l);
  line-height: var(--lnt-l);
}
}
/* Mission & Vision (`quote` rows, his HTML): the title as a small green label under a short green line, the statement
   as a large quote (his 24 / 30 / 36 px, leading-snug, medium). */
.doc-page h2.doc-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #00a651;
}
.doc-page h2.doc-label::before {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  margin-bottom: 24px;
  background: #00a651;
}
.doc-statement {
  margin: 24px 0 0;
  font-family: var(--heading-font);
  font-size: 24px;
  line-height: 1.375;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--color-heading);
}
.doc-navy-row .doc-statement {
  color: #fff;
}
@media (min-width: 768px) {
  .doc-statement {
    font-size: 30px;
  }
}
@media (min-width: 1024px) {
  .doc-statement {
    font-size: 36px;
  }
}
/* Contact and News aren't DocPage pages: his sizes set directly (his HTML, 2026-11-13). Order: phone, ≥768, ≥1024. */
.contact-title { font-size: 24px; line-height: 33px; }
.contact-more-card h2 { font-size: 16px; line-height: 24px; }
.contact-more-card p { font-size: 12px; line-height: 19.5px; }
.contact-more-head h2 { font-size: 18px; line-height: 28px; }
.contact-more-head p { font-size: 12px; line-height: 16px; }
main:has(> .contact) .page-banner-title { font-size: 36px; line-height: 40px; }
main.news-page .page-banner-title { font-size: 56px; line-height: 58.8px; }
main.news-page .news-list .facilities-title { font-size: 32px; line-height: 40px; }
@media (min-width: 768px) {
  .contact-title { font-size: 30px; line-height: 36px; }
  main:has(> .contact) .page-banner-title { font-size: 48px; line-height: 48px; }
  main.news-page .page-banner-title { font-size: 68px; line-height: 71.4px; }
}
@media (min-width: 1024px) {
  .contact-title { font-size: 36px; line-height: 40px; }
  main:has(> .contact) .page-banner-title { font-size: 60px; line-height: 60px; }
}
.contact-notice p { font-size: 12px; line-height: 19.5px; }
main.news-page h1.split-title { font-size: 40px; line-height: 48px; }

/* Logos in place of a row's photo (Accreditations, 2026-11-14, Nisam's HTML): a panel up to 440 px wide in the opposite
   shade of its section, the logo whole (never cropped) up to 160 px tall (180 from 768 px), its JPEG white blended away.
   A row marked `logo` (DocPage split, any image picked in Admin) or whose image file name holds "-logo-" gets this. */
.doc-page .split-media:is(.split-media-logo, :has(img[src*="-logo-"])) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  padding: 16px;
  justify-self: center;
  align-self: center;
  background: #f1f4f6;
  box-shadow: none;
}
.doc-page .doc-light .split-media:is(.split-media-logo, :has(img[src*="-logo-"])) {
  background: #fff;
}
.doc-page .split-media-logo img,
.doc-page .split-media img[src*="-logo-"] {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 160px;
  aspect-ratio: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (min-width: 768px) {
  .doc-page .split-media:is(.split-media-logo, :has(img[src*="-logo-"])) {
    padding: 24px;
  }
  .doc-page .split-media-logo img,
  .doc-page .split-media img[src*="-logo-"] {
    height: auto;
    max-height: 180px;
  }
}
@media (min-width: 992px) {
  .doc-page .split-row > .split-media:first-child:is(.split-media-logo, :has(img[src*="-logo-"])) {
    justify-self: start;
  }
  .doc-page .split-row > .split-media:last-child:is(.split-media-logo, :has(img[src*="-logo-"])) {
    justify-self: end;
  }
}

/* Numbered list beside a heading under a wide photo (About Us › Our Campus, 2026-11-14, Nisam's HTML): 16 px above and
   below each row with only the hairline between, the number small bold green on the text's first line, text 48 px in;
   24 px between the text and the link on the left. */
.doc-top-cols .doc-ach-numbered li {
  padding: 16px 0 16px 48px;
}
.doc-top-cols .doc-ach-numbered li + li {
  margin-top: 0;
}
.doc-top-cols .doc-ach-numbered .doc-ach-index {
  top: 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: inherit;
}
.doc-top-cols .split-text + .link-rule {
  margin-top: 24px;
}

/* Kindergarten (its own designed page, no measured sizes): banner title and first heading at Primary's sizes, as on the
   other Academics pages (user 2026-11-14 "keep same as other page"). The STEM hub's first heading too (Nisam 2026-11-14). */
@media (min-width: 768px) {
  main.kg-page .page-banner-title {
    font-size: 56px;
    line-height: 64px;
  }
}
main.kg-page h1.split-title,
main.stem-page h1.split-title {
  font-size: 40px;
  line-height: 50px;
}

/* Note box (text `layout: "note"`, his IGCSE "Exam Fees & Dates", Nisam 2026-11-14): centred white box with a green
   edge, icon tile, heading and text with the link inline. Stacked on phones. */
.doc-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 896px;
  margin: 0 auto;
  padding: 48px 48px 48px 56px;
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.doc-note::before,
.doc-links-bar .doc-link-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--color-accent);
}
.doc-note-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--color-bg-soft);
  color: var(--color-accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.doc-note-icon svg {
  width: 32px;
  height: 32px;
}
.doc-note .facilities-title,
.doc-note .facilities-intro {
  margin: 0;
  text-align: left;
}
.doc-note .facilities-intro {
  margin-top: 12px;
}
.doc-note .facilities-intro a {
  font-weight: var(--fw-semibold, 600);
  color: var(--color-accent);
  text-decoration: underline;
  transition: color 150ms ease;
}
.doc-note .facilities-intro a:hover {
  color: var(--color-brand);
}
@media (max-width: 767px) {
  .doc-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 24px 32px 32px;
  }
}
/* His side-by-side panels with the green edge (Transportation's Two-Way / One-Way, Requirements' KG / Grade 1): links
   `bar: true`. */
.doc-links-bar .doc-link-card {
  position: relative;
  padding-left: 38px;
}

/* Quote slider as his HTML (Testimonials' More Parent Voices, Nisam 2026-11-14): heading left under a short green
   rule, square arrows on the right, his grey-edged cards; 3 a row on computers (his instruction), 2 on tablets, 1 on
   phones. site-fixes.js moves it. */
.doc-carousel .doc-carousel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}
.doc-carousel .doc-carousel-head .facilities-title {
  margin: 0;
  text-align: left;
}
.doc-carousel-rule {
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 12px;
  background: var(--color-accent);
}
.doc-carousel-nav {
  display: flex;
  flex: none;
  gap: 12px;
}
.doc-carousel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(196, 198, 207, 0.6);
  background: var(--white);
  color: var(--color-brand);
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.doc-carousel-btn svg {
  width: 8px;
  height: 13px;
}
.doc-carousel-btn:hover,
.doc-carousel-btn:focus-visible {
  background: var(--color-brand);
  color: var(--white);
}
.doc-carousel .doc-quotes-scroll {
  grid-auto-columns: calc((100% - 48px) / 3);
  scrollbar-width: none;
}
.doc-carousel .doc-quotes-scroll::-webkit-scrollbar {
  display: none;
}
.doc-carousel .doc-quote {
  border: 1px solid #e2e8f0;
  background: #f4f7f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
@media (max-width: 991px) {
  .doc-carousel .doc-quotes-scroll {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}
@media (max-width: 767px) {
  .doc-carousel .doc-quotes-scroll {
    grid-auto-columns: 100%;
  }
}

/* School journey as his HTML (Academics overview, Nisam 2026-11-14): four stage cards in the stage colours on a colour
   rail, numbered dots on computers, a "Stage 0n" tag + grades pill, footer tags, and the milestone strip under them.
   2 a row on tablets, 1 on phones. */
.doc-journey-card:nth-child(1) { --jc: #005596; --jt: #eff6ff; --jx: #005596; }
.doc-journey-card:nth-child(2) { --jc: #f59e0b; --jt: #fffbeb; --jx: #b45309; }
.doc-journey-card:nth-child(3) { --jc: #00a651; --jt: #ecfdf5; --jx: #00a651; }
.doc-journey-card:nth-child(4) { --jc: #c8102e; --jt: #fef2f2; --jx: #c8102e; box-shadow: 0 0 0 1px #fee2e2, 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.doc-journey-rail {
  position: relative;
  margin-top: 64px;
}
.doc-journey-line {
  display: none;
}
.doc-journey-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-journey-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-top: 5px solid var(--jc);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.doc-journey-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.doc-journey-dot {
  display: none;
}
.doc-journey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.doc-journey-stage {
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--jt);
  color: var(--jx);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.doc-journey-grades {
  padding: 2px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}
.doc-journey-title {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--color-brand);
}
.doc-journey-text {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.625;
  color: #334155;
}
.doc-journey-parts {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.doc-journey-part {
  padding: 12px;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: rgba(254, 242, 242, 0.7);
}
.doc-journey-part strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--jc);
}
.doc-journey-part + .doc-journey-part strong {
  color: #7f1d1d;
}
.doc-journey-part span {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #1e293b;
}
.doc-journey-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #475569;
}
.doc-journey-tag {
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--jt);
  color: var(--jx);
  font-weight: 700;
}
.doc-journey-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 32px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 16px;
  color: #475569;
}
.doc-journey-note p {
  margin: 0;
}
.doc-journey-note-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: #00a651;
}
.doc-journey-note strong {
  margin-right: 4px;
  font-weight: 600;
  color: var(--color-brand);
}
.doc-journey-note a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #005596;
}
.doc-journey-note a:hover {
  text-decoration: underline;
}
.doc-journey-note svg {
  width: 14px;
  height: 14px;
}
@media (min-width: 576px) {
  .doc-journey-note {
    flex-direction: row;
  }
}
@media (min-width: 768px) {
  .doc-journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .doc-journey-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .doc-journey-card {
    padding: 32px;
  }
  .doc-journey-line {
    position: absolute;
    top: 28px;
    right: 6%;
    left: 6%;
    z-index: 0;
    display: block;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #005596 0%, #f59e0b 25%, #00a651 50%, #c8102e 75%, #991b1b 100%);
    opacity: 0.7;
  }
  .doc-journey-dot {
    position: absolute;
    top: -17px;
    left: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--jc);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  }
}
/* A section that is a link target (`anchor`) stops below the fixed header. */
main.doc-page > section[id] {
  scroll-margin-top: 120px;
}

/* Two pathway cards as his HTML (Academics overview, Nisam 2026-11-14): photo with a badge, heading, pill, text, round
   buttons. Card 1 navy / blue, card 2 green. Side by side from tablets. */
.doc-pathway:nth-child(1) { --pc: #005596; --pt: rgba(239, 246, 255, 0.8); --pb: rgba(0, 43, 73, 0.9); --pbtn: var(--color-brand); --pbtn-h: #001d33; }
.doc-pathway:nth-child(2) { --pc: #00a651; --pt: rgba(236, 253, 245, 0.8); --pb: rgba(0, 166, 81, 0.95); --pbtn: #00a651; --pbtn-h: #059669; }
.doc-pathways-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  max-width: 1104px;
  margin: 64px auto 0;
}
.doc-pathway {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.doc-pathway:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.doc-pathway-media {
  position: relative;
  height: 256px;
  overflow: hidden;
}
.doc-pathway-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 43, 73, 0.7), rgba(0, 43, 73, 0.2), rgba(0, 0, 0, 0.2));
}
.doc-pathway-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.doc-pathway:hover .doc-pathway-media img {
  transform: scale(1.05);
}
.doc-pathway-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--pb);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.doc-pathway-badge svg {
  width: 14px;
  height: 14px;
}
.doc-pathway-body {
  padding: 32px 32px 16px;
}
.doc-pathway-title {
  margin: 0 0 16px;
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.025em;
  color: var(--color-brand);
}
.doc-pathway-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--pc) 20%, transparent);
  border-radius: 12px;
  background: var(--pt);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--pc);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.doc-pathway:nth-child(2) .doc-pathway-pill > span:last-child {
  color: #065f46;
}
.doc-pathway-pill svg {
  width: 16px;
  height: 16px;
}
.doc-pathway-pill .doc-pathway-sep {
  color: #cbd5e1;
}
.doc-pathway-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.625;
  color: #334155;
}
.doc-pathway-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 32px 32px;
}
.doc-pathway-btn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  border: 1px solid var(--pbtn);
  border-radius: 999px;
  background: var(--pbtn);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.doc-pathway-btn:hover {
  border-color: var(--pbtn-h);
  background: var(--pbtn-h);
  color: var(--white);
}
.doc-pathway-btn svg {
  width: 16px;
  height: 16px;
}
.doc-pathway-btn-outline {
  border-color: var(--color-brand);
  background: transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--color-brand);
}
.doc-pathway-btn-outline:hover {
  border-color: var(--color-brand);
  background: var(--color-brand);
}
@media (min-width: 576px) {
  .doc-pathway-media {
    height: 288px;
  }
  .doc-pathway-buttons {
    flex-direction: row;
  }
}
@media (min-width: 768px) {
  .doc-pathways-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .doc-pathway-body {
    padding: 40px 40px 16px;
  }
  .doc-pathway-buttons {
    padding: 8px 40px 40px;
  }
  .doc-pathway-title {
    font-size: 28px;
    line-height: 36px;
  }
}

/* Support panel as his HTML: heading left over a short green rule, one white panel of 3 columns (blue, green, amber). */
.doc-support .facilities-head {
  max-width: 768px;
  margin-left: 0;
  text-align: left;
}
.doc-support .facilities-head .facilities-title,
.doc-support .facilities-head .facilities-intro {
  text-align: left;
}
.doc-support-rule {
  display: block;
  width: 64px;
  height: 4px;
  margin: 16px 0 24px;
  border-radius: 999px;
  background: #00a651;
}
.doc-support-col:nth-child(1) { --sc: #005596; --st: #eff6ff; --sh: #005596; }
.doc-support-col:nth-child(2) { --sc: #00a651; --st: #ecfdf5; --sh: #047857; }
.doc-support-col:nth-child(3) { --sc: #f59e0b; --st: #fffbeb; --sh: #b45309; }
.doc-support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.doc-support-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
}
.doc-support-col + .doc-support-col {
  border-top: 1px solid #f1f5f9;
}
.doc-support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--st);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--sc);
}
.doc-support-icon svg {
  width: 28px;
  height: 28px;
}
.doc-support-title {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--color-brand);
}
.doc-support-text {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.625;
  color: #334155;
}
.doc-support-foot {
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sc);
}
.doc-support-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sc);
  transition: color 150ms ease;
}
.doc-support-foot a:hover {
  color: var(--sh);
}
.doc-support-foot svg {
  width: 14px;
  height: 14px;
}
@media (min-width: 768px) {
  .doc-support-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .doc-support-col + .doc-support-col {
    border-top: 0;
    border-left: 1px solid #f1f5f9;
  }
}
@media (min-width: 992px) {
  .doc-support-col {
    padding: 40px;
  }
}

/* Explore by Curriculum as his HTML: small green label + heading left, note right, 3 link cards (navy, green, amber top
   edges) that lift on hover, icon tile and round arrow fill with the card's colour. */
.doc-track:nth-child(1) { --tc: var(--color-brand); --tt: #eff6ff; --th: #005596; }
.doc-track:nth-child(2) { --tc: #00a651; --tt: #ecfdf5; --th: #00a651; }
.doc-track:nth-child(3) { --tc: #f59e0b; --tt: #fffbeb; --th: #f59e0b; }
.doc-tracks-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 40px;
}
.doc-tracks-head .facilities-title {
  margin: 4px 0 0;
  text-align: left;
}
.doc-tracks-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #00a651;
}
.doc-tracks-intro {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: #334155;
}
.doc-tracks-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.doc-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-top: 5px solid var(--tc);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.doc-track:hover {
  transform: translateY(-4px);
  border-color: var(--th);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.doc-track-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.doc-track-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--tt);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--tc);
  transition: all 150ms ease;
}
.doc-track:hover .doc-track-icon {
  background: var(--tc);
  color: var(--white);
}
.doc-track-icon svg {
  width: 28px;
  height: 28px;
}
.doc-track-name {
  display: block;
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: var(--color-brand);
  transition: color 150ms ease;
}
.doc-track:hover .doc-track-name {
  color: var(--th);
}
.doc-track-text {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #334155;
}
.doc-track-arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #94a3b8;
  transition: all 150ms ease;
}
.doc-track:hover .doc-track-arrow {
  background: var(--tc);
  color: var(--white);
}
.doc-track-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 150ms ease;
}
.doc-track:hover .doc-track-arrow svg {
  transform: translateX(2px);
}
@media (min-width: 768px) {
  .doc-tracks-head {
    flex-direction: row;
    align-items: center;
  }
  .doc-tracks-intro {
    font-size: 14px;
    line-height: 20px;
  }
  .doc-tracks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .doc-track:hover {
    transform: none;
  }
}

/* Steps `timeline` as his GED structure (Nisam 2026-11-14): green rule over the centred heading, then green numbered
   circles (56 px) on a 2 px green line with the step name under each; stacked down a line on phones. */
.doc-steps-timeline .doc-steps-rule {
  display: block;
  width: 48px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--color-accent);
}
.doc-steps-timeline .doc-steps-list {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  max-width: 768px;
  margin: 48px auto 0;
  padding: 8px 0;
}
.doc-steps-timeline .doc-steps-list::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 27px;
  width: 2px;
  background: var(--color-accent);
}
.doc-steps-timeline .doc-step,
.doc-steps-timeline .doc-step + .doc-step {
  position: relative;
  z-index: 1;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
}
.doc-steps-timeline .doc-step-index {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
main.doc-page .doc-steps-timeline h3.feature-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: var(--white);
}
@media (min-width: 576px) {
  .doc-steps-timeline .doc-steps-list {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
  .doc-steps-timeline .doc-steps-list::before {
    top: 36px;
    right: 28px;
    bottom: auto;
    left: 28px;
    width: auto;
    height: 2px;
  }
  .doc-steps-timeline .doc-step,
  .doc-steps-timeline .doc-step + .doc-step {
    flex-direction: column;
    gap: 12px;
  }
}

/* Text `card` as his GED "Diploma & Equivalency Recognition": white rounded box, green left edge, heading, sub heading,
   text with the link inline; sits close under the section before it, as in his file. */
.doc-card-box {
  padding: 32px;
  border: 1px solid rgba(195, 199, 206, 0.3);
  border-left: 4px solid var(--color-accent);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.doc-card-box .facilities-title {
  margin: 0 0 8px;
  text-align: left;
}
.doc-card-sub {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--color-brand);
}
.doc-card-box .facilities-intro {
  max-width: none;
  margin: 0;
  text-align: left;
  color: #475569;
}
.doc-card-box .facilities-intro a {
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  text-decoration: underline;
  transition: color 150ms ease;
}
.doc-card-box .facilities-intro a:hover {
  color: var(--color-brand);
}
main.doc-page > section.facilities:has(+ .doc-card-section) {
  padding-bottom: 32px;
}
main.doc-page > section.doc-card-section {
  padding-top: 16px;
}
@media (min-width: 992px) {
  .doc-card-box {
    padding: 40px;
  }
}

/* Text `rule` (his short green line over the heading, or between heading and text) and `narrow` (his ~670 px column). */
.doc-text-rule {
  display: block;
  width: 48px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--color-accent);
}
.facilities-title + .doc-text-rule {
  margin-top: 16px;
}
.doc-text-left .doc-text-rule {
  margin-left: 0;
}
.doc-text-narrow .facilities-head {
  max-width: 672px;
}
.doc-text-narrow .facilities-intro {
  max-width: none;
}
/* His University Acceptance text column (768 px) over the Diploma box. */
main.doc-page > section.facilities:has(+ .doc-card-section) .facilities-intro {
  max-width: 768px;
}

/* Photo sliders as his HTML (cards `slider`: Explore Student Life, Sports Offered; Nisam 2026-11-14): 4 tall photo cards
   in view on computers, 2 on tablets, 1 and a peek on phones; the name over a navy fade at the bottom; a link card
   (Student Life) is 415 px with an arrow box, a plain one (Sports) 360 px. Counter and round arrows top right. */
.doc-slider .doc-quotes-scroll {
  grid-auto-columns: 82%;
  gap: 16px;
  margin-top: 32px;
  padding: 4px 0;
}
.doc-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 360px;
  padding: 24px;
  overflow: hidden;
  background: var(--color-brand);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--white);
  scroll-snap-align: start;
  transition: box-shadow 150ms ease;
}
a.doc-slide {
  height: 415px;
}
.doc-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease-out;
}
.doc-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 31, 56, 0.9), rgba(0, 31, 56, 0.3) 50%, transparent);
}
a.doc-slide::after {
  background: linear-gradient(to top, rgba(0, 22, 41, 0.95), rgba(0, 22, 41, 0.45) 50%, transparent);
}
.doc-slide:hover img {
  transform: scale(1.05);
}
a.doc-slide:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
a.doc-slide:hover img {
  transform: scale(1.03);
}
.doc-slide-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.doc-slide-title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--white);
}
.doc-slide-arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  transition: background 150ms ease;
}
a.doc-slide:hover .doc-slide-arrow {
  background: var(--color-accent);
}
.doc-slide-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 300ms ease;
}
a.doc-slide:hover .doc-slide-arrow svg {
  transform: translateX(4px);
}
.doc-slider .doc-carousel-nav {
  align-items: center;
  gap: 16px;
}
.doc-slider-count {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(1, 43, 93, 0.7);
}
.doc-slider .doc-slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.doc-slider .doc-slider-btn svg {
  width: 20px;
  height: 20px;
}
.doc-slider .doc-slider-btn:hover,
.doc-slider .doc-slider-btn:focus-visible {
  border-color: var(--color-accent);
  background: var(--color-accent);
}
@media (min-width: 576px) {
  .doc-slider .doc-quotes-scroll {
    grid-auto-columns: 46%;
    gap: 20px;
  }
}
@media (min-width: 992px) {
  .doc-slider .doc-quotes-scroll {
    grid-auto-columns: calc((100% - 60px) / 4);
  }
}
.doc-slider .doc-slider-btn {
  border-color: #c3c7ce;
  background: #ebeef0;
}

/* Four Houses as his HTML (cards `houses`, Nisam 2026-11-14): 480 px photo panels, the house colour fading up from the
   bottom (his two gradients), a 6 px glowing bar, name in capitals and motto in italics; 4 a row on computers, 2 on
   tablets, 1 on phones. */
.doc-house:nth-child(1) { --hc: #1555c0; --h-tint: linear-gradient(to top, rgba(10, 35, 85, 0.95) 0%, rgba(21, 85, 192, 0.7) 40%, rgba(21, 85, 192, 0.2) 75%, transparent 100%), linear-gradient(180deg, rgba(21, 85, 192, 0.15) 0%, rgba(21, 85, 192, 0.4) 100%); --h-glow: rgba(21, 85, 192, 0.7); }
.doc-house:nth-child(2) { --hc: #087b43; --h-tint: linear-gradient(to top, rgba(4, 55, 30, 0.95) 0%, rgba(8, 123, 67, 0.7) 40%, rgba(8, 123, 67, 0.2) 75%, transparent 100%), linear-gradient(180deg, rgba(8, 123, 67, 0.15) 0%, rgba(8, 123, 67, 0.4) 100%); --h-glow: rgba(8, 123, 67, 0.7); }
.doc-house:nth-child(3) { --hc: #c52d36; --h-tint: linear-gradient(to top, rgba(80, 15, 20, 0.95) 0%, rgba(197, 45, 54, 0.7) 40%, rgba(197, 45, 54, 0.2) 75%, transparent 100%), linear-gradient(180deg, rgba(197, 45, 54, 0.15) 0%, rgba(197, 45, 54, 0.4) 100%); --h-glow: rgba(197, 45, 54, 0.7); }
.doc-house:nth-child(4) { --hc: #e8ad15; --h-tint: linear-gradient(to top, rgba(70, 48, 5, 0.96) 0%, rgba(140, 95, 10, 0.85) 35%, rgba(232, 173, 21, 0.25) 75%, transparent 100%), linear-gradient(180deg, rgba(232, 173, 21, 0.18) 0%, rgba(232, 173, 21, 0.4) 100%); --h-glow: rgba(232, 173, 21, 0.7); }
.doc-houses .facilities-head {
  max-width: 768px;
}
.doc-houses-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.doc-house {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--color-brand);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: box-shadow 300ms ease;
}
.doc-house:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.doc-house img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease-out;
}
.doc-house:hover img {
  transform: scale(1.05);
}
.doc-house-tint {
  position: absolute;
  inset: 0;
  background: var(--h-tint);
  transition: opacity 300ms ease;
}
.doc-house:hover .doc-house-tint {
  opacity: 0.95;
}
.doc-house-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: var(--hc);
  box-shadow: 0 -2px 12px var(--h-glow);
}
.doc-house-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 24px;
}
.doc-house-title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.doc-house-motto {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.625;
  color: var(--white);
}
@media (min-width: 768px) {
  .doc-houses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .doc-houses-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Sports' house tiles as his HTML (photo row `houses`, Nisam 2026-11-14): 4 small tiles (2 a row on phones), a 2 px top
   edge and a short bar in the house colour, the colour name bold over "House"; then his green capitals link. */
.doc-house-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.doc-house-tile:nth-child(1) { --hc: #1555c0; }
.doc-house-tile:nth-child(2) { --hc: #087b43; }
.doc-house-tile:nth-child(3) { --hc: #c52d36; }
.doc-house-tile:nth-child(4) { --hc: #e8ad15; }
.doc-house-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 96px;
  padding: 16px;
  border-top: 2px solid var(--hc);
  background: #f1f4f6;
}
.doc-house-tile-bar {
  display: block;
  width: 32px;
  height: 4px;
  background: var(--hc);
}
.doc-house-tile strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-brand);
}
.doc-house-tile strong + span {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: #73777e;
}
.doc-caps-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00a651;
  transition: color 150ms ease;
}
.doc-caps-link:hover {
  color: var(--color-brand);
}
.doc-caps-link svg {
  width: 18px;
  height: 18px;
}
@media (min-width: 576px) {
  .doc-house-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Clubs & Activities as his HTML (Nisam 2026-11-14). Heading left under the green rule. */
.doc-actlist-head {
  margin-bottom: 32px;
}
.doc-actlist-head .doc-text-rule {
  margin-left: 0;
}
.doc-actlist-head .facilities-title {
  margin: 0;
  text-align: left;
}
/* Curricular: photo (5/12) beside a white panel (7/12) of numbered items in two columns; a row tints on hover and a
   chevron slides in. */
.doc-actlist-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.doc-actlist-photo {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #e5e9eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.doc-actlist-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doc-actlist-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px 32px;
  margin: 0;
  padding: 32px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  list-style: none;
}
.doc-actlist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
  transition: background 150ms ease;
}
.doc-actlist-item:hover {
  background: #f1f4f6;
}
.doc-actlist-num {
  flex: none;
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #006d33;
}
.doc-actlist-name {
  flex: 1;
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: #181c1e;
  transition: color 150ms ease;
}
.doc-actlist-item:hover .doc-actlist-name {
  color: #006d33;
}
.doc-actlist-chev {
  flex: none;
  width: 7px;
  height: 11px;
  color: #006d33;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 150ms ease;
}
.doc-actlist-item:hover .doc-actlist-chev {
  opacity: 1;
  transform: none;
}
/* Co-Curricular: mosaic (one large photo, one wide and two small beside it) over a white panel of dotted chips. */
.doc-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.doc-mosaic-tile {
  position: relative;
  height: 212px;
  overflow: hidden;
  background: #e5e9eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.doc-mosaic-1 {
  height: 360px;
}
.doc-mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.doc-mosaic-tile:hover img {
  transform: scale(1.05);
}
.doc-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 32px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  list-style: none;
}
.doc-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f7fafc;
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: #181c1e;
  transition: background 150ms ease, color 150ms ease;
}
.doc-chip:hover {
  background: #ebeef0;
  color: #006d33;
}
.doc-chip-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #006d33;
  transition: transform 150ms ease;
}
.doc-chip:hover .doc-chip-dot {
  transform: scale(1.5);
}
@media (min-width: 576px) {
  .doc-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .doc-actlist-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc-mosaic {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 212px 212px;
  }
  .doc-mosaic-1 {
    grid-row: 1 / span 2;
    grid-column: 1;
    height: auto;
  }
  .doc-mosaic-2 {
    grid-column: 2 / span 2;
  }
}
@media (min-width: 992px) {
  .doc-actlist-grid {
    grid-template-columns: 5fr 7fr;
  }
  .doc-chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Competing: green rule over the heading, his light-green capitals link on navy, the green tag on the photo. */
.doc-split-rule {
  margin-left: 0;
}
.doc-caps-link-light {
  color: #78fc9c;
}
.doc-caps-link-light:hover {
  color: var(--white);
}
.split-media-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  padding: 4px 16px;
  background: #006d33;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.split-media:has(.split-media-tag) {
  position: relative;
}
/* Explore Specific Activities: the slider's photo cards, 4 in one row (2 on tablets, 1 on phones), 384 px, round arrow. */
.doc-panels-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.doc-panels a.doc-slide {
  height: 384px;
}
.doc-panels .doc-slide-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.doc-panels .doc-slide-arrow svg {
  width: 20px;
  height: 20px;
}
@media (min-width: 576px) {
  .doc-panels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .doc-panels-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* His Academics journey + pathways heads: a 768 px centred column (heading wraps to two lines, as in his file). */
.doc-journey .facilities-head,
.doc-pathways .facilities-head {
  max-width: 768px;
  margin-right: auto;
  margin-left: auto;
}
/* His GED timeline intro: a ~670 px centred column; his University Acceptance text 12 px under its heading. */
.doc-steps-timeline .thinkers-intro {
  max-width: 672px;
  margin-right: auto;
  margin-left: auto;
}
main.doc-page > section.facilities:has(+ .doc-card-section) .facilities-title {
  margin-bottom: 0;
}
main.doc-page > section.facilities:has(+ .doc-card-section) .facilities-intro {
  margin-top: 12px;
}
/* Photo panels (no carousel class): the same left heading under the green rule, 32 px above the panels. */
.doc-panels .doc-carousel-head {
  max-width: none;
  margin: 0 0 32px;
  text-align: left;
}
.doc-panels .doc-carousel-head .facilities-title {
  margin: 0;
  text-align: left;
}

/* Video section (Video Gallery's school tour, Nisam 2026-11-14): one large 16:9 player under the heading. */
.doc-video-player {
  display: block;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  margin: 48px auto 0;
  background: #000;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* The school's full logo on phones too (Nisam 2026-11-14: "school full logo should be visible"): the design hid the
   wordmark below 576 px. It now sits beside the crest, sized to the room left by the search, AR and menu buttons. */
@media (max-width: 575px) {
  .navbar-brand {
    gap: 10px;
  }
  .brand-wordmark {
    display: block;
    width: clamp(120px, calc(100vw - 210px), 172px);
  }
}
/* AR (the Arabic site switch) hidden for the time being (Nisam 2026-11-14): there is no Arabic site yet. */
.nav-lang {
  display: none !important;
}

/* Side rail (Nisam 2026-11-14): its labels ("Virtual Tour" …) only while the rail is under the pointer or has keyboard
   focus, not by default (so never on touch screens); on the homepage the rail sits in the middle of the screen height.
   Inner pages keep their spot over the shorter banner (the rail hides once past it, site-fixes.js). */
.side-rail:not(:hover):not(:focus-within) .rail-label,
.side-rail:not(:hover):not(:focus-within) .rail-bg {
  opacity: 0 !important;
}
body:not(:has(.page-banner)) .side-rail {
  top: 50%;
  bottom: auto;
  translate: 0 -50%;
}

/* Menu accordion on one-column screens (≤991 px; site-fixes.js moves each panel under its item): the section's links
   indented under it; the design's separate panel column is left empty, so it is hidden. */
.menu-inline .main-menu-panels {
  display: none;
}
.menu-inline .main-menu-item > .main-menu-panel {
  padding: 6px 0 6px 18px;
}
.menu-inline .main-menu-item > .main-menu-panel .submenu-link {
  padding: 6px 0;
}

/* Photo focus points (Admin image guide phase 3, 2026-11-14): a photo picked in Admin › Pages can carry "#fp=<x>-<y>" on
   its address (the part to keep in view, steps of 10 %); each rule keeps that point in view in any cropped frame.
   !important: the admin's choice wins over the design's own crop. The centre (50-50) is the default and has no rule. */
img[src$="#fp=0-0"]{object-position:0% 0%!important}
img[src$="#fp=0-10"]{object-position:0% 10%!important}
img[src$="#fp=0-20"]{object-position:0% 20%!important}
img[src$="#fp=0-30"]{object-position:0% 30%!important}
img[src$="#fp=0-40"]{object-position:0% 40%!important}
img[src$="#fp=0-50"]{object-position:0% 50%!important}
img[src$="#fp=0-60"]{object-position:0% 60%!important}
img[src$="#fp=0-70"]{object-position:0% 70%!important}
img[src$="#fp=0-80"]{object-position:0% 80%!important}
img[src$="#fp=0-90"]{object-position:0% 90%!important}
img[src$="#fp=0-100"]{object-position:0% 100%!important}
img[src$="#fp=10-0"]{object-position:10% 0%!important}
img[src$="#fp=10-10"]{object-position:10% 10%!important}
img[src$="#fp=10-20"]{object-position:10% 20%!important}
img[src$="#fp=10-30"]{object-position:10% 30%!important}
img[src$="#fp=10-40"]{object-position:10% 40%!important}
img[src$="#fp=10-50"]{object-position:10% 50%!important}
img[src$="#fp=10-60"]{object-position:10% 60%!important}
img[src$="#fp=10-70"]{object-position:10% 70%!important}
img[src$="#fp=10-80"]{object-position:10% 80%!important}
img[src$="#fp=10-90"]{object-position:10% 90%!important}
img[src$="#fp=10-100"]{object-position:10% 100%!important}
img[src$="#fp=20-0"]{object-position:20% 0%!important}
img[src$="#fp=20-10"]{object-position:20% 10%!important}
img[src$="#fp=20-20"]{object-position:20% 20%!important}
img[src$="#fp=20-30"]{object-position:20% 30%!important}
img[src$="#fp=20-40"]{object-position:20% 40%!important}
img[src$="#fp=20-50"]{object-position:20% 50%!important}
img[src$="#fp=20-60"]{object-position:20% 60%!important}
img[src$="#fp=20-70"]{object-position:20% 70%!important}
img[src$="#fp=20-80"]{object-position:20% 80%!important}
img[src$="#fp=20-90"]{object-position:20% 90%!important}
img[src$="#fp=20-100"]{object-position:20% 100%!important}
img[src$="#fp=30-0"]{object-position:30% 0%!important}
img[src$="#fp=30-10"]{object-position:30% 10%!important}
img[src$="#fp=30-20"]{object-position:30% 20%!important}
img[src$="#fp=30-30"]{object-position:30% 30%!important}
img[src$="#fp=30-40"]{object-position:30% 40%!important}
img[src$="#fp=30-50"]{object-position:30% 50%!important}
img[src$="#fp=30-60"]{object-position:30% 60%!important}
img[src$="#fp=30-70"]{object-position:30% 70%!important}
img[src$="#fp=30-80"]{object-position:30% 80%!important}
img[src$="#fp=30-90"]{object-position:30% 90%!important}
img[src$="#fp=30-100"]{object-position:30% 100%!important}
img[src$="#fp=40-0"]{object-position:40% 0%!important}
img[src$="#fp=40-10"]{object-position:40% 10%!important}
img[src$="#fp=40-20"]{object-position:40% 20%!important}
img[src$="#fp=40-30"]{object-position:40% 30%!important}
img[src$="#fp=40-40"]{object-position:40% 40%!important}
img[src$="#fp=40-50"]{object-position:40% 50%!important}
img[src$="#fp=40-60"]{object-position:40% 60%!important}
img[src$="#fp=40-70"]{object-position:40% 70%!important}
img[src$="#fp=40-80"]{object-position:40% 80%!important}
img[src$="#fp=40-90"]{object-position:40% 90%!important}
img[src$="#fp=40-100"]{object-position:40% 100%!important}
img[src$="#fp=50-0"]{object-position:50% 0%!important}
img[src$="#fp=50-10"]{object-position:50% 10%!important}
img[src$="#fp=50-20"]{object-position:50% 20%!important}
img[src$="#fp=50-30"]{object-position:50% 30%!important}
img[src$="#fp=50-40"]{object-position:50% 40%!important}
img[src$="#fp=50-60"]{object-position:50% 60%!important}
img[src$="#fp=50-70"]{object-position:50% 70%!important}
img[src$="#fp=50-80"]{object-position:50% 80%!important}
img[src$="#fp=50-90"]{object-position:50% 90%!important}
img[src$="#fp=50-100"]{object-position:50% 100%!important}
img[src$="#fp=60-0"]{object-position:60% 0%!important}
img[src$="#fp=60-10"]{object-position:60% 10%!important}
img[src$="#fp=60-20"]{object-position:60% 20%!important}
img[src$="#fp=60-30"]{object-position:60% 30%!important}
img[src$="#fp=60-40"]{object-position:60% 40%!important}
img[src$="#fp=60-50"]{object-position:60% 50%!important}
img[src$="#fp=60-60"]{object-position:60% 60%!important}
img[src$="#fp=60-70"]{object-position:60% 70%!important}
img[src$="#fp=60-80"]{object-position:60% 80%!important}
img[src$="#fp=60-90"]{object-position:60% 90%!important}
img[src$="#fp=60-100"]{object-position:60% 100%!important}
img[src$="#fp=70-0"]{object-position:70% 0%!important}
img[src$="#fp=70-10"]{object-position:70% 10%!important}
img[src$="#fp=70-20"]{object-position:70% 20%!important}
img[src$="#fp=70-30"]{object-position:70% 30%!important}
img[src$="#fp=70-40"]{object-position:70% 40%!important}
img[src$="#fp=70-50"]{object-position:70% 50%!important}
img[src$="#fp=70-60"]{object-position:70% 60%!important}
img[src$="#fp=70-70"]{object-position:70% 70%!important}
img[src$="#fp=70-80"]{object-position:70% 80%!important}
img[src$="#fp=70-90"]{object-position:70% 90%!important}
img[src$="#fp=70-100"]{object-position:70% 100%!important}
img[src$="#fp=80-0"]{object-position:80% 0%!important}
img[src$="#fp=80-10"]{object-position:80% 10%!important}
img[src$="#fp=80-20"]{object-position:80% 20%!important}
img[src$="#fp=80-30"]{object-position:80% 30%!important}
img[src$="#fp=80-40"]{object-position:80% 40%!important}
img[src$="#fp=80-50"]{object-position:80% 50%!important}
img[src$="#fp=80-60"]{object-position:80% 60%!important}
img[src$="#fp=80-70"]{object-position:80% 70%!important}
img[src$="#fp=80-80"]{object-position:80% 80%!important}
img[src$="#fp=80-90"]{object-position:80% 90%!important}
img[src$="#fp=80-100"]{object-position:80% 100%!important}
img[src$="#fp=90-0"]{object-position:90% 0%!important}
img[src$="#fp=90-10"]{object-position:90% 10%!important}
img[src$="#fp=90-20"]{object-position:90% 20%!important}
img[src$="#fp=90-30"]{object-position:90% 30%!important}
img[src$="#fp=90-40"]{object-position:90% 40%!important}
img[src$="#fp=90-50"]{object-position:90% 50%!important}
img[src$="#fp=90-60"]{object-position:90% 60%!important}
img[src$="#fp=90-70"]{object-position:90% 70%!important}
img[src$="#fp=90-80"]{object-position:90% 80%!important}
img[src$="#fp=90-90"]{object-position:90% 90%!important}
img[src$="#fp=90-100"]{object-position:90% 100%!important}
img[src$="#fp=100-0"]{object-position:100% 0%!important}
img[src$="#fp=100-10"]{object-position:100% 10%!important}
img[src$="#fp=100-20"]{object-position:100% 20%!important}
img[src$="#fp=100-30"]{object-position:100% 30%!important}
img[src$="#fp=100-40"]{object-position:100% 40%!important}
img[src$="#fp=100-50"]{object-position:100% 50%!important}
img[src$="#fp=100-60"]{object-position:100% 60%!important}
img[src$="#fp=100-70"]{object-position:100% 70%!important}
img[src$="#fp=100-80"]{object-position:100% 80%!important}
img[src$="#fp=100-90"]{object-position:100% 90%!important}
img[src$="#fp=100-100"]{object-position:100% 100%!important}

/* Phones (Nisam 2026-11-14: "wide images are cutting on mobile, people mainly look on mobile"): a photo beside text and the
   wide top photo show the WHOLE photo at its own shape (they were cropped to near-square / a 260 px strip). Logos and
   side-by-side pairs keep their layout. Admin's picker shows these as "Phone · whole photo" (lib/image-guide.ts). */
@media (max-width: 767px) {
  .doc-page .split-media:not(.split-media-pair):not(:has(img[src*="-logo-"])) img,
  .doc-top-media img {
    height: auto;
    aspect-ratio: auto;
  }
}
/* With the shorter phone banner, a banner title is at most 40 px on phones (some pages carried his 56 px, which ran to
   three lines and under the header). */
@media (max-width: 767px) {
  main.doc-page[style*="--fbn-l:"] .page-banner-title {
    font-size: min(var(--fbn-s), 40px);
    line-height: min(var(--lbn-s), 48px);
  }
}

/* Menu open/close button on phones (Nisam 2026-11-14: "check the close button", still not right on his iPhone): the
   36×32 px button gets an invisible ~50×48 px tap area (Apple's minimum is 44×44; the icon looks the same, the area stays
   clear of the search icon); no hover change on touch screens (iPhone Safari can spend the first tap on a hover effect);
   no double-tap-zoom wait on the button and the menu's links. */
.navbar-toggler {
  position: relative;
  touch-action: manipulation;
}
.navbar-toggler::after {
  content: "";
  position: absolute;
  inset: -8px -8px -8px -6px;
}
.main-menu a,
.main-menu button {
  touch-action: manipulation;
}
@media (hover: none) {
  .navbar-toggler:hover span:nth-child(2) {
    width: 100%;
  }
}
/* Homepage Explore Programs on phones (Nisam 2026-11-14 screenshot: the Primary boy's face cut off): the photo strip is
   wide and the photos tall, with the faces in their top third, so the strip keeps the top part in view. */
@media (max-width: 767px) {
  .program-media img {
    object-position: center 15%;
  }
  .program-card:nth-of-type(3) .program-media img {
    object-position: center 32%; /* Middle: the raised hand takes the top, her face is lower */
  }
}

/* Card shades as in the client's HTML (2026-11-15, card colours phase 1). On navy sections his cards are a lighter navy
   (white text, white icons): all of them. On white sections only some are his #F1F4F6 grey (elsewhere white cards on
   white), so grey is per section: `cards: "grey"` → .doc-grey-cards (DocPage). Colour only: shapes and details stay.
   His light-green highlight cards (.doc-link-accent) keep their green. */
.doc-page .doc-grey-cards .doc-link-card:not(.doc-link-accent),
.doc-page .doc-grey-cards .news-card {
  background: #f1f4f6;
}
.doc-page .doc-navy .doc-link-card:not(.doc-link-accent) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.doc-page .doc-navy .doc-link-card:not(.doc-link-accent) :is(.news-card-title, .doc-figure strong) {
  color: var(--white);
}
.doc-page .doc-navy .doc-link-card:not(.doc-link-accent) :is(.doc-link-text, .link-rule, .doc-figure) {
  color: rgba(255, 255, 255, 0.8);
}
.doc-page .doc-navy .doc-link-card:not(.doc-link-accent) .feature-icon {
  filter: brightness(0) invert(1);
}
.doc-page .doc-navy .doc-link-card:not(.doc-link-accent) .doc-link-arrow {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Menu panels with 8+ links in two columns (user 2026-11-15, Header.tsx sets --rows): read down the first column, then the
   second, in the same order as a one-column panel (the design's grid filled row by row: Overview | Council, House | …).
   One column again on one-column screens, where the design's own rule already sets a single column. */
.main-menu-panel-wide {
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows, 1), auto);
}
@media (max-width: 991px) {
  .main-menu-panel-wide {
    grid-auto-flow: row;
    grid-template-rows: none;
  }
}

/* Card colours phase 2 (2026-11-15): numbered steps and icon features as boxes where his HTML has them (`cards` on the
   section, set per section): white boxes on a light or navy section, his #F1F4F6 grey on a white one; no hairlines
   between boxes. Colour and box only: numbers, icons and links stay. */
:is(.doc-white-cards, .doc-grey-cards) .doc-steps-list {
  gap: 24px;
}
:is(.doc-white-cards, .doc-grey-cards).doc-steps-rows .doc-steps-list {
  gap: 16px;
}
:is(.doc-white-cards, .doc-grey-cards) .doc-step,
:is(.doc-white-cards, .doc-grey-cards) .doc-step + .doc-step {
  padding: 32px 28px;
  border: 0;
}
:is(.doc-white-cards, .doc-grey-cards).doc-steps-rows .doc-step,
:is(.doc-white-cards, .doc-grey-cards).doc-steps-rows .doc-step + .doc-step {
  padding: 24px 28px;
}
.doc-white-cards :is(.doc-step, .feature-item) {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.doc-grey-cards :is(.doc-step, .feature-item) {
  background: #f1f4f6;
}
.feature-list:is(.doc-white-cards, .doc-grey-cards) .feature-item {
  column-gap: 24px;
  padding: 24px 28px;
}
.feature-list:is(.doc-white-cards, .doc-grey-cards) .feature-item + .feature-item {
  margin-top: 16px;
}
/* White boxes on the navy band: the band's white text turns dark inside them. */
.thinkers.doc-white-cards .doc-step .feature-title {
  color: var(--color-brand);
}
.thinkers.doc-white-cards .doc-step .choose-text {
  color: var(--color-body);
}
.thinkers.doc-white-cards .doc-step .link-rule-light {
  color: var(--color-brand);
  border-bottom-color: rgba(1, 43, 93, 0.2);
}
.thinkers.doc-white-cards .doc-step .link-rule-light:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
@media (max-width: 767px) {
  :is(.doc-white-cards, .doc-grey-cards) .doc-step,
  :is(.doc-white-cards, .doc-grey-cards) .doc-step + .doc-step,
  .feature-list:is(.doc-white-cards, .doc-grey-cards) .feature-item {
    padding: 24px 20px;
  }
}

/* Card shapes phase 3 (2026-11-15, his HTML). Photo panels with 3 cards: 3 a row; About Us' link panels 320 px, Educational
   Trips' plain ones 460 px with his 20 px title after a small green dot. */
@media (min-width: 992px) {
  .doc-panels-3 .doc-panels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.doc-panels-3 a.doc-slide {
  height: 320px;
}
.doc-panels .facilities-head:not(.doc-carousel-head) {
  margin-bottom: 48px; /* the centred heading (About Us) keeps its room above the panels */
}
.doc-panels-3 div.doc-slide {
  height: 460px;
}
.doc-panels div.doc-slide .doc-slide-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}
.doc-panels div.doc-slide .doc-slide-title::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
@media (max-width: 575px) {
  .doc-panels-3 div.doc-slide {
    height: 380px;
  }
}
/* `cards: "bar"`: his grey cards with the green left edge, no icon (Bilingual's Mother Tongue list, the uniform rules),
   and his small green label over a card's title (`tag`). */
.doc-page .doc-bar-cards :is(.feature-item, .doc-link-card) {
  background: #f1f4f6;
  box-shadow: none;
  border-left: 4px solid var(--color-accent);
}
.doc-bar-cards .feature-icon {
  display: none;
}
.feature-list.doc-bar-cards .feature-item {
  grid-template-columns: minmax(0, 1fr);
  padding: 24px 28px;
}
.feature-list.doc-bar-cards .feature-item + .feature-item {
  margin-top: 16px;
}
.doc-page .doc-bar-cards .doc-link-card {
  padding: 28px 32px;
}
.doc-page .doc-bar-cards .doc-link-card:hover {
  transform: none;
  box-shadow: none;
}
.doc-bar-cards .doc-link-card .news-card-title {
  margin-top: 0;
}
.doc-link-tag {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
/* Steps `grades` (Secondary's How Students Choose a Pathway): his dark grade cards on the navy band, the number in a
   round badge, the qualification as a chip, a short line under it; Grades 10 and 11 (the two choice points) in his red,
   Grade 12 (the final year) in green. */
.doc-steps-grades .doc-steps-list {
  gap: 16px;
}
.doc-steps-grades .doc-step,
.doc-steps-grades .doc-step + .doc-step {
  align-items: center;
  padding: 32px 20px;
  border: 0;
  border-top: 3px solid transparent;
  background: rgba(0, 22, 41, 0.6);
  text-align: center;
}
.doc-steps-grades .doc-step-index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.doc-steps-grades .doc-step .feature-title {
  margin-top: 16px;
}
.doc-step-chip {
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--heading-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.doc-steps-grades .doc-step .choose-text {
  flex: none;
  margin: 20px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.doc-steps-grades .doc-step:is(:nth-child(2), :nth-child(3)) {
  border-top-color: #c8102e;
}
.doc-steps-grades .doc-step:is(:nth-child(2), :nth-child(3)) .doc-step-index {
  border-color: #c8102e;
  background: #c8102e;
}
.doc-steps-grades .doc-step:is(:nth-child(2), :nth-child(3)) .choose-text::before {
  content: "•";
  margin-right: 6px;
  color: #c8102e;
}
.doc-steps-grades .doc-step:nth-child(4) .doc-step-index {
  border-color: var(--color-accent);
  background: var(--color-accent);
}
.doc-steps-grades .doc-step:nth-child(4) .choose-text {
  color: var(--color-accent);
}

/* A text left empty in Admin › Pages (Nisam 2026-11-15) takes no space: an empty heading, paragraph or quote is hidden.
   (Empty list entries, links without words and half-empty FAQs are left out before rendering: lib/pages.ts `shown`.) */
main :is(h1, h2, h3, h4, h5, h6, p, blockquote):empty {
  display: none;
}

/* Line breaks typed in Admin › Pages (Enter, or a typed <br>: lib/pages.ts `breaks`) show on the page; an empty line =
   a gap between paragraphs (Nisam 2026-11-16, Director's Message). Page texts hold no other line breaks. */
main p,
main li {
  white-space: pre-line;
}

/* Ask Al Injaz send button (site-fixes.js, Nisam 2026-11-18): the mic while the box is empty or while listening, the green
   send arrow once something is typed. Browsers without :has keep the design's mic only (Enter still sends). */
.assist-send {
  display: none;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.assist-send .assist-mic-disc {
  background: var(--color-accent);
}
.assist-send:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.assist:not(.is-listening) .assist-form:has(.assist-input:not(:placeholder-shown)) .assist-mic {
  display: none;
}
.assist:not(.is-listening) .assist-form:has(.assist-input:not(:placeholder-shown)) .assist-send {
  display: grid;
}

/* Album photo popup (site-fixes.js, Nisam 2026-11-18): the photo whole and centred on a dark backdrop, back / next at the
   sides, ✕ top right, the counter under the photo. */
html:has(.photo-pop[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.photo-pop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 16px 24px;
  border: 0;
  background: transparent;
}
.photo-pop[open] {
  display: grid;
  place-items: center;
  animation: tour-pop-in 0.25s ease-out;
}
.photo-pop::backdrop {
  background: rgba(1, 20, 45, 0.95);
}
.photo-pop-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0;
}
.photo-pop-img {
  display: block;
  max-width: min(1600px, 100%);
  max-height: calc(100dvh - 130px);
  object-fit: contain;
  user-select: none;
  touch-action: pan-y pinch-zoom; /* sideways swipes go to the popup, the rest to the browser */
}
.photo-pop-count {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.photo-pop-btn {
  position: fixed;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(1, 43, 93, 0.85);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s;
}
.photo-pop-btn:hover {
  background: var(--color-accent);
}
.photo-pop-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.photo-pop-btn[hidden] {
  display: none;
}
.photo-pop-btn svg {
  width: 12px;
  height: 18px;
}
.photo-pop-prev {
  left: 16px;
}
.photo-pop-next {
  right: 16px;
}
.photo-pop-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  transform: none;
}
.photo-pop-close svg {
  width: 13px;
  height: 13px;
}
@media (max-width: 575.98px) {
  .photo-pop {
    padding: 64px 0 24px;
  }
  .photo-pop-btn:not(.photo-pop-close) {
    top: auto;
    bottom: 20px;
    width: 44px;
    height: 44px;
    transform: none;
  }
  .photo-pop-img {
    max-height: calc(100dvh - 170px);
  }
}

/* ▶ on a news card whose post has a video (NewsCard.tsx VideoMark, 2026-11-18): centred on the photo. */
.news-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(1, 43, 93, 0.78);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  transition: background-color 0.2s, transform 0.2s;
  pointer-events: none;
}
.news-card-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px; /* the triangle's visual centre */
}
.news-card-media:hover .news-card-play,
.news-card-media:focus-visible .news-card-play {
  background: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.06);
}
@media (max-width: 575.98px) {
  .news-card-play {
    width: 52px;
    height: 52px;
  }
  .news-card-play svg {
    width: 22px;
    height: 22px;
  }
}

/* News cards on a content page (DocPage `news`, Downloads' Newsletters, 2026-11-18): room under the intro. */
.doc-news .facilities-head {
  margin-bottom: 40px;
}

/* Homepage popup (Admin › Settings, 2026-11-18): the tour popup's backdrop and ✕; the image shown whole, never cut. */
html:has(.site-pop[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.site-pop {
  width: fit-content;
  max-width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  overflow: auto;
}
.site-pop[open] {
  animation: tour-pop-in 0.32s ease-out;
}
.site-pop::backdrop {
  background: rgba(1, 43, 93, 0.78);
}
.site-pop-img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  margin: 0 auto;
  object-fit: contain;
}
.site-pop-body {
  padding: 28px 28px 32px;
  text-align: center;
}
.site-pop-img + .site-pop-body {
  padding-top: 20px;
}
.site-pop-title {
  margin: 0 40px 10px;
  color: var(--color-brand);
  font-size: 1.6rem;
  line-height: 1.25;
}
.site-pop-img + .site-pop-body .site-pop-title {
  margin-inline: 0;
}
.site-pop-text {
  margin: 0 0 20px;
  white-space: pre-line;
}
.site-pop-text:last-child {
  margin-bottom: 0;
}
.site-pop .btn-solid {
  display: inline-flex;
}
