@import url("theme_settings/theme_settings.css");
@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Oswald:wght@400;700&family=Space+Grotesk:wght@700&display=swap");

:root {
    /* Theme tokens — every reference includes a diagnostic fallback so
       a missing theme_settings.css is visually obvious during review. */
    --color-1:        var(--color-1-theme, #00ff00);
    --color-2:        var(--color-2-theme, #ff00ff);
    --color-over-1:   var(--color-over-1-theme, #000000);
    --color-over-2:   var(--color-over-2-theme, #ffffff);
    --color-1-isDark: var(--color-1-theme-isDark, 0);
    --color-2-isDark: var(--color-2-theme-isDark, 0);

    /* Breakpoint tokens — media queries can't read custom properties,
       so the rem values repeat in @media (min-width: …) below. */
    --size-sm: 48rem;     /* tablet */
    --size-md: 64rem;     /* desktop */
    --size-lg: 85.375rem; /* large desktop */
    --size-xl: 120rem;    /* max content width */

    /* Local design tokens (real values — NOT CMS theme tokens). */
    --color-3: #F4F7F9;
    --accent-teal: #276668;
    --muted: #6B7280;
    --muted-on-dark: #D1D5DB;
    --surface: #FFFFFF;
    --ink: #000000;

    /* Type families */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Albert Sans', sans-serif;
    --font-display: 'Oswald', sans-serif;

    /* Shared section metrics */
    --site-content-max: var(--size-lg);
    --site-section-pad-y: 4rem;
    --site-section-pad-x: clamp(1rem, 5%, 3rem);
}

html { height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.5;
}

.site-header,
.site-footer { flex: none; }

#content_main {
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
    max-width: var(--inside-content-max, var(--size-lg));
    padding: var(--inside-content-pad-y, 1.5rem) var(--inside-content-pad-x, clamp(0.5rem, 5%, 3rem));
    margin-inline: auto;
    background-color: #fff;
}

/* Homepage reset — the .site-homepage wrapper in index.jsp gates this. */
body:has(.site-homepage) #content_main {
    max-width: none;
    padding: 0;
    background-color: transparent;
}

/* CMS-rendered page title on inside pages. */
.pageTitle {
    color: var(--color-1);
    filter: brightness(var(--color-1-isDark));
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.25;
    margin-block: 0 1.5rem;
}

.site-header .site-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.5rem 1rem;
    background-color: var(--color-1);
    color: var(--color-over-1);
    text-decoration: none;
}
.site-header .site-skip-link:focus-visible {
    left: 0;
}

.hidden-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.site-content img { max-width: 100%; }

/* ============================================================
   SHARED PRIMITIVES  (highLevelStyling)
   ============================================================ */

/* Section shell — full-bleed themed row + constrained inner. */
.site-section {
    box-sizing: border-box;
    width: 100%;
    padding: var(--site-section-pad-y) var(--site-section-pad-x);
}
.site-section__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--site-content-max);
    margin-inline: auto;
}
.site-section--navy    { background-color: var(--color-1); color: var(--color-over-1); }
.site-section--surface { background-color: var(--surface); color: var(--ink); }
.site-section--color3  { background-color: var(--color-3); color: var(--ink); }

/* Rich-text anchors on navy surfaces need the paired over-color to stay
   legible and beat the system a{color:#333} (0,1,1) rule — body-prefixed
   so it wins. Scoped to text-content regions so it never reaches the light
   cards that also live inside navy sections. */
body .site-mission__body a,
body .site-tapestry__intro-body a { color: var(--color-over-1); text-decoration: underline; }

/* Section header row — title left, trailing controls right. */
.site-section__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.site-section__header--center { justify-content: center; text-align: center; }

/* title primitive */
.site-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.75rem, 6vw, 2.625rem);
    line-height: 1.1;
    overflow-wrap: break-word;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-1);
    filter: brightness(var(--color-1-isDark));
}
/* On themed/dark rows the title flips to the paired over-color (a literal,
   so no brightness filter needed). */
.site-section--navy .site-title { color: var(--color-over-1); filter: none; }

.site-subtitle {
    margin: 0.5rem 0 0;
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--muted);
}
.site-section--navy .site-subtitle { color: var(--muted-on-dark); }

