/* coffee brown and gold: colour variables */
html:root {
    --c-maroon-950: #142f23; --c-maroon-900: #173527; --c-maroon-800: #1c3e2e; --c-maroon-700: #254f3c; --c-maroon-650: #2d5d48; --c-maroon-600: #377157;
    --rgb-maroon-950: 20 47 35; --rgb-maroon-900: 23 53 39; --rgb-maroon-800: 28 62 46; --rgb-maroon-700: 37 79 60;
    --c-gold-700: #796131; --c-gold-500: #c19e59; --c-gold-300: #e3cda1; --c-gold-200: #f5e3bd;
    --rgb-gold-700: 121 97 49; --rgb-gold-500: 193 158 89; --rgb-gold-300: 227 205 161;
    --c-ink: #1b2922; --c-text: #364e43; --c-muted: #4f7262; --c-soft: #f7f0e6; --c-cream: #f3e7d8; --c-line: #eadfd1;
    --c-teal: #c19e59; --c-amber: #c19e59; --c-navy: #254f3c;
}
/* ---- layout.css, recoloured ---- */
/* ==========================================================================
   SFS Academy — Layout: brand, header, navigation, mobile menu, footer
   ========================================================================== */

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.8rem; color: inherit; }

.brand__emblem {
    width: 4rem;
    height: 4rem;
    flex: none;
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease;
}

.brand__text { display: grid; gap: 0.3rem; line-height: 1; }

.brand__name {
    font-family: var(--f-serif); font-size-adjust: 0.4;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    white-space: nowrap;
}

.brand__place {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.75;
    white-space: nowrap;
}

.brand--sm .brand__emblem { width: 2.5rem; height: 2.5rem; }
.brand--sm .brand__name { font-size: 1.3rem; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    color: var(--c-white);
    transition: color 0.3s ease;
}

.utility-bar {
    height: 2.25rem;
    overflow: hidden;
    font-size: 0.75rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.14);
    transition: height 0.3s ease, opacity 0.3s ease;
}

.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 100%; }
.utility-bar__note { opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility-bar__sep { margin-inline: 0.5rem; opacity: 0.6; }
.utility-bar__links { display: flex; gap: 1.5rem; }
.utility-bar__links a { opacity: 0.85; white-space: nowrap; transition: opacity 0.2s; }
.utility-bar__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.25em; }

.masthead {
    position: relative;
    isolation: isolate;
    height: var(--header-h);
    transition: height 0.3s ease;
}

.masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--c-white);
    box-shadow: 0 1px 0 var(--c-line), 0 8px 24px -16px rgb(var(--rgb-maroon-950) / 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 100%; }
.masthead__actions { display: flex; align-items: center; gap: 1rem; }

.site-header.is-solid,
.site-header.has-mega { color: var(--c-ink); }
.site-header.is-solid .utility-bar { height: 0; opacity: 0; }
/* While a menu is open over the hero, the top bar gets its own dark background and light text so it stays readable */
.utility-bar { transition: height 0.3s ease, opacity 0.3s ease, background-color 0.25s ease, color 0.25s ease; }
.site-header.has-mega:not(.is-solid) .utility-bar { color: var(--c-white); background: var(--c-maroon-950); }
.site-header.is-solid .masthead { height: 4.25rem; }
.site-header.is-solid .masthead::before,
.site-header.has-mega .masthead::before { opacity: 1; }
.site-header.is-solid .brand__emblem { width: 3.6rem; height: 3.6rem; }
.site-header.is-solid .brand__name,
.site-header.has-mega .brand__name { color: var(--c-maroon-700); }

/* ---------- Primary navigation ---------- */
/* The nav fills the whole masthead height, so the pointer never crosses a dead gap between a menu item and its panel */
.primary-nav { align-self: stretch; display: flex; }
.primary-nav__list { display: flex; align-items: stretch; gap: 0.1rem; height: 100%; }
.primary-nav__item { position: static; display: flex; align-items: stretch; }

.primary-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 2.75rem;
    padding: 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
}

.primary-nav__link::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: calc(50% - 1.4rem);
    height: 2px;
    background: var(--c-gold-500);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.primary-nav__link:hover::after,
.primary-nav__item.is-open > .primary-nav__link::after,
.primary-nav__item.is-current > .primary-nav__link::after { transform: scaleX(1); }

.primary-nav__chevron { width: 0.85rem; height: 0.85rem; opacity: 0.7; transition: transform 0.3s var(--ease); }
.primary-nav__item.is-open .primary-nav__chevron { transform: rotate(180deg); }

