/* ==========================================================================
   Youthnet public theme
   Reproduces the look of the previous Shopify "Impact" theme with original CSS.

   Sections:
     1. Tokens            8. Mega menu & dropdowns   15. Blocks
     2. Reset / base      9. Mobile drawer           16. Blog
     3. Typography       10. Search overlay          17. Search page
     4. Layout           11. Footer                  18. Errors / misc
     5. Buttons          12. Forms                   19. Utilities
     6. Prose            13. Section backgrounds     20. Reduced motion
     7. Header           14. Cards & badges

   Breakpoints (mobile first): 700px, 1000px, 1150px (desktop nav), 1400px.
   Colour settings are injected as custom properties by the layout.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --color-primary: #38386b;
    --color-primary-rgb: 56 56 107;
    --color-secondary: #477666;
    --color-secondary-rgb: 71 118 102;
    --color-heading: #4c506d;
    --color-text: #3e3e3e;
    --color-text-rgb: 62 62 62;
    --color-light: #f5f5f5;
    --color-footer: #3e3e3e;
    --color-white: #fff;
    --color-border: rgb(var(--color-text-rgb) / .12);
    --color-subdued: rgb(var(--color-text-rgb) / .75);
    --color-error: #c40000;
    --color-success-bg: #e0f4e8;
    --color-success: #00702c;

    --font-heading: Poppins, "Helvetica Neue", Arial, sans-serif;
    --font-body: Outfit, "Helvetica Neue", Arial, sans-serif;
    --font-body-weight: 200;

    --text-h0: 3rem;
    --text-h1: 2.5rem;
    --text-h2: 2rem;
    --text-h3: 1.5rem;
    --text-h4: 1.375rem;
    --text-h5: 1.125rem;
    --text-h6: 1rem;
    --text-xs: .8125rem;
    --text-sm: .875rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;

    --container-max: 1500px;
    --container-gutter: 1.25rem;
    --section-space: 2rem;
    --grid-gap: 1.25rem;
    --stack-gap: 2rem;

    --radius-xs: .25rem;
    --radius-sm: .4375rem;
    --radius: .875rem;
    --radius-lg: 1.75rem;
    --radius-button: 3.75rem;
    --radius-input: .625rem;

    --input-height: 2.625rem;
    --header-height: 81px;
    --header-pad: 1.125rem;
    --logo-width: 125px;
    --shadow: 0 5px 15px rgb(var(--color-text-rgb) / .2);
    --shadow-lg: 0 18px 50px rgb(var(--color-text-rgb) / .2);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 700px) {
    :root {
        --text-h0: 4rem;
        --text-h1: 3rem;
        --text-h2: 2.5rem;
        --text-h3: 2rem;
        --text-h4: 1.625rem;
        --text-h5: 1.25rem;
        --text-h6: 1.125rem;
        --text-xs: .875rem;
        --text-sm: 1rem;
        --text-base: 1.125rem;
        --text-lg: 1.375rem;
        --container-gutter: 2rem;
        --section-space: 3rem;
        --grid-gap: 1.5rem;
        --stack-gap: 2.5rem;
        --input-height: 3.125rem;
        --header-pad: 2.125rem;
        --header-height: 132px;
        --logo-width: 175px;
    }
}

@media (min-width: 1000px) {
    :root {
        --container-gutter: 3rem;
        --section-space: 3.5rem;
    }
}

@media (min-width: 1150px) {
    :root { --stack-gap: 3rem; }
}

@media (min-width: 1400px) {
    :root {
        --text-h0: 5rem;
        --text-h1: 3.75rem;
        --text-h2: 3rem;
        --text-h3: 2.25rem;
        --text-h4: 2rem;
        --text-h5: 1.5rem;
        --text-h6: 1.25rem;
        --section-space: 4rem;
    }
}

/* 2. Reset / base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: var(--font-body-weight);
    font-size: var(--text-base);
    line-height: 1.65;
    letter-spacing: .02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 500; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
main:focus { outline: none; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2rem 0; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-button);
    font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* 3. Typography ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .h0, .h1, .h2, .h3, .h4, .h5, .h6 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0;
    color: var(--heading-color, var(--color-heading));
    overflow-wrap: anywhere;
}
.h0 { font-size: var(--text-h0); line-height: 1.1; }
h1, .h1 { font-size: var(--text-h1); line-height: 1.15; }
h2, .h2 { font-size: var(--text-h2); line-height: 1.2; }
h3, .h3 { font-size: var(--text-h3); line-height: 1.25; }
h4, .h4 { font-size: var(--text-h4); line-height: 1.3; }
h5, .h5 { font-size: var(--text-h5); line-height: 1.35; }
h6, .h6 { font-size: var(--text-h6); line-height: 1.4; }
p { margin: 0; }

.subheading {
    display: block;
    margin: 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-sm);
    letter-spacing: .02em;
    color: inherit;
}
.text-subdued { color: var(--color-subdued); }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }

/* 4. Layout ----------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: calc(var(--container-max) + 2 * var(--container-gutter));
    margin-inline: auto;
    padding-inline: var(--container-gutter);
}
.container--narrow { max-width: calc(800px + 2 * var(--container-gutter)); }
.container--normal { max-width: calc(1100px + 2 * var(--container-gutter)); }

.block { padding-block: var(--section-space); position: relative; }
.block--flush-top { padding-top: 0; }
.block--hero { padding: 0; }

.section-header {
    display: grid;
    gap: 1rem;
    margin-bottom: var(--stack-gap);
    max-width: 800px;
}
.section-header--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-header--row {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.stack { display: grid; gap: 1.5rem; }
.button-group { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-center .button-group, .button-group--center { justify-content: center; }

/* Horizontal scroll carousel on small screens (columns, posts) */
.scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 73vw;
    gap: var(--grid-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--container-gutter);
    margin-inline: calc(-1 * var(--container-gutter));
    padding-inline: var(--container-gutter);
    padding-bottom: .5rem;
    scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 700px) { .scroller { grid-auto-columns: 45vw; } }

