/* ==========================================================================
   SFS Academy, professional theme (loaded last).
   Colours come from the school's own site (sfsacademy.com): deep navy #254f3c, teal #7c612c and an amber highlight
   #b19151. One modern sans (Manrope) for headings and text. Headlines are bold and tight; the accent words are teal
   instead of italic. The inner pages get a cleaner hero, card, table and band treatment; the home page layout is left
   as it is (only its type and colours follow the theme).
   ========================================================================== */
:root {
    --c-line: #e4dccb;
    --c-amber: #b19151;
    --c-teal: #927335;
    --c-navy: #254f3c;
    --p-shadow-1: 0 1px 2px rgb(16 37 28 / 0.05), 0 10px 28px -16px rgb(16 37 28 / 0.18);
    --p-shadow-2: 0 2px 4px rgb(16 37 28 / 0.04), 0 26px 50px -24px rgb(16 37 28 / 0.32);
    --p-radius: 20px;
}

body { letter-spacing: -0.006em; }
::selection { color: #fff; background: var(--c-teal); }

/* ---------- headlines: bold Manrope, accent words in teal (no italics) ---------- */
.h2, .h-display, .md-title, .a-block__title, .pg-title, .fg-text__title, .fc-card__title, .cca-row__title,
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-weight: 600 !important;
    letter-spacing: -0.02em !important;
    font-style: normal !important;
    line-height: 1.08;
}
.h-hero__title, .hero__title, .hero__title em { font-weight: 600 !important; letter-spacing: -0.025em !important; font-style: normal !important; }
.hl { font-style: normal !important; font-weight: 600 !important; color: var(--c-teal); }
.hl.hl--light, :is(.section--dark, .v-mission, .achievements, .recognition, .ad-select, .upcoming, .site-footer, .sc-box--dark) .hl { color: #d2ba8b !important; }
.h-hero__line:last-child:not(:first-child), .h-hero .hl { font-style: normal !important; font-weight: 600 !important; color: #d2ba8b !important; }
h3, h4 { letter-spacing: -0.02em; }

/* section labels: teal text with a short amber bar */
.eyebrow { font-weight: 700; letter-spacing: 0.14em; color: #7c612c; }
.eyebrow::before, .eyebrow::after { height: 2px !important; width: 1.4rem !important; background: var(--c-amber) !important; border-radius: 2px; }
.eyebrow--light { color: #d2ba8b; }

/* ---------- buttons: solid teal / navy, swapping on hover ---------- */
.btn { font-weight: 700; letter-spacing: -0.005em; }
.btn--gold, .btn--primary, .nl-btn {
    color: #142f23 !important; background-color: #b19151 !important; background-image: linear-gradient(120deg, #d2ba8b 0%, #b19151 45%, #927335 100%) !important; background-size: 180% 100% !important; background-position: 0% 50% !important; border-color: transparent !important;
    box-shadow: 0 10px 22px -12px rgb(146 115 53 / 0.85) !important; transition: background-position 0.45s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s ease !important;
}
.btn--gold:hover, .btn--primary:hover, .nl-btn:hover { color: #142f23 !important; background-position: 100% 50% !important; transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgb(146 115 53 / 0.9) !important; }


.to-top { background: var(--c-navy); }
.to-top:hover { background: var(--c-teal); }
.to-top__ring { background: conic-gradient(var(--c-amber) calc(var(--p) * 360deg), rgb(124 97 44 / 0.25) 0) !important; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---------- hero banner: straight edge, navy fade from the left, an amber + teal rule along the foot ---------- */
body:not(.page-home) .h-hero {
    min-height: clamp(27rem, 54vh, 33rem) !important;
    border-radius: 0 !important;
    background: var(--c-maroon-950);
}
body:not(.page-home) .h-hero::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 5px;
    background: linear-gradient(90deg, var(--c-amber) 0 14%, var(--c-teal) 14% 100%);
}
body:not(.page-home) .h-hero__shade {
    background:
        linear-gradient(90deg, rgb(var(--rgb-maroon-950) / 0.72) 0%, rgb(var(--rgb-maroon-950) / 0.52) 38%, rgb(var(--rgb-maroon-950) / 0.12) 62%, transparent 80%),
        linear-gradient(0deg, rgb(var(--rgb-maroon-950) / 0.22) 0%, transparent 40%),
        linear-gradient(180deg, rgb(var(--rgb-maroon-950) / 0.28) 0%, transparent 26%) !important;
}
body:not(.page-home) .h-hero__title { font-size: clamp(2.4rem, 1.3rem + 3.4vw, 4rem) !important; line-height: 1.02 !important; }
body:not(.page-home) .h-hero__eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.16em; color: var(--c-amber) !important; }
body:not(.page-home) .h-hero__eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--c-amber); border-radius: 2px; }
body:not(.page-home) .h-hero__intro { color: rgb(255 255 255 / 0.85); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.6; }
/* breadcrumb: small chips */
body:not(.page-home) .h-hero .crumbs ol { gap: 0.35rem; }
body:not(.page-home) .h-hero .crumbs li { display: inline-flex; align-items: center; gap: 0.35rem; }
body:not(.page-home) .h-hero .crumbs li + li::before { content: "›"; margin: 0; color: rgb(255 255 255 / 0.5); font-size: 1rem; }
body:not(.page-home) .h-hero .crumbs a, body:not(.page-home) .h-hero .crumbs span, body:not(.page-home) .h-hero .crumbs [aria-current="page"] {
    padding: 0.2rem 0.65rem; font-size: 0.75rem; font-weight: 600; border-radius: 999px; background: rgb(255 255 255 / 0.1); backdrop-filter: blur(6px);
}
body:not(.page-home) .h-hero .crumbs [aria-current="page"] { color: var(--c-maroon-950) !important; background: #d2ba8b; }

/* ---------- sections ---------- */
body:not(.page-home) main { background: #fff; }
body:not(.page-home) :is(.lp-soft, .section--soft, .cal, .sc-ncc, .ad-contact, .hx) { background-color: var(--c-soft); }

/* dark bands: navy with a faint teal glow */
body:not(.page-home) :is(.section--dark, .v-mission, .ad-select, .h-growth, .vv-panel, .ct-day--dark) {
    background-color: var(--c-maroon-800) !important;
    background-image:
        radial-gradient(48rem 26rem at 100% 0%, rgb(124 97 44 / 0.22), transparent 62%),
        radial-gradient(36rem 22rem at 0% 100%, rgb(177 145 81 / 0.08), transparent 60%),
        linear-gradient(135deg, var(--c-maroon-950), var(--c-maroon-800)) !important;
}

/* ---------- cards: white, hairline border, soft lift ---------- */
body:not(.page-home) :is(.hx__tile, .hy__card, .sc-box, .gl-card a, .a-term, .nl-doc, .pg-stage, .hs-card, .ev-card,
    .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-scroll, .ds-side, .cal__panel) {
    border-radius: var(--p-radius) !important;
}
body:not(.page-home) :is(.hy__card, .sc-box--cream, .gl-card a, .a-term, .nl-doc, .pg-stage, .hs-card, .ev-card, .dz__card, .sc-rank,
    .sc-role, .ct-reach > *, .a-note, .pg-intro__text, .fc-more__list li) {
    border: 1px solid var(--c-line) !important;
    box-shadow: var(--p-shadow-1) !important;
    transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.3s ease;
}
body:not(.page-home) :is(.hy__card, .gl-card a, .a-term, .nl-doc, .pg-stage, .hs-card, .ev-card, .dz__card, .sc-rank, .sc-role, .ct-reach > *, .fc-more__list li):hover {
    transform: translateY(-4px);
    border-color: rgb(124 97 44 / 0.45) !important;
    box-shadow: var(--p-shadow-2) !important;
}
body:not(.page-home) .dz__card { background: #fff !important; }
body:not(.page-home) .dz__no { -webkit-text-stroke: 0 !important; color: var(--c-teal) !important; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem) !important; }

/* photographs */
body:not(.page-home) main figure img, body:not(.page-home) main .cv-thumb img { border-radius: inherit; }

/* ---------- tables ---------- */
body:not(.page-home) .md-scroll { overflow: auto; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--p-shadow-1); }
body:not(.page-home) .md-scroll table { border-collapse: separate; border-spacing: 0; }
body:not(.page-home) .md-scroll th { color: #fff !important; background: var(--c-maroon-800) !important; border: 0 !important; letter-spacing: 0.06em; }
body:not(.page-home) .md-scroll th:first-child { border-top-left-radius: 12px; }
body:not(.page-home) .md-scroll th:last-child { border-top-right-radius: 12px; }
body:not(.page-home) .md-scroll td { border-color: var(--c-line) !important; }
body:not(.page-home) .md-scroll tbody tr:nth-child(even) td { background: #faf6ee; }
body:not(.page-home) .md-scroll tbody tr:hover td { background: #f3ead6; }

/* ---------- text content ---------- */
body:not(.page-home) main p:not([class*="title"]):not([class*="name"]) > a:not(.btn):not([class]) {
    color: var(--c-teal); text-decoration: underline; text-decoration-color: rgb(124 97 44 / 0.35); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px;
}
body:not(.page-home) main p a:not(.btn):hover { text-decoration-color: currentColor; }
body:not(.page-home) main li::marker { color: var(--c-teal); }

/* tabs and pills: navy when chosen */
body:not(.page-home) :is(.pg-tabs__list button, .gl-tab, .cal__tabs button)[aria-selected="true"] {
    color: #fff !important; background: var(--c-maroon-800) !important; background-image: none !important; box-shadow: 0 10px 20px -12px rgb(37 79 60 / 0.7) !important;
}
body:not(.page-home) .gl-tab[aria-selected="true"], body:not(.page-home) .gl-tab.is-active { color: var(--c-maroon-800) !important; background: none !important; box-shadow: none !important; }

/* calendar: the gradients become navy */
.cal__cell.is-pick, .cal__badge, .cal__tabs button[aria-selected="true"] { background: var(--c-maroon-800) !important; background-image: none !important; }
.cal__dot, .cal__key--e { background: var(--c-teal) !important; }

/* footer accents follow the theme */
.site-footer { border-top-color: var(--c-teal) !important; }
body:not(.page-home) .h-hero__content { padding-top: calc(var(--header-h) + 5rem) !important; }
/* breadcrumb: the current page is plain teal text (the separator stays outside any chip); no link underline */
body:not(.page-home) .h-hero .crumbs li[aria-current="page"] { padding: 0; color: #d2ba8b !important; background: none !important; backdrop-filter: none; }
body:not(.page-home) .h-hero .crumbs a { text-decoration: none !important; color: #fff !important; }
body:not(.page-home) .h-hero .crumbs a:hover { background: rgb(255 255 255 / 0.2); }

/* Manrope has no italic, so the slanted accents of the old serif theme become upright (accent colour stays) */
body:not(.page-home) main *:not(em):not(i):not(cite) { font-style: normal !important; }
body:not(.page-home) main :is(blockquote, .ds-closing, .p-letter__closing) { font-weight: 600; letter-spacing: -0.015em; }
.cal__title { font-weight: 600 !important; letter-spacing: -0.035em !important; }
.cal__title span { font-weight: 600 !important; color: var(--c-teal) !important; }
.to-top { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.9), 0 14px 28px -12px rgb(37 79 60 / 0.7) !important; }

/* ---- Profile of a Desalite: two columns of white cards, an amber bar on the left, an outlined number beside the text ---- */
body.page-desalite .dz { background: var(--c-soft); }
body:not(.page-home) .dz__stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 1.8vw, 1.25rem); }
body:not(.page-home) .dz__stack .dz__card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: center; gap: clamp(1rem, 2vw, 1.5rem);
    min-height: 6.75rem; padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1.25rem, 2.6vw, 1.9rem);
    background: #fff !important; border: 0 !important; border-left: 4px solid var(--c-amber) !important; border-radius: 4px 16px 16px 4px !important;
    box-shadow: 0 14px 30px -18px rgb(16 37 28 / 0.28) !important;
}
body:not(.page-home) .dz__stack .dz__card:last-child { grid-column: auto; }
body:not(.page-home) .dz__stack .dz__card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -20px rgb(16 37 28 / 0.35) !important; }
body:not(.page-home) .dz__stack .dz__no {
    font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem) !important; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
    color: transparent !important; -webkit-text-stroke: 1.5px var(--c-teal) !important;
}
body:not(.page-home) .dz__stack .dz__card p { margin: 0; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); font-weight: 500; line-height: 1.6; color: var(--c-ink); }
@media (max-width: 760px) { body:not(.page-home) .dz__stack { grid-template-columns: 1fr; } }
body:not(.page-home) .dz__stack .dz__card:hover { border-left-color: var(--c-amber) !important; }

