:root {
    --bg: #eef5e8;
    --surface: #ffffff;
    --surface-soft: #e8f3df;
    --text: #0f1f16;
    --muted: #4f6356;
    --primary: #0b4a2e;
    --primary-deep: #062316;
    --primary-light: #1f7a3f;
    --accent: #d4a017;
    --accent-soft: #f6d068;
    --line: rgba(15, 31, 22, 0.1);
    --shadow: 0 24px 70px rgba(11, 74, 46, 0.16);
    --radius: 28px;
    --header-top: 40px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

body.public-site {
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%230f5132' stroke-opacity='0.06'%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3Ccircle cx='60' cy='60' r='18'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(31, 122, 63, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 45% at 100% 8%, rgba(212, 160, 23, 0.16), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(11, 74, 46, 0.08), transparent 55%),
        linear-gradient(165deg, #f7fbf3 0%, var(--bg) 42%, #f3f9ee 100%);
    background-attachment: fixed;
}

.header-shell {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    transition: box-shadow 280ms ease;
}

.header-shell.is-scrolled {
    box-shadow: 0 18px 48px rgba(6, 35, 22, 0.18);
}

.top-bar {
    background:
        linear-gradient(105deg, var(--primary-deep) 0%, var(--primary) 42%, #146b3a 100%);
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(246, 208, 104, 0.22);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: var(--header-top);
    padding: 8px 0;
    flex-wrap: wrap;
}

.top-bar-roles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.role-chip svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    stroke: var(--accent-soft);
    fill: none;
    stroke-width: 2;
}

.top-bar-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    font-weight: 700;
}

.top-bar-meta a {
    color: var(--accent-soft);
    text-decoration: none;
    transition: opacity 180ms ease;
}

.top-bar-meta a:hover {
    opacity: 0.85;
}

.top-bar-meta span {
    color: rgba(255, 255, 255, 0.78);
}

.main-header-wrap {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 243, 0.94));
    border-bottom: 1px solid rgba(11, 74, 46, 0.08);
    backdrop-filter: blur(20px);
    overflow: visible;
}

.header-shell.is-scrolled .main-header-wrap {
    background: rgba(255, 255, 255, 0.97);
}

.site-header {
    display: block;
    width: 100%;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.5vw, 20px);
    min-height: 82px;
    padding: 12px 0;
}

.brand,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 4px 6px 4px 4px;
    border-radius: 20px;
}

.logo-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--primary-deep), var(--primary-light));
    box-shadow:
        0 0 0 3px rgba(246, 208, 104, 0.28),
        0 16px 34px rgba(11, 74, 46, 0.32);
    font-weight: 900;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    padding: 5px;
    border-radius: inherit;
    object-fit: contain;
    background: #fff;
}

.brand strong,
.footer-brand strong {
    display: block;
    line-height: 1.1;
}

.brand small,
.footer-brand small {
    display: block;
    margin-top: 2px;
    color: var(--primary-light);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-tagline {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, var(--surface-soft));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 24px rgba(11, 74, 46, 0.06);
    overflow: visible;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    padding: 10px 13px;
    color: var(--muted);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    transition: color 200ms ease, background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 10px 22px rgba(31, 122, 63, 0.28);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
    flex-shrink: 0;
}

.nav-dropdown-toggle {
    padding: 10px 28px 10px 13px;
    color: var(--muted);
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}

.nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
}

.nav-dropdown.is-active .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 10px 22px rgba(31, 122, 63, 0.28);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 120;
    display: none;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    pointer-events: auto;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
    gap: 4px;
}

@media (min-width: 981px) and (hover: hover) {
    .nav-dropdown:hover .nav-dropdown-menu {
        display: grid;
        gap: 4px;
    }

    .nav-dropdown:hover .nav-dropdown-toggle {
        color: #fff;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        box-shadow: 0 10px 22px rgba(31, 122, 63, 0.28);
    }
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.cta-link,
.staff-login-link,
.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 900;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.staff-login-link {
    gap: 8px;
    color: var(--primary);
    border: 1px solid rgba(15, 81, 50, 0.18);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(15, 81, 50, 0.09);
    transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.staff-login-link:hover,
.staff-login-link[aria-current="page"] {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: translateY(-1px);
}

.staff-login-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
}

.cta-link,
.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-light));
    box-shadow: 0 14px 34px rgba(31, 122, 63, 0.3);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.cta-link:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(31, 122, 63, 0.36);
}

