/* ===========================
   GLOBAL STYLES
   Shared styles across all pages
   (nav, footer, login, base styles, CSS variables, dividers)
   =========================== */

/* ===========================
    CSS RESET & BASE STYLES
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===========================
   CUSTOM SCROLLBARS
   Dark-themed scrollbars that blend with the site aesthetic.
   WebKit: Chrome, Edge, Safari — Firefox: scrollbar-* properties.
=========================== */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a1a;
}

/* WebKit (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #1a1a1a;
}

*::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #777;
}

:root {
    --dark-bg: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #3a3a3a;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --accent-gold: #D4AF37;
    --accent-gold-hover: #f0c654;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Aboreto', serif;
    font-weight: 700;
}

/* ===========================
    NAVIGATION BAR
=========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(10px);
    padding: 0.6rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar.scrolled {
    padding: 0.4rem 5%;
}

.navbar-logo {
    font-size: 1.4rem;
    font-family: 'Aboreto', serif;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 1.8px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.navbar-logo:hover {
    color: var(--accent-gold);
}

.logo-line-1,
.logo-line-2 {
    display: inline;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    flex-wrap: nowrap;
}

.navbar-menu li {
    position: relative;
}

.menu-divider-container {
    display: none;
}

.navbar-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-family: 'Lato', serif;
}

.navbar-menu a:hover {
    color: var(--accent-gold);
}

/* Star styling for town links */
.town-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.town-star {
    color: #DAA520;
    font-size: 0.8em;
    display: inline-block;
    transform: rotate(-12deg);
    transition: all 0.3s ease;
    pointer-events: none;
    margin-right: 15px;
}

.town-link:hover .town-star {
    transform: rotate(150deg) scale(1.55) translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.8));
}

/* Hide individual town links by default, show on wide screens */
.town-links {
    display: none;
}

@media (min-width: 1301px) {
    .town-links {
        display: flex;
        align-items: center;
        gap: 0;
    }

    .communities-dropdown {
        display: none;
    }
}

@media (max-width: 1375px) {
    .town-links {
        display: none;
    }

    .communities-dropdown {
        display: block;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.95rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
    color: #DAA520;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #0a0a0a;
    backdrop-filter: blur(10px);
    min-width: 200px;
    padding: 8px 0;
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #DAA520;
    border-top: none;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px 12px 50px;
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Lato', serif;
    font-size: 1rem;
    font-weight: 500;
    list-style: none;
    position: relative;
}

.dropdown-menu a::before {
    content: '⚲';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-150%);
    color: #DAA520;
    font-size: 0.9em;
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #DAA520;
    transform: translateX(5px);
}

.dropdown-menu a:hover::before {
    opacity: 1;
    transform: translateY(-50%);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-white);
    transition: all var(--transition-speed);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ===========================
    SHARED BUTTON STYLES
=========================== */
.btn-login {
    padding: 8px 24px;
    border: 2px solid var(--text-white);
    border-radius: 4px;
    background: transparent;
    color: var(--text-white);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Lato', serif;
}

.btn-login:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000000 !important;
}

.btn-hero {
    padding: 16px 48px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all var(--transition-speed);
    border: 3px solid #DAA520;
    color: #DAA520;
    background: transparent;
    cursor: pointer;
    display: inline-block;
    letter-spacing: 1.5px;
    font-family: 'Aboreto', serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible;
}

/* Join Us Button - Primary CTA (always gold and glowing) */
.btn-hero:first-child {
    background: #DAA520;
    color: #000000;
    border: 3px solid #DAA520;
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-hero:first-child:hover {
    background: #DAA520;
    color: #000000;
    box-shadow: 0 0 45px rgba(218, 165, 32, 0.8), 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
    border-color: #DAA520;
}

/* Learn More Button - Secondary (subtle) */
.btn-learn-more:hover {
    background: transparent;
    color: #E5C158;
    border-color: #E5C158;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Star animation only for Join Us button */
.btn-hero:first-child::before,
.btn-hero:first-child::after {
    content: '★';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #DAA520;
    font-size: 0.7em;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.9));
    pointer-events: none;
}

.btn-hero:first-child::before {
    left: 0;
}

.btn-hero:first-child::after {
    right: 0;
}

.btn-hero:first-child:hover::before {
    animation: starSlideLeft 1.2s ease-out infinite;
}

.btn-hero:first-child:hover::after {
    animation: starSlideRight 1.2s ease-out infinite;
}

@keyframes starSlideLeft {
    0% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-35px) rotate(-180deg) scale(1.3);
    }
}

@keyframes starSlideRight {
    0% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(35px) rotate(180deg) scale(1.3);
    }
}

/* =============================================
   DECORATIVE DIVIDERS
   ============================================= */

/* Section Divider Lines */
.hero::after,
.stats-critical-merged-section::after,
.founders-section::after,
.about-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.hero::after {
    z-index: 100;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* DIVIDER 1: Art Deco Sunburst Fan */
.deco-sunburst {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.deco-sunburst .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold));
    margin-top: 65px;
}

.deco-sunburst .line:last-child {
    background: linear-gradient(90deg, var(--accent-gold), transparent);

}