/* 5. Buttons ---------------------------------------------------------------- */
.button {
    --btn-bg: var(--color-primary);
    --btn-fg: #f5f5f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3rem;
    padding: .75rem 2rem;
    border: 1px solid var(--btn-bg);
    border-radius: var(--radius-button);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}
.button:hover { opacity: .85; }
.button--secondary { --btn-bg: var(--color-secondary); }
.button--light { --btn-bg: #fff; --btn-fg: var(--color-primary); }
.button--outline { background: transparent; color: var(--btn-bg); }
.button--sm { min-height: 2.5rem; padding: .5rem 1.25rem; font-size: var(--text-xs); }
@media (min-width: 1000px) { .button { min-height: 3.5rem; padding-inline: 2.5rem; } .button--sm { min-height: 2.75rem; padding-inline: 1.5rem; } }

.is-dark .button--primary, .content-over-media .button--primary { --btn-bg: #fff; --btn-fg: var(--color-primary); }
.is-dark .button--secondary { --btn-bg: transparent; --btn-fg: #fff; border-color: #fff; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-size: var(--text-sm);
    font-weight: 300;
}
.link-arrow .circle {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgb(var(--color-text-rgb) / .08);
    transition: background-color .2s, color .2s;
}
.link-arrow:hover .circle { background: var(--color-primary); color: #fff; }

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

/* 6. Prose (rich text from the editor) --------------------------------------- */
.prose > * + * { margin-top: 1em; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: var(--text-h2); }
.prose h2 { font-size: var(--text-h3); }
.prose h3 { font-size: var(--text-h4); }
.prose h4 { font-size: var(--text-h5); }
.prose a:not(.button) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.button):hover { opacity: .75; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--radius); margin-inline: auto; }
.prose blockquote {
    margin-inline: 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--color-primary);
    font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { padding: .5rem .75rem; border: 1px solid var(--color-border); text-align: left; }
.prose iframe { width: 100%; border: 0; border-radius: var(--radius); }
.prose iframe[src*="youtube"], .prose iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.prose em { font-style: italic; }
.prose--subdued { color: var(--color-subdued); }
.prose--sm { font-size: var(--text-sm); }

/* 7. Header ------------------------------------------------------------------ */
.announcement-bar {
    background: var(--color-primary);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 400;
    text-align: center;
    padding-block: .6rem;
}
.announcement-bar a:hover { text-decoration: underline; }

.preview-ribbon {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: .4rem 1rem;
    background: #e9ab4d;
    color: #2a2a2a;
    font-size: .875rem;
    font-weight: 500;
    text-align: center;
}

.site-header {
    --header-fg: var(--color-text);
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--color-light);
    color: var(--header-fg);
    transition: background-color .25s ease, color .25s ease, transform .3s var(--ease), box-shadow .25s;
}
.site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "start logo end";
    align-items: center;
    column-gap: 1.5rem;
    padding-block: var(--header-pad);
}
.site-header__tools { display: flex; align-items: center; gap: .25rem; }
.site-header__tools--start { grid-area: start; margin-left: -.5rem; }
.site-header__tools--end { grid-area: end; justify-content: flex-end; gap: 1.5rem; }
.site-header__logo { grid-area: logo; display: block; width: var(--logo-width); }
.site-header__logo-img { width: 100%; height: auto; }
.site-header__logo-img--light { display: none; }
.site-header__logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1;
    white-space: nowrap;
}
.site-nav, .site-header__secondary, .site-header__search-desktop { display: none; }

.site-nav__list { display: flex; flex-wrap: wrap; align-items: center; column-gap: 2rem; row-gap: .5rem; margin: 0; padding: 0; list-style: none; }
.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding-block: .25rem;
    font-size: var(--text-sm);
    font-size: max(var(--text-sm), 1.0625rem);
    font-weight: 500;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: opacity .2s;
}
.site-nav__link:hover, .site-nav__disclosure[open] > .site-nav__link { opacity: .7; }
.site-nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-nav__disclosure[open] > summary .icon--chevron { transform: rotate(180deg); }
.icon--chevron { transition: transform .2s ease; }

