:root {
    --brand-purple: #4F2683;
    --footer-slate: #3A1B63;
    --text-charcoal: #1E1E24;
    --body-grey: #475569;
    --section-offwhite: #F4F5F7;
    --card-white: #FFFFFF;
    --border-line: #E2E8F0;
    --donit-border: #E5E7EB;
    --caption-slate: #64748B;
    --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--body-grey);
    background-color: var(--card-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif-heading {
    font-family: var(--font-serif);
    color: var(--text-charcoal);
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    color: var(--body-grey);
}

a {
    color: var(--brand-purple);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
    color: var(--footer-slate);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Statutory Non-Profit Ribbon */
.nonprofit-top-ribbon {
    background-color: var(--footer-slate);
    color: #FFFFFF;
    font-size: 0.8125rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ribbon-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.ribbon-badge {
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #F4F5F7;
}

.ribbon-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Sticky Header */
.site-header {
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-height: 44px;
}

.shield-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-typography {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-kicker {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--brand-purple);
    text-transform: uppercase;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-charcoal);
    letter-spacing: -0.01em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 11px;
    min-height: 44px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-charcoal);
    letter-spacing: 0.03em;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-purple);
    border-bottom-color: var(--brand-purple);
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4F2683;
    color: #FFFFFF !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    min-height: 44px;
    min-width: 44px;
    white-space: nowrap;
    border: 2px solid #4F2683;
}

.header-cta-btn:hover {
    background: #3A1B63;
    border-color: #3A1B63;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.hamburger-bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-charcoal);
    display: block;
}

/* Hero Banner Component */
.hero-banner {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 56px 0;
    border-bottom: 1px solid #E2E8F0;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 30, 36, 0.82) 0%, rgba(58, 27, 99, 0.62) 55%, rgba(30, 30, 36, 0.35) 100%);
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-floating-card {
    background: #FFFFFF;
    max-width: 690px;
    padding: 40px 44px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4F2683;
    margin-bottom: 12px;
}

.hero-floating-card h1 {
    font-family: var(--font-serif);
    font-size: 2.35rem;
    color: #1E1E24;
    margin-bottom: 16px;
}

.hero-summary-lead {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 24px;
}

/* Dual CTA Row - Strictly Maximum 2 Buttons */
.dual-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4F2683;
    color: #FFFFFF !important;
    padding: 12px 26px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid #4F2683;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #3A1B63;
    border-color: #3A1B63;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #4F2683;
    color: #4F2683 !important;
    padding: 12px 26px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #F4F5F7;
    color: #3A1B63 !important;
    border-color: #3A1B63;
}

.btn-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F4F5F7;
    color: #4F2683 !important;
    border: 1px solid #E2E8F0;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    min-height: 44px;
    margin-top: 8px;
}

.btn-card-link:hover {
    background: #4F2683;
    color: #FFFFFF !important;
    border-color: #4F2683;
}

/* Statistics Matrix (3-Column Grid) */
.stats-matrix-section {
    background: #FFFFFF;
    padding: 60px 0;
    border-bottom: 1px solid #E2E8F0;
}

.mission-statement-header {
    max-width: 920px;
    margin: 0 auto 48px auto;
    text-align: center;
}

.mission-statement-header h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #1E1E24;
    margin-bottom: 18px;
}

.our-mission-paragraph {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #475569;
    text-align: left;
    background: #F4F5F7;
    padding: 28px 32px;
    border-left: 4px solid #4F2683;
    border-radius: 0 8px 8px 0;
}

.stats-three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.stat-cell {
    padding: 36px 28px;
    text-align: center;
    border-right: 1px solid #E2E8F0;
}

.stat-cell:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: #4F2683;
    line-height: 1.1;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1E1E24;
    margin-bottom: 6px;
}

.stat-subtext {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0;
}

/* Structural Sections */
.section-white {
    background: #FFFFFF;
    padding: 68px 0;
    border-bottom: 1px solid #E2E8F0;
}

.section-offwhite {
    background: #F4F5F7;
    padding: 68px 0;
    border-bottom: 1px solid #E2E8F0;
}

.section-header {
    max-width: 820px;
    margin-bottom: 40px;
}

.section-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4F2683;
    margin-bottom: 8px;
}

/* Donit Frame & Figcaption Styling */
figure.donit-figure {
    margin: 0;
    padding: 0;
}

img.donit-image,
.content-inline-image {
    width: 100%;
    height: auto;
    max-height: 440px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 20px 0 8px 0;
    object-fit: cover;
    display: block;
}

figcaption.donit-caption,
figure figcaption {
    font-style: italic;
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Grid Layouts */
.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    align-items: start;
}

.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.four-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Cards & Modules */
.institutional-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.horizontal-activity-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: center;
}

.reinvestment-notice-box {
    background: #F4F5F7;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #4F2683;
    padding: 20px 24px;
    border-radius: 4px;
    margin: 28px 0;
    font-weight: 600;
    color: #1E1E24;
}

/* Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
}

.institutional-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9375rem;
}

.institutional-table th {
    background: #3A1B63;
    color: #FFFFFF;
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 1px solid #E2E8F0;
}

.institutional-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #E2E8F0;
    color: #475569;
}

.institutional-table tr:nth-child(even) td {
    background: #F4F5F7;
}

/* Forms */
.institutional-form {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    color: #1E1E24;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #1E1E24;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
}

.form-control:focus {
    outline: 2px solid #4F2683;
    border-color: #4F2683;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

/* Pre-Footer & Main Institutional Footer */
.pre-footer-bar {
    background: #F4F5F7;
    border-top: 1px solid #E2E8F0;
    padding: 20px 0;
}

.pre-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pre-footer-contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.925rem;
    color: #1E1E24;
}

.reinvestment-clause-bar {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4F2683;
    border-top: 1px solid #E2E8F0;
    padding-top: 10px;
}

.site-footer {
    background: #3A1B63;
    color: #FFFFFF;
    padding: 70px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-disclosure {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.65;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.925rem;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-seat-details p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.sub-footer {
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sub-footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sub-footer-legal-links a {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.legal-sep {
    color: rgba(255, 255, 255, 0.45);
}

.copyright-line {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    margin: 0;
}

/* Accessible AJAX Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 30, 36, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-backdrop.modal-visible {
    display: flex;
}

.modal-card {
    background: #FFFFFF;
    border-radius: 8px;
    max-width: 520px;
    width: 100%;
    padding: 36px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4F2683;
    color: #FFFFFF;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
}

.modal-compliance-note {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4F2683;
    background: #F4F5F7;
    padding: 12px;
    border-radius: 4px;
    margin: 16px 0 22px 0;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-bottom: 2px solid #4F2683;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 24px 24px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    }

    .primary-nav.nav-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        min-height: 44px;
        border-bottom: 1px solid #E2E8F0;
    }

    .header-cta-wrapper {
        margin-top: 12px;
    }

    .header-cta-btn {
        width: 100%;
    }

    .two-col-grid,
    .three-col-grid,
    .four-col-grid,
    .horizontal-activity-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-three-col-grid {
        grid-template-columns: 1fr;
    }

    .stat-cell {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
    }
}

@media (max-width: 768px) {
    h1, .hero-floating-card h1 {
        font-size: 1.85rem;
    }

    h2, .mission-statement-header h2 {
        font-size: 1.55rem;
    }

    .hero-banner {
        min-height: auto;
        padding: 36px 0;
    }

    .hero-floating-card {
        padding: 26px 22px;
    }

    .stat-number {
        font-size: 2.75rem;
    }

    .dual-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-height: 44px;
    }
}