.deco-sunburst .fan {
    width: 120px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.deco-sunburst .fan-ray {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 50px;
    background: var(--accent-gold);
    transform-origin: bottom center;
}

.deco-sunburst .fan-ray:nth-child(1) { transform: translateX(-50%) rotate(-60deg); height: 30px; }
.deco-sunburst .fan-ray:nth-child(2) { transform: translateX(-50%) rotate(-45deg); height: 40px; }
.deco-sunburst .fan-ray:nth-child(3) { transform: translateX(-50%) rotate(-30deg); height: 48px; }
.deco-sunburst .fan-ray:nth-child(4) { transform: translateX(-50%) rotate(-15deg); height: 54px; }
.deco-sunburst .fan-ray:nth-child(5) { transform: translateX(-50%) rotate(0deg); height: 58px; }
.deco-sunburst .fan-ray:nth-child(6) { transform: translateX(-50%) rotate(15deg); height: 54px; }
.deco-sunburst .fan-ray:nth-child(7) { transform: translateX(-50%) rotate(30deg); height: 48px; }
.deco-sunburst .fan-ray:nth-child(8) { transform: translateX(-50%) rotate(45deg); height: 40px; }
.deco-sunburst .fan-ray:nth-child(9) { transform: translateX(-50%) rotate(60deg); height: 30px; }

.deco-sunburst .fan-base {
    width: 80px;
    height: 3.5px;
    background: var(--accent-gold);
    position: relative;
    top: 2px;
}

.deco-sunburst .fan-base::before {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
}

/* DIVIDER 2: FAN SUNBURST - Half-circle radiating fan */
.fan-sunburst {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    height: 100px;
    margin: 0 auto;
}

.fan-sunburst .horizon {
    flex: 1;
    height: 3px;
    background: var(--accent-gold);
}

.fan-sunburst .horizon.left {
    background: linear-gradient(90deg, transparent, var(--accent-gold));
}

.fan-sunburst .horizon.right {
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.fan-sunburst .fan {
    position: relative;
    width: 0px;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.fan-sunburst .fan-ray {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--accent-gold);
    transform-origin: bottom center;
}

.fan-sunburst .fan-ray:nth-child(1)  { height: 90px; transform: translateX(-50%) rotate(-80deg); }
.fan-sunburst .fan-ray:nth-child(2)  { height: 75px; transform: translateX(-50%) rotate(-70deg); }
.fan-sunburst .fan-ray:nth-child(3)  { height: 90px; transform: translateX(-50%) rotate(-60deg); }
.fan-sunburst .fan-ray:nth-child(4)  { height: 75px; transform: translateX(-50%) rotate(-50deg); }
.fan-sunburst .fan-ray:nth-child(5)  { height: 90px; transform: translateX(-50%) rotate(-40deg); }
.fan-sunburst .fan-ray:nth-child(6)  { height: 75px; transform: translateX(-50%) rotate(-30deg); }
.fan-sunburst .fan-ray:nth-child(7)  { height: 90px; transform: translateX(-50%) rotate(-20deg); }
.fan-sunburst .fan-ray:nth-child(8)  { height: 75px; transform: translateX(-50%) rotate(-10deg); }
.fan-sunburst .fan-ray:nth-child(9)  { height: 95px; transform: translateX(-50%) rotate(0deg); }
.fan-sunburst .fan-ray:nth-child(10) { height: 75px; transform: translateX(-50%) rotate(10deg); }
.fan-sunburst .fan-ray:nth-child(11) { height: 90px; transform: translateX(-50%) rotate(20deg); }
.fan-sunburst .fan-ray:nth-child(12) { height: 75px; transform: translateX(-50%) rotate(30deg); }
.fan-sunburst .fan-ray:nth-child(13) { height: 90px; transform: translateX(-50%) rotate(40deg); }
.fan-sunburst .fan-ray:nth-child(14) { height: 75px; transform: translateX(-50%) rotate(50deg); }
.fan-sunburst .fan-ray:nth-child(15) { height: 90px; transform: translateX(-50%) rotate(60deg); }
.fan-sunburst .fan-ray:nth-child(16) { height: 75px; transform: translateX(-50%) rotate(70deg); }
.fan-sunburst .fan-ray:nth-child(17) { height: 90px; transform: translateX(-50%) rotate(80deg); }

.fan-sunburst .fan-base {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fan-sunburst .base-arc {
    width: 70px;
    height: 35px;
    border: 3px solid var(--accent-gold);
    border-bottom: none;
    border-radius: 70px 70px 0 0;
    background: var(--dark-bg);
}

.fan-sunburst .base-arc::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 25px;
    border: 2px solid var(--accent-gold);
    border-bottom: none;
    border-radius: 50px 50px 0 0;
}

.fan-sunburst .base-line {
    width: 200px;
    height: 3px;
    background: var(--accent-gold);
    margin-top: -2px;
}

/* DIVIDER 3: EASTLAKE - Geometric, incised, rosettes, sunflowers */
.eastlake {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.eastlake .fade-line {
    flex: 1;
    height: 1px;
}

.eastlake .fade-line.left {
    background: linear-gradient(90deg, transparent, var(--accent-gold));
}

.eastlake .fade-line.right {
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.eastlake .terminal-diamond {
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    transform: rotate(45deg);
}

.eastlake .spacer-bar {
    width: 20px;
    height: 2px;
    background: var(--accent-gold);
}

.eastlake .rosette {
    width: 16px;
    height: 16px;
    position: relative;
}

.eastlake .rosette::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
}

.eastlake .rosette::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.eastlake .panel-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px;
}

.eastlake .incised-panel {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-gold);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eastlake .incised-panel::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.eastlake .incised-panel .inner-diamond {
    width: 14px;
    height: 14px;
    border: 1px solid var(--accent-gold);
    transform: rotate(45deg);
}

.eastlake .center-sunflower {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eastlake .center-sunflower .petal {
    position: absolute;
    width: 10px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform-origin: left center;
}

.eastlake .center-sunflower .petal:nth-child(1) { transform: translateY(-50%) rotate(0deg) translateX(8px); }
.eastlake .center-sunflower .petal:nth-child(2) { transform: translateY(-50%) rotate(45deg) translateX(8px); }
.eastlake .center-sunflower .petal:nth-child(3) { transform: translateY(-50%) rotate(90deg) translateX(8px); }
.eastlake .center-sunflower .petal:nth-child(4) { transform: translateY(-50%) rotate(135deg) translateX(8px); }
.eastlake .center-sunflower .petal:nth-child(5) { transform: translateY(-50%) rotate(180deg) translateX(8px); }
.eastlake .center-sunflower .petal:nth-child(6) { transform: translateY(-50%) rotate(225deg) translateX(8px); }
.eastlake .center-sunflower .petal:nth-child(7) { transform: translateY(-50%) rotate(270deg) translateX(8px); }
.eastlake .center-sunflower .petal:nth-child(8) { transform: translateY(-50%) rotate(315deg) translateX(8px); }

.eastlake .center-sunflower .flower-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    background: var(--dark-bg);
}

.eastlake .center-sunflower .flower-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.divider-section {
    background: var(--dark-bg);
    padding: 60px 5%;
    text-align: center;
}

/* DIVIDER 4: Victorian Eastlake Incised Panel */
.eastlake-divider-wrapper {
    margin: 60px auto;
    margin-top: 30px;
}

.eastlake-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.eastlake-panel .fade-line {
    flex: 1;
    height: 1px;
}

.eastlake-panel .fade-line.left {
    background: linear-gradient(90deg, transparent, var(--accent-gold));
}

.eastlake-panel .fade-line.right {
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.eastlake-panel .bracket {
    width: 25px;
    height: 50px;
    position: relative;
}

.eastlake-panel .bracket::before {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--accent-gold);
}

.eastlake-panel .bracket.left::before {
    right: 0;
}

.eastlake-panel .bracket.right::before {
    left: 0;
}

.eastlake-panel .bracket::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 1px;
    background: var(--accent-gold);
}

.eastlake-panel .bracket.left::after {
    right: 0;
    top: 50%;
}

.eastlake-panel .bracket.right::after {
    left: 0;
    top: 50%;
}

.eastlake-panel .bracket .corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--accent-gold);
}

