/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fdf7f6;
    --main: #193348;
    --secondary: #99482d;
    --text-body: #3a4f5e;
    --text-light: #6b7e8a;
    --white: #ffffff;
    --divider: rgba(25, 51, 72, 0.10);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

body {
    background-color: var(--bg);
    color: var(--main);
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(253, 247, 246, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
/*     border-bottom: 1px solid var(--divider); */
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 24px rgba(25, 51, 72, 0.07);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.header-logo {
    display: none;
}

.header-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
}

.header-name-line1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.0rem;
    color: var(--main);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.header-name-line2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    color: var(--secondary);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* Right: nav + toggle grouped */
.header-right {
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.header-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--main);
    text-decoration: none;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.header-nav a:hover {
    opacity: 1;
}

/* Support CTA button in nav */
.nav-cta a {
    background: var(--secondary);
    color: var(--bg) !important;
    padding: 0.45rem 1.15rem;
    border-radius: 3px;
    opacity: 1 !important;
    font-weight: 700;
    letter-spacing: 0.14em;
    transition: background 0.3s ease;
}

.nav-cta a:hover {
    background: var(--main);
}

/* ============================================
   EVENT BANNER
   ============================================ */
.event-banner {
    background: rgba(25, 51, 72, 0.88);
    color: var(--bg);
    text-align: center;
    padding: 0.7rem 2rem;
}

.event-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.event-banner-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.7;
}

.event-banner-title {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.92rem;
}

.event-banner a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bg);
    text-decoration: none;
    border: 1px solid rgba(253, 247, 246, 0.35);
    padding: 0.3rem 0.85rem;
    border-radius: 2px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.event-banner a:hover {
    border-color: var(--bg);
    background: rgba(253, 247, 246, 0.1);
}

/* ============================================
   HERO IMAGE
   ============================================ */
.hero-wrap {
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 65%;
    display: block;
    animation: heroReveal 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: scale(1.25);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-caption {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.74rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-align: right;
    padding: 0.5rem 1.5rem;
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.content-area {
    max-width: 1080px;
    margin: 5.5rem auto 5rem;
    padding: 0 4.5rem;
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* --- Main column --- */
.content-section + .content-section {
    margin-top: 3.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--divider);
}

.content-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.9rem;
}

.content-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--main);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.content-deck {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-body);
    line-height: 1.45;
    margin-bottom: 1.8rem;
}

.content-subheading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--main);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 1.2rem;
}

.content-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-align: left;
}

.content-text:last-child {
    margin-bottom: 0;
}

/* Historic in-column photo */
.figure-historic {
    width: 66%;
    margin: 2rem 0 2.25rem 0;
    display: block;
}

.figure-frame {
    border: 2px solid var(--secondary);
    line-height: 0;
    padding: 6px;  /* adjust to taste */
/*     background-color: white(50%);  /* or whatever color you want the gap to be */ */
}

.figure-historic img {
    width: 100%;
    display: block;
    filter: grayscale(100%) sepia(18%) brightness(1.12);
}

.figure-historic figcaption {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.68rem;
    color: var(--text-light);
    letter-spacing: 0.03em;
    margin-top: 0.6rem;
}

/* Inline emphasis */
em.yn {
    font-style: italic;
    font-weight: 500;
    color: var(--main);
}

.hl-navy {
    font-weight: 700;
    color: var(--main);
}

/* Phase cost tags */
.phase-cost {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--secondary);
    display: inline-block;
    margin-left: 0.5rem;
}

/* Campaign total callout */
.campaign-callout {
    background: rgba(25, 51, 72, 0.04);
    border-left: 3px solid var(--secondary);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}

.campaign-callout p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.7;
}

.campaign-callout .callout-figure {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--main);
    letter-spacing: 0.06em;
}

/* Gallery placeholder */
.gallery-section {
    margin-top: 3.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--divider);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(25, 51, 72, 0.15);
}

.gallery-placeholder {
    aspect-ratio: 4/3;
    background: rgba(25, 51, 72, 0.04);
    border: 1px dashed var(--divider);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 6rem;
}

.sidebar-inner {
    border-left: 2px solid var(--secondary);
    padding-left: 1.75rem;
}

.sidebar-inner + .sidebar-inner {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
}

