/* ==========================================================================
   SFS Academy — site-wide modern layer (coffee brown & gold), loaded last on every page.
   The same language as the redesigned home page: bold, tightly set sans headlines with a coffee-to-gold gradient on the
   last words, pill labels and buttons, large rounded cards and photographs, soft shadows, and a split inner-page hero
   (headline on espresso, photograph in a tall rounded card). The footer is left exactly as it is.
   ========================================================================== */
:root {
    --s-c1: #377157;
    --s-c1-dk: #254f3c;
    --s-c1-xdk: #142f23;
    --s-g1: #c19e59;
    --s-g1-dk: #94773e;
    --s-g1-lt: #e3cda1;
    --s-cream: #fbf6ef;
    --s-latte: #f3e7d8;
    --s-ink: #1b2922;
    --s-text: #364e43;
    --s-muted: #4f7262;
    --s-line: #eadfd1;
    --s-r-lg: 32px;
    --s-r-md: 22px;
    --s-r-sm: 14px;
    --s-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --s-shadow: 0 24px 60px -30px rgb(37 79 60 / 0.35);
    --s-shadow-lg: 0 40px 90px -40px rgb(37 79 60 / 0.5);
    --s-grad: linear-gradient(120deg, #254f3c 0%, #377157 45%, #94773e 100%);
    --s-grad-gold: linear-gradient(120deg, #e3cda1 0%, #c19e59 55%, #94773e 100%);
}

/* ==========================================================================
   Header: a cleaner bar, pill hover on the links, coffee dropdown panels
   ========================================================================== */
.site-header .primary-nav__link { border-radius: 999px; transition: background-color 0.25s ease, color 0.25s ease; }
.site-header.is-solid .primary-nav__link:hover, .site-header.is-solid .primary-nav__item.is-open > .primary-nav__link { background: var(--s-latte); color: var(--s-c1-dk); }
.site-header .mega { border-radius: 0 0 var(--s-r-lg) var(--s-r-lg); }
.site-header .mega__links a { border-radius: var(--s-r-sm); transition: background-color 0.25s ease, transform 0.3s var(--s-ease); }
.site-header .mega__links a:hover { transform: translateX(4px); }
.site-header .mega__figure img { border-radius: var(--s-r-md); }

/* ==========================================================================
   Inner-page hero: split. Headline on espresso on the left; the photograph in a tall rounded card on the right.
   ========================================================================== */
html body:not(.page-home) .h-hero {
    display: block; min-height: 0 !important; padding: calc(var(--header-h, 5rem) + 3rem) 0 4.5rem; overflow: hidden;
    border-radius: 0 0 var(--s-r-lg) var(--s-r-lg) !important;
    background: radial-gradient(54rem 30rem at 85% 0%, rgb(76 123 102 / 0.55), transparent 62%), radial-gradient(36rem 26rem at 0% 100%, rgb(148 119 62 / 0.25), transparent 60%), linear-gradient(160deg, #142f23 0%, #1c3e2e 55%, #254f3c 100%) !important;
}
html body:not(.page-home) .h-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; height: auto !important; opacity: 0.45; background: radial-gradient(rgb(227 205 161 / 0.14) 1px, transparent 1.5px) 0 0 / 22px 22px !important; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%); mask-image: linear-gradient(90deg, #000 0%, transparent 60%); }
html body:not(.page-home) .h-hero__media {
    position: absolute; inset: auto; top: calc(var(--header-h, 5rem) + 2.25rem); bottom: 3rem; right: max(1.25rem, calc((100vw - 1240px) / 2));
    width: min(42%, 34rem); z-index: 0; overflow: hidden; border-radius: 34px; transform: rotate(-1.5deg);
    box-shadow: 0 50px 90px -40px rgb(0 0 0 / 0.75); outline: 2px solid rgb(193 158 89 / 0.5); outline-offset: 10px;
}
html body:not(.page-home) .h-hero__media img { animation: none; transform: scale(1.06) rotate(1.5deg); }
html body:not(.page-home) .h-hero__shade { background: linear-gradient(0deg, rgb(20 47 35 / 0.45) 0%, transparent 40%) !important; }
html body:not(.page-home) .h-hero__content { position: relative; z-index: 1; display: grid; justify-items: start; min-height: clamp(18rem, 30vw, 24rem); align-content: center; padding: 0 !important; }
html body:not(.page-home) .h-hero__content > * { max-width: min(100%, 36rem); }
html body:not(.page-home) .h-hero .crumbs ol { gap: 0.35rem; margin-bottom: 1.5rem; }
html body:not(.page-home) .h-hero .crumbs li { display: inline-flex; align-items: center; gap: 0.35rem; }
html body:not(.page-home) .h-hero .crumbs li + li::before { content: ""; width: 0.3rem; height: 0.3rem; margin: 0 0.2rem 0 0; border-radius: 50%; background: var(--s-g1); }
html body:not(.page-home) .h-hero .crumbs a, html body:not(.page-home) .h-hero .crumbs span, html body:not(.page-home) .h-hero .crumbs [aria-current="page"] { padding: 0.35rem 0.8rem; font-size: 0.75rem; font-weight: 700; color: rgb(255 255 255 / 0.8); background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.14); border-radius: 999px; text-decoration: none; }
html body:not(.page-home) .h-hero .crumbs [aria-current="page"] { color: var(--s-g1-lt); }
html body:not(.page-home) .h-hero__eyebrow { display: inline-flex !important; align-items: center; gap: 0.55rem; margin-bottom: 1.1rem; padding: 0.45rem 0.95rem 0.45rem 0.55rem; font-size: 0.7rem !important; font-weight: 800; letter-spacing: 0.14em; color: var(--s-g1-lt) !important; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.18); border-radius: 999px; }
html body:not(.page-home) .h-hero__eyebrow::before { content: "" !important; width: 0.55rem !important; height: 0.55rem !important; border-radius: 50%; background: var(--s-grad-gold) !important; }
html body:not(.page-home) .h-hero__title { font-family: "Playfair Display", Georgia, serif !important; font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.4rem) !important; font-weight: 800 !important; line-height: 1 !important; letter-spacing: -0.045em !important; font-style: normal !important; }
html body:not(.page-home) .h-hero__line { display: inline; }
html body:not(.page-home) .h-hero__line:last-child, html body:not(.page-home) .h-hero__title .hl { font-style: normal !important; font-weight: 800 !important; color: transparent !important; background: var(--s-grad-gold); -webkit-background-clip: text; background-clip: text; }
html body:not(.page-home) .h-hero__intro { margin-top: 1.25rem; padding-left: 1rem; border-left: 3px solid var(--s-g1); color: rgb(255 255 255 / 0.8); }
html body:not(.page-home) .h-hero__badge { top: calc(var(--header-h, 5rem) + 1.25rem); bottom: auto !important; right: max(0.5rem, calc((100vw - 1240px) / 2 - 1rem)); z-index: 2; width: clamp(5.5rem, 8vw, 7.5rem); border-radius: 18px; box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.65); animation: s-float 7s ease-in-out infinite; }
@keyframes s-float { 50% { transform: translateY(-8px); } }

/* ==========================================================================
   Type, labels, buttons and links
   ========================================================================== */
body:not(.page-home) :is(.h2, .h-display, .md-title, .a-block__title, .pg-title, .fg-text__title, .fc-card__title, .cca-row__title) {
    font-family: "Playfair Display", Georgia, serif !important; font-weight: 800 !important; letter-spacing: -0.035em !important; line-height: 1.06 !important;
}
body:not(.page-home) main :is(h2, .h2, .h-display, .md-title, .a-block__title, .pg-title, .fg-text__title, .fc-card__title, .cca-row__title) .hl {
    font-style: normal !important; font-weight: 800 !important; color: transparent !important; background: var(--s-grad); -webkit-background-clip: text; background-clip: text;
}
body:not(.page-home) main .hl.hl--light, body:not(.page-home) main :is(.section--dark, .fill-dark) .hl { background: var(--s-grad-gold); -webkit-background-clip: text; background-clip: text; }

body:not(.page-home) main .eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.95rem 0.45rem 0.55rem;
    font-size: 0.7rem !important; font-weight: 800 !important; letter-spacing: 0.14em; color: var(--s-c1) !important;
    background: var(--s-latte); border: 1px solid #e6d4bd; border-radius: 999px;
}
body:not(.page-home) main .eyebrow::before { content: "" !important; width: 0.55rem !important; height: 0.55rem !important; border-radius: 50%; background: var(--s-grad-gold) !important; transform: none !important; }
body:not(.page-home) main .eyebrow::after { display: none !important; }
body:not(.page-home) main :is(.section--dark, .fill-dark, .v-mission, .ad-select) .eyebrow, body:not(.page-home) main .eyebrow--light { color: var(--s-g1-lt) !important; background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.18); }

