/* Base & Typography */
:root {
    --primary-blue: #0A3161;
    /* Navy Blue */
    --accent-gold: #D4AF37;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-serif: 'Lora', serif;
    --font-sans: 'Source Sans 3', sans-serif;
}

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

/* ── Hide native scrollbar (retain functionality) ── */
html {
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE / Edge legacy */
}
html::-webkit-scrollbar {
    display: none;                /* Chrome, Safari, Opera */
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-y: scroll;           /* always-on scroll, no layout shift */
}

/* ── Right-side Scroll Indicator ───────────────── */
#scroll-track {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 120px;
    background: rgba(10, 49, 97, 0.12);
    border-radius: 99px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#scroll-track.visible {
    opacity: 1;
}

#scroll-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--accent-gold), var(--primary-blue));
    transition: height 0.1s linear;
    height: 0%;
}

#scroll-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--primary-blue);
    transition: top 0.1s linear;
    top: 0%;
    margin-top: -4.5px;
    cursor: pointer;
    pointer-events: auto;
}

/* Scroll up / down buttons flanking the track */
#scroll-up-btn,
#scroll-dn-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(10,49,97,0.18);
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary-blue);
    transition: background 0.2s, box-shadow 0.2s;
    pointer-events: auto;
}

#scroll-up-btn {
    top: -26px;
}

#scroll-dn-btn {
    bottom: -26px;
}

#scroll-up-btn:hover,
#scroll-dn-btn:hover {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(10,49,97,0.25);
}

#scroll-up-btn svg,
#scroll-dn-btn svg {
    width: 10px;
    height: 10px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--primary-blue);
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 3px solid var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-blue);
}

/* Hero / Manifesto Section */
.hero {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh; /* full viewport height */
    padding: 5rem 2rem 3rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.hero h2 {
    color: var(--bg-white);
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    line-height: 1.15;
}

.hero p {
    font-size: 1.15rem;
    font-weight: 300;
    color: #CBD5E1;
    line-height: 1.9;
    position: relative;
    padding-top: 1.5rem;
}

.hero p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
}

/* ── Scroll Indicator ───────────────────────── */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s ease;
    animation: scrollFadeIn 1s ease 1.2s both;
}

.scroll-indicator:hover {
    color: var(--accent-gold);
}

.scroll-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.scroll-arrow {
    animation: scrollBounce 1.6s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 26px;
    height: 26px;
    display: block;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%       { transform: translateY(7px); opacity: 1; }
}

@keyframes scrollFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Section Shared */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent-gold);
    margin: 1.5rem auto 0;
}

/* Members Section */
.members-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.kids-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.member-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.member-card:hover h3 {
    color: var(--accent-gold);
}

.member-card.redacted-card {
    position: relative;
    overflow: hidden;
}

.member-card.redacted-card > .member-img,
.member-card.redacted-card > .member-info {
    filter: blur(12px) brightness(0.78);
    transform: scale(1.03);
}

.member-card.redacted-card .member-info {
    position: relative;
    z-index: 1;
}

.member-card.redacted-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 49, 97, 0.28);
    pointer-events: none;
}

.redacted-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    background: rgba(255, 255, 255, 0.92);
    color: #C0392B;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(192, 57, 43, 0.18);
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.member-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-gold);
}

.small-card .member-img {
    height: 300px;
}

.member-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    color: var(--primary-blue);
}

.role {
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.member-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.stats {
    background: var(--bg-light);
    padding: 1rem;
    border-left: 3px solid var(--primary-blue);
    font-size: 0.9rem;
}

.stat-label {
    font-weight: 600;
    color: var(--text-dark);
}

/* Financials Section */
.financials-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.financial-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 250px;
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 4px solid var(--primary-blue);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 900px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

.chart-wrapper {
    background: var(--bg-white);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chart-wrapper h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    text-align: center;
    padding: 2rem 0;
}

.site-footer p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.disclaimer {
    color: #94A3B8;
    font-size: 0.85rem !important;
}

/* ================================================
   MEMBER PROFILE PAGE STYLES
   ================================================ */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 1.5rem 0 0;
    transition: gap 0.2s ease, color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-gold);
    gap: 0.8rem;
}

.back-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Profile Hero */
.profile-hero {
    background-color: var(--primary-blue);
    background-image: linear-gradient(to bottom, rgba(10, 49, 97, 0.08) 0%, rgba(10, 49, 97, 0.26) 35%, rgba(10, 49, 97, 0.72) 70%, rgba(10, 49, 97, 0.95) 100%), var(--profile-hero-bg, none);
    background-size: cover, cover;
    background-position: center 25%, center 25%;
    background-repeat: no-repeat, no-repeat;
    padding: 5rem 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.profile-portrait-wrap {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent-gold), #875f00);
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.12);
}

.profile-portrait {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    display: block;
    background-color: #1a3a6b;
}

.profile-portrait-placeholder {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1F4E85, #0A3161);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.5);
}

.profile-name {
    color: var(--bg-white);
    font-size: 3rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.profile-role {
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
}

.profile-wave {
    height: 60px;
    margin-top: 3rem;
    background: var(--bg-light);
    clip-path: ellipse(60% 100% at 50% 100%);
}

/* Profile Body */
.profile-body {
    background-color: var(--bg-light);
    padding: 3rem 0 6rem;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
}

.profile-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.profile-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-gold);
    display: block;
    font-family: var(--font-sans);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

.bio-text {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1rem;
}

/* Member Charts */
.member-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .member-charts {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   INFORMATION PENDING OVERLAY
   ================================================ */

.pending-section {
    position: relative;
}

.pending-section > *:not(.pending-badge) {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.pending-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 25, 0.82);
    color: #FFFFFF;
    padding: 1.5rem 3.5rem;
    text-align: center;
    z-index: 20;
    border: 1px solid rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
    pointer-events: none;
}

.pending-badge-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.pending-badge-label {
    display: block;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.pending-badge-sub {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.25rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 1rem 0;
    }

    .main-nav {
        margin-top: 1rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

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

    .profile-name {
        font-size: 2.2rem;
    }
}