.sidebar-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar-logo-img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin-bottom: -0.5rem;
}

.sidebar-logotype {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.sidebar-logotype-line1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    color: var(--main);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.1;
}

.sidebar-logotype-line2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.sidebar-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--secondary);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}

.sidebar-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.97rem;
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.sidebar-text:last-child {
    margin-bottom: 0;
}

/* Sidebar CTA button */
.sidebar-cta {
    display: inline-block;
    background: var(--secondary);
    color: var(--bg);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 3px;
    margin-top: 0.75rem;
    transition: background 0.3s ease;
}

.sidebar-cta:hover {
    background: var(--main);
}

.sidebar-contact {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--divider);
}

.sidebar-contact a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(153, 72, 45, 0.28);
    padding-bottom: 1px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.sidebar-contact a:hover {
    color: var(--main);
    border-color: rgba(25, 51, 72, 0.4);
}

/* ============================================
   PAGE HEADER (Support & subpages)
   ============================================ */
.page-header {
    margin-top: 78px;
    padding: 4.5rem 2rem 3.5rem;
    text-align: center;
    border-bottom: 1px solid var(--divider);
}

.page-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--main);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.page-deck {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-body);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.support-content {
    max-width: 720px;
    margin: 4rem auto 5rem;
    padding: 0 2rem;
}

.support-section {
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--divider);
}

.support-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--main);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 1.4rem;
}

.support-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.support-text:last-child {
    margin-bottom: 0;
}

/* Phase cost breakdown table */
.phase-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.phase-table tr {
    border-bottom: 1px solid var(--divider);
}

.phase-table tr:last-child {
    border-bottom: 2px solid var(--main);
}

.phase-table td {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: var(--text-body);
    padding: 0.85rem 0;
    vertical-align: top;
}

.phase-table .phase-name {
    font-weight: 500;
    color: var(--main);
    width: 65%;
}

.phase-table .phase-amount {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
    text-align: right;
    letter-spacing: 0.04em;
}

.phase-table .total-row td {
    font-weight: 700;
    padding-top: 1rem;
}

.phase-table .total-row .phase-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.phase-table .total-row .phase-amount {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--main);
}

/* Where funds go */
.funds-list {
    margin: 1.5rem 0;
}

.funds-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--divider);
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: var(--text-body);
}

.funds-item:last-child {
    border-bottom: none;
}

.funds-item span:last-child {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--secondary);
    letter-spacing: 0.06em;
}

/* How to give */
.give-method {
    margin-bottom: 1.5rem;
}

.give-method-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--main);
    margin-bottom: 0.4rem;
}

.give-cta {
    display: inline-block;
    background: var(--secondary);
    color: var(--bg);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border-radius: 3px;
    margin-top: 0.75rem;
    transition: background 0.3s ease;
}

.give-cta:hover {
    background: var(--main);
}

/* Leadership */
.board-list {
    margin-top: 1rem;
}

.board-member {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--divider);
}

.board-member:last-child {
    border-bottom: none;
}

.board-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--main);
    letter-spacing: 0.08em;
}

.board-role {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary);
}

.board-bio {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-top: 0.25rem;
}

/* Tax info box */
.tax-box {
    background: rgba(25, 51, 72, 0.04);
    border-left: 3px solid var(--secondary);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.tax-box p {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.97rem;
    color: var(--text-body);
    line-height: 1.7;
}

.tax-box strong {
    font-weight: 700;
    color: var(--main);
}

/* ============================================
   PAGE CONTENT (History page)
   ============================================ */
.page-content {
    max-width: 780px;
    margin: 7rem auto 5rem;
    padding: 0 2.5rem;
}

.placeholder-note {
    background: rgba(25, 51, 72, 0.04);
    border-left: 3px solid var(--secondary);
    padding: 1.5rem 2rem;
    margin: 3rem 0;
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.back-link {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    text-decoration: none;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--divider);
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--main);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    border-top: 1px solid var(--divider);
    margin-top: 5rem;
    padding: 2.5rem 4.5rem;
    text-align: center;
}

.footer-tagline {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.footer-org {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--text-light);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 2;
    margin-bottom: 0.15rem;
}

.footer-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 2;
}