/* ---------- Mega panel (submenu): light panel, intro on the left, ruled link list, photo with caption beneath ---------- */
.mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    color: var(--c-ink);
    background: linear-gradient(180deg, #fff 0%, #f6f2eb 100%);
    border-top: 3px solid var(--c-gold-500);
    border-bottom: 1px solid rgb(var(--rgb-gold-700) / 0.25);
    box-shadow: 0 30px 50px -28px rgb(var(--rgb-maroon-950) / 0.45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.primary-nav__item.is-open > .mega,
.no-js .primary-nav__item:hover > .mega,
.no-js .primary-nav__item:focus-within > .mega {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}

.mega__inner {
    display: grid;
    grid-template-columns: 3fr 6.5fr 3fr;
    gap: clamp(1.75rem, 3.5vw, 3.5rem);
    align-items: start;
    padding-block: 2.25rem 2.5rem;
}

.mega__intro { padding: 0.25rem 0 0.25rem clamp(0.9rem, 1.6vw, 1.4rem); border-left: 4px solid var(--c-gold-500); }
.mega__title { margin-bottom: 0.7rem; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 600; line-height: 1.05; color: var(--c-maroon-900, var(--c-maroon-950)); }
.mega__text { max-width: 20rem; color: rgb(var(--rgb-maroon-950) / 0.7); font-size: 0.9375rem; line-height: 1.65; }

.mega__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.25rem, 2.5vw, 2.5rem); align-content: start; margin: 0; padding: 0; list-style: none; }
.mega__links li { border-bottom: 1px solid rgb(var(--rgb-gold-700) / 0.22); }

.mega__links a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 3.5rem;
    padding: 0.5rem 0.25rem;
    color: var(--c-maroon-900, var(--c-maroon-950));
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s ease, padding-left 0.25s var(--ease), background-color 0.2s ease;
}

.mega__no { flex: none; min-width: 1.6rem; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: 1.05rem; font-style: normal; font-weight: 600; color: var(--c-gold-700); font-variant-numeric: tabular-nums; }
.mega__label { flex: 1; }
.mega__links a .icon { flex: none; width: 0.9rem; height: 0.9rem; color: var(--c-gold-700); opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.2s ease, transform 0.25s var(--ease); }

.mega__links a:hover,
.mega__links a:focus-visible { padding-left: 0.75rem; color: var(--c-gold-700); background: rgb(var(--rgb-gold-500) / 0.14); }
.mega__links a:hover .icon,
.mega__links a:focus-visible .icon { opacity: 1; transform: none; }

.mega__figure { margin: 0; }
.mega__figure img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 15px; box-shadow: 0 16px 30px -20px rgb(var(--rgb-maroon-950) / 0.6); transition: transform 0.6s var(--ease); }
.mega__figure:hover img { transform: scale(1.02); }
.mega__figure figcaption { margin-top: 0.7rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-gold-700); }

.mega-scrim {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: -1;
    height: 100vh;
    background: rgb(var(--rgb-maroon-950) / 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.site-header.has-mega .mega-scrim { opacity: 1; }

/* ---------- Menu toggle ---------- */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 0.7rem;
    height: 2.75rem;
    padding-left: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.menu-toggle__bars { display: grid; gap: 6px; width: 1.5rem; }
.menu-toggle__bars span { display: block; height: 2px; background: currentColor; }

@media (max-width: 1100px) {
    .utility-bar__note { display: none; }
    .utility-bar__inner { justify-content: flex-end; }
}

@media (max-width: 1200px) {
    .primary-nav,
    .masthead__cta { display: none; }
    .menu-toggle { display: inline-flex; }
}

@media (max-width: 760px) {
    :root { --header-h: 4.25rem; }
    .utility-bar { display: none; }
    .brand__emblem { width: 2.9rem; height: 2.9rem; }
    .brand__name { font-size: 1.3rem; }
    .site-header.is-solid .masthead { height: 4rem; }
    .site-header.is-solid .brand__emblem { width: 2.6rem; height: 2.6rem; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--c-maroon-900);
    color: var(--c-white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }

.mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.mobile-menu__close {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mobile-menu__nav { flex: 1; padding-block: 1rem 2rem; }
.mobile-menu__item { border-bottom: 1px solid rgb(255 255 255 / 0.12); }

.mobile-menu__link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    font-family: var(--f-serif); font-size-adjust: 0.4;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: left;
}

.mobile-menu__toggle .icon { margin-left: auto; width: 1.25rem; height: 1.25rem; transition: transform 0.3s var(--ease); }
.mobile-menu__toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }

.mobile-menu__sub ul { display: grid; gap: 0.1rem; padding: 0 0 1rem; }
.mobile-menu__sub a { display: block; padding: 0.45rem 0; font-size: 1rem; color: rgb(255 255 255 / 0.78); }
.mobile-menu__sub a:hover { color: var(--c-gold-300); }

.mobile-menu__foot { display: grid; gap: 1.5rem; padding-block: 1.5rem 2.5rem; border-top: 1px solid rgb(255 255 255 / 0.12); }
.mobile-menu__foot .btn { justify-self: start; }
.mobile-menu__utility { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.875rem; }
.mobile-menu__utility a { color: rgb(255 255 255 / 0.75); }
.mobile-menu__contact { display: grid; gap: 0.25rem; font-size: 0.9375rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--c-maroon-950);
    border-top: 3px solid var(--c-gold-500);
    color: rgb(255 255 255 / 0.72);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.site-footer a { transition: color 0.2s ease; }
.site-footer a:hover { color: var(--c-gold-300); }

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 3.5rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.site-footer__brand { color: var(--c-white); }
.site-footer__motto { font-family: var(--f-serif); font-size-adjust: 0.4; font-size: 1.25rem; font-style: italic; color: var(--c-gold-300); }

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
    gap: 2.5rem;
    padding-block: 3.5rem;
}

.site-footer__heading {
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-gold-300);
}

