@import url("theme_settings/theme_settings.css");
/* Typography imports (Google Fonts, Typekit, etc.) go here. */

: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 */

    /* Design-specific tokens — set by this design rather than the CMS theme.
       Each surface token carries its own -over pair for text contrast. */
    --color-3:            #AC8957;  /* CTA and collapsed-panel surface */
    --color-over-3:       #000000;
    --color-accent:       #7A583B;  /* headings, CTA hover, expanded-panel surface */
    --color-over-accent:  #FFFFFF;
    --color-page:         #FFFFFF;  /* the page ground every band sits on */
    --color-over-page:    #000000;
    --color-pill:         #000000;  /* reversed social pill in the footer */
    --color-over-pill:    #FFFFFF;

    --font-heading: 'Eigerdals', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
    --font-body:    'Iskra', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --site-content-max: 62.5rem;                  /* the design's content column */
    --site-gutter:      clamp(0.75rem, 4%, 3rem);
    --site-band-pad:    2.5rem;                   /* vertical rhythm between homepage bands */
}

html { height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.3;
}

.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: var(--color-page);
}

/* 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, styled to match the homepage
   section titles. margin-block keeps the CMS-supplied inline margins
   (which center the title on wide viewports) intact. */
.pageTitle {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    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;
}

/* Screen-reader-only text. The CMS system stylesheet also defines
   .hidden-text with the same technique; declaring it here keeps the
   pattern available regardless of system-stylesheet load order. */
.hidden-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}


/* ==========================================================================
   Header
   ========================================================================== */

/* Grid areas let the supplementary social row sit visually beside the identity
   while staying last in the DOM, so keyboard order reaches identity and nav
   first. position: relative provides the containing block for the mobile
   menu toggle. */
.site-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "social"
        "identity"
        "nav";
    justify-items: center;
    row-gap: 1.25rem;
    padding: 0.625rem var(--site-gutter);
    background-color: var(--color-page);
}

.site-header__identity { grid-area: identity; }
.site-header__social   { grid-area: social; }
.site-nav,
.site-nav-mobile       { grid-area: nav; }

.site-header__identity-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
}

.site-header__logo {
    width: 102px;
    height: 102px;
    object-fit: contain;
}

.site-header__name {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.15;
    text-align: center;
}

.site-header__social-list {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Both selectors: a CMS icon arrives as an <img> and is swapped for inline
   <svg>, so the box has to hold its size across the swap. */
.site-header__social-link svg,
.site-header__social-link img {
    width: 2.5rem;
    height: 2.5rem;
}

@media (min-width: 64rem) {
    .site-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            ". identity social"
            "nav nav nav";
        justify-items: stretch;
        align-items: center;
        column-gap: 1.25rem;
        padding-inline: max(var(--site-gutter), (100% - var(--site-content-max)) / 2);
    }

    .site-header__identity { grid-column: 1 / 3; }

    .site-header__identity-link {
        flex-direction: row;
        justify-content: flex-start;
    }

    .site-header__name {
        font-size: 2rem;
        text-align: left;
    }

    .site-header__social-list { justify-content: flex-end; }
}


/* ==========================================================================
   Navigation
   ========================================================================== */

/* Mobile-first: the hamburger nav is the base and serves tablet widths too, and
   the horizontal bar takes over at the desktop breakpoint. display: none is the
   only mechanism that also drops the inactive nav out of the tab order. */
.site-nav { display: none; }

.site-nav-mobile { display: block; }

.site-nav .nav-menu,
.site-nav-mobile .nav-menu,
.site-nav .sub-menu,
.site-nav-mobile .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The open panel overlays the page instead of pushing it down. */
.site-nav-mobile .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background-color: var(--color-page);
    border-top: 3px solid var(--color-2);
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.15);
}
.site-nav-mobile .nav-menu.show { display: block; }

/* The toggle is positioned against the <header>, so the mobile <nav> must not
   establish a containing block of its own. */
.menu-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-accent);
    cursor: pointer;
}
.menu-toggle::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1;
    font-size: 1.875rem;
    text-transform: none;
    content: 'menu';
}
.menu-toggle[aria-expanded="true"]::after { content: 'close'; }

/* Clearance and band height live on the header rather than on whichever row
   happens to be topmost: the supplementary row only renders when its category
   has items, and the identity row takes its place when it doesn't. */
.site-header {
    min-height: 4.75rem;
    padding-right: 3.75rem;
}