.footer-text a {
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--divider);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-text a:hover {
    color: var(--main);
    border-color: var(--main);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
    --bg: #111c26;
    --main: #e5dbd0;
    --secondary: #c8694a;
    --text-body: #9fb8c5;
    --text-light: #6a8a98;
    --divider: rgba(229, 219, 208, 0.12);
}

[data-theme="dark"] header {
    background: rgba(17, 28, 38, 0.82);
}

[data-theme="dark"] .event-banner {
    background: rgba(10, 20, 28, 0.88);
    color: #e5dbd0;
}

[data-theme="dark"] .event-banner a {
    color: #e5dbd0;
    border-color: rgba(229, 219, 208, 0.35);
}

[data-theme="dark"] .event-banner a:hover {
    border-color: #e5dbd0;
    background: rgba(229, 219, 208, 0.1);
}

[data-theme="dark"] .campaign-callout {
    background: rgba(229, 219, 208, 0.04);
}

[data-theme="dark"] .gallery-placeholder {
    background: rgba(229, 219, 208, 0.04);
    border-color: rgba(229, 219, 208, 0.12);
}

[data-theme="dark"] .nav-cta a {
    color: #111c26 !important;
}

[data-theme="dark"] .sidebar-cta {
    color: #111c26;
}

[data-theme="dark"] .give-cta {
    color: #111c26;
}

[data-theme="dark"] .tax-box {
    background: rgba(229, 219, 208, 0.04);
}

[data-theme="dark"] .placeholder-note {
    background: rgba(229, 219, 208, 0.04);
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 1.6rem;
    color: var(--main);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.theme-toggle:hover {
    opacity: 1;
}

.theme-toggle svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sun {
    display: none;
}

.icon-moon {
    display: flex;
}

[data-theme="dark"] .icon-sun {
    display: flex;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

/* Hamburger button (mobile/tablet only) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 1rem;
    color: var(--main);
    opacity: 0.55;
    transition: opacity 0.3s ease;
    align-items: center;
    flex-shrink: 0;
}

.nav-toggle:hover {
    opacity: 1;
}

.nav-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-hamburger {
    display: flex;
}

.icon-x {
    display: none;
}

.nav-open .icon-hamburger {
    display: none;
}

.nav-open .icon-x {
    display: flex;
}

/* Mobile dropdown panel */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    padding: 0.5rem 0 1.25rem;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid var(--divider);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--main);
    text-decoration: none;
    opacity: 0.6;
    padding: 0.9rem 2rem;
    transition: opacity 0.2s ease;
}

.mobile-menu a:hover {
    opacity: 1;
}

