/* Shared public-page safeguards. These load after each page stylesheet. */
.home-button--light {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 196px;
    padding: 16px 28px;
    background: #fff !important;
    color: #922a5d !important;
    box-shadow: 0 12px 28px rgb(46 13 30 / 18%);
}

.home-button--light:hover,
.home-button--light:focus-visible {
    background: #2d252c !important;
    color: #fff !important;
}

.home-button--light span {
    color: inherit !important;
    font-size: 20px;
    line-height: 1;
}

/* Never allow legacy heading rules to reduce image-hero contrast. */
.home-hero h1,
.home-hero-copy p,
.highlights-hero h1,
.highlights-hero span,
.program-hero h1,
.program-hero-content > p:last-child,
.contact-hero h1,
.contact-hero span,
.membership-hero h1,
.membership-hero span,
.member-directory-hero h1,
.member-directory-hero > div > p:not(.member-directory-eyebrow) {
    color: #fff !important;
    text-shadow: 0 2px 22px rgb(20 10 17 / 58%);
}

.highlights-hero h1 em,
.program-hero h1 em,
.contact-hero h1 em,
.membership-hero h1 em,
.member-directory-hero h1 em {
    color: #ffc0dc !important;
}

/* Keep the editorial intro close to the card collection. */
.highlights-intro {
    padding-top: clamp(62px, 8vw, 104px) !important;
    padding-bottom: clamp(34px, 5vw, 62px) !important;
}

.highlights-events {
    padding-bottom: clamp(70px, 8vw, 112px) !important;
}

.highlights-moments-heading {
    display: block !important;
    max-width: 720px;
    margin: 0 0 44px !important;
}

.highlights-moments-heading .highlights-eyebrow {
    margin-bottom: 18px;
}

.highlights-moments-heading h2 {
    max-width: 640px;
    font-size: clamp(52px, 5.4vw, 78px);
}

.program-intro {
    padding: clamp(64px, 8vw, 104px) 0 clamp(34px, 5vw, 60px) !important;
}

.program-feature-grid {
    padding: clamp(38px, 5vw, 68px) 0 clamp(76px, 9vw, 120px) !important;
}

/* Creative Outlet and Performing Kids follow the same contained page rhythm as the other public pages. */
.program-page--boxed {
    padding: clamp(22px, 3vw, 46px) 0 0;
}

.program-page--boxed .program-hero,
.program-page--boxed .program-story,
.program-page--boxed .program-quote {
    width: min(1160px, calc(100% - 64px));
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
    border-radius: 28px;
}

.program-page--boxed .program-hero {
    min-height: clamp(500px, 47vw, 640px);
}

.program-page--boxed .program-intro {
    max-width: 1160px;
}

.program-page--boxed .program-story {
    margin-top: 24px;
    min-height: 460px;
    box-shadow: 0 16px 34px rgb(45 37 44 / 7%);
}

.program-page--boxed .program-story-image img {
    min-height: 460px;
}

/* The final invitation deliberately breaks out of the contained story cards. */
.program-page--boxed .program-cta {
    width: 100%;
    margin: 24px 0 0;
    border-radius: 0;
}

.program-page--boxed .program-quote {
    position: relative;
    isolation: isolate;
    margin-top: 24px;
    display: grid;
    align-items: center;
    min-height: 278px;
    padding: clamp(40px, 5vw, 72px) clamp(32px, 8vw, 132px);
    background: #2d252c;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgb(255 224 240 / 16%), 0 20px 45px rgb(45 37 44 / 14%);
}

.program-quote::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: '';
    background:
        radial-gradient(circle at 12% 10%, rgb(215 77 144 / 42%), transparent 34%),
        radial-gradient(circle at 88% 82%, rgb(144 36 92 / 48%), transparent 38%);
}

.program-quote::after {
    position: absolute;
    top: clamp(28px, 4vw, 54px);
    left: clamp(28px, 4vw, 58px);
    content: '“';
    color: rgb(255 195 220 / 28%);
    font: 700 clamp(92px, 11vw, 176px)/.5 Georgia, serif;
    pointer-events: none;
}