.site-footer__col { display: grid; gap: 0.6rem; align-content: start; }
.site-footer__col ul { display: grid; gap: 0.45rem; }
.site-footer__col address { color: var(--c-white); }

.site-footer__directions { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--c-gold-300); }
.site-footer__directions .icon { width: 0.9rem; height: 0.9rem; }

.site-footer__hours { display: grid; gap: 0.75rem; }
.site-footer__hours dt { font-size: 0.8125rem; opacity: 0.8; }
.site-footer__hours dd { color: var(--c-white); }

.site-footer__base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-block: 1.5rem 2rem;
    border-top: 1px solid rgb(255 255 255 / 0.12);
    font-size: 0.8125rem;
}

.site-footer__social { display: flex; gap: 0.5rem; }

.site-footer__social a {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgb(255 255 255 / 0.25);
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-footer__social a:hover { background: var(--c-gold-500); border-color: var(--c-gold-500); color: var(--c-maroon-950); }
.site-footer__social .icon { width: 1rem; height: 1rem; }

@media (max-width: 960px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .site-footer__base { flex-direction: column; align-items: flex-start; }
}

.site-footer__credit a { color: var(--c-gold-300); font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: rgb(var(--rgb-gold-300) / 0.4); transition: text-decoration-color 0.2s; }
.site-footer__credit a:hover { text-decoration-color: currentColor; }

.utility-bar__managed { color: var(--c-gold-300); font-weight: 600; transition: opacity 0.2s; }
.utility-bar__managed:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.utility-bar__note { opacity: 1; }
.utility-bar__note, .utility-bar__sep { color: inherit; }

.utility-bar__social { display: flex; align-items: center; gap: 0.85rem; margin: 0; padding: 0; list-style: none; border: 0; }
.utility-bar__social a { display: grid; place-items: center; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.utility-bar__social a:hover { opacity: 1; color: var(--c-gold-300); }
.utility-bar__social .icon { width: 0.95rem; height: 0.95rem; }

/* Top bar: affiliation text on the left; Mandatory Public Disclosure, Parent Login and the social icons grouped on the right */
.utility-bar__inner { justify-content: flex-start; gap: 1.5rem; }
.utility-bar__links { margin-left: auto; }

/* Submenu panel: no introduction text, only as wide as its links and photograph, and centred under the header. */
.mega { left: 0; right: 0; width: max-content; max-width: calc(100vw - 2rem); margin-inline: auto; border-radius: 0 0 6px 6px; border-left: 1px solid rgb(var(--rgb-gold-700) / 0.25); border-right: 1px solid rgb(var(--rgb-gold-700) / 0.25); }
.mega .mega__inner { width: auto; margin: 0; grid-template-columns: minmax(18rem, auto) 14rem; gap: clamp(1.5rem, 2.5vw, 2.5rem); padding: 1.75rem 2rem 2rem; }
.mega .mega__links { grid-template-columns: repeat(2, minmax(14rem, auto)); }

/* ---- headings.css, recoloured ---- */
/* ==========================================================================
   Inner pages: section headlines use the same type as the home page's section headlines (.h2 in base.css):
   Lora, semibold, 1.1 line height, the same fluid size. Only the type is set here; colours and spacing stay with each
   section. The home page is left alone.
   ========================================================================== */
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: var(--f-serif);
    font-size-adjust: 0.4;
    font-size: clamp(2.125rem, 1.55rem + 1.9vw, 3.25rem);
    font-style: normal;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.005em;
    text-wrap: balance;
}

/* ==========================================================================
   A fine diamond pattern on a few plain light sections of the inner pages. Not on the section right after the hero banner,
   and not on data-heavy sections (tables, lists, documents, galleries).
   ========================================================================== */
body:not(.page-home) :is(
    .hx,                                       /* history: managers */
    .ad-contact                                /* admission: contact */
) {
    background-image:
        repeating-linear-gradient(45deg, rgb(var(--rgb-maroon-800) / 0.045) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(-45deg, rgb(var(--rgb-maroon-800) / 0.045) 0 1px, transparent 1px 28px);
}

/* ==========================================================================
   Inner-page hero banners: the text stays left-aligned, the block of breadcrumb, label, headline and intro sits at the
   left and is centred vertically in the banner, with smaller gaps between its lines.
   ========================================================================== */
.h-hero { display: flex; align-items: flex-end; min-height: clamp(26rem, 50vh, 32rem); }
.h-hero__content { text-align: left; padding-top: calc(var(--header-h) + 2.25rem + 0.75rem); }
.h-hero .crumbs ol { justify-content: flex-start; margin-bottom: 0.85rem; }
.h-hero__eyebrow { margin-bottom: 0.45rem; }
.h-hero__intro { max-width: 40rem; margin: 0.8rem 0 0; }

/* ---- modern.css, recoloured ---- */
/* ==========================================================================
   A cleaner, more current look over the whole site: bold sans-serif headlines, white and cool-grey surfaces, larger rounded
   corners, soft light shadows, flat colour bands instead of heavy gradients and patterns, and more white space.
   Loaded last so it can refine the page styles without rewriting them.
   ========================================================================== */
:root {
    --section-y: clamp(5rem, 3.5rem + 6vw, 9rem);
    --soft-shadow: 0 14px 36px -16px rgb(25 47 37 / 0.16);
    --card-radius: 20px;
}

/* ---- headlines: bold, tight, upright ---- */
.h2, .h-display, .md-title, .a-block__title, .pg-title, .fg-text__title, .fc-card__title, .cca-row__title,
.h-hero__title, .hero__title, .hx__name, .hy__name, .cl-club__text strong, .vv-text p, .hs-open__text,
.pg-stage__head h3, .sc-box__role, .gl-tab__year {
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    font-style: normal !important;
}
.h-hero__line:last-child, .hero__title em { font-style: normal !important; font-weight: 700 !important; }
.h2, .pg-title, .md-title, body:not(.page-home) :is(.h2, .h-display, .md-title, .a-block__title, .pg-title) {
    font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.6rem);
    line-height: 1.08;
}
body { line-height: 1.7; }

/* ---- hero banners: a flat bottom edge with rounded corners instead of the curve ---- */
.h-hero::after { display: none !important; }
.h-hero { border-radius: 0 0 clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.75rem); }
.h-hero__content { padding-bottom: clamp(2.5rem, 5vw, 4rem) !important; }