.mobile-menu .mobile-cta a {
    color: var(--secondary);
    opacity: 1;
    font-weight: 800;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Hamburger at tablet + phone widths */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* Single-column content at phone widths */
@media (max-width: 768px) {
    .event-banner-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .content-area {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 2rem;
        margin-top: 3.5rem;
    }

    .sidebar {
        position: static;
        margin-top: 3.5rem;
        padding-top: 3.5rem;
        border-top: 1px solid var(--divider);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        padding: 3.5rem 2rem 2.5rem;
    }

    .support-content {
        padding: 0 1.5rem;
        margin-top: 3rem;
    }

    .page-content {
        padding: 0 2rem;
        margin-top: 5.5rem;
    }

    footer {
        padding: 2.5rem 2rem;
    }

    .history-subnav {
        padding: 0.4rem 1rem;
    }

    .history-subnav-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .subnav-prev, .subnav-next {
        font-size: 0.58rem;
    }

    .subnav-center {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .subnav-current-label {
        font-size: 0.62rem;
    }

    .history-toc-dropdown {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 90vw;
        max-width: 360px;
    }

    /* History overview responsive */
    .history-overview-grid {
        grid-template-columns: 1fr;
    }

    .history-chapter-card {
        padding: 1.25rem 1.5rem;
    }

    /* History chapter responsive */
    .chapter-body .figure-historic {
        width: 100%;
    }

    .chapter-hero-wrap {
        height: 40vh;
    }
}

/* ============================================
   HISTORY SECTION — SUB-HEADER NAVIGATION
   ============================================ */
.history-subnav {
    background: rgba(25, 51, 72, 0.04);
/*     border-bottom: 1px solid var(--divider); */
    padding: 0.5rem 2rem;
    position: relative;
    z-index: 90;
}

.history-subnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.subnav-prev, .subnav-next {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.subnav-prev:hover, .subnav-next:hover {
    opacity: 1;
}

.subnav-disabled {
    opacity: 0.25;
    pointer-events: none;
}

.subnav-center {
    position: relative;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.subnav-current {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: background 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    color: var(--main);
}

.subnav-current:hover {
    background: rgba(25, 51, 72, 0.06);
}

.subnav-current-label {
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subnav-chevron {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.subnav-current.open .subnav-chevron {
    transform: rotate(180deg);
}

/* Table of Contents dropdown */
.history-toc-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid var(--divider);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(25, 51, 72, 0.12);
    width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 200;
    padding: 0.5rem 0;
    text-align: left;
}

.history-toc-dropdown.open {
    display: block;
}

.toc-item {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-body);
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
    text-align: left;
}

.toc-item:hover {
    background: rgba(25, 51, 72, 0.04);
    color: var(--main);
}

.toc-item.toc-active {
    color: var(--secondary);
    border-left-color: var(--secondary);
    background: rgba(153, 72, 45, 0.04);
    font-weight: 700;
}

.toc-item .toc-chapter-num {
    color: var(--text-light);
    font-weight: 500;
    margin-right: 0.35rem;
}

.toc-divider {
    height: 1px;
    background: var(--divider);
    margin: 0.35rem 1.25rem;
}

/* ============================================
   HISTORY OVERVIEW PAGE
   ============================================ */
.history-hero-wrap {
    width: 100%;
    height: 60vh;
    overflow: hidden;
/*     padding-top: 6.0rem;          /* clear fixed header + subnav */ */
    background: var(--bg);
}

.history-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    display: block;
}

.history-overview {
    max-width: 820px;
    margin: 4rem auto 5rem;
    padding: 0 2.5rem;
}

.history-overview-intro {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--divider);
}

.history-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.history-chapter-card {
    display: block;
    background: rgba(25, 51, 72, 0.03);
    border: 1px solid var(--divider);
    border-left: 3px solid var(--secondary);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.history-chapter-card:hover {
    background: rgba(25, 51, 72, 0.06);
    box-shadow: 0 4px 16px rgba(25, 51, 72, 0.08);
    transform: translateY(-1px);
}

.chapter-card-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.25rem;
}

.chapter-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--main);
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.chapter-card-years {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--secondary);
}

.chapter-card-desc {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Appendices card styling */
.history-chapter-card.card-appendix {
    border-left-color: var(--main);
    background: rgba(25, 51, 72, 0.02);
}

/* ============================================
   HISTORY CHAPTER PAGES
   ============================================ */
.chapter-hero-wrap {
    width: 100%;
    height: 45vh;
    overflow: hidden;
}

.chapter-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.chapter-hero-caption {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-align: right;
    padding: 0.5rem 2rem;
}

/* Chapter page body — padded below fixed header + subnav */
.chapter-body {
    max-width: 780px;
    margin: 0 auto 5rem;
    padding: 8.5rem 2.5rem 0;
}

/* ---- Chapter title block ---- */
.chapter-title-block {
    margin-bottom: 2.5rem;
/*     border-bottom: 1px solid var(--divider); */
    padding-bottom: 1.75rem;
}

/* Eyebrow: "Chapter I  ·  1853–1906" */
.chapter-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.6rem;
}

.chapter-eyebrow .eyebrow-divider {
    margin: 0 0.5em;
    color: var(--text-light);
}

/* Heading: short title */
.chapter-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    color: var(--main);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 0.55rem;
}

/* Deck: one-sentence italic subtitle */
.chapter-deck {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.55;
}

/* Legacy aliases for any old markup still using these */
.chapter-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.chapter-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--main);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.chapter-years {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
}

.chapter-body .content-text {
    margin-bottom: 1.5rem;
}

.chapter-body .figure-historic {
    width: 80%;
    margin: 2.5rem 0;
}

.chapter-body .figure-full {
    width: 100%;
    margin: 2.5rem 0;
}

