:root {
    --home-navy: #10233f;
    --home-navy-deep: #08182d;
    --home-gold: #f2bd52;
    --home-gold-dark: #815600;
    --home-ink: #17263d;
    --home-muted: #52627a;
    --home-paper: #f5f7fb;
    --home-line: #dce3ed;
    --home-card: #ffffff;
    --home-radius: 12px;
    --home-shadow: 0 16px 42px rgba(16, 35, 63, .09);
}

html { scroll-behavior: smooth; }
body,
button,
input,
select,
textarea {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.home-refresh {
    color: var(--home-ink);
    background: var(--home-paper);
    font-size: 1rem;
    line-height: 1.65;
}

.home-refresh *,
.home-refresh *::before,
.home-refresh *::after { box-sizing: border-box; }

.home-refresh img { display: block; max-width: 100%; }
.home-refresh a { color: inherit; }
.home-refresh a:focus-visible,
.home-refresh button:focus-visible,
.home-refresh select:focus-visible,
.home-refresh summary:focus-visible {
    outline: 3px solid var(--home-gold);
    outline-offset: 3px;
}

.home-wrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.home-membership-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
}

.home-section { padding: clamp(56px, 8vw, 96px) 0; }
.home-section--white { background: #fff; }
.home-section__heading {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}
.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--home-gold-dark);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.home-section__heading h2 {
    margin: 0 0 12px;
    color: var(--home-navy);
    font-size: clamp(1.8rem, 3.5vw, 2.65rem);
    line-height: 1.15;
    letter-spacing: -.04em;
}
.home-section__heading p {
    margin: 0;
    color: var(--home-muted);
    font-size: 1.05rem;
}

.home-hero {
    position: relative;
    display: flex;
    min-height: min(760px, 82vh);
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: var(--home-navy-deep);
}
.home-hero__media,
.home-hero__shade { position: absolute; inset: 0; z-index: -1; }
.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}
.home-hero__shade {
    background:
        linear-gradient(90deg, rgba(6, 20, 39, .92) 0%, rgba(6, 20, 39, .78) 44%, rgba(6, 20, 39, .24) 100%),
        linear-gradient(0deg, rgba(6, 20, 39, .38), transparent 55%);
}
.home-hero__content {
    max-width: 780px;
    padding-block: 96px 76px;
}
.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #ffe3a2;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.home-hero__eyebrow::before {
    width: 24px;
    height: 2px;
    background: var(--home-gold);
    content: '';
}
.home-hero h1 {
    max-width: 760px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.055em;
}
.home-hero h1 span { color: #ffd273; }
.home-hero__lead {
    max-width: 640px;
    margin: 0 0 30px;
    color: rgba(255,255,255,.88);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}
.home-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.home-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 24px;
    border: 1px solid transparent;
    border-radius: var(--home-radius);
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.home-button:hover { transform: translateY(-2px); }
.home-button--gold { color: #1b2b42 !important; background: var(--home-gold); }
.home-button--gold:hover { background: #ffd273; }
.home-button--outline {
    color: #fff !important;
    border-color: rgba(255,255,255,.58);
    background: rgba(255,255,255,.08);
}
.home-button--outline:hover { border-color: #fff; background: rgba(255,255,255,.16); }

.home-live { position: relative; z-index: 1; margin-top: -24px; }
.home-live__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: var(--home-card);
    box-shadow: var(--home-shadow);
}
.home-live__item {
    min-width: 0;
    padding: 24px;
}
.home-live__item + .home-live__item { border-left: 1px solid var(--home-line); }
.home-live__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--home-gold-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.home-live__label i { color: var(--home-navy); }
.home-live__item h2 {
    margin: 0 0 4px;
    color: var(--home-navy);
    font-size: 1.05rem;
    line-height: 1.35;
}
.home-live__item p { margin: 0; color: var(--home-muted); font-size: .9rem; }
.home-live__item a {
    display: inline-block;
    margin-top: 10px;
    color: var(--home-navy);
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
}
.home-countdown { margin-top: 8px !important; color: var(--home-navy) !important; font-weight: 700; }

.home-focus-grid,
.home-event-grid,
.home-partner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.home-sdg-grid,
.home-impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
    gap: 16px;
    align-items: start;
}
.home-sdg-card {
    min-width: 0;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: #fff;
}
.home-sdg-card summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 16px;
    cursor: pointer;
    list-style: none;
}
.home-sdg-card summary::-webkit-details-marker { display: none; }
.home-sdg-card summary::after {
    margin-left: auto;
    color: var(--home-navy);
    content: '+';
    font-size: 1.4rem;
    font-weight: 700;
}
.home-sdg-card[open] summary::after { content: '-'; }
.home-sdg-card img { flex: none; width: 56px; height: 56px; }
.home-sdg-card small,
.home-sdg-card strong { display: block; }
.home-sdg-card small { color: var(--home-muted); font-weight: 700; }
.home-sdg-card strong { color: var(--home-navy); line-height: 1.35; }
.home-sdg-card p { margin: 0; padding: 0 16px 16px; color: var(--home-muted); }
.home-impact-note { margin: 24px 0 0; color: var(--home-muted); text-align: center; }
.home-card {
    height: 100%;
    padding: 24px;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: var(--home-card);
    box-shadow: 0 5px 18px rgba(16,35,63,.045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-card:hover {
    transform: translateY(-3px);
    border-color: #c9d4e2;
    box-shadow: var(--home-shadow);
}
.home-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: var(--home-radius);
    color: var(--home-navy);
    background: #fff1d2;
    font-size: 1.2rem;
}
.home-card h3 { margin: 0 0 8px; color: var(--home-navy); font-size: 1.12rem; line-height: 1.35; }
.home-card p { margin: 0; color: var(--home-muted); font-size: 1rem; }
.home-card__meta { display: block; margin-top: 12px !important; font-size: .85rem !important; }
.home-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--home-navy);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.home-county-layout {
    max-width: 720px;
    margin-inline: auto;
}
.home-map-placeholder {
    display: grid;
    min-height: 300px;
    align-content: center;
    justify-items: center;
    padding: 32px;
    border: 1px dashed #9aa9bc;
    border-radius: var(--home-radius);
    color: var(--home-navy);
    background:
        radial-gradient(circle at 50% 45%, rgba(242,189,82,.18), transparent 45%),
        linear-gradient(145deg, #fff, #edf2f8);
    text-align: center;
}
.home-map-placeholder__icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 50%;
    color: var(--home-navy);
    background: #fff;
    box-shadow: 0 8px 22px rgba(16,35,63,.1);
    font-size: 1.8rem;
}
.home-map-placeholder strong { font-size: 1.1rem; }
.home-map-placeholder p { max-width: 420px; margin: 8px 0 0; color: var(--home-muted); font-size: .92rem; }
.home-county-explorer {
    padding: 24px;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: #fff;
}
.home-county-explorer label { display: block; margin-bottom: 8px; color: var(--home-navy); font-weight: 800; }
.home-county-explorer select {
    width: 100%;
    min-height: 48px;
    padding: 16px;
    border: 1px solid #aebaca;
    border-radius: var(--home-radius);
    color: var(--home-ink);
    background: #fff;
    font-size: 1rem;
}
.home-county-result {
    min-height: 72px;
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--home-radius);
    color: var(--home-navy);
    background: #f1f5f9;
}
.home-county-result p { margin: 0; color: var(--home-muted); font-size: .9rem; }
.home-county-result strong { display: block; margin-bottom: 3px; }
.home-county-note { margin: 16px 0 0; color: var(--home-muted); font-size: .84rem; }