/* CTA primitive — green default → navy hover. Anchor color rules are
   body-prefixed to beat the system a:link (0,1,1) rule. */
.site-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 32px;
    border-radius: 4px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    background-color: var(--color-2);
    transition: background-color 0.2s ease, color 0.2s ease;
}
body a.site-cta,
body a.site-cta:link,
body a.site-cta:visited { color: var(--color-over-2); }
.site-cta:hover,
.site-cta:focus-visible { background-color: var(--color-1); }
body a.site-cta:hover,
body a.site-cta:focus-visible { color: var(--color-over-1); }

/* on-theme variant — parent row is themed, hover flips to white/black. */
.site-cta--on-theme:hover,
.site-cta--on-theme:focus-visible { background-color: var(--surface); }
body a.site-cta--on-theme:hover,
body a.site-cta--on-theme:focus-visible { color: var(--ink); }

/* Containing block for Swiper's absolutely-positioned nav buttons + pagination. */
.swiper-container { position: relative; }

/* Swiper arrows — 44x44 navy glyph on #CCCCCC. */
.swiper-container .swiper-button.site-arrow {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    --swiper-navigation-size: 24px;
}
.swiper-container .swiper-button.site-arrow::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1;
    font-size: 24px;
    text-transform: none;
    color: var(--color-1);
    filter: brightness(var(--color-1-isDark));
}
.swiper-container .swiper-button-prev.site-arrow::after { content: 'chevron_left'; }
.swiper-container .swiper-button-next.site-arrow::after { content: 'chevron_right'; }
/* On color-1 surfaces the glyph flips to color-over-1. */
.site-section--navy .swiper-button.site-arrow::after { color: var(--color-over-1); filter: none; }

/* Arrow pair sitting in a section header (desktop trailing controls). */
.site-arrows {
    display: flex;
    gap: 10px;
}
.site-arrows .swiper-button.site-arrow {
    position: static;
    top: auto;
    left: auto;
    right: auto;
}
/* Standalone arrows (not inside a .swiper-container, e.g. the News tab pager) still
   need their size + chevron glyph, which are otherwise scoped to .swiper-container. */
.site-arrows .swiper-button.site-arrow {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    --swiper-navigation-size: 24px;
}
.site-arrows .swiper-button.site-arrow::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1;
    font-size: 24px;
    text-transform: none;
}
.site-arrows .swiper-button-prev.site-arrow::after { content: 'chevron_left'; }
.site-arrows .swiper-button-next.site-arrow::after { content: 'chevron_right'; }
.site-arrows .swiper-button.site-arrow[disabled] { opacity: 0.35; cursor: default; }

/* Category tabs — timeline (dark rows) and text (light rows). */
.site-cattabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 0;
    margin: 0 0 2rem;
    list-style: none;
}
.site-cattabs__btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
/* timeline variant (News, on navy) — mobile: plain pill tabs (no line/dot) */
.site-cattabs--timeline .site-cattabs__btn {
    color: var(--color-over-1);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}
.site-cattabs--timeline .site-cattabs__btn.is-active {
    background-color: var(--color-over-1);
    color: var(--color-1);
    text-decoration: underline;
    text-underline-offset: 4px;
}
/* desktop: dotted timeline — connector line + a dot stacked above each label; the dot SIZE is
   the active cue (no pill bg/color change), inactive dots shrink, hover underlines. */