/* ---- photographs and cards: larger rounded corners, soft shadows ---- */
.vv-photo, .cl-club__photo, .cca-row__photo, .cca-intro__photo, .hs-open__photo, .pg-photo, .hs-banner,
.a-beyond__photo, .as-open__photo, .s-cong__patron img, .s-cong__founder, .hx__tile, .hy__card, .sc-box,
.gl-card a, .fc-gallery__item, .fc-photo, .ev-video, .ev-more-side, .cv-thumb, .vm-photo img, .pg-stage,
.a-term, .a-note, .nl-doc, .hs-open__copy, .pg-intro__text, .vv-panel, .cl-club--banner .cl-club__body,
.cca-intro__copy, .pg-tiles--lang li, .hs-lane {
    border-radius: var(--card-radius) !important;
}
.vv-photo, .cl-club__photo, .cca-row__photo, .cca-intro__photo, .hs-open__photo, .pg-photo, .hs-banner,
.a-beyond__photo, .hx__tile, .hy__card, .sc-box, .gl-card a, .fc-gallery__item, .ev-video, .ev-more-side,
.pg-stage, .a-term, .nl-doc, .hs-open__copy, .pg-intro__text, .vv-panel, .cl-club--banner .cl-club__body, .cca-intro__copy {
    box-shadow: var(--soft-shadow) !important;
}
.vv-panel { border-radius: 0 0 var(--card-radius) var(--card-radius) !important; }

