:root {
    --scoeasta-green: #1f8f3a;
    --scoeasta-green-dark: #115c28;
    --scoeasta-lime: #b8d432;
    --scoeasta-gold: #ffde00;
    --scoeasta-ink: #14251a;
    --scoeasta-muted: #617066;
    --scoeasta-soft: #f1f7f2;
}

.public-page-shell { overflow: hidden; }
.public-page-hero {
    position: relative;
    padding: clamp(64px, 9vw, 112px) 0 clamp(54px, 7vw, 88px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 18%, rgba(255, 222, 0, .2), transparent 25%),
        linear-gradient(135deg, #0c3e1c 0%, #176b2d 54%, #219244 100%);
}
.public-page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42px;
    background: linear-gradient(176deg, transparent 48%, var(--site-bg, #fff) 50%);
}
.public-page-hero .container { position: relative; z-index: 1; }
.public-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
    color: var(--scoeasta-gold);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.public-page-eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.public-page-hero h1 { max-width: 840px; margin: 0; font-size: clamp(2.35rem, 6vw, 4.8rem); font-weight: 850; line-height: 1.02; letter-spacing: -.045em; }
.public-page-hero p { max-width: 700px; margin: 1.25rem 0 0; color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; }
.public-page-content { padding-block: clamp(58px, 8vw, 100px); }
.public-card {
    height: 100%;
    border: 1px solid rgba(20, 64, 34, .1);
    border-radius: 22px;
    background: var(--site-surface, #fff);
    box-shadow: 0 20px 48px rgba(19, 68, 34, .09);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.public-card:hover { transform: translateY(-6px); border-color: rgba(31,143,58,.26); box-shadow: 0 26px 60px rgba(19,68,34,.15); }
.public-card .card-body { padding: clamp(1.35rem, 3vw, 2rem); }
.public-empty-state { max-width: 720px; margin: 0 auto; padding: 3.5rem 2rem; border: 1px dashed rgba(31,143,58,.35); border-radius: 24px; background: var(--scoeasta-soft); text-align: center; }
.public-empty-state i { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px; background: #dff0e2; color: var(--scoeasta-green); font-size: 1.7rem; }
.public-empty-state h2 { font-size: 1.35rem; font-weight: 800; color: var(--scoeasta-ink); }
.public-section-heading { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.public-section-heading h2 { color: var(--scoeasta-ink); font-size: clamp(2rem, 4vw, 3rem); font-weight: 850; letter-spacing: -.035em; }
.public-section-heading p { color: var(--scoeasta-muted); font-size: 1.08rem; }
.speaker-portrait { width: 150px; height: 150px; object-fit: cover; border: 5px solid #e7f4e9; box-shadow: 0 14px 30px rgba(18, 89, 37, .14); }
.sponsor-directory-grid > div { display: flex; }
.sponsor-card { width: 100%; overflow: hidden; }
.sponsor-card .card-body { gap: 1rem; width: 100%; padding: 1rem; }
.sponsor-logo-frame {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 118px;
    padding: .75rem;
    border: 1px solid rgba(20, 64, 34, .08);
    border-radius: 16px;
    background: #fff;
}
.sponsor-card img { display: block; height: 92px; width: 100%; object-fit: contain; }
.sponsor-card-name { color: var(--scoeasta-ink); font-size: .88rem; line-height: 1.35; }
.sponsor-directory-heading { margin-bottom: 2.25rem; }
.sponsor-directory-kicker, .officials-year-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .85rem;
    padding: .4rem .7rem;
    border-radius: 999px;
    color: var(--scoeasta-green-dark);
    background: #e3f2e6;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.sponsor-opportunity-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: clamp(1.6rem, 5vw, 3rem);
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(125deg, #0b3e1b, #18803a 72%, #2a9b49);
    box-shadow: 0 24px 60px rgba(15, 83, 36, .2);
}
.sponsor-opportunity-panel span { color: var(--scoeasta-gold); font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sponsor-opportunity-panel h2 { margin: .45rem 0 .65rem; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 850; letter-spacing: -.04em; }
.sponsor-opportunity-panel p { max-width: 720px; margin: 0; color: rgba(255,255,255,.8); line-height: 1.7; }
.sponsor-opportunity-panel .btn { white-space: nowrap; color: #17351b; border-color: var(--scoeasta-gold); background: var(--scoeasta-gold); }
.sponsor-past-heading { margin-top: clamp(4rem, 8vw, 6rem); }

.officials-directory { background: var(--site-bg, #fff); }
.officials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.official-profile-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 1.35rem;
    min-height: 220px;
    padding: 1.5rem;
    border: 1px solid rgba(20, 64, 34, .1);
    border-radius: 24px;
    background: var(--site-surface, #fff);
    box-shadow: 0 18px 44px rgba(19, 68, 34, .09);
}
.official-profile-card::after { content: ""; position: absolute; right: -45px; bottom: -55px; width: 150px; height: 150px; border: 20px solid rgba(31,143,58,.05); border-radius: 50%; }
.official-profile-visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border: 5px solid #e5f3e7;
    border-radius: 32px 32px 32px 8px;
    color: #fff;
    background: linear-gradient(145deg, var(--scoeasta-green-dark), var(--scoeasta-green));
    box-shadow: 0 14px 30px rgba(18, 89, 37, .18);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -.04em;
}
.official-profile-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.official-profile-copy { position: relative; z-index: 1; }
.official-profile-role { margin: 0 0 .45rem; color: var(--scoeasta-green); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.official-profile-copy h2 { margin: 0 0 .7rem; color: var(--scoeasta-ink); font-size: 1.35rem; font-weight: 850; letter-spacing: -.025em; }
.official-profile-copy > p:last-child { margin: 0; color: var(--scoeasta-muted); font-size: .92rem; line-height: 1.65; }
.gallery-modern { columns: 3 260px; column-gap: 1rem; }
.gallery-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; padding: 1rem; border-radius: 16px; background: var(--site-surface, #fff); border: 1px solid rgba(22,122,54,.13); }
.gallery-filters label { min-width: min(100%, 210px); flex: 1 1 210px; color: var(--scoeasta-ink); font-weight: 700; font-size: .85rem; }
.gallery-filters select { margin-top: .35rem; }
.gallery-filter-count { color: var(--scoeasta-muted); font-size: .85rem; padding-bottom: .55rem; }
.gallery-event-section[hidden], .gallery-load-more-wrap[hidden], .gallery-modern [hidden], #gallery-filter-empty[hidden] { display: none !important; }
.gallery-modern figure { break-inside: avoid; margin: 0 0 1rem; overflow: hidden; border-radius: 18px; background: var(--site-surface, #fff); box-shadow: 0 14px 34px rgba(20,62,30,.12); }
.gallery-modern img { width: 100%; display: block; transition: transform .35s ease; }
.gallery-modern a:hover img { transform: scale(1.035); }
.gallery-modern figcaption { padding: .85rem 1rem; color: var(--scoeasta-muted); font-size: .83rem; }
.gallery-event-section { margin: 0 0 3rem; scroll-margin-top: 100px; }
.gallery-event-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; padding: 1.25rem 1.35rem; border: 1px solid rgba(22,122,54,.13); border-radius: 22px; background: linear-gradient(135deg, rgba(22,122,54,.08), rgba(223,187,21,.1)); }
.gallery-event-heading h2 { margin: .2rem 0; color: var(--scoeasta-ink); font-size: clamp(1.25rem, 2.5vw, 1.8rem); font-weight: 850; }
.gallery-event-heading p { margin: 0; color: var(--scoeasta-muted); }
.gallery-event-kicker { color: var(--scoeasta-green); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.gallery-event-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .8rem; border-radius: 999px; color: #fff; background: var(--scoeasta-green); font-size: .78rem; font-weight: 750; }
.gallery-load-more-wrap { display: flex; justify-content: center; padding: 1rem 0 0; }
.gallery-load-more { min-width: min(100%, 280px); border-radius: 999px; font-weight: 750; }

.site-footer { margin-top: auto; color: rgba(255,255,255,.76); background: #0c1710; }
.site-footer-main { padding: 56px 0 38px; }
.site-footer-brand img { width: auto; max-width: 180px; height: 58px; object-fit: contain; filter: brightness(1.08); }
.site-footer h2, .site-footer h3 { color: #fff; font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { max-width: 480px; line-height: 1.7; }
.site-footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--scoeasta-gold); }
.site-footer-links { display: grid; gap: .65rem; }
.site-footer-meta { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.site-footer-social { display: flex; gap: .6rem; }
.site-footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }

body[data-theme="dark"] .public-page-hero::after { background: linear-gradient(176deg, transparent 48%, var(--site-bg, #202020) 50%); }
body[data-theme="dark"] .public-empty-state { background: #1c3022; }
body[data-theme="dark"] .public-empty-state h2, body[data-theme="dark"] .public-section-heading h2 { color: #f2f7f3; }
body[data-theme="dark"] .public-section-heading p, body[data-theme="dark"] .gallery-modern figcaption { color: #b6c3b9; }
body[data-theme="dark"] .official-profile-copy h2 { color: #f2f7f3; }
body[data-theme="dark"] .official-profile-copy > p:last-child { color: #b6c3b9; }
body[data-theme="dark"] .sponsor-directory-kicker,
body[data-theme="dark"] .officials-year-chip { color: #a9efb4; background: #1c3824; }
body[data-theme="dark"] .gallery-event-heading { border-color: rgba(133,218,153,.18); background: linear-gradient(135deg, rgba(46,124,67,.2), rgba(157,128,19,.16)); }
body[data-theme="dark"] .gallery-event-heading h2 { color: #f2f7f3; }

@media (max-width: 767.98px) {
    .public-page-hero { padding-top: 52px; }
    .public-card:hover { transform: none; }
    .site-footer-main { padding-top: 42px; }
    .sponsor-opportunity-panel { grid-template-columns: 1fr; gap: 1.25rem; }
    .sponsor-opportunity-panel .btn { width: 100%; }
    .officials-grid { grid-template-columns: 1fr; }
    .official-profile-card { grid-template-columns: 78px minmax(0, 1fr); gap: 1rem; min-height: 0; padding: 1.15rem; }
    .official-profile-visual { width: 78px; height: 78px; border-radius: 24px 24px 24px 7px; font-size: 1.45rem; }
    .official-profile-copy h2 { font-size: 1.15rem; }
    .official-profile-copy > p:last-child { grid-column: 1 / -1; font-size: .86rem; }
    .gallery-event-heading { align-items: flex-start; flex-direction: column; padding: 1rem; }
}