@media (min-width: 64rem) {
    .site-cattabs--timeline { border-top: 1px solid var(--color-over-1); padding-top: 1rem; }
    .site-cattabs--timeline .site-cattabs__btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: -25px;
        padding: 0;
        background: none;
        color: var(--color-over-1);
    }
    .site-cattabs--timeline .site-cattabs__btn::before {
        content: '';
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background-color: var(--color-over-1);
    }
    .site-cattabs--timeline .site-cattabs__btn:not(.is-active)::before { transform: scale(0.75); }
    .site-cattabs--timeline .site-cattabs__btn.is-active { background: none; color: var(--color-over-1); }
    .site-cattabs--timeline .site-cattabs__btn:hover,
    .site-cattabs--timeline .site-cattabs__btn:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
}
/* Events reuses the timeline look on a light section → navy line/dots/text. */
.site-events .site-cattabs--timeline .site-cattabs__btn { color: var(--color-1); }
.site-events .site-cattabs--timeline .site-cattabs__btn.is-active {
    background-color: var(--color-1);
    color: var(--color-over-1);
}
@media (min-width: 64rem) {
    .site-events .site-cattabs--timeline { border-top-color: var(--color-1); }
    .site-events .site-cattabs--timeline .site-cattabs__btn { color: var(--color-1); }
    .site-events .site-cattabs--timeline .site-cattabs__btn::before { background-color: var(--color-1); }
    .site-events .site-cattabs--timeline .site-cattabs__btn.is-active { background: none; color: var(--color-1); }
}

/* Hide both nav arrows when neither can advance. */
.swiper-container:has(.swiper-button-prev.swiper-button-disabled):has(.swiper-button-next.swiper-button-disabled) .swiper-button.site-arrow {
    display: none;
}

/* ============================================================
   HEADER
   ============================================================ */

/* Header is a solid primary-color bar with white identity/nav (inside pages).
   The homepage overlay below makes it transparent over the hero instead. */
.site-header {
    position: relative;
    z-index: 999;
    display: flex;
    flex-direction: column;
    background-color: var(--color-1);
    color: var(--color-over-1);
}

/* Homepage overlay: on pages with the hero video, the header floats over the
   top of the video (transparent, out of flow). Scoped via :has(.site-hero). */
body:has(.site-hero) .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
}
/* Subtle top scrim so white nav stays legible over bright video frames. */
body:has(.site-hero) .site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
    pointer-events: none;
}

/* Collapsed (hamburger) state — used until the nav fits on one row. One
   horizontal row: logo left, hamburger toggle at the right. The CTA buttons
   live inside the dropdown (rendered as the last items of the mobile nav). */
.site-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "identity . toggle";
    align-items: center;
    column-gap: 1rem;
    padding: 1rem clamp(1rem, 5%, 3rem);
}
.site-header__logo  { grid-area: identity; }
.site-nav-mobile    { grid-area: toggle; }

.site-header__logo img {
    display: block;
    width: 140px;
    height: auto;
}

/* Hamburger toggle — sits inline in the bar, just left of Apply Now. */
.site-menu-toggle {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: var(--color-over-1);
    cursor: pointer;
}
.site-menu-toggle::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1;
    font-size: 2rem;
    content: 'menu';
    text-transform: none;
}
.site-menu-toggle[aria-expanded="true"]::after { content: 'close'; }

/* Nav shared list styling */
.site-nav .nav-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav a,
.site-nav .nav-item-inner {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}
/* CTA buttons keep their own type scale inside the nav — the .site-nav a rule
   above would otherwise bump them from 0.75rem to the 17px nav-link size. */
.site-nav a.site-cta { font-size: 0.75rem; }
.site-nav .nav-item-inner:not(a) { cursor: default; }

/* dropdown toggle glyph */
.site-nav .dropdown-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.site-nav .dropdown-toggle::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0;
    font-size: 1.5rem;
    content: 'expand_more';
    text-transform: none;
}

/* end-of-loop icon-only search */
.site-nav__search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.site-nav__search::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0;
    font-size: 1.5rem;
    content: 'search';
    text-transform: none;
}

/* ---- Mobile nav (base / hamburger) ---- */
.site-nav-mobile .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--color-1);
    padding: 0.5rem 0;
}
/* accessible-menu v4.2.2 signals open via aria-expanded, not a .show class —
   gate on both so the hamburger actually reveals the menu. */