.site-nav .nav-item-inner,
.site-nav-mobile .nav-item-inner,
.site-nav .sub-menu-link,
.site-nav-mobile .sub-menu-link {
    font-size: 1rem;
    line-height: 1.15;
    color: var(--color-over-page);
}

.site-nav .dropdown-toggle,
.site-nav-mobile .dropdown-toggle {
    display: grid;
    place-items: center;
    width: 2rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}
.site-nav .dropdown-toggle::after,
.site-nav-mobile .dropdown-toggle::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1;
    font-size: 1.5rem;
    text-transform: none;
    content: 'expand_more';
}

/* Level-2 visibility: the holder watches for the .show class the library adds
   to the inner sub-menu. Level 3 has no holder, so its sub-menu carries it. */
.site-nav .sub-menu-holder,
.site-nav-mobile .sub-menu-holder { display: none; }
.site-nav .sub-menu-holder:has(.sub-menu.show),
.site-nav-mobile .sub-menu-holder:has(.sub-menu.show) { display: block; }

.site-nav .sub-menu .sub-menu,
.site-nav-mobile .sub-menu .sub-menu { display: none; }
.site-nav .sub-menu .sub-menu.show,
.site-nav-mobile .sub-menu .sub-menu.show { display: block; }

/* --- Mobile nav --------------------------------------------------------- */