.eastlake-panel .bracket.left .corner {
    right: -1px;
}

.eastlake-panel .bracket.right .corner {
    left: -1px;
}

.eastlake-panel .bracket .corner.top {
    top: 0;
    border-bottom: none;
}

.eastlake-panel .bracket .corner.bottom {
    bottom: 0;
    border-top: none;
}

.eastlake-panel .bracket.left .corner {
    border-left: none;
}

.eastlake-panel .bracket.right .corner {
    border-right: none;
}

.eastlake-panel .center-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
}

.eastlake-panel .rosette {
    width: 20px;
    height: 20px;
    position: relative;
}

.eastlake-panel .rosette::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
}

.eastlake-panel .rosette::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.eastlake-panel .center-motif {
    width: 90px;
    height: 45px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eastlake-panel .center-motif .frame {
    position: absolute;
    inset: 0;
    border: 1px solid var(--accent-gold);
}

.eastlake-panel .center-motif .frame::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(201, 162, 39, 0.5);
}

.eastlake-panel .center-motif .sunflower {
    position: relative;
    width: 28px;
    height: 28px;
}

.eastlake-panel .sunflower .petal {
    position: absolute;
    width: 8px;
    height: 2px;
    background: var(--accent-gold);
    top: 50%;
    left: 50%;
    transform-origin: left center;
}

.eastlake-panel .sunflower .petal:nth-child(1) { transform: translateY(-50%) rotate(0deg) translateX(6px); }
.eastlake-panel .sunflower .petal:nth-child(2) { transform: translateY(-50%) rotate(45deg) translateX(6px); }
.eastlake-panel .sunflower .petal:nth-child(3) { transform: translateY(-50%) rotate(90deg) translateX(6px); }
.eastlake-panel .sunflower .petal:nth-child(4) { transform: translateY(-50%) rotate(135deg) translateX(6px); }
.eastlake-panel .sunflower .petal:nth-child(5) { transform: translateY(-50%) rotate(180deg) translateX(6px); }
.eastlake-panel .sunflower .petal:nth-child(6) { transform: translateY(-50%) rotate(225deg) translateX(6px); }
.eastlake-panel .sunflower .petal:nth-child(7) { transform: translateY(-50%) rotate(270deg) translateX(6px); }
.eastlake-panel .sunflower .petal:nth-child(8) { transform: translateY(-50%) rotate(315deg) translateX(6px); }

.eastlake-panel .sunflower .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.eastlake-panel .bar {
    width: 2px;
    height: 30px;
    background: var(--accent-gold);
    position: relative;
}

.eastlake-panel .bar::before,
.eastlake-panel .bar::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    background: var(--dark-bg);
}

.eastlake-panel .bar::before {
    top: -3px;
}

.eastlake-panel .bar::after {
    bottom: -3px;
}

/* =============================================
   EASTLAKE GRAND GALLERY
   Three panel with spindles
   ============================================= */
.eastlake-grand-section {
    padding: 100px 5%;
    background: var(--dark-bg);
    text-align: center;
    padding-bottom: 0rem;
    padding-top: 6rem;
}

.eastlake-grand {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    height: 80px;
    margin: 0 auto;
}

.eastlake-grand .line-segment {
    flex: 1;
    height: 2px;
    background: var(--accent-gold);
}

.eastlake-grand .line-segment.left {
    background: linear-gradient(90deg, transparent, var(--accent-gold));
}