@media (min-width: 1150px) {
    .site-header__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "logo nav end";
        column-gap: 2rem;
    }
    .site-header__tools--start { display: none; }
    .site-nav { display: block; grid-area: nav; }
    .site-header__secondary { display: block; }
    .site-header__search-desktop { display: inline-grid; margin-right: -.5rem; }
}
@media (min-width: 1400px) {
    .site-header__inner { column-gap: 3rem; }
}

/* Transparent header over the first hero */
.site-header--overlay:not(.is-solid) {
    --header-fg: #fff;
    background: transparent;
}
.site-header--overlay:not(.is-solid) .site-header__logo-img--light { display: block; }
.site-header--overlay:not(.is-solid) .site-header__logo--has-light .site-header__logo-img--default { display: none; }
.has-header-overlay main > .block--hero:first-child { margin-top: calc(-1 * var(--header-height)); }
.has-header-overlay main > .block--hero:first-child .content-over-media__content { padding-top: calc(var(--header-height) + 1.5rem); }
.site-header.is-solid { box-shadow: 0 1px 0 var(--color-border); }
.site-header.is-hidden { transform: translateY(-100%); }

/* 8. Mega menu & dropdowns --------------------------------------------------- */
.site-nav__disclosure { position: static; }
.site-nav__disclosure--dropdown { position: relative; }

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-light);
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 20px 30px -20px rgb(var(--color-text-rgb) / .25);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    animation: menu-in .2s var(--ease);
}
.mega-menu__inner {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem 4rem;
    padding-block: 3rem;
}
.mega-menu__columns {
    display: flex;
    gap: 2rem 3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mega-menu__column { display: grid; gap: 1rem; align-content: start; max-width: 180px; }
.mega-menu__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-h6);
    line-height: 1.35;
    color: var(--color-text);
}
.mega-menu__title:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega-menu__links { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.mega-menu__link { font-size: var(--text-sm); color: var(--color-subdued); transition: color .2s; }
.mega-menu__link:hover { color: var(--color-text); }
.mega-menu__promos { display: grid; grid-template-columns: repeat(2, minmax(160px, 300px)); gap: 1rem; }

.promo-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 1;
    background: var(--color-primary);
    color: #fff;
}
.promo-tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.promo-tile:hover .promo-tile__img { transform: scale(1.04); }
.promo-tile__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    font-size: var(--text-h6);
    line-height: 1.3;
    background: linear-gradient(to top, rgb(0 0 0 / .45), transparent);
}
@media (min-width: 1400px) { .mega-menu__promos { grid-template-columns: repeat(2, minmax(220px, 300px)); } }

.dropdown {
    position: absolute;
    top: calc(100% + .9rem);
    left: -1.5rem;
    z-index: 2;
    min-width: 15rem;
    padding: 1rem 0;
    background: var(--color-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    animation: menu-in .2s var(--ease);
}
.dropdown__list { margin: 0; padding: 0; list-style: none; }
.dropdown__item { position: relative; }
.dropdown__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .45rem 1.5rem;
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--color-subdued);
    white-space: nowrap;
    transition: color .2s;
}
.dropdown__link:hover, .dropdown__disclosure[open] > .dropdown__link { color: var(--color-text); }
.dropdown__link[aria-current="page"] { color: var(--color-text); font-weight: 400; }
.dropdown .dropdown { top: -1rem; left: 100%; margin-left: .25rem; }

@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 9. Mobile drawer ------------------------------------------------------------ */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    visibility: hidden;
    pointer-events: none;
}
.drawer:target, .drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / .3);
    opacity: 0;
    transition: opacity .3s;
}
.drawer:target .drawer__backdrop, .drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute;
    top: .5rem;
    bottom: .5rem;
    left: .5rem;
    width: min(420px, calc(100% - 1rem));
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--color-text);
    border-radius: var(--radius);
    overflow-y: auto;
    transform: translateX(calc(-100% - 1rem));
    transition: transform .35s var(--ease);
}
.drawer:target .drawer__panel, .drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: flex-end; padding: .75rem .75rem 0; }
.drawer__nav { flex: 1; padding: .5rem 1.75rem 2rem; }
.drawer__list, .drawer__sublist, .drawer__secondary { margin: 0; padding: 0; list-style: none; }
.drawer__list { display: grid; gap: 1rem; }
.drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
}
.drawer__link--d0 { font-size: var(--text-h4); line-height: 1.3; }
.drawer__link--d1 { font-size: var(--text-h6); }
.drawer__link--d2, .drawer__link--overview { font-family: var(--font-body); font-weight: 300; font-size: var(--text-base); color: var(--color-subdued); }
.drawer__sublist { display: grid; gap: .75rem; padding: 1rem 0 .5rem 1rem; }
.drawer__group--d1 > .drawer__sublist { padding-top: .6rem; gap: .5rem; }
.circle-chevron {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgb(var(--color-text-rgb) / .08);
    transition: background-color .2s, color .2s, transform .2s;
}
.drawer__group[open] > summary .circle-chevron { background: var(--color-primary); color: #fff; transform: rotate(180deg); }
.drawer__promos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .5rem 0 0 1rem; }
.drawer__promos .promo-tile__label { font-size: .95rem; padding: .75rem; }
.drawer__secondary { display: grid; gap: .6rem; margin-top: 2rem; }
.drawer__secondary a { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-h6); }
.drawer__foot { padding: 1.25rem 1.75rem; border-top: 1px solid var(--color-border); }
@media (min-width: 1150px) { .drawer { display: none; } }