.site-nav-mobile .nav-item.dropdown,
.site-nav-mobile .sub-menu-item.dropdown {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

/* Grid children of the <li>: without the span they are confined to the first
   column and render narrower than the item they belong to. */
.site-nav-mobile .sub-menu-holder,
.site-nav-mobile .sub-menu .sub-menu { grid-column: 1 / -1; }

.site-nav-mobile .nav-item-inner,
.site-nav-mobile .sub-menu-link {
    display: block;
    padding: 0.75rem 1rem;
}

.site-nav-mobile .sub-menu-item > .sub-menu-link { padding-left: 2rem; }

/* Two .sub-menu levels are required — a single level also matches level-2
   items and would override their indentation. */
.site-nav-mobile .sub-menu .sub-menu .sub-menu-item > .sub-menu-link { padding-left: 3rem; }

/* Direct child combinators only: a descendant selector would repaint the
   nested items inside an open panel along with the item being hovered. */
.site-nav-mobile .nav-item:hover > .nav-item-inner,
.site-nav-mobile .nav-item:focus-within > .nav-item-inner,
.site-nav-mobile .nav-item:hover > .dropdown-toggle,
.site-nav-mobile .nav-item:focus-within > .dropdown-toggle,
.site-nav-mobile .sub-menu-item:hover > .sub-menu-link,
.site-nav-mobile .sub-menu-item:focus-within > .sub-menu-link,
.site-nav-mobile .sub-menu-item:hover > .dropdown-toggle,
.site-nav-mobile .sub-menu-item:focus-within > .dropdown-toggle,
.site-nav-mobile .nav-item > .nav-item-inner:focus-visible,
.site-nav-mobile .nav-item > .dropdown-toggle:focus-visible,
.site-nav-mobile .sub-menu-item > .sub-menu-link:focus-visible,
.site-nav-mobile .sub-menu-item > .dropdown-toggle:focus-visible {
    background-color: var(--color-1);
    color: var(--color-over-1);
}

/* --- Desktop nav -------------------------------------------------------- */

@media (min-width: 64rem) {
    .site-nav { display: block; }
    .site-nav-mobile,
    .menu-toggle { display: none; }

    .site-header {
        min-height: 0;
        padding-right: max(var(--site-gutter), (100% - var(--site-content-max)) / 2);
    }

    .site-nav .nav-menu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        column-gap: 1.4375rem;
    }

    .site-nav .nav-item {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-nav .nav-item-inner {
        padding: 0.5rem;
        white-space: nowrap;
    }

    /* Level-1 overlay pattern: the toggle spans the whole cell with its icon at
       the right edge, and the label shares that cell above it, so the item reads
       as one interactive surface. margin-right pulls the label's content box out
       of the icon zone; explicit placement is required because two elements in
       one cell defeat auto-placement. */
    .site-nav .nav-item.dropdown > a.nav-item-inner,
    .site-nav .nav-item.dropdown > div.nav-item-inner {
        grid-column: 1;
        grid-row: 1;
        margin-right: 2rem;
    }
    .site-nav .nav-item.dropdown > .nav-item-inner {
        position: relative;
        z-index: 1;
    }
    /* A CONTAINER label has no destination of its own — interaction belongs to
       the toggle underneath it. */
    .site-nav .nav-item.dropdown > div.nav-item-inner { pointer-events: none; }

    .site-nav .nav-menu > .nav-item > .dropdown-toggle {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        justify-content: flex-end;
    }

    /* Recolors the label rather than filling the cell — a background on the
       level-1 anchor would bury the chevron beside it. :focus-within catches a
       focused descendant; :focus-visible on the children themselves covers the
       control that actually holds focus. */
    .site-nav .nav-item:hover > .nav-item-inner,
    .site-nav .nav-item:focus-within > .nav-item-inner,
    .site-nav .nav-item:hover > .dropdown-toggle,
    .site-nav .nav-item:focus-within > .dropdown-toggle,
    .site-nav .nav-item > .nav-item-inner:focus-visible,
    .site-nav .nav-item > .dropdown-toggle:focus-visible {
        color: var(--color-accent);
    }

    /* A grid-column span or position: static here would pull the panel back
       into flow. */
    .site-nav .sub-menu-holder {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 20;
        min-width: 12.5rem;
    }

    /* Right-half items open right-aligned; a left-aligned panel there runs past
       the viewport edge and forces horizontal scroll. */
    .site-nav .nav-item.drop-left .sub-menu-holder {
        left: auto;
        right: 0;
    }

    .site-nav .sub-menu {
        min-width: 12.5rem;
        background-color: var(--color-page);
        box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.15);
    }

    .site-nav .sub-menu-item { position: relative; }

    .site-nav .sub-menu-item.dropdown {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .site-nav .sub-menu-item.dropdown > .dropdown-toggle {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        padding-inline: 0.5rem;
    }

    .site-nav .sub-menu-link {
        display: block;
        padding: 0.375rem 0.75rem;
    }

    .site-nav .sub-menu-item:hover > .sub-menu-link,
    .site-nav .sub-menu-item:focus-within > .sub-menu-link,
    .site-nav .sub-menu-item:hover > .dropdown-toggle,
    .site-nav .sub-menu-item:focus-within > .dropdown-toggle,
    .site-nav .sub-menu-item > .sub-menu-link:focus-visible,
    .site-nav .sub-menu-item > .dropdown-toggle:focus-visible {
        background-color: var(--color-1);
        color: var(--color-over-1);
    }

        .site-nav .sub-menu .sub-menu {
        position: absolute;
        top: 0;
        left: 100%;
        min-width: 12.5rem;
    }

    .site-nav .drop-left .sub-menu-item.dropdown > .sub-menu {
        left: auto;
        right: 100%;
    }
}


/* ==========================================================================
   Shared section furniture
   ========================================================================== */

.site-section__title {
    margin: 0;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    text-align: center;
}

/* The two-selector shape lifts the colour past the system stylesheet's blanket
   anchor rule, which loads after this file and ties a single class. */
.site-cta,
.site-homepage a.site-cta {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border: 3px solid var(--color-2);
    border-radius: 30px 30px 0 30px;
    background-color: var(--color-3);
    color: var(--color-over-3);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.15;
    text-decoration: none;
}

.site-homepage a.site-cta:hover,
.site-homepage a.site-cta:focus-visible {
    background-color: var(--color-accent);
    color: var(--color-over-accent);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.site-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "media"
        "intro";
    row-gap: 1.5rem;
    padding-bottom: var(--site-band-pad);
    background-color: var(--color-page);
}

.site-hero__intro {
    grid-area: intro;
    padding-inline: var(--site-gutter);
}

.site-hero__carousel {
    grid-area: media;
    position: relative;
}

.site-hero__title { text-align: left; }

.site-hero__body { margin-block: 1.5rem; }

.site-hero__figure {
    margin: 0;
    position: relative;
}

/* The shuffle is a constant-height band, not a fixed aspect: the CMS crop keeps
   its height and varies its width per viewport, so an aspect ratio here would
   let the band grow with the column instead of holding the drawn depth. */
.site-hero__figure img {
    display: block;
    width: 100%;
    height: 585px;
    object-fit: cover;
}

/* Mobile keeps the caption below the image in normal flow, so an opaque
   background is appropriate here. */
.site-hero__carousel figcaption {
    padding: 0.75rem var(--site-gutter);
    background-color: rgb(0 0 0 / 0.85);
    color: #fff;
}

.site-hero__carousel .swiper { width: 100%; }

/* Slide imagery is admin-supplied and can be any colour, so the controls carry
   their own surface rather than relying on contrast with the photo. */
.site-hero__carousel .swiper-button-prev,
.site-hero__carousel .swiper-button-next {
    --swiper-navigation-color: #fff;
    --swiper-navigation-bg: rgb(0 0 0 / 0.5);
}

/* Bullets sit over the slide, which needs the absolute switch Swiper's own
   stylesheet leaves off; the size is the touch-target minimum. */
.site-hero__carousel {
    --swiper-pagination-bullet-size: 1.5rem;
    --swiper-pagination-color: var(--color-2);
    --swiper-pagination-bullet-text-color: var(--color-over-2);
}
.site-hero__carousel .swiper-pagination { position: absolute; }

/* The number has to read against the bullet it sits in, not the slide behind. */
.site-hero__carousel .numbered-pagination .swiper-pagination-bullet {
    place-content: center;
    color: var(--swiper-pagination-bullet-text-color);
}

/* Prev/next are always in the DOM; only navigation type 1 shows them. The
   type class sits on the inner .swiper, so the hide rule has to reach the
   buttons as its siblings — hence :has() on the outer section. */
.site-hero__carousel:not(:has(.navigation-type-1)) .swiper-button-prev,
.site-hero__carousel:not(:has(.navigation-type-1)) .swiper-button-next {
    display: none;
}

.swiper-autoplay-toggle-button {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background-color: #000;
    color: #fff;
    cursor: pointer;
}
.swiper-autoplay-toggle-button::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1;
    font-size: 1.25rem;
    text-transform: none;
    content: 'pause';
}
.swiper-autoplay-toggle-button.paused::after { content: 'play_arrow'; }