.eastlake-grand .line-segment.right {
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.eastlake-grand .end-rosette {
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    position: relative;
    margin-bottom: -6px;
}

.eastlake-grand .end-rosette::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.eastlake-grand .bar {
    width: 20px;
    height: 2px;
    background: var(--accent-gold);
}

.eastlake-grand .assembly {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin: 0 6px;
}

.eastlake-grand .spindle-group {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.eastlake-grand .spindle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eastlake-grand .spindle .top-ball {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.eastlake-grand .spindle .shaft-top {
    width: 2px;
    height: 12px;
    background: var(--accent-gold);
}

.eastlake-grand .spindle .bulb {
    width: 8px;
    height: 8px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
}

.eastlake-grand .spindle .shaft-bottom {
    width: 2px;
    height: 18px;
    background: var(--accent-gold);
    margin-top: -1px;
}

.eastlake-grand .spindle .foot {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.eastlake-grand .side-panel {
    width: 45px;
    height: 55px;
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.eastlake-grand .side-panel::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.eastlake-grand .side-panel .rosette {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    position: relative;
}

.eastlake-grand .side-panel .rosette::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.eastlake-grand .center-panel {
    width: 70px;
    height: 70px;
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.eastlake-grand .center-panel::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid var(--accent-gold);
}

.eastlake-grand .sunflower {
    width: 42px;
    height: 42px;
    position: relative;
}

.eastlake-grand .sunflower .petal {
    position: absolute;
    width: 10px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform-origin: left center;
}

.eastlake-grand .sunflower .petal:nth-child(1) { transform: translateY(-50%) rotate(0deg) translateX(8px); }
.eastlake-grand .sunflower .petal:nth-child(2) { transform: translateY(-50%) rotate(45deg) translateX(8px); }
.eastlake-grand .sunflower .petal:nth-child(3) { transform: translateY(-50%) rotate(90deg) translateX(8px); }
.eastlake-grand .sunflower .petal:nth-child(4) { transform: translateY(-50%) rotate(135deg) translateX(8px); }
.eastlake-grand .sunflower .petal:nth-child(5) { transform: translateY(-50%) rotate(180deg) translateX(8px); }
.eastlake-grand .sunflower .petal:nth-child(6) { transform: translateY(-50%) rotate(225deg) translateX(8px); }
.eastlake-grand .sunflower .petal:nth-child(7) { transform: translateY(-50%) rotate(270deg) translateX(8px); }
.eastlake-grand .sunflower .petal:nth-child(8) { transform: translateY(-50%) rotate(315deg) translateX(8px); }

.eastlake-grand .sunflower .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    background: var(--dark-bg);
}

.eastlake-grand .sunflower .center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    background: var(--accent-gold);
    border-radius: 50%;
}

/* ===========================
    FOOTER
=========================== */
.footer {
    background: var(--dark-gray);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 3rem 5% 1.5rem;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: 'Aboreto', serif;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    line-height: 1.8;
    display: block;
    transition: color var(--transition-speed);
    font-family: 'Lato', serif;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-section--links a:hover {
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--dark-bg);
    transform: translateY(-3px);
    padding: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-gray);
    font-size: 0.9rem;
    font-family: 'Lato', serif;
}

/* ===========================
    LOGIN MODAL & DROPDOWN
=========================== */

/* Modal Overlay (mobile/tablet) */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Card */
.login-modal {
    background: #1a1a1a;
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.login-modal-overlay.active .login-modal {
    transform: scale(1);
}

/* Close Button */
.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.login-modal-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

/* Modal Heading */
.login-modal h2 {
    color: var(--accent-gold);
    font-family: 'Aboreto', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 2px;
}

/* Form Styling */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-gray);
    font-family: 'Lato', serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.form-group input {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'Lato', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Address line 2 — tight pairing with line 1.
   Negative margin-top reduces the default flex gap (0.5rem) to ~0.35rem
   so lines 1 and 2 read as one visual unit. */
.address-line2-field {
    margin-top: calc(0.35rem - 0.5rem);
}

/* E.164 phone prefix — wraps a tel input with a static "+1" badge */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
}
.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    font-family: 'Lato', serif;
    white-space: nowrap;
    user-select: none;
}
.phone-input-wrapper input[type="tel"] {
    border-radius: 0 4px 4px 0;
    flex: 1;
    min-width: 0;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -5px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    color: var(--text-gray);
    font-family: 'Lato', serif;
    font-size: 0.95rem;
    cursor: pointer;
    margin: 0;
}

.login-submit-btn {
    background: var(--accent-gold);
    color: #000000;
    border: none;
    border-radius: 4px;
    padding: 14px 32px;
    font-family: 'Aboreto', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.4);
    margin-top: 10px;
}

.login-submit-btn:hover {
    background: #c99a1f;
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.6);
    transform: translateY(-2px);
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: var(--accent-gold);
    font-family: 'Lato', serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #c99a1f;
    text-decoration: underline;
}

/* Navbar Dropdown (desktop only) */
.login-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    padding: 30px;
    width: 320px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.login-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.login-dropdown h3,
.login-dropdown-heading {
    color: var(--accent-gold);
    font-family: 'Aboreto', serif;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    text-align: center;
    letter-spacing: 1.5px;
}

/* Position dropdown under navbar login button */
.navbar-menu > li:last-child {
    position: relative;
}

/* Hide dropdown on mobile/tablet */
@media (max-width: 1000px) {
    .login-dropdown {
        display: none;
    }
}

/* Hide modal on desktop */
@media (min-width: 1001px) {
    .login-modal-overlay {
        display: none;
    }
}