/* Cross-reference links */
.chapter-xref {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(153, 72, 45, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.chapter-xref:hover {
    color: var(--main);
    border-color: var(--main);
}

/* Chapter end nav */
.chapter-end-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--divider);
    gap: 1rem;
}

.chapter-end-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.chapter-end-link:hover {
    color: var(--main);
}

.chapter-end-link.end-overview {
    color: var(--text-light);
}

/* Appendices tables */
.appendix-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--divider);
}

.appendix-section:last-child {
    border-bottom: none;
}

.appendix-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.appendix-table th {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--main);
    text-align: left;
    padding: 0.75rem 0.75rem;
    border-bottom: 2px solid var(--main);
}

.appendix-table td {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    color: var(--text-body);
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--divider);
    vertical-align: top;
    line-height: 1.6;
}

.appendix-table td:first-child {
    white-space: nowrap;
    font-weight: 500;
    color: var(--main);
}

/* Fact-check notes */
.factcheck-item {
    margin-bottom: 2rem;
}

.factcheck-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--main);
    margin-bottom: 0.6rem;
}

.factcheck-item p {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.97rem;
    color: var(--text-body);
    line-height: 1.8;
}

/* Source list */
.source-list {
    counter-reset: source;
    list-style: none;
    padding: 0;
}

.source-list li {
    counter-increment: source;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.7;
    padding: 0.5rem 0 0.5rem 2.5rem;
    position: relative;
    border-bottom: 1px solid var(--divider);
}

.source-list li::before {
    content: counter(source) ".";
    position: absolute;
    left: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-light);
}

.source-category {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin: 2rem 0 0.75rem;
}

/* Dark mode adjustments for history */
[data-theme="dark"] .history-subnav {
    background: rgba(229, 219, 208, 0.04);
}

[data-theme="dark"] .history-toc-dropdown {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .history-chapter-card {
    background: rgba(229, 219, 208, 0.03);
}

[data-theme="dark"] .history-chapter-card:hover {
    background: rgba(229, 219, 208, 0.06);
}

[data-theme="dark"] .toc-item:hover {
    background: rgba(229, 219, 208, 0.04);
}

[data-theme="dark"] .toc-item.toc-active {
    background: rgba(200, 105, 74, 0.06);
}

/* ============================================
   HISTORY — CLASS ALIASES
   (Support variant class names across pages)
   ============================================ */
.subnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.subnav-left, .subnav-right {
    flex-shrink: 0;
}

.subnav-toc-wrapper {
    position: relative;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.subnav-toc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: background 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--main);
}

.subnav-toc-btn:hover {
    background: rgba(25, 51, 72, 0.06);
}

.subnav-toc-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.subnav-toc-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.subnav-prev svg, .subnav-next svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    margin: 0 0.2rem;
}

/* Alias: .toc-dropdown (same as .history-toc-dropdown) */
.toc-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid var(--divider);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(25, 51, 72, 0.12);
    width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 200;
    padding: 0.5rem 0;
}

.toc-dropdown[aria-hidden="false"],
.toc-dropdown.open {
    display: block;
}

/* Chapter hero (alias for chapter-hero-img) */
.chapter-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* Chapter navigation at bottom */
.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--divider);
    gap: 2rem;
}

.chapter-nav-link {
    text-decoration: none;
    transition: color 0.3s ease;
}

.chapter-nav-link:hover .chapter-nav-title {
    color: var(--main);
}

.chapter-nav-prev {
    text-align: left;
}

.chapter-nav-next {
    text-align: right;
    margin-left: auto;
}

.chapter-nav-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.15rem;
}

.chapter-nav-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary);
    display: block;
    transition: color 0.3s ease;
}

/* History content wrapper */
.history-content {
    max-width: 780px;
    margin: 3rem auto 5rem;
    padding: 0 2.5rem;
}

/* Dark mode for aliases */
[data-theme="dark"] .toc-dropdown {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .subnav-toc-btn:hover {
    background: rgba(229, 219, 208, 0.06);
}

/* Responsive aliases */
@media (max-width: 768px) {
    .subnav-toc-wrapper {
        order: -1;
        width: 100%;
    }

    .toc-dropdown {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 90vw;
        max-width: 360px;
    }

    .subnav-toc-btn {
        font-size: 0.6rem;
    }
}