@media (min-width: 48rem) {
    /* Desktop lifts the caption onto the image; the semi-transparent solid is
       what carries its contrast there. */
    .site-hero__carousel figcaption {
        position: absolute;
        left: 0;
        right: 0;
        background-color: rgb(0 0 0 / 0.75);
    }
    .site-hero__carousel figcaption.caption-position-top    { top: 0; }
    .site-hero__carousel figcaption.caption-position-bottom { bottom: 0; }

    /* Navigation position only applies from here up — on narrow screens
       left/right pagination would eat the slide's horizontal space. */
    .navigation-position-top    { --swiper-pagination-top: 0.5rem; --swiper-pagination-bottom: auto; }
    .navigation-position-bottom { --swiper-pagination-bottom: 0.5rem; --swiper-pagination-top: auto; }
    .navigation-position-left   { --swiper-pagination-left: 0.5rem; --swiper-pagination-right: auto; }
    .navigation-position-right  { --swiper-pagination-right: 0.5rem; --swiper-pagination-left: auto; }

    /* Keeps pagination and arrows off the caption text. */
    .site-hero__carousel .navigation-position-top    figcaption.caption-position-top    { padding-top:    calc(var(--swiper-pagination-bullet-size, 1rem) + 1rem); }
    .site-hero__carousel .navigation-position-bottom figcaption.caption-position-bottom { padding-bottom: calc(var(--swiper-pagination-bullet-size, 1rem) + 1rem); }
    .site-hero__carousel .navigation-position-left   figcaption                         { padding-left:   calc(var(--swiper-pagination-bullet-size, 1rem) + 1rem); }
    .site-hero__carousel .navigation-position-right  figcaption                         { padding-right:  calc(var(--swiper-pagination-bullet-size, 1rem) + 1rem); }
    .site-hero__carousel .navigation-type-1 figcaption { padding-left: calc(var(--swiper-navigation-size, 44px) + 0.5rem); padding-right: calc(var(--swiper-navigation-size, 44px) + 0.5rem); }

    .swiper-autoplay-toggle-button { display: grid; }
}

@media (max-width: 47.9375rem) {
    /* The config's vertical pagination class has to be neutralised below the
       desktop threshold, where pagination stays on the horizontal axis. */
    .site-hero__carousel .swiper-pagination-vertical {
        flex-direction: row;
        width: auto;
    }
}

