:root {
    --immersive-green: #06462f;
    --immersive-green-deep: #043423;
    --immersive-green-black: #02261a;
    --immersive-green-light: #0b6b46;
    --immersive-orange: #f58220;
    --immersive-white: #f5fbf8;
    --immersive-muted: #b8cdc3;
    --immersive-line: rgba(255,255,255,.12);
}

.premium-public-page {
    min-height: 100vh;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 72% 8%, rgba(245,130,32,.09), transparent 26rem),
        linear-gradient(180deg,var(--immersive-green) 0%,var(--immersive-green-deep) 62%,var(--immersive-green-black) 100%);
    color: var(--immersive-white);
}

.premium-public-page main {
    background: transparent;
}

.premium-public-header {
    position: sticky;
    top: 0;
    z-index: 1600;
    display: flex;
    min-height: 108px;
    gap: 18px;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(245,130,32,.55);
    background: rgba(3,48,32,.98);
    box-shadow: 0 10px 30px rgba(0,0,0,.14);
    backdrop-filter: blur(14px);
}

.public-menu-toggle {
    order: 0;
    display: grid !important;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    place-items: center;
    border: 2px solid rgba(245,130,32,.72);
    border-radius: 18px;
    background: rgba(0,0,0,.12);
    color: #fff;
    cursor: pointer;
    font-size: 0;
}

.public-menu-toggle::before {
    content: "☰";
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
}

.premium-public-brand {
    order: 1;
    gap: 14px;
    min-width: 0;
}

.premium-public-brand img {
    width: 78px;
    height: 78px;
    padding: 4px;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,.18);
}

.premium-public-brand strong {
    color: #fff !important;
    font-size: clamp(1.7rem,2.6vw,2.65rem) !important;
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.035em;
}

.premium-public-brand small {
    margin-top: 8px !important;
    color: #fff !important;
    font-size: .72rem !important;
    font-weight: 850;
    letter-spacing: .24em !important;
    text-transform: uppercase;
}

.public-header-signature {
    order: 2;
    margin-left: auto;
    padding-right: 6px;
    text-align: right;
}

.public-header-signature strong,
.public-header-signature span {
    display: block;
}

.public-header-signature strong {
    color: var(--immersive-orange);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 850;
    line-height: 1.05;
}

.public-header-signature span {
    margin-top: 3px;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.premium-public-nav {
    position: fixed;
    top: 108px;
    left: 18px;
    z-index: 1700;
    order: 3;
    display: none !important;
    width: min(330px, calc(100vw - 36px));
    max-height: calc(100dvh - 126px);
    padding: 10px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(2,38,26,.98);
    box-shadow: 0 24px 64px rgba(0,0,0,.32);
}

.premium-public-nav.open {
    display: grid !important;
    gap: 6px;
}

.premium-public-nav .top-nav-link,
.premium-public-nav .public-nav-group > summary {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255,255,255,.9);
    font-size: .76rem;
    font-weight: 820;
}

.premium-public-nav .top-nav-link:hover,
.premium-public-nav .public-nav-group > summary:hover,
.premium-public-nav .public-nav-group[open] > summary {
    border-color: rgba(245,130,32,.32);
    background: rgba(245,130,32,.12);
    color: #fff;
}

.premium-public-nav .public-nav-submenu {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 4px;
    padding: 5px;
    border: 0;
    border-radius: 9px;
    background: rgba(255,255,255,.045);
    box-shadow: none;
}

.premium-public-nav .public-nav-submenu a {
    color: rgba(255,255,255,.78);
}

.premium-public-nav .public-nav-submenu a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.secure-entry-link {
    border-color: rgba(245,130,32,.36) !important;
    background: rgba(245,130,32,.13) !important;
    color: #fff !important;
}

.public-home-hero {
    display: grid;
    grid-template-columns: minmax(300px,31%) minmax(0,69%);
    gap: 14px;
    height: calc(100dvh - 108px);
    min-height: 680px;
    padding: 14px;
    background:
        linear-gradient(180deg,rgba(2,38,26,.22),rgba(2,38,26,.62)),
        transparent;
}

.home-intro-panel,
.public-map-panel {
    border: 1px solid var(--immersive-line);
    border-radius: 18px;
    background: rgba(2,37,25,.68);
    box-shadow: 0 20px 54px rgba(0,0,0,.16);
}

.home-intro-panel {
    padding: clamp(24px,2.8vw,40px);
    background:
        radial-gradient(circle at 12% 8%, rgba(245,130,32,.11), transparent 18rem),
        linear-gradient(160deg,rgba(5,76,50,.92),rgba(2,45,30,.96));
}