/* inner-page hero photo: where the picture is anchored inside the banner */
body:not(.page-home) .h-hero__media img { object-position: 10% 17% !important; }

/* home page hero: a lighter overlay so the photograph shows through */
.page-home .hero__shade {
    background:
        linear-gradient(90deg, rgb(var(--rgb-maroon-950) / 0.6) 0%, rgb(var(--rgb-maroon-950) / 0.38) 40%, rgb(var(--rgb-maroon-950) / 0.06) 74%),
        linear-gradient(0deg, rgb(var(--rgb-maroon-950) / 0.4) 0%, rgb(var(--rgb-maroon-950) / 0) 45%),
        linear-gradient(180deg, rgb(var(--rgb-maroon-950) / 0.32) 0%, rgb(var(--rgb-maroon-950) / 0) 24%);
}
@media (max-width: 760px) {
    .page-home .hero__shade {
        background:
            linear-gradient(0deg, rgb(var(--rgb-maroon-950) / 0.68) 0%, rgb(var(--rgb-maroon-950) / 0.42) 48%, rgb(var(--rgb-maroon-950) / 0.06) 78%),
            linear-gradient(180deg, rgb(var(--rgb-maroon-950) / 0.3) 0%, rgb(var(--rgb-maroon-950) / 0) 22%);
    }
}

.page-home .hero :is(.hero__title, .hero__lede, .hero__eyebrow, .hero p) { text-shadow: 0 2px 12px rgb(var(--rgb-maroon-950) / 0.55); }

/* ==========================================================================
   Patterns on plain filled areas only (sections with a flat colour). Photographs, banners and cards stay clean.
   Dark fills get a faint gold lattice of interlocking circles (a classic tile motif) under their glow; light fills stay plain.
   ========================================================================== */
:root {
    --pat-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 8L8 0M-2 2L2 -2M6 10L10 6' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3Cpath d='M0 0L8 8M-2 6L2 10M6 -2L10 2' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E"); /* linen weave: a fine tone-on-tone fabric texture */
}
body:not(.page-home) :is(.section--dark, .v-mission, .ad-select, .h-growth, .vv-panel, .ct-day--dark) {
    background-image:
        var(--pat-motif),
        radial-gradient(48rem 26rem at 100% 0%, rgb(124 97 44 / 0.22), transparent 62%),
        radial-gradient(36rem 22rem at 0% 100%, rgb(177 145 81 / 0.08), transparent 60%),
        linear-gradient(135deg, var(--c-maroon-950), var(--c-maroon-800)) !important;
}
.site-footer { background-image: var(--pat-motif) !important; }
/* the footer and dark bands keep their pattern behind the content */
.site-footer > *, body:not(.page-home) :is(.section--dark, .v-mission, .ad-select) > * { position: relative; }
/* dark fills found by the script */
body:not(.page-home) main > section.fill-dark { background-image: var(--pat-motif), radial-gradient(48rem 26rem at 100% 0%, rgb(124 97 44 / 0.22), transparent 62%), linear-gradient(135deg, var(--c-maroon-950), var(--c-maroon-800)) !important; }

/* home, Give a 'Hear-Hear': the maroon band carries the same faint gold ring lattice */
.achievements {
    background-color: var(--c-maroon-800) !important;
    background-image:
        var(--pat-motif),
        radial-gradient(46rem 24rem at 50% 58%, rgb(177 145 81 / 0.1), transparent 68%),
        linear-gradient(135deg, var(--c-maroon-950), var(--c-maroon-800)) !important;
}

/* ==========================================================================
   Home hero, refreshed: the photograph stays bright; the words sit on a soft fade with a light text shadow so they are always
   readable, with a pill label, a gold second line, and the slide controls in a small glass pill.
   ========================================================================== */