.secondary-btn {
    color: var(--primary);
    border: 1px solid rgba(15, 81, 50, 0.2);
    background: rgba(255, 255, 255, 0.76);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: var(--primary);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

@media (max-width: 980px) {
    :root {
        --header-top: 0px;
    }

    .top-bar {
        display: none;
    }

    .site-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand toggle"
            "nav nav"
            "actions actions";
        width: 100%;
        gap: 12px;
    }

    .brand {
        grid-area: brand;
    }

    .nav-toggle {
        display: inline-flex;
        grid-area: toggle;
        justify-self: end;
    }

    .site-nav {
        grid-area: nav;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border-radius: 22px;
        overflow: visible;
    }

    .header-shell.nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        text-align: left;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        text-align: left;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
        border: 1px solid var(--line);
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: grid;
    }

    .header-actions {
        grid-area: actions;
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .brand-tagline,
    .brand small {
        display: none;
    }

    .cta-link {
        padding: 0 14px;
        font-size: 0.85rem;
    }

    .site-header-inner {
        min-height: auto;
        padding: 10px 0;
    }

    .site-nav a {
        padding: 11px 14px;
        font-size: 0.9rem;
    }

    .logo-mark {
        width: 46px;
        height: 46px;
    }

    .role-chip span {
        max-width: 9rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Shared public-page utilities */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 900;
}

/* Site footer (index, events, governance, contact, etc.) */
.site-footer {
    position: relative;
    isolation: isolate;
    margin-top: clamp(58px, 8vw, 94px);
    padding: clamp(34px, 6vw, 58px) 0 26px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(circle at 10% 0%, rgba(246, 208, 104, 0.16), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(47, 125, 50, 0.42), transparent 30%),
        linear-gradient(135deg, #04110a 0%, #071a10 44%, #0e3b26 100%);
}

.site-footer::before,
.site-footer::after {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    content: "";
    filter: blur(4px);
}

.site-footer::before {
    width: 280px;
    height: 280px;
    right: -90px;
    top: 42px;
    background: rgba(246, 208, 104, 0.1);
}

.site-footer::after {
    width: 380px;
    height: 380px;
    left: -180px;
    bottom: -190px;
    background: rgba(47, 125, 50, 0.26);
}

.footer-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin-bottom: 28px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.site-footer .footer-cta .eyebrow {
    color: #f6d068;
}

.footer-cta h2 {
    max-width: 760px;
    margin: 8px 0;
    color: #fff;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.footer-cta p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-cta-actions .primary-btn {
    background: linear-gradient(135deg, #f6d068, var(--accent));
    color: #172416;
    box-shadow: 0 18px 38px rgba(200, 145, 43, 0.28);
}

.footer-cta-actions .secondary-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.95fr 0.95fr;
    gap: 18px;
}

.footer-card {
    min-height: 100%;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-card.highlight {
    background:
        linear-gradient(135deg, rgba(246, 208, 104, 0.12), rgba(255, 255, 255, 0.07)),
        rgba(255, 255, 255, 0.075);
}

.site-footer .footer-brand {
    color: #fff;
    margin-bottom: 16px;
}

.site-footer .footer-brand .logo-mark {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.site-footer .footer-brand small {
    color: rgba(255, 255, 255, 0.72);
}

.footer-about {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.74);
}

.footer-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-pill-list li {
    padding: 8px 11px;
    color: #f6d068;
    border: 1px solid rgba(246, 208, 104, 0.2);
    border-radius: 999px;
    background: rgba(246, 208, 104, 0.08);
    font-size: 0.8rem;
    font-weight: 900;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.footer-links,
.footer-contact,
.social-links {
    display: grid;
    gap: 10px;
}

.footer-links a,
.footer-contact a,
.footer-contact span,
.social-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    font-weight: 750;
}

.footer-links a,
.footer-contact a,
.social-links a {
    transition: color 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.footer-links a::before {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #f6d068;
    content: "";
}

.social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.social-mark,
.contact-mark {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    color: #142314;
    border-radius: 999px;
    background: #f6d068;
    font-size: 0.78rem;
    font-weight: 900;
}

.footer-contact-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.footer-contact-row span:not(.contact-mark) {
    line-height: 1.45;
}

.footer-contact-label {
    display: block;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-contact strong {
    display: block;
    color: #fff;
    line-height: 1.25;
}

.footer-contact a:hover,
.footer-links a:hover,
.social-links a:hover,
.footer-legal a:hover {
    color: #f6d068;
}

.footer-links a:hover,
.footer-contact a:hover,
.social-links a:hover {
    transform: translateX(3px);
}

.social-links a:hover {
    border-color: rgba(246, 208, 104, 0.28);
    background: rgba(246, 208, 104, 0.1);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.16);
    font-size: 0.92rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 980px) {
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-cta {
        grid-template-columns: 1fr;
    }

    .footer-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .footer-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .footer-card {
        padding: 20px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