/* ===========================
    RESPONSIVE DESIGN
=========================== */

/* Large desktops: Gradually reduce sizes */
@media (max-width: 1375px) {
    .navbar-logo {
        font-size: 1.3rem;
        letter-spacing: 1.6px;
    }

    .navbar-menu a {
        font-size: 0.95rem;
    }

    .navbar-menu {
        gap: 1.8rem;
    }
}

/* Desktop only - logo shrinks on scroll */
@media (min-width: 951px) {
    .navbar.scrolled .navbar-logo {
        font-size: 1.3rem;
    }

    .navbar.scrolled .navbar-menu a {
        font-size: 0.95rem;
    }
}

@media (max-width: 1200px) {
    .navbar-logo {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }

    .navbar-menu {
        gap: 1.5rem;
    }

    .navbar-menu a {
        font-size: 0.92rem;
    }
}

/* Switch logo to 2 lines */
@media (max-width: 950px) {
    .navbar-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        line-height: 1.2;
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        white-space: normal;
    }

    .logo-line-1,
    .logo-line-2 {
        display: block;
    }

    .navbar,
    .navbar.scrolled {
        padding: 0.4rem 3%;
    }

    .navbar-menu a {
        font-size: 0.95rem;
    }
}

/* Full hamburger menu appears before any wrapping */
@media (max-width: 1000px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-speed);
        padding: 2rem;
    }

    .navbar-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hamburger menu styling */
    .navbar-menu li {
        width: 100%;
        text-align: center;
    }

    .navbar-menu .dropdown-toggle {
        color: #DAA520;
        font-size: 0.95rem;
        text-transform: uppercase;
        pointer-events: none;
        letter-spacing: 1.5px;
    }

    .navbar-menu .dropdown-toggle::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        margin-top: 0.5rem;
        padding: 0;
        min-width: auto;
    }

    .dropdown-menu li {
        border-bottom: none;
    }

    .dropdown-menu a {
        padding: 12px 24px 12px 44px;
        text-align: center;
    }

    .menu-divider-container {
        display: block;
        width: 100%;
    }

    .menu-divider {
        width: 80%;
        height: 1px;
        background: rgba(218, 165, 32, 0.3);
        margin: 1.5rem auto;
    }

    .navbar-menu .btn-login {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .navbar-menu .btn-login::before {
        content: '🔒';
        font-size: 0.9em;
    }

}