.page-home .hero__shade {
    background:
        linear-gradient(90deg, rgb(var(--rgb-maroon-950) / 0.72) 0%, rgb(var(--rgb-maroon-950) / 0.5) 32%, rgb(var(--rgb-maroon-950) / 0.12) 52%, transparent 62%),
        linear-gradient(180deg, rgb(var(--rgb-maroon-950) / 0.55) 0%, transparent 18%) !important;
}
.page-home .hero { justify-content: flex-end; }
.page-home .hero__eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.1rem; padding: 0.4rem 0.9rem;
    font-size: 0.72rem; letter-spacing: 0.14em; color: #d2ba8b;
    background: rgb(var(--rgb-maroon-950) / 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgb(210 186 139 / 0.4); border-radius: 999px;
}
.page-home .hero__eyebrow::before { content: ""; width: 0.45rem; height: 0.45rem; background: #b19151; border-radius: 50%; box-shadow: 0 0 0 4px rgb(177 145 81 / 0.25); }
.page-home .hero__title { font-size: clamp(2.3rem, 1.1rem + 3.8vw, 3.9rem); line-height: 1.04; }
.page-home .hero__title-line:last-child { color: #d2ba8b; }
.page-home .hero__lede { max-width: 32rem; margin-top: 1.1rem; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem); color: rgb(255 255 255 / 0.94); }
.page-home .hero__actions { margin-top: 1.6rem; }
.page-home .hero :is(.hero__title, .hero__lede) { text-shadow: 0 2px 16px rgb(var(--rgb-maroon-950) / 0.6), 0 1px 3px rgb(var(--rgb-maroon-950) / 0.45) !important; }
/* slide controls: a small glass pill at the bottom right */
.page-home .hero__controls { bottom: 1.6rem; }
.page-home .hero__dots, .page-home .hero__toggle { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.page-home .hero__dots { padding: 0.6rem 0.9rem; background: rgb(var(--rgb-maroon-950) / 0.45); border: 1px solid rgb(255 255 255 / 0.15); border-radius: 999px; }
.page-home .hero__toggle { background: rgb(var(--rgb-maroon-950) / 0.45); border-color: rgb(255 255 255 / 0.2); }

@media (max-width: 760px) {
    .page-home .hero__shade { background: linear-gradient(0deg, rgb(var(--rgb-maroon-950) / 0.78) 0%, rgb(var(--rgb-maroon-950) / 0.5) 50%, transparent 72%), linear-gradient(180deg, rgb(var(--rgb-maroon-950) / 0.55) 0%, transparent 16%) !important; }
    .page-home .hero__controls { bottom: 1.4rem; }
}

/* home hero: previous / next arrows beside the slide indicators */
.page-home .hero__arrow {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; color: #fff; cursor: pointer;
    background: rgb(var(--rgb-maroon-950) / 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgb(255 255 255 / 0.2); border-radius: 50%; transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.page-home .hero__arrow:hover { color: var(--c-maroon-950); background: var(--c-gold-500); border-color: var(--c-gold-500); transform: scale(1.06); }
.page-home .hero__arrow:focus-visible { outline: 2px solid var(--c-gold-300); outline-offset: 3px; }
.page-home .hero__arrow .icon { width: 1rem; height: 1rem; }
.page-home .hero__controls { gap: 0.6rem; }

/* desktop: the "Coming up" strip overlaps the foot of the hero by 100px, so the slide controls sit above it */
@media (min-width: 761px) {
    .page-home .hero__controls { bottom: calc(100px + 1.4rem) !important; z-index: 3; }
}

/* ---- scrolling animations: extra reveal styles (used by modules/reveal.js) ---- */
.js [data-reveal="left"] { transform: translate3d(-2rem, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(2rem, 0, 0); }
.js [data-reveal="soft"] { transform: translateY(0.75rem); filter: blur(4px); transition: opacity 0.6s ease, transform 0.7s var(--ease), filter 0.7s ease; }
.js [data-reveal="soft"].is-in { filter: none; }
.js [data-reveal].is-in { transform: none; }
/* photographs inside revealed cards settle from a slight zoom */
.js [data-reveal] img { transition: transform 1.1s var(--ease); }
.js [data-reveal]:not(.is-in) img { transform: scale(1.06); }
/* headings: the accent words rise in just after the line */
.js [data-reveal] .hl { display: inline-block; transition: transform 0.6s var(--ease) 0.12s, opacity 0.6s ease 0.12s; }
.js [data-reveal]:not(.is-in) .hl { opacity: 0; transform: translateY(0.4em); }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal="left"], .js [data-reveal="right"], .js [data-reveal="soft"], .js [data-reveal]:not(.is-in) img, .js [data-reveal]:not(.is-in) .hl { transform: none; filter: none; opacity: 1; }
}
/* items of a revealed list or grid arrive one after another */
.js .reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease calc(var(--i, 0) * 70ms + 120ms), transform 0.6s var(--ease) calc(var(--i, 0) * 70ms + 120ms); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal-stagger > * { opacity: 1; transform: none; } }

/* home, "Coming up" strip over the foot of the hero: a solid dark backing so the dates and titles always read */
@media (min-width: 761px) {
    .upcoming {
        background: linear-gradient(180deg, rgb(var(--rgb-maroon-950) / 0.88) 0%, rgb(var(--rgb-maroon-950) / 0.96) 100%) !important;
        border-top: 1px solid rgb(177 145 81 / 0.35);
    }
}

/* home, Recent highlights: the photo fills its frame edge to edge, so no background shows at the corners */
.reel__stage { border-radius: 20px !important; background: transparent !important; isolation: isolate; }
.reel__slide, .reel__slide img, .reel__slide picture { border-radius: 0 !important; }
.reel__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel__stage::after { border-radius: 14px; }

/* inner-page hero: the description runs across 70% of the width on larger screens */
@media (min-width: 761px) {
    body:not(.page-home) .h-hero__intro { max-width: 70% !important; }
}

/* quote cards (Our Patron / Our Founder): the interlocking-circle pattern instead of the diamond lattice */
.fg-quote {
    background:
        var(--pat-motif),
        radial-gradient(20rem 12rem at 100% 0%, rgb(var(--rgb-gold-500) / 0.22), transparent 62%),
        linear-gradient(160deg, var(--c-maroon-800) 0%, var(--c-maroon-950) 100%) !important;
}

/* Vision page, The Motto panel: the same maroon card as the quote cards (no pattern) */
.v-motto__grid > div:first-child {
    background:
        radial-gradient(22rem 14rem at 100% 0%, rgb(var(--rgb-gold-500) / 0.22), transparent 62%),
        linear-gradient(160deg, var(--c-maroon-800) 0%, var(--c-maroon-950) 100%) !important;
    border-bottom: 4px solid var(--c-gold-500);
}
.v-motto__grid > div:first-child::before, .v-motto__grid > div:first-child::after { border-color: rgb(var(--rgb-gold-500) / 0.2) !important; }
.v-motto__title span:last-child { color: #d2ba8b !important; }
.v-motto .eyebrow--light { color: #d2ba8b !important; }

/* Student Council: smaller names in the leader cards (head boy / girl and the levels below) */
.sc-level--0 .sc-node__name { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem) !important; }
.sc-node__name { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem) !important; }

/* Admission: the office details beside a photo of the school entrance */
.ad-contact__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ad-contact__wrap .ad-contact__inner { justify-items: start; text-align: left; max-width: none; }
.ad-contact__photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px; box-shadow: var(--p-shadow-2); }
.ad-contact__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
@media (max-width: 860px) {
    .ad-contact__wrap { grid-template-columns: 1fr; }
    .ad-contact__wrap .ad-contact__inner { justify-items: center; text-align: center; }
}

/* ==========================================================================
   Admission, Who can register (redesign): two wide cards, photo with the class name on the left, a large age number
   and the details on the right; the conditions below as ticked items on a soft panel.
   ========================================================================== */
.ad-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); }
.ad-who__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); overflow: hidden; background: #fff; border: 1px solid var(--c-line); border-radius: 24px; box-shadow: var(--p-shadow-1); transition: transform 0.35s var(--ease), box-shadow 0.35s ease; }
.ad-who__card:hover { transform: translateY(-4px); box-shadow: var(--p-shadow-2); }
.ad-who__photo { position: relative; min-height: 15rem; margin: 0; overflow: hidden; background: var(--c-maroon-800); }
.ad-who__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform 0.8s var(--ease); }
.ad-who__card:hover .ad-who__photo img { transform: scale(1.05); }
.ad-who__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(var(--rgb-maroon-950) / 0.75) 0%, transparent 55%); }
.ad-who__tag { position: absolute; left: 1.1rem; bottom: 1rem; z-index: 1; font-family: var(--f-serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1; color: #fff; }
.ad-who__body { display: grid; align-content: center; gap: 0.9rem; padding: clamp(1.25rem, 2.6vw, 2rem); }
.ad-who__age { display: flex; align-items: center; gap: 0.7rem; margin: 0; }
.ad-who__age b { font-family: var(--f-serif); font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem); font-weight: 600; line-height: 0.9; color: var(--c-teal); }
.ad-who__age span { display: grid; font-size: 0.95rem; font-weight: 700; color: var(--c-maroon-900); }
.ad-who__age small { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); }
.ad-who__text { margin: 0; font-size: 0.97rem; line-height: 1.6; color: var(--c-text); }
.ad-who__seats { justify-self: start; margin: 0; padding: 0.45rem 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-maroon-900); background: rgb(var(--rgb-gold-500) / 0.18); border-radius: 999px; }
.ad-who__seats b { font-size: 1rem; }

.ad-who__notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 2rem; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding: clamp(1.25rem, 3vw, 2rem); list-style: none; background: #fff; border: 1px solid var(--c-line); border-radius: 24px; }
.ad-who__notes li { position: relative; padding-left: 2.1rem; font-size: 1rem; line-height: 1.55; color: var(--c-ink); }
.ad-who__notes li::before { content: ""; position: absolute; left: 0; top: 0.1rem; width: 1.35rem; height: 1.35rem; background: rgb(var(--rgb-gold-500) / 0.18); border-radius: 50%; }
.ad-who__notes li::after { content: ""; position: absolute; left: 0.47rem; top: 0.33rem; width: 0.38rem; height: 0.65rem; border: solid var(--c-gold-700); border-width: 0 2px 2px 0; transform: rotate(45deg); }

@media (max-width: 1100px) { .ad-who { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .ad-who__card { grid-template-columns: 1fr; }
    .ad-who__photo { min-height: 12rem; }
    .ad-who__notes { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Headlines: the second-coloured words are set in italic everywhere (Fraunces has a true italic).
   ========================================================================== */
body main .hl, body:not(.page-home) main .hl,
body:not(.page-home) .h-hero__line:last-child:not(:first-child), body:not(.page-home) .h-hero .hl,
.page-home .hero__title-line:last-child,
.cal__title span, .v-motto__title span:last-child, .h-closing__motto span:last-child,
body:not(.page-home) main .cal__title span, body:not(.page-home) main .v-motto__title span:last-child {
    font-style: italic !important;
    font-weight: 600 !important;
}

/* home hero: a larger headline (it wraps on narrow phones instead of running off the screen) */
.page-home .hero__title { font-size: clamp(2.5rem, 1rem + 4.8vw, 5.1rem); line-height: 1.02; }
@media (max-width: 760px) { .page-home .hero__title-line { white-space: normal; } }

/* ==========================================================================
   Home, From the Principal (redesign): one rounded maroon panel, portrait filling its left side with a name badge,
   the message in large type on the right with a big quote mark, the signature and a button.
   ========================================================================== */
.pr2-section { background: transparent; }
.pr2 {
    position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; border-radius: 32px;
    background:
        var(--pat-motif),
        radial-gradient(34rem 20rem at 100% 0%, rgb(177 145 81 / 0.2), transparent 62%),
        linear-gradient(135deg, var(--c-maroon-950) 0%, var(--c-maroon-800) 100%);
    box-shadow: 0 40px 80px -40px rgb(var(--rgb-maroon-950) / 0.7);
}
.pr2__photo { position: relative; min-height: 28rem; margin: 0; overflow: hidden; }
.pr2__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform 1s var(--ease); }
.pr2:hover .pr2__photo img { transform: scale(1.04); }
.pr2__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(var(--rgb-maroon-950) / 0.7) 0%, transparent 42%), linear-gradient(90deg, transparent 70%, rgb(var(--rgb-maroon-900) / 0.5) 100%); pointer-events: none; }