.home-empty {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px dashed #b6c2d1;
    border-radius: var(--home-radius);
    color: var(--home-muted);
    background: rgba(255,255,255,.7);
    text-align: center;
}
.home-event-card__date {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: var(--home-radius);
    color: var(--home-navy);
    background: #fff1d2;
    font-size: .82rem;
    font-weight: 800;
}
.home-event-funding {
    margin-top: 16px;
    padding: 16px;
    border-left: 3px solid var(--home-gold);
    border-radius: 0 var(--home-radius) var(--home-radius) 0;
    color: var(--home-muted);
    background: #fff;
    font-size: .86rem;
}
.home-event-funding strong { display: block; margin-bottom: 3px; color: var(--home-navy); }
.home-partners { padding-top: 24px; }
.home-partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-partner-name {
    display: grid;
    min-height: 90px;
    place-items: center;
    padding: 18px;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    color: var(--home-navy);
    background: #fff;
    font-weight: 800;
    text-align: center;
}

.home-join {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--home-navy);
}
.home-join::after {
    position: absolute;
    top: -140px;
    right: -80px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(242,189,82,.24);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(242,189,82,.04), 0 0 0 90px rgba(242,189,82,.035);
    content: '';
    pointer-events: none;
}
.home-join__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.home-join h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; }
.home-join p { max-width: 650px; margin: 0; color: rgba(255,255,255,.8); }

.home-motion .home-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .24s ease, transform .24s ease;
}
.home-motion .home-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
    .home-hero { min-height: 680px; }
    .home-hero__shade {
        background:
            linear-gradient(90deg, rgba(6,20,39,.9), rgba(6,20,39,.56)),
            linear-gradient(0deg, rgba(6,20,39,.4), transparent 60%);
    }
    .home-live__grid { grid-template-columns: 1fr; }
    .home-live__item + .home-live__item { border-top: 1px solid var(--home-line); border-left: 0; }
    .home-focus-grid, .home-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-county-layout { grid-template-columns: 1fr; }
    .home-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .home-wrap { width: min(100% - 32px, 1180px); }
    .home-hero { min-height: 650px; }
    .home-hero__content { padding-block: 84px 68px; }
    .home-hero h1 { font-size: clamp(2.35rem, 12vw, 3.45rem); }
    .home-actions { display: grid; grid-template-columns: 1fr; }
    .home-button { width: 100%; }
    .home-live { margin-top: -20px; }
    .home-live__item { padding: 18px; }
    .home-focus-grid, .home-event-grid { grid-template-columns: 1fr; }
    .home-card { padding: 21px; }
    .home-join__inner { align-items: flex-start; flex-direction: column; }
    .home-map-placeholder { min-height: 250px; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .home-refresh *,
    .home-refresh *::before,
    .home-refresh *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
    .home-motion .home-reveal { opacity: 1; transform: none; }
}