@media (max-width: 768px) {
    .navbar,
    .navbar.scrolled {
        padding: 0.4rem 3%;
    }

    .btn-hero {
        padding: 12px 28px;
        font-size: 0.95rem;
        width: auto;
        max-width: none;
    }

    /* Ensure Join Us button keeps gold glow on mobile */
    .btn-hero:first-child {
        background: #DAA520;
        color: #000000;
        border: 3px solid #DAA520;
        box-shadow: 0 0 30px rgba(218, 165, 32, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .btn-hero:first-child:hover {
        background: #DAA520;
        color: #000000;
        box-shadow: 0 0 45px rgba(218, 165, 32, 0.8), 0 8px 24px rgba(0, 0, 0, 0.5);
        transform: translateY(-3px);
    }
}

/* Mobile - logo stays 2 lines max, never 3 */
@media (max-width: 480px) {
    .navbar-logo {
        font-size: 0.95rem;
        letter-spacing: 1px;
        gap: 0.1rem;
    }

    .navbar,
    .navbar.scrolled {
        padding: 0.4rem 3%;
    }

    .btn-hero {
        padding: 15px 32px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    /* Ensure Join Us button keeps gold glow on mobile */
    .btn-hero:first-child {
        background: #DAA520;
        color: #000000;
        border: 3px solid #DAA520;
        box-shadow: 0 0 30px rgba(218, 165, 32, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
    }
}

/* ===========================
   GOVERNANCE DOCUMENT CONTENT
   Styles for injected governance document HTML fragments.
   Both about.html and dashboard.html inject these fragments.
   Wrapper class .governance-document scopes all rules here,
   which also overrides the about.css .section-title (4.5rem Aboreto)
   via higher CSS specificity on .governance-document .section-title.
=========================== */
.governance-document {
    font-family: 'Lato', sans-serif;
    color: var(--text-gray, #a0aec0);
    line-height: 1.8;
    font-size: 1.125rem;
    max-width: 800px;
}

.governance-document .article-title {
    font-family: 'Aboreto', serif;
    font-size: 1.1em;
    color: var(--accent-gold, #d4af37);
    letter-spacing: 0.5px;
    margin: 2.25rem 0 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.governance-document .article-title:first-child {
    margin-top: 0.25rem;
}

/* Override about.css .section-title (4.5rem Aboreto) via higher specificity */
.governance-document .section-title {
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    color: rgba(212, 175, 55, 0.85);
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}

.governance-document .subsection-title {
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    color: var(--text-gray, #a0aec0);
    font-weight: 600;
    margin: 1.1rem 0 0.4rem;
}

.governance-document p {
    margin-bottom: 0.9rem;
    font-size: 1em;
}

.governance-document ol,
.governance-document ul {
    margin: 0.5rem 0 0.9rem 1.5rem;
}

.governance-document li {
    margin-bottom: 0.45rem;
    font-size: 1em;
}

.governance-document .definition-list {
    margin: 0.75rem 0 0.9rem;
}

.governance-document .definition-list dt {
    font-weight: 700;
    color: rgba(212, 175, 55, 0.85);
    margin-top: 0.85rem;
    font-size: 1em;
}

.governance-document .definition-list dd {
    margin-left: 1.25rem;
    margin-bottom: 0.35rem;
    font-size: 1em;
}

.governance-document strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

/* ============================================================
   GOVERNANCE DOCUMENT VIEWER — Shared Chrome
   Used by dashboard.html (dashboard.css) and admin.html (admin.css).
   Page-specific styles (back button color, toolbar background, title
   font) remain in their respective CSS files.
   ============================================================ */

/* Toolbar — shared boxed container (dashboard style is the standard) */
.dash-gov-doc-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 7px 12px;
    background: #161616;
    border: 1px solid #252525;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Toolbar groups, labels, indicators */
.dash-gov-toolbar-group {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dash-gov-toolbar-label {
    font-size: 0.95rem;
    color: #6a6a6a;
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
}

.dash-gov-font-indicator {
    font-size: 0.95rem;
    color: #777;
    min-width: 38px;
    text-align: center;
    font-family: 'Lato', sans-serif;
}

/* Shared toolbar button base style */
.dash-gov-toolbar-btn {
    background: #1e1e1e;
    border: 1px solid #2e2e2e;
    color: #a0aec0;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    line-height: 1.5;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

/* Shared toolbar button hover */
.dash-gov-toolbar-btn:hover {
    background: #262626;
    border-color: #3a3a3a;
    color: #e5e7eb;
}

/* Square font-size +/− buttons — equal width and height, easy click targets */
.dash-gov-font-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    flex-shrink: 0;
}

.dash-gov-toolbar-divider {
    width: 1px;
    height: 18px;
    background: #252525;
    flex-shrink: 0;
}

/* Download PDF link in toolbar — margin-left:auto pushes it to the right end */
.dash-gov-toolbar-download {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4a7c50;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    padding: 4px 10px;
    border: 1px solid #2c5530;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.dash-gov-toolbar-download:hover {
    background: rgba(74, 124, 80, 0.1);
}

/* Document metadata */
.dash-gov-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dash-gov-doc-meta-item {
    font-size: 0.9rem;
    color: #666;
}

/* Loading / error states in detail view */
.dash-gov-doc-loading,
.dash-gov-doc-error {
    color: #555;
    font-style: italic;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    padding: 12px 0;
}

/* ── Spacing toggle switch ── */

.gov-doc-spacing-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    /* Inherits border-radius and base appearance from .dash-gov-toolbar-btn */
}

.gov-doc-switch-label {
    font-size: 0.95rem;
    color: #555;
    font-family: 'Lato', sans-serif;
    transition: color 0.15s;
}

.gov-doc-switch-track {
    position: relative;
    width: 28px;
    height: 15px;
    background: #2e2e2e;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.gov-doc-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 9px;
    height: 9px;
    background: #5a5a5a;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.gov-doc-switch-thumb--on {
    transform: translateX(13px);
    background: #d4af37;
}

.gov-doc-spacing-switch[aria-pressed="true"] .gov-doc-switch-track {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
}

/* "Comfortable" label lights up when on, "Normal" label lights up when off */
.gov-doc-spacing-switch[aria-pressed="true"] .gov-doc-switch-label:last-child {
    color: #d4af37;
}

.gov-doc-spacing-switch[aria-pressed="false"] .gov-doc-switch-label:first-child,
.gov-doc-spacing-switch:not([aria-pressed]) .gov-doc-switch-label:first-child {
    color: #a0aec0;
}

/* ── Floating accessibility controls cluster ── */

.dash-gov-float-ctrl {
    position: fixed;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px;
    z-index: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.dash-gov-float-ctrl.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.dash-gov-float-btn {
    background: #252525;
    border: 1px solid #333;
    color: #a0aec0;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.dash-gov-float-btn:hover {
    background: #2e2e2e;
    border-color: #444;
    color: #e5e7eb;
}

.dash-gov-float-spacing-btn--on {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    color: #d4af37;
}

.dash-gov-float-spacing-btn--on:hover {
    background: rgba(212, 175, 55, 0.16);
    border-color: rgba(212, 175, 55, 0.55);
    color: #e8c84a;
}

.dash-gov-float-divider {
    border: none;
    border-top: 1px solid #2e2e2e;
    margin: 2px 0;
}

/* Hide floating controls on narrow screens — no space beside the document column */
@media (max-width: 768px) {
    .dash-gov-float-ctrl {
        display: none !important;
    }
}

/* ── Floating cluster icon internals ── */

/* Font +/− icon wrappers — grow/shrink pulse on hover */
.gv-float-plus-icon,
.gv-float-minus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

@keyframes gvPlusGrow {
    0%, 100% { transform: scale(1); }
    40%       { transform: scale(1.35); }
    70%       { transform: scale(1.1); }
}
@keyframes gvMinusShrink {
    0%, 100% { transform: scale(1); }
    40%       { transform: scale(0.62); }
    70%       { transform: scale(0.82); }
}

.dash-gov-float-btn[data-gv-float="font-increase"]:hover .gv-float-plus-icon {
    animation: gvPlusGrow 0.9s ease infinite;
}
.dash-gov-float-btn[data-gv-float="font-decrease"]:hover .gv-float-minus-icon {
    animation: gvMinusShrink 0.9s ease infinite;
}

/* Spacing button — CSS-drawn lines icon */
.gv-space-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-around;
    height: 16px;
    width: 14px;
    pointer-events: none;
    transform-origin: center;
}
.gv-space-line {
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    display: block;
    flex-shrink: 0;
}
/* Active state — taller container spreads lines further apart */
.dash-gov-float-spacing-btn--on .gv-space-icon {
    height: 22px;
}

/* Hover animation uses scaleY (GPU-accelerated, no layout recalc = smooth) */
@keyframes gvSpaceExpand {
    0%       { transform: scaleY(1); }
    30%      { transform: scaleY(1.35); }
    50%      { transform: scaleY(1.4); }
    70%      { transform: scaleY(1.35); }
    100%     { transform: scaleY(1); }
}
@keyframes gvSpaceCompress {
    0%       { transform: scaleY(1); }
    30%      { transform: scaleY(0.78); }
    50%      { transform: scaleY(0.72); }
    70%      { transform: scaleY(0.78); }
    100%     { transform: scaleY(1); }
}

.dash-gov-float-btn[data-gv-float="toggle-spacing"]:not(.dash-gov-float-spacing-btn--on):hover .gv-space-icon {
    animation: gvSpaceExpand 1.0s ease-in-out infinite;
}
.dash-gov-float-spacing-btn--on:hover .gv-space-icon {
    animation: gvSpaceCompress 1.0s ease-in-out infinite;
}

/* Scroll-to-top button — arrow + "TOP" label stacked */
.gv-float-scroll-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    pointer-events: none;
    line-height: 1;
}
.gv-float-arrow-up {
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1;
}
.gv-float-top-label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: currentColor;
    line-height: 1;
    font-family: 'Lato', sans-serif;
}

@keyframes gvArrowBounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(-3px); }
    70%       { transform: translateY(-1px); }
}
.dash-gov-float-btn[data-gv-float="scroll-top"]:hover .gv-float-arrow-up {
    animation: gvArrowBounce 0.9s ease infinite;
}

/* ── Sticky back button — shared across admin and dashboard ── */

.gov-sticky-back {
    position: fixed;
    top: 90px;
    z-index: 100;
    background: #252525;
    border: 1px solid #333;
    color: #a0aec0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: 'Lato', sans-serif;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    padding: 0;
}
.gov-sticky-back:hover {
    background: #2e2e2e;
    border-color: #444;
    color: #e5e7eb;
}
.gov-sticky-back-icon {
    font-size: 0.95rem;
    line-height: 1;
    pointer-events: none;
}
.gov-sticky-back-label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
}

/* Hide on mobile where there is no sidebar margin space */
@media (max-width: 768px) {
    .gov-sticky-back {
        display: none !important;
    }
}

/* ===========================
   FOOTER CONTACT REVEAL
   Click-to-reveal pattern for email/phone in footer Contact Information section.
   The button replaces the visible email/phone lines. On click, the button fades out
   and the actual contact details appear.
=========================== */
.footer-contact-reveal {
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--text-gray);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    padding: 5px 12px;
    cursor: pointer;
    letter-spacing: 0.3px;
    border-radius: 3px;
    transition: color 0.2s, border-color 0.2s;
    margin-top: 2px;
    display: inline-block;
}
.footer-contact-reveal:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}
.footer-contact-reveal.fading {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.footer-contact-hidden {
    display: none;
    opacity: 0;
}
.footer-contact-visible {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.footer-contact-link {
    color: var(--text-gray);
    text-decoration: none;
}
.footer-contact-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* ===========================
   BENEFIT COMING SOON
   Italic qualifier appended to unbuilt membership benefits on signup pages.
=========================== */
.benefit-coming-soon {
    font-style: italic;
    opacity: 0.65;
    font-size: 0.95rem;
}

/* ===========================
   PASSWORD VISIBILITY TOGGLE
   Eye-icon button positioned inside the right edge of password inputs.
   Used on all login forms and account creation fields.
=========================== */
.pw-toggle-wrapper {
    position: relative;
    display: block;
}

.pw-toggle-wrapper input {
    width: 100%;
}

.pw-toggle-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 12px;
    height: 44px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: color 0.2s;
    /* Ensure touch target meets 44×44px minimum */
}
.pw-toggle-btn:hover {
    color: rgba(255, 255, 255, 0.75);
}
.pw-toggle-btn:focus {
    outline: none;
}
.pw-toggle-btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: -2px;
}

/* Suppress the browser's native password-reveal eye icon (Edge ::-ms-reveal).
   We provide our own via .pw-toggle-btn, so the native one would duplicate it. */
input[type="password"]::-ms-reveal {
    display: none;
}

/* ===========================
   PASSWORD STRENGTH BLOCK
   Injected below create-password inputs by initPasswordStrength() in form-utils.js.
   Shown only while the user is actively typing (hidden when empty or valid+blurred).
   Contains: bar+label row and a collapsible criteria checklist.
=========================== */
.pw-strength-block {
    margin-top: 6px;
}
.pw-strength-meter {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pw-strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}
.pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}
.pw-strength-label {
    font-size: 0.95rem;
    min-width: 3.5rem;
    text-align: right;
    transition: color 0.3s ease;
}
/* Criteria checklist — 2-column grid, compact */
.pw-criteria {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 12px;
}
.pw-criterion {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.pw-criterion.met {
    color: #68d391;
}
.pw-criterion-icon {
    min-width: 14px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s;
}
.pw-criterion.met .pw-criterion-icon {
    color: #68d391;
}
.pw-criteria-note {
    margin: 4px 0 0;
    font-size: 0.95rem;
    color: rgba(212, 175, 55, 0.8);
    font-style: italic;
}

/* ===========================
   REQUIRED FIELD ASTERISK
   Appended to <label> elements for required fields via markRequiredFields()
   in form-utils.js, and used inline in dynamically-rendered field templates.
=========================== */
.required-star {
    color: #c53030;
    margin-left: 2px;
    font-weight: 600;
    aria-hidden: true;
}

/* ===========================
   PER-FIELD FORM VALIDATION
=========================== */
.form-field-error {
    font-size: 0.95rem;
    color: #f87171;
    margin-top: 6px;
    min-height: 0;
}

.field-invalid {
    border-color: #fc8181 !important;
}

/* ===========================
   DONATION SUBMIT BUTTON
   Used by donate.html and dashboard Support view.
=========================== */
.btn-donate-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2c5530, #4a7c50);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s;
    font-family: 'Lato', sans-serif;
}
.btn-donate-primary:hover {
    opacity: 0.9;
}