.premium-public-page .eyebrow {
    color: var(--immersive-orange) !important;
    font-size: .66rem !important;
    font-weight: 900;
    letter-spacing: .13em;
}

.home-intro-copy h1 {
    max-width: 520px;
    color: #fff !important;
    font-size: clamp(3rem,5.2vw,5.25rem) !important;
    font-weight: 760;
    line-height: .92 !important;
    letter-spacing: -.055em !important;
}

.home-lead {
    max-width: 520px;
    margin-top: 18px;
    color: #e7f4ee !important;
    font-size: clamp(.98rem,1.3vw,1.15rem) !important;
    line-height: 1.6;
}

.home-actions {
    margin-top: 22px;
}

.home-actions .public-primary,
.registration-premium .public-primary,
.secure-access-callout .public-primary {
    border: 1px solid rgba(245,130,32,.55) !important;
    background: var(--immersive-orange) !important;
    color: #102419 !important;
    font-weight: 900;
}

.home-actions .public-secondary {
    border: 1px solid rgba(255,255,255,.2) !important;
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
}

.home-actions .public-secondary:hover {
    border-color: rgba(245,130,32,.55) !important;
    background: rgba(245,130,32,.12) !important;
}

.home-stat-grid {
    gap: 7px;
    margin-top: 22px;
}

.home-stat {
    padding: 10px 11px;
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
}

.home-stat.featured {
    border-color: rgba(245,130,32,.5);
    background: linear-gradient(135deg,rgba(245,130,32,.16),rgba(255,255,255,.045));
}

.home-stat span,
.home-stat small {
    color: var(--immersive-muted) !important;
}

.home-stat strong {
    color: #fff !important;
    font-size: clamp(1.15rem,1.8vw,1.65rem);
}

.home-stat.featured strong {
    color: #ffad63 !important;
}

.home-source-note {
    color: #adc7bb;
}

.public-map-panel {
    display: grid;
    grid-template-rows: auto minmax(0,1fr);
    padding: 10px;
    background:
        linear-gradient(180deg,rgba(4,61,40,.88),rgba(2,40,27,.94));
}

.public-map-heading {
    padding: 8px 10px 12px;
}

.public-map-heading h2 {
    color: #fff !important;
    font-size: clamp(1.5rem,2.5vw,2.4rem) !important;
    font-weight: 780;
    line-height: 1.02 !important;
    letter-spacing: -.035em !important;
}

.map-live-pill {
    border: 1px solid rgba(245,130,32,.35);
    background: rgba(245,130,32,.14);
    color: #ffc28e;
}