.program-quote blockquote {
    position: relative;
    max-width: 810px;
    margin: 0 auto 0 clamp(32px, 5vw, 96px);
    color: inherit;
    font-family: Georgia, serif;
    font-size: clamp(24px, 2.45vw, 38px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: -.025em;
    text-align: left;
    text-wrap: balance;
}

/* Guardian portraits are intentionally prominent, so each supporter is recognisable. */
.guardian-directory-card {
    min-height: 184px;
    gap: 22px;
}

.guardian-directory-card img,
.guardian-directory-initial {
    width: 108px;
    height: 108px;
    flex-basis: 108px;
}

/* Membership is a working directory: show names and details densely, not in oversized tiles. */
.member-directory:not(.member-directory--guardians) .member-directory-hero {
    padding: clamp(62px, 7vw, 92px) 0 clamp(58px, 6vw, 80px);
}

.member-directory:not(.member-directory--guardians) .member-directory-hero h1 {
    max-width: 720px;
    font-size: clamp(48px, 5.4vw, 80px);
}

.member-directory:not(.member-directory--guardians) .member-directory-hero > .home-shell > p:not(.member-directory-eyebrow) {
    max-width: 540px;
    margin-top: 22px;
    font-size: clamp(17px, 1.6vw, 20px);
}

.member-directory:not(.member-directory--guardians) .member-directory-section {
    padding: clamp(68px, 8vw, 104px) 0;
}

.member-directory:not(.member-directory--guardians) .member-directory-heading {
    margin-bottom: 34px;
}

.member-directory:not(.member-directory--guardians) .member-directory-heading h2 {
    font-size: clamp(40px, 4.4vw, 66px);
}

.member-directory:not(.member-directory--guardians) .member-directory-grid {
    gap: 14px;
}

.member-directory:not(.member-directory--guardians) .member-directory-card {
    min-height: 0;
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgb(45 37 44 / 5%);
}

.member-directory:not(.member-directory--guardians) .member-directory-card-top {
    min-height: 0;
}

.member-directory:not(.member-directory--guardians) .member-directory-card-top img {
    width: 46px;
    height: 46px;
}

.member-directory:not(.member-directory--guardians) .member-directory-card h3 {
    margin: 14px 0 0;
    font-size: clamp(21px, 1.75vw, 27px);
    line-height: 1.06;
}

.member-directory:not(.member-directory--guardians) .member-directory-card p {
    font-size: 14px;
    line-height: 1.38;
}

.member-directory:not(.member-directory--guardians) .member-directory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
    margin-top: 9px;
}

.member-directory:not(.member-directory--guardians) .member-directory-card .member-directory-title,
.member-directory:not(.member-directory--guardians) .member-directory-address {
    margin: 0 !important;
    padding: 0 !important;
}

.member-directory:not(.member-directory--guardians) .member-directory-section--privilege .member-directory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-directory:not(.member-directory--guardians) .member-directory-card--privilege {
    position: relative;
    overflow: hidden;
    border: 0;
    background: linear-gradient(145deg, #fff, #f7eff3);
}

.member-directory:not(.member-directory--guardians) .member-directory-card--privilege::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #d04286;
}

.member-directory:not(.member-directory--guardians) .member-directory-section--privilege {
    background: linear-gradient(135deg, #261e25, #372834);
}

/* Timed image rotation for event cards. */
.highlights-event-media {
    position: relative;
    height: clamp(240px, 26vw, 390px);
    overflow: hidden;
    background: #2d252c;
}

.highlights-event-media img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: opacity 650ms ease;
}

.highlights-event-media img.is-active {
    opacity: 1;
}

.highlights-event-media::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: rgb(255 255 255 / 78%);
    box-shadow: 8px 0 0 rgb(255 255 255 / 36%), 16px 0 0 rgb(255 255 255 / 36%);
}