.site-nav-mobile .nav-menu.show,
.site-nav-mobile:has(.site-menu-toggle[aria-expanded="true"]) .nav-menu { display: block; }
.site-nav-mobile .nav-item,
.site-nav-mobile .sub-menu-item { position: relative; color: var(--color-over-1); }
.site-nav-mobile .nav-item.dropdown,
.site-nav-mobile .sub-menu-item.dropdown {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}
.site-nav-mobile a.nav-item-inner,
.site-nav-mobile .nav-item-inner,
.site-nav-mobile .sub-menu-item > a {
    display: block;
    padding: 0.75rem 1rem;
    color: inherit;
}
.site-nav-mobile .nav-item > a.nav-item-inner { text-decoration: underline; }
.site-nav-mobile a.nav-item-inner:hover,
.site-nav-mobile a.nav-item-inner:focus-visible,
.site-nav-mobile .sub-menu-item > a:hover,
.site-nav-mobile .sub-menu-item > a:focus-visible {
    background-color: var(--color-2);
    color: var(--color-over-2);
}
.site-nav-mobile .dropdown-toggle {
    color: inherit;
    padding: 0.75rem 1rem;
}
.site-nav-mobile .sub-menu-holder { display: none; grid-column: 1 / -1; }
.site-nav-mobile .sub-menu-holder:has(.sub-menu.show),
.site-nav-mobile .nav-item:has(> .dropdown-toggle[aria-expanded="true"]) > .sub-menu-holder { display: block; }
.site-nav-mobile .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav-mobile .sub-menu-item > a { padding-left: 2rem; }
.site-nav-mobile .sub-menu .sub-menu-item > a { padding-left: 2rem; }
.site-nav-mobile .sub-menu .sub-menu { display: none; grid-column: 1 / -1; }
.site-nav-mobile .sub-menu .sub-menu.show,
.site-nav-mobile .sub-menu-item:has(> .dropdown-toggle[aria-expanded="true"]) > .sub-menu { display: block; }
.site-nav-mobile .sub-menu .sub-menu .sub-menu-item > a { padding-left: 3rem; }
.site-nav-mobile .site-nav__search {
    padding: 0.75rem 1rem;
    color: var(--color-over-1);
}
/* CTA button pair — one flex item so the nav's space-between distribution can't
   push the two buttons apart; the gap between them stays fixed. */
.site-nav__ctas { display: flex; align-items: center; gap: 0.5rem; }
/* In the mobile dropdown they stack at natural width. */
.site-nav-mobile .site-nav__ctas { flex-direction: column; align-items: flex-start; padding: 0.5rem 1rem; }

.site-nav-main { display: none; }

/* ---- Inline nav (no hamburger once it fits on one row) ----
   Two layouts by width, both keeping the nav on a SINGLE row. The nav menu
   carries the primary links, the search icon, and the CTA buttons (last items):
   - 83rem–87.5rem: the full nav can't fit beside the logo, so it sits on a
     full-width single row BELOW the logo (space-between).
   - 87.5rem+ (override block below): the full nav fits beside the logo, so the
     whole header becomes one flex space-between row — logo and CTA cluster flush
     to the edges, uniform gaps throughout — one seamless line.
   Below 83rem the one-row nav no longer fits, so the header collapses to the
   hamburger (base rules above); the CTAs ride along inside the dropdown. */