@media (min-width: 64rem) {
    .site-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 61.5%);
        grid-template-areas: "intro media";
        align-items: center;
        row-gap: 0;
        padding-bottom: 0;
    }

    .site-hero__intro {
        max-width: 24.75rem;
        margin-inline: auto;
        padding-inline: 1.5rem;
    }

    /* With no shuffle configured there is no second column to balance, so the
       copy takes the full band instead of leaving half the row empty. */
    .site-hero:not(:has(.site-hero__carousel)) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "intro";
        padding-block: var(--site-band-pad);
    }
    .site-hero:not(:has(.site-hero__carousel)) .site-hero__intro {
        max-width: var(--site-content-max);
        padding-inline: var(--site-gutter);
    }

    /* The z-index is load-bearing: Swiper puts .swiper at position relative with
       z-index 1, so an overlay left at auto paints behind the slide entirely.
       Sitting at 2 clears the slide layer and still stays under the library's
       controls at 10. The negative inset bleeds the artwork a pixel past the box
       so antialiasing along its edges can't leave a hairline showing, and it
       never takes a click. */
    .site-hero__carousel::after {
        content: '';
        position: absolute;
        inset: -1px;
        z-index: 2;
        pointer-events: none;
        background-image: url("/pics/shuffle_overlay.svg");
        background-repeat: no-repeat;
        background-position: left center;
        background-size: auto 101%;
    }
}


/* ==========================================================================
   Motto
   ========================================================================== */

/* The ornament repeats along both edges of the band, so it is a background
   rather than markup — nothing here is content. */
.site-motto {
    padding-block: var(--site-band-pad);
    background-color: var(--color-page);
}

.site-motto__title {
    padding-block: 4.5rem;
    background-image: url("/pics/wave-motto.svg"), url("/pics/wave-motto.svg");
    background-repeat: repeat-x, repeat-x;
    background-position: left top, left bottom;
    background-size: 1366px 48px, 1366px 48px;
}


/* ==========================================================================
   Upcoming events
   ========================================================================== */

.site-events {
    position: relative;
    padding-block: var(--site-band-pad);
    padding-inline: var(--site-gutter);
    background-color: var(--color-page);
}

/* Swiper measures the element rather than its parent, and reads an absurd
   width when it can't resolve one. */
.site-events .swiper {
    width: 100%;
    max-width: var(--site-content-max);
    margin: 3.125rem auto 0;
    padding-block: 1.25rem;
}

/* The top margin drops the card far enough inside its slide that the note's
   clip clears the carousel's clipping edge. The wash is a derived colour, so
   its foreground is paired against the page ground showing through rather than
   against the theme token's own guaranteed contrast. */
.site-events__card {
    display: grid;
    justify-items: start;
    row-gap: 0.5rem;
    height: 100%;
    box-sizing: border-box;
    margin-top: 11px;
    padding: 5.5rem 1.5rem 1.5rem;
    border: 3px solid var(--color-accent);
    border-radius: 30px 30px 0 30px;
    background-color: color-mix(in srgb, var(--color-2) 40%, transparent);
    color: var(--color-over-page);
}

/* The note sits over the card's top edge, so its clearance lives on the
   card's padding rather than on the note itself. */
.site-events__date {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    width: 155px;
    height: 199px;
    margin: -7.75rem 0 0 1rem;
    background-image: url("/pics/event-note.svg");
    background-repeat: no-repeat;
    background-size: contain;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.site-events__month { font-size: 2.5rem; }
.site-events__day   { font-size: 2.5rem; }

.site-events__title {
    margin: 0;
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 1.2;
}

.site-events .site-events__title a {
    color: var(--color-over-page);
    text-decoration: none;
}
.site-events .site-events__title a:hover,
.site-events .site-events__title a:focus-visible { text-decoration: underline; }

.site-events__meta {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.2;
}

.site-events__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.875rem;
    margin-top: 1.875rem;
}

/* position: static is what takes the buttons out of Swiper's absolute
   centring so they can sit in this row. */
.site-events .swiper-button-prev,
.site-events .swiper-button-next {
    position: static;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    --swiper-navigation-color: var(--color-accent);
    --swiper-navigation-size: 1.75rem;
}

.site-events .swiper-button-prev::after,
.site-events .swiper-button-next::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1;
    font-size: var(--swiper-navigation-size);
    text-transform: none;
}
.site-events .swiper-button-prev::after { content: 'chevron_left'; }
.site-events .swiper-button-next::after { content: 'chevron_right'; }