@media (max-width: 700px) {
    .program-intro {
        padding: 62px 0 34px !important;
    }

    .program-feature-grid {
        padding: 34px 0 70px !important;
    }

    .program-page--boxed {
        padding-top: 14px;
    }

    .program-page--boxed .program-hero,
    .program-page--boxed .program-story,
    .program-page--boxed .program-quote {
        width: calc(100% - 28px);
        border-radius: 20px;
    }

    .program-page--boxed .program-hero {
        min-height: 520px;
    }

    .program-page--boxed .program-story {
        margin-top: 14px;
        min-height: 0;
    }

    .program-page--boxed .program-story-image img {
        min-height: 280px;
    }

    .program-page--boxed .program-cta {
        margin-top: 14px;
    }

    .program-page--boxed .program-quote {
        margin-top: 14px;
        min-height: 0;
        padding: 46px 32px 44px;
    }

    .program-quote::after {
        top: 26px;
        left: 18px;
        font-size: 94px;
    }

    .program-quote blockquote {
        margin-left: 26px;
        font-size: clamp(22px, 6.4vw, 30px);
        line-height: 1.32;
    }

    .highlights-event-media {
        height: 255px;
    }

    .highlights-moments-heading {
        margin-bottom: 32px !important;
    }

    .guardian-directory-card {
        min-height: 148px;
        gap: 17px;
    }

    .guardian-directory-card img,
    .guardian-directory-initial {
        width: 84px;
        height: 84px;
        flex-basis: 84px;
    }

    .member-directory:not(.member-directory--guardians) .member-directory-hero {
        padding: 62px 0 58px;
    }

    .member-directory:not(.member-directory--guardians) .member-directory-hero h1 {
        font-size: 48px;
    }

    .member-directory:not(.member-directory--guardians) .member-directory-section {
        padding: 62px 0;
    }

    .member-directory:not(.member-directory--guardians) .member-directory-heading {
        margin-bottom: 28px;
    }

    .member-directory:not(.member-directory--guardians) .member-directory-card {
        min-height: 0;
        padding: 20px;
    }

    .member-directory:not(.member-directory--guardians) .member-directory-section--privilege .member-directory-grid {
        grid-template-columns: 1fr;
    }
}

/* The contact page is an enquiry form, not a pricing or package page. */
.contact-form-section {
    padding: 0 0 clamp(84px, 11vw, 152px);
}

.contact-form-panel {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 70px);
    border-radius: 32px;
    background: #f7f0f4;
    box-shadow: 0 24px 60px rgb(45 37 44 / 9%);
}

.contact-form-heading {
    max-width: 650px;
    margin: 0 auto 36px;
    text-align: center;
}

.contact-form-heading .contact-eyebrow { color: #0f4d59; }

.contact-form-heading h2 {
    margin: 0;
    color: #2d252c;
    font: 700 clamp(44px, 5vw, 72px) / .96 Georgia, serif;
    letter-spacing: -.055em;
}

.contact-form-heading span {
    display: block;
    max-width: 510px;
    margin: 18px auto 0;
    color: #5b5660;
    font: 400 17px / 1.5 Arial, sans-serif;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #2d252c;
    font: 700 13px / 1.2 Arial, sans-serif;
}

.contact-form input:not([type='checkbox']),
.contact-form select,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e6d7df;
    border-radius: 14px;
    background: #fff;
    color: #2d252c;
    font: 400 17px / 1.35 Arial, sans-serif;
}

.contact-form input:not([type='checkbox']),
.contact-form select { height: 60px; padding: 0 18px; }

.contact-form textarea { min-height: 170px; padding: 17px 18px; resize: vertical; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #c93d80;
    outline: 3px solid rgb(201 61 128 / 14%);
}