@media (min-width: 83rem) {
    .site-menu-toggle { display: none; }
    .site-nav-mobile { display: none; }

    /* Two-row: logo on top; full-width nav (links + search + CTAs) below. */
    .site-header__bar {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "identity"
            "nav";
        align-items: center;
        column-gap: 1rem;
        row-gap: 0.5rem;
    }
    .site-header__logo { grid-area: identity; }
    .site-nav-main {
        display: block;
        grid-area: nav;
    }
    .site-nav-main .nav-menu {
        display: flex;
        flex-wrap: nowrap;   /* single row; below 83rem the header collapses to the hamburger */
        align-items: center;
        justify-content: space-between;   /* even gaps between every item incl. search→CTAs; search is the last nav item */
        gap: 0.5rem;
    }
    .site-nav-main .nav-item {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        color: var(--color-over-1);
    }
    .site-nav-main .nav-item > a.nav-item-inner,
    .site-nav-main .nav-item > .nav-item-inner {
        display: block;
        padding: 0.5rem 0.25rem;
        color: inherit;   /* label inherits the item color (so the arrow matches it) */
    }
    .site-nav-main .nav-item:not(.dropdown) a.nav-item-inner { padding: 0.5rem 0.5rem; }
    .site-nav-main .nav-item > a.nav-item-inner { text-decoration: underline; }
    .site-nav-main .nav-item.dropdown > .nav-item-inner {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        z-index: 1;
        margin-right: 1.75rem;
    }
    .site-nav-main div.nav-item-inner { pointer-events: none; }
    .site-nav-main .nav-item.dropdown > .dropdown-toggle {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        justify-content: flex-end;
        color: inherit;   /* arrow inherits the item color */
    }
    /* No hover recolor on top items — the white bar can't carry color-2 at 4.5:1.
       The affordance is the always-underlined label + the chevron rotation below. */

    /* Chevron flips up when the item is hovered / its panel is open. */
    .site-nav-main .nav-item.dropdown > .dropdown-toggle::after {
        transition: transform 0.2s ease;
    }
    .site-nav-main .nav-item.dropdown:hover > .dropdown-toggle::after,
    .site-nav-main .nav-item.dropdown:focus-within > .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    /* level-2 dropdown panel */
    .site-nav-main .sub-menu-holder {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 14rem;
        background-color: var(--color-1);
        padding: 0.5rem 0;
        z-index: 60;
    }
    /* Open on hover/focus (hoverType:'on') and on the library's aria-expanded —
       v4.2.2 signals open via aria, not .show, so the .show gate alone never fires. */
    .site-nav-main .sub-menu-holder:has(.sub-menu.show),
    .site-nav-main .nav-item.dropdown:hover > .sub-menu-holder,
    .site-nav-main .nav-item.dropdown:focus-within > .sub-menu-holder,
    .site-nav-main .nav-item:has(> .dropdown-toggle[aria-expanded="true"]) > .sub-menu-holder { display: block; }
    .site-nav-main .drop-left .sub-menu-holder { left: auto; right: 0; }
    .site-nav-main .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .site-nav-main .sub-menu-item {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        color: var(--color-over-1);   /* dropdown = color-1 theme; links + arrows inherit this */
        filter: none;
    }
    .site-nav-main .sub-menu-item.dropdown { grid-template-columns: 1fr auto; }
    .site-nav-main .sub-menu-item > a {
        display: block;
        padding: 0.5rem 1rem;
        color: inherit;
    }
    .site-nav-main .sub-menu-item > a:hover,
    .site-nav-main .sub-menu-item > a:focus-visible {
        background-color: var(--color-2);
        color: var(--color-over-2);
    }
    .site-nav-main .sub-menu-item > .dropdown-toggle {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        align-self: stretch;   /* fill the row height so the hover bg matches the label */
        color: inherit;
    }
    /* level-2 sublink chevron flips up when its level-3 list is open */
    .site-nav-main .sub-menu-item.dropdown > .dropdown-toggle::after {
        transition: transform 0.2s ease;
    }
    /* chevron cell adopts the sublink's green/black hover state to match the label */
    .site-nav-main .sub-menu-item.dropdown:hover > .dropdown-toggle,
    .site-nav-main .sub-menu-item.dropdown:focus-within > .dropdown-toggle {
        background-color: var(--color-2);
        color: var(--color-over-2);
    }
    .site-nav-main .sub-menu-item.dropdown > .dropdown-toggle[aria-expanded="true"]::after,
    .site-nav-main .sub-menu-item.dropdown:has(> .sub-menu.show) > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    /* level-3 opens BELOW its level-2 sublink (accordion), not as a side flyout */
    .site-nav-main .sub-menu .sub-menu {
        display: none;
        grid-column: 1 / -1;
        min-width: 0;
        background-color: color-mix(in srgb, var(--color-1) 88%, #000);
        padding: 0.25rem 0;
    }
    .site-nav-main .sub-menu .sub-menu.show,
    .site-nav-main .sub-menu-item:has(> .dropdown-toggle[aria-expanded="true"]) > .sub-menu { display: block; }
    .site-nav-main .sub-menu .sub-menu .sub-menu-item > a { padding-left: 2rem; }

    .site-nav-main .site-nav__search { color: var(--color-over-1); padding: 0.5rem; }

    .site-header__logo img { width: 200px; }
}

/* One row: once the nav fits beside the logo, lift it onto the logo row. The whole
   header becomes one flex row with space-between, and the logo joins the nav's
   rhythm — display:contents promotes the nav <li> to flex children of the bar, so
   the logo and the CTA cluster stay flush to the two content edges while every
   interior gap is identical: logo→first-link, link→link, and search→CTA all match
   at any width. Breakpoint is 87.5rem (1400px): with the 200px logo and 16px nav
   font the logo + items (~986px) + bar padding fit at 1400px (~13px uniform gaps,
   roomier above); dropped from 120rem so the one line reaches laptop widths and
   screens capped near 1902px. */
@media (min-width: 87.5rem) {
    .site-header__bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .site-nav-main,
    .site-nav-main .nav-menu { display: contents; }
}

/* ============================================================
   HERO (full-bleed video)
   ============================================================ */
.site-hero { position: relative; width: 100%; background-color: var(--surface); }
.site-hero__media { position: relative; width: 100%; }
.site-hero__video {
    display: block;
    width: 100%;
    height: 90vh;
    min-height: 30rem;
    object-fit: cover;
}
.site-hero__embed { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.site-hero__embed :is(iframe, object, embed) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.site-hero__toggle {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.site-hero__toggle::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1;
    font-size: 1.75rem;
    text-transform: none;
    content: 'pause';
}
.site-hero__toggle.paused::after { content: 'play_arrow'; }
.site-hero__caption {
    padding: 1.5rem clamp(1rem, 5%, 3rem);
    text-align: center;
    background-color: var(--surface);
}
.site-hero__caption-text {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-1);
    filter: brightness(var(--color-1-isDark));
}
.site-hero__caption-desc { margin: 0.5rem 0 0; color: var(--ink); }

/* ============================================================
   QUICKLINKS  [track, color-3]
   ============================================================ */
.site-quicklinks .site-quicklinks__track { position: relative; padding-bottom: 3.75rem; }
.site-quicklinks .swiper { width: 100%; }
/* Mobile: arrows sit centered below the slider — the track padding-bottom reserves the room. */
.site-quicklinks .swiper-button.site-arrow { top: auto; bottom: 0; }
.site-quicklinks .swiper-button-prev.site-arrow { right: calc(50% + 6px); left: auto; }
.site-quicklinks .swiper-button-next.site-arrow { left: calc(50% + 6px); right: auto; }
.site-qlink {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 12px;
    background-color: var(--surface);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: var(--ink);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.site-qlink__icon { color: var(--color-2); }
.site-qlink__icon svg,
.site-qlink__icon img { width: 2.5rem; height: 2.5rem; }
.site-qlink__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-1);
    filter: brightness(var(--color-1-isDark));
}
.site-qlink__subtitle { color: var(--muted); font-size: 0.9375rem; }
.site-qlink__view {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-1);
    filter: brightness(var(--color-1-isDark));
}
.site-qlink__view::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0;
    font-size: 1.125rem;
    text-transform: none;
    content: 'arrow_forward';
}
/* hover — color-2 theme on card; icon + view affordance included */
.site-qlink:hover,
.site-qlink:focus-visible { background-color: var(--color-2); color: var(--color-over-2); }
.site-qlink:hover .site-qlink__icon,
.site-qlink:hover .site-qlink__title,
.site-qlink:hover .site-qlink__view,
.site-qlink:focus-visible .site-qlink__icon,
.site-qlink:focus-visible .site-qlink__title,
.site-qlink:focus-visible .site-qlink__view { color: var(--color-over-2); filter: none; }
.site-qlink:hover .site-qlink__subtitle,
.site-qlink:focus-visible .site-qlink__subtitle { color: var(--color-over-2); }