/* 10. Search overlay ------------------------------------------------------------ */
.search-overlay { position: fixed; inset: 0; z-index: 90; }
.search-overlay__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .3); }
.search-overlay__panel {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--color-text);
    box-shadow: var(--shadow);
    animation: menu-in .2s var(--ease);
}
.search-overlay__form { display: flex; align-items: center; gap: 1rem; padding-block: 1.5rem; }
.search-overlay__form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: var(--text-h5);
    font-weight: 300;
    color: inherit;
    padding: .5rem 0;
}
.search-overlay__form input:focus { outline: none; }

/* 11. Footer ------------------------------------------------------------------- */
.site-footer {
    background: var(--color-footer);
    color: #f5f5f5;
    padding-block: var(--section-space);
    font-size: var(--text-sm);
}
.site-footer__inner {
    display: grid;
    gap: 3rem;
    grid-template-areas: "brand" "cols" "bottom";
}
.site-footer__brand { grid-area: brand; display: grid; gap: 2rem; align-content: start; max-width: 380px; }
.site-footer__logos { display: flex; align-items: flex-end; gap: 1rem; }
.site-footer__logo { display: block; width: 160px; }
.site-footer__logo-text { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; }
.site-footer__badge { display: block; width: 72px; flex: none; }
.site-footer__badge img { width: 100%; }
.site-footer__newsletter-heading { color: #fff; font-size: var(--text-h5); margin-bottom: 1.25rem; }
.site-footer__columns {
    grid-area: cols;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    align-content: start;
}
.site-footer__col ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.site-footer__heading { font-weight: 500; margin-bottom: 1.1rem; line-height: 1.5; }
.site-footer__link, .site-footer__text { color: rgb(245 245 245 / .7); }
.site-footer__link:hover { color: #fff; }
.site-footer__col--text { grid-column: 1 / -1; display: grid; gap: 1.5rem; align-content: start; }
.site-footer__col--text .site-footer__heading { margin: 0; }
.site-footer__text { line-height: 1.7; }
.site-footer__more { text-decoration: underline; text-underline-offset: 4px; color: rgb(245 245 245 / .8); }
.site-footer__more:hover { color: #fff; }
.site-footer__bottom { grid-area: bottom; }
.site-footer__copyright { font-size: var(--text-xs); color: rgb(245 245 245 / .7); }
.site-footer .input { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .2); color: #fff; }
.site-footer .input:focus { border-color: #fff; }
@media (min-width: 700px) {
    .site-footer__logo { width: 200px; }
    .site-footer__badge { width: 88px; }
    .site-footer__columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer__col--text { grid-column: auto; }
}
@media (min-width: 1000px) {
    .site-footer__inner {
        grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
        grid-template-areas: "brand cols" "bottom cols";
        column-gap: clamp(3rem, 6vw, 6rem);
        row-gap: 2.5rem;
    }
    .site-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 2.5rem; }
    .site-footer__bottom { align-self: end; }
}

.social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 0 -.5rem; padding: 0; list-style: none; }
.social-links__link { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; transition: opacity .2s; }
.social-links__link:hover { opacity: .7; }

/* 12. Forms ---------------------------------------------------------------------- */
.field { display: grid; gap: .4rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .75rem; }
.field__label { font-size: var(--text-xs); font-weight: 400; }
.field__required { opacity: .6; }
.field__error { font-size: var(--text-xs); color: var(--color-error); font-weight: 400; }
.input, .textarea {
    width: 100%;
    min-height: var(--input-height);
    padding: .6rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    background: #fff;
    color: var(--color-text);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 300;
    transition: border-color .2s;
}
.textarea { min-height: 8rem; resize: vertical; padding-block: .9rem; }
.input:focus, .textarea:focus { outline: none; border-color: var(--color-text); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--color-error); }
.input::placeholder, .textarea::placeholder { color: rgb(var(--color-text-rgb) / .5); }
.newsletter-form { display: grid; gap: 1rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-input); font-size: var(--text-sm); font-weight: 400; }
.alert--success { background: var(--color-success-bg); color: var(--color-success); }
.alert--error { background: #fce0e0; color: var(--color-error); }

/* 13. Section backgrounds -------------------------------------------------------- */
.bg-white { background: #fff; }
.bg-light { background: var(--color-light); }
.bg-primary { background: var(--color-primary); }
.bg-secondary { background: var(--color-secondary); }
.bg-dark { background: var(--color-footer); }
.is-dark { color: #fff; --heading-color: #fff; --color-subdued: rgb(255 255 255 / .8); --color-border: rgb(255 255 255 / .2); }
.is-dark .input, .is-dark .textarea { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .25); }

/* 14. Cards & badges ------------------------------------------------------------ */
.media-frame { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: rgb(var(--color-text-rgb) / .04); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--landscape { aspect-ratio: 4 / 3; }
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--circle { aspect-ratio: 1; border-radius: 50%; }
.media-frame--natural img { height: auto; }
a.media-frame img, .zoom-on-hover img { transition: transform .6s var(--ease); }
a.media-frame:hover img, a:hover > .media-frame img { transform: scale(1.03); }

.badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: var(--radius-button);
    background: #2f2a3b;
    color: #fff;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .02em;
}
.badge--light { background: rgb(var(--color-text-rgb) / .1); color: var(--color-text); }

/* 15. Blocks ======================================================================= */

/* --- Hero (content over media) --- */
.content-over-media {
    position: relative;
    display: grid;
    min-height: var(--hero-min, 0);
    overflow: hidden;
    background: var(--hero-bg, var(--color-primary));
    color: #fff;
    --heading-color: #fff;
}
.content-over-media__media { position: absolute; inset: 0; }
.content-over-media__media img, .content-over-media__media picture { width: 100%; height: 100%; object-fit: cover; }
.content-over-media__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(var(--hero-overlay-rgb, 62 62 62) / var(--hero-overlay, .3));
}
.content-over-media__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.25rem;
    width: 100%;
    padding-block: 3rem;
    align-self: center;
}
.content-over-media__text { display: grid; gap: 1.25rem; max-width: 760px; }
.content-over-media--top .content-over-media__content { align-self: start; }
.content-over-media--bottom .content-over-media__content { align-self: end; }
.content-over-media--center .content-over-media__text { margin-inline: auto; text-align: center; justify-items: center; }
.content-over-media--center .button-group { justify-content: center; }
.content-over-media .h1 { font-size: var(--text-h1); }
.content-over-media__body { font-size: var(--text-sm); font-weight: 200; }
.content-over-media__body.prose a:not(.button) { color: #fff; }
.hero--small { --hero-min: 300px; }
.hero--medium { --hero-min: 400px; }
.hero--large { --hero-min: 520px; }
.hero--full { --hero-min: 100svh; }
.hero--auto .content-over-media__content { padding-block: 3.5rem; }
@media (min-width: 700px) {
    .hero--small { --hero-min: 380px; }
    .hero--medium { --hero-min: 480px; }
    .hero--large { --hero-min: 560px; }
    .content-over-media__content { padding-block: 4rem; }
}
@media (min-width: 1000px) {
    .hero--small { --hero-min: 440px; }
    .hero--medium { --hero-min: 500px; }
    .hero--large { --hero-min: 640px; }
    .hero--auto .content-over-media__content { padding-block: 4.5rem; }
}

/* --- Impact statement --- */
.impact-text { display: grid; gap: 2rem; justify-items: center; text-align: center; max-width: 800px; margin-inline: auto; }
.impact-text__statement {
    font-size: var(--text-h4);
    line-height: 1.3;
    text-transform: uppercase;
    white-space: pre-line;
}
.impact-text__body { max-width: 760px; }
@media (min-width: 1000px) { .block--impact-text { padding-block: calc(var(--section-space) * 1.1); } }

/* --- Rich text --- */
.rich-text { display: grid; gap: 1.5rem; }
.rich-text--center { text-align: center; justify-items: center; }
.rich-text--center .button-group { justify-content: center; }
.rich-text .prose { width: 100%; }

/* --- Media with text --- */
.media-text { display: grid; gap: 2rem; align-items: center; }
.media-text__media { border-radius: var(--radius-lg); overflow: hidden; }
.media-text__media img { width: 100%; }
.media-text__media--video { aspect-ratio: 16 / 9; }
.media-text__media iframe { width: 100%; height: 100%; border: 0; }
.media-text__content { display: grid; gap: 1.5rem; justify-items: start; }
@media (min-width: 1000px) {
    .media-text { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 6rem); }
    .media-text--right .media-text__media { order: 2; }
    .media-text__content { padding-block: 2rem; }
}