/* Nothing to advance to in either direction — the arrows would be inert. */
.site-events:has(.swiper-button-prev.swiper-button-disabled):has(.swiper-button-next.swiper-button-disabled) .swiper-button {
    display: none;
}


/* ==========================================================================
   Latest news
   ========================================================================== */

.site-news {
    padding-block: var(--site-band-pad);
    padding-inline: var(--site-gutter);
    background-color: var(--color-page);
}

.site-news__accordion,
.site-news__slider {
    max-width: var(--site-content-max);
    margin: 3.125rem auto 0;
}

/* Below the accordion's breakpoint the slider is the live copy. Only
   display: none also takes the hidden copy's controls out of the tab order. */
.site-news__accordion { display: none; }
.site-news__slider    { display: block; }

/* Accordion-scoped: the slider's Swiper wrapper also carries .items-list, and a
   flex-direction here would turn its row of slides into a stack. */
.site-news__accordion .items-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-news__accordion .item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: gap 0.3s;
}
.site-news__accordion .item:has([aria-hidden="false"]) { gap: 1.25rem; }

.site-news .item-inner {
    box-sizing: border-box;
    height: 100%;
    padding: 1.25rem;
    background-color: var(--color-accent);
    color: var(--color-over-accent);
}

.site-news .item-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 343 / 225;
    object-fit: cover;
}

.site-news .item-name {
    margin: 1.25rem 0 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.15;
}

/* Container-scoped so it outweighs the system stylesheet's blanket anchor
   colour, which would otherwise darken the title on this surface. */
.site-news .item-name a {
    color: var(--color-over-accent);
    text-decoration: none;
}
.site-news .item-name a:hover,
.site-news .item-name a:focus-visible { text-decoration: underline; }

.site-news .item-text {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.3;
}

.site-news__handle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    border: 0;
    background-color: var(--color-3);
    color: var(--color-over-3);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
}

/* The open item's strip takes its panel's colour, so strip and card read as
   one block rather than two stacked surfaces. */
.site-news__handle[aria-expanded="true"] {
    background-color: var(--color-accent);
    color: var(--color-over-accent);
}

.site-news__handle::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1;
    font-size: 1rem;
    text-transform: none;
    content: 'add';
}
.site-news__handle[aria-expanded="true"]::after { content: 'remove'; }

/* visibility rather than display: the box has to survive for the grid row and
   the transform to animate between states. */
.site-news .monui-panel {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition-duration: 0.3s;
    transition-property: grid-template-rows, visibility;
}
.site-news .monui-panel .item-inner { overflow: hidden; }
.site-news .monui-panel[aria-hidden="false"] {
    grid-template-rows: 1fr;
    visibility: visible;
}

/* The open panel's visibility rides on these transitions, so an environment
   that never advances them would leave it unreadable. Dropping the transition
   entirely lands it on the open values immediately. */
@media (prefers-reduced-motion: reduce) {
    .site-news .monui-panel,
    .site-news__accordion .item { transition: none; }
}

.site-news__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.875rem;
    margin-top: 1.875rem;
}

/* Every one of these lands on a property Swiper's own stylesheet also sets on
   the bare button class, and that sheet loads after this file — so each
   selector needs to carry the section class to outweigh it rather than tie. */
.site-news .site-news__arrow {
    position: static;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    --swiper-navigation-color: var(--color-accent);
    --swiper-navigation-size: 1.75rem;
}
.site-news .site-news__arrow::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1;
    font-size: var(--swiper-navigation-size);
    text-transform: none;
}
.site-news .site-news__arrow.swiper-button-prev::after { content: 'chevron_left'; }
.site-news .site-news__arrow.swiper-button-next::after { content: 'chevron_right'; }

.site-news__slider .swiper { width: 100%; }