@media (min-width: 64rem) {
    .site-quicklinks .site-quicklinks__track { padding-bottom: 0; }
    .site-quicklinks .swiper-button.site-arrow {
        top: auto;
        bottom: calc(100% + 1rem);
    }
    .site-quicklinks .swiper-button-next.site-arrow { right: 0; left: auto; }
    .site-quicklinks .swiper-button-prev.site-arrow { right: 3.375rem; left: auto; }
}

/* ============================================================
   MISSION-BAND  [band, color-1]
   ============================================================ */
.site-mission .site-section__inner { max-width: var(--size-md); text-align: center; }
.site-mission__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.25rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-over-1);
}
.site-mission__body {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    color: var(--color-over-1);
}
.site-mission__body :is(p):first-child { margin-top: 0; }
.site-mission__body :is(p):last-child { margin-bottom: 0; }

/* ============================================================
   TAPESTRY-EXPERIENCE  [color-1: spotlight intro + news grid]
   ============================================================ */
.site-tapestry .site-section__inner { display: grid; gap: 40px; }
#tapestry_heading { margin-bottom: 0.25em; }
.site-tapestry__intro { text-align: center; max-width: var(--size-md); margin-inline: auto; }
.site-tapestry__intro-body {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-over-1);
}
.site-tapestry__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
/* Division cards mirror the Why-Tapestry pillars: bg photo under a blue overlay,
   green bar + title + Learn More at rest; hover reveals the summary and the CTA fades. */