.contact-form small { color: #b1265f; font: 600 12px / 1.3 Arial, sans-serif; }

.contact-form-optin {
    display: flex !important;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 12px !important;
    color: #5b5660 !important;
    font: 400 15px / 1.4 Arial, sans-serif !important;
}

.contact-form-optin input { width: 20px; height: 20px; accent-color: #922a5d; }

.contact-form .home-button {
    justify-self: center;
    min-width: min(100%, 330px);
    border: 0;
    cursor: pointer;
}

@media (max-width: 700px) {
    .contact-form-panel { padding: 30px 20px; border-radius: 22px; }
    .contact-form-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-form-heading { margin-bottom: 28px; text-align: left; }
    .contact-form-heading span { margin-left: 0; }
    .contact-form .home-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .highlights-event-media img { transition: none; }
}

/* Responsive type guardrails: the legacy stylesheet changes the root rem size
   and applies broad !important h1/h2 values. Keep public-page display type
   readable without changing legacy admin-facing layouts. */
.about-page h1,
.about-page h2,
.highlights-page h1,
.highlights-page h2,
.program-page h1,
.program-page h2,
.member-directory h1,
.member-directory h2,
.membership-page h1,
.membership-page h2,
.contact-page h1,
.contact-page h2 {
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

@media (max-width: 700px) {
    .program-page--boxed .program-hero h1 {
        font-size: clamp(42px, 12vw, 52px) !important;
        line-height: .91 !important;
        letter-spacing: -.052em !important;
    }

    .program-page--boxed .program-intro h2 {
        font-size: clamp(36px, 10.4vw, 44px) !important;
        line-height: .95 !important;
    }

    .program-page--boxed .program-story h2 {
        font-size: clamp(33px, 9.6vw, 40px) !important;
        line-height: .97 !important;
    }

    .program-page--boxed .program-cta h2 {
        font-size: clamp(40px, 11vw, 48px) !important;
        line-height: .94 !important;
    }

    .program-page--boxed .program-hero-content > p:last-child {
        font-size: 16px !important;
        line-height: 1.45 !important;
    }

    .about-mission h1 {
        font-size: clamp(42px, 11.4vw, 52px) !important;
        line-height: .98 !important;
    }

    .about-founder-story h2,
    .about-letter h2 {
        font-size: clamp(38px, 10.4vw, 48px) !important;
        line-height: .99 !important;
    }

    .highlights-hero h1 {
        font-size: clamp(43px, 12vw, 53px) !important;
        line-height: .91 !important;
    }

    .highlights-intro h2,
    .highlights-moments h2,
    .highlights-invite h2 {
        font-size: clamp(39px, 10.7vw, 48px) !important;
        line-height: .95 !important;
    }

    .member-directory-hero h1 {
        font-size: clamp(44px, 12vw, 54px) !important;
        line-height: .94 !important;
    }

    .member-directory-heading h2,
    .guardian-signup h2 {
        font-size: clamp(39px, 10.6vw, 48px) !important;
        line-height: .96 !important;
    }

    .membership-hero h1 {
        font-size: clamp(44px, 12vw, 54px) !important;
        line-height: .92 !important;
    }

    .membership-heading h2,
    .membership-form-layout h2,
    .contact-form-heading h2 {
        font-size: clamp(38px, 10.3vw, 47px) !important;
        line-height: .97 !important;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .program-page--boxed .program-hero h1 {
        font-size: clamp(58px, 8vw, 66px) !important;
        line-height: .9 !important;
    }

    .program-page--boxed .program-intro h2,
    .program-page--boxed .program-story h2 {
        font-size: clamp(48px, 6.8vw, 56px) !important;
        line-height: .94 !important;
    }

    .program-page--boxed .program-cta h2 {
        font-size: clamp(52px, 7vw, 60px) !important;
        line-height: .93 !important;
    }

    .about-mission h1,
    .highlights-hero h1,
    .member-directory-hero h1,
    .membership-hero h1 {
        font-size: clamp(56px, 7.7vw, 66px) !important;
        line-height: .93 !important;
    }

    .about-founder-story h2,
    .about-letter h2,
    .highlights-intro h2,
    .highlights-moments h2,
    .highlights-invite h2,
    .member-directory-heading h2,
    .guardian-signup h2,
    .membership-heading h2,
    .membership-form-layout h2,
    .contact-form-heading h2 {
        font-size: clamp(47px, 6.7vw, 56px) !important;
        line-height: .95 !important;
    }
}
