/* Finance Forest — shared styles */

:root {
    --ink: #1c2a1e;
    --ink-soft: #44523f;
    --ink-faint: #6b755f;
    --forest: #2e5339;
    --forest-deep: #1e3a28;
    --sage: #7a9678;
    --sage-tint: #eef1e9;
    --paper: #f7f7f2;
    --white: #ffffff;
    --line: #dfe2d6;
    --gold: #9c7a2e;
    --accent: var(--forest);
    --accent-deep: var(--forest-deep);
    --accent-tint: var(--sage-tint);
    --r-sm: 4px;
    --r-md: 10px;
    --serif: "Source Serif 4", Georgia, serif;
    --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--white);
    padding: 10px 16px;
    z-index: 200;
}
.skip-link:focus { left: 0; }

/* Announcement bar */
.announce {
    background: var(--forest-deep);
    color: #e9eee4;
    font-size: 15px;
    text-align: center;
    padding: 9px 16px;
}
.announce a {
    color: var(--white);
    font-weight: 600;
    text-underline-offset: 3px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.brand img { width: 44px; height: auto; }
.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    display: block;
    padding: 8px 12px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover { color: var(--accent-deep); background: var(--accent-tint); }
.nav-links a[aria-current="page"] { color: var(--accent-deep); font-weight: 600; }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 7px 9px;
    cursor: pointer;
    color: var(--ink);
}
.menu-toggle svg { display: block; }

.mobile-menu {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
    display: block;
    padding: 11px 4px;
    color: var(--ink);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
}
.mobile-menu li:last-child a { border-bottom: none; }

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--r-sm);
    padding: 12px 22px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-solid {
    background: var(--accent);
    color: var(--white);
}
.btn-solid:hover { background: var(--accent-deep); }
.btn-ghost {
    background: transparent;
    color: var(--accent-deep);
    border-color: var(--accent-deep);
}
.btn-ghost:hover { background: var(--accent-tint); }
.btn-light {
    background: var(--white);
    color: var(--accent-deep);
}
.btn-light:hover { background: var(--paper); }
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.65);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

/* Type scaffolding */
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.015em; }

.section { padding: 88px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 14px;
}
.section-head .lede { font-size: 19px; color: var(--ink-soft); }

/* Hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 64px;
    align-items: center;
    padding: 72px 0 80px;
}
.hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.4rem);
    font-weight: 600;
    line-height: 1.12;
    margin-bottom: 22px;
}
.hero .lede {
    font-size: 20px;
    color: var(--ink-soft);
    margin-bottom: 32px;
    max-width: 34em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--ink-faint); }

.hero-figure { margin: 0; }
.hero-figure img {
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
}
.hero-figure figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--ink-faint);
}

/* Stat band */
.stats {
    border-top: 1px solid var(--line);
    background: var(--white);
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 30px 0;
}
.stat { padding: 6px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-number {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-deep);
    font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 15px; color: var(--ink-faint); }

/* About / two-column */
.split {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 72px;
    align-items: start;
}
.prose h3 { font-size: 1.5rem; font-weight: 600; margin: 28px 0 10px; }
.prose p { color: var(--ink-soft); margin-bottom: 18px; max-width: 38em; }
.prose p:first-of-type { margin-top: 4px; }

.facts {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--white);
    overflow: hidden;
}
.facts h3, .facts .facts-head {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 22px;
    background: var(--accent-tint);
    border-bottom: 1px solid var(--line);
    letter-spacing: -0.015em;
}
.facts dl { padding: 8px 22px 14px; }
.facts .row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
}
.facts .row:last-child { border-bottom: none; }
.facts dt { color: var(--ink-faint); font-weight: 600; }
.facts dd { color: var(--ink); }
.facts a { color: var(--accent-deep); }

/* Program groups */
.program-group { margin-bottom: 56px; }
.program-group:last-child { margin-bottom: 0; }
.group-label {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 22px;
}
.group-label h3 { font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.group-label .rule { flex: 1; height: 1px; background: var(--line); }
.group-label .count { font-size: 14px; color: var(--ink-faint); white-space: nowrap; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.section-alt .card { background: var(--white); }
.card-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-deep);
    margin-bottom: 16px;
}
.card h3, .card h4 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
}
.card p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 14px; }
.card ul {
    list-style: none;
    margin: 0 0 18px;
    font-size: 15px;
    color: var(--ink-soft);
}
.card ul li {
    padding: 4px 0 4px 22px;
    position: relative;
}
.card ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 10px;
    height: 5px;
    border-left: 2px solid var(--sage);
    border-bottom: 2px solid var(--sage);
    transform: rotate(-45deg);
}
.card .card-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--accent-deep);
    text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .deadline {
    margin-top: auto;
    font-size: 14.5px;
    color: var(--gold);
    font-weight: 600;
}

/* Team */
.team-founders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    gap: 20px;
    margin-bottom: 56px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}