/* ===========================
   SD DONATION COMPONENT
   Amount chips, custom input, method toggle, confirm panel.
   Used by donate.html (public) and dashboard Support view.
   Resolves tech debt 3.60.
=========================== */

/* ── Amount Section Wrapper ─────────────────────────────────────────────── */
.sd-amount-section {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 16px;
}

/* ── Preset Chip Grid ────────────────────────────────────────────────────── */
.sd-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    .sd-preset-grid { grid-template-columns: repeat(2, 1fr); }
}
.sd-chip {
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sd-chip:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.06);
}
.sd-chip--active {
    border-color: var(--accent-gold, #d4af37);
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-gold, #d4af37);
}

/* ── Custom Amount Input ─────────────────────────────────────────────────── */
.sd-custom-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0 12px;
    max-width: 66%;
    margin-left: auto;
    margin-right: auto;
    transition: border-color 0.15s;
}
.sd-custom-wrap:focus-within {
    border-color: rgba(212, 175, 55, 0.5);
}
.sd-dollar {
    color: #999;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    margin-right: 4px;
    user-select: none;
}
.sd-custom-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e5e7eb;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    padding: 10px 0;
}
.sd-custom-amount-input::placeholder { color: #555; }
/* Remove browser-native number spinners */
.sd-custom-amount-input::-webkit-inner-spin-button,
.sd-custom-amount-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.sd-custom-amount-input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ── Shared Inline Error ─────────────────────────────────────────────────── */
.sd-field-error {
    font-size: 0.95rem;
    color: #fc8181;
    margin-top: 5px;
}

/* ── Check/Cash Confirmation Panel ──────────────────────────────────────── */
.sd-confirm-header {
    font-family: 'Aboreto', serif;
    color: #e5e7eb;
    font-size: 1.05rem;
    margin: 0 0 16px;
    font-weight: normal;
}
.sd-confirm-instructions {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 20px;
}
.sd-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sd-back-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    padding: 4px 0;
    text-align: left;
    transition: color 0.15s;
}
.sd-back-btn:hover { color: #e5e7eb; }

/* ── Payment Method Label ────────────────────────────────────────────────── */
.sd-pay-method-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-gray, #999);
    margin-bottom: 8px;
    font-family: 'Lato', sans-serif;
}