body:not(.page-home) :is(.btn--gold, .btn--primary, .nl-btn--solid) {
    color: var(--s-c1-xdk) !important; background: var(--s-grad-gold) !important; border: 0 !important; border-radius: 999px !important;
    box-shadow: 0 16px 34px -14px rgb(193 158 89 / 0.8); transition: transform 0.35s var(--s-ease), box-shadow 0.35s ease;
}
body:not(.page-home) :is(.btn--gold, .btn--primary, .nl-btn--solid):hover { transform: translateY(-3px); }
body:not(.page-home) :is(.btn--ghost, .nl-btn:not(.nl-btn--solid)) { border-radius: 999px !important; }
body:not(.page-home) main .link-arrow { padding: 0.6rem 1.05rem; color: var(--s-c1); background: #fff; border: 1px solid var(--s-line); border-radius: 999px; text-decoration: none; transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--s-ease); }
body:not(.page-home) main .link-arrow:hover { color: #fff; background: var(--s-c1); border-color: var(--s-c1); transform: translateY(-2px); }

/* ==========================================================================
   Surfaces: cards, photographs, panels, tables, tabs, sidebars
   ========================================================================== */
body:not(.page-home) main :is(.hx__tile, .hy__card, .sc-box, .gl-card a, .a-term, .nl-doc, .pg-stage, .hs-card, .ev-card a, .cl-club__body, .cca-row__body, .dz__card, .sc-rank, .sc-role, .ct-reach > *, .ctw, .a-note, .pg-intro__text, .hs-open__copy, .cca-intro__copy, .fc-more__list li, .md-facts, .md-docs, .md-scroll, .cal__panel, .fc-card, .ad-who__card, .ad-off, .vv-panel, .fg-quote, .s-cong2__card, .m-card, .a-band, .tm-card) {
    border-radius: var(--s-r-md) !important;
}
body:not(.page-home) main :is(.hy__card, .sc-box--cream, .gl-card a, .a-term, .nl-doc, .pg-stage, .hs-card, .dz__card, .sc-rank, .sc-role, .ct-reach > *, .a-note, .pg-intro__text, .fc-more__list li, .md-facts, .md-docs, .md-scroll, .cal__panel, .ad-who__card, .m-card) {
    border: 1px solid var(--s-line) !important; box-shadow: 0 18px 40px -30px rgb(37 79 60 / 0.45) !important;
    transition: transform 0.4s var(--s-ease), box-shadow 0.4s ease;
}
body:not(.page-home) main :is(.hy__card, .gl-card a, .nl-doc, .hs-card, .dz__card, .sc-rank, .sc-role, .ct-reach > *, .fc-more__list li, .m-card):hover { transform: translateY(-5px); box-shadow: var(--s-shadow) !important; }

body:not(.page-home) main figure img, body:not(.page-home) main :is(.cl-club__photo, .cca-row__photo, .pg-photo, .vm-photo, .fc-photo, .hs-open__photo, .a-beyond__photo, .vv-photo, .cca-intro__photo) { border-radius: var(--s-r-md); }

/* light and dark bands */
body:not(.page-home) main > section.fill-light, body:not(.page-home) main :is(.lp-soft, .section--soft) { background: var(--s-cream) !important; background-image: none !important; }
body:not(.page-home) main :is(.section--dark, .v-mission, .ad-select, .h-growth), body:not(.page-home) main > section.fill-dark {
    background: radial-gradient(48rem 26rem at 100% 0%, rgb(193 158 89 / 0.18), transparent 62%), radial-gradient(36rem 22rem at 0% 100%, rgb(76 123 102 / 0.45), transparent 60%), linear-gradient(135deg, #142f23 0%, #1c3e2e 55%, #254f3c 100%) !important;
}

/* tables */
body:not(.page-home) main .md-scroll { overflow: auto; background: #fff !important; }
body:not(.page-home) main .md-scroll th { background: var(--s-grad) !important; color: #fff !important; }
body:not(.page-home) main .md-scroll tbody tr:nth-child(even) td { background: var(--s-cream) !important; }
body:not(.page-home) main .md-scroll tbody tr:hover td { background: var(--s-latte) !important; }

/* tabs and filter chips: pills, the active one filled */
body:not(.page-home) main :is(.pg-tabs__list button, .gl-tab, .cal__tabs button, .nl-filter__chip) { border-radius: 999px !important; transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--s-ease); }
body:not(.page-home) main :is(.pg-tabs__list button, .gl-tab, .cal__tabs button)[aria-selected="true"], body:not(.page-home) main .nl-filter__chip.is-on { color: #fff !important; background: var(--s-grad) !important; border-color: transparent !important; }

/* contents sidebars (disclosures, assessment): pill rows, the current one filled */
body:not(.page-home) main :is(.ds-side, .as-side) a { padding: 0.75rem 0.9rem !important; border-radius: var(--s-r-sm); transition: background-color 0.25s ease, color 0.25s ease; }
body:not(.page-home) main :is(.ds-side, .as-side) li:first-child a { border-top: 0 !important; }
body:not(.page-home) main :is(.ds-side, .as-side) a { border-bottom: 1px solid var(--s-line) !important; }
body:not(.page-home) main :is(.ds-side, .as-side) a:hover { background: var(--s-latte) !important; }
body:not(.page-home) main :is(.ds-side, .as-side) a[aria-current="true"] { color: #fff !important; background: var(--s-grad) !important; border-bottom-color: transparent !important; }
body:not(.page-home) main :is(.ds-side, .as-side) a[aria-current="true"] span { color: var(--s-g1-lt) !important; }

/* ==========================================================================
   Responsive: the inner hero stacks, the photograph card on top
   ========================================================================== */
@media (max-width: 960px) {
    html body:not(.page-home) .h-hero { padding: calc(var(--header-h, 5rem) + 1.75rem) 0 3.5rem; }
    html body:not(.page-home) .h-hero__media { position: relative; top: auto; bottom: auto; right: auto; display: block; width: calc(100% - 2.5rem); height: clamp(14rem, 50vw, 22rem); margin: 0 auto 2.25rem; transform: rotate(-1deg); }
    html body:not(.page-home) .h-hero__content { min-height: 0; }
    html body:not(.page-home) .h-hero__badge { top: calc(var(--header-h, 5rem) + 1rem); right: 1rem; width: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html body:not(.page-home) .h-hero__badge { animation: none; }
}

/* inner hero: the text stays clear of the photograph card, and the gold words are upright and bold */
@media (min-width: 961px) {
    html body:not(.page-home) .h-hero__content > *, html body:not(.page-home) .h-hero__intro { max-width: min(100%, 34rem) !important; }
    html body:not(.page-home) .h-hero__title { max-width: min(100%, 40rem) !important; }
}
html body:not(.page-home) .h-hero .h-hero__title .h-hero__line:last-child:not(:first-child), html body:not(.page-home) .h-hero .h-hero__title .hl {
    font-style: normal !important; font-weight: 800 !important; color: transparent !important; background: var(--s-grad-gold); -webkit-background-clip: text; background-clip: text;
}

/* one type family: the inner pages use the bold sans for every display face (the footer keeps its serif) */
body:not(.page-home) { --f-serif: "Playfair Display", Georgia, serif; }
body:not(.page-home) .site-footer { --f-serif: "Playfair Display", Georgia, serif; }
body:not(.page-home) main :is(h3, h4) { letter-spacing: -0.02em; }
body:not(.page-home) main :is(h2, h3, h4, blockquote, blockquote p) { font-style: normal; }

/* ==========================================================================
   Round 3 — inner-page hero, light: cream field, dark headline, photograph card on the right.
   The header shows dark links on a white bar from the start on every inner page.
   ========================================================================== */
body:not(.page-home) .site-header { color: var(--s-ink); }
body:not(.page-home) .site-header .masthead::before { opacity: 1; }
body:not(.page-home) .site-header .brand__name { color: var(--c-maroon-700); }
body:not(.page-home) .site-header .utility-bar { color: #fff; background: var(--c-maroon-950); }

html body:not(.page-home) .h-hero {
    color: var(--s-ink) !important;
    background: radial-gradient(40rem 30rem at 100% 0%, rgb(227 205 161 / 0.45), transparent 62%), linear-gradient(180deg, var(--s-cream) 0%, #fff 100%) !important;
    border-radius: 0 !important; border-bottom: 1px solid var(--s-line);
}
html body:not(.page-home) .h-hero::before { opacity: 0.6; background: radial-gradient(rgb(148 119 62 / 0.16) 1px, transparent 1.5px) 0 0 / 22px 22px !important; }
html body:not(.page-home) .h-hero::after { content: ""; position: absolute; right: max(0.5rem, calc((100vw - 1240px) / 2 - 1.5rem)); bottom: 1.5rem; z-index: -1; width: min(36%, 28rem); height: 62%; background: var(--s-latte); border-radius: 40px; }
html body:not(.page-home) .h-hero__media { outline: 0; transform: none; box-shadow: var(--s-shadow-lg); border-radius: var(--s-r-lg); }
html body:not(.page-home) .h-hero__media img { transform: none; }
html body:not(.page-home) .h-hero__shade { display: none; }
html body:not(.page-home) .h-hero .crumbs a, html body:not(.page-home) .h-hero .crumbs span, html body:not(.page-home) .h-hero .crumbs [aria-current="page"] { color: var(--s-text); background: #fff; border-color: var(--s-line); }
html body:not(.page-home) .h-hero .crumbs a:hover { color: var(--s-c1); border-color: var(--s-g1); text-decoration: none; }
html body:not(.page-home) .h-hero .crumbs [aria-current="page"] { color: var(--s-c1); background: var(--s-latte); }
html body:not(.page-home) .h-hero__eyebrow { color: var(--s-c1) !important; background: var(--s-latte); border-color: #e6d4bd; }
html body:not(.page-home) .h-hero__title { color: var(--s-ink) !important; }
html body:not(.page-home) .h-hero .h-hero__title .h-hero__line:last-child:not(:first-child), html body:not(.page-home) .h-hero .h-hero__title .hl { background: var(--s-grad) !important; -webkit-background-clip: text !important; background-clip: text !important; }
html body:not(.page-home) .h-hero__intro { color: var(--s-text) !important; }
html body:not(.page-home) .h-hero__badge { animation: none; }
@media (max-width: 960px) {
    html body:not(.page-home) .h-hero::after { display: none; }
}
html body:not(.page-home) .h-hero .crumbs a { color: var(--s-text) !important; }
html body:not(.page-home) .h-hero .crumbs a:hover { color: var(--s-c1) !important; }

/* ==========================================================================
   Round 3 — About pages: the dark bands become light (cream field, white cards, dark text, coffee & gold accents)
   History "Steadily growing", MSFS "Southwest Province", Vision & Mission "What we set out to do", Management "Our staff"
   ========================================================================== */
body:not(.page-home) main :is(.s-province, .v-mission, .m-staff, .k-schemes, .a-condonation, #examinations, .sc-teams, .cca-offer__top, .cca-row--3, .sc-node, .ad-select, .ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply) {
    color: var(--s-text) !important;
    background: radial-gradient(40rem 26rem at 100% 0%, rgb(227 205 161 / 0.35), transparent 62%), linear-gradient(180deg, var(--s-cream) 0%, #fff 100%) !important;
}
body:not(.page-home) main :is(.s-province, .v-mission, .m-staff, .k-schemes, .a-condonation, #examinations, .sc-teams, .cca-offer__top, .cca-row--3, .sc-node, .ad-select, .ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply)::before,
body:not(.page-home) main :is(.s-province, .v-mission, .m-staff, .k-schemes, .a-condonation, #examinations, .sc-teams, .cca-offer__top, .cca-row--3, .sc-node, .ad-select, .ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply)::after { display: none !important; }
/* every piece of text inherits the dark colour, except buttons, chips and the gold figures styled below */
body:not(.page-home) main :is(.s-province, .v-mission, .m-staff, .k-schemes, .a-condonation, #examinations, .sc-teams, .cca-offer__top, .cca-row--3, .sc-node, .ad-select, .ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply) :is(h2, h3, h4, p, li, span, small, strong, b, em, blockquote, figcaption, label):not(.hl):not([class*="btn"]) { color: inherit !important; }
body:not(.page-home) main :is(.s-province, .v-mission, .m-staff, .k-schemes, .a-condonation, #examinations, .sc-teams, .cca-offer__top, .cca-row--3, .sc-node, .ad-select, .ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply) :is(h2, h3, .h2, .h-display, .pg-title) { color: var(--s-ink) !important; }
body:not(.page-home) main :is(.s-province, .v-mission, .m-staff, .k-schemes, .a-condonation, #examinations, .sc-teams, .cca-offer__top, .cca-row--3, .sc-node, .ad-select, .ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply) .hl { background: var(--s-grad) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
body:not(.page-home) main :is(.s-province, .v-mission, .m-staff, .k-schemes, .a-condonation, #examinations, .sc-teams, .cca-offer__top, .cca-row--3, .sc-node, .ad-select, .ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply) .eyebrow { color: var(--s-c1) !important; background: var(--s-latte) !important; border-color: #e6d4bd !important; }
body:not(.page-home) main :is(.s-province, .v-mission, .m-staff, .k-schemes, .a-condonation, #examinations, .sc-teams, .cca-offer__top, .cca-row--3, .sc-node, .ad-select, .ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply) :is(hr, [class*="__text"], [class*="__provincial"], li, [class*="__item"]) { border-color: var(--s-line) !important; }

/* History: the growth figures */

/* MSFS: the four province figures as white cards */
body:not(.page-home) main .s-province [class*="stat"] > *, body:not(.page-home) main .s-province dl > div { background: #fff !important; border: 1px solid var(--s-line) !important; border-radius: var(--s-r-md) !important; box-shadow: 0 14px 30px -24px rgb(37 79 60 / 0.45); }
body:not(.page-home) main .s-province :is(dd, [class*="__num"], [class*="__value"]) { color: transparent !important; background: var(--s-grad); -webkit-background-clip: text; background-clip: text; }
body:not(.page-home) main .s-province :is(.chip, [class*="chip"], [class*="tag"]) { color: var(--s-c1) !important; background: var(--s-latte) !important; border-color: #e6d4bd !important; }

/* Vision & Mission: the list as numbered rows, the chips light */
body:not(.page-home) main .v-mission :is(li) { border-color: var(--s-line) !important; }
body:not(.page-home) main .v-mission :is([class*="__no"], [class*="num"]) { color: var(--s-g1-dk) !important; }
body:not(.page-home) main .v-mission :is([class*="chip"], [class*="tag"], [class*="pill"]) { color: var(--s-c1-xdk) !important; }

/* Management: the staff list keeps its grid paper, now as faint gold lines on cream */
body:not(.page-home) main .m-staff { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%2394773e'%3E%3Cpath d='M24 0V96M48 0V96M72 0V96M0 24H96M0 48H96M0 72H96' stroke-opacity='0.05'/%3E%3Cpath d='M0 0V96M0 0H96' stroke-opacity='0.1'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(180deg, var(--s-cream) 0%, #fff 100%) !important; }
body:not(.page-home) main .m-staff :is([role="tab"], button) { color: var(--s-c1) !important; background: #fff !important; border: 1px solid var(--s-line) !important; }
body:not(.page-home) main .m-staff :is([role="tab"][aria-selected="true"], button.is-active, button[aria-pressed="true"]) { color: #fff !important; background: var(--s-grad) !important; border-color: transparent !important; }
body:not(.page-home) main .m-staff input[type="search"] { color: var(--s-ink) !important; background: #fff !important; border: 1px solid var(--s-line) !important; }
body:not(.page-home) main .m-staff input[type="search"]::placeholder { color: var(--s-muted) !important; }

/* Founder / Patron: the quote card becomes light (latte card, gold edge, dark quote) */
body:not(.page-home) main .fg-quote { color: var(--s-ink) !important; background: radial-gradient(20rem 12rem at 100% 0%, rgb(227 205 161 / 0.5), transparent 62%), var(--s-latte) !important; border: 1px solid #e6d4bd !important; border-left: 4px solid var(--s-g1) !important; box-shadow: 0 18px 40px -30px rgb(37 79 60 / 0.45) !important; }
body:not(.page-home) main .fg-quote :is(p, blockquote, span, small, cite, footer) { color: inherit !important; }
body:not(.page-home) main .fg-quote :is([class*="label"], [class*="eyebrow"], [class*="by"], cite, footer, small) { color: var(--s-g1-dk) !important; }
body:not(.page-home) main .fg-quote::before, body:not(.page-home) main .fg-quote::after { color: var(--s-g1) !important; opacity: 0.6; }

/* Academics: the remaining dark parts become light */
body:not(.page-home) main #examinations { border: 1px solid var(--s-line) !important; }
body:not(.page-home) main #examinations :is(li, [class*="point"]) { background: #fff !important; border-color: var(--s-g1) !important; }
body:not(.page-home) main #examinations .a-block__no { -webkit-text-stroke-color: var(--s-g1) !important; color: transparent !important; }
body:not(.page-home) main #examinations .a-block__eyebrow { color: var(--s-g1-dk) !important; }
body:not(.page-home) main .k-schemes :is([role="tab"], button) { color: var(--s-c1) !important; background: #fff !important; border: 1px solid var(--s-line) !important; }
body:not(.page-home) main .k-schemes :is([role="tab"][aria-selected="true"], button.is-active, button[aria-selected="true"]) { color: #fff !important; background: var(--s-grad) !important; border-color: transparent !important; }
body:not(.page-home) main .k-schemes :is([role="tabpanel"], [class*="panel"]) { background: #fff !important; border: 1px solid var(--s-line) !important; }
body:not(.page-home) main :is(.a-split__exam) { color: #fff !important; }

/* Student Life: council leader cards, CCA offer panel and banner row become light cards */
body:not(.page-home) main :is(.sc-node, .cca-offer__top, .cca-row--3) { border: 1px solid var(--s-line) !important; border-radius: var(--s-r-md) !important; box-shadow: 0 18px 40px -30px rgb(37 79 60 / 0.45) !important; }
body:not(.page-home) main :is(.sc-node, .cca-offer__top) { background: #fff !important; }
body:not(.page-home) main .cca-facts > div { background: var(--s-latte) !important; border-color: #e6d4bd !important; }
body:not(.page-home) main .cca-facts dt { color: var(--s-g1-dk) !important; }
body:not(.page-home) main .cca-facts dd { color: var(--s-c1) !important; }
body:not(.page-home) main .cca-row--3 :is(.cca-row__body) { background: #fff !important; }
html body:not(.page-home) main .cca-facts dd { color: var(--s-c1) !important; }
html body:not(.page-home) main .cca-facts dt { color: var(--s-g1-dk) !important; }
html body:not(.page-home) main .cca-facts > div { color: var(--s-c1) !important; }
html body:not(.page-home) main :is(.s-province, .v-mission, .m-staff, .k-schemes, .a-condonation, .sc-teams) dt { color: var(--s-g1-dk) !important; }

/* Facilities: the "About this facility" card becomes a light card (white, gold top edge, dark text) */
html body:not(.page-home) main .fc-card { color: var(--s-text) !important; background: radial-gradient(30rem 16rem at 100% 0%, rgb(227 205 161 / 0.35), transparent 62%), #fff !important; border: 1px solid var(--s-line) !important; border-top: 4px solid var(--s-g1) !important; box-shadow: var(--s-shadow) !important; }
html body:not(.page-home) main .fc-card::before, html body:not(.page-home) main .fc-card::after { display: none !important; }
html body:not(.page-home) main .fc-card :is(p, li, .fc-card__lead, .fc-card__more, .fc-card__text p) { color: var(--s-text) !important; }
html body:not(.page-home) main .fc-card .fc-card__title { color: var(--s-ink) !important; }
html body:not(.page-home) main .fc-card .eyebrow { color: var(--s-c1) !important; background: var(--s-latte) !important; border-color: #e6d4bd !important; }
html body:not(.page-home) main .fc-card :is(.fc-facts dd, [class*="fact"] dd) { color: var(--s-c1) !important; }
html body:not(.page-home) main .fc-card :is(.fc-facts dt, [class*="fact"] dt) { color: var(--s-g1-dk) !important; }
html body:not(.page-home) main .fc-card :is(.fc-card__head, .fc-card__text, .fc-facts, .fc-facts > div) { border-color: var(--s-line) !important; }

/* Events & Media: the "Watch the video" card becomes light (latte card, gold play button, dark text) */
html body:not(.page-home) main .ev-video { color: var(--s-text) !important; background: radial-gradient(18rem 10rem at 100% 0%, rgb(227 205 161 / 0.5), transparent 62%), var(--s-latte) !important; border: 1px solid #e6d4bd !important; box-shadow: 0 18px 40px -30px rgb(37 79 60 / 0.45) !important; }
html body:not(.page-home) main .ev-video::before, html body:not(.page-home) main .ev-video::after { display: none !important; }
html body:not(.page-home) main .ev-video :is(.ev-video__title) { color: var(--s-ink) !important; }
html body:not(.page-home) main .ev-video :is(.ev-video__text) { color: var(--s-text) !important; }
html body:not(.page-home) main .ev-video .ev-video__play { color: var(--s-c1-xdk) !important; background: var(--s-grad-gold) !important; }
html body:not(.page-home) main .ev-video .ev-video__btn { color: #fff !important; background: var(--s-grad) !important; border-color: transparent !important; border-radius: 999px !important; }

/* Admission / Contact / Career: the last dark boxes become light cards */
html body:not(.page-home) main :is(.ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply) { background: radial-gradient(20rem 12rem at 100% 0%, rgb(227 205 161 / 0.4), transparent 62%), var(--s-latte) !important; border: 1px solid #e6d4bd !important; box-shadow: 0 18px 40px -30px rgb(37 79 60 / 0.45) !important; }
html body:not(.page-home) main :is(.ad-select, .ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply) :is(h2, h3, strong, b, .h2) { color: var(--s-ink) !important; }
html body:not(.page-home) main :is(.ad-select, .ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply) :is(dt, [class*="label"]) { color: var(--s-g1-dk) !important; }
html body:not(.page-home) main :is(.ad-select, .ad-fee, .ct-reach__card, .ctw__half--meet, .c-card__apply) :is(dd, a:not([class*="btn"])) { color: var(--s-c1) !important; }
html body:not(.page-home) main .ad-select :is(li, [class*="step"]) { background: #fff !important; border-color: var(--s-line) !important; }
html body:not(.page-home) main :is(.ad-who__photo) { background: var(--s-latte) !important; }

/* white body and white inner-page sections (light bands, soft sections and the formerly dark bands) */
html body { background: #fff !important; }
html body:not(.page-home) main > section:not(.h-hero), html body:not(.page-home) main :is(.lp-soft, .section--soft, .fill-light, .ds-block, .ad-contact, .cal, .hx) { background: #fff !important; }
html body:not(.page-home) main :is(.s-province, .v-mission, .k-schemes, .a-condonation, .sc-teams, .ad-select) { background: #fff !important; }
html body:not(.page-home) main .m-staff { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%2394773e'%3E%3Cpath d='M24 0V96M48 0V96M72 0V96M0 24H96M0 48H96M0 72H96' stroke-opacity='0.05'/%3E%3Cpath d='M0 0V96M0 0H96' stroke-opacity='0.1'/%3E%3C/g%3E%3C/svg%3E"), #fff !important; }
html body:not(.page-home) .h-hero { background: #fff !important; }

/* submenus: menus only (no photo). A clean white panel of link cards in columns with a gold number and an arrow. */
.site-header .mega__inner { display: block !important; padding-block: 1.75rem 2rem !important; }
.site-header .mega__figure { display: none !important; }
.site-header .mega__links { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)) !important; gap: 0.6rem !important; max-width: none !important; margin: 0; padding: 0; columns: auto !important; }
.site-header .mega__links li { border: 0 !important; }
.site-header .mega__links a { display: flex !important; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem !important; color: var(--s-ink) !important; background: var(--s-cream); border: 1px solid var(--s-line) !important; border-radius: var(--s-r-sm) !important; text-decoration: none; transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--s-ease) !important; }
.site-header .mega__links a:hover { background: #fff; border-color: var(--s-g1) !important; transform: translateY(-2px) !important; }
.site-header .mega__no { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; font: 800 0.72rem var(--f-sans, sans-serif) !important; font-style: normal !important; color: var(--s-c1-xdk) !important; background: var(--s-grad-gold); border-radius: 50%; }
.site-header .mega__label { flex: 1; font-size: 0.92rem !important; font-weight: 700 !important; line-height: 1.3; color: var(--s-ink) !important; }
.site-header .mega__links a .icon { flex: none; width: 0.95rem; height: 0.95rem; color: var(--s-g1-dk) !important; opacity: 1 !important; transition: transform 0.3s var(--s-ease); }
.site-header .mega__links a:hover .icon { transform: translate(2px, -2px); }
/* the panel is a narrow dropdown: a compact list (rows, not cards) */
.site-header .mega__inner { padding: 0.75rem !important; }
.site-header .mega__links { grid-template-columns: 1fr !important; gap: 0.15rem !important; }
.site-header .mega__links a { padding: 0.6rem 0.75rem !important; background: none; border-color: transparent !important; }
.site-header .mega__links a:hover { background: var(--s-cream); border-color: var(--s-line) !important; transform: translateX(3px) !important; }
.site-header .mega__no { width: 1.75rem; height: 1.75rem; }
.site-header .mega { background: #fff !important; border: 1px solid var(--s-line); border-top: 3px solid var(--s-g1); border-radius: 0 0 var(--s-r-md) var(--s-r-md) !important; box-shadow: 0 30px 60px -30px rgb(37 79 60 / 0.45) !important; }
.site-header .mega__links a { min-height: 0; }

/* submenus: two columns of links in a wider white panel */
.site-header .mega { min-width: 34rem; }
.site-header .mega__inner { width: 100% !important; padding: 1rem !important; }
.site-header .mega__links { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.25rem 0.5rem !important; }
.site-header .mega__links a { padding: 0.65rem 0.75rem !important; }
@media (max-width: 1200px) { .site-header .mega { min-width: 0; } .site-header .mega__links { grid-template-columns: 1fr !important; } }

/* submenus: dark espresso panel, no numbers, square corners */
.site-header .mega { background: linear-gradient(160deg, #142f23 0%, #1c3e2e 100%) !important; border: 0 !important; border-top: 3px solid var(--s-g1) !important; border-radius: 0 !important; }
.site-header .mega__no { display: none !important; }
.site-header .mega__links a { background: none !important; border-color: transparent !important; }
.site-header .mega__links a:hover { background: rgb(255 255 255 / 0.08) !important; border-color: rgb(255 255 255 / 0.12) !important; }
.site-header .mega__label { color: rgb(255 255 255 / 0.9) !important; }
.site-header .mega__links a:hover .mega__label { color: var(--s-g1-lt) !important; }
.site-header .mega__links a .icon { color: var(--s-g1) !important; }

/* ==========================================================================
   Header menu: no round hover background; each submenu opens right under its own menu item
   ========================================================================== */
.site-header .primary-nav__link, .site-header.is-solid .primary-nav__link:hover, .site-header.is-solid .primary-nav__item.is-open > .primary-nav__link, .site-header .primary-nav__link:hover { background: none !important; border-radius: 0 !important; }
.site-header .primary-nav__item[data-mega-item] { position: relative; }
.site-header .mega { left: 0 !important; right: auto !important; margin: 0 !important; width: max-content; max-width: min(36rem, calc(100vw - 2rem)); }
/* the menus near the right edge open towards the left so they stay on screen */
.site-header .primary-nav__item[data-mega-item]:nth-last-child(-n+4) .mega { left: auto !important; right: 0 !important; }

/* ==========================================================================
   Inner-page hero (redesign): centred heading on cream, a wide panoramic photograph below it
   ========================================================================== */
html body:not(.page-home) .h-hero { display: flex !important; flex-direction: column; align-items: center; padding: calc(var(--header-h, 5rem) + 3rem) 0 3rem !important; }
html body:not(.page-home) .h-hero::after { display: none !important; }
html body:not(.page-home) .h-hero__content { order: 1; justify-items: center !important; min-height: 0 !important; width: min(100% - 2.5rem, 52rem); margin: 0 auto; text-align: center; }
html body:not(.page-home) .h-hero__content > *, html body:not(.page-home) .h-hero__intro, html body:not(.page-home) .h-hero__title { max-width: 100% !important; margin-inline: auto; }
html body:not(.page-home) .h-hero .crumbs ol { justify-content: center; }
html body:not(.page-home) .h-hero__intro { padding-left: 0 !important; border-left: 0 !important; max-width: 40rem !important; }
html body:not(.page-home) .h-hero__title { font-size: clamp(2.4rem, 1.3rem + 3.4vw, 4.4rem) !important; }
html body:not(.page-home) .h-hero__media { order: 2; position: relative !important; inset: auto !important; top: auto !important; bottom: auto !important; right: auto !important; display: block; width: min(100% - 2.5rem, 1240px) !important; height: clamp(15rem, 28vw, 23rem) !important; margin: 2.5rem auto 0 !important; transform: none !important; border-radius: var(--s-r-lg) !important; box-shadow: var(--s-shadow-lg) !important; outline: 0 !important; }
html body:not(.page-home) .h-hero__media img { width: 100%; height: 100%; object-fit: cover; }
html body:not(.page-home) .h-hero__badge { top: auto !important; bottom: calc(3rem + 1.25rem) !important; right: max(2.5rem, calc((100vw - 1240px) / 2 + 1.25rem)) !important; width: clamp(5.5rem, 8vw, 7.5rem) !important; }
@media (max-width: 960px) {
    html body:not(.page-home) .h-hero { padding-top: calc(var(--header-h, 5rem) + 2rem) !important; }
    html body:not(.page-home) .h-hero__media { height: clamp(12rem, 48vw, 18rem) !important; margin-top: 2rem !important; }
    html body:not(.page-home) .h-hero__badge { width: 4.75rem !important; right: 2rem !important; bottom: calc(3rem + 0.85rem) !important; }
}

/* ==========================================================================
   Inner-page hero (redesign 3): a full-width photograph under a warm coffee fade; breadcrumb, label, headline and
   intro in white at the lower left; a gold line along the bottom edge.
   ========================================================================== */
html body:not(.page-home) .h-hero { position: relative; display: flex !important; flex-direction: column; justify-content: flex-end; align-items: stretch; min-height: clamp(26rem, 44vw, 34rem) !important; padding: calc(var(--header-h, 5rem) + 3rem) 0 3.25rem !important; color: #fff !important; background: #142f23 !important; border-bottom: 0; isolation: isolate; overflow: hidden; }
html body:not(.page-home) .h-hero::before { display: none !important; }
html body:not(.page-home) .h-hero::after { content: "" !important; display: block !important; position: absolute; left: 0; right: 0; bottom: 0; top: auto; z-index: 1; width: auto; height: 4px; border-radius: 0; background: linear-gradient(90deg, #94773e, #e3cda1 50%, #94773e) !important; }
html body:not(.page-home) .h-hero__media { order: 0; position: absolute !important; inset: 0 !important; z-index: -1; width: auto !important; height: auto !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; }
html body:not(.page-home) .h-hero__media img { width: 100%; height: 100%; object-fit: cover; }
html body:not(.page-home) .h-hero__shade { display: block !important; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 47 35 / 0.92) 0%, rgb(20 47 35 / 0.7) 40%, rgb(20 47 35 / 0.2) 75%, rgb(20 47 35 / 0.1) 100%), linear-gradient(0deg, rgb(20 47 35 / 0.6) 0%, transparent 45%) !important; }
html body:not(.page-home) .h-hero__content { order: 1; justify-items: start !important; width: min(100% - 2.5rem, 1240px); margin: 0 auto; text-align: left; }
html body:not(.page-home) .h-hero__content > *, html body:not(.page-home) .h-hero__intro, html body:not(.page-home) .h-hero__title { margin-inline: 0; max-width: 40rem !important; }
html body:not(.page-home) .h-hero .crumbs ol { justify-content: flex-start; }
html body:not(.page-home) .h-hero .crumbs a, html body:not(.page-home) .h-hero .crumbs span, html body:not(.page-home) .h-hero .crumbs [aria-current="page"] { color: rgb(255 255 255 / 0.85) !important; background: rgb(255 255 255 / 0.1) !important; border-color: rgb(255 255 255 / 0.22) !important; }
html body:not(.page-home) .h-hero .crumbs [aria-current="page"] { color: #e3cda1 !important; }
html body:not(.page-home) .h-hero__eyebrow { color: #e3cda1 !important; background: rgb(255 255 255 / 0.1) !important; border-color: rgb(255 255 255 / 0.22) !important; }
html body:not(.page-home) .h-hero__title { color: #fff !important; }
html body:not(.page-home) .h-hero .h-hero__title .h-hero__line:last-child:not(:first-child), html body:not(.page-home) .h-hero .h-hero__title .hl { background: var(--s-grad-gold) !important; -webkit-background-clip: text !important; background-clip: text !important; }
html body:not(.page-home) .h-hero__intro { color: rgb(255 255 255 / 0.85) !important; padding-left: 1rem !important; border-left: 3px solid var(--s-g1) !important; }
html body:not(.page-home) .h-hero__badge { top: calc(var(--header-h, 5rem) + 1.75rem) !important; bottom: auto !important; right: max(1.25rem, calc((100vw - 1240px) / 2)) !important; z-index: 2; }
@media (max-width: 960px) {
    html body:not(.page-home) .h-hero { min-height: 24rem !important; padding-top: calc(var(--header-h, 5rem) + 6.5rem) !important; }
    html body:not(.page-home) .h-hero__shade { background: linear-gradient(0deg, rgb(20 47 35 / 0.94) 0%, rgb(20 47 35 / 0.7) 55%, rgb(20 47 35 / 0.35) 100%) !important; }
    html body:not(.page-home) .h-hero__media { height: auto !important; }
    html body:not(.page-home) .h-hero__badge { top: calc(var(--header-h, 5rem) + 1rem) !important; bottom: auto !important; right: 1.25rem !important; }
}
/* inner hero badge: clear of the header, thin white edge like the home page */
html body:not(.page-home) .h-hero__badge { top: auto !important; bottom: 3.25rem !important; width: clamp(6rem, 9vw, 8.5rem) !important; border: 2px solid rgb(255 255 255 / 0.9); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 48px -18px rgb(0 0 0 / 0.65); }
@media (max-width: 960px) { html body:not(.page-home) .h-hero__badge { top: calc(var(--header-h, 5rem) + 1.25rem) !important; bottom: auto !important; width: 5rem !important; } }

/* ==========================================================================
   Batch 1
   ========================================================================== */
/* header: the same typefaces as the home page on every page (the brand name stays in the serif) */
body:not(.page-home) .site-header, body:not(.page-home) .mobile-menu { --f-serif: "Playfair Display", Georgia, serif; }

/* alternating section backgrounds on inner pages: white, then a soft cream, and so on */
html body:not(.page-home) main > section:not(.h-hero):nth-of-type(odd) { background: #faf5ec !important; }
html body:not(.page-home) main > section:not(.h-hero):nth-of-type(even) { background: #fff !important; }

/* History: "Our growth and legacy" on a dark coffee band */
html body.page-history main > section.h-growth.h-growth { color: rgb(255 255 255 / 0.82) !important; background: radial-gradient(46rem 26rem at 100% 0%, rgb(193 158 89 / 0.2), transparent 62%), linear-gradient(150deg, #142f23 0%, #1c3e2e 55%, #254f3c 100%) !important; }
html body.page-history main .h-growth .h-growth__bg img { opacity: 0.16; filter: grayscale(1); }
html body.page-history main .h-growth :is(h2, .h-display) { color: #fff !important; }
html body.page-history main .h-growth .hl { background: linear-gradient(120deg, #e3cda1 0%, #c19e59 55%, #94773e 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
html body.page-history main .h-growth .eyebrow { color: #e3cda1 !important; background: rgb(255 255 255 / 0.08) !important; border-color: rgb(255 255 255 / 0.18) !important; }
html body.page-history main .h-growth p, html body.page-history main .h-growth span, html body.page-history main .h-growth dt { color: rgb(255 255 255 / 0.8) !important; }
html body.page-history main .h-growth :is(dd, strong, [class*="__num"], [class*="__value"], [class*="__year"]) { color: transparent !important; background: linear-gradient(120deg, #e3cda1 0%, #c19e59 60%) !important; -webkit-background-clip: text !important; background-clip: text !important; }

/* History: "Those who have led the school" as a timeline */
.lx__head { display: grid; justify-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.lx__line { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.lx__line::before { content: ""; position: absolute; left: 6%; right: 6%; top: 1.1rem; height: 2px; background: linear-gradient(90deg, transparent, #c19e59 12%, #c19e59 88%, transparent); }
.lx__item { position: relative; display: grid; justify-items: center; gap: 0.6rem; padding: 0 1.25rem 1.75rem; text-align: center; background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-r-lg); box-shadow: 0 18px 40px -30px rgb(37 79 60 / 0.45); margin-top: 1.1rem; transition: transform 0.4s var(--s-ease), box-shadow 0.4s ease; }
.lx__item:hover { transform: translateY(-5px); box-shadow: var(--s-shadow); }
.lx__years { position: relative; z-index: 1; margin-top: -1.1rem; padding: 0.45rem 1.1rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; color: #142f23; background: var(--s-grad-gold); border-radius: 999px; box-shadow: 0 0 0 5px #fff; }
.lx__photo { width: 9.5rem; aspect-ratio: 1; margin: 0.9rem 0 0.4rem; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 5px #fff, 0 0 0 7px #c19e59, 0 20px 36px -18px rgb(37 79 60 / 0.55); }
.lx__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.lx__name { margin: 0; font-size: 1.12rem !important; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; color: var(--s-ink); }
.lx__role { margin: 0; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--s-g1-dk); }
.lx__item--now { color: #fff; background: linear-gradient(150deg, #142f23 0%, #254f3c 100%); border-color: transparent; }
.lx__item--now .lx__name { color: #fff; }
.lx__item--now .lx__role { color: #e3cda1; }
.lx__item--now .lx__years { box-shadow: 0 0 0 5px #faf5ec; }
.lx__item--now .lx__photo { box-shadow: 0 0 0 5px #1c3e2e, 0 0 0 7px #e3cda1, 0 20px 36px -18px rgb(0 0 0 / 0.6); }

/* Founder / Patron: dark quote band, then the story beside a sticky portrait */
html body:not(.page-home) main > section.fx-quote { color: #fff; background: radial-gradient(40rem 22rem at 100% 0%, rgb(193 158 89 / 0.22), transparent 62%), linear-gradient(150deg, #142f23 0%, #1c3e2e 55%, #254f3c 100%) !important; }
.fx-quote__inner { position: relative; display: grid; justify-items: center; max-width: 56rem; text-align: center; }
.fx-quote__mark { height: 4rem; font: 700 8rem/1 "Playfair Display", Georgia, serif; color: transparent; background: var(--s-grad-gold); -webkit-background-clip: text; background-clip: text; }
.fx-quote__label { margin: 0.5rem 0 1rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #e3cda1; }
.fx-quote__text { margin: 0; font: 600 clamp(1.8rem, 1.1rem + 2.4vw, 3.2rem)/1.2 "Playfair Display", Georgia, serif; font-style: italic; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.fx-quote__cite { margin: 1.4rem 0 0; font-size: 0.85rem; font-weight: 700; color: rgb(255 255 255 / 0.7); }
.fx-story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.fx-story__grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.fx-portrait { position: sticky; top: calc(var(--header-h, 5rem) + 1.5rem); margin: 0; }
.fx-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--s-r-lg); box-shadow: var(--s-shadow-lg); }
.fx-portrait__name { display: grid; gap: 0.2rem; margin: -2.25rem 1.25rem 0; position: relative; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--s-line); border-left: 4px solid #c19e59; border-radius: var(--s-r-md); box-shadow: var(--s-shadow); }
.fx-portrait__name strong { font-size: 1.1rem; color: var(--s-c1); }
.fx-portrait__name span { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-g1-dk); }
.fx-text .fg-text__title { margin: 0 0 1.25rem; }
.fx-text p:not(.eyebrow) { margin: 0 0 1.1rem; font-size: 1.02rem; line-height: 1.8; color: var(--s-text); }
.fx-text__lead { font-size: 1.18rem !important; line-height: 1.7 !important; color: var(--s-ink) !important; }
.fx-text__lead::first-letter { float: left; margin: 0.35rem 0.6rem 0 0; font: 700 3.6rem/0.8 "Playfair Display", Georgia, serif; color: #94773e; }
.fx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.85rem; margin: 2rem 0; }
.fx-facts > div { padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--s-line); border-top: 3px solid #c19e59; border-radius: var(--s-r-md); }
.fx-facts dt { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-g1-dk); }
.fx-facts dd { margin: 0.35rem 0 0; font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--s-ink); }
.fx-slogan { margin: 2rem 0 0; padding: 1.5rem 1.75rem; background: var(--s-grad-gold); border-radius: var(--s-r-md); }
.fx-slogan blockquote { margin: 0; font: 600 italic clamp(1.15rem, 1rem + 0.6vw, 1.5rem)/1.4 "Playfair Display", Georgia, serif; color: #142f23; }
.fx-note { margin-top: 1.5rem !important; font-size: 0.88rem !important; color: var(--s-muted) !important; }

/* Vision & Mission */
.vx-vision__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.vx-vision__text { margin: 1.25rem 0 0; padding: 0; border: 0; }
.vx-vision__text p { margin: 0; font: 600 clamp(1.4rem, 1rem + 1.4vw, 2.2rem)/1.4 "Playfair Display", Georgia, serif; letter-spacing: -0.015em; color: var(--s-ink); }
.vx-vision__photo { margin: 0; }
.vx-vision__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--s-r-lg); box-shadow: var(--s-shadow-lg); }
.vx-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; }
.vx-pillars li { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-r-md); box-shadow: 0 14px 30px -26px rgb(37 79 60 / 0.45); transition: transform 0.4s var(--s-ease), border-color 0.3s ease; }
.vx-pillars li:hover { transform: translateY(-4px); border-color: #c19e59; }
.vx-pillars__no { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; font-size: 0.8rem; font-weight: 800; color: #142f23; background: var(--s-grad-gold); border-radius: 50%; }
.vx-pillars__name { font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--s-ink); text-transform: capitalize; }
.vx-mission__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.vx-mission__photo { position: sticky; top: calc(var(--header-h, 5rem) + 1.5rem); margin: 0; }
.vx-mission__photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--s-r-lg); box-shadow: var(--s-shadow-lg); }
.vx-mission__head { margin-bottom: 1.75rem; }
.vx-aims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.vx-aims > li { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-r-md); }
.vx-aims__wide { grid-column: 1 / -1; }
.vx-aims__no { font-size: 0.78rem; font-weight: 800; color: #94773e; }
.vx-aims p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--s-ink); }
.vx-outcomes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.vx-outcomes li { padding: 0.45rem 0.9rem; font-size: 0.82rem; font-weight: 700; color: #142f23; background: var(--s-grad-gold); border-radius: 999px; }
html body:not(.page-home) main > section.vx-motto { color: #fff; background: radial-gradient(40rem 22rem at 100% 0%, rgb(193 158 89 / 0.22), transparent 62%), linear-gradient(150deg, #142f23 0%, #1c3e2e 55%, #254f3c 100%) !important; }
.vx-motto__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.vx-motto__title { display: grid; margin: 0.75rem 0 0; font: 700 clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem)/1.02 "Playfair Display", Georgia, serif; letter-spacing: -0.03em; }
.vx-motto__title span { color: #fff; }
.vx-motto__title span:last-child { font-style: italic; color: transparent; background: var(--s-grad-gold); -webkit-background-clip: text; background-clip: text; }
.vx-motto__text { margin: 0 0 1.5rem; font-size: 1.05rem; line-height: 1.8; color: rgb(255 255 255 / 0.82); }
.vx-motto__quote { margin: 0; padding: 1.5rem 1.6rem; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.16); border-left: 4px solid #c19e59; border-radius: var(--s-r-md); }
.vx-motto__quote blockquote { margin: 0; font: 600 italic 1.2rem/1.5 "Playfair Display", Georgia, serif; color: #fff; }
.vx-motto__quote figcaption { margin-top: 0.75rem; font-size: 0.8rem; font-weight: 700; color: #e3cda1; }

@media (max-width: 960px) {
    .fx-story__grid, .vx-vision__top, .vx-mission__grid, .vx-motto__grid { grid-template-columns: 1fr; }
    .fx-portrait, .vx-mission__photo { position: static; max-width: 26rem; }
    .vx-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lx__line::before { display: none; }
}
@media (max-width: 640px) {
    .vx-pillars, .vx-aims { grid-template-columns: 1fr; }
}
.lx__photo, .lx__photo img { border-radius: 50% !important; }
/* dark bands win over the alternating backgrounds */
html body:not(.page-home) main > section.fx-quote.fx-quote:not(.h-hero), html body:not(.page-home) main > section.vx-motto.vx-motto:not(.h-hero) { background: radial-gradient(40rem 22rem at 100% 0%, rgb(193 158 89 / 0.22), transparent 62%), linear-gradient(150deg, #142f23 0%, #1c3e2e 55%, #254f3c 100%) !important; }
html body.page-history main > section.h-growth.h-growth:not(.h-hero) { background: radial-gradient(46rem 26rem at 100% 0%, rgb(193 158 89 / 0.2), transparent 62%), linear-gradient(150deg, #142f23 0%, #1c3e2e 55%, #254f3c 100%) !important; }

/* ==========================================================================
   Batch 2: Course of Study and the programme pages, with photographs
   ========================================================================== */
/* Course of Study: the CBSE statement beside a campus photograph with a gold CBSE badge */
.page-curriculum .k-general__grid { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) !important; gap: clamp(2rem, 6vw, 5rem) !important; align-items: center; }
.kx-general__photo { position: relative; margin: 0; }
.kx-general__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--s-r-lg); box-shadow: var(--s-shadow-lg); }
.kx-general__badge { position: absolute; right: -1rem; bottom: -1rem; display: grid; place-items: center; width: 6.5rem; height: 6.5rem; font: 800 1.15rem var(--f-sans, sans-serif); letter-spacing: 0.08em; color: #142f23; background: var(--s-grad-gold); border: 5px solid #fff; border-radius: 50%; box-shadow: var(--s-shadow); }
.page-curriculum .k-general__text { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem) !important; line-height: 1.7 !important; color: var(--s-ink) !important; }
/* each grade: photograph on the left, subjects on the right, in one white card */
.page-curriculum .k-panel:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0; overflow: hidden; padding: 0 !important; background: #fff !important; border: 1px solid var(--s-line) !important; border-radius: var(--s-r-lg) !important; box-shadow: var(--s-shadow); }
.kx-panel__photo { margin: 0; min-height: 18rem; }
.kx-panel__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.kx-panel__body { padding: clamp(1.5rem, 3vw, 2.25rem); text-align: left; }
.page-curriculum .k-panel__title { margin: 0 0 1.25rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem) !important; font-weight: 800; color: var(--s-ink) !important; }
.page-curriculum .k-subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.page-curriculum .k-subjects li { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; font-size: 0.95rem; font-weight: 700; color: var(--s-ink); background: #faf5ec; border-radius: var(--s-r-sm); }
.page-curriculum .k-subjects li span { display: grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; font-size: 0.7rem; font-weight: 800; color: #142f23; background: var(--s-grad-gold); border-radius: 50%; }
.page-curriculum .k-langs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.page-curriculum .k-langs li { padding: 0.4rem 0.85rem; font-size: 0.82rem; font-weight: 700; color: #fff; background: var(--s-grad); border-radius: 999px; }

/* programmes: a large photograph with the text card overlapping it */
.px-intro__grid { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)) !important; align-items: center; gap: 0 !important; }
.px-intro__photo { grid-column: 1 / 9; grid-row: 1; margin: 0; }
.px-intro__photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--s-r-lg); box-shadow: var(--s-shadow-lg); }
.px-intro__card { grid-column: 7 / -1; grid-row: 1; position: relative; z-index: 1; padding: clamp(1.75rem, 3.5vw, 2.75rem) !important; background: #fff !important; border: 1px solid var(--s-line) !important; border-top: 4px solid #c19e59 !important; border-radius: var(--s-r-lg) !important; box-shadow: var(--s-shadow-lg) !important; }
.px-intro__card .pg-grades { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.px-intro__card .pg-grades li { padding: 0.45rem 0.9rem; font-size: 0.82rem; font-weight: 800; color: #142f23; background: var(--s-grad-gold); border-radius: 999px; }
/* each stage: photograph on the left, the scheme of studies on the right */
.page-programme .pg-stage:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; overflow: hidden; padding: 0 !important; background: #fff !important; border-radius: var(--s-r-lg) !important; }
.px-stage__photo { grid-column: 1; grid-row: 1 / span 2; margin: 0; min-height: 20rem; }
.px-stage__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.page-programme .pg-stage__head, .page-programme .pg-stage__body { grid-column: 2; padding-inline: clamp(1.5rem, 3vw, 2.25rem) !important; position: static !important; }
.page-programme .pg-stage__head { padding-top: clamp(1.5rem, 3vw, 2rem) !important; }
.page-programme .pg-stage__body { padding-bottom: clamp(1.5rem, 3vw, 2rem) !important; }

@media (max-width: 960px) {
    .page-curriculum .k-general__grid, .page-curriculum .k-panel:not([hidden]), .page-programme .pg-stage:not([hidden]) { grid-template-columns: 1fr !important; }
    .px-intro__photo, .px-intro__card { grid-column: 1 / -1; }
    .px-intro__card { grid-row: 2; margin: -3rem 1rem 0; }
    .px-stage__photo { grid-row: auto; min-height: 14rem; }
    .page-programme .pg-stage__head, .page-programme .pg-stage__body { grid-column: 1; }
}
@media (max-width: 640px) { .page-curriculum .k-subjects { grid-template-columns: 1fr; } }
.px-stage__photo, .kx-panel__photo { position: relative; overflow: hidden; }
.px-stage__photo img, .kx-panel__photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }

/* ==========================================================================
   Batch 3: Admission, Student Council, House System, Co-Curricular, Canvas, Certificates
   ========================================================================== */
/* shared: a dark band class used where a section should be dark */
html body:not(.page-home) main > section.ad-select.ad-select:not(.h-hero),
html body:not(.page-home) main > section.hs-banner-wrap.hs-banner-wrap:not(.h-hero) { color: #fff !important; background: radial-gradient(44rem 24rem at 100% 0%, rgb(193 158 89 / 0.22), transparent 62%), linear-gradient(150deg, #142f23 0%, #1c3e2e 55%, #254f3c 100%) !important; }

/* Admission: documents as numbered cards; photograph above the fee card */
.page-admission .ad-docs__grid { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important; gap: clamp(2rem, 5vw, 4.5rem) !important; align-items: start; }
.page-admission .ad-docs__list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem !important; margin-top: 1.5rem !important; }
.page-admission .ad-docs__list li { display: flex !important; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem !important; font-weight: 700; color: var(--s-ink) !important; background: #fff !important; border: 1px solid var(--s-line) !important; border-radius: var(--s-r-sm) !important; }
.page-admission .ad-docs__list li span { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; font-size: 0.72rem; font-weight: 800; color: #142f23 !important; background: var(--s-grad-gold); border-radius: 50%; }
.ax-side { display: grid; gap: 0; }
.ax-side__photo { margin: 0; }
.ax-side__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--s-r-lg) var(--s-r-lg) 0 0 !important; }
html body.page-admission main .ad-fee { margin: 0; padding: 1.5rem 1.75rem !important; color: #fff !important; background: linear-gradient(150deg, #142f23 0%, #254f3c 100%) !important; border: 0 !important; border-radius: 0 0 var(--s-r-lg) var(--s-r-lg) !important; }
html body.page-admission main .ad-fee :is(.ad-fee__label) { color: #e3cda1 !important; }
html body.page-admission main .ad-fee .ad-fee__value { color: transparent !important; background: linear-gradient(120deg, #e3cda1, #c19e59); -webkit-background-clip: text; background-clip: text; }
html body.page-admission main .ad-fee .ad-fee__note { color: rgb(255 255 255 / 0.75) !important; }
/* the selection steps on the dark band, as cards with a gold number */
html body.page-admission main .ad-select :is(h2, .h2) { color: #fff !important; }
html body.page-admission main .ad-select .eyebrow { color: #e3cda1 !important; background: rgb(255 255 255 / 0.08) !important; border-color: rgb(255 255 255 / 0.18) !important; }
html body.page-admission main .ad-select .ad-select__seats { color: rgb(255 255 255 / 0.75) !important; }
html body.page-admission main .ad-steps li { background: rgb(255 255 255 / 0.06) !important; border: 1px solid rgb(255 255 255 / 0.14) !important; border-top: 3px solid #c19e59 !important; border-radius: var(--s-r-md) !important; }
html body.page-admission main .ad-steps h3 { color: #fff !important; }
html body.page-admission main .ad-steps p { color: rgb(255 255 255 / 0.75) !important; }
html body.page-admission main .ad-steps__no { color: transparent !important; background: linear-gradient(120deg, #e3cda1, #c19e59); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0 !important; }

/* Student Council: leader cards with a gold top edge and a role pill */
html body.page-council main .sc-node { background: #fff !important; border: 1px solid var(--s-line) !important; border-top: 4px solid #c19e59 !important; border-radius: var(--s-r-md) !important; box-shadow: 0 18px 40px -30px rgb(37 79 60 / 0.45) !important; }
html body.page-council main .sc-node__role { display: inline-block; padding: 0.35rem 0.8rem; font-size: 0.68rem !important; font-weight: 800 !important; letter-spacing: 0.12em; text-transform: uppercase; color: #fff !important; background: var(--s-grad); border-radius: 999px; }
html body.page-council main .sc-node__name { color: var(--s-ink) !important; font-weight: 800 !important; }
html body.page-council main .sc-node__class { color: var(--s-g1-dk) !important; }
html body.page-council main .sc-chart-title span { color: #fff !important; background: var(--s-grad) !important; border-radius: 999px !important; padding: 0.55rem 1.3rem !important; }
html body.page-council main .sc-ncc__photo img { border-radius: var(--s-r-lg) !important; }

/* House System: the photograph with the house colours beside the copy; the banner on a dark band */
html body.page-houses main .hs-open__photo img { border-radius: var(--s-r-lg) !important; box-shadow: var(--s-shadow-lg); }
html body.page-houses main .hs-open__copy { background: #fff !important; border: 1px solid var(--s-line) !important; border-top: 4px solid #c19e59 !important; border-radius: var(--s-r-lg) !important; box-shadow: var(--s-shadow) !important; }
html body.page-houses main .hs-open__colours li, html body.page-houses main .hs-open__colours > * { border-radius: 999px !important; }
html body.page-houses main .hs-banner { border-radius: var(--s-r-lg) !important; overflow: hidden; box-shadow: var(--s-shadow-lg); }

/* Co-Curricular: activity rows as photo + card pairs */
html body.page-cca main .cca-row__photo img { border-radius: var(--s-r-lg) !important; box-shadow: var(--s-shadow); }
html body.page-cca main .cca-row__body { background: #fff !important; border: 1px solid var(--s-line) !important; border-top: 4px solid #c19e59 !important; border-radius: var(--s-r-lg) !important; box-shadow: var(--s-shadow) !important; }
html body.page-cca main .cca-row__items li { border-radius: 999px !important; }
html body.page-cca main .cca-row__grades { color: #142f23 !important; background: var(--s-grad-gold) !important; border-radius: 999px !important; }
html body.page-cca main .cca-intro__copy { border-radius: var(--s-r-lg) !important; }

/* Canvas & Certificates: a tidy photo grid with rounded tiles, a white frame and a gentle zoom */
html body:not(.page-home) main .cv-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)) !important; gap: 1rem !important; column-count: auto !important; }
html body:not(.page-home) main .cv-item { margin: 0 !important; break-inside: auto; }
html body:not(.page-home) main .cv-thumb { display: block; width: 100%; padding: 0.5rem !important; overflow: hidden; background: #fff !important; border: 1px solid var(--s-line) !important; border-radius: var(--s-r-md) !important; box-shadow: 0 16px 36px -28px rgb(37 79 60 / 0.5); cursor: zoom-in; transition: transform 0.4s var(--s-ease), box-shadow 0.4s ease, border-color 0.3s ease; }
html body:not(.page-home) main .cv-thumb:hover { transform: translateY(-5px); border-color: #c19e59 !important; box-shadow: var(--s-shadow); }
html body:not(.page-home) main .cv-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--s-r-md) - 0.4rem) !important; transition: transform 0.8s var(--s-ease); }
html body.page-certs main .cv-thumb img { object-fit: contain; background: #faf5ec; }
html body:not(.page-home) main .cv-thumb:hover img { transform: scale(1.04); }
html body:not(.page-home) main .cv-more { display: flex; justify-content: center; margin-top: 2rem; }

@media (max-width: 960px) {
    .page-admission .ad-docs__grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
    .page-admission .ad-docs__list { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Batch 4 (v2): facility pages and Contact, a lighter editorial look
   ========================================================================== */
/* Facility intro: big photograph with a gold offset frame, the text open on the page */
html body:not(.page-home) main > section.fc-feature.fc-feature:not(.h-hero) { background: #fff !important; }
html body.page-facility main .fc-feature__grid { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important; gap: clamp(2rem, 5vw, 5rem) !important; align-items: center !important; }
html body.page-facility main .fc-photo { position: relative; margin: 0 1.25rem 1.25rem 0; }
html body.page-facility main .fc-photo::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 2px solid #c19e59; border-radius: 1.75rem; z-index: 0; }
html body.page-facility main .fc-photo img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 1.75rem !important; box-shadow: 0 40px 80px -45px rgb(20 47 35 / 0.6); }
html body.page-facility main .fc-gallery { display: grid !important; grid-template-columns: 1fr 1fr !important; grid-auto-rows: 12rem; gap: 0.9rem !important; }
html body.page-facility main .fc-gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: 1.25rem !important; }
html body.page-facility main .fc-gallery__item:first-child { grid-row: span 2; }
html body.page-facility main .fc-gallery__item img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.9s var(--s-ease); }
html body.page-facility main .fc-gallery__item:hover img { transform: scale(1.06); }
html body.page-facility main .fc-gallery__item::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(20 47 35 / 0.8)); }
html body.page-facility main .fc-gallery__item h2 { position: absolute; left: 1rem; right: 1rem; bottom: 0.85rem; z-index: 1; margin: 0; padding: 0 !important; font-size: 1rem !important; font-weight: 700 !important; color: #fff !important; background: none !important; }
html body.page-facility main .fc-card { padding: 0 !important; color: var(--s-ink) !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html body.page-facility main .fc-card .eyebrow { color: var(--s-g1-dk) !important; background: #faf5ec !important; border-color: #ead9b9 !important; }
html body.page-facility main .fc-card__title { margin: 0.9rem 0 1.25rem !important; font-family: var(--f-serif, "Playfair Display", serif) !important; font-size: clamp(2.2rem, 4vw, 3.4rem) !important; line-height: 1.05 !important; color: #142f23 !important; }
html body.page-facility main .fc-card__lead { font-size: 1.15rem !important; line-height: 1.7 !important; color: #1c3e2e !important; padding-left: 1.1rem; border-left: 3px solid #c19e59; }
html body.page-facility main .fc-card__more { color: #49695b !important; line-height: 1.75 !important; }
html body.page-facility main .fc-facts { display: flex !important; flex-wrap: wrap; gap: 0 !important; margin-top: 1.75rem !important; border-top: 1px solid #ead9b9; }
html body.page-facility main .fc-facts > div { flex: 1 1 7rem; padding: 1.1rem 1rem 0 0 !important; background: none !important; border: 0 !important; }
html body.page-facility main .fc-facts dd { margin: 0; font-family: var(--f-serif, "Playfair Display", serif); font-size: 2.2rem !important; font-weight: 600; line-height: 1; color: #a18142 !important; background: none !important; }
html body.page-facility main .fc-facts dt { margin-top: 0.35rem; font-size: 0.75rem !important; letter-spacing: 0.1em; text-transform: uppercase; color: #628e7a !important; }

/* More facilities: a dark band with tall photo tiles, the name over the photo */
html body:not(.page-home) main > section.fc-more.fc-more:not(.h-hero) { color: #fff !important; background: linear-gradient(160deg, #10251c 0%, #1c3e2e 100%) !important; }
html body.page-facility main .fc-more :is(h2, .h2) { color: #fff !important; }
html body.page-facility main .fc-more .eyebrow { color: #e3cda1 !important; background: rgb(255 255 255 / 0.08) !important; border-color: rgb(255 255 255 / 0.18) !important; }
html body.page-facility main .fc-more__list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)) !important; gap: 1rem !important; }
html body.page-facility main .fc-more__list li { margin: 0 !important; }
html body.page-facility main .fc-more__list a { position: relative; display: block !important; aspect-ratio: 3 / 4; padding: 0 !important; overflow: hidden; background: #1c3e2e !important; border: 0 !important; border-radius: 1.25rem !important; }
.fx2-thumb { position: absolute; inset: 0; margin: 0; }
.fx2-thumb img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.9s var(--s-ease); }
html body.page-facility main .fc-more__list a::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgb(16 37 28 / 0.92)); }
html body.page-facility main .fc-more__list a:hover .fx2-thumb img { transform: scale(1.07); }
html body.page-facility main .fc-more__list a > span { position: absolute; left: 1.1rem; right: 3.5rem; bottom: 1.1rem; z-index: 1; font-family: var(--f-serif, "Playfair Display", serif); font-size: 1.25rem; font-weight: 600; line-height: 1.15; color: #fff !important; }
html body.page-facility main .fc-more__list a > svg { position: absolute; right: 1rem; bottom: 1rem; z-index: 1; width: 2.2rem; height: 2.2rem; padding: 0.55rem; color: #142f23 !important; background: #e3cda1; border-radius: 50%; transition: transform 0.3s ease; }
html body.page-facility main .fc-more__list a:hover > svg { transform: rotate(-45deg); }

/* Contact: a wide photograph with the three contact cards lifted over its lower edge */
.ctx-photo { margin: 0; }
.ctx-photo img { display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: 1.75rem !important; }
html body.page-contact main .ct-reach { position: relative; z-index: 1; margin: -6rem 2rem 0 !important; }
html body.page-contact main .ct-reach__card { background: rgb(255 255 255 / 0.96) !important; border: 0 !important; border-radius: 1.25rem !important; box-shadow: 0 30px 60px -35px rgb(20 47 35 / 0.55) !important; transition: transform 0.4s var(--s-ease); }
html body.page-contact main .ct-reach__card:hover { transform: translateY(-4px); }
html body.page-contact main .ct-reach__icon { display: grid !important; place-items: center; width: 3.1rem; height: 3.1rem; color: #fff !important; background: linear-gradient(140deg, #254f3c, #142f23) !important; border-radius: 1rem !important; }
html body.page-contact main .ct-label { color: #a18142 !important; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem !important; font-weight: 800 !important; }
html body.page-contact main .ct-big { color: #142f23 !important; }
/* the day: cream band, two white cards, times as soft pills */
html body:not(.page-home) main > section.ct-day.ct-day:not(.h-hero) { color: var(--s-ink) !important; background: #faf5ec !important; }
html body.page-contact main .ct-day :is(h2, .h2) { color: #142f23 !important; }
html body.page-contact main .ct-day .eyebrow { color: var(--s-g1-dk) !important; background: #fff !important; border-color: #ead9b9 !important; }
html body.page-contact main .ctw__half { background: #fff !important; border: 0 !important; border-radius: 1.5rem !important; box-shadow: 0 24px 50px -40px rgb(20 47 35 / 0.5); }
html body.page-contact main .ctw__title { color: #142f23 !important; font-family: var(--f-serif, "Playfair Display", serif) !important; }
html body.page-contact main .ctw__label { color: #1c3e2e !important; }
html body.page-contact main .ctw__kicker { color: #a18142 !important; }
html body.page-contact main .ctw__rows li { border-color: #f0e4cf !important; }
html body.page-contact main .ctw__time { color: #142f23 !important; background: #faf5ec !important; border: 1px solid #ead9b9 !important; border-radius: 999px !important; }
html body.page-contact main .ctw__note { color: #49695b !important; }
html body.page-contact main .ct-map__frame { overflow: hidden; border-radius: 1.75rem !important; box-shadow: 0 30px 60px -40px rgb(20 47 35 / 0.55); }

@media (max-width: 960px) {
    html body.page-facility main .fc-feature__grid { grid-template-columns: 1fr !important; }
    html body.page-contact main .ct-reach { margin: -3rem 1rem 0 !important; }
}
@media (max-width: 640px) {
    .ctx-photo img { aspect-ratio: 4 / 3; }
    html body.page-facility main .fc-gallery { grid-auto-rows: 9rem; }
}
html body.page-facility main .fc-card, html body.page-facility main .fc-card__head, html body.page-facility main .fc-card__text { display: block !important; width: auto !important; max-width: none !important; padding: 0 !important; background: none !important; border: 0 !important; }
html body.page-facility main .fc-card__head { margin-bottom: 0.5rem; }
html body.page-contact main .ct-reach__icon svg { width: 1.35rem; height: 1.35rem; color: #e3cda1 !important; stroke: currentColor !important; fill: none; }
html body.page-contact main .ct-reach__card { background-image: none !important; }
html body.page-facility main .fc-gallery--5 .fc-gallery__item:last-child { grid-column: span 2; }

/* ==========================================================================
   Round 5: History leaders + campus, MSFS province, Founder quote, Vision,
   Course of Study grades, programme subjects, Assessment, Admission
   Tokens only from the existing palette: espresso #142f23 / #1c3e2e / #254f3c,
   gold #c19e59 / #e3cda1 / #a18142, cream #faf5ec, line #ead9b9.
   ========================================================================== */
:root { --r5-dark: radial-gradient(48rem 26rem at 100% 0%, rgb(193 158 89 / 0.2), transparent 62%), linear-gradient(155deg, #10251c 0%, #1c3e2e 55%, #254f3c 100%); --r5-serif: var(--f-serif, "Playfair Display", Georgia, serif); }

/* ---------- History: Those who have led the school ---------- */
html body:not(.page-home) main > section.h-principals.h-principals:not(.h-hero) { padding-block: clamp(5rem, 9vw, 8rem) !important; color: #fff !important; background: var(--r5-dark) !important; }
html body main .lx .lx__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem) !important; }
html body main .lx .lx__head :is(h2, .h-display) { color: #fff !important; }
html body main .lx .lx__head .eyebrow { color: #e3cda1 !important; background: rgb(255 255 255 / 0.08) !important; border-color: rgb(255 255 255 / 0.18) !important; }
html body main .lx .lx__line { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)) !important; gap: clamp(1rem, 2.5vw, 2rem) !important; max-width: 64rem; margin: 0 auto !important; padding: 0 !important; list-style: none; }
html body main .lx .lx__line::before, html body main .lx .lx__item::before, html body main .lx .lx__item::after { display: none !important; }
html body main .lx .lx__item { position: relative; display: flex !important; flex-direction: column; align-items: stretch !important; gap: 0 !important; padding: 0 !important; overflow: hidden; text-align: left !important; background: rgb(255 255 255 / 0.05) !important; border: 1px solid rgb(255 255 255 / 0.12) !important; border-radius: 1.5rem !important; box-shadow: none !important; transition: transform 0.5s var(--s-ease), border-color 0.3s ease; }
html body main .lx .lx__item:hover { transform: translateY(-6px); border-color: rgb(227 205 161 / 0.6) !important; }
html body main .lx .lx__photo { order: -1; width: 100% !important; height: auto !important; aspect-ratio: 4 / 4.4; margin: 0 !important; overflow: hidden; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #1c3e2e; }
html body main .lx .lx__photo img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; filter: saturate(0.9); transition: transform 0.9s var(--s-ease), filter 0.5s ease; }
html body main .lx .lx__item:hover .lx__photo img { transform: scale(1.04); filter: saturate(1); }
html body main .lx .lx__years { align-self: flex-start; margin: 1.25rem 1.4rem 0 !important; padding: 0.3rem 0.8rem !important; font-size: 0.75rem !important; font-weight: 800 !important; letter-spacing: 0.08em; color: #142f23 !important; background: linear-gradient(120deg, #e3cda1, #c19e59) !important; border: 0 !important; border-radius: 999px !important; }
html body main .lx .lx__name { margin: 0.8rem 1.4rem 0.3rem !important; font-family: var(--r5-serif) !important; font-size: 1.35rem !important; font-weight: 600 !important; line-height: 1.2; color: #fff !important; }
html body main .lx .lx__role { margin: 0 1.4rem 1.4rem !important; font-size: 0.8rem !important; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(255 255 255 / 0.6) !important; }
html body main .lx .lx__item--now { background: linear-gradient(170deg, rgb(193 158 89 / 0.22), rgb(255 255 255 / 0.04)) !important; border-color: #c19e59 !important; box-shadow: 0 30px 60px -35px rgb(193 158 89 / 0.55) !important; }
html body main .lx .lx__item--now .lx__role { color: #e3cda1 !important; font-weight: 800; }

/* ---------- History: A campus built for learning, more air ---------- */
html body:not(.page-home) main > section.h-campus { padding-block: clamp(5rem, 9vw, 8rem) !important; }
html body main .h-campus .h-campus__head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem) !important; }
html body main .h-campus .h-campus__grid { gap: clamp(1rem, 2.2vw, 1.75rem) !important; }
html body main .h-campus .h-campus__photo, html body main .h-campus .h-campus__photo img { border-radius: 1.5rem !important; }

/* ---------- MSFS: Southwest Province ---------- */
html body:not(.page-home) main > section.s-province:is(#r5, .s-province):not(.h-hero) { padding-block: clamp(5rem, 9vw, 8rem) !important; color: #fff !important; background: var(--r5-dark) !important; }
html body main .s-province:is(#r5, .s-province) .m-head { text-align: left !important; margin-bottom: 2.5rem !important; }
html body main .s-province:is(#r5, .s-province) :is(h2, .h2) { color: #fff !important; font-size: clamp(2.4rem, 5vw, 4rem) !important; }
html body main .s-province:is(#r5, .s-province) .eyebrow { color: #e3cda1 !important; background: rgb(255 255 255 / 0.08) !important; border-color: rgb(255 255 255 / 0.18) !important; }
html body main .s-province:is(#r5, .s-province) .s-province__grid { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important; gap: clamp(2rem, 5vw, 4.5rem) !important; align-items: start; }
html body main .s-province:is(#r5, .s-province) .s-province__text { font-size: 1.1rem !important; line-height: 1.8 !important; color: rgb(255 255 255 / 0.82) !important; }
html body main .s-province:is(#r5, .s-province) .s-regions { display: flex !important; flex-wrap: wrap; gap: 0.6rem !important; margin: 1.75rem 0 0 !important; padding: 0 !important; list-style: none; }
html body main .s-province:is(#r5, .s-province) .s-regions li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.1rem !important; font-weight: 700; color: #fff !important; background: rgb(255 255 255 / 0.07) !important; border: 1px solid rgb(255 255 255 / 0.18) !important; border-radius: 999px !important; }
html body main .s-province:is(#r5, .s-province) .s-regions li::before { content: ""; width: 0.5rem; height: 0.5rem; background: #c19e59; border-radius: 50%; box-shadow: 0 0 0 4px rgb(193 158 89 / 0.2); }
html body main .s-province:is(#r5, .s-province) .s-stats { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0 !important; margin: 0 !important; overflow: hidden; background: rgb(255 255 255 / 0.05) !important; border: 1px solid rgb(255 255 255 / 0.14) !important; border-radius: 1.5rem !important; }
html body main .s-province:is(#r5, .s-province) .s-stats > div { padding: 1.6rem 1.5rem !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
html body main .s-province:is(#r5, .s-province) .s-stats > div:nth-child(odd) { border-right: 1px solid rgb(255 255 255 / 0.12) !important; }
html body main .s-province:is(#r5, .s-province) .s-stats > div:nth-child(-n+2) { border-bottom: 1px solid rgb(255 255 255 / 0.12) !important; }
html body main .s-province:is(#r5, .s-province) .s-stats dd { margin: 0; font-family: var(--r5-serif) !important; font-size: clamp(2.6rem, 4.5vw, 3.6rem) !important; font-weight: 600 !important; line-height: 1; color: transparent !important; background: linear-gradient(120deg, #e3cda1, #c19e59); -webkit-background-clip: text; background-clip: text; }
html body main .s-province:is(#r5, .s-province) .s-stats dt { margin-top: 0.5rem; font-size: 0.78rem !important; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #fff !important; }
html body main .s-province:is(#r5, .s-province) .s-stats small { display: block; margin-top: 0.25rem; color: rgb(255 255 255 / 0.55) !important; }
html body main .s-province:is(#r5, .s-province) .s-province__provincial { position: relative; max-width: none !important; margin: clamp(2.5rem, 5vw, 4rem) 0 0 !important; padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.75rem, 3vw, 2.75rem) clamp(1.75rem, 3vw, 2.5rem) clamp(4rem, 6vw, 5.5rem) !important; font-size: 1.05rem !important; line-height: 1.8 !important; color: #1c3e2e !important; background: #faf5ec !important; border: 0 !important; border-radius: 1.5rem !important; }
html body main .s-province:is(#r5, .s-province) .s-province__provincial::before { content: "\201C"; position: absolute; left: clamp(1.25rem, 2.5vw, 2rem); top: 0.9rem; font-family: var(--r5-serif); font-size: 4.5rem; line-height: 1; color: #c19e59; }

/* ---------- Founder & Patron: the quote ---------- */
html body:not(.page-home) main > section.fx-quote.fx-quote:not(.h-hero) { padding-block: clamp(5rem, 9vw, 8rem) !important; color: #142f23 !important; background: #faf5ec !important; }
html body main .fx-quote .fx-quote__inner { position: relative; max-width: 58rem; margin-inline: auto; padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem) !important; text-align: center; background: #fff; border-radius: 2rem; box-shadow: 0 40px 80px -55px rgb(20 47 35 / 0.55); }
html body main .fx-quote .fx-quote__inner::before { content: ""; position: absolute; inset: 0.75rem; border: 1px solid #ead9b9; border-radius: 1.5rem; pointer-events: none; }
html body main .fx-quote .fx-quote__mark { position: absolute; top: -2.25rem; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 4.5rem; height: 4.5rem; padding-top: 1.4rem; font-family: var(--r5-serif) !important; font-size: 4.5rem !important; line-height: 1 !important; color: #142f23 !important; background: linear-gradient(135deg, #e3cda1, #c19e59) !important; border-radius: 50%; box-shadow: 0 14px 30px -12px rgb(161 129 66 / 0.7); }
html body main .fx-quote .fx-quote__label { margin: 0 0 1.25rem !important; font-size: 0.75rem !important; font-weight: 800 !important; letter-spacing: 0.2em; text-transform: uppercase; color: #a18142 !important; }
html body main .fx-quote .fx-quote__text { margin: 0 !important; padding: 0 !important; font-family: var(--r5-serif) !important; font-size: clamp(2rem, 4.2vw, 3.4rem) !important; font-style: italic; font-weight: 500 !important; line-height: 1.2 !important; color: #142f23 !important; border: 0 !important; background: none !important; }
html body main .fx-quote .fx-quote__cite { display: inline-flex; align-items: center; gap: 0.75rem; margin: 1.75rem 0 0 !important; font-size: 0.85rem !important; font-weight: 700 !important; letter-spacing: 0.08em; text-transform: uppercase; color: #49695b !important; }
html body main .fx-quote .fx-quote__cite::before, html body main .fx-quote .fx-quote__cite::after { content: ""; width: 2.5rem; height: 1px; background: #c19e59; }

/* ---------- Vision & Mission ---------- */
html body main .vx-vision .vx-vision__top { display: grid !important; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) !important; align-items: stretch !important; gap: 0 !important; overflow: hidden; border-radius: 2rem; box-shadow: 0 50px 90px -60px rgb(20 47 35 / 0.7); }
html body main .vx-vision .vx-vision__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4.5rem) !important; color: #fff; background: var(--r5-dark) !important; border: 0 !important; border-radius: 0 !important; }
html body main .vx-vision .vx-vision__label { align-self: flex-start; color: #e3cda1 !important; background: rgb(255 255 255 / 0.08) !important; border-color: rgb(255 255 255 / 0.18) !important; }
html body main .vx-vision .vx-vision__text { margin: 1.5rem 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html body main .vx-vision .vx-vision__text p { font-family: var(--r5-serif) !important; font-size: clamp(1.35rem, 2.3vw, 1.95rem) !important; line-height: 1.45 !important; color: #fff !important; }
html body main .vx-vision .vx-vision__photo { margin: 0 !important; min-height: 26rem; border-radius: 0 !important; }
html body main .vx-vision .vx-vision__photo :is(picture, img) { display: block; width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
html body main .vx-vision .vx-pillars { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1rem !important; margin: clamp(2rem, 4vw, 3rem) 0 0 !important; padding: 0 !important; list-style: none; }
html body main .vx-vision .vx-pillars li { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 0.9rem !important; padding: 1.5rem 1.5rem 1.6rem !important; background: #fff !important; border: 1px solid #ead9b9 !important; border-radius: 1.25rem !important; box-shadow: none !important; transition: transform 0.4s var(--s-ease), box-shadow 0.4s ease, border-color 0.3s ease; }
html body main .vx-vision .vx-pillars li:hover { transform: translateY(-5px); border-color: #c19e59 !important; box-shadow: 0 30px 50px -40px rgb(20 47 35 / 0.55) !important; }
html body main .vx-vision .vx-pillars__no { display: block !important; width: auto !important; height: auto !important; font-family: var(--r5-serif) !important; font-size: 2.4rem !important; font-weight: 600 !important; line-height: 1 !important; color: #c19e59 !important; background: none !important; border: 0 !important; }
html body main .vx-vision .vx-pillars__name { font-size: 1.1rem !important; font-weight: 800 !important; color: #142f23 !important; }
/* mission: editorial numbered list, no boxes */
html body main .vx-mission .vx-mission__grid { align-items: start !important; }
html body main .vx-mission .vx-mission__photo { position: sticky; top: 7rem; }
html body main .vx-mission .vx-mission__photo img { border-radius: 2rem !important; }
html body main .vx-mission .vx-aims { display: grid !important; grid-template-columns: 1fr 1fr !important; column-gap: 2.5rem !important; row-gap: 0 !important; margin: 2rem 0 0 !important; padding: 0 !important; list-style: none; }
html body main .vx-mission .vx-aims > li { display: grid !important; grid-template-columns: 3rem 1fr; align-items: start; gap: 0.75rem !important; padding: 1.25rem 0 !important; background: none !important; border: 0 !important; border-top: 1px solid #ead9b9 !important; border-radius: 0 !important; box-shadow: none !important; }
html body main .vx-mission .vx-aims > li.vx-aims__wide { grid-column: 1 / -1; padding: 1.5rem !important; margin-top: 1rem; background: #faf5ec !important; border: 0 !important; border-radius: 1.25rem !important; }
html body main .vx-mission .vx-aims__no { width: auto !important; height: auto !important; font-family: var(--r5-serif) !important; font-size: 1.7rem !important; font-weight: 600 !important; line-height: 1 !important; color: #c19e59 !important; background: none !important; border: 0 !important; }
html body main .vx-mission .vx-aims p { margin: 0 !important; font-size: 1rem !important; line-height: 1.6 !important; color: #1c3e2e !important; }
html body main .vx-mission .vx-outcomes { grid-column: 2; display: flex !important; flex-wrap: wrap; gap: 0.5rem !important; margin: 0.75rem 0 0 !important; padding: 0 !important; list-style: none; }
html body main .vx-mission .vx-outcomes li { padding: 0.4rem 0.9rem !important; font-size: 0.85rem; font-weight: 700; color: #142f23 !important; background: #fff !important; border: 1px solid #ead9b9 !important; border-radius: 999px !important; }
html body main .vx-motto .vx-motto__title span { color: transparent !important; background: linear-gradient(120deg, #e3cda1, #c19e59); -webkit-background-clip: text; background-clip: text; }
html body main .vx-motto .vx-motto__title span:nth-child(2) { font-style: italic; }

/* ---------- Course of Study + programme pages: the subjects ---------- */
html body:not(.page-home) main > section.k-schemes:is(#r5, .k-schemes):not(.h-hero),
html body:not(.page-home) main > section.pg-schemes.pg-schemes:not(.h-hero) { padding-block: clamp(5rem, 9vw, 8rem) !important; color: #fff !important; background: var(--r5-dark) !important; }
html body main :is(.k-schemes, .pg-schemes) :is(h2, .h2, .pg-title) { color: #fff !important; }
html body main :is(.k-schemes, .pg-schemes) .eyebrow { color: #e3cda1 !important; background: rgb(255 255 255 / 0.08) !important; border-color: rgb(255 255 255 / 0.18) !important; }
html body main :is(.k-tabs, .pg-tabs__list) { display: inline-flex !important; flex-wrap: wrap; justify-content: center; gap: 0.3rem !important; padding: 0.35rem !important; background: rgb(255 255 255 / 0.06) !important; border: 1px solid rgb(255 255 255 / 0.14) !important; border-radius: 999px !important; }
html body main .k-schemes .k-tabs { display: flex !important; width: fit-content; max-width: 100%; margin-inline: auto !important; }
html body main :is(.k-tabs, .pg-tabs__list) button { min-height: 2.6rem !important; padding: 0 1.2rem !important; font-weight: 700 !important; color: rgb(255 255 255 / 0.78) !important; background: transparent !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important; transition: background 0.3s ease, color 0.3s ease; }
html body main :is(.k-tabs, .pg-tabs__list) button:hover { color: #fff !important; background: rgb(255 255 255 / 0.08) !important; }
html body main :is(.k-tabs, .pg-tabs__list) button[aria-selected="true"] { color: #142f23 !important; background: linear-gradient(120deg, #e3cda1, #c19e59) !important; }
html body main :is(.k-tabs, .pg-tabs__list) button:focus-visible { outline: 2px solid #e3cda1; outline-offset: 2px; }
html body main :is(.k-panel, .pg-stage):not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important; grid-template-rows: auto 1fr; gap: 0 !important; overflow: hidden; color: #142f23; background: #fff !important; border: 0 !important; border-radius: 2rem !important; box-shadow: 0 50px 90px -50px rgb(0 0 0 / 0.6) !important; }
html body main :is(.kx-panel__photo, .px-stage__photo) { position: relative !important; grid-row: 1 / -1; min-height: 24rem; margin: 0 !important; border-radius: 0 !important; }
html body main :is(.kx-panel__photo, .px-stage__photo) img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
html body main .kx-panel__body, html body main .pg-stage__head, html body main .pg-stage__body { padding-inline: clamp(1.5rem, 3.5vw, 3rem) !important; background: none !important; border: 0 !important; }
html body main .kx-panel__body { padding-block: clamp(1.75rem, 3.5vw, 3rem) !important; }
html body main .pg-stage__head { display: flex !important; align-items: center; justify-content: space-between; gap: 1rem; padding-top: clamp(1.75rem, 3.5vw, 2.75rem) !important; padding-bottom: 1.25rem !important; border-bottom: 1px solid #ead9b9 !important; }
html body main .pg-stage__body { padding-block: 1.5rem clamp(1.75rem, 3.5vw, 2.75rem) !important; }
html body main :is(.k-panel__title, .pg-stage__head h3) { margin: 0 0 1.25rem !important; font-family: var(--r5-serif) !important; font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important; font-weight: 600 !important; color: #142f23 !important; text-align: left !important; }
html body main .pg-stage__head h3 { margin: 0.25rem 0 0 !important; }
html body main .pg-stage__label { color: #a18142 !important; }
html body main .pg-stage__count { padding: 0.5rem 1rem !important; color: #142f23 !important; background: #faf5ec !important; border: 1px solid #ead9b9 !important; border-radius: 999px !important; }
html body main .pg-stage__count b { color: #a18142 !important; font-family: var(--r5-serif); font-size: 1.2rem; }
html body main .pg-stage__body h4 { margin: 1.25rem 0 0.75rem !important; font-size: 0.75rem !important; font-weight: 800 !important; letter-spacing: 0.14em; text-transform: uppercase; color: #628e7a !important; }
html body main .pg-stage__body h4:first-child { margin-top: 0 !important; }
html body main :is(.k-subjects, .pg-tiles) { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)) !important; gap: 0.55rem !important; margin: 0 !important; padding: 0 !important; list-style: none; }
html body main :is(.k-subjects, .pg-tiles) li, html body main .k-langs li { display: flex !important; align-items: center; gap: 0.75rem !important; min-height: 3.1rem; padding: 0.6rem 0.9rem !important; font-size: 0.95rem !important; font-weight: 600 !important; line-height: 1.3; text-align: left !important; color: #142f23 !important; background: #faf5ec !important; border: 1px solid transparent !important; border-radius: 0.9rem !important; box-shadow: none !important; transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease; }
html body main :is(.k-subjects, .pg-tiles) li:hover { background: #fff !important; border-color: #c19e59 !important; transform: translateX(3px); }
html body main :is(.k-subjects li > span, .pg-tiles__no) { display: grid !important; place-items: center; flex: none; width: 1.9rem !important; height: 1.9rem !important; font-size: 0.7rem !important; font-weight: 800 !important; color: #142f23 !important; background: linear-gradient(135deg, #e3cda1, #c19e59) !important; border: 0 !important; border-radius: 50% !important; }
html body main .k-panel .k-langs, html body main .pg-tiles--lang { margin: 0 0 1rem !important; }
html body main .k-panel .k-langs li, html body main .pg-tiles--lang li { color: #fff !important; background: linear-gradient(140deg, #254f3c, #142f23) !important; justify-content: center; }

/* ---------- Assessment & Examination ---------- */
html body.page-assessment main .a-block { padding-block: clamp(3.5rem, 6vw, 5rem) !important; }
html body.page-assessment main .a-block__head { display: flex !important; align-items: center; gap: 1.25rem !important; margin-bottom: 2rem !important; }
html body.page-assessment main .a-block__no { display: grid !important; place-items: center; flex: none; width: 4rem; height: 4rem; font-family: var(--r5-serif) !important; font-size: 1.6rem !important; font-weight: 600 !important; color: #142f23 !important; background: linear-gradient(135deg, #e3cda1, #c19e59) !important; -webkit-text-stroke: 0 !important; border-radius: 1.1rem; }
html body.page-assessment main .a-band { margin-top: 2rem !important; }
html body.page-assessment main .a-band__title { display: inline-block; margin-bottom: 1rem !important; padding: 0.45rem 1.1rem !important; font-size: 0.95rem !important; font-weight: 800 !important; color: #fff !important; background: linear-gradient(140deg, #254f3c, #142f23) !important; border-radius: 999px !important; }
html body.page-assessment main .a-term { overflow: hidden; padding: 0 !important; background: #fff !important; border: 1px solid #ead9b9 !important; border-radius: 1.25rem !important; box-shadow: 0 24px 50px -42px rgb(20 47 35 / 0.5) !important; }
html body.page-assessment main .a-term__name { margin: 0 !important; padding: 1.1rem 1.4rem !important; font-family: var(--r5-serif) !important; font-size: 1.25rem !important; color: #142f23 !important; background: #faf5ec !important; border-bottom: 1px solid #ead9b9; }
html body.page-assessment main .a-term__name small { color: #a18142 !important; }
html body.page-assessment main .a-sum { margin: 0 !important; padding: 0.4rem 1.4rem 0 !important; }
html body.page-assessment main .a-sum > div { padding: 0.8rem 0 !important; background: none !important; border: 0 !important; border-bottom: 1px dashed #ead9b9 !important; }
html body.page-assessment main .a-sum dd { color: #142f23 !important; font-weight: 800 !important; }
html body.page-assessment main .a-sum .a-sum__total { margin: 0.6rem -1.4rem 0 !important; padding: 1rem 1.4rem !important; color: #fff !important; background: linear-gradient(140deg, #254f3c, #142f23) !important; border: 0 !important; border-radius: 0 !important; }
html body.page-assessment main .a-sum .a-sum__total :is(dt, dd, small) { color: #fff !important; }
html body.page-assessment main .a-sum .a-sum__total dd { font-family: var(--r5-serif); font-size: 1.6rem !important; color: #e3cda1 !important; }
html body.page-assessment main .a-note { background: #faf5ec !important; border: 0 !important; border-left: 3px solid #c19e59 !important; border-radius: 1rem !important; }
html body.page-assessment main .a-points { counter-reset: none; }
html body.page-assessment main .a-points li { display: flex !important; align-items: flex-start; gap: 1rem !important; padding: 1.1rem 1.25rem !important; color: #1c3e2e !important; background: #fff !important; border: 1px solid #ead9b9 !important; border-radius: 1rem !important; }
html body.page-assessment main .a-points li > span { display: grid; place-items: center; flex: none; min-width: 2.2rem; height: 2.2rem; font-size: 0.8rem !important; font-weight: 800; color: #142f23 !important; background: #faf5ec !important; border: 1px solid #c19e59; border-radius: 50%; }
html body.page-assessment main .a-split { overflow: hidden; gap: 0 !important; border-radius: 1.25rem !important; box-shadow: 0 24px 50px -40px rgb(20 47 35 / 0.6); }
html body.page-assessment main .a-split > div { padding: 1.5rem 1.75rem !important; border: 0 !important; border-radius: 0 !important; }
html body.page-assessment main .a-split__exam { color: #fff !important; background: linear-gradient(140deg, #254f3c, #142f23) !important; }
html body.page-assessment main .a-split__internal { color: #142f23 !important; background: linear-gradient(135deg, #e3cda1, #c19e59) !important; }
html body.page-assessment main .a-split b { font-family: var(--r5-serif); font-size: 2.8rem !important; }
html body.page-assessment main .a-split__exam b { color: #e3cda1 !important; }
html body.page-assessment main .a-internal li { background: #fff !important; border: 1px solid #ead9b9 !important; border-radius: 1.25rem !important; }
html body.page-assessment main .a-internal__mark { color: #142f23 !important; background: #faf5ec !important; border-radius: 1rem !important; }
html body.page-assessment main .a-internal__mark b { color: #a18142 !important; font-family: var(--r5-serif); }
html body.page-assessment main .a-grades { gap: 0.75rem !important; }
html body.page-assessment main .a-grades li { position: relative; overflow: hidden; padding: 1.25rem 1.25rem 1.1rem !important; background: #fff !important; border: 1px solid #ead9b9 !important; border-radius: 1.25rem !important; transition: transform 0.4s var(--s-ease), border-color 0.3s ease; }
html body.page-assessment main .a-grades li::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #e3cda1, #c19e59); }
html body.page-assessment main .a-grades li:hover { transform: translateY(-4px); border-color: #c19e59 !important; }
html body.page-assessment main .a-grades__grade { font-family: var(--r5-serif) !important; font-size: 2.4rem !important; font-weight: 600 !important; color: #142f23 !important; }
html body.page-assessment main .a-grades__range { color: #49695b !important; }
html body.page-assessment main .a-grades li.a-grades__fail { background: linear-gradient(140deg, #254f3c, #142f23) !important; border-color: #142f23 !important; }
html body.page-assessment main .a-grades li.a-grades__fail::before { background: rgb(255 255 255 / 0.25); }
html body.page-assessment main .a-grades li.a-grades__fail :is(.a-grades__grade, .a-grades__range, small) { color: #fff !important; }
html body.page-assessment main .a-beyond__photo img { border-radius: 1.5rem !important; }

/* ---------- Admission procedure ---------- */
html body.page-admission main .ad-who__card { overflow: hidden; background: #fff !important; border: 1px solid #ead9b9 !important; border-radius: 1.75rem !important; box-shadow: 0 40px 70px -55px rgb(20 47 35 / 0.6) !important; transition: transform 0.5s var(--s-ease); }
html body.page-admission main .ad-who__card:hover { transform: translateY(-5px); }
html body.page-admission main .ad-who__photo, html body.page-admission main .ad-who__photo img { border-radius: 0 !important; }
html body.page-admission main .ad-who__tag { color: #142f23 !important; background: linear-gradient(120deg, #e3cda1, #c19e59) !important; border-radius: 999px !important; }
html body.page-admission main .ad-who__age b { font-family: var(--r5-serif) !important; color: #a18142 !important; }
html body.page-admission main .ad-who__seats { display: inline-flex; gap: 0.4rem; padding: 0.45rem 1rem !important; color: #142f23 !important; background: #faf5ec !important; border-radius: 999px !important; }
html body.page-admission main .ad-who__notes { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0.75rem !important; padding: 0 !important; background: none !important; border: 0 !important; }
html body.page-admission main .ad-who__notes li { padding: 1rem 1.2rem 1rem 3.2rem !important; position: relative; color: #1c3e2e !important; background: #fff !important; border: 1px solid #ead9b9 !important; border-radius: 1rem !important; }
html body.page-admission main .ad-who__notes li::before { content: "\2713" !important; position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; font-size: 0.75rem; font-weight: 800; color: #142f23 !important; background: linear-gradient(135deg, #e3cda1, #c19e59) !important; border-radius: 50%; mask: none !important; -webkit-mask: none !important; }
/* the six steps as a connected path */
html body.page-admission main .ad-steps { counter-reset: none; position: relative; }
html body.page-admission main .ad-steps li { position: relative; padding: 2rem 1.5rem 1.6rem !important; border-top-width: 1px !important; border-top-color: rgb(255 255 255 / 0.14) !important; transition: transform 0.4s var(--s-ease), background 0.3s ease; }
html body.page-admission main .ad-steps li:hover { transform: translateY(-5px); background: rgb(255 255 255 / 0.1) !important; }
html body.page-admission main .ad-steps__no { display: grid !important; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1rem; font-family: var(--r5-serif) !important; font-size: 1.15rem !important; font-weight: 600; color: #142f23 !important; background: linear-gradient(135deg, #e3cda1, #c19e59) !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; border-radius: 50%; box-shadow: 0 0 0 6px rgb(193 158 89 / 0.15); }
html body.page-admission main .ad-off { border-radius: 2rem !important; overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    html body main .s-province:is(#r5, .s-province) .s-province__grid, html body main .vx-vision .vx-vision__top { grid-template-columns: 1fr !important; }
    html body main .vx-vision .vx-vision__photo { min-height: 18rem; }
    html body main .vx-vision .vx-pillars { grid-template-columns: 1fr 1fr !important; }
    html body main .vx-mission .vx-mission__photo { position: static; }
    html body main :is(.k-panel, .pg-stage):not([hidden]) { grid-template-columns: 1fr !important; }
    html body main :is(.kx-panel__photo, .px-stage__photo) { grid-row: auto; min-height: 15rem; }
}
@media (max-width: 640px) {
    html body main .vx-vision .vx-pillars, html body main .vx-mission .vx-aims { grid-template-columns: 1fr !important; }
    html body main :is(.k-tabs, .pg-tabs__list) { border-radius: 1.25rem !important; }
    html body main .s-province:is(#r5, .s-province) .s-province__provincial { padding-left: 1.5rem !important; padding-top: 3.5rem !important; }
}
@media (prefers-reduced-motion: reduce) {
    html body main :is(.lx__item, .vx-pillars li, .a-grades li, .ad-who__card, .ad-steps li, .k-subjects li, .pg-tiles li) { transition: none !important; transform: none !important; }
}
html body main :is(.s-province, .k-schemes, .pg-schemes, .h-principals):is(#r5, section) :is(h2, .h2, .pg-title, .h-display) :is(span, em, .hl) { color: transparent !important; background: linear-gradient(120deg, #e3cda1, #c19e59) !important; -webkit-background-clip: text !important; background-clip: text !important; }
html body main .k-schemes:is(#r5, .k-schemes) .k-head :is(h2, .h2) { color: #fff !important; }

/* ==========================================================================
   Admission procedure v3 (aq-*): new markup, styles only from the site palette
   ========================================================================== */
.page-admission .aq-head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.page-admission .aq-head .h2 { margin-top: 0.75rem; }
html body:not(.page-home) main > section:is(.aq-who, .aq-docs, .aq-steps-sec, .aq-office) { padding-block: clamp(4.5rem, 8vw, 7rem) !important; }

/* 1. Who can register */
html body:not(.page-home) main > section.aq-who:is(#r5, .aq-who) { background: #fff !important; }
.aq-classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.aq-class { overflow: hidden; background: #fff; border: 1px solid #ead9b9; border-radius: 1.75rem; box-shadow: 0 40px 70px -55px rgb(20 47 35 / 0.6); transition: transform 0.5s var(--s-ease), box-shadow 0.5s ease; }
.aq-class:hover { transform: translateY(-6px); box-shadow: 0 50px 80px -50px rgb(20 47 35 / 0.6); }
.aq-class__photo { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.aq-class__photo :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--s-ease); }
.aq-class:hover .aq-class__photo img { transform: scale(1.05); }
.aq-class__tag { position: absolute; left: 1.25rem; bottom: 1.25rem; padding: 0.5rem 1.2rem; font-family: var(--r5-serif); font-size: 1.35rem; font-weight: 600; color: #142f23; background: linear-gradient(120deg, #e3cda1, #c19e59); border-radius: 999px; box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.5); }
.aq-class__body { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.5rem 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.aq-class__age { grid-row: span 2; display: flex; align-items: flex-end; gap: 0.4rem; margin: 0; padding-right: 1.5rem; border-right: 1px solid #ead9b9; }
.aq-class__age b { font-family: var(--r5-serif); font-size: clamp(4rem, 7vw, 5.5rem); font-weight: 600; line-height: 0.85; color: transparent; background: linear-gradient(160deg, #c19e59, #785f2e); -webkit-background-clip: text; background-clip: text; }
.aq-class__age span { display: flex; flex-direction: column; font-weight: 800; color: #142f23; }
.aq-class__age small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #628e7a; }
.aq-class__text { margin: 0; font-size: 1rem; line-height: 1.6; color: #1c3e2e; }
.aq-class__seats { justify-self: start; margin: 0; padding: 0.4rem 1rem; font-size: 0.85rem; font-weight: 700; color: #49695b; background: #faf5ec; border-radius: 999px; }
.aq-class__seats b { color: #a18142; font-size: 1rem; }
.aq-notes { margin-top: clamp(1.75rem, 4vw, 2.5rem); padding: clamp(1.5rem, 3.5vw, 2.5rem); background: #faf5ec; border-radius: 1.75rem; }
.aq-notes__label { margin: 0 0 1.1rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #a18142; }
.aq-notes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.aq-notes li { position: relative; padding-left: 2.25rem; font-size: 0.98rem; line-height: 1.6; color: #1c3e2e; }
.aq-notes li::before { content: "\2713"; position: absolute; left: 0; top: 0.1rem; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; font-size: 0.72rem; font-weight: 900; color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); border-radius: 50%; }

/* 2. Documents + fee ticket */
html body:not(.page-home) main > section.aq-docs:is(#r5, .aq-docs) { background: #faf5ec !important; }
.aq-docs__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.5fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.aq-docs__format { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 1.75rem; padding: 0.75rem 1rem; font-size: 0.92rem; font-weight: 600; color: #49695b; background: #fff; border: 1px dashed #c19e59; border-radius: 0.9rem; }
.aq-docs__format svg { flex: none; width: 1.2rem; height: 1.2rem; color: #a18142; }
.aq-files { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.aq-files li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid #ead9b9; border-radius: 1.1rem; transition: transform 0.35s var(--s-ease), border-color 0.3s ease, box-shadow 0.35s ease; }
.aq-files li:hover { transform: translateX(6px); border-color: #c19e59; box-shadow: 0 20px 40px -32px rgb(20 47 35 / 0.6); }
.aq-files__icon { display: grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; color: #e3cda1; background: linear-gradient(140deg, #254f3c, #142f23); border-radius: 0.8rem; }
.aq-files__icon svg { width: 1.25rem; height: 1.25rem; }
.aq-files__name { flex: 1; font-weight: 700; color: #142f23; }
.aq-files__no { font-family: var(--r5-serif); font-size: 1.5rem; color: #d9cbb0; }
.aq-ticket { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #1c3e2e, #10251c); border-radius: 1.75rem; box-shadow: 0 50px 80px -50px rgb(20 47 35 / 0.8); }
.aq-ticket__photo { margin: 0; aspect-ratio: 4 / 3; }
.aq-ticket__photo :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.aq-ticket__body { position: relative; padding: 2rem 1.75rem 1.9rem; border-top: 2px dashed rgb(227 205 161 / 0.5); }
.aq-ticket__body::before, .aq-ticket__body::after { content: ""; position: absolute; top: -0.9rem; width: 1.6rem; height: 1.6rem; background: #faf5ec; border-radius: 50%; }
.aq-ticket__body::before { left: -0.8rem; }
.aq-ticket__body::after { right: -0.8rem; }
.aq-ticket__label { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #e3cda1; }
.aq-ticket__value { margin: 0.4rem 0 0.3rem; font-family: var(--r5-serif); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 600; line-height: 1; color: transparent; background: linear-gradient(120deg, #e3cda1, #c19e59); -webkit-background-clip: text; background-clip: text; }
.aq-ticket__note { margin: 0; font-size: 0.9rem; color: rgb(255 255 255 / 0.7); }

/* 3. Selection path on a dark band */
html body:not(.page-home) main > section.aq-steps-sec:is(#r5, .aq-steps-sec) { color: #fff !important; background: var(--r5-dark) !important; }
.aq-steps-sec .h2 { color: #fff !important; }
.aq-steps-sec .h2 :is(span, em, .hl) { color: transparent !important; background: linear-gradient(120deg, #e3cda1, #c19e59) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.aq-steps-sec .eyebrow { color: #e3cda1 !important; background: rgb(255 255 255 / 0.08) !important; border-color: rgb(255 255 255 / 0.18) !important; }
.aq-seats { display: inline-block; margin: 1.25rem 0 0; padding: 0.55rem 1.25rem; font-weight: 700; color: #142f23; background: linear-gradient(120deg, #e3cda1, #c19e59); border-radius: 999px; }
.aq-path { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
.aq-path::before { content: ""; position: absolute; left: 10%; right: 10%; top: 1.75rem; height: 2px; background: linear-gradient(90deg, transparent, #c19e59 12%, #c19e59 88%, transparent); opacity: 0.6; }
.aq-path__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.aq-path__no { position: relative; z-index: 1; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; font-family: var(--r5-serif); font-size: 1.4rem; font-weight: 600; color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); border-radius: 50%; box-shadow: 0 0 0 8px #142f23, 0 0 0 9px rgb(193 158 89 / 0.35); transition: transform 0.4s var(--s-ease); }
.aq-path__step:hover .aq-path__no { transform: scale(1.1); }
.aq-path__step h3 { margin: 0 0 0.5rem; font-family: var(--r5-serif); font-size: 1.2rem; font-weight: 600; color: #fff !important; }
.aq-path__step p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: rgb(255 255 255 / 0.7) !important; }

/* 4. Office */
html body:not(.page-home) main > section.aq-office:is(#r5, .aq-office) { background: #fff !important; }
.aq-office__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); overflow: hidden; border-radius: 2rem; box-shadow: 0 50px 90px -60px rgb(20 47 35 / 0.8); }
.aq-office__photo { margin: 0; min-height: 22rem; }
.aq-office__photo :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.aq-office__body { padding: clamp(2rem, 4.5vw, 3.75rem); color: #fff; background: linear-gradient(160deg, #1c3e2e, #10251c); }
.aq-office__body .h2 { margin: 0.9rem 0 1.75rem; color: #fff !important; font-size: clamp(1.7rem, 3vw, 2.4rem) !important; }
.aq-office__body .eyebrow { color: #e3cda1 !important; background: rgb(255 255 255 / 0.08) !important; border-color: rgb(255 255 255 / 0.18) !important; }
.aq-office__rows { display: grid; gap: 1.1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.aq-office__rows li { display: flex; align-items: flex-start; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.aq-office__icon { display: grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); border-radius: 0.85rem; }
.aq-office__icon svg { width: 1.2rem; height: 1.2rem; }
.aq-office__rows small { display: block; margin-bottom: 0.25rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #e3cda1; }
.aq-office__rows li > span:last-child { font-size: 1.05rem; font-weight: 600; color: #fff; }
.aq-office__rows a { color: #fff; text-decoration: none; border-bottom: 1px solid rgb(227 205 161 / 0.5); }
.aq-office__rows a:hover, .aq-office__rows a:focus-visible { color: #e3cda1; }
.aq-office__rows i { margin: 0 0.4rem; font-style: normal; color: #c19e59; }
.aq-office__rows em { display: block; margin-top: 0.2rem; font-size: 0.85rem; font-style: normal; font-weight: 500; color: rgb(255 255 255 / 0.6); }
.aq-office__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.aq-office__call { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.3rem; font-weight: 700; color: #fff; text-decoration: none; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 999px; transition: background 0.3s ease, border-color 0.3s ease; }
.aq-office__call:hover, .aq-office__call:focus-visible { background: rgb(255 255 255 / 0.08); border-color: #e3cda1; }
.aq-office__call svg { width: 1rem; height: 1rem; }

@media (max-width: 960px) {
    .aq-docs__grid, .aq-office__card { grid-template-columns: 1fr; }
    .aq-office__photo { min-height: 16rem; }
    .aq-path { grid-template-columns: 1fr; gap: 0; max-width: 34rem; margin-inline: auto; }
    .aq-path::before { left: 1.75rem; right: auto; top: 1rem; bottom: 1rem; width: 2px; height: auto; background: linear-gradient(180deg, #c19e59, #c19e59); }
    .aq-path__step { display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1.25rem; align-items: start; padding-bottom: 1.75rem; text-align: left; }
    .aq-path__no { grid-row: span 2; margin: 0; }
    .aq-path__step h3 { margin-top: 0.8rem; }
}
@media (max-width: 720px) {
    .aq-classes, .aq-notes ul { grid-template-columns: 1fr; }
    .aq-class__body { grid-template-columns: 1fr; }
    .aq-class__age { grid-row: auto; padding: 0 0 0.75rem; border-right: 0; border-bottom: 1px solid #ead9b9; }
}
@media (prefers-reduced-motion: reduce) {
    .aq-class, .aq-class img, .aq-files li, .aq-path__no { transition: none !important; transform: none !important; }
}

/* ==========================================================================
   Assessment & Examination v3 (ae-*): new markup, site palette only
   ========================================================================== */
/* sticky chapter bar */
.ae-chapters { position: sticky; top: var(--ae-top, 4.75rem); z-index: 20; background: rgb(255 255 255 / 0.92); border-bottom: 1px solid #ead9b9; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ae-chapters ol { display: flex; gap: 0.35rem; margin: 0; padding: 0.7rem 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.ae-chapters ol::-webkit-scrollbar { display: none; }
.ae-chapters a { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1rem 0.5rem 0.5rem; font-size: 0.88rem; font-weight: 700; white-space: nowrap; color: #49695b; text-decoration: none; border-radius: 999px; transition: background 0.3s ease, color 0.3s ease; }
.ae-chapters a span { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; font-size: 0.7rem; font-weight: 800; color: #a18142; background: #faf5ec; border-radius: 50%; transition: background 0.3s ease, color 0.3s ease; }
.ae-chapters a:hover { color: #142f23; background: #faf5ec; }
.ae-chapters a[aria-current="true"] { color: #fff; background: linear-gradient(140deg, #254f3c, #142f23); }
.ae-chapters a[aria-current="true"] span { color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); }
.ae-chapters a:focus-visible { outline: 2px solid #c19e59; outline-offset: 2px; }

/* shared */
html body:not(.page-home) main > section.ae-sec:is(#r5, .ae-sec) { padding-block: clamp(4.5rem, 8vw, 7rem) !important; color: #142f23 !important; background: #fff !important; scroll-margin-top: 8rem; }
html body:not(.page-home) main > section.ae-sec:is(#r5, .ae-exams, .ae-beyond) { background: #faf5ec !important; }
.ae-head { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem); }
.ae-head__no { display: grid; place-items: center; flex: none; width: clamp(3.6rem, 6vw, 4.6rem); height: clamp(3.6rem, 6vw, 4.6rem); font-family: var(--r5-serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); border-radius: 1.25rem; box-shadow: 0 16px 30px -16px rgb(161 129 66 / 0.8); }
.ae-head .h2 { margin: 0.5rem 0 0 !important; }
.ae-sub { margin: 0 0 0.75rem; font-family: var(--r5-serif); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; color: #142f23; }

/* 01 scholastic */
.ae-band { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(1.25rem, 3vw, 2.5rem); padding-block: clamp(1.75rem, 3.5vw, 2.5rem); border-top: 1px solid #ead9b9; }
.ae-band__title { align-self: start; position: sticky; top: 10rem; margin: 0; font-family: var(--r5-serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.15; color: #142f23; }
.ae-band__title::before { content: ""; display: block; width: 2.5rem; height: 3px; margin-bottom: 0.9rem; background: linear-gradient(90deg, #e3cda1, #c19e59); border-radius: 3px; }
.ae-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ae-details { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ae-term { padding: 1.5rem; background: #fff; border: 1px solid #ead9b9; border-radius: 1.5rem; box-shadow: 0 30px 60px -50px rgb(20 47 35 / 0.6); transition: transform 0.4s var(--s-ease), border-color 0.3s ease; }
.ae-term:hover { transform: translateY(-4px); border-color: #c19e59; }
.ae-term__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.ae-term__name { margin: 0; font-family: var(--r5-serif); font-size: 1.35rem; font-weight: 600; color: #142f23; }
.ae-term__name small { display: block; margin-top: 0.25rem; font-family: inherit; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #628e7a; font-family: var(--f-sans, inherit); }
.ae-term__total { margin: 0; font-size: 0.8rem; font-weight: 700; color: #628e7a; text-align: right; }
.ae-term__total b { display: block; font-family: var(--r5-serif); font-size: 2.2rem; line-height: 1; color: #a18142; }
.ae-bar { display: flex; gap: 3px; height: 2.2rem; margin-bottom: 1rem; overflow: hidden; border-radius: 0.7rem; }
.ae-bar__part { display: grid; place-items: center; min-width: 2.2rem; font-size: 0.78rem; font-weight: 800; }
.ae-bar__part--0, .ae-dot--0 { color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); }
.ae-bar__part--1, .ae-dot--1 { color: #e3cda1; background: linear-gradient(140deg, #254f3c, #142f23); }
.ae-term__parts { margin: 0; }
.ae-term__parts > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed #ead9b9; }
.ae-term__parts dt { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: #1c3e2e; }
.ae-term__parts dd { margin: 0; font-weight: 800; color: #142f23; }
.ae-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.ae-term__sum { border-bottom: 0 !important; padding-top: 0.8rem !important; }
.ae-term__sum dt { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem !important; color: #628e7a !important; }
.ae-detail { padding: 1.35rem 1.4rem; background: #faf5ec; border-radius: 1.25rem; }
.ae-detail h4 { display: inline-block; margin: 0 0 0.9rem; padding: 0.35rem 0.85rem; font-size: 0.8rem; font-weight: 800; color: #142f23; background: #fff; border: 1px solid #ead9b9; border-radius: 999px; }
.ae-detail ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.ae-detail li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; line-height: 1.55; color: #1c3e2e; }
.ae-detail li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.4rem; height: 0.4rem; background: #c19e59; border-radius: 50%; }

/* 02 senior: dark */
html body:not(.page-home) main > section.ae-senior:is(#r5, .ae-senior) { color: #fff !important; background: var(--r5-dark) !important; }
.ae-senior .h2 { color: #fff !important; }
.ae-senior .h2 :is(span, em, .hl) { color: transparent !important; background: linear-gradient(120deg, #e3cda1, #c19e59) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.ae-senior .eyebrow { color: #e3cda1 !important; background: rgb(255 255 255 / 0.08) !important; border-color: rgb(255 255 255 / 0.18) !important; }
.ae-senior__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: stretch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.ae-rules { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.ae-rules li { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.4rem; font-size: 1.05rem; line-height: 1.6; color: rgb(255 255 255 / 0.88); background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.12); border-radius: 1.25rem; }
.ae-rules span { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; font-size: 0.8rem; font-weight: 800; color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); border-radius: 50%; }
.ae-split { display: flex; min-height: 12rem; overflow: hidden; border-radius: 1.5rem; box-shadow: 0 30px 60px -35px rgb(0 0 0 / 0.6); }
.ae-split > div { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; }
.ae-split__exam { flex: 80 1 0; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14); border-right: 0; border-radius: 1.5rem 0 0 1.5rem; }
.ae-split__internal { flex: 20 1 0; min-width: 7.5rem; color: #142f23; background: linear-gradient(160deg, #e3cda1, #c19e59); }
.ae-split b { font-family: var(--r5-serif); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; line-height: 1; }
.ae-split__exam b { color: #e3cda1; }
.ae-split span { margin-top: 0.4rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.ae-split__exam span { color: rgb(255 255 255 / 0.75); }
.ae-senior .ae-sub { color: #fff; }
.ae-internal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.ae-internal li { padding: 1.5rem 1.4rem; background: #fff; border-radius: 1.5rem; transition: transform 0.4s var(--s-ease); }
.ae-internal li:hover { transform: translateY(-5px); }
.ae-internal__mark { display: inline-flex; align-items: baseline; gap: 0.35rem; margin-bottom: 1rem; padding: 0.4rem 0.9rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #142f23; background: #faf5ec; border-radius: 999px; }
.ae-internal__mark b { font-family: var(--r5-serif); font-size: 1.4rem; letter-spacing: 0; color: #a18142; }
.ae-internal h4 { margin: 0 0 0.55rem; font-family: var(--r5-serif); font-size: 1.2rem; font-weight: 600; color: #142f23; }
.ae-internal p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #49695b; }

/* 03 examinations */
.ae-exams__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ae-exams__list li { position: relative; padding: 2rem 1.6rem 1.6rem; overflow: hidden; background: #fff; border-radius: 1.5rem; box-shadow: 0 30px 60px -50px rgb(20 47 35 / 0.6); }
.ae-exams__list span { display: block; margin-bottom: 1rem; font-family: var(--r5-serif); font-size: 3rem; font-weight: 600; line-height: 1; color: transparent; background: linear-gradient(160deg, #e3cda1, #a18142); -webkit-background-clip: text; background-clip: text; }
.ae-exams__list p { margin: 0; font-size: 1rem; line-height: 1.7; color: #1c3e2e; }

/* 04 grading */
.ae-grades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ae-grades li { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; min-height: 8.5rem; padding: 1.4rem 1.5rem; overflow: hidden; background: #faf5ec; border-radius: 1.5rem; transition: transform 0.4s var(--s-ease), background 0.3s ease; }
.ae-grades li:hover { transform: translateY(-4px); background: #f6ecda; }
.ae-grades__grade { font-family: var(--r5-serif); font-size: clamp(2.6rem, 4.5vw, 3.4rem); font-weight: 600; line-height: 0.9; color: #142f23; }
.ae-grades__range { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; color: #142f23; }
.ae-grades__range small { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #628e7a; }
.ae-grades li:nth-child(-n+2) { background: linear-gradient(150deg, #e3cda1, #c19e59); }
.ae-grades li:nth-child(-n+2) .ae-grades__range small { color: #254f3c; }
.ae-grades li.ae-grades__fail { background: linear-gradient(150deg, #254f3c, #142f23); }
.ae-grades li.ae-grades__fail .ae-grades__grade { font-size: clamp(1.8rem, 3vw, 2.3rem); color: #fff; }
.ae-grades li.ae-grades__fail .ae-grades__range { color: #e3cda1; }
.ae-grades li.ae-grades__fail small { color: rgb(255 255 255 / 0.6); }

/* 05 beyond */
.ae-enrich { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.ae-enrich__photo { margin: 0; overflow: hidden; border-radius: 1.75rem; aspect-ratio: 4 / 3; }
.ae-enrich__photo :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.ae-enrich__body p { margin: 0; font-size: 1.1rem; line-height: 1.75; color: #1c3e2e; }
.ae-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ae-card { padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; border-radius: 1.75rem; }
.ae-card p { margin: 0 0 1rem; font-size: 0.98rem; line-height: 1.7; color: #1c3e2e; }
.ae-card__muted { color: #49695b !important; font-size: 0.92rem !important; }
.ae-areas { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.ae-areas li { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.9rem 1rem; font-size: 0.95rem; line-height: 1.5; color: #142f23; background: #faf5ec; border-radius: 1rem; }
.ae-areas span { display: grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; font-size: 0.75rem; font-weight: 800; color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); border-radius: 50%; }
.ae-card--dark { color: #fff; background: linear-gradient(160deg, #1c3e2e, #10251c); }
.ae-card--dark .ae-sub { color: #fff; }
.ae-card--dark p { color: rgb(255 255 255 / 0.8); }
.ae-ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.25rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.ae-ticks li { position: relative; padding-left: 1.8rem; font-size: 0.93rem; line-height: 1.5; color: #fff; }
.ae-ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0.05rem; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; font-size: 0.65rem; font-weight: 900; color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); border-radius: 50%; }
.ae-card__note { margin: 0 !important; padding: 1rem 1.1rem; font-size: 0.9rem !important; color: #e3cda1 !important; background: rgb(255 255 255 / 0.06); border-left: 3px solid #c19e59; border-radius: 0 0.8rem 0.8rem 0; }

@media (max-width: 1100px) {
    .ae-internal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ae-grades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .ae-band, .ae-senior__top, .ae-enrich, .ae-pair { grid-template-columns: 1fr; }
    .ae-band__title { position: static; }
    .ae-details { grid-column: auto; grid-template-columns: 1fr; }
    .ae-exams__list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ae-terms, .ae-internal, .ae-ticks { grid-template-columns: 1fr; }
    .ae-grades li { min-height: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ae-term, .ae-internal li, .ae-grades li { transition: none !important; transform: none !important; }
}
html body main nav.ae-chapters:is(#r5, .ae-chapters), html body nav.ae-chapters:is(#r5, .ae-chapters) { margin: 0 !important; padding: 0 !important; top: var(--ae-top, 7.1rem); }

/* Assessment headings v2: editorial. Number + rule + label on one line, serif title below */
html body.page-assessment main .ae-head { display: grid !important; grid-template-columns: auto 1fr; grid-template-areas: "no label" "title title"; align-items: center; column-gap: 1rem; row-gap: 0.9rem; max-width: 52rem; }
html body.page-assessment main .ae-head > div { display: contents; }
html body.page-assessment main .ae-head__no { grid-area: no; display: block !important; width: auto !important; height: auto !important; font-family: var(--r5-serif); font-size: 1rem !important; font-style: italic; font-weight: 600; color: #a18142 !important; background: none !important; border-radius: 0 !important; box-shadow: none !important; }
html body.page-assessment main .ae-head .eyebrow { grid-area: label; display: flex !important; align-items: center; gap: 1rem; margin: 0 !important; padding: 0 !important; font-size: 0.75rem !important; font-weight: 800 !important; letter-spacing: 0.2em !important; color: #628e7a !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html body.page-assessment main .ae-head .eyebrow::before { content: "" !important; order: -1; flex: 0 0 3rem; width: 3rem !important; height: 1px !important; margin: 0 !important; background: #c19e59 !important; border-radius: 0 !important; box-shadow: none !important; }
html body.page-assessment main .ae-head .h2 { grid-area: title; margin: 0 !important; font-family: var(--r5-serif) !important; font-size: clamp(2.1rem, 4.2vw, 3.4rem) !important; font-weight: 500 !important; letter-spacing: -0.015em !important; line-height: 1.08 !important; color: #142f23 !important; }
html body.page-assessment main .ae-head .h2 :is(span, em, .hl) { font-style: italic; font-weight: 500; color: #a18142 !important; background: none !important; -webkit-text-fill-color: #a18142 !important; }
html body.page-assessment main .ae-senior .ae-head .eyebrow { color: rgb(255 255 255 / 0.6) !important; }
html body.page-assessment main .ae-senior .ae-head .h2 { color: #fff !important; }
html body.page-assessment main .ae-senior .ae-head .h2 :is(span, em, .hl) { color: #e3cda1 !important; -webkit-text-fill-color: #e3cda1 !important; }
html body.page-assessment main .ae-senior .ae-head__no { color: #e3cda1 !important; }

/* ==========================================================================
   Assessment sections v2: editorial, to match the new headings.
   Hairlines instead of boxes, serif numbers, more air, fewer shadows.
   ========================================================================== */
html body.page-assessment main { --ae-line: #dfd4bf; --ae-ink: #142f23; --ae-soft: #49695b; }

/* 01 Scholastic: each band a ruled row, terms as open columns */
html body.page-assessment main .ae-band { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr) !important; padding-block: clamp(2.25rem, 4vw, 3rem) !important; border-top: 1px solid var(--ae-line) !important; }
html body.page-assessment main .ae-band__title { font-weight: 500 !important; font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important; }
html body.page-assessment main .ae-band__title::before { width: 1.75rem !important; height: 1px !important; background: #c19e59 !important; }
html body.page-assessment main .ae-terms { gap: clamp(1.5rem, 3.5vw, 3rem) !important; }
html body.page-assessment main .ae-term { padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; }
html body.page-assessment main .ae-term__head { align-items: flex-end !important; padding-bottom: 0.9rem; margin-bottom: 1rem !important; border-bottom: 1px solid var(--ae-ink); }
html body.page-assessment main .ae-term__name { font-weight: 500 !important; font-size: 1.5rem !important; }
html body.page-assessment main .ae-term__total b { font-size: 2.8rem !important; font-weight: 500; color: #a18142 !important; }
html body.page-assessment main .ae-bar { height: 0.5rem !important; gap: 4px !important; margin-bottom: 0.5rem !important; border-radius: 999px !important; }
html body.page-assessment main .ae-bar__part { min-width: 0 !important; font-size: 0 !important; border-radius: 999px; }
html body.page-assessment main .ae-term__parts > div { padding: 0.75rem 0 !important; border-bottom: 1px solid var(--ae-line) !important; }
html body.page-assessment main .ae-term__parts dd { font-family: var(--r5-serif); font-size: 1.2rem; font-weight: 500 !important; }
html body.page-assessment main .ae-term__sum { display: none !important; }
html body.page-assessment main .ae-details { gap: 0 !important; margin-top: 0.5rem; border-top: 1px solid var(--ae-line); }
html body.page-assessment main .ae-detail { padding: 1.5rem 1.5rem 0.5rem 0 !important; background: none !important; border-radius: 0 !important; }
html body.page-assessment main .ae-detail + .ae-detail { padding-left: 1.5rem !important; border-left: 1px solid var(--ae-line); }
html body.page-assessment main .ae-detail h4 { padding: 0 !important; font-family: var(--r5-serif); font-size: 1.1rem !important; font-weight: 600 !important; letter-spacing: 0; color: var(--ae-ink) !important; background: none !important; border: 0 !important; }
html body.page-assessment main .ae-detail li { color: var(--ae-soft) !important; }

/* 02 Grades IX and X: keep the dark band; open layout, big split numbers, internal parts as ruled columns */
html body.page-assessment main .ae-senior__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: clamp(2rem, 5vw, 4rem) !important; align-items: center !important; }
html body.page-assessment main .ae-rules { gap: 0 !important; }
html body.page-assessment main .ae-rules li { padding: 1.2rem 0 !important; font-size: 1.1rem !important; background: none !important; border: 0 !important; border-bottom: 1px solid rgb(255 255 255 / 0.14) !important; border-radius: 0 !important; }
html body.page-assessment main .ae-rules li:first-child { border-top: 1px solid rgb(255 255 255 / 0.14) !important; }
html body.page-assessment main .ae-rules span { width: auto !important; height: auto !important; font-family: var(--r5-serif); font-size: 1.1rem !important; font-style: italic; font-weight: 600; color: #e3cda1 !important; background: none !important; }
html body.page-assessment main .ae-split { min-height: 0 !important; align-items: flex-end; gap: 2rem; overflow: visible !important; border-radius: 0 !important; box-shadow: none !important; }
html body.page-assessment main .ae-split > div { padding: 0 0 1rem !important; background: none !important; border: 0 !important; border-bottom: 3px solid !important; border-radius: 0 !important; }
html body.page-assessment main .ae-split__exam { border-color: #e3cda1 !important; }
html body.page-assessment main .ae-split__internal { border-color: rgb(255 255 255 / 0.35) !important; min-width: 0 !important; color: #fff !important; }
html body.page-assessment main .ae-split b { font-size: clamp(4rem, 8vw, 6.5rem) !important; font-weight: 500 !important; }
html body.page-assessment main .ae-split__internal b { color: #fff !important; }
html body.page-assessment main .ae-split span { color: rgb(255 255 255 / 0.7) !important; }
html body.page-assessment main .ae-senior .ae-sub { margin-top: 0.5rem; font-weight: 500; font-style: italic; color: #e3cda1 !important; }
html body.page-assessment main .ae-internal { gap: 0 !important; margin-top: 1rem !important; border-top: 1px solid rgb(255 255 255 / 0.14); }
html body.page-assessment main .ae-internal li { padding: 1.75rem 1.5rem 0.5rem 0 !important; background: none !important; border-radius: 0 !important; transform: none !important; }
html body.page-assessment main .ae-internal li + li { padding-left: 1.5rem !important; border-left: 1px solid rgb(255 255 255 / 0.14); }
html body.page-assessment main .ae-internal__mark { padding: 0 !important; margin-bottom: 0.75rem !important; color: rgb(255 255 255 / 0.55) !important; background: none !important; }
html body.page-assessment main .ae-internal__mark b { font-size: 2.6rem !important; font-weight: 500; color: #e3cda1 !important; }
html body.page-assessment main .ae-internal h4 { font-weight: 500 !important; color: #fff !important; }
html body.page-assessment main .ae-internal p { color: rgb(255 255 255 / 0.65) !important; }

/* 03 Examinations: three ruled columns, no cards */
html body.page-assessment main .ae-exams__list { gap: clamp(1.5rem, 3.5vw, 3rem) !important; }
html body.page-assessment main .ae-exams__list li { padding: 1.5rem 0 0 !important; background: none !important; border-top: 1px solid var(--ae-ink); border-radius: 0 !important; box-shadow: none !important; }
html body.page-assessment main .ae-exams__list span { margin-bottom: 0.75rem !important; font-size: 1.1rem !important; font-style: italic; color: #a18142 !important; -webkit-text-fill-color: #a18142; background: none !important; }
html body.page-assessment main .ae-exams__list p { font-size: 1.05rem !important; line-height: 1.75 !important; }

/* 04 Grading: one continuous scale from A1 to E */
html body.page-assessment main .ae-grades { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; gap: 0 !important; overflow: hidden; border-radius: 1.25rem; }
html body.page-assessment main .ae-grades li { flex-direction: column !important; align-items: flex-start !important; justify-content: space-between !important; min-height: 11rem !important; padding: 1.25rem 1rem !important; border-radius: 0 !important; transform: none !important; }
html body.page-assessment main .ae-grades li:nth-child(1) { background: #c19e59 !important; }
html body.page-assessment main .ae-grades li:nth-child(2) { background: #cdaf73 !important; }
html body.page-assessment main .ae-grades li:nth-child(3) { background: #dac190 !important; }
html body.page-assessment main .ae-grades li:nth-child(4) { background: #e6d4b0 !important; }
html body.page-assessment main .ae-grades li:nth-child(5) { background: #f6e5c3 !important; }
html body.page-assessment main .ae-grades li:nth-child(6) { background: #f8eedb !important; }
html body.page-assessment main .ae-grades li:nth-child(7) { background: #faf5ec !important; }
html body.page-assessment main .ae-grades li.ae-grades__fail { background: #142f23 !important; }
html body.page-assessment main .ae-grades li:hover { filter: brightness(1.04); }
html body.page-assessment main .ae-grades__grade { font-size: clamp(1.9rem, 3vw, 2.6rem) !important; font-weight: 500 !important; }
html body.page-assessment main .ae-grades li.ae-grades__fail .ae-grades__grade { font-size: clamp(1.3rem, 2vw, 1.7rem) !important; }
html body.page-assessment main .ae-grades__range { align-items: flex-start !important; font-family: var(--r5-serif); font-size: 1.05rem; font-weight: 600 !important; }
html body.page-assessment main .ae-grades__range small { font-family: var(--f-sans, inherit); color: rgb(20 47 35 / 0.55) !important; }

/* 05 Beyond: open text beside the photo, two ruled columns underneath */
html body.page-assessment main .ae-enrich__photo { border-radius: 1.25rem !important; }
html body.page-assessment main .ae-pair { gap: clamp(2rem, 5vw, 4rem) !important; padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--ae-line); }
html body.page-assessment main .ae-card { padding: 0 !important; color: var(--ae-ink) !important; background: none !important; border-radius: 0 !important; }
html body.page-assessment main .ae-card .ae-sub { color: var(--ae-ink) !important; font-weight: 500 !important; }
html body.page-assessment main .ae-card p { color: #1c3e2e !important; }
html body.page-assessment main .ae-areas { gap: 0 !important; }
html body.page-assessment main .ae-areas li { padding: 0.9rem 0 !important; background: none !important; border-top: 1px solid var(--ae-line); border-radius: 0 !important; }
html body.page-assessment main .ae-areas span { width: auto !important; height: auto !important; font-family: var(--r5-serif); font-style: italic; color: #a18142 !important; background: none !important; }
html body.page-assessment main .ae-ticks { gap: 0 1.5rem !important; }
html body.page-assessment main .ae-ticks li { padding: 0.75rem 0 0.75rem 1.6rem !important; color: var(--ae-ink) !important; border-top: 1px solid var(--ae-line); }
html body.page-assessment main .ae-ticks li::before { top: 0.95rem !important; width: 0.9rem !important; height: 0.9rem !important; font-size: 0 !important; background: none !important; border: 1.5px solid #c19e59; }
html body.page-assessment main .ae-ticks li::after { content: ""; position: absolute; left: 0.3rem; top: 1.25rem; width: 0.3rem; height: 0.3rem; background: #c19e59; border-radius: 50%; }
html body.page-assessment main .ae-card__note { color: #49695b !important; background: #fff !important; }

@media (max-width: 1100px) {
    html body.page-assessment main .ae-grades { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    html body.page-assessment main .ae-internal { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    html body.page-assessment main .ae-internal li:nth-child(3) { padding-left: 0 !important; border-left: 0; }
}
@media (max-width: 960px) {
    html body.page-assessment main :is(.ae-band, .ae-senior__top) { grid-template-columns: 1fr !important; }
    html body.page-assessment main .ae-detail + .ae-detail { padding-left: 0 !important; border-left: 0; border-top: 1px solid var(--ae-line); }
}
@media (max-width: 640px) {
    html body.page-assessment main .ae-grades { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    html body.page-assessment main .ae-grades li { min-height: 7.5rem !important; }
    html body.page-assessment main .ae-internal { grid-template-columns: 1fr !important; }
    html body.page-assessment main .ae-internal li + li { padding-left: 0 !important; border-left: 0; border-top: 1px solid rgb(255 255 255 / 0.14); }
}

/* Assessment v3: Scholastic as score cards with a ring; Examinations as raised cards. #r5 lifts these over older ID rules */
/* Scholastic */
html body.page-assessment main :is(#r5, #scholastic) .ae-term { display: grid !important; grid-template-columns: 8.5rem 1fr; grid-template-areas: "ring head" "ring parts"; column-gap: 1.75rem; align-items: center; padding: 1.75rem !important; background: #faf5ec !important; border: 0 !important; border-radius: 1.75rem !important; transition: transform 0.4s var(--s-ease), box-shadow 0.4s ease !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-term:hover { transform: translateY(-4px) !important; box-shadow: 0 30px 60px -45px rgb(20 47 35 / 0.6) !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-term__head { grid-area: head; display: block !important; margin: 0 0 0.5rem !important; padding: 0 !important; border: 0 !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-term__name { font-size: 1.45rem !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-term__total { display: none !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-bar { grid-area: ring; position: relative; display: grid !important; place-items: center; width: 8.5rem; height: 8.5rem !important; margin: 0 !important; border-radius: 50% !important; background: conic-gradient(#c19e59 0 calc(var(--p) * 1%), #1c3e2e calc(var(--p) * 1%) 100%) !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-bar::before { content: ""; position: absolute; inset: 0.75rem; background: #faf5ec; border-radius: 50%; }
html body.page-assessment main :is(#r5, #scholastic) .ae-bar::after { content: attr(data-total); position: relative; font-family: var(--r5-serif); font-size: 2.3rem; font-weight: 600; color: #142f23; }
html body.page-assessment main :is(#r5, #scholastic) .ae-bar__part { display: none !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-term__parts { grid-area: parts; }
html body.page-assessment main :is(#r5, #scholastic) .ae-term__parts > div { padding: 0.6rem 0 !important; border-bottom: 1px solid #ead9b9 !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-term__parts > div:last-child { border-bottom: 0 !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-term__sum { display: flex !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-term__sum dd { font-family: var(--r5-serif); font-size: 1.2rem !important; color: #a18142 !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-dot { width: 0.75rem !important; height: 0.75rem !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-details { gap: 1rem !important; border-top: 0 !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-detail, html body.page-assessment main :is(#r5, #scholastic) .ae-detail + .ae-detail { padding: 1.5rem !important; background: #fff !important; border: 1px solid #ead9b9 !important; border-radius: 1.25rem !important; }
html body.page-assessment main :is(#r5, #scholastic) .ae-detail h4 { display: block; margin-bottom: 0.75rem !important; padding-bottom: 0.75rem !important; border-bottom: 2px solid #c19e59 !important; }

/* Examinations */
html body.page-assessment main :is(#r5, #examinations) .ae-head .eyebrow, html body.page-assessment main :is(#r5, #scholastic, #grading, #beyond, #senior) .ae-head .eyebrow { width: auto !important; background: none !important; border: 0 !important; }
html body.page-assessment main :is(#r5, #examinations) .ae-exams__list { gap: 1.25rem !important; counter-reset: none; }
html body.page-assessment main :is(#r5, #examinations) .ae-exams__list li { position: relative; display: flex !important; flex-direction: column; padding: 2.75rem 1.75rem 1.9rem !important; margin-top: 1.75rem; background: #fff !important; border: 0 !important; border-radius: 1.5rem !important; box-shadow: 0 30px 60px -48px rgb(20 47 35 / 0.6) !important; transition: transform 0.4s var(--s-ease); }
html body.page-assessment main :is(#r5, #examinations) .ae-exams__list li:hover { transform: translateY(-5px); }
html body.page-assessment main :is(#r5, #examinations) .ae-exams__list li::after { content: ""; position: absolute; left: 1.75rem; right: 1.75rem; bottom: 0; height: 3px; background: linear-gradient(90deg, #e3cda1, #c19e59); border-radius: 3px 3px 0 0; }
html body.page-assessment main :is(#r5, #examinations) :is(#r5, .ae-exams__list) span { position: absolute; top: -1.75rem; left: 1.75rem; display: grid !important; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 !important; font-size: 1.15rem !important; font-style: normal !important; font-weight: 600; color: #e3cda1 !important; -webkit-text-fill-color: #e3cda1 !important; background: linear-gradient(140deg, #254f3c, #142f23) !important; border-radius: 1.1rem; box-shadow: 0 14px 28px -14px rgb(20 47 35 / 0.8); }
html body.page-assessment main :is(#r5, #examinations) .ae-exams__list p { color: #1c3e2e !important; }

/* Discipline ticks: one clean gold check */
html body.page-assessment main :is(#r5, #beyond) .ae-ticks li::before { content: "\2713" !important; top: 0.8rem !important; width: 1.15rem !important; height: 1.15rem !important; font-size: 0.65rem !important; color: #142f23 !important; background: linear-gradient(135deg, #e3cda1, #c19e59) !important; border: 0 !important; }
html body.page-assessment main :is(#r5, #beyond) .ae-ticks li::after { display: none !important; }
@media (max-width: 640px) {
    html body.page-assessment main :is(#r5, #scholastic) .ae-term { grid-template-columns: 6.5rem 1fr; column-gap: 1.1rem; padding: 1.25rem !important; }
    html body.page-assessment main :is(#r5, #scholastic) .ae-bar { width: 6.5rem; height: 6.5rem !important; }
    html body.page-assessment main :is(#r5, #scholastic) .ae-bar::after { font-size: 1.8rem; }
}
html body.page-assessment main :is(#r5, #examinations) .ae-exams__list li { overflow: visible !important; }

/* Scholastic Area v4 (sx-*): one panel per grade band, terms as marks stacks */
html body.page-assessment main :is(#r5, #scholastic) .sx-band { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); margin-top: clamp(1.25rem, 3vw, 2rem); overflow: hidden; background: #fff; border: 1px solid #ead9b9; border-radius: 2rem; box-shadow: 0 40px 80px -60px rgb(20 47 35 / 0.55); }
html body.page-assessment main :is(#r5, #scholastic) .sx-band__side { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 18rem; padding: clamp(1.75rem, 3.5vw, 2.75rem); overflow: hidden; color: #fff; background: radial-gradient(22rem 16rem at 100% 0%, rgb(193 158 89 / 0.3), transparent 65%), linear-gradient(160deg, #1c3e2e, #10251c); }
html body.page-assessment main :is(#r5, #scholastic) .sx-band__side::before { content: ""; position: absolute; right: -3rem; top: -3rem; width: 11rem; height: 11rem; border: 1px solid rgb(227 205 161 / 0.25); border-radius: 50%; box-shadow: 0 0 0 1.5rem rgb(227 205 161 / 0.05); }
html body.page-assessment main :is(#r5, #scholastic) .sx-band__kicker { margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #e3cda1; }
html body.page-assessment main :is(#r5, #scholastic) .sx-band__title { margin: 0; font-family: var(--r5-serif); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 500; line-height: 1.05; color: #fff !important; }
html body.page-assessment main :is(#r5, #scholastic) .sx-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); padding: clamp(1.5rem, 3vw, 2.25rem); }
html body.page-assessment main :is(#r5, #scholastic) .sx-term { display: flex; flex-direction: column; }
html body.page-assessment main :is(#r5, #scholastic) .sx-term__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; }
html body.page-assessment main :is(#r5, #scholastic) .sx-term__name { margin: 0; font-family: var(--r5-serif); font-size: 1.35rem; font-weight: 600; color: #142f23 !important; }
html body.page-assessment main :is(#r5, #scholastic) .sx-term__when { margin: 0; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #628e7a; }
html body.page-assessment main :is(#r5, #scholastic) .sx-stack { display: flex; flex-direction: column-reverse; gap: 4px; height: 14rem; overflow: hidden; border-radius: 1.25rem; }
html body.page-assessment main :is(#r5, #scholastic) .sx-stack__part { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2.9rem; padding: 0 1.1rem; transition: filter 0.3s ease; }
html body.page-assessment main :is(#r5, #scholastic) .sx-stack__part:hover { filter: brightness(1.06); }
html body.page-assessment main :is(#r5, #scholastic) .sx-stack__part--0 { color: #142f23; background: linear-gradient(120deg, #e3cda1, #c19e59); }
html body.page-assessment main :is(#r5, #scholastic) .sx-stack__part--1 { align-items: flex-end; padding-bottom: 1rem; color: #fff; background: linear-gradient(160deg, #254f3c, #142f23); }
html body.page-assessment main :is(#r5, #scholastic) .sx-stack__label { font-size: 0.9rem; font-weight: 700; line-height: 1.25; }
html body.page-assessment main :is(#r5, #scholastic) .sx-stack__mark { font-family: var(--r5-serif); font-size: 1.6rem; font-weight: 600; line-height: 1; }
html body.page-assessment main :is(#r5, #scholastic) .sx-stack__part--1 .sx-stack__mark { font-size: clamp(2.6rem, 4vw, 3.4rem); color: #e3cda1; }
html body.page-assessment main :is(#r5, #scholastic) .sx-term__total { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.9rem 0 0; font-size: 0.85rem; font-weight: 700; color: #49695b; }
html body.page-assessment main :is(#r5, #scholastic) .sx-term__total span { flex: 1; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #628e7a; }
html body.page-assessment main :is(#r5, #scholastic) .sx-term__total b { font-family: var(--r5-serif); font-size: 1.5rem; font-weight: 600; color: #a18142; }
html body.page-assessment main :is(#r5, #scholastic) .sx-details { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #faf5ec; border-top: 1px solid #ead9b9; }
html body.page-assessment main :is(#r5, #scholastic) .sx-detail { padding: clamp(1.4rem, 3vw, 2rem); }
html body.page-assessment main :is(#r5, #scholastic) .sx-detail + .sx-detail { border-left: 1px solid #ead9b9; }
html body.page-assessment main :is(#r5, #scholastic) .sx-detail h4 { margin: 0 0 0.9rem; font-family: var(--r5-serif); font-size: 1.15rem; font-weight: 600; color: #142f23 !important; }
html body.page-assessment main :is(#r5, #scholastic) .sx-detail ul { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
html body.page-assessment main :is(#r5, #scholastic) .sx-detail li { position: relative; padding: 0 0 0 1.1rem !important; font-size: 0.9rem; line-height: 1.55; color: #1c3e2e !important; background: none !important; border: 0 !important; }
html body.page-assessment main :is(#r5, #scholastic) .sx-detail li::before { content: "" !important; position: absolute; left: 0; top: 0.55rem; width: 0.4rem; height: 0.4rem; background: #c19e59 !important; border-radius: 50%; }
@media (max-width: 960px) {
    html body.page-assessment main :is(#r5, #scholastic) .sx-band { grid-template-columns: 1fr; }
    html body.page-assessment main :is(#r5, #scholastic) .sx-band__side { min-height: 0; }
    html body.page-assessment main :is(#r5, #scholastic) .sx-details { grid-template-columns: 1fr; }
    html body.page-assessment main :is(#r5, #scholastic) .sx-detail + .sx-detail { border-left: 0; border-top: 1px solid #ead9b9; }
}
@media (max-width: 560px) {
    html body.page-assessment main :is(#r5, #scholastic) .sx-terms { grid-template-columns: 1fr; }
    html body.page-assessment main :is(#r5, #scholastic) .sx-stack { height: 11rem; }
}

/* ==========================================================================
   Vision & Mission v3 (vm-*): new markup, site palette only
   ========================================================================== */
html body:not(.page-home) main > section:is(#r5, .vm-vision, .vm-pillars, .vm-mission, .vm-motto) { padding-block: clamp(4.5rem, 9vw, 7.5rem) !important; }
html body:not(.page-home) main > section.vm-vision:is(#r5, .vm-vision), html body:not(.page-home) main > section.vm-motto:is(#r5, .vm-motto) { color: #142f23 !important; background: #fff !important; }
html body:not(.page-home) main > section.vm-mission:is(#r5, .vm-mission) { color: #142f23 !important; background: #faf5ec !important; }
html body:not(.page-home) main > section.vm-pillars:is(#r5, .vm-pillars) { padding-block: clamp(3.5rem, 6vw, 5rem) !important; color: #fff !important; background: var(--r5-dark) !important; }

/* shared label: number, gold rule, small caps */
.vm-label { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.5rem; font-family: var(--f-sans, inherit); font-size: 0.75rem !important; font-weight: 800 !important; letter-spacing: 0.2em; text-transform: uppercase; color: #628e7a !important; }
.vm-label span { font-family: var(--r5-serif); font-size: 1rem; font-style: italic; font-weight: 600; letter-spacing: 0; color: #a18142; }
.vm-label::after { content: ""; order: 1; width: 3rem; height: 1px; background: #c19e59; }
.vm-label span { order: 0; }
.vm-label { flex-direction: row; }

/* 1. Vision */
.vm-vision__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.vm-vision__photo { position: relative; margin: 0 1.25rem 1.25rem 0; }
.vm-vision__photo::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; background: #faf5ec; border-radius: 2rem; }
.vm-vision__photo :is(picture, img) { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2rem; }
.vm-vision__text { position: relative; margin: 0; padding: 0; border: 0; }
.vm-vision__text::before { content: "\201C"; display: block; height: 3.5rem; font-family: var(--r5-serif); font-size: 7rem; line-height: 1; color: #c19e59; }
.vm-vision__text p { margin: 0; font-family: var(--r5-serif); font-size: clamp(1.45rem, 2.5vw, 2.15rem); font-weight: 400; line-height: 1.45; letter-spacing: -0.01em; color: #142f23 !important; }

/* 2. Pillars */
.vm-pillars__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.vm-pillars__list li { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.5rem clamp(0.75rem, 1.6vw, 1.5rem); border-left: 1px solid rgb(255 255 255 / 0.14); transition: background 0.4s ease; }
.vm-pillars__list li:first-child { border-left: 0; padding-left: 0; }
.vm-pillars__no { margin-bottom: 1.25rem; font-family: var(--r5-serif); font-size: 0.95rem; font-style: italic; color: #e3cda1; }
.vm-pillars__a { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255 255 255 / 0.6); }
.vm-pillars__b { font-family: var(--r5-serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; line-height: 1.1; color: #fff; text-transform: capitalize; }
.vm-pillars__list li:hover .vm-pillars__b { color: #e3cda1; }

/* 3. Mission */
.vm-mission__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.vm-mission__title { margin: 0; font-family: var(--r5-serif); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; color: #142f23; }
.vm-mission__photo { margin: 0; overflow: hidden; border-radius: 2rem; aspect-ratio: 16 / 9; }
.vm-mission__photo :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.vm-aims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.vm-aims > li { display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem 1.6rem 1.75rem; background: #fff; border-radius: 1.5rem; transition: transform 0.4s var(--s-ease), box-shadow 0.4s ease; }
.vm-aims > li:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -45px rgb(20 47 35 / 0.6); }
.vm-aims__no { font-family: var(--r5-serif); font-size: 2.2rem; font-weight: 500; line-height: 1; color: transparent; background: linear-gradient(150deg, #e3cda1, #a18142); -webkit-background-clip: text; background-clip: text; }
.vm-aims p { margin: 0; font-size: 1.02rem; line-height: 1.6; color: #1c3e2e; }
.vm-aims > li.vm-aims__last { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.75rem; row-gap: 1.5rem; align-items: center; padding: clamp(1.75rem, 3.5vw, 2.75rem); color: #fff; background: radial-gradient(30rem 18rem at 100% 0%, rgb(193 158 89 / 0.25), transparent 62%), linear-gradient(160deg, #1c3e2e, #10251c); }
.vm-aims__last .vm-aims__no { font-size: 3rem; }
.vm-aims__last p { font-family: var(--r5-serif); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; color: #fff; }
.vm-outcomes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.vm-outcomes li { padding: 1.1rem 1.25rem; font-weight: 700; line-height: 1.35; color: #142f23; background: linear-gradient(120deg, #e3cda1, #c19e59); border-radius: 1rem; }

/* 4. Motto */
.vm-motto__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.vm-motto__title { display: flex; flex-direction: column; margin: 0; font-family: var(--r5-serif); font-size: clamp(3rem, 7vw, 5.75rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.025em; color: #142f23; }
.vm-motto__title span:last-child { font-style: italic; color: #a18142; }
.vm-motto__text { margin: 0 0 1.75rem; font-size: 1.05rem; line-height: 1.75; color: #1c3e2e; }
.vm-quote { position: relative; margin: 0; padding: 2rem 1.75rem 1.6rem; background: #faf5ec; border-radius: 1.5rem; }
.vm-quote__mark { position: absolute; top: -1.4rem; left: 1.5rem; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; padding-top: 0.9rem; font-family: var(--r5-serif); font-size: 3rem; line-height: 1; color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); border-radius: 50%; }
.vm-quote blockquote { margin: 0; padding: 0; font-family: var(--r5-serif); font-size: 1.35rem; font-style: italic; line-height: 1.4; color: #142f23; border: 0; background: none; }
.vm-quote figcaption { margin-top: 0.9rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #628e7a; }

@media (max-width: 1100px) {
    .vm-pillars__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
    .vm-pillars__list li:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 960px) {
    .vm-vision__grid, .vm-mission__top, .vm-motto__grid { grid-template-columns: 1fr; }
    .vm-vision__photo :is(picture, img) { aspect-ratio: 4 / 3; }
    .vm-aims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .vm-pillars__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vm-pillars__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
    .vm-pillars__list li:nth-child(4) { border-left: 1px solid rgb(255 255 255 / 0.14); padding-left: 0.75rem; }
    .vm-aims, .vm-outcomes { grid-template-columns: 1fr; }
    .vm-aims > li.vm-aims__last { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .vm-aims > li { transition: none; transform: none !important; } }

/* Vision statement: smaller, easier to read */
html body main .vm-vision .vm-vision__text p { font-size: clamp(1.2rem, 1.7vw, 1.55rem) !important; line-height: 1.6 !important; }
html body main .vm-vision .vm-vision__text::before { height: 2.75rem; font-size: 5.5rem; }

/* Our Mission v2 (mi-*): sticky side + ruled aims + dark closing panel */
html body:not(.page-home) main > section.mi-mission:is(#r5, .mi-mission) { padding-block: clamp(4.5rem, 9vw, 7.5rem) !important; color: #142f23 !important; background: #faf5ec !important; }
.mi-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.mi-side { position: sticky; top: 8rem; }
.mi-title { margin: 0 0 2rem; font-family: var(--r5-serif); font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; color: #142f23; }
.mi-photo { position: relative; margin: 0; }
.mi-photo :is(picture, img) { display: block; width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 1.75rem; }
.mi-photo__count { position: absolute; right: -1rem; bottom: -1.25rem; display: grid; place-items: center; align-content: center; width: 7rem; height: 7rem; color: #142f23; background: linear-gradient(140deg, #e3cda1, #c19e59); border: 6px solid #faf5ec; border-radius: 50%; }
.mi-photo__count b { font-family: var(--r5-serif); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.mi-photo__count span { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.mi-aims { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.mi-aims li { display: grid; grid-template-columns: 4rem 1fr; align-items: baseline; gap: 1rem; padding: 1.35rem 0.5rem; border-top: 1px solid #dfd4bf; transition: background 0.3s ease, padding 0.3s ease; }
.mi-aims li:last-child { border-bottom: 1px solid #dfd4bf; }
.mi-aims li:hover { padding-left: 1rem; background: #fff; }
.mi-aims__no { font-family: var(--r5-serif); font-size: 1.6rem; font-style: italic; font-weight: 500; line-height: 1; color: #a18142; }
.mi-aims p { margin: 0; font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.55; color: #142f23; }
.mi-final { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; margin-top: 2rem; padding: clamp(1.75rem, 3.5vw, 2.5rem); color: #fff; background: radial-gradient(28rem 16rem at 100% 0%, rgb(193 158 89 / 0.25), transparent 62%), linear-gradient(160deg, #1c3e2e, #10251c); border-radius: 1.75rem; }
.mi-final .mi-aims__no { color: #e3cda1; font-size: 2rem; }
.mi-final__text { margin: 0; font-family: var(--r5-serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; color: #fff; }
.mi-outcomes { grid-column: 1 / -1; display: grid; gap: 0.6rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.mi-outcomes li { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; font-family: var(--r5-serif); font-size: 1.15rem; font-weight: 500; color: #fff; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.12); border-radius: 1rem; transition: border-color 0.3s ease, background 0.3s ease; }
.mi-outcomes li:hover { border-color: #c19e59; background: rgb(193 158 89 / 0.12); }
.mi-outcomes span { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; font-family: var(--f-sans, inherit); font-size: 0.78rem; font-weight: 800; color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); border-radius: 50%; }
@media (max-width: 960px) {
    .mi-grid { grid-template-columns: 1fr; }
    .mi-side { position: static; }
    .mi-photo__count { right: 1rem; }
}
@media (max-width: 560px) {
    .mi-aims li, .mi-final { grid-template-columns: 2.75rem 1fr; }
    .mi-photo__count { width: 5.5rem; height: 5.5rem; }
    .mi-photo__count b { font-size: 1.9rem; }
}

/* Vision qualities moved inside the Vision section, under the statement: light 3 x 2 grid */
.vm-vision .vm-pillars__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2.25rem; border-top: 1px solid #dfd4bf; }
.vm-vision .vm-pillars__list li, .vm-vision .vm-pillars__list li:first-child { padding: 1.1rem 1.1rem 1.1rem 0; border-left: 0; border-bottom: 1px solid #dfd4bf; }
.vm-vision .vm-pillars__list li:not(:nth-child(3n+1)) { padding-left: 1.1rem; border-left: 1px solid #dfd4bf; }
.vm-vision .vm-pillars__no { margin-bottom: 0.6rem; color: #a18142; }
.vm-vision .vm-pillars__a { color: #628e7a; }
.vm-vision .vm-pillars__b { font-size: clamp(1.25rem, 1.8vw, 1.6rem); color: #142f23; }
.vm-vision .vm-pillars__list li:hover .vm-pillars__b { color: #a18142; }
@media (max-width: 560px) {
    .vm-vision .vm-pillars__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vm-vision .vm-pillars__list li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
    .vm-vision .vm-pillars__list li:nth-child(even) { padding-left: 1.1rem; border-left: 1px solid #dfd4bf; }
}

/* Founder / Patron quote v2: open, left-aligned editorial quote with a large faded mark and a gold side rule */
html body:not(.page-home) main > section.fx-quote:is(#r5, .fx-quote):not(.h-hero) { padding-block: clamp(5rem, 10vw, 8rem) !important; background: #faf5ec !important; overflow: hidden; }
html body main .fx-quote .fx-quote__inner { position: relative; display: grid !important; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); max-width: 64rem !important; padding: 0 !important; text-align: left !important; background: none !important; border-radius: 0 !important; box-shadow: none !important; }
html body main .fx-quote .fx-quote__inner::before { content: "" !important; position: static !important; grid-row: 1 / span 3; width: 3px; height: auto; inset: auto !important; border: 0 !important; border-radius: 3px !important; background: linear-gradient(180deg, #e3cda1, #a18142) !important; }
html body main .fx-quote .fx-quote__mark { position: absolute !important; top: -4.5rem !important; right: -1rem !important; left: auto !important; transform: none !important; width: auto !important; height: auto !important; padding: 0 !important; font-size: clamp(14rem, 24vw, 20rem) !important; line-height: 1 !important; color: rgb(193 158 89 / 0.16) !important; background: none !important; box-shadow: none !important; pointer-events: none; }
html body main .fx-quote .fx-quote__label { grid-column: 2; display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.5rem !important; color: #628e7a !important; }
html body main .fx-quote .fx-quote__label::after { content: ""; width: 3rem; height: 1px; background: #c19e59; }
html body main .fx-quote .fx-quote__text { grid-column: 2; position: relative; font-size: clamp(2.4rem, 5.2vw, 4.4rem) !important; font-style: normal !important; font-weight: 500 !important; line-height: 1.08 !important; letter-spacing: -0.02em; color: #142f23 !important; }
html body main .fx-quote .fx-quote__cite { grid-column: 2; display: flex !important; margin: 2rem 0 0 !important; font-family: var(--r5-serif) !important; font-size: 1.15rem !important; font-style: italic; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; color: #a18142 !important; }
html body main .fx-quote .fx-quote__cite::before { content: "\2014" !important; width: auto !important; height: auto !important; margin-right: 0.5rem; background: none !important; }
html body main .fx-quote .fx-quote__cite::after { display: none !important; }
html body main .fx-quote .fx-quote__label { justify-content: flex-start !important; text-align: left !important; justify-self: start; }

/* Founder / Patron quote v3: dark rounded panel inside the cream band; gold mark disc on the left, quote on the right, soft gold rings */
html body main .fx-quote .fx-quote__inner { grid-template-columns: auto minmax(0, 1fr) !important; align-items: center; column-gap: clamp(1.5rem, 4vw, 3.5rem) !important; max-width: 68rem !important; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 5vw, 4.5rem) !important; overflow: hidden; background: radial-gradient(26rem 18rem at 100% 0%, rgb(193 158 89 / 0.28), transparent 65%), radial-gradient(20rem 14rem at 0% 100%, rgb(193 158 89 / 0.12), transparent 70%), linear-gradient(150deg, #1c3e2e 0%, #10251c 100%) !important; border-radius: 2rem !important; box-shadow: 0 50px 90px -55px rgb(20 47 35 / 0.8) !important; }
html body main .fx-quote .fx-quote__inner::before { content: "" !important; position: absolute !important; inset: auto -6rem -8rem auto !important; grid-row: auto; width: 20rem !important; height: 20rem !important; background: none !important; border: 1px solid rgb(227 205 161 / 0.18) !important; border-radius: 50% !important; box-shadow: 0 0 0 2.5rem rgb(227 205 161 / 0.04), 0 0 0 5rem rgb(227 205 161 / 0.03); }
html body main .fx-quote .fx-quote__mark { position: relative !important; inset: auto !important; grid-row: 1 / span 3; align-self: start; display: grid !important; place-items: center; width: clamp(4.5rem, 8vw, 6rem) !important; height: clamp(4.5rem, 8vw, 6rem) !important; padding-top: clamp(1.4rem, 2.6vw, 2rem) !important; font-size: clamp(4rem, 7vw, 5.5rem) !important; color: #142f23 !important; background: linear-gradient(135deg, #e3cda1, #c19e59) !important; border-radius: 50% !important; box-shadow: 0 0 0 8px rgb(193 158 89 / 0.15), 0 20px 40px -18px rgb(0 0 0 / 0.6) !important; }
html body main .fx-quote .fx-quote__label { position: relative; color: #e3cda1 !important; margin-bottom: 1rem !important; }
html body main .fx-quote .fx-quote__text { font-size: clamp(1.8rem, 3.4vw, 2.75rem) !important; line-height: 1.18 !important; color: #fff !important; }
html body main .fx-quote .fx-quote__cite { position: relative; margin-top: 1.5rem !important; font-size: 1.05rem !important; color: #e3cda1 !important; }
@media (max-width: 640px) {
    html body main .fx-quote .fx-quote__inner { grid-template-columns: 1fr !important; row-gap: 0; }
    html body main .fx-quote .fx-quote__mark { grid-row: auto; margin-bottom: 1.5rem; }
    html body main .fx-quote :is(.fx-quote__label, .fx-quote__text, .fx-quote__cite) { grid-column: 1 !important; }
}

/* More facilities: horizontal slider (scroll-snap) with arrow buttons and a progress track */
html body.page-facility main .fc-more__list { display: flex !important; grid-template-columns: none !important; gap: 1rem !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 0.25rem !important; }
html body.page-facility main .fc-more__list::-webkit-scrollbar { display: none; }
html body.page-facility main .fc-more__list > li { flex: 0 0 calc((100% - 4rem) / 5); scroll-snap-align: start; }
.fc-slider__nav { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.fc-slider__btn { display: grid; place-items: center; flex: none; width: 3.2rem; height: 3.2rem; padding: 0; color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); border: 0; border-radius: 50%; cursor: pointer; transition: transform 0.3s ease, opacity 0.3s ease; }
.fc-slider__btn:hover:not(:disabled) { transform: scale(1.08); }
.fc-slider__btn:disabled { opacity: 0.3; cursor: default; }
.fc-slider__btn:focus-visible { outline: 2px solid #e3cda1; outline-offset: 3px; }
.fc-slider__btn svg { width: 1.2rem; height: 1.2rem; }
.fc-slider__track { flex: 1; height: 3px; overflow: hidden; background: rgb(255 255 255 / 0.15); border-radius: 3px; }
.fc-slider__track span { display: block; height: 100%; background: #e3cda1; border-radius: 3px; transition: margin-left 0.2s linear; }
@media (max-width: 1100px) { html body.page-facility main .fc-more__list > li { flex-basis: calc((100% - 2rem) / 3); } }
@media (max-width: 720px) { html body.page-facility main .fc-more__list > li { flex-basis: 70%; } }

/* Gradient-filled words: the fill stops at the line box, which cut off descenders (g, y, p). Pad the box; the negative margin keeps spacing the same */
html body :is(h1, h2, h3, .h2, .h-display, .hn-title, .pg-title) :is(.hl, span, em) { padding-bottom: 0.16em; margin-bottom: -0.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html body :is(h1, h2, h3, .h2, .h-display, .hn-title, .pg-title) { overflow: visible !important; }

/* MSFS province: dark text on the cream quote card (an older white-text rule was winning); readable stat notes */
html body main section.s-province:is(#r5, .s-province) p.s-province__provincial:is(#r5, p), html body main section.s-province:is(#r5, .s-province) p.s-province__provincial:is(#r5, p) * { color: #1c3e2e !important; -webkit-text-fill-color: #1c3e2e !important; opacity: 1 !important; text-align: left !important; }
html body main section.s-province:is(#r5, .s-province) .s-stats:is(#r5, dl) small { color: rgb(255 255 255 / 0.75) !important; opacity: 1 !important; }

/* Vision page: smaller headlines */
html body main .vm-motto .vm-motto__title { font-size: clamp(2.2rem, 4.2vw, 3.5rem) !important; line-height: 1.08 !important; }
html body main .mi-mission .mi-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem) !important; line-height: 1.1 !important; }

/* Motto: the founder's quote full width under the motto columns */
html body main .vm-motto .vm-quote--wide { width: 100%; margin: clamp(3rem, 5vw, 4rem) 0 0; padding: clamp(2.25rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem) clamp(1.75rem, 3vw, 2.25rem); text-align: center; }
html body main .vm-motto .vm-quote--wide .vm-quote__mark { left: 50%; transform: translateX(-50%); }
html body main .vm-motto .vm-quote--wide blockquote { font-size: clamp(1.4rem, 2.4vw, 2rem); }

/* ==========================================================================
   Round 7 (nx-*): Course of Study, What is studied, Council, Co-Curricular, Contact day,
   gallery year tabs, calendar months
   ========================================================================== */
html body:not(.page-home) main > section:is(#r5, .nx-board, .nx-ledger, .nx-council, .nx-teams, .nx-cca-intro, .nx-offer, .nx-groups, .nx-day) { padding-block: clamp(4rem, 7vw, 6.5rem) !important; color: #142f23 !important; background: #fff !important; }
html body:not(.page-home) main > section:is(#r5, .nx-ledger, .nx-day, .nx-groups) { background: #faf5ec !important; }
html body:not(.page-home) main > section:is(#r5, .nx-teams, .nx-offer) { color: #fff !important; background: linear-gradient(155deg, #10251c, #1c3e2e) !important; }
.nx-label { margin: 0 0 0.8rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #a18142 !important; }
.nx-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
html body main .nx-title { margin: 0; font-family: var(--r5-serif) !important; font-size: clamp(1.9rem, 3.2vw, 2.7rem) !important; font-weight: 500 !important; line-height: 1.12 !important; color: #142f23 !important; }
html body main .nx-teams .nx-title { color: #fff !important; }

/* Course of Study */
html body:not(.page-home) main > section.nx-board:is(#r5, .nx-board) { padding-block: clamp(3.5rem, 6vw, 5rem) !important; }
.nx-board__inner { max-width: 52rem; text-align: center; }
.nx-seal { display: grid; place-items: center; width: 6rem; height: 6rem; margin: 0 auto 1.5rem; font-family: var(--r5-serif); font-size: 1.2rem; font-weight: 600; color: #142f23; background: linear-gradient(140deg, #e3cda1, #c19e59); border-radius: 50%; outline: 1px dashed #a18142; outline-offset: 8px; }
.nx-board__text { margin: 0; font-family: var(--r5-serif); font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.5; color: #142f23; }
.nx-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.nx-jump a { padding: 0.5rem 1.1rem; font-size: 0.85rem; font-weight: 700; color: #142f23; text-decoration: none; border: 1px solid #cfc1a4; border-radius: 999px; transition: background 0.25s ease, color 0.25s ease; }
.nx-jump a:hover, .nx-jump a:focus-visible { color: #fff; background: #142f23; }
.nx-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.25rem, 4vw, 3.5rem); margin-top: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; border-radius: 1.5rem; scroll-margin-top: 8rem; }
.nx-row__no { font-family: var(--r5-serif); font-size: 3.2rem; line-height: 1; color: #d9cbb0; }
.nx-row__side h3 { margin: 0.75rem 0 0.35rem; font-family: var(--r5-serif); font-size: 1.5rem; font-weight: 600; color: #142f23 !important; }
.nx-row__side p { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #628e7a; }
.nx-lang { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.6rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.nx-lang li { padding: 0.8rem 1rem !important; font-size: 0.9rem; font-weight: 700; line-height: 1.4; color: #fff !important; background: #1c3e2e !important; border-radius: 0.9rem; }
.nx-subjects { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.nx-subjects li { padding: 0.7rem 1.15rem !important; font-weight: 600; color: #142f23 !important; background: #faf5ec !important; border: 1px solid #ead9b9; border-radius: 999px; transition: background 0.25s ease, transform 0.25s ease; }
.nx-subjects li:hover { background: #e3cda1 !important; transform: translateY(-2px); }

/* What is studied (programme pages): open index, no image, no card */
html body:not(.page-home) main > section.pg-schemes:is(#r5, .pg-schemes) { color: #142f23 !important; background: #faf5ec !important; }
html body main section.pg-schemes:is(#r5, .pg-schemes) :is(h2, .pg-title) { color: #142f23 !important; font-family: var(--r5-serif) !important; font-size: clamp(1.9rem, 3.2vw, 2.7rem) !important; font-weight: 500 !important; }
html body main section.pg-schemes:is(#r5, .pg-schemes) :is(h2, .pg-title) :is(span, em, .hl) { background: none !important; color: #a18142 !important; -webkit-text-fill-color: #a18142 !important; }
html body main section.pg-schemes:is(#r5, .pg-schemes) .eyebrow { color: #a18142 !important; background: #fff !important; border-color: #ead9b9 !important; }
html body main .pg-schemes .pg-tabs__list { background: #fff !important; border-color: #ead9b9 !important; }
html body main .pg-schemes .pg-tabs__list button { color: #49695b !important; }
html body main .pg-schemes .pg-tabs__list button[aria-selected="true"] { color: #fff !important; background: #142f23 !important; }
html body main .pg-stage.nx-stage:not([hidden]) { display: block !important; margin-top: 1.5rem; padding: 0 !important; overflow: visible; background: none !important; border-radius: 0 !important; box-shadow: none !important; }
.nx-stage__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid #142f23; }
html body main .nx-stage__head h3 { margin: 0 !important; font-family: var(--r5-serif) !important; font-size: clamp(1.5rem, 2.4vw, 2rem) !important; font-weight: 600; color: #142f23 !important; }
.nx-stage__head p { margin: 0; font-weight: 700; color: #628e7a; }
.nx-stage__head b { font-family: var(--r5-serif); font-size: 2rem; color: #a18142; }
.nx-stage__sub { margin: 1.75rem 0 0.75rem !important; font-size: 0.74rem !important; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #628e7a !important; }
.nx-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; margin: 0; padding: 0; list-style: none; }
.nx-index li { display: flex; align-items: center; gap: 1rem; padding: 1rem 0.25rem !important; font-size: 1.05rem; font-weight: 600; color: #142f23 !important; background: none !important; border-bottom: 1px solid #dfd4bf; transition: padding 0.25s ease, background 0.25s ease; }
.nx-index li:hover { padding-left: 0.9rem !important; background: #fff !important; }
.nx-index span { font-family: var(--r5-serif); font-style: italic; color: #a18142; }

/* Student Council */
.nx-board2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(1rem, 3vw, 2.5rem); padding-block: 2rem; border-top: 1px solid #dfd4bf; }
.nx-board2__title { margin: 0; font-family: var(--r5-serif); font-size: 1.6rem; font-weight: 500; color: #142f23 !important; }
.nx-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.nx-post { padding: 1.25rem 1.35rem !important; background: #faf5ec !important; border-radius: 1.25rem; transition: transform 0.35s var(--s-ease), box-shadow 0.35s ease; }
.nx-post:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -32px rgb(20 47 35 / 0.6); }
.nx-post__role { margin: 0 0 0.9rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #a18142; }
.nx-post__person { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.7rem; }
.nx-post__person b { display: block; font-size: 0.98rem; color: #142f23; }
.nx-post__person small { color: #628e7a; font-weight: 600; }
.nx-avatar { display: grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; font-family: var(--r5-serif); font-size: 1.25rem; font-weight: 600; color: #e3cda1; background: #142f23; border-radius: 50%; }
.nx-flags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.nx-flag { padding: 1.75rem 1.5rem 3rem !important; background: #fff !important; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 1.75rem), 0 100%); border-radius: 1rem 1rem 0 0; transition: transform 0.35s var(--s-ease); }
.nx-flag:hover { transform: translateY(-6px); }
.nx-flag:nth-child(even) { background: #faf0da !important; }
.nx-flag h3 { margin: 0 0 1.25rem; padding-bottom: 1rem; font-family: var(--r5-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: #142f23 !important; border-bottom: 3px solid #c19e59; }
.nx-flag dl { display: grid; gap: 1rem; margin: 0; }
.nx-flag dt { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #a18142; }
.nx-flag dd { margin: 0.2rem 0 0; font-size: 0.92rem; font-weight: 700; color: #142f23; }
.nx-flag small { display: block; font-weight: 600; color: #628e7a; }

/* Co-Curricular */
.nx-cca-intro__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.nx-cca-intro__text { margin: 0; font-family: var(--r5-serif); font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.5; color: #142f23; }
.nx-arch { margin: 0; overflow: hidden; aspect-ratio: 4 / 4.4; border-radius: 999px 999px 1.5rem 1.5rem; }
.nx-arch :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
html body:not(.page-home) main > section.nx-offer:is(#r5, .nx-offer) { padding-block: clamp(3rem, 5vw, 4.5rem) !important; }
.nx-offer__inner { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.nx-offer__text { margin: 0; font-size: 1.05rem; line-height: 1.8; color: rgb(255 255 255 / 0.85) !important; }
.nx-offer__facts { display: grid; gap: 0.75rem; margin: 0; }
.nx-offer__facts div { padding: 1.1rem 1.4rem; border: 1px solid rgb(227 205 161 / 0.35); border-radius: 1.1rem; }
.nx-offer__facts dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(255 255 255 / 0.6); }
.nx-offer__facts dd { margin: 0.2rem 0 0; font-family: var(--r5-serif); font-size: 1.5rem; color: #e3cda1; }
.nx-groups__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.nx-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 1.5rem; box-shadow: 0 30px 60px -48px rgb(20 47 35 / 0.6); transition: transform 0.4s var(--s-ease); }
.nx-card:hover { transform: translateY(-6px); }
.nx-card__photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.nx-card__photo :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--s-ease); }
.nx-card:hover img { transform: scale(1.05); }
.nx-card__photo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: 0.35rem 0.85rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #142f23; background: #e3cda1; border-radius: 999px; }
.nx-card__body { padding: 1.5rem; }
html body main .nx-card__body h2 { min-height: 2.7em; margin: 0 0 1rem !important; font-family: var(--r5-serif) !important; font-size: 1.2rem !important; font-weight: 600 !important; line-height: 1.35 !important; color: #142f23 !important; text-align: left; }
.nx-card__body ul { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.nx-card__body li { padding: 0.35rem 0.8rem !important; font-size: 0.85rem; font-weight: 600; color: #1c3e2e !important; background: #faf5ec; border-radius: 0.6rem; }

/* Contact: visible address, new day section */
html body.page-contact main .ct-reach__addr, html body.page-contact main .ct-reach__addr:is(#r5, address) span { color: #1c3e2e !important; -webkit-text-fill-color: #1c3e2e !important; opacity: 1 !important; font-style: normal; }
.nx-day__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.25rem; align-items: stretch; }
.nx-hours { padding: clamp(1.75rem, 3.5vw, 2.5rem); color: #fff; background: linear-gradient(160deg, #1c3e2e, #10251c); border-radius: 1.75rem; }
html body main .nx-day :is(.nx-hours, .nx-meet) h3 { margin: 0 0 0.35rem; font-family: var(--r5-serif); font-size: 1.6rem; font-weight: 500; }
html body main .nx-day .nx-hours h3 { color: #fff !important; }
.nx-hours__days { margin: 0 0 1.75rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #e3cda1 !important; }
.nx-hours ul { position: relative; margin: 0; padding: 0; list-style: none; }
.nx-hours ul::before { content: ""; position: absolute; left: 0.4rem; top: 0.8rem; bottom: 0.8rem; width: 2px; background: rgb(227 205 161 / 0.35); }
.nx-hours li { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 0.9rem 0 0.9rem 2.25rem !important; }
.nx-hours li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 0.9rem; height: 0.9rem; background: #c19e59; border: 3px solid #142f23; border-radius: 50%; }
.nx-hours li span { font-weight: 700; color: #fff; }
.nx-hours li b { font-family: var(--r5-serif); font-size: 1.15rem; font-weight: 500; color: #e3cda1; }
.nx-hours__note { margin: 1.25rem 0 0; padding: 1rem 1.1rem; font-size: 0.9rem; line-height: 1.6; color: rgb(255 255 255 / 0.85) !important; background: rgb(255 255 255 / 0.07); border-radius: 0.9rem; }
.nx-hours__note b { color: #e3cda1; }
.nx-meet { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.75rem, 3.5vw, 2.5rem); background: #fff; border-radius: 1.75rem; }
html body main .nx-day .nx-meet h3 { color: #142f23 !important; }
.nx-meet__card { display: flex; gap: 1rem; padding: 1.25rem; background: #faf5ec; border-radius: 1.25rem; }
.nx-meet__icon { display: grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; color: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); border-radius: 50%; }
.nx-meet__icon svg { width: 1.2rem; height: 1.2rem; }
.nx-meet__who { margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #628e7a; }
.nx-meet__time { margin: 0.2rem 0 0; font-weight: 700; line-height: 1.45; color: #142f23; }

/* Gallery year tabs: hover fills the tab dark with a gold year, no lift or underline */
html body main .gl-tabs .gl-tab { border-radius: 1rem !important; transform: none !important; transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important; }
html body main .gl-tabs .gl-tab::after { display: none !important; }
html body main .gl-tabs .gl-tab:not([aria-selected="true"]):is(:hover, :focus-visible) { transform: none !important; background: #faf0da !important; box-shadow: inset 0 0 0 2px #c19e59 !important; }
html body main .gl-tabs .gl-tab:not([aria-selected="true"]):is(:hover, :focus-visible) :is(.gl-tab__year, .gl-tab__count) { color: #142f23 !important; }

/* Calendar: months centred */
html body.page-calendar main .cal__bar .cal__nav { justify-content: center !important; }
html body.page-calendar main .cal__bar .cal__nav .cal__tabs { flex: 0 1 auto !important; justify-content: safe center; margin-inline: 0; }
html body.page-calendar main .cal__bar { justify-items: center; }
html body.page-calendar main .cal__bar > .cal__nav { width: 100%; }
html body.page-calendar main .cal__bar > .cal__side { width: 100%; }

@media (max-width: 1000px) {
    .nx-flags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-groups__grid { grid-template-columns: 1fr; max-width: 34rem; }
    .nx-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-card__body h2 { min-height: 0 !important; }
}
@media (max-width: 800px) {
    .nx-row, .nx-board2, .nx-cca-intro__grid, .nx-offer__inner, .nx-day__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .nx-posts, .nx-flags, .nx-index { grid-template-columns: 1fr; }
}

/* One heading font site-wide: Playfair Display (primary); body text is Source Sans 3 (secondary). The #r5 inside :is() only lifts specificity over older rules */
html body :is(#r5, h1, h2, h3, h4, h5, h6, .h2, .h-display, .h-hero__title, .hn-title, .hn-hero__title, .pg-title),
html body :is(#r5, h1, h2, h3, h4, h5, h6, .h2, .h-display, .h-hero__title, .hn-title, .hn-hero__title, .pg-title) :is(span, em, strong, b, a, .hl) {
    font-family: "Playfair Display", Georgia, serif !important;
    font-synthesis: none;
}
html body :is(#r5, h1, h2, .h2, .h-display, .h-hero__title, .hn-title, .hn-hero__title, .pg-title),
html body :is(#r5, h1, h2, .h2, .h-display, .h-hero__title, .hn-title, .hn-hero__title, .pg-title) :is(span, em, .hl) {
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
}
html body :is(h1, h2, h3, h4) { overflow-wrap: anywhere; }

/* Assessment on phones: the 80 / 20 pair ran 5px past the screen */
@media (max-width: 640px) {
    html body.page-assessment main .ae-senior__top { grid-template-columns: minmax(0, 1fr) !important; }
    html body.page-assessment main .ae-split { gap: 1rem !important; min-width: 0; }
    html body.page-assessment main .ae-split > div { flex: 1 1 0 !important; min-width: 0 !important; }
    html body.page-assessment main .ae-split span { letter-spacing: 0.05em !important; overflow-wrap: anywhere; }
}

/* Descriptions and paragraphs about 9% larger (tablet and desktop). Sizes were measured per element, then scaled */
@media (min-width: 641px) {
    html body :is(#r5, .site-footer) .ft__base p, html body.page-home :is(#r5, main) p.hn-posters__session { font-size: 14px !important; }
    html body.page-programme :is(#r5, main) .pg-grades li { font-size: 14.3px !important; }
    html body.page-home :is(#r5, main) :is(p.hn-ledger__text, .hn-admit__classes dd) { font-size: 15px !important; }
    html body.page-figure :is(#r5, main) p.fx-note { font-size: 15.3px !important; }
    html body:is(.page-curriculum, .page-programme) :is(#r5, main) .nx-lang li, html body.page-assessment :is(#r5, main) :is(.sx-detail li, .ae-internal p, p.ae-card__note), html body.page-admission :is(#r5, main) p.aq-ticket__note, html body.page-contact :is(#r5, main) p.nx-hours__note { font-size: 15.7px !important; }
    html body.page-assessment :is(#r5, main) p.ae-card__muted, html body.page-admission :is(#r5, main) :is(p.aq-docs__format, .aq-path__step p), html body.page-council :is(#r5, main) .nx-flag dd { font-size: 16px !important; }
    html body.page-assessment :is(#r5, main) .ae-ticks li, html body.page-calendar :is(#r5, main) p.cal__foot { font-size: 16.4px !important; }
    html body.page-assessment :is(#r5, main) .ae-areas li { font-size: 16.6px !important; }
    html body.page-home :is(#r5, main) p.hn-lead, html body.page-assessment :is(#r5, main) .ae-card p, html body.page-admission :is(#r5, main) .aq-notes li { font-size: 17.1px !important; }
    html body.page-history :is(#r5, main) p.beat__text { font-size: 17.2px !important; }
    html body.page-home :is(#r5, main) p.hn-hero__lede, html body.page-msfs :is(#r5, main) .s-steps__item p, html body.page-curriculum :is(#r5, main) .nx-subjects li, html body.page-admission :is(#r5, main) :is(p.aq-class__text, p.aq-seats), html body.page-calendar :is(#r5, main) p.cal__text, html body.page-contact :is(#r5, main) p.nx-meet__time, html body.page-career :is(#r5, main) .c-send li, html body.page-newsletter :is(#r5, main) p.nl-none { font-size: 17.4px !important; }
    html body.page-home :is(#r5, main) p.hn-head__intro, html body.page-figure :is(#r5, main) .fx-text p:not(.eyebrow) { font-size: 17.8px !important; }
    html body.page-msfs :is(#r5, main) p.s-province__provincial, html body.page-vision :is(#r5, main) p.vm-motto__text, html body.page-programme :is(#r5, main) .nx-index li, html body.page-assessment :is(#r5, main) .ae-exams__list p, html body.page-cca :is(#r5, main) p.nx-offer__text { font-size: 18.3px !important; }
    html body.page-history :is(#r5, main) p.h-growth__text, html body.page-career :is(#r5, main) p.c-card__text, html body.page-clubs :is(#r5, main) :is(p.cl-intro__more, p.cl-club__text) { font-size: 18.5px !important; }
    html body.page-msfs :is(#r5, main) p.s-cong2__text { font-size: 18.7px !important; }
    html body.page-msfs :is(#r5, main) p.s-province__text, html body.page-assessment :is(#r5, main) :is(.ae-rules li, .ae-enrich__body p) { font-size: 19.2px !important; }
    html body.page-vision :is(#r5, main) .mi-aims p { font-size: 19.3px !important; }
    html body.page-principal :is(#r5, main) .p-letter__text p, html body.page-programme :is(#r5, main) p.pg-lead { font-size: 19.6px !important; }
    html body:is(.page-history, .page-msfs, .page-figure, .page-vision, .page-curriculum, .page-programme, .page-assessment, .page-admission, .page-council, .page-career) :is(#r5, main) p.h-hero__intro, html body.page-facility :is(#r5, main) p.fc-card__lead { font-size: 20.1px !important; }
}
@media (max-width: 640px) {
    html body:not(.page-home) main :is(p, li, dd) { font-size-adjust: none; }
}

/* The same 9% bump on phones, measured at 390px */
@media (max-width: 640px) {
    html body.page-home :is(#r5, main) p.hn-posters__session, html body :is(#r5, .site-footer) .ft__base p { font-size: 14px !important; }
    html body.page-programme :is(#r5, main) .pg-grades li { font-size: 14.3px !important; }
    html body.page-home :is(#r5, main) :is(p.hn-ledger__text, .hn-admit__classes dd) { font-size: 15px !important; }
    html body.page-figure :is(#r5, main) p.fx-note { font-size: 15.3px !important; }
    html body:is(.page-curriculum, .page-programme) :is(#r5, main) .nx-lang li, html body.page-assessment :is(#r5, main) :is(.sx-detail li, .ae-internal p, p.ae-card__note), html body.page-admission :is(#r5, main) p.aq-ticket__note, html body.page-contact :is(#r5, main) p.nx-hours__note { font-size: 15.7px !important; }
    html body.page-assessment :is(#r5, main) p.ae-card__muted, html body.page-admission :is(#r5, main) :is(p.aq-docs__format, .aq-path__step p), html body.page-council :is(#r5, main) .nx-flag dd { font-size: 16px !important; }
    html body.page-assessment :is(#r5, main) .ae-ticks li { font-size: 16.2px !important; }
    html body.page-calendar :is(#r5, main) p.cal__foot { font-size: 16.4px !important; }
    html body.page-assessment :is(#r5, main) .ae-areas li { font-size: 16.6px !important; }
    html body.page-home :is(#r5, main) p.hn-lead, html body.page-assessment :is(#r5, main) .ae-card p, html body.page-admission :is(#r5, main) .aq-notes li { font-size: 17.1px !important; }
    html body.page-history :is(#r5, main) p.beat__text { font-size: 17.2px !important; }
    html body.page-home :is(#r5, main) p.hn-hero__lede, html body.page-msfs :is(#r5, main) .s-steps__item p, html body.page-curriculum :is(#r5, main) .nx-subjects li, html body.page-admission :is(#r5, main) :is(p.aq-class__text, p.aq-seats), html body.page-calendar :is(#r5, main) p.cal__text, html body.page-contact :is(#r5, main) p.nx-meet__time, html body.page-career :is(#r5, main) .c-send li, html body.page-newsletter :is(#r5, main) p.nl-none { font-size: 17.4px !important; }
    html body.page-msfs :is(#r5, main) p.s-cong2__text { font-size: 17.6px !important; }
    html body.page-home :is(#r5, main) p.hn-head__intro, html body.page-figure :is(#r5, main) .fx-text p:not(.eyebrow), html body.page-vision :is(#r5, main) .mi-aims p, html body:is(.page-history, .page-msfs, .page-figure, .page-vision, .page-curriculum, .page-programme, .page-assessment, .page-admission, .page-council, .page-career) :is(#r5, main) p.h-hero__intro { font-size: 17.8px !important; }
    html body.page-msfs :is(#r5, main) p.s-province__provincial, html body.page-vision :is(#r5, main) p.vm-motto__text, html body.page-programme :is(#r5, main) .nx-index li, html body.page-assessment :is(#r5, main) .ae-exams__list p, html body.page-cca :is(#r5, main) p.nx-offer__text { font-size: 18.3px !important; }
    html body.page-history :is(#r5, main) p.h-growth__text, html body.page-career :is(#r5, main) p.c-card__text, html body:is(.page-clubs) :is(#r5, main) :is(p.cl-intro__more, p.cl-club__text) { font-size: 18.5px !important; }
}

/* Inner hero: dark only behind the text; the photograph side stays clear */
@media (min-width: 961px) {
    html body:not(.page-home) .h-hero__shade { background: linear-gradient(90deg, rgb(20 47 35 / 0.92) 0%, rgb(20 47 35 / 0.82) 38%, rgb(20 47 35 / 0.52) 52%, rgb(20 47 35 / 0) 70%) !important; }
}
html body:not(.page-home) .h-hero :is(.h-hero__title, .h-hero__intro) { text-shadow: 0 2px 14px rgb(20 47 35 / 0.75); }

/* Inner hero gold words: the soft shadow showed through the gradient fill and dulled it. No shadow there, and a lighter gold */
html body:not(.page-home) .h-hero .h-hero__title :is(#r5, .h-hero__line:last-child, .h-hero__line:last-child *, .hl) { text-shadow: none !important; }
html body:not(.page-home) .h-hero .h-hero__title { text-shadow: none !important; }
html body:not(.page-home) .h-hero .h-hero__title :is(#r5, .h-hero__line:last-child:not(:first-child), .hl) { background: linear-gradient(100deg, #ffe9ae 0%, #e0c794 55%, #d2af6a 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent !important; }

/* Admission office card: square photo edge against the dark panel (the card itself rounds the outer corners) */
html body.page-admission main .aq-office__card :is(.aq-office__photo, .aq-office__photo picture, .aq-office__photo img) { border-radius: 0 !important; }

/* Founder / Patron quote: a little smaller */
html body main .fx-quote .fx-quote__inner .fx-quote__text { font-size: clamp(1.5rem, 2.6vw, 2.15rem) !important; line-height: 1.3 !important; }

/* House System: the banner picture shown whole in its own column (no crop, no card over it); sports photographs below */
html body.page-houses main .hs-open .hs-open__grid { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important; gap: clamp(1.5rem, 4vw, 3.5rem) !important; align-items: center !important; }
html body.page-houses main .hs-open .hs-open__photo { position: static !important; grid-area: auto !important; width: 100% !important; height: auto !important; min-height: 0 !important; margin: 0 !important; aspect-ratio: auto !important; }
html body.page-houses main .hs-open .hs-open__photo :is(picture, img) { position: static !important; display: block; width: 100% !important; height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; object-fit: contain !important; transform: none !important; }
html body.page-houses main .hs-open .hs-open__colours { display: none !important; }
html body.page-houses main .hs-open .hs-open__copy { position: static !important; grid-area: auto !important; width: auto !important; margin: 0 !important; transform: none !important; }
.hs-sports__head { margin-bottom: 2rem; text-align: center; }
.hs-sports__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 1rem; }
.hs-sports__grid figure { margin: 0; overflow: hidden; border-radius: 1.5rem; }
.hs-sports__main { grid-row: 1 / 3; }
.hs-sports__grid :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-sports__grid img { transition: transform 0.9s var(--s-ease); }
.hs-sports__grid figure:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
    html body.page-houses main .hs-open .hs-open__grid { grid-template-columns: minmax(0, 1fr) !important; }
    .hs-sports__grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .hs-sports__main { grid-row: auto; }
}
html body.page-houses main .hs-open .hs-open__photo img.has-parallax, html body.page-houses main .hs-open .hs-open__photo img { scale: 1 !important; translate: none !important; }

/* Headings stay in the primary font on the homepage too (its other text is Inter) */
html body :is(#r5, h1, h2, h3, h4, h5, h6, .h2, .hn-title, .hn-hero__title) { font-family: "Playfair Display", Georgia, serif !important; }

/* History, principals: the years as plain text, not a pill */
html body.page-history main .lx .lx__item .lx__years:is(#r5, span) { padding: 0 !important; font-size: 0.9rem !important; font-weight: 600 !important; letter-spacing: 0.02em !important; color: #e3cda1 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0 !important; }

/* Admission class cards on tablets: the age sits above the text instead of squeezing it */
@media (max-width: 1100px) {
    html body.page-admission main .aq-class__body { grid-template-columns: minmax(0, 1fr); }
    html body.page-admission main .aq-class__age { grid-row: auto; padding: 0 0 0.75rem; border-right: 0; border-bottom: 1px solid #ead9b9; }
}

/* Admission steps on small laptops and tablets: three per row instead of five squeezed */
@media (min-width: 961px) and (max-width: 1100px) {
    html body.page-admission main .aq-path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
    html body.page-admission main .aq-path::before { display: none; }
}

/* Inner hero: one even shade over the whole photograph */
html body:not(.page-home) .h-hero .h-hero__shade { background: rgb(20 47 35 / 0.62) !important; }
html body:not(.page-home) .h-hero .h-hero__badge { z-index: 3; opacity: 1; filter: none; }

/* Management and Staff: no head counts on the tabs */
html body.page-management main [data-staff-tab] b:is(#r5, [data-group-count]) { display: none !important; }

/* Media: numbered pages under the clippings */
.md-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 2.5rem; }
.md-pager button { display: grid; place-items: center; min-width: 2.9rem; height: 2.9rem; padding: 0 0.6rem; font: inherit; font-weight: 700; color: #14261f; background: #fff; border: 1px solid #d9d4c3; border-radius: 0.75rem; cursor: pointer; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.md-pager button:hover:not(:disabled):not([aria-current]) { border-color: #1d4635; }
.md-pager button[aria-current="page"] { color: #fff; background: #1d4635; border-color: #1d4635; }
.md-pager button:disabled { opacity: 0.35; cursor: default; }
.md-pager button:focus-visible { outline: 2px solid #b28a45; outline-offset: 2px; }
.md-pager span { padding: 0 0.15rem; color: #6b766f; }

/* ---------- Third menu level and footer extras (header and footer managers) ---------- */
.mega__group { display: block; padding: 0.85rem 1rem; font-weight: 700; }
.mega__sub { margin: 0.35rem 0 0; padding: 0 0 0 1rem; list-style: none; }
.site-header .mega__sub a { display: block !important; padding: 0.35rem 0.5rem !important; background: none !important; border: 0 !important; font-size: 0.9em; }
.mobile-menu__deep { margin: 0; padding: 0 0 0 1rem; list-style: none; }
.mobile-menu .mega__group { padding: 0.5rem 0; }
.ft__description, .ft__text { margin: 0.5rem 0 0.75rem; max-width: 40ch; }
.site-header .mega__sub a, .site-header .mega__group { color: rgb(255 255 255 / 0.82) !important; }
.site-header .mega__sub a:hover { color: var(--s-g1-lt) !important; transform: none !important; }
.mobile-menu .mobile-menu__sub .mobile-menu__deep { margin: 0; padding-left: 1.1rem !important; }
.is-disabled { opacity: 0.55; cursor: default; pointer-events: none; }
.cms-caption { margin-top: 0.5rem; font-size: 0.85rem; text-align: center; }
/* Our Managers uses the principals' boxes on a light page, so each box carries the dark fill itself. */
html body main .hx.lx .lx__line.lx__line { grid-template-columns: repeat(auto-fit, minmax(15rem, 20rem)) !important; justify-content: center; max-width: 64rem; }
html body main .hx.lx .lx__item.lx__item { background: linear-gradient(170deg, #1c3e2e, #142f23) !important; box-shadow: 0 24px 44px -30px rgb(16 37 28 / 0.7) !important; }
html body main .hx.lx .lx__item.lx__item--now { background: linear-gradient(170deg, #295d46, #142f23) !important; border-color: #c19e59 !important; }
/* A little more air in the names of the managers' and principals' boxes. */
html body.page-history main .lx .lx__item .lx__name.lx__name { margin-top: 1rem !important; margin-bottom: 0.65rem !important; line-height: 1.4 !important; letter-spacing: 0.025em !important; word-spacing: 0.08em !important; }
/* Our staff: names only. */
html body main .m-staff .m-names { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)) !important; gap: 0.75rem !important; }
html body main .m-staff .m-card.m-card--text { display: flex; align-items: center; min-height: 0; }
html body main .m-staff .m-card--text .m-card__name { display: block; min-height: 0; width: 100%; padding: 0.85rem 1.1rem; font-size: 1.05rem; line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
html body main .m-staff .m-card.m-card--text[hidden] { display: none !important; }
/* Our staff as a plain list: no boxes, one person icon before every name, in the body font. */
html body main .m-staff .m-names { row-gap: 0 !important; column-gap: 1.75rem !important; }
html body main .m-staff .m-names .m-card.m-card--text.m-card--text { gap: 0.7rem; padding: 0.8rem 0.25rem; background: none !important; border: 0 !important; border-bottom: 1px solid var(--s-line) !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; }
html body main .m-staff .m-names .m-card.m-card--text.m-card--text::before { content: ""; flex: none; width: 1.15rem; height: 1.15rem; background: var(--c-maroon-700); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center / contain no-repeat; }
html body main .m-staff .m-names .m-card--text .m-card__name.m-card__name { padding: 0 !important; font-family: var(--f-sans) !important; font-size: 1.2rem !important; font-weight: 600 !important; letter-spacing: 0.01em; background: none !important; border: 0 !important; }
html body main .m-staff .m-names .m-card.m-card--text.m-card--text[hidden] { display: none !important; }