.site-tapestry__card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto auto auto auto;   /* bar, title, summary, cta */
    gap: 1rem;
    padding: 1.5rem;
    min-height: 400px;
    align-content: end;                        /* content sits at the bottom */
    border-radius: 8px;
    background-color: var(--color-1);
    color: var(--color-over-1);
    text-decoration: none;
}
.site-tapestry__card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--thumb, none);
    background-size: cover;
    background-position: center;
    opacity: 0.5;                              /* blue overlay = navy card showing through */
    transition: opacity 0.3s ease;
}
/* Hover deepens the overlay (photo fades → more navy) as the summary reveals. */
.site-tapestry__card:hover::before,
.site-tapestry__card:focus-visible::before { opacity: 0.28; }
.site-tapestry__card-bar { width: 48px; height: 4px; background-color: var(--color-2); }
.site-tapestry__card-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.15;
    color: var(--color-over-1);
}
.site-tapestry__card-summary { overflow: hidden; color: var(--color-over-1); }
.site-tapestry__card-summary :is(p) { margin: 0; }
.site-tapestry__card-cta {
    justify-self: start;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 32px;
    border-radius: 4px;
    background-color: var(--color-2);
    color: var(--color-over-2);
}
@media (min-width: 48rem) {
    .site-tapestry__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
    .site-tapestry__grid { grid-template-columns: repeat(3, 1fr); }
    /* summary collapsed at rest, revealed on hover / focus; CTA fades as it opens */
    .site-tapestry__card {
        grid-template-rows: auto auto 0fr auto;
        transition: grid-template-rows 0.3s ease;
    }
    .site-tapestry__card:hover,
    .site-tapestry__card:focus-visible { grid-template-rows: auto auto 1fr auto; }
    .site-tapestry__card-cta { transition: opacity 0.3s ease; }
    .site-tapestry__card:hover .site-tapestry__card-cta,
    .site-tapestry__card:focus-visible .site-tapestry__card-cta { opacity: 0; }
}

/* ============================================================
   MOTTO-CTA  [band, surface — mid-page]
   ============================================================ */
.site-motto { padding-top: 14rem; }
.site-motto .site-section__inner { max-width: var(--size-md); text-align: center; }
.site-motto__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.625rem;
    text-transform: uppercase;
    color: var(--color-1);
    filter: brightness(var(--color-1-isDark));
}
.site-motto__body { margin: 0 0 1.5rem; font-size: 1.25rem; color: var(--ink); }

/* ============================================================
   NEWS-ANNOUNCEMENTS  [color-1]
   ============================================================ */
.site-news__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.site-news__grid[hidden] { display: none; }
/* Mobile: only the newest card per category is shown; the 3-up grid is desktop. */
.site-news__grid > .site-newscard:nth-child(n + 2) { display: none; }
@media (min-width: 48rem) {
    .site-news__grid { grid-template-columns: repeat(3, 1fr); }
    .site-news__grid > .site-newscard:nth-child(n + 2) { display: flex; }
}
.site-newscard {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #FAFAFA;
    border-radius: 8px;
    overflow: hidden;
}
.site-newscard__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.site-newscard__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.site-newscard__date {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
}
.site-newscard__title {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.15;
    color: var(--color-1);
    filter: brightness(var(--color-1-isDark));
}
body .site-newscard__title a { color: inherit; text-decoration: none; }
.site-newscard__title a:hover,
.site-newscard__title a:focus-visible { text-decoration: underline; }
.site-newscard__desc { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.site-news__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}
.site-news__footer .site-arrows { margin-left: auto; }