.person {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.person .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent-deep);
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-founder { flex-direction: column; text-align: center; padding: 32px 24px; }
.person-founder .avatar { width: 96px; height: 96px; font-size: 32px; }
.person .name { font-family: var(--serif); font-size: 17.5px; font-weight: 600; line-height: 1.3; }
.person .role { font-size: 14.5px; color: var(--ink-soft); }
.person .place { font-size: 13.5px; color: var(--ink-faint); }

/* CTA band */
.cta-band {
    background: var(--accent-deep);
    color: var(--white);
    padding: 80px 0;
}
.cta-band h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    max-width: 17em;
    margin-bottom: 14px;
}
.cta-band p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    max-width: 36em;
    margin-bottom: 30px;
}
.cta-band .hero-actions { margin-top: 0; }

/* Footer */
.footer {
    background: var(--ink);
    color: #c6cdbd;
    padding: 60px 0 32px;
    font-size: 15.5px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 44px;
}
.footer .brand { color: var(--white); margin-bottom: 14px; }
.footer .brand img { width: 40px; }
.footer p { max-width: 30em; }
.footer h4, .footer .footer-label {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8e987f;
    margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer a { color: #dfe5d5; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid #44503c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dfe5d5;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { border-color: #dfe5d5; color: var(--white); }
.footer-bottom {
    border-top: 1px solid #37422f;
    padding-top: 22px;
    font-size: 14px;
    color: #8e987f;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Gallery */
.page-hero {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 64px 0;
}
.page-hero h1 {
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    font-weight: 600;
    margin-bottom: 12px;
}
.page-hero p { font-size: 19px; color: var(--ink-soft); max-width: 38em; }

.year-tabs { display: flex; gap: 10px; margin: 40px 0 8px; }
.year-tab {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    padding: 9px 24px;
    background: var(--white);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.year-tab:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.year-tab.active {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: var(--white);
}
.year-content { display: none; }
.year-content.active { display: block; }

.album-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.album-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 11px 16px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.album-nav a:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

.album { padding: 44px 0 8px; scroll-margin-top: 88px; }
.album-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}
.album-head h2 { font-size: 1.5rem; font-weight: 600; }
.album-head h3 { font-size: 1.2rem; font-weight: 600; }
.album-head a {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-deep);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 11px 18px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.album-head a:hover { background: var(--accent-tint); border-color: var(--accent-deep); }
.album-sub { font-size: 15.5px; color: var(--ink-faint); margin-bottom: 8px; }
.album-desc { font-size: 15.5px; color: var(--ink-soft); max-width: 46em; margin-bottom: 18px; }
.year-intro { font-size: 17px; color: var(--ink-soft); max-width: 46em; margin: 28px 0 4px; }
.album-frame {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--white);
}
.album-frame iframe {
    width: 100%;
    height: 560px;
    border: none;
    display: block;
}

/* Events (women's page) */
.event-list { display: grid; gap: 14px; max-width: 760px; }
.event {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 26px;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 22px;
}
.event time {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-deep);
    padding-top: 4px;
}
.event h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.event p { font-size: 15.5px; color: var(--ink-soft); }
.event .attendance { margin-top: 8px; font-size: 14.5px; color: var(--ink-faint); }

/* Learn page */
.guide {
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 88px;
}
.guide:last-of-type { border-bottom: none; }
.guide h2 { font-size: 1.7rem; font-weight: 600; margin-bottom: 16px; }
.guide .prose { max-width: 44em; }
.guide .prose ul, .guide .prose ol {
    margin: 0 0 18px 22px;
    color: var(--ink-soft);
}
.guide .prose li { margin-bottom: 8px; }
.guide-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.guide-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 10px 16px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.guide-nav a:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* Embedded form pages */
.form-frame {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--white);
    margin-top: 28px;
}
.form-frame iframe {
    width: 100%;
    height: 900px;
    border: none;
    display: block;
}
.form-fallback { margin-top: 12px; font-size: 15px; color: var(--ink-faint); }

/* Legal / long-form pages */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.35rem; font-weight: 600; margin: 32px 0 10px; }
.legal p, .legal ul { color: var(--ink-soft); margin-bottom: 16px; }
.legal ul { margin-left: 22px; }
.legal li { margin-bottom: 8px; }
.effective-date { font-size: 15px; color: var(--ink-faint); margin-bottom: 8px; }

/* Footer legal line */
.footer-legal {
    font-size: 14px;
    color: #8e987f;
    margin-bottom: 14px;
    max-width: 46em;
}

/* Women's chapter accent override */
.theme-women {
    --accent: #6e4a6e;
    --accent-deep: #563a56;
    --accent-tint: #f2ecf2;
    --gold: #8c6a3e;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .stats-row { grid-template-columns: 1fr; gap: 4px; }
    .stat { border-left: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: none; }
}

@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav-cta-desktop { display: none; }
    .menu-toggle { display: block; }
    .section { padding: 64px 0; }
    .hero-grid { padding: 48px 0 56px; }
    .event { grid-template-columns: 1fr; gap: 6px; }
    .album-frame iframe { height: 440px; }
    .form-frame iframe { height: 780px; }
}

@media (max-width: 480px) {
    .facts .row { grid-template-columns: 1fr; gap: 2px; }
    .guide { padding: 44px 0; }
}