/* buttons and chips are pills */
.btn, .pg-grades li, .nl-btn, .gl-tab, .cca-row__items li, .pg-tabs__list button, .pg-tabs__list { border-radius: 999px !important; }
.pg-grades li, .cca-row__items li { border-radius: 999px !important; }

/* ---- flat bands and no patterns ---- */
.hx, .ad-contact { background-image: none !important; }
.v-mission, .achievements, .recognition, .upcoming, .site-footer, .ct-day, .sc-box--dark, .hy__card--current, .hx__tile::after {
    background-image: none;
}
.v-mission, .achievements, .recognition { background-color: var(--c-maroon-800); }
.pg-stage__head { background: var(--c-soft) !important; }

/* ---- sections breathe ---- */
.section { padding-block: var(--section-y); }
/* ---- inner pages: the section after a hero banner starts right under it, with the room inside its own top padding ---- */
.h-hero + * { margin-top: 0 !important; padding-top: clamp(3.5rem, 6vw, 6rem) !important; }
/* inner-page hero: the text and the badge sit lower in the banner (about 70% of its height) */
.h-hero__content { padding-bottom: clamp(2.25rem, 4.4vw, 4rem) !important; }
.h-hero__badge { bottom: clamp(2.25rem, 4.4vw, 4rem); }

/* gallery year tabs: a straight underline that slides in from the left on hover and stays on the selected tab */
.gl-tab { position: relative; border-radius: 0 !important; border-bottom: 0 !important; background: none !important; transition: color 0.25s ease, transform 0.25s var(--ease); }
.gl-tab::after { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: -1px; height: 3px; background: var(--c-gold-500); border-radius: 3px 3px 0 0; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--ease), background-color 0.25s ease; }
.gl-tab:hover { color: var(--c-maroon-900); background: none !important; transform: translateY(-2px); }
.gl-tab:hover::after { transform: scaleX(1); background: rgb(var(--rgb-gold-500) / 0.45); }
.gl-tab:hover .gl-tab__count { color: var(--c-gold-700); }
.gl-tab[aria-selected="true"]::after { transform: scaleX(1); background: var(--c-gold-500); }
.gl-tabs__bar { border-bottom: 1px solid var(--c-line); }

/* the "more" list in the event sidebar: seven items, no scroll bar */
.ev-more-side__list { max-height: none !important; overflow: visible !important; }
.ev-side { max-height: none; }

/* ---- fresh.css, recoloured ---- */
/* ==========================================================================
   A fresher, brighter finish, loaded last: two-style headlines (upright + italic gradient), gradient buttons, quicker
   scroll reveals and a few extra scroll effects.
   ========================================================================== */