/* --- Columns --- */
.columns-grid { display: grid; gap: 3rem var(--grid-gap); }
.columns-grid.scroller { gap: var(--grid-gap); }
.column-card { display: grid; gap: 1.25rem; align-content: start; }
.column-card__body { display: grid; gap: .75rem; justify-items: start; }
.column-card__title { font-size: var(--text-h6); color: var(--heading-color, var(--color-heading)); }
@media (min-width: 1400px) { .column-card__title { font-size: 1.375rem; } }
.column-card__text { font-size: var(--text-sm); line-height: 1.7; color: var(--color-subdued); }
@media (min-width: 1150px) { .column-card__text { font-size: 1.0625rem; } }
.column-card__text p + p { margin-top: .75rem; }
.column-card .button { margin-top: .5rem; }
.columns--center .column-card { text-align: center; }
.columns--center .column-card__body { justify-items: center; }
.columns--center .media-frame--circle { width: min(220px, 70%); margin-inline: auto; }
@media (min-width: 700px) {
    .columns-grid:not(.scroller) { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
    .columns-grid:not(.scroller), .columns-grid.scroller {
        grid-auto-flow: row;
        grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
        overflow: visible;
        margin-inline: 0;
        padding-inline: 0;
        gap: 3rem var(--grid-gap);
    }
}

/* --- Image links (logos / tiles) --- */
.image-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); align-items: center; }
@media (min-width: 700px) { .image-links { grid-template-columns: repeat(min(var(--cols, 5), 3), minmax(0, 1fr)); } }
@media (min-width: 1000px) { .image-links { grid-template-columns: repeat(min(var(--cols, 5), 4), minmax(0, 1fr)); } }
@media (min-width: 1400px) { .image-links { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); } }
.image-links__logo { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: .5rem; transition: opacity .2s; }
.image-links__logo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
a.image-links__logo:hover { opacity: .75; }
.image-links__logo-text { font-family: var(--font-heading); font-weight: 600; text-align: center; }
.image-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; background: var(--color-primary); color: #fff; }
.image-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.image-tile:hover img { transform: scale(1.04); }
.image-tile__title {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.25rem;
    font-family: var(--font-heading); font-weight: 600; font-size: var(--text-h6); line-height: 1.3; color: #fff;
    background: linear-gradient(to top, rgb(0 0 0 / .5), transparent);
}