@media (min-width: 64rem) {
    .site-news__accordion { display: block; }
    .site-news__slider    { display: none; }

    /* Two classes: Swiper's own stylesheet loads after this file and sets
       display on the button's bare class, which a single class only ties. */
    .site-news .site-news__arrow { display: none; }

    /* Horizontal mode. Every strip and every panel is a track of one row, so
       the <article> wrapper steps out of layout with display: contents and
       hands its two children straight to the row. The open panel holds the
       width the design draws it at and the strips divide what is left, which
       keeps the panel constant however many articles the category returns.
       The row's fixed height keeps the strips uniform however long a title runs. */
    .site-news__accordion .items-list {
        flex-direction: row;
        gap: 0;
        height: 33.5625rem;
    }

    .site-news__accordion .item { display: contents; }

    .site-news__accordion .item-title {
        flex: 1 1 0;
        min-width: 0;
        margin-left: 1.25rem;
    }
    /* Selectors still read the DOM tree, which display: contents leaves intact. */
    .site-news__accordion .items-list > .item:first-child > .item-title { margin-left: 0; }

    .site-news .monui-panel {
        flex: 0 0 0;
        grid-template-columns: 0;
        grid-template-rows: 100%;
        overflow-x: hidden;
        transition-property: opacity, transform, visibility;
        transform: translate(-100%);
        opacity: 0;
    }
    .site-news .monui-panel[aria-hidden="false"] {
        flex: 0 0 min(22.875rem, 100%);
        grid-template-columns: 1fr;
        margin-left: 0.625rem;
        transform: translate(0);
        opacity: 1;
    }

    .site-news .item-inner { overflow-y: auto; }

    .site-news__handle {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 1.5rem;
        height: 100%;
        padding: 1.5rem 1rem;
    }

    /* The rotation sits on the label rather than the button: writing-mode on a
       flex container reorients its axes, which would lay the label and glyph
       out side by side instead of stacked. The half-turn is what makes the
       label read upward. */
    .site-news__handle-text {
        writing-mode: vertical-lr;
        text-orientation: mixed;
        transform: rotate(180deg);
        overflow: hidden;
    }
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background-color: var(--color-page); }

.site-footer__wave {
    height: 56px;
    background-image: url("/pics/wave-footer.svg");
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: 1366px 56px;
}

.site-footer__main {
    padding-block: 1.875rem;
    padding-inline: var(--site-gutter);
    background-color: var(--color-2);
    color: var(--color-over-2);
}

.site-footer__inner {
    display: grid;
    row-gap: 1.875rem;
    max-width: var(--site-content-max);
    margin-inline: auto;
}

.site-footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.site-footer__identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-footer__logo {
    width: 102px;
    height: 102px;
    object-fit: contain;
}

.site-footer__name {
    color: var(--color-over-2);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.15;
}

.site-footer__social-list {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    background-color: var(--color-pill);
    color: var(--color-over-pill);
    list-style: none;
}

/* Every themed anchor in the footer takes the same body-prefixed shape: the
   system stylesheet loads after this file and ties a single class. The extra
   class here is what keeps the pill's own colour ahead of the band-wide
   anchor rule below, which would otherwise paint these glyphs. */
body .site-footer__social-list .site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-over-pill);
}

.site-footer__social-link svg,
.site-footer__social-link img {
    width: 2.75rem;
    height: 2.75rem;
}

/* Flattens the CMS's brand-coloured icons onto the pill. Two-tone brand SVGs
   expose their own part classes and need the paired transparency reset;
   single-tone icons take the fill directly. */
.flat-icon-colors {
    svg {
        &.color-flatten {
            .color-fill          { fill: currentColor; }
            .transparency-change { fill: transparent; }
        }

        &:not(.color-flatten) { fill: currentColor; }
    }
}

.site-footer__info {
    display: grid;
    row-gap: 1.5rem;
    justify-items: center;
}

.site-footer__links-list {
    display: grid;
    gap: 0.75rem 4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body .site-footer__main a {
    color: var(--color-over-2);
    font-size: 1.125rem;
    line-height: 1.15;
}

.site-footer__contact {
    display: grid;
    gap: 0.5rem;
    font-style: normal;
    text-align: center;
}

.site-footer__attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.875rem;
    padding: 0.625rem;
    background-color: var(--color-1);
    color: var(--color-over-1);
}

/* Both marks inherit the bar's colour rather than carrying a fill of their own. */
.site-footer__attribution svg { fill: currentColor; }

body .site-footer__attribution a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.site-footer__attribution a:first-child svg {
    width: 140px;
    height: 20px;
}

.site-footer__attribution a:last-child svg {
    height: 1.5rem;
    width: auto;
}

@media (min-width: 48rem) {
    .site-footer__top {
        flex-direction: row;
        justify-content: space-between;
    }

    .site-footer__info {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-items: start;
        column-gap: 4rem;
    }

    .site-footer__links-list { grid-template-columns: repeat(2, auto); }

    .site-footer__contact {
        justify-items: end;
        text-align: right;
    }

    .site-footer__name { font-size: 2rem; }
}