.public-map-stage {
    min-height: 0;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 15px;
    background:
        radial-gradient(circle at 50% 45%, rgba(245,130,32,.12), transparent 28rem),
        linear-gradient(180deg,#e7f1ec,#d6e5dd);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.public-nigeria-map {
    min-height: 100%;
    height: 100%;
}

.public-state-panel {
    border: 1px solid rgba(245,130,32,.5);
    border-top: 4px solid var(--immersive-orange);
    background: rgba(3,45,30,.96);
    color: #fff;
    box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

.public-state-panel h3,
.public-state-panel strong {
    color: #fff !important;
}

.public-state-panel > p:not(.eyebrow),
.public-state-group small,
.public-state-mini-stats span {
    color: #c7dacf !important;
}

.public-state-group,
.public-state-mini-stats > div {
    border-color: rgba(255,255,255,.11);
    background: rgba(255,255,255,.05);
}

.public-state-code {
    background: rgba(245,130,32,.16);
    color: #ffc18a;
}

.public-state-mini-stats strong {
    color: #fff !important;
}

.public-state-label-text {
    color: #0b2d1e;
    font-weight: 900;
}

.leaflet-container {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.premium-section {
    border-color: rgba(255,255,255,.11);
    background:
        linear-gradient(150deg,rgba(6,75,49,.9),rgba(3,49,33,.96));
    box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

.premium-section-heading h2,
.registration-premium h2,
.secure-access-callout h2,
.state-statistics-heading h3,
.requirements-premium-grid h3,
.portal-entry-card h3,
.directory-card h3 {
    color: #fff !important;
}

.premium-section-heading > p:not(.eyebrow),
.registration-premium p:not(.eyebrow),
.secure-access-callout p:not(.eyebrow),
.state-statistics-heading p:not(.eyebrow),
.requirements-premium-grid p,
.portal-entry-card p,
.directory-card > p {
    color: var(--immersive-muted) !important;
}

.portal-entry-card,
.requirements-premium-grid article,
.directory-card {
    border-color: rgba(255,255,255,.11);
    background: rgba(255,255,255,.055);
}

.portal-entry-card.green {
    border-top-color: #5fc28e;
}

.portal-entry-card.orange {
    border-top-color: var(--immersive-orange);
}

.portal-entry-card a,
.directory-card-footer a {
    color: #ffc18b;
}

.requirements-premium-grid article > span {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.requirements-premium-grid article:nth-child(even) > span {
    background: rgba(245,130,32,.15);
    color: #ffc18b;
}

.state-statistics-panel {
    border-top-color: rgba(255,255,255,.12);
}

.state-statistics-table-wrap {
    border-color: rgba(255,255,255,.11);
    background: rgba(0,0,0,.08);
}

.state-statistics-table th {
    background: rgba(2,39,26,.98);
    color: #b8d0c4;
}

.state-statistics-table td {
    border-bottom-color: rgba(255,255,255,.08);
    color: #e9f5ef;
}

.state-statistics-table td strong {
    color: #fff;
}

.state-group-count {
    color: #ffad63;
}

.state-member-count {
    color: #8ed6af;
}

.registration-premium,
.secure-access-callout {
    border-left-color: var(--immersive-orange);
    background:
        linear-gradient(120deg,rgba(245,130,32,.1),rgba(255,255,255,.035) 42%);
}

.directory-count,
.state-stats-live {
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.07);
    color: #dff2e8;
}

.directory-card-footer {
    border-top-color: rgba(255,255,255,.1);
}

.verified-label {
    color: #8ed6af;
}

.public-footer {
    border-top-color: rgba(255,255,255,.12);
    color: #a9c4b7;
}

@media (max-width: 980px) {
    .premium-public-header {
        min-height: 94px;
        padding: 10px 14px;
    }

    .public-menu-toggle {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        border-radius: 15px;
    }

    .premium-public-brand img {
        width: 64px;
        height: 64px;
    }

    .premium-public-brand strong {
        font-size: clamp(1.4rem,3.5vw,2rem) !important;
    }

    .public-header-signature {
        display: none;
    }

    .premium-public-nav {
        top: 94px;
    }

    .public-home-hero {
        grid-template-columns: minmax(290px,36%) minmax(0,64%);
        height: calc(100dvh - 94px);
        min-height: 640px;
    }

    .home-intro-panel {
        padding: 24px 20px;
    }

    .home-intro-copy h1 {
        font-size: clamp(2.5rem,5.7vw,4rem) !important;
    }
}

@media (max-width: 820px) {
    .premium-public-header {
        min-height: 78px;
        padding: 8px 10px;
    }

    .public-menu-toggle {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 13px;
    }

    .premium-public-brand {
        gap: 10px;
    }

    .premium-public-brand img {
        width: 54px;
        height: 54px;
    }

    .premium-public-brand strong {
        max-width: none;
        font-size: clamp(1rem,4.5vw,1.55rem) !important;
    }

    .premium-public-brand small {
        margin-top: 4px !important;
        font-size: .55rem !important;
        letter-spacing: .16em !important;
    }

    .premium-public-nav {
        top: 78px;
        left: 8px;
        width: min(330px,calc(100vw - 16px));
        max-height: calc(100dvh - 86px);
    }

    .public-home-hero {
        display: block;
        height: auto;
        min-height: 0;
        padding: 8px;
    }

    .home-intro-panel {
        border-radius: 16px 16px 9px 9px;
    }

    .public-map-panel {
        height: min(72dvh,650px);
        min-height: 500px;
        margin-top: 8px;
        border-radius: 9px 9px 16px 16px;
    }
}

@media (max-width: 560px) {
    .premium-public-header {
        min-height: 70px;
    }

    .public-menu-toggle {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .premium-public-brand img {
        width: 46px;
        height: 46px;
    }

    .premium-public-brand strong {
        font-size: .92rem !important;
    }

    .premium-public-brand small {
        font-size: .49rem !important;
        letter-spacing: .11em !important;
    }

    .premium-public-nav {
        top: 70px;
    }

    .home-intro-copy h1 {
        font-size: clamp(2.35rem,12vw,3.4rem) !important;
    }

    .public-map-panel {
        height: 62dvh;
        min-height: 460px;
    }

    .premium-section {
        width: calc(100% - 16px);
    }
}

/* Explicit Leaflet interaction layer */
.public-map-stage,
.public-nigeria-map,
.public-nigeria-map .leaflet-map-pane,
.public-nigeria-map .leaflet-overlay-pane,
.public-nigeria-map svg {
    pointer-events: auto !important;
}

.public-nigeria-map .leaflet-interactive {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.public-nigeria-map .leaflet-tooltip-pane {
    pointer-events: none !important;
}