/* --- Blog posts (block + listing) --- */
.post-grid { display: grid; gap: 3rem var(--grid-gap); }
.post-grid.scroller { grid-auto-columns: 74vw; }
@media (min-width: 700px) { .post-grid.scroller { grid-auto-columns: 52vw; } .post-grid:not(.scroller) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
    .post-grid:not(.scroller), .post-grid.scroller {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible; margin-inline: 0; padding-inline: 0;
    }
}
.post-card { display: grid; gap: 1.25rem; align-content: start; }
.post-card__media { position: relative; }
.post-card__media .badge { position: absolute; top: .75rem; left: .75rem; z-index: 1; }
.post-card__body { display: grid; gap: 1rem; justify-items: start; }
.post-card__title { font-size: var(--text-h4); line-height: 1.2; color: var(--color-text); }
.post-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post-card__excerpt { font-size: var(--text-sm); color: var(--color-subdued); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; font-size: var(--text-xs); color: var(--color-subdued); }
.post-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.post-card--no-image .post-card__media { display: none; }

/* --- Accordion --- */
.accordion-layout { display: grid; gap: 2rem; }
@media (min-width: 1000px) {
    .accordion-layout--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 4rem; }
    .accordion-layout--split .section-header { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; }
}
.accordion { border-top: 1px solid var(--color-border); }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-h6);
    line-height: 1.4;
    color: var(--heading-color, var(--color-text));
}
.accordion__summary .circle-chevron { transition: transform .25s, background-color .2s, color .2s; }
.accordion__item[open] .accordion__summary .circle-chevron { transform: rotate(45deg); background: var(--color-primary); color: #fff; }
.accordion__content { padding-bottom: 1.5rem; max-width: 900px; }

/* --- Timeline --- */
.timeline__slide { display: grid; gap: 2rem; align-items: start; }
.timeline__slide + .timeline__slide { margin-top: 4rem; }
.timeline.is-ready .timeline__slide { margin-top: 0; }
.timeline.is-ready .timeline__slide:not(.is-active) { display: none; }
.timeline.is-ready .timeline__slide.is-active { animation: fade-in .4s var(--ease); }
.timeline__media { border-radius: var(--radius); overflow: hidden; }
.timeline__media img { width: 100%; }
.timeline__content { display: grid; gap: 1.25rem; align-content: start; max-width: 520px; }
.timeline__content .subheading { font-size: var(--text-xs); }
.timeline__title { font-size: var(--text-h3); }
.timeline__text { color: var(--color-subdued); font-size: var(--text-sm); }
@media (min-width: 1000px) {
    .timeline__slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
    .timeline__slide--no-media { grid-template-columns: minmax(0, 1fr); }
    .timeline__content { padding-top: 0; }
}
.timeline__nav { display: none; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.timeline.is-ready .timeline__nav { display: flex; }
.timeline__track {
    position: relative;
    flex: 1;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.timeline__track::-webkit-scrollbar { display: none; }
.timeline__track li { flex: 1 0 4rem; position: relative; }
.timeline__track li::before {
    content: "";
    position: absolute;
    top: .55rem;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
}
.timeline__dot {
    position: relative;
    display: grid;
    justify-items: start;
    gap: .5rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: var(--text-xs);
    color: var(--color-subdued);
    font-weight: 300;
}
.timeline__dot::before {
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff;
    transition: background-color .2s, border-color .2s;
}
.timeline__dot[aria-current="true"] { color: var(--color-text); font-weight: 500; }
.timeline__dot[aria-current="true"]::before { background: var(--color-primary); border-color: var(--color-primary); }
.timeline__arrows { display: flex; gap: .5rem; flex: none; }
.circle-button {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.circle-button:hover:not(:disabled) { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.circle-button:disabled { opacity: .4; cursor: default; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --- Gallery --- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
@media (max-width: 699px) { .gallery--2 { grid-template-columns: minmax(0, 1fr); } }
.gallery__item { margin: 0; display: grid; gap: .6rem; }
.gallery__item .media-frame { aspect-ratio: 4 / 3; }
.gallery__caption { font-size: var(--text-xs); color: var(--color-subdued); }

/* --- Video --- */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block__caption { margin-top: 1.25rem; font-size: var(--text-sm); color: var(--color-subdued); }

/* --- Contact form --- */
.contact-layout { display: grid; gap: 2.5rem; align-items: start; }
.contact-layout__info { display: grid; gap: 1.25rem; align-content: start; }
.contact-layout__info .prose { font-size: var(--text-sm); }
.contact-card { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--color-light); }
.bg-light .contact-card { background: #fff; }
.is-dark .contact-card { background: rgb(255 255 255 / .08); }
.contact-form { display: grid; gap: 1rem; }
.contact-form .button { justify-self: start; }
@media (min-width: 700px) { .contact-card { padding: 2.5rem; } }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 4rem; } }

/* --- Newsletter block --- */
.newsletter-block { display: grid; gap: 1.5rem; max-width: 640px; margin-inline: auto; text-align: center; }
.newsletter-block .newsletter-form { text-align: left; }

/* --- HTML embed --- */
.html-embed > * + * { margin-top: 1rem; }
.html-embed iframe { width: 100%; border: 0; }

/* --- Spacer --- */
.block--spacer { padding: 0; }
.spacer--small { height: 1.5rem; }
.spacer--medium { height: 3rem; }
.spacer--large { height: 6rem; }
.spacer__line { height: 100%; display: grid; align-items: center; }
.spacer__line hr { margin: 0; width: 100%; }

/* 16. Blog ======================================================================= */
.blog-hero { padding-block: 3rem 2rem; background: var(--color-light); text-align: center; }
.blog-hero__inner { display: grid; gap: 1.25rem; justify-items: center; max-width: 720px; margin-inline: auto; }
.blog-hero h1 { color: var(--color-text); font-size: var(--text-h1); }
.blog-hero .prose { font-size: var(--text-sm); }
.blog-hero__subscribe { display: flex; gap: .75rem; width: 100%; max-width: 460px; }
.blog-hero__subscribe .input { flex: 1; }
@media (min-width: 1000px) { .blog-hero { padding-block: 4rem 3rem; } }

.tag-bar { background: var(--color-light); }
.tag-bar__list { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.tag-bar__list::-webkit-scrollbar { display: none; }
.tag-bar__link {
    display: block;
    padding: .75rem 1.25rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: var(--text-xs);
    font-weight: 300;
    color: var(--color-subdued);
    white-space: nowrap;
    transition: color .2s;
}
.tag-bar__link:hover { color: var(--color-text); }
.tag-bar__link[aria-current="page"] { background: #fff; color: var(--color-text); font-weight: 500; }

.post-featured { display: grid; margin-bottom: var(--section-space); border-radius: var(--radius); overflow: hidden; background: var(--color-light); }
.post-featured .media-frame { border-radius: 0; }
.post-featured__body { display: grid; gap: 1.25rem; justify-items: start; align-content: center; padding: 2rem; }
.post-featured__title { font-size: var(--text-h3); color: var(--color-text); }
@media (min-width: 1000px) {
    .post-featured { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); min-height: 420px; }
    .post-featured .media-frame { height: 100%; }
    .post-featured__body { padding: 3rem; }
}

.pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: var(--section-space); flex-wrap: wrap; }
.pagination__item {
    display: grid; place-items: center;
    min-width: 2.5rem; height: 2.5rem; padding: 0 .5rem;
    border-radius: var(--radius-button);
    font-size: var(--text-sm);
}
.pagination__item--current { background: var(--color-primary); color: #fff; font-weight: 500; }
a.pagination__item:hover { background: rgb(var(--color-text-rgb) / .08); }
.pagination__item--disabled { opacity: .35; }

.article-hero { position: relative; padding-top: 3rem; text-align: center; }
.article-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 60%; background: var(--color-light); z-index: -1; }
.article-hero__inner { display: grid; gap: 1.25rem; justify-items: center; max-width: 900px; margin-inline: auto; }
.article-hero__title { color: var(--color-text); font-size: var(--text-h2); }
@media (min-width: 1000px) { .article-hero { padding-top: 4rem; } .article-hero__title { font-size: var(--text-h1); } }
.article { padding-block: 2.5rem var(--section-space); }
.article__inner { max-width: 760px; margin-inline: auto; display: grid; gap: 2.5rem; }
.article__image { border-radius: var(--radius); overflow: hidden; }
.article__image img { width: 100%; }
.article__body { font-size: var(--text-sm); }
.article__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.share { display: flex; align-items: center; gap: .5rem; font-size: var(--text-xs); font-weight: 500; }
.share a { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; transition: background-color .2s; }
.share a:hover { background: rgb(var(--color-text-rgb) / .08); }
.article-nav { display: grid; gap: 1rem; border-top: 1px solid var(--color-border); padding-top: 2rem; }
.article-nav a { display: grid; gap: .25rem; }
.article-nav span { font-size: var(--text-xs); color: var(--color-subdued); }
.article-nav strong { font-family: var(--font-heading); font-weight: 600; }
.article-nav a:hover strong { text-decoration: underline; }
@media (min-width: 700px) { .article-nav { grid-template-columns: 1fr 1fr; } .article-nav__next { text-align: right; } }
.reading-next { padding-block: var(--section-space); background: var(--color-light); }
.reading-next__title { display: flex; align-items: center; gap: .75rem; font-size: var(--text-h4); color: var(--color-text); margin-bottom: 2rem; }

/* 17. Search page ================================================================== */
.search-page { padding-block: var(--section-space); }
.search-page__form { display: flex; gap: .75rem; max-width: 640px; margin: 1.5rem auto 0; }
.search-page__form .input { flex: 1; }
.search-results { display: grid; gap: 1.25rem; max-width: 900px; margin: var(--stack-gap) auto 0; padding: 0; list-style: none; }
.search-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.5rem; border-radius: var(--radius); background: var(--color-light); }
.search-result--has-image { grid-template-columns: 96px minmax(0, 1fr); }
.search-result .media-frame { aspect-ratio: 1; border-radius: var(--radius-sm); }
.search-result__body { display: grid; gap: .4rem; }
.search-result__title { font-size: var(--text-h6); color: var(--color-text); }
.search-result__title a:hover { text-decoration: underline; }
.search-result__snippet { font-size: var(--text-sm); color: var(--color-subdued); }

/* 18. Errors / misc ================================================================ */
.page-title { text-align: center; }
.error-page { padding-block: calc(var(--section-space) * 2); text-align: center; }
.error-page__inner { display: grid; gap: 1.25rem; justify-items: center; max-width: 640px; margin-inline: auto; }
.error-page__code { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-h0); color: var(--color-primary); line-height: 1; }

/* 19. Utilities ===================================================================== */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
[hidden] { display: none !important; }
@media (max-width: 999px) { .hide-mobile { display: none !important; } }

/* 20. Reduced motion ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
.contact-layout--single { grid-template-columns: minmax(0, 1fr) !important; }

/* Footer: combined logo + seal artwork */
.site-footer__brand-image { display: block; width: min(100%, 380px); }
.site-footer__brand-image img { width: 100%; }
@media (min-width: 1000px) { .site-footer__logo { width: 240px; } }

/* ==========================================================================
   Program contact pop-up (#program-contact) — partials/program-contact
   ========================================================================== */
.pc-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.pc-modal.is-open, .pc-modal:target { display: flex; }
.pc-modal__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .45); cursor: default; }
.pc-modal__panel {
    position: relative; width: min(560px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto;
    background: #fff; color: var(--color-text); border-radius: 12px; padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 20px 60px rgb(0 0 0 / .25); outline: none;
}
.pc-modal__close { position: absolute; top: .9rem; right: .9rem; display: inline-flex; padding: .35rem; border-radius: 50%; color: inherit; }
.pc-modal__close:hover, .pc-modal__close:focus-visible { background: rgb(0 0 0 / .06); }
.pc-modal__title { margin: 0 0 .5rem; padding-right: 2rem; }
.pc-modal__intro { margin: 0 0 1rem; font-size: var(--text-sm); }
.pc-modal .contact-form { display: grid; gap: .9rem; }
.pc-modal .field__error:empty { display: none; }
.pc-modal select.input { appearance: auto; }
.pc-modal [data-pc-submit][disabled] { opacity: .6; cursor: progress; }
body.pc-locked { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
    .pc-modal.is-open .pc-modal__panel, .pc-modal:target .pc-modal__panel { animation: pc-in .2s ease-out; }
    @keyframes pc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