/* ── Payment Method Toggle Buttons ──────────────────────────────────────── */
.sd-pay-select-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.btn-sd-pay-mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 85px;
    height: 85px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white, #e5e7eb);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.15s, background 0.15s;
}
.btn-sd-pay-mode:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.06);
}
.btn-sd-pay-mode--active {
    border-color: var(--accent-gold, #d4af37);
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-gold, #d4af37);
}

/* =========================================
   Physical payment instructions (mv-check-*)
   Shared: dashboard.js + donate.html
   ========================================= */
.mv-check-instructions {
    font-family: 'Lato', sans-serif;
    margin: 4px 0;
}
.mv-check-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e5e7eb;
    margin: 0 0 14px;
}
.mv-check-line {
    font-size: 0.95rem;
    color: #888;
    margin: 0 0 4px;
}
.mv-check-org {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 14px;
}
.mv-check-address {
    font-size: 1.05rem;
    color: #e5e7eb;
    line-height: 1.7;
    margin: 0 0 14px;
}
.mv-check-memo {
    font-size: 0.95rem;
    color: #888;
    font-style: italic;
    margin: 0;
}
.mv-check-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 4px 0 8px;
}
.mv-check-col {
    padding: 16px;
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}
.mv-check-col-title {
    font-size: 1.0rem;
    font-weight: 700;
    color: #c9a94a;
    margin: 0 0 12px;
}
.mv-check-list {
    font-size: 0.95rem;
    color: #e5e7eb;
    margin: 0 0 8px;
    padding-left: 18px;
}
.mv-check-list li {
    margin-bottom: 4px;
}
.mv-check-email {
    color: #4a7c50;
    font-size: 0.95rem;
    text-decoration: none;
}
.mv-check-email:hover {
    text-decoration: underline;
}
.mv-check-memo-instr {
    font-size: 0.95rem;
    color: #888;
    margin: 10px 0 3px;
}
.mv-check-memo-hint {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    margin: 3px 0 14px;
}
.mv-check-drop-or {
    font-size: 0.95rem;
    color: #888;
    margin: 14px 0 6px;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}
.mv-check-contact-reveal {
    margin-top: 10px;
    list-style: none;
}
.mv-check-contact-reveal > summary {
    color: #4a7c50;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.mv-check-contact-reveal > summary::marker,
.mv-check-contact-reveal > summary::-webkit-details-marker {
    display: none;
}
.mv-check-contact-reveal > summary::before {
    content: '▶';
    font-size: 0.7rem;
    transition: transform 0.15s;
    display: inline-block;
}
.mv-check-contact-reveal[open] > summary::before {
    transform: rotate(90deg);
}
.mv-check-contact-info {
    padding: 10px 0 4px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
@media (max-width: 600px) {
    .mv-check-columns {
        grid-template-columns: 1fr;
    }
}