.pr2__body { position: relative; display: grid; align-content: center; gap: 1.1rem; padding: clamp(2rem, 4.5vw, 4rem) clamp(1.75rem, 4.5vw, 4.5rem); color: rgb(255 255 255 / 0.92); }
.pr2__body .eyebrow { margin: 0; color: #b29253; }
.pr2__mark { position: absolute; right: clamp(1.25rem, 3vw, 2.5rem); top: clamp(0.5rem, 2vw, 1.25rem); font-family: var(--f-serif); font-size: clamp(7rem, 12vw, 11rem); line-height: 1; color: #b19151; opacity: 0.18; pointer-events: none; }
.pr2__quote { position: relative; margin: 0; }
.pr2__quote p { margin: 0; font-family: var(--f-serif); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; color: #fff; }
.pr2__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1rem 1.5rem; margin-top: 0.6rem; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / 0.18); }
.pr2__sign { display: grid; gap: 0.15rem; margin: 0; }
.pr2__sign-name { font-family: var(--f-serif); font-size: 1.25rem; font-weight: 600; color: #fff; }
.pr2__sign-role { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #d2ba8b; }

@media (max-width: 900px) {
    .pr2 { grid-template-columns: 1fr; }
    .pr2__photo { min-height: 22rem; }
}

/* ---- colours: the section tagline and the second-coloured words of every headline ---- */
.eyebrow, .eyebrow--light, body:not(.page-home) .h-hero__eyebrow { color: #b29253 !important; }
.hl, body main .hl, body:not(.page-home) main .hl, .page-home .hero__title-line:last-child,
body:not(.page-home) .h-hero__line:last-child:not(:first-child), body:not(.page-home) .h-hero .hl,
.cal__title span, .v-motto__title span:last-child, .h-closing__motto span:last-child { color: #b29253 !important; }
:root { --c-teal: #b29253; }

/* ==========================================================================
   Home, "Coming up" (redesign): a floating rounded card that straddles the foot of the hero. A "Coming up" pill on the
   left, each event as a small tile (gold date badge + title), and a "Full calendar" button on the right.
   ========================================================================== */
.upcoming { background: transparent !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.upcoming .container { position: relative; }
.upcoming .ticker {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin: 0 !important; padding: 1rem 1.25rem 1rem 1.1rem !important;
    background:
        radial-gradient(26rem 10rem at 100% 0%, rgb(177 145 81 / 0.2), transparent 62%),
        linear-gradient(135deg, var(--c-maroon-950) 0%, var(--c-maroon-800) 100%) !important;
    border: 1px solid rgb(255 255 255 / 0.1) !important; border-top: 3px solid #b19151 !important; border-radius: 26px !important;
    box-shadow: 0 30px 60px -28px rgb(var(--rgb-maroon-950) / 0.75);
}
.upcoming .ticker__title { padding: 0.7rem 1.15rem; color: #d2ba8b; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(210 186 139 / 0.4); border-radius: 999px; white-space: nowrap; }

.upcoming .ticker__list { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: stretch; gap: 0.75rem; margin: 0; padding: 0; list-style: none; min-width: 0; }
.upcoming .ticker__list li { flex: 1 1 13rem; display: flex; align-items: center; gap: 0.85rem; padding: 0.55rem 0.9rem 0.55rem 0.55rem !important; margin: 0 !important; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.09); border-radius: 18px; border-left: 1px solid rgb(255 255 255 / 0.09) !important; transition: background-color 0.25s ease, transform 0.3s var(--ease); }
.upcoming .ticker__list li:hover { background: rgb(255 255 255 / 0.12); transform: translateY(-2px); }
.upcoming .ticker__list time {
    flex: none; display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 0.1rem; min-width: 3.5rem; padding: 0.45rem 0.4rem;
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #193d2d;
    background: linear-gradient(145deg, #d2ba8b 0%, #b19151 55%, #927335 100%); border-radius: 14px; border: 0 !important;
}
.upcoming .ticker__list strong { font-family: var(--f-serif); font-size: 1.35rem; font-weight: 700; line-height: 1; color: #193d2d; }
.upcoming .ticker__list li > span { font-size: 0.92rem; font-weight: 600; line-height: 1.3; color: #fff; }
.upcoming .ticker .link-arrow { flex: none; margin: 0 0 0 auto !important; padding: 0.75rem 1.2rem !important; font-size: 0.82rem; font-weight: 700; color: #193d2d !important; background: linear-gradient(120deg, #d2ba8b 0%, #b19151 50%, #927335 100%); border: 0 !important; border-radius: 999px; box-shadow: 0 10px 22px -12px rgb(146 115 53 / 0.85); transition: transform 0.25s var(--ease), box-shadow 0.25s ease; }
.upcoming .ticker .link-arrow:hover { color: #193d2d !important; transform: translateY(-2px); }

@media (min-width: 761px) {
    .upcoming { margin-top: -3.4rem !important; background: transparent !important; }
    .page-home .hero__controls { bottom: calc(3.4rem + 1.4rem) !important; }
}
@media (max-width: 760px) {
    .upcoming { margin-top: 0; padding-top: 1rem; }
    .upcoming .ticker { padding: 1rem !important; }
    .upcoming .ticker__list { flex-direction: column; width: 100%; }
    .upcoming .ticker__list li { flex: 1 1 auto; width: 100%; }
    .upcoming .ticker .link-arrow { margin: 0 !important; justify-self: start; }
}

/* Our Founder / Our Patron pages: smaller type in the story column */
body:not(.page-home) .fg-text__title { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.75rem) !important; line-height: 1.1; }
.fg-text p { font-size: 1rem; line-height: 1.75; }
.fg-text .fg-text__lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.55; }
.fg-text .eyebrow { font-size: 0.72rem; }

/* Admission, registration notes: each condition is its own soft tile with a ticked circle, evenly spaced; the last one runs full width */
.ad-who__notes { gap: 0.85rem !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; margin-top: clamp(1.5rem, 3vw, 2.25rem) !important; }
.ad-who__notes li {
    display: flex; align-items: flex-start; gap: 0.9rem; min-height: 4.25rem; padding: 1.05rem 1.3rem !important;
    font-size: 0.98rem; line-height: 1.55; color: var(--c-ink);
    background: linear-gradient(145deg, #ffffff 0%, #fff8ef 100%); border: 1px solid var(--c-line); border-radius: 18px; box-shadow: var(--p-shadow-1);
}
.ad-who__notes li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ad-who__notes li::before { position: static !important; flex: none; width: 1.6rem; height: 1.6rem; margin-top: 0.05rem; background: linear-gradient(145deg, #d2ba8b, #b19151); border-radius: 50%; }
.ad-who__notes li::after { left: calc(1.3rem + 0.5rem) !important; top: calc(1.05rem + 0.3rem) !important; border-color: #193d2d !important; }
@media (max-width: 600px) { .ad-who__notes li:last-child:nth-child(odd) { grid-column: auto; } }

/* ==========================================================================
   Admission, Office (redesign): one rounded maroon panel. Left: label, title, two info rows with round icons (hours, phone with
   call buttons) and the Prospectus button. Right: the school entrance photograph filling the panel edge to edge.
   ========================================================================== */
.ad-contact { text-align: left; }
.ad-off { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); overflow: hidden; border-radius: 32px; background: radial-gradient(30rem 16rem at 0% 0%, rgb(177 145 81 / 0.16), transparent 62%), var(--pat-motif), linear-gradient(135deg, var(--c-maroon-950) 0%, var(--c-maroon-800) 100%); box-shadow: 0 40px 80px -40px rgb(var(--rgb-maroon-950) / 0.7); }
.ad-off__body { display: grid; align-content: center; justify-items: start; gap: 1.2rem; padding: clamp(1.75rem, 4vw, 3.5rem); color: rgb(255 255 255 / 0.9); }
.ad-off__body .eyebrow { margin: 0; }
.ad-off__title { margin: 0; font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem) !important; color: #fff !important; }
.ad-off__rows { display: grid; gap: 0.9rem; width: 100%; margin: 0.3rem 0 0.2rem; padding: 0; list-style: none; }
.ad-off__rows li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: 0.35rem; align-items: center; padding: 1rem 1.15rem; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.12); border-radius: 20px; }
.ad-off__icon { grid-row: span 3; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; color: #193d2d; background: linear-gradient(145deg, #d2ba8b, #b19151 60%, #927335); border-radius: 50%; }
.ad-off__rows li:first-child .ad-off__icon { grid-row: span 2; }
.ad-off__icon .icon { width: 1.25rem; height: 1.25rem; }
.ad-off__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #d2ba8b; }
.ad-off__value { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); font-weight: 700; line-height: 1.3; color: #fff; }
.ad-off__phones { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ad-off__phones a { padding: 0.5rem 1.05rem; font-size: 1.02rem; font-weight: 700; color: #fff; text-decoration: none !important; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(210 186 139 / 0.5); border-radius: 999px; transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease); }
.ad-off__phones a:hover { color: #193d2d; background: linear-gradient(120deg, #d2ba8b, #b19151); transform: translateY(-2px); }
.ad-off__note { font-size: 0.8rem; color: rgb(255 255 255 / 0.65); }
.ad-off__btn { margin-top: 0.3rem; }
.ad-off__btn .icon { width: 1rem; height: 1rem; }
.ad-off__photo { position: relative; min-height: 22rem; margin: 0; overflow: hidden; }
.ad-off__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform 1s var(--ease); }
.ad-off:hover .ad-off__photo img { transform: scale(1.04); }
.ad-off__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--rgb-maroon-900) / 0.55) 0%, transparent 35%); pointer-events: none; }
@media (max-width: 900px) {
    .ad-off { grid-template-columns: 1fr; }
    .ad-off__photo { min-height: 16rem; order: -1; }
    .ad-off__photo::after { background: linear-gradient(0deg, rgb(var(--rgb-maroon-900) / 0.5) 0%, transparent 40%); }
}

/* Admission, Office: a light warm panel (white to soft peach) with maroon text, instead of the dark maroon one */
.ad-off { background: radial-gradient(30rem 16rem at 0% 0%, rgb(177 145 81 / 0.18), transparent 62%), linear-gradient(135deg, #ffffff 0%, #fff4e6 60%, #ffe9d2 100%); border: 1px solid var(--c-line); box-shadow: var(--p-shadow-2); }
.ad-off__body { color: var(--c-text); }
.ad-off__title { color: var(--c-maroon-900) !important; }
.ad-off__rows li { background: rgb(255 255 255 / 0.75); border-color: var(--c-line); box-shadow: var(--p-shadow-1); }
.ad-off__label { color: #7c612c; }
.ad-off__value { color: var(--c-maroon-900); }
.ad-off__phones a { color: var(--c-maroon-900); background: #fff; border-color: rgb(177 145 81 / 0.7); }
.ad-off__note { color: var(--c-muted); }
.ad-off__photo::after { background: linear-gradient(90deg, rgb(255 244 230 / 0.35) 0%, transparent 30%); }
@media (max-width: 900px) { .ad-off__photo::after { background: linear-gradient(0deg, rgb(255 244 230 / 0.3) 0%, transparent 40%); } }

/* accent words and labels that sit on photographs or dark maroon use the light gold so they stay readable */
.page-home .hero__title-line:last-child, body:not(.page-home) .h-hero__line:last-child:not(:first-child), body:not(.page-home) .h-hero .hl,
.hl.hl--light, :is(.section--dark, .v-mission, .achievements, .recognition, .ad-select, .upcoming, .site-footer, .sc-box--dark, .pr2) .hl,
.v-motto__title span:last-child { color: #d8c297 !important; }
.page-home .hero__eyebrow, body:not(.page-home) .h-hero__eyebrow, .eyebrow--light { color: #d8c297 !important; }

/* ==========================================================================
   Home, From the Principal (redesign 2): a light card. The message is set in Manrope (sans) with a gold side bar, the name in
   Fraunces italic; the portrait sits in an arch with a gold outline behind it.
   ========================================================================== */
.pr3 {
    position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3.5rem) clamp(1.75rem, 5vw, 4.5rem);
    background: radial-gradient(28rem 16rem at 0% 0%, rgb(177 145 81 / 0.14), transparent 62%), linear-gradient(135deg, #ffffff 0%, #fbf4ea 100%);
    border: 1px solid var(--c-line); border-radius: 32px; box-shadow: var(--p-shadow-2); overflow: hidden;
}
.pr3::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 5px; background: linear-gradient(180deg, #d2ba8b, #b19151 60%, #927335); border-radius: 0 6px 6px 0; }
.pr3__body { position: relative; display: grid; gap: 1.2rem; }
.pr3__body .eyebrow { margin: 0; }
.pr3__mark { position: absolute; left: -0.6rem; top: 1.4rem; font-family: var(--f-serif); font-size: clamp(6rem, 10vw, 9rem); line-height: 1; color: #b19151; opacity: 0.16; pointer-events: none; }
.pr3__quote { position: relative; margin: 0; }
.pr3__quote p { margin: 0; font-family: var(--f-sans); font-size: clamp(1.2rem, 1rem + 0.95vw, 1.8rem); font-weight: 500; line-height: 1.5; letter-spacing: -0.012em; color: var(--c-maroon-900); }
.pr3__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--c-line); }
.pr3__sign { display: grid; gap: 0.2rem; margin: 0; }
.pr3__name { font-family: var(--f-serif); font-size: 1.3rem; font-style: italic; font-weight: 600; color: var(--c-maroon-900); }
.pr3__role { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #927335; }

.pr3__photo { position: relative; justify-self: center; width: min(100%, 22rem); margin: 0; }
.pr3__photo img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px !important; box-shadow: 0 28px 50px -28px rgb(var(--rgb-maroon-950) / 0.6); }
.pr3__ring { position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; border: 2px solid #b19151; border-radius: 26px; opacity: 0.55; transition: transform 0.6s var(--ease); }
.pr3:hover .pr3__ring { transform: translate(0.35rem, 0.35rem); }

@media (max-width: 900px) {
    .pr3 { grid-template-columns: 1fr; padding: 1.75rem 1.4rem 2rem 1.6rem; }
    .pr3__photo { order: -1; width: min(70%, 17rem); }
}

/* ==========================================================================
   Home, Recognition (redesign): a light section. Heading and button on one row; below, four numbered honour cards on the left
   and the three certificates, framed and lightly staggered, on the right.
   ========================================================================== */
.recognition.rc-section { color: var(--c-text); background: linear-gradient(180deg, #fffaf3 0%, #f6efe3 100%) !important; }
.rc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.rc-head .h2 { margin: 0; color: var(--c-maroon-900) !important; }
.rc-head .eyebrow { color: #b29253; }
.rc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; }

.rc-honours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.85rem, 1.6vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.rc-card { position: relative; display: grid; align-content: start; gap: 0.55rem; padding: 1.5rem 1.4rem 1.4rem; overflow: hidden; background: linear-gradient(150deg, #ffffff 0%, #fff7ec 100%); border: 1px solid var(--c-line); border-top: 3px solid #b19151; border-radius: 22px; box-shadow: var(--p-shadow-1); transition: transform 0.35s var(--ease), box-shadow 0.35s ease; }
.rc-card:hover { transform: translateY(-5px); box-shadow: var(--p-shadow-2); }
.rc-card__no { position: absolute; right: 1rem; top: 0.55rem; font-family: var(--f-serif); font-size: 3rem; font-weight: 700; line-height: 1; color: #b19151; opacity: 0.18; }
.rc-card__source { margin: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #927335; }
.rc-card__title { margin: 0; font-family: var(--f-serif); font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); font-weight: 600; line-height: 1.2; color: var(--c-maroon-900); }
.rc-card__text { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--c-text); }

.rc-certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.6rem, 1.2vw, 1rem); align-items: start; }
.rc-cert { margin: 0; padding: 0.4rem; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; box-shadow: var(--p-shadow-2); transition: transform 0.4s var(--ease); }
.rc-cert:nth-child(2) { margin-top: 1.75rem; }
.rc-cert:nth-child(3) { margin-top: 0.75rem; }
.rc-cert:hover { transform: translateY(-6px); }
.rc-cert img { display: block; width: 100%; height: auto; border-radius: 9px !important; }

@media (max-width: 1000px) { .rc-grid { grid-template-columns: 1fr; } .rc-certs { max-width: 32rem; } }
@media (max-width: 560px) { .rc-honours { grid-template-columns: 1fr; } .rc-cert:nth-child(n) { margin-top: 0; } }

/* ==========================================================================
   Footer (redesign): a deep maroon gradient with a clearly visible ring pattern. Top row: brand and motto, registration button,
   social icons. Four columns: contact with round icons, two link lists with gold arrow bullets, office hours as small tiles.
   ========================================================================== */
:root {
    --pat-footer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 8L8 0M-2 2L2 -2M6 10L10 6' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3Cpath d='M0 0L8 8M-2 6L2 10M6 -2L10 2' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}
.site-footer.ft {
    position: relative; padding: 0; font-size: 0.95rem; line-height: 1.6; color: rgb(255 255 255 / 0.78); border-top: 0 !important;
    background:
        var(--pat-footer),
        radial-gradient(44rem 22rem at 100% 0%, rgb(177 145 81 / 0.22), transparent 62%),
        radial-gradient(36rem 20rem at 0% 100%, rgb(var(--rgb-maroon-700) / 0.55), transparent 60%),
        linear-gradient(160deg, var(--c-maroon-950) 0%, var(--c-maroon-800) 100%) !important;
}
.site-footer.ft::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #927335, #d2ba8b 50%, #927335); }
.ft a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.ft a:hover { color: #d8c297; }

.ft__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: clamp(1.75rem, 3.5vw, 2.5rem); border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.ft__id { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.ft__motto { margin: 0; padding-left: 1.75rem; border-left: 2px solid rgb(216 194 151 / 0.5); font-family: var(--f-serif); font-size: 1.2rem; font-style: italic; color: #d8c297; }
.ft__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.ft__social { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.ft__social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: #fff; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.2); border-radius: 50%; transition: transform 0.25s var(--ease), background-color 0.25s ease, color 0.25s ease; }
.ft__social a:hover { color: #193d2d; background: linear-gradient(135deg, #d2ba8b, #b19151); transform: translateY(-3px); }
.ft__social .icon { width: 1.05rem; height: 1.05rem; }

.ft__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: clamp(1.5rem, 3vw, 3rem); padding-block: clamp(2rem, 4vw, 3rem); }
.ft__heading { position: relative; margin: 0 0 1.1rem; padding-bottom: 0.7rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.ft__heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.25rem; height: 2px; background: linear-gradient(90deg, #d2ba8b, #927335); border-radius: 2px; }
.ft__col ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }

.ft__contact { gap: 0.9rem !important; }
.ft__contact li { display: flex; align-items: flex-start; gap: 0.8rem; }
.ft__contact address { font-style: normal; color: #fff; }
.ft__ico { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; color: #193d2d; background: linear-gradient(145deg, #d8c297, #b19151); border-radius: 50%; }
.ft__ico .icon { width: 0.95rem; height: 0.95rem; }
.ft__directions { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; padding: 0.5rem 1rem; font-weight: 700; color: #d8c297 !important; border: 1px solid rgb(216 194 151 / 0.5); border-radius: 999px; }
.ft__directions:hover { color: #193d2d !important; background: linear-gradient(135deg, #d8c297, #b19151); }
.ft__directions .icon { width: 0.85rem; height: 0.85rem; }

.ft__links li a { position: relative; display: inline-block; padding-left: 1.15rem; }
.ft__links li a::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.45rem; height: 0.45rem; border-top: 2px solid #b19151; border-right: 2px solid #b19151; transform: rotate(45deg); transition: transform 0.25s var(--ease), border-color 0.2s ease; }
.ft__links li a:hover { transform: translateX(3px); }
.ft__links li a:hover::before { transform: translateX(3px) rotate(45deg); border-color: #d8c297; }

.ft__hours { gap: 0.7rem !important; }
.ft__hours li { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.1); border-radius: 16px; }
.ft__hours-text { display: grid; gap: 0.1rem; }
.ft__hours-label { font-size: 0.72rem; line-height: 1.35; color: rgb(255 255 255 / 0.65); }
.ft__hours-value { font-weight: 700; color: #fff; }

.ft__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.1rem 1.4rem; border-top: 1px solid rgb(255 255 255 / 0.14); font-size: 0.8rem; color: rgb(255 255 255 / 0.62); }
.ft__base p { margin: 0; }
.ft__base .site-footer__credit a { color: #d8c297; font-weight: 700; }

@media (max-width: 1000px) { .ft__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
    .ft__grid { grid-template-columns: 1fr; }
    .ft__motto { padding-left: 0; border-left: 0; }
    .ft__base { flex-direction: column; align-items: flex-start; }
}

/* ---- unique patterns, still tone-on-tone so they blend ----
   Academics: faint graph paper (a notebook grid with stronger lines every 4th square).
   Stats boxes (2014 / 2,200+ / 100% / award): a fine dot grid. */
:root {
    --pat-graph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%23ffffff'%3E%3Cpath d='M24 0V96M48 0V96M72 0V96M0 24H96M0 48H96M0 72H96' stroke-opacity='0.028' stroke-width='1'/%3E%3Cpath d='M0 0.5H96M0.5 0V96' stroke-opacity='0.055' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
    --pat-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='7' cy='7' r='1' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
}
.academics {
    background:
        var(--pat-graph),
        radial-gradient(46rem 26rem at 100% 0%, rgb(var(--rgb-gold-500) / 0.15), transparent 60%),
        var(--c-maroon-900) !important;
}
.stats {
    background:
        var(--pat-dots),
        radial-gradient(40rem 20rem at 0% 100%, rgb(var(--rgb-gold-500) / 0.14), transparent 60%),
        var(--c-maroon-900) !important;
}

/* home, Recent highlights: each story is a soft cream box; the open story is white with a gold bar and a light shadow */
.reel__list { display: grid; gap: 0.75rem; border-top: 0 !important; }
.reel__item { overflow: hidden; background: linear-gradient(145deg, #faf6ee 0%, #f3ead6 100%); border: 1px solid var(--c-line) !important; border-radius: 20px; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.reel__item a { padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.1rem, 2.2vw, 1.6rem) !important; }
.reel__item a::before { top: 0 !important; bottom: 0 !important; width: 4px !important; }
.reel__item:hover { background: linear-gradient(145deg, #fffdf8 0%, #f6eedd 100%); }
.reel__item.is-active { background: #fff; box-shadow: var(--p-shadow-2); }
.reel__item.is-active a { padding-left: calc(clamp(1.1rem, 2.2vw, 1.6rem) + 0.75rem) !important; }

/* Recent highlights: auto-advance progress line along the bottom of the active story */
.reel__item { position: relative; }
.reel__item::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #d2ba8b, #b19151); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.reel.is-playing .reel__item.is-active::after { animation: reel-progress var(--reel-delay, 5000ms) linear infinite; }
@keyframes reel-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .reel__item::after { display: none; } }


/* Hero banners: a little darker overlay on the text side */
body:not(.page-home) .h-hero__shade {
    background:
        linear-gradient(90deg, rgb(var(--rgb-maroon-950) / 0.84) 0%, rgb(var(--rgb-maroon-950) / 0.64) 40%, rgb(var(--rgb-maroon-950) / 0.2) 64%, transparent 82%),
        linear-gradient(0deg, rgb(var(--rgb-maroon-950) / 0.22) 0%, transparent 40%),
        linear-gradient(180deg, rgb(var(--rgb-maroon-950) / 0.28) 0%, transparent 26%) !important;
}
@media (min-width: 761px) {
    .page-home .hero__shade {
        background:
            linear-gradient(90deg, rgb(var(--rgb-maroon-950) / 0.84) 0%, rgb(var(--rgb-maroon-950) / 0.64) 34%, rgb(var(--rgb-maroon-950) / 0.2) 54%, transparent 64%),
            linear-gradient(180deg, rgb(var(--rgb-maroon-950) / 0.55) 0%, transparent 18%) !important;
    }
}

/* Recognition: gradient background (no pattern) */
.recognition:not(.rc-section) {
    background-image:
        radial-gradient(46rem 28rem at 100% 0%, rgb(177 145 81 / 0.28), transparent 62%),
        radial-gradient(40rem 24rem at 0% 100%, rgb(var(--rgb-maroon-700) / 0.55), transparent 60%),
        linear-gradient(135deg, var(--c-maroon-950) 0%, var(--c-maroon-800) 100%) !important;
}

/* Assessment contents sidebar: same style as the Mandatory Public Disclosures sidebar */
.as-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.as-side__label { margin: 0 0 0.75rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-gold-700); }
.as-side ol { display: grid; margin: 0; padding: 0; list-style: none; border-top: 0; }
.as-side li:first-child a { border-top: 1px solid var(--c-line); }
.as-side a { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0; font-family: var(--f-sans); font-size: 0.9375rem; font-weight: 400; line-height: 1.35; color: var(--c-text); background: none; border-left: 0; border-bottom: 1px solid var(--c-line); transition: color 0.2s ease; }
.as-side a span { flex: none; min-width: 1.5rem; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.04em; color: var(--c-gold-700); }
.as-side a:hover, .as-side a:focus-visible { background: none; color: var(--c-maroon-900); }
.as-side a[aria-current="true"] { background: none; border-left: 0; font-weight: 600; color: var(--c-maroon-900); }
@media (max-width: 960px) { .as-side { position: static; } .as-side ol { display: flex; flex-wrap: wrap; gap: 0.5rem; } .as-side a, .as-side li:first-child a { padding: 0.5rem 0.9rem; border: 1px solid var(--c-line); border-radius: 3px; } .as-side a span { display: none; } .as-side a[aria-current="true"] { border-color: var(--c-gold-500); } }

/* Recent highlights: smaller story headlines */
.reel__title { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem) !important; line-height: 1.12; }
.as-side a, .as-side a span, .as-side__label { font-size-adjust: 0.49; }

/* Mandatory Public Disclosures: clean section backgrounds (no beige strips behind headings) and tidier section design */
.ds-main .ds-block, body:not(.page-home) .ds-main .ds-block.lp-soft { background: none !important; background-image: none !important; }
.ds-main .ds-block { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.ds-main .ds-block .md-title { margin-bottom: clamp(1.4rem, 2.6vw, 2rem); padding-bottom: 0.9rem; border-bottom: 0; background: none; position: relative; }
.ds-main .ds-block .md-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 4.5rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #d2ba8b, #b19151); }
.ds-main .md-facts, .ds-main .md-scroll { background: linear-gradient(180deg, #ffffff 0%, #fdfaf4 100%); border: 1px solid var(--c-line); border-radius: 20px; box-shadow: var(--p-shadow-1); }
.ds-main .md-facts > div:nth-child(even) { background: rgb(246 242 235 / 0.55); }
.ds-main .md-facts dt { color: var(--c-maroon-800); }

/* Event cards: only the inner card lifts on hover (the outer wrapper stayed put and looked like a second card) */
body:not(.page-home) ul li.ev-card, body:not(.page-home) ul li.ev-card:hover { transform: none !important; box-shadow: none !important; border-color: transparent !important; background: none !important; border: 0 !important; }

/* History, campus photos: two rows of two framed landscape photographs */
.h-campus__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: none !important; height: auto !important; gap: clamp(1rem, 2.2vw, 1.75rem) !important; }
.h-campus__photo { position: relative; aspect-ratio: 16 / 10; padding: 0.65rem; overflow: visible; background: linear-gradient(145deg, #fffdf8 0%, #f3ead6 100%); border: 1px solid var(--c-line); border-radius: 28px !important; box-shadow: var(--p-shadow-1); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.h-campus__photo:hover { transform: translateY(-6px); box-shadow: var(--p-shadow-2); }
.h-campus__link { position: relative !important; inset: auto !important; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 20px; }
.h-campus__photo img { border-radius: 0 !important; }
@media (max-width: 600px) { .h-campus__grid { grid-template-columns: 1fr !important; } }

/* Campus photos: uneven boxes, a wide and a narrow photo in each row (the widths swap in the second row) */
.h-campus__grid { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; grid-template-rows: clamp(16rem, 30vw, 27rem) clamp(15rem, 24vw, 21rem) !important; }
.h-campus__photo { aspect-ratio: auto !important; grid-column: span 6; }
.h-campus__photo--1 { grid-column: span 7; }
.h-campus__photo--2 { grid-column: span 5; }
.h-campus__photo--3 { grid-column: span 5; }
.h-campus__photo--4 { grid-column: span 7; }
@media (max-width: 600px) { .h-campus__grid { grid-template-columns: 1fr !important; grid-template-rows: none !important; } .h-campus__photo, .h-campus__photo--1, .h-campus__photo--2, .h-campus__photo--3, .h-campus__photo--4 { grid-column: auto; aspect-ratio: 4 / 3 !important; } }

/* Campus photos: no frame, the photographs sit directly in the uneven boxes */
.h-campus__photo { padding: 0 !important; background: none !important; border: 0 !important; border-radius: 24px !important; overflow: hidden !important; }
.h-campus__link { border-radius: 24px; }

/* Assessment term cards: light cream cards with dark text instead of the dark maroon ones */
body:not(.page-home) .a-term { color: var(--c-text) !important; background: linear-gradient(145deg, #ffffff 0%, #f6efe0 100%) !important; border: 1px solid var(--c-line) !important; box-shadow: var(--p-shadow-1); }
.a-block .a-term .a-term__name, .a-term__name { color: var(--c-maroon-900) !important; }
.a-block .a-term__name small, .a-term__name small { color: #a07d37 !important; }
.a-term .a-sum > div { border-top-color: var(--c-line); }
.a-term .a-sum dt { color: var(--c-ink); }
.a-term .a-sum dd { color: #a07d37; }
.a-term .a-sum__total { background: linear-gradient(120deg, #e7d8ba 0%, #d2ba8b 100%); }
.a-term .a-sum__total dt, .a-term .a-sum__total dd { color: var(--c-maroon-900); }

/* Assessment section heads: tagline and headline styled like the homepage section headings (gold line before the tagline, big bold headline) */
body .as-layout .a-block__eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; margin: 0 0 0.9rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #b29253; }
body .as-layout .a-block__eyebrow::before { content: ""; width: 1.4rem; height: 2px; background: var(--c-amber); border-radius: 2px; }
body .as-layout .a-block__title { margin: 0; font-size: clamp(2rem, 1.5rem + 1.8vw, 3.1rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--c-ink); text-wrap: balance; }
body .as-layout #examinations .a-block__title { color: #fff; }
body .as-layout #examinations .a-block__eyebrow { color: #d8c297; }

/* Disclosures section headings: same headline style as the assessment and homepage section headings */
body .ds-main .ds-block .md-title { font-size: clamp(2rem, 1.5rem + 1.8vw, 3.1rem); font-weight: 600 !important; line-height: 1.1; letter-spacing: -0.02em !important; color: var(--c-ink); text-wrap: balance; }
body .md-title { font-size: clamp(2rem, 1.5rem + 1.8vw, 3.1rem); font-weight: 600 !important; line-height: 1.1; letter-spacing: -0.02em !important; text-wrap: balance; }

/* White page background on every page; the cards that used to be white get a warm cream fill so they still stand out */
html, body { background: #fff !important; background-image: none !important; }
main > section.fill-light, body:not(.page-home) :is(.lp-soft, .section--soft, .cal, .sc-ncc, .ad-contact, .hx, .ds-block) { background: #fff !important; background-image: none !important; }
.md-facts, .md-scroll, .ds-main .md-facts, .ds-main .md-scroll { background: linear-gradient(145deg, #fbf5e8 0%, #f3e8d0 100%) !important; border-color: #dfd4bf !important; }
.md-facts > div, .ds-main .md-facts > div:nth-child(even) { background: none; border-color: #dfd4bf; }
.md-scroll td { border-color: #dfd4bf !important; }
body:not(.page-home) .md-scroll tbody tr:nth-child(even) td { background: rgb(255 255 255 / 0.45); }
.md-docs, .md-docs li { border-color: #dfd4bf; }
.md-docs { background: linear-gradient(145deg, #fbf5e8 0%, #f3e8d0 100%) !important; border-color: #dfd4bf !important; }

/* Contact page: more space between the sections */
body.page-contact main > section.section { padding-block: clamp(3rem, 6vw, 5rem) !important; }
body.page-contact main > section.section + section.section { margin-top: clamp(0.5rem, 1.5vw, 1.25rem); }

/* Contact, "A day at SFS Academy" (school hours and times to meet): a warm cream gradient background */
body.page-contact .ct-day { background: radial-gradient(40rem 20rem at 100% 0%, rgb(210 186 139 / 0.28), transparent 65%), linear-gradient(160deg, #fbf5e8 0%, #f3e8d0 100%) !important; }

/* Management page, Our staff: the same faint graph-paper grid used on the homepage Academics section */
body .m-staff { background: var(--pat-graph), radial-gradient(46rem 26rem at 100% 0%, rgb(var(--rgb-gold-500) / 0.15), transparent 60%), var(--c-maroon-900) !important; }

/* CCA, "What we offer" (redesign): one rounded maroon panel. The description on the left, the two facts (grades, day) as
   glass tiles with a big gold value on the right. */
body .cca-offer { padding-block: clamp(2.5rem, 5vw, 4rem); }
body .cca-offer__top { position: relative; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.75rem, 4.5vw, 3.75rem); overflow: hidden; border-radius: 32px; background: var(--pat-motif), radial-gradient(34rem 18rem at 100% 0%, rgb(210 186 139 / 0.22), transparent 62%), linear-gradient(135deg, var(--c-maroon-950) 0%, var(--c-maroon-800) 100%); box-shadow: 0 40px 80px -44px rgb(var(--rgb-maroon-950) / 0.75); }
body .cca-offer .eyebrow { color: #d8c297 !important; }
body .cca-offer__text { margin-top: 1.1rem; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); line-height: 1.8; color: rgb(255 255 255 / 0.9); }
body .cca-facts { display: grid; gap: 0.9rem; border-top: 0; }
body .cca-facts > div { position: relative; padding: 1.3rem 1.5rem 1.3rem 1.75rem; overflow: hidden; color: #fff; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); border-radius: 22px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body .cca-facts > div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, #d2ba8b, #b19151); }
body .cca-facts dt { color: #d8c297; }
body .cca-facts dd { margin-top: 0.45rem; color: #fff; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); }
@media (max-width: 960px) { body .cca-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { body .cca-facts { grid-template-columns: 1fr; } }

/* Facilities: the description in the dark card is normal sans text in white (not the gold serif) */
body .fc-card__lead, body .fc-card__more, body .fc-card__text p { font-family: var(--f-sans) !important; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem) !important; font-weight: 400 !important; font-style: normal !important; line-height: 1.8 !important; color: #fff !important; }
body .fc-card__lead, body .fc-card__more, body .fc-card__text p { font-size-adjust: 0.49 !important; letter-spacing: 0 !important; }

/* Facility pages: space between the description card and the "Facilities" list below it */
body main > section.fc-feature { padding-bottom: clamp(2.5rem, 5vw, 4.25rem) !important; }
body main > section.fc-more { padding-top: clamp(2.5rem, 5vw, 4.25rem) !important; }

/* Homepage: space between the principal card and the Student Life section */
body.page-home main > section.principal { padding-bottom: clamp(3rem, 6vw, 5rem) !important; }
body.page-home main > section.principal + section { padding-top: clamp(1.5rem, 3vw, 2.5rem) !important; }

/* Programme pages, "What is studied": a warm cream gradient background; the stage card goes white so it stands out */
body .pg-schemes { background: radial-gradient(40rem 20rem at 100% 0%, rgb(210 186 139 / 0.28), transparent 65%), linear-gradient(160deg, #fbf5e8 0%, #f3e8d0 100%) !important; }
body .pg-schemes .pg-stage { background: #fff !important; }

/* Admission, "Mandatory documents": a warm cream gradient background; the upload note turns white so it stands out */
body .ad-docs { background: radial-gradient(40rem 20rem at 100% 0%, rgb(210 186 139 / 0.28), transparent 65%), linear-gradient(160deg, #fbf5e8 0%, #f3e8d0 100%) !important; }
body .ad-docs :is(.ad-docs__note, .ad-note) { background: #fff !important; }
body .ad-docs :is(.ad-docs__list li, ol li, ul li) { border-color: #dfd4bf; }
body .ad-docs .ad-docs__format { background: #fff !important; }

/* Clubs intro (redesign): a rounded cream panel with a big gold quote mark. The quote runs on the left, the description
   sits in a second column behind a gold rule. */
body .cl-intro { padding-block: clamp(2.5rem, 5vw, 4.5rem); text-align: left; }
body .cl-intro__inner { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "eyebrow eyebrow" "text more"; column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 1.4rem; justify-items: start; align-items: center; max-width: none; padding: clamp(2rem, 5vw, 4rem); overflow: hidden; background: radial-gradient(34rem 18rem at 100% 0%, rgb(210 186 139 / 0.3), transparent 62%), linear-gradient(145deg, #fffdf8 0%, #f6ecd6 100%); border: 1px solid #dfd4bf; border-top: 5px solid #b19151; border-radius: 32px; box-shadow: var(--p-shadow-2); }
body .cl-intro__inner::before { content: "\201C"; position: absolute; right: clamp(1rem, 4vw, 3rem); top: -1.2rem; font-family: var(--f-serif); font-size: clamp(9rem, 16vw, 15rem); font-weight: 700; line-height: 1; color: rgb(177 145 81 / 0.16); pointer-events: none; }
body .cl-intro .eyebrow { grid-area: eyebrow; margin: 0; }
body .cl-intro .eyebrow::after { display: none; }
body .cl-intro__text { grid-area: text; margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 600; line-height: 1.3; color: var(--c-maroon-900); text-wrap: balance; }
body .cl-intro__more { grid-area: more; position: relative; max-width: none; margin: 0; padding-left: clamp(1.25rem, 2.5vw, 2rem); font-size: 1.0625rem; line-height: 1.8; color: var(--c-text); border-left: 3px solid #b19151; }
@media (max-width: 900px) { body .cl-intro__inner { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "text" "more"; } body .cl-intro__more { padding-left: 1.1rem; } }
body .cl-intro__inner::before { content: none !important; }

/* Academic calendar: responsive. The month tabs scroll sideways inside their row instead of stretching the whole page. */
body.page-calendar main, body.page-calendar main > section, body.page-calendar .container { min-width: 0; max-width: 100%; }
body.page-calendar .cal__nav, body.page-calendar .cal__tabs, body.page-calendar .cal__panel, body.page-calendar .cal__layout > * { min-width: 0; }
body.page-calendar .cal__tabs { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
body.page-calendar .cal__tabs button { scroll-snap-align: start; }
@media (max-width: 960px) {
    body.page-calendar .cal__side { flex-direction: column; align-items: stretch; }
    body.page-calendar .cal__layout { padding: 0.5rem; }
}
@media (max-width: 520px) {
    body.page-calendar .cal__panel { border-radius: 22px; }
    body.page-calendar .cal__tabs button { min-width: 3.6rem; padding: 0.45rem 0.7rem; }
    body.page-calendar .cal__cell { font-size: 0.8rem; }
}

/* Home hero: a darker overlay on the text side (desktop and tablet) */
@media (min-width: 761px) {
    body.page-home .hero__shade {
        background:
            linear-gradient(90deg, rgb(var(--rgb-maroon-950) / 0.93) 0%, rgb(var(--rgb-maroon-950) / 0.8) 34%, rgb(var(--rgb-maroon-950) / 0.4) 54%, rgb(var(--rgb-maroon-950) / 0.08) 68%, transparent 76%),
            linear-gradient(180deg, rgb(var(--rgb-maroon-950) / 0.55) 0%, transparent 18%) !important;
    }
}

/* Homepage testimonials: three cream quote cards with a gold mark, on a soft gradient band */
.testimonials { background: radial-gradient(40rem 20rem at 0% 0%, rgb(210 186 139 / 0.25), transparent 62%), linear-gradient(160deg, #fbf5e8 0%, #f3e8d0 100%) !important; }
.tm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; }
.tm-card { position: relative; display: grid; align-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 2.6vw, 2.25rem); overflow: hidden; background: #fff; border: 1px solid #dfd4bf; border-top: 4px solid #b19151; border-radius: 26px; box-shadow: var(--p-shadow-1); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.tm-card:hover { transform: translateY(-5px); box-shadow: var(--p-shadow-2); }
.tm-card__mark { position: absolute; right: 1.25rem; top: -0.4rem; font-family: var(--f-serif); font-size: 6.5rem; font-weight: 700; line-height: 1; color: rgb(177 145 81 / 0.16); pointer-events: none; }
.tm-card__quote { position: relative; margin: 0; font-family: var(--f-serif); font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem); font-weight: 500; line-height: 1.6; color: var(--c-maroon-900); }
.tm-card__who { display: flex; align-items: center; gap: 0.85rem; padding-top: 1.1rem; border-top: 1px solid #efe3c8; }
.tm-card__avatar { display: grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; font-family: var(--f-serif); font-size: 1.2rem; font-weight: 700; color: #193d2d; background: linear-gradient(145deg, #d8c297, #b19151); border-radius: 50%; }
.tm-card__who b { display: block; color: var(--c-ink); }
.tm-card__who small { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7c612c; }
@media (max-width: 960px) { .tm-grid { grid-template-columns: 1fr; } }
.tm-card__avatar::before { content: ""; width: 1.15rem; height: 1.15rem; background: #193d2d; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5Z'/%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'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Testimonials slider: the cards sit in one row that snaps into place (3 on desktop, 2 on tablet, 1 on phones) */
.tm-grid { display: flex !important; gap: clamp(1rem, 2vw, 1.75rem); overflow-x: auto; padding: 0.5rem 0.25rem 1.5rem; margin-inline: -0.25rem; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tm-grid::-webkit-scrollbar { display: none; }
.tm-grid > .tm-card { flex: 0 0 calc((100% - 2 * clamp(1rem, 2vw, 1.75rem)) / 3); scroll-snap-align: start; }
.tm-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.5rem; }
.tm-slider:not(.is-ready) .tm-controls { display: none; }
.tm-arrow { display: grid; place-items: center; width: 3rem; height: 3rem; color: var(--c-maroon-900); background: #fff; border: 1px solid #dfd4bf; border-radius: 50%; cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.tm-arrow:hover { color: #193d2d; background: linear-gradient(135deg, #d8c297, #b19151); transform: translateY(-2px); }
.tm-arrow .icon { width: 1.15rem; height: 1.15rem; }
.tm-dots { display: flex; align-items: center; gap: 0.5rem; }
.tm-dots button { width: 0.65rem; height: 0.65rem; padding: 0; background: #d9c7a0; border: 0; border-radius: 999px; cursor: pointer; transition: width 0.3s ease, background-color 0.3s ease; }
.tm-dots button.is-active { width: 2rem; background: linear-gradient(90deg, #b19151, #927335); }
@media (max-width: 960px) { .tm-grid > .tm-card { flex-basis: calc((100% - clamp(1rem, 2vw, 1.75rem)) / 2); } }
@media (max-width: 640px) { .tm-grid > .tm-card { flex-basis: 100%; } }

/* Testimonial cards (refined): a gold quote badge, a soft cream gradient, a gold line that grows on hover. No arrow buttons, just the dots. */
.tm-arrow { display: none !important; }
.tm-controls { margin-top: 0.25rem; }
.tm-grid { padding-top: 1.75rem; }
.tm-card { gap: 1.4rem; padding: clamp(2.2rem, 3vw, 2.6rem) clamp(1.5rem, 2.6vw, 2.2rem) clamp(1.4rem, 2.4vw, 1.9rem); background: linear-gradient(160deg, #ffffff 0%, #fbf5e8 100%); border: 1px solid #ecdfc3; border-top: 1px solid #ecdfc3; border-radius: 28px; box-shadow: 0 24px 44px -30px rgb(var(--rgb-maroon-950) / 0.35); overflow: visible; }
.tm-card::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, #d2ba8b, #b19151, #927335); transform: scaleX(0.35); transform-origin: center; transition: transform 0.45s ease; }
.tm-card:hover { transform: translateY(-6px); box-shadow: 0 34px 56px -30px rgb(var(--rgb-maroon-950) / 0.45); }
.tm-card:hover::after { transform: scaleX(1); }
.tm-card__mark { position: absolute; left: 1.6rem; top: -1.35rem; right: auto; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding-top: 0.55rem; font-family: var(--f-serif); font-size: 3rem; font-weight: 700; line-height: 1; color: #193d2d; background: linear-gradient(145deg, #e7d8ba, #b19151); border-radius: 50%; box-shadow: 0 10px 20px -10px rgb(177 145 81 / 0.8), 0 0 0 5px #fbf5e8; }
.tm-card__quote { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); font-weight: 500; line-height: 1.7; color: var(--c-ink); }
.tm-card__who { gap: 0.9rem; padding-top: 1.1rem; border-top: 1px dashed #d2c5aa; }
.tm-card__avatar { width: 3rem; height: 3rem; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #d2ba8b; }
.tm-card__who b { font-family: var(--f-serif); font-size: 1.08rem; font-weight: 600; color: var(--c-maroon-900); }
.tm-card__who small { margin-top: 0.1rem; color: #927335; }

/* Testimonial slider: room above and below the cards so the quote badge, the hover lift and the shadow are never clipped */
.tm-grid { padding: 2.75rem 1rem 3rem !important; margin: -1.25rem -1rem 0 !important; scroll-padding-left: 1rem; }
.tm-grid > .tm-card { flex-basis: calc((100% - 2 * clamp(1rem, 2vw, 1.75rem)) / 3) !important; }
@media (max-width: 960px) { .tm-grid > .tm-card { flex-basis: calc((100% - clamp(1rem, 2vw, 1.75rem)) / 2) !important; } }
@media (max-width: 640px) { .tm-grid > .tm-card { flex-basis: 100% !important; } }
.tm-card { align-content: start; }
.tm-card__who { margin-top: auto; }
.tm-controls { margin-top: 0; }

/* Homepage: space between the "Coming up" strip and the Welcome section */
body.page-home main > section.welcome { padding-top: clamp(3rem, 6vw, 5rem) !important; }

/* Gallery cards: the headline sits inside the photograph, on a dark fade at the bottom */
body .gl-card a { position: relative; display: block; overflow: hidden; background: var(--c-maroon-950); }
body .gl-card__img, body .gl-card__img img { display: block; width: 100%; }
body .gl-card__img img { aspect-ratio: 288 / 299; }
body .gl-card a::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgb(var(--rgb-maroon-950) / 0.92) 0%, rgb(var(--rgb-maroon-950) / 0.78) 22%, rgb(var(--rgb-maroon-950) / 0.35) 48%, transparent 68%); transition: opacity 0.4s ease; }
body .gl-card__title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.1rem 1.25rem 1.2rem; color: #fff !important; background: none !important; text-shadow: 0 2px 10px rgb(0 0 0 / 0.5); }
body .gl-card__title .icon { color: #d8c297 !important; }
body .gl-card a:hover .gl-card__title .icon { transform: translateX(4px); }
body .gl-card__title { border-top: 0 !important; }
body .gl-grid { gap: clamp(1.1rem, 2.4vw, 2rem) !important; }
body .gl-card__title { font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.1rem) !important; line-height: 1.25 !important; }
body .stats { border-radius: 20px !important; overflow: hidden; }

/* Event cards: a short description under the headline (the opening of the event story, three lines at most) */
.ev-card a { display: flex; flex-direction: column; }
.ev-card__title { flex: 0 0 auto !important; }
.ev-card__text { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; padding: 0.15rem 0.8rem 0.5rem; font-size: 0.9rem; line-height: 1.6; color: var(--c-text); }

/* Newsletter: search box at the right end of the year tabs */
.nl-filter { align-items: center; }
.nl-search { position: relative; display: flex; align-items: center; margin-left: auto; width: min(100%, 17rem); }
.nl-search .icon { position: absolute; left: 0.95rem; width: 1.05rem; height: 1.05rem; color: #7c612c; pointer-events: none; }
.nl-search input { width: 100%; min-height: 2.6rem; padding: 0 1rem 0 2.6rem; font: inherit; font-size: 0.92rem; color: var(--c-ink); background: #fff; border: 1px solid var(--c-line); border-radius: 999px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.nl-search input:focus { outline: 0; border-color: #b19151; box-shadow: 0 0 0 3px rgb(177 145 81 / 0.22); }
.nl-none { margin: 1.5rem 0 0; padding: 1.25rem; text-align: center; color: var(--c-muted); background: #fbf5e8; border-radius: 16px; }
.nl-none[hidden] { display: none; }
@media (max-width: 640px) { .nl-search { width: 100%; margin-left: 0; order: 5; } }