:root {
    --g-bright: linear-gradient(100deg, #796131 0%, #254f3c 58%, #254f3c 100%);
    --g-btn: linear-gradient(135deg, #796131 0%, #254f3c 100%);
    --g-btn-alt: linear-gradient(135deg, #254f3c 0%, #2d5d48 55%, #796131 100%);
}

/* ---- buttons: gradient fills that slide on hover ---- */
.btn--gold, .btn--primary, .nl-btn {
    color: #fff !important;
    border-color: transparent !important;
    background-size: 180% 100% !important;
    background-position: 0% 0 !important;
    box-shadow: 0 10px 24px -12px rgb(37 79 60 / 0.45);
    transition: background-position 0.45s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s ease !important;
}
.btn--gold, .nl-btn { background-image: var(--g-btn) !important; background-color: #254f3c !important; }
.btn--primary { background-image: var(--g-btn-alt) !important; background-color: #254f3c !important; }
.btn--gold:hover, .btn--primary:hover, .nl-btn:hover { background-position: 100% 0 !important; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgb(37 79 60 / 0.5); }

/* ---- reveals: shorter, no long stagger, start before the section reaches the screen ---- */
.js [data-reveal] { transform: translateY(0.9rem); transition: opacity 0.45s ease, transform 0.55s var(--ease); transition-delay: calc(var(--d, 0) * 40ms); }
.js [data-reveal="zoom"] { transition-duration: 0.6s; transform: scale(0.97); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---- extra motion: lift on hover, a soft light follows the scroll ---- */
.hx__tile, .hy__card, .gl-card a, .sc-box, .a-term, .ev-card, .vv-pillars li { transition: transform 0.35s var(--ease), box-shadow 0.35s ease; }
.hx__tile:hover, .hy__card:hover, .gl-card a:hover, .sc-box:hover, .a-term:hover, .ev-card:hover { transform: translateY(-6px); }

body { background: #fff; }

/* ---- section headlines: a little smaller, light upright words + an italic accent-colour finish ---- */
.h2, .pg-title, .md-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-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
    font-weight: 400 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.12;
}
.hl { font-style: italic !important; font-weight: 400 !important; color: var(--c-gold-700); }
:is(.section--dark, .v-mission, .achievements, .recognition, .ad-select, .upcoming, .site-footer, .sc-box--dark) .hl { color: var(--c-gold-300); }
.js [data-reveal] .hl { display: inline-block; opacity: 0; transform: translateX(-0.3em); transition: opacity 0.5s ease 0.1s, transform 0.5s var(--ease) 0.1s; }
.js [data-reveal].is-in .hl { opacity: 1; transform: none; }
/* ---- inner-page hero titles: the same two-colour finish (light upright words, italic accent words) ---- */
.h-hero__title { font-weight: 400 !important; letter-spacing: -0.02em !important; }
.h-hero__line:last-child:not(:first-child), .h-hero .hl { font-style: italic !important; font-weight: 400 !important; color: var(--c-gold-300) !important; }
.h-hero .hl { display: inline; opacity: 1; transform: none; }

/* accent words on a dark background (found by the headline's own light text colour) */
.hl.hl--light { color: var(--c-gold-300) !important; }

/* ---- home: the principal's message, a little smaller ---- */
.principal__quote p { font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); line-height: 1.4; }

/* ---- photo viewer: the picture fits the screen (no scroll bars), with previous / next / close buttons ---- */
.cv-box { width: fit-content; max-width: 96vw; }
.cv-box > img, .cv-box__scroll img { width: auto !important; height: auto !important; max-width: min(96vw, calc(100vw - 9rem)) !important; max-height: 86vh !important; object-fit: contain; }
.cv-box__scroll { overflow: hidden !important; max-height: none !important; }
.page-certs .cv-box { width: fit-content; }

/* ---- gallery year tabs: no scroll bar (the row still scrolls sideways on small screens) ---- */
.gl-tabs__bar { overflow-y: hidden; scrollbar-width: none; }
.gl-tabs__bar::-webkit-scrollbar { display: none; }

/* ---- history tiles: the dark gradient under the name must stay, so the white text reads on any photograph ---- */
.hx__tile::after { background-image: linear-gradient(0deg, rgb(var(--rgb-maroon-950) / 0.96) 0%, rgb(var(--rgb-maroon-950) / 0.78) 30%, rgb(var(--rgb-maroon-950) / 0.3) 55%, transparent 75%) !important; }
.hx__years { color: var(--c-gold-300) !important; }

/* ---- student council boxes: the dark box lost its gradient to an earlier "no gradients" rule, so give it back ---- */
.sc-box--dark { background-color: var(--c-maroon-800) !important; background-image: linear-gradient(135deg, var(--c-maroon-950) 0%, var(--c-maroon-800) 65%, var(--c-maroon-700) 100%) !important; }

/* ---- footer: tighter, without the extra empty space ---- */
.site-footer__top { padding-block: 1.75rem; gap: 1rem; }
.site-footer__grid { padding-block: 2.25rem; gap: 1.75rem; }
.site-footer__heading { margin-bottom: 0.6rem; }
.site-footer__col { gap: 0.4rem; }
.site-footer__col ul { gap: 0.3rem; }
.site-footer__hours { gap: 0.45rem; }
.site-footer__base { padding-block: 1.1rem 1.25rem; gap: 0.5rem 2rem; }
.site-footer { line-height: 1.6; }

/* ---- scroll bars: slim, rounded, in the site's teal, so they blend with the page ---- */
html { scrollbar-width: thin; scrollbar-color: rgb(var(--rgb-gold-500) / 0.55) transparent; }
* { scrollbar-width: thin; scrollbar-color: rgb(var(--rgb-gold-500) / 0.5) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgb(var(--rgb-gold-500) / 0.5); border: 2px solid transparent; background-clip: padding-box; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--rgb-gold-500) / 0.85); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
html::-webkit-scrollbar-track { background: var(--c-soft); }
html::-webkit-scrollbar { width: 11px; }

/* ---- back to top button: a round button with a progress ring, bottom right ---- */
.to-top {
    position: fixed; right: clamp(1rem, 2.4vw, 1.75rem); bottom: clamp(1rem, 2.4vw, 1.75rem); z-index: 60;
    display: grid; place-items: center; width: 3.1rem; height: 3.1rem; padding: 0; cursor: pointer;
    color: #fff; background: linear-gradient(135deg, #796131, #254f3c); border: 0; border-radius: 50%;
    box-shadow: 0 14px 28px -12px rgb(37 79 60 / 0.7);
    opacity: 0; visibility: hidden; transform: translateY(1rem) scale(0.9);
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s, box-shadow 0.25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 20px 32px -12px rgb(37 79 60 / 0.85); }
.to-top:focus-visible { outline: 3px solid var(--c-gold-300); outline-offset: 3px; }
.to-top svg { position: relative; z-index: 1; }
.to-top__ring { position: absolute; inset: -4px; border-radius: 50%; --p: 0;
    background: conic-gradient(var(--c-gold-300) calc(var(--p) * 360deg), rgb(121 97 49 / 0.22) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); pointer-events: none; }
@media print { .to-top { display: none; } }

/* ---- neighbouring sections with the same background: one block, not two (see modules/sections.js) ---- */
.sec-join { padding-top: 0 !important; }
.sec-join-prev { padding-bottom: clamp(2rem, 4vw, 3.5rem) !important; }
.h-hero + .sec-join { padding-top: 0 !important; }

/* ---- pro.css, recoloured ---- */
/* ==========================================================================
   SFS Academy, professional theme (loaded last).
   Colours come from the school's own site (sfsacademy.com): deep navy #254f3c, teal #796131 and an amber highlight
   #c19e59. 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: #c19e59;
    --c-teal: #94773e;
    --c-navy: #254f3c;
    --p-shadow-1: 0 1px 2px rgb(20 47 35 / 0.05), 0 10px 28px -16px rgb(20 47 35 / 0.18);
    --p-shadow-2: 0 2px 4px rgb(20 47 35 / 0.04), 0 26px 50px -24px rgb(20 47 35 / 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: #e3cda1 !important; }
.h-hero__line:last-child:not(:first-child), .h-hero .hl { font-style: normal !important; font-weight: 600 !important; color: #e3cda1 !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: #796131; }
.eyebrow::before, .eyebrow::after { height: 2px !important; width: 1.4rem !important; background: var(--c-amber) !important; border-radius: 2px; }
.eyebrow--light { color: #e3cda1; }

/* ---------- buttons: solid teal / navy, swapping on hover ---------- */
.btn { font-weight: 700; letter-spacing: -0.005em; }
.btn--gold, .btn--primary, .nl-btn {
    color: #173527 !important; background-color: #c19e59 !important; background-image: linear-gradient(120deg, #e3cda1 0%, #c19e59 45%, #94773e 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: #173527 !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(121 97 49 / 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: #e3cda1; }

/* ---------- 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(121 97 49 / 0.22), transparent 62%),
        radial-gradient(36rem 22rem at 0% 100%, rgb(193 158 89 / 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(121 97 49 / 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(121 97 49 / 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: #e3cda1 !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(20 47 35 / 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(20 47 35 / 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(121 97 49 / 0.22), transparent 62%),
        radial-gradient(36rem 22rem at 0% 100%, rgb(193 158 89 / 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(121 97 49 / 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(193 158 89 / 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: #e3cda1;
    background: rgb(var(--rgb-maroon-950) / 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgb(227 205 161 / 0.4); border-radius: 999px;
}
.page-home .hero__eyebrow::before { content: ""; width: 0.45rem; height: 0.45rem; background: #c19e59; border-radius: 50%; box-shadow: 0 0 0 4px rgb(193 158 89 / 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: #e3cda1; }
.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(193 158 89 / 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: #e3cda1 !important; }
.v-motto .eyebrow--light { color: #e3cda1 !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(193 158 89 / 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: #aa8a4b; }
.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: #c19e59; 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: #e3cda1; }

@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: #aa8a4b !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: #aa8a4b !important; }
:root { --c-teal: #aa8a4b; }

/* ==========================================================================
   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(193 158 89 / 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 #c19e59 !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: #e3cda1; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(227 205 161 / 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: #142f23;
    background: linear-gradient(145deg, #e3cda1 0%, #c19e59 55%, #94773e 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: #142f23; }
.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: #142f23 !important; background: linear-gradient(120deg, #e3cda1 0%, #c19e59 50%, #94773e 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: #142f23 !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, #e3cda1, #c19e59); border-radius: 50%; }
.ad-who__notes li::after { left: calc(1.3rem + 0.5rem) !important; top: calc(1.05rem + 0.3rem) !important; border-color: #142f23 !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(193 158 89 / 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: #142f23; background: linear-gradient(145deg, #e3cda1, #c19e59 60%, #94773e); 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: #e3cda1; }
.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(227 205 161 / 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: #142f23; background: linear-gradient(120deg, #e3cda1, #c19e59); 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(193 158 89 / 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: #796131; }
.ad-off__value { color: var(--c-maroon-900); }
.ad-off__phones a { color: var(--c-maroon-900); background: #fff; border-color: rgb(193 158 89 / 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: #e3cda1 !important; }
.page-home .hero__eyebrow, body:not(.page-home) .h-hero__eyebrow, .eyebrow--light { color: #e3cda1 !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(193 158 89 / 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, #e3cda1, #c19e59 60%, #94773e); 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: #c19e59; 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: #94773e; }

.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 #c19e59; 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: #aa8a4b; }
.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 #c19e59; 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: #c19e59; opacity: 0.18; }
.rc-card__source { margin: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #94773e; }
.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(193 158 89 / 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, #94773e, #e3cda1 50%, #94773e); }
.ft a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.ft a:hover { color: #e3cda1; }

.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: #e3cda1; }
.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: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); 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, #e3cda1, #94773e); 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: #142f23; background: linear-gradient(145deg, #e3cda1, #c19e59); 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: #e3cda1 !important; border: 1px solid rgb(216 194 151 / 0.5); border-radius: 999px; }
.ft__directions:hover { color: #142f23 !important; background: linear-gradient(135deg, #e3cda1, #c19e59); }
.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 #c19e59; border-right: 2px solid #c19e59; 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: #e3cda1; }

.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: #e3cda1; 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, #e3cda1, #c19e59); 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(193 158 89 / 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, #e3cda1, #c19e59); }
.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, #f5e3bd 0%, #e3cda1 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: #aa8a4b; }
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: #e3cda1; }

/* 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(227 205 161 / 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(227 205 161 / 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: #e3cda1 !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, #e3cda1, #c19e59); }
body .cca-facts dt { color: #e3cda1; }
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(227 205 161 / 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(227 205 161 / 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(227 205 161 / 0.3), transparent 62%), linear-gradient(145deg, #fffdf8 0%, #f6ecd6 100%); border: 1px solid #dfd4bf; border-top: 5px solid #c19e59; 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(193 158 89 / 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 #c19e59; }
@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(227 205 161 / 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 #c19e59; 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(193 158 89 / 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: #142f23; background: linear-gradient(145deg, #e3cda1, #c19e59); 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: #796131; }
@media (max-width: 960px) { .tm-grid { grid-template-columns: 1fr; } }
.tm-card__avatar::before { content: ""; width: 1.15rem; height: 1.15rem; background: #142f23; -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: #142f23; background: linear-gradient(135deg, #e3cda1, #c19e59); 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, #c19e59, #94773e); }
@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, #e3cda1, #c19e59, #94773e); 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: #142f23; background: linear-gradient(145deg, #f5e3bd, #c19e59); border-radius: 50%; box-shadow: 0 10px 20px -10px rgb(193 158 89 / 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 #e3cda1; }
.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: #94773e; }

/* 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: #e3cda1 !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: #796131; 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: #c19e59; box-shadow: 0 0 0 3px rgb(193 158 89 / 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; } }


/* coffee brown and gold: colour variables */
html:root {
    --c-maroon-950: #142f23; --c-maroon-900: #173527; --c-maroon-800: #1c3e2e; --c-maroon-700: #254f3c; --c-maroon-650: #2d5d48; --c-maroon-600: #377157;
    --rgb-maroon-950: 20 47 35; --rgb-maroon-900: 23 53 39; --rgb-maroon-800: 28 62 46; --rgb-maroon-700: 37 79 60;
    --c-gold-700: #796131; --c-gold-500: #c19e59; --c-gold-300: #e3cda1; --c-gold-200: #f5e3bd;
    --rgb-gold-700: 121 97 49; --rgb-gold-500: 193 158 89; --rgb-gold-300: 227 205 161;
    --c-ink: #1b2922; --c-text: #364e43; --c-muted: #4f7262; --c-soft: #f7f0e6; --c-cream: #f3e7d8; --c-line: #eadfd1;
    --c-teal: #c19e59; --c-amber: #c19e59; --c-navy: #254f3c;
}

/* footer: unchanged maroon design */
.site-footer {
    --c-maroon-950: #10251c; --c-maroon-900: #142f23; --c-maroon-800: #1c3e2e; --c-maroon-700: #254f3c; --c-maroon-650: #295d46; --c-maroon-600: #326d53;
    --rgb-maroon-950: 16 37 28; --rgb-maroon-900: 20 47 35; --rgb-maroon-800: 28 62 46; --rgb-maroon-700: 37 79 60;
    --c-gold-700: #7c612c; --c-gold-500: #b19151; --c-gold-300: #d2ba8b; --c-gold-200: #e7d8ba;
    --rgb-gold-700: 124 97 44; --rgb-gold-500: 177 145 81; --rgb-gold-300: 210 186 139;
}
/* ==========================================================================
   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; }
}