/* ============================================================
   EVENTS  [flat]
   ============================================================ */
.site-events { padding: var(--site-section-pad-y) var(--site-section-pad-x); }
.site-events__inner { max-width: var(--size-lg); margin-inline: auto; }
.site-events .swiper { width: 100%; }
.site-eventcard {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--surface);
    overflow: hidden;
}
.site-eventcard__badge {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 160px;
    background-color: var(--color-1);
    color: var(--color-over-1);
    text-align: center;
    padding: 1.25rem 1rem 1rem;
}
.site-eventcard__badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 17px;
    width: 20px;
    height: 25px;
    background-color: var(--surface);
}
.site-eventcard__day { display: block; font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; }
.site-eventcard__month { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 1.125rem; font-weight: 600; }
.site-eventcard__info { padding: 1rem 1.25rem 1.25rem; text-align: center; }
.site-eventcard__title { margin: 0 0 0.5rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.375rem; color: var(--ink); }
body .site-eventcard__title a { color: inherit; text-decoration: none; }
.site-eventcard__title a:hover,
.site-eventcard__title a:focus-visible { text-decoration: underline; }
.site-eventcard__meta { margin: 0; font-size: 1rem; color: var(--muted); }
.site-events__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}
.site-events__footer .site-arrows { margin-left: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--color-1);
    color: var(--color-over-1);
    padding: 64px clamp(1rem, 5%, 3rem) 20px;
}
.site-footer__inner { max-width: var(--size-lg); margin-inline: auto; }
.site-footer__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
/* Brand: logo centered over the three school-address columns. */
.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* mobile: left-aligned; centered at 48rem+ */
    gap: 2rem;
    text-align: left;
}
.site-footer__logo { width: 200px; height: auto; }
.site-footer__schools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 2.5rem;
    text-align: left;
}
.site-footer__school-name {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-over-1);
}
.site-footer__school-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.5;
}
.site-footer__school-lines li { text-decoration: underline; }
.site-footer__school-lines a,
body .site-footer__school-lines a:link,
body .site-footer__school-lines a:visited { color: var(--color-over-1); text-decoration: underline; }
.site-footer__meta { display: flex; flex-direction: column; gap: 2.5rem; }
.site-footer__heading {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-over-1);
}
.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}
.site-footer__links a,
body .site-footer__links a:link,
body .site-footer__links a:visited { color: var(--color-over-1); text-decoration: underline; }
.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
body .site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--color-over-1);
}
.site-footer__social svg,
.site-footer__social img { width: 1.5rem; height: 1.5rem; }
/* Flatten CMS brand SVGs to currentColor (white on the navy footer). */
.flat-icon-colors svg.color-flatten .color-fill { fill: currentColor; }
.flat-icon-colors svg.color-flatten .transparency-change { fill: transparent; }
.flat-icon-colors svg:not(.color-flatten) { fill: currentColor; }
.site-footer__divider { border: 0; border-top: 1px solid var(--color-over-1); margin: 2rem 0 1.5rem; }
.site-footer__attribution {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;   /* mobile: left-aligned; centered at 48rem+ */
    align-items: center;
    gap: 20px;
    text-align: left;
}
body .site-footer__attribution a { color: inherit; display: inline-flex; align-items: center; gap: 0.35rem; }
.site-footer__attribution svg { fill: currentColor; }
.site-footer__attribution a:first-of-type svg { width: 140px; height: 20px; }
.site-footer__attribution a:last-of-type svg { height: 1.5rem; width: auto; }
@media (min-width: 48rem) {
    .site-footer__brand { align-items: center; text-align: center; }
    .site-footer__schools { grid-template-columns: repeat(3, auto); justify-content: center; }
    .site-footer__attribution { justify-content: center; text-align: center; }
}
@media (min-width: 64rem) {
    .site-footer__cols { grid-template-columns: 1.5fr 1fr; align-items: start; }
}
