/* Public-only components. Palette: public-theme.css. */
/**
 * SCGC Unified Stylesheet
 * Mobile-first, Modern Design System
 * Consolidated and optimized
 */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* 
     * Brand Accent — copper/warm orange  
     * (historically "crimson"; renamed for clarity)
     */
    --scgc-copper:       var(--theme-primary);
    --scgc-copper-dark:  var(--theme-primary-hover);
    --scgc-copper-light: var(--theme-primary-light);

    /* Backwards-compat aliases (safe to use in page-level CSS) */
    --scgc-accent:       var(--scgc-copper);
    --scgc-accent-dark:  var(--scgc-copper-dark);
    --scgc-accent-light: var(--scgc-copper-light);

    /* Extended Brand Palette */
    --navy-deep: var(--theme-midnight);
    --navy-rich: var(--theme-primary);
    --navy-bright: var(--theme-primary-light);
    
    --slate-dark: var(--theme-primary);
    --slate-medium: var(--theme-muted);
    --slate-light: var(--theme-border);
    
    /* Accent expansion */
    --amber-dark: var(--theme-warning);
    --teal-dark: var(--theme-primary);
    --purple-accent: var(--theme-primary);
    
    /* Semantic colors for events */
    --event-active: var(--theme-success);
    --event-upcoming: var(--theme-primary);
    --event-past: var(--theme-muted);    
    
    /* Accent Colors */
    --gold: var(--theme-accent-ink);
    --gold-light: var(--theme-accent);
    --gold-glow: rgba(var(--theme-accent-ink-rgb), 0.4);
    --amber: var(--theme-accent-ink);
    --teal: var(--theme-primary);
    --teal-light: var(--theme-primary);
    
    /* Light Theme Surfaces */
    --surface-base: var(--theme-canvas);
    --surface-elevated: var(--theme-surface);
    --surface-subtle: var(--theme-canvas);
    --surface-muted: var(--theme-soft);
    
    /* Text Colors */
    --text-primary: var(--theme-midnight);
    --text-secondary: var(--theme-muted);
    --text-muted: var(--theme-muted);
    --text-bright: var(--theme-midnight);
    
    /* Borders & Shadows */
    --border-subtle: rgba(var(--theme-midnight-rgb), 0.14);
    --border-accent: rgba(var(--theme-primary-rgb), 0.22);
    --shadow-soft: 0 10px 30px rgba(var(--theme-midnight-rgb), 0.10);
    --shadow-medium: 0 18px 60px rgba(var(--theme-midnight-rgb), 0.14);
    --shadow-glow-gold: 0 0 40px rgba(var(--theme-accent-ink-rgb), 0.3);
    --shadow-glow-accent: 0 0 40px rgba(var(--theme-primary-rgb), 0.35);
    
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 100px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 100px;
    
    /* Extra Accents */
    --scgc-orange: var(--theme-primary);
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition-base: 0.3s var(--ease-out);
    
    /* Serif (for editorial/mission content) */
    --font-serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, Garamond, serif;
}

/* Prevent long event names from widening the mobile quick-link grid. */
.quick-card, .quick-content { min-width: 0; }
.quick-title { white-space: normal; overflow-wrap: anywhere; }

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    overflow-x: clip;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--surface-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide { max-width: 1600px; }
.container-narrow { max-width: 900px; }

@media (min-width: 768px) {
    .container { padding: 0 var(--space-xl); }
}

/* ===== TICKER ===== */
.ticker {
    background: linear-gradient(90deg, var(--scgc-copper), var(--scgc-copper-dark));
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.ticker::before, .ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--scgc-copper), transparent);
}

.ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--scgc-copper), transparent);
}

.ticker-track {
    display: flex;
    animation: ticker-scroll 50s linear infinite;
    width: max-content;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(var(--theme-ink-rgb), 0.94);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: rgba(var(--theme-surface-rgb), 0.12);
    border: 1px solid rgba(var(--theme-surface-rgb), 0.18);
    margin: 0 8px;
    white-space: nowrap;
}

.ticker-item i { color: var(--gold-light); font-size: 0.8rem; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 3000;
    background: rgba(var(--theme-surface-rgb), 0.86);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.logo { flex-shrink: 0; }
.logo-img { height: 48px; width: auto; transition: var(--transition-base); }

@media (min-width: 768px) {
    .logo-img { height: 56px; }
}

/* Desktop Nav */
.main-nav {
    display: none;
    align-items: center;
    gap: var(--space-xs);
}

@media (min-width: 992px) {
    .main-nav { display: flex; }
}

.nav-link {
    position: relative;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
    opacity: 0;
    transition: var(--transition-fast);
    border-radius: inherit;
    z-index: -1;
}

.nav-link:hover, .nav-link.active { color: var(--text-bright); }
.nav-link:hover::before { opacity: 0.12; }
.nav-link.active::before { opacity: 0.2; }
.nav-link.active { color: var(--gold); }

/* Desktop Nav Dropdown */
.nav-dropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Trigger */
.nav-dropdown-trigger{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Menu */
.nav-dropdown-menu{
  position: absolute;
  top: calc(100% + 6px);  /* smaller gap */
  left: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: var(--radius-xl);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-medium);
  display: none;
  z-index: 999;
}

/* 🔥 Bridge the gap so hover doesn't drop */
.nav-dropdown-menu::before{
  content:"";
  position:absolute;
  left: 0;
  top: -10px;
  width: 100%;
  height: 10px;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
  display: block;
}

.nav-dropdown-item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  text-decoration:none;
  font-weight: 900;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-dropdown-item:hover{
  background: var(--surface-subtle);
}
/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.btn-header span { display: none; }

@media (min-width: 576px) {
    .btn-header span { display: inline; }
}

.btn-donate {
    background: linear-gradient(135deg, var(--scgc-copper) 0%, var(--scgc-copper-dark) 100%);
    color: var(--theme-ink);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-accent);
}

.btn-login {
    background: var(--surface-muted);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-login:hover {
    background: var(--surface-elevated);
    color: var(--text-bright);
    border-color: var(--gold);
}

/* Mobile Toggle */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-fast);
}

@media (min-width: 992px) {
    .nav-toggle { display: none; }
}

.nav-toggle:hover {
    background: var(--surface-elevated);
    border-color: var(--gold);
}

.hamburger {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--theme-surface);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    padding-top: 86px;
    overflow-y: auto;
}

.mobile-nav.active { opacity: 1; visibility: visible; }

.mobile-nav-panel {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--theme-surface);
    overflow-y: auto;
    padding: calc(16px + env(safe-area-inset-top, 0px)) var(--space-md) var(--space-xl);
}

.mobile-nav-close {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(var(--theme-surface-rgb), 0.96);
    border: 1px solid rgba(var(--theme-midnight-rgb), 0.18);
    color: var(--text-primary);
    box-shadow: 0 10px 28px rgba(var(--theme-midnight-rgb), 0.16);
    z-index: 5100;
    transition: var(--transition-fast);
}

.mobile-nav-close:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.mobile-nav-close i { font-size: 1.25rem; }

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding: 64px var(--space-lg) var(--space-lg);
    max-width: 400px;
    margin: 0 auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--theme-midnight-rgb), 0.10);
    background: rgba(var(--theme-surface-rgb), 0.60);
    transition: var(--transition-fast);
}

.mobile-nav-link i {
    font-size: 1.25rem;
    width: 28px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: rgba(var(--theme-surface-rgb), 0.88);
    border-color: rgba(var(--theme-primary-rgb), 0.25);
    color: var(--text-bright);
}

.mobile-nav-link:hover i, .mobile-nav-link.active i { color: var(--gold); }

.mobile-nav-link.highlight {
    background: linear-gradient(135deg, rgba(var(--theme-accent-ink-rgb), 0.15) 0%, rgba(var(--theme-accent-ink-rgb), 0.1) 100%);
    color: var(--gold);
    border: 1px solid var(--border-accent);
}

.mobile-nav-link.highlight i { color: var(--gold); }

.mobile-nav-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-md) var(--space-lg);
}

/* ===== PAGE HEADER (Interior Pages) ===== */
.page-header {
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-xl) 0;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--scgc-copper);
    margin-bottom: var(--space-sm);
}

.page-kicker::before {
    content: '';
    width: 26px;
    height: 2px;
    background: linear-gradient(to right, var(--scgc-copper), var(--gold));
    border-radius: 999px;
}

.page-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

.page-subheading {
    margin-top: var(--space-sm);
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: var(--space-md);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: var(--text-muted);
    margin-right: var(--space-sm);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover { color: var(--scgc-copper); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    background: var(--theme-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.welcome-inner {
    display: grid;
    gap: 12px;
    padding: 18px 0;
}

@media (min-width: 768px) {
    .welcome-inner {
        grid-template-columns: 1.3fr 1fr;
        align-items: center;
        gap: 18px;
        padding: 22px 0;
    }
}

.welcome-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--scgc-copper);
}

.welcome-kicker::before {
    content: '';
    width: 26px;
    height: 2px;
    background: linear-gradient(to right, var(--scgc-copper), var(--gold));
    border-radius: 999px;
}

.welcome-title {
    margin-top: 8px;
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: clamp(1.1rem, 3.5vw, 1.65rem);
    color: var(--text-primary);
}

.welcome-subtitle {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.welcome-mission {
    margin: 0;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--theme-midnight-rgb), 0.12);
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.06), rgba(var(--theme-accent-ink-rgb), 0.06));
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.45;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 56px 0 70px;
    min-height: 560px;
    overflow: hidden;
    --hero-bg: none;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-backdrop::before {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: var(--hero-bg-pos, center 35%);
    filter: saturate(.9) contrast(.95) brightness(1.05) blur(1px); 
    opacity: .65;
}

.hero-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 650px at 20% 30%, rgba(var(--theme-primary-rgb), 0.22), transparent 60%),
        radial-gradient(900px 500px at 80% 20%, rgba(var(--theme-accent-rgb), 0.16), transparent 55%),
        linear-gradient(180deg, rgba(var(--theme-canvas-rgb), 0.75) 0%, rgba(var(--theme-canvas-rgb), 0.92) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 var(--space-md);
    max-width: 900px;
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--scgc-copper);
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
    border-radius: var(--radius-full);
}

.hero-tag i { color: var(--gold); }

.hero-pill {
    background: rgba(var(--theme-surface-rgb), 0.90);
    color: rgba(var(--theme-ink-rgb), 0.92);
    border: 1px solid rgba(var(--theme-surface-rgb), 0.55);
    box-shadow: 0 10px 28px rgba(var(--theme-black-rgb), 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 900;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

.hero-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(var(--theme-primary-rgb), 0.95);
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.18);
    display: inline-block;
    margin-right: 0.45rem;
    vertical-align: middle;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 3.25rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-meta-item i { color: var(--gold); }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto var(--space-lg);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--scgc-copper) 0%, var(--scgc-copper-dark) 100%);
    color: var(--theme-ink);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(var(--theme-primary-rgb), 0.35);
}

.btn-secondary {
    background: rgba(var(--theme-surface-rgb), 0.85);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(6px);
}

.btn-secondary:hover {
    background: var(--theme-surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-secondary.btn-results-accent {
    background: rgba(var(--theme-primary-rgb), 0.92);
    border: 1px solid rgba(var(--theme-surface-rgb), 0.22);
    color: var(--theme-ink);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-tertiary:hover {
    color: var(--text-primary);
    border-color: var(--gold);
    background: rgba(var(--theme-surface-rgb), 0.6);
}

/* ===== HERO MULTI-EVENT LAYOUT ===== */
.hero-multi-split {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 980px) {
    .hero-multi-split {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: 34px;
        align-items: center;
    }
}

.hero-multi-copy .hero-title {
    text-align: left;
}

.hero-multi-copy .hero-subtitle {
    text-align: left;
    margin-left: 0;
}

.hero-multi-copy .hero-actions {
    justify-content: flex-start;
}

/* Hero Weekend Cards - Logical 2-column grid on mobile, stacked on desktop sidebar */
.hero-weekend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 980px) {
    .hero-weekend-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .hero-weekend-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.hero-weekend-card {
    --a1: rgba(var(--theme-primary-rgb), 0.22);
    --a2: rgba(var(--theme-accent-rgb), 0.20);
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(var(--theme-midnight-rgb), 0.10);
    box-shadow: 0 18px 45px rgba(var(--theme-black-rgb), 0.14);
    background:
        radial-gradient(900px 520px at 12% 0%, var(--a1), transparent 58%),
        radial-gradient(900px 520px at 92% 10%, var(--a2), transparent 62%),
        linear-gradient(180deg, rgba(var(--theme-surface-rgb), 0.88), rgba(var(--theme-surface-rgb), 0.96));
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition-base);
    min-height: 160px;
}

.hero-weekend-card:nth-child(2) {
    --a1: rgba(var(--theme-primary-rgb), 0.18);
    --a2: rgba(var(--theme-primary-rgb), 0.18);
}

.hero-weekend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(var(--theme-black-rgb), 0.18);
}

.hero-weekend-card__top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
}

.hero-weekend-card__date {
    font-weight: 700;
    color: var(--scgc-copper);
}

.hero-weekend-card__loc {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-weekend-card__title {
    font-family: var(--font-display);
    font-weight: 950;
    font-size: 1.1rem;
    color: rgba(var(--theme-ink-rgb), 0.92);
    line-height: 1.25;
    flex-grow: 1;
}

.hero-weekend-card__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: rgba(var(--theme-ink-rgb), 0.92);
    margin-top: auto;
}

.hero-weekend-card__cta i { opacity: 0.8; }

/* ===== QUICK STRIP ===== */
.quick-strip {
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.quick-strip-inner {
    display: grid;
    gap: 1px;
    background: var(--border-subtle);
}

@media (min-width: 768px) {
    .quick-strip-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

.quick-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--surface-elevated);
    text-decoration: none;
    transition: var(--transition-base);
}

.quick-card:hover {
    background: var(--surface-subtle);
}

.quick-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.quick-results .quick-icon {
    background: linear-gradient(135deg, rgba(var(--theme-accent-ink-rgb), 0.15), rgba(var(--theme-accent-ink-rgb), 0.1));
    color: var(--gold);
}

.quick-schedule .quick-icon {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.1), rgba(var(--theme-primary-rgb), 0.08));
    color: var(--scgc-copper);
}

.quick-scholarship .quick-icon {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.12), rgba(var(--theme-primary-rgb), 0.08));
    color: var(--teal);
}

.quick-content {
    flex: 1;
    min-width: 0;
}

.quick-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.quick-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quick-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.quick-card:hover .quick-arrow {
    color: var(--scgc-copper);
    transform: translateX(3px);
}

/* ===== SECTION STYLES ===== */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.section-eyebrow {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--scgc-copper);
    margin-bottom: 6px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--scgc-copper);
    transition: var(--transition-fast);
}

.section-action:hover {
    gap: 10px;
    color: var(--scgc-copper-dark);
}

/* ===== SECTION THEMES ===== */
.section-schedule{
  position: relative;
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(var(--theme-primary-rgb), .10), transparent 60%),
    radial-gradient(900px 520px at 85% 10%, rgba(var(--theme-accent-ink-rgb), .10), transparent 55%),
    linear-gradient(180deg, var(--surface-base) 0%, var(--surface-subtle) 100%);
}

.section-schedule::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(90deg, transparent, rgba(var(--theme-primary-rgb), .18), transparent);
  opacity:.35;
}

/* ===== EVENTS GRID ===== */
.events-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .events-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Event Card */
.event-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: var(--transition-base);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: transparent;
}

.event-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--surface-muted), var(--surface-subtle));
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--theme-ink);
    background: var(--scgc-copper);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.3);
}

.event-card-date {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    background: rgba(var(--theme-surface-rgb), 0.95);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(var(--theme-black-rgb), 0.15);
    backdrop-filter: blur(6px);
}

.date-month {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--scgc-copper);
}

.date-day {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-primary);
}

.event-card-unit {
    position: absolute;
    bottom: 12px;
    left: 12px;
    max-width: calc(100% - 100px);
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(var(--theme-surface-rgb), 0.92);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.event-card-location i {
    color: var(--gold);
    font-size: 0.9rem;
}

.event-card-day {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== VIDEO SECTION ===== */
.section-video {
    background: linear-gradient(180deg, var(--surface-base) 0%, var(--surface-subtle) 100%);
}

.video-spotlight {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .video-spotlight {
        grid-template-columns: 1fr 1fr;
    }
}

.video-media {
    position: relative;
}

.video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.video-thumb:hover img {
    transform: scale(1.03);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-surface-rgb), 0.95);
    border-radius: 50%;
    box-shadow: 0 12px 35px rgba(var(--theme-black-rgb), 0.25);
    font-size: 1.75rem;
    color: var(--scgc-copper);
    transition: var(--transition-base);
}

.video-thumb:hover .video-play {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 16px 45px rgba(var(--theme-black-rgb), 0.3);
}

.video-info {
    text-align: center;
}

@media (min-width: 768px) {
    .video-info { text-align: left; }
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(var(--theme-accent-ink-rgb), 0.12);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.video-show {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.video-group {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.video-year {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--scgc-copper);
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.btn-watch:hover {
    background: var(--scgc-copper);
    color: var(--theme-ink);
    transform: translateY(-2px);
}

/* ===== GALLERY SECTION ===== */


.gallery-reel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-reel::-webkit-scrollbar { height: 6px; }
.gallery-reel::-webkit-scrollbar-track { background: var(--surface-muted); border-radius: 3px; }
.gallery-reel::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 3px; }

.gallery-item {
    flex: 0 0 300px;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
}
.section-gallery{
  position: relative;
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(var(--theme-primary-rgb), .10), transparent 60%),
    radial-gradient(900px 520px at 85% 15%, rgba(var(--theme-accent-ink-rgb), .10), transparent 55%),
    linear-gradient(180deg, var(--surface-base) 0%, var(--surface-subtle) 100%);
  border-top: 1px solid rgba(var(--theme-midnight-rgb), .08);
}

@media (max-width: 520px) {
    .gallery-item { flex-basis: 260px; }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(var(--theme-black-rgb), 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--theme-ink);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--footer-bg, none) var(--footer-bg-pos, center 35%) / cover no-repeat;
    color: rgba(var(--theme-ink-rgb), 0.92);
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1100px 650px at 15% 0%, rgba(var(--theme-primary-rgb), 0.18), transparent 60%),
        radial-gradient(900px 520px at 85% 10%, rgba(var(--theme-accent-rgb), 0.14), transparent 55%),
        linear-gradient(180deg, rgba(var(--theme-midnight-rgb), 0.88) 0%, rgba(var(--theme-midnight-rgb), 0.96) 100%);
}

.site-footer > * {
    position: relative;
    z-index: 1;
}

.footer-main {
    padding: var(--space-2xl) 0;
}

.footer-grid {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: var(--space-2xl);
    }
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer-tagline {
    color: rgba(var(--theme-ink-rgb), 0.75);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(var(--theme-surface-rgb), 0.1);
    border: 1px solid rgba(var(--theme-surface-rgb), 0.15);
    border-radius: var(--radius-sm);
    color: rgba(var(--theme-ink-rgb), 0.85);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: rgba(var(--theme-surface-rgb), 0.2);
    color: var(--theme-ink);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(var(--theme-ink-rgb), 0.92);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a, .footer-links a:visited {
    color: rgba(var(--theme-ink-rgb), 0.70);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--theme-ink);
}

.btn-footer-donate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-md);
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--scgc-copper), var(--scgc-copper-dark));
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-on-primary) !important;
    transition: var(--transition-base);
}

.btn-footer-donate:hover {
    background: var(--scgc-copper-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-accent);
    filter: brightness(1.05);
}

.footer-bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(var(--theme-surface-rgb), 0.1);
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-partner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(var(--theme-surface-rgb), 0.08);
    border: 1px solid rgba(var(--theme-surface-rgb), 0.14);
}

.footer-partner span {
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(var(--theme-ink-rgb), 0.86);
}

.footer-partner .partner-logo {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 12px 30px rgba(var(--theme-black-rgb), 0.35));
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== CARDS (Generic) ===== */
.card {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.card-img-top {
    height: 200px;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(var(--theme-border-rgb), 0.3), rgba(var(--theme-border-rgb), 0.2));
    padding: 8px;
}

.card-body {
    padding: var(--space-md);
}

.card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== FORMS ===== */
.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--scgc-copper);
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.15);
}

.form-control:hover {
    border-color: var(--gold);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: var(--space-md) 0;
    -webkit-overflow-scrolling: touch;
}

.filter-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text-primary);
    border-color: var(--gold);
}

.filter-tab.active {
    color: var(--theme-ink);
    background: var(--scgc-copper);
    border-color: var(--scgc-copper);
}

.filter-tab .event-count {
    padding: 2px 8px;
    font-size: 0.75rem;
    background: rgba(var(--theme-black-rgb), 0.1);
    border-radius: var(--radius-full);
}

.filter-tab.active .event-count {
    background: rgba(var(--theme-surface-rgb), 0.2);
}

/* ===== STAT STRIP ===== */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (min-width: 640px) {
    .stat-strip { grid-template-columns: repeat(var(--stat-cols, 4), 1fr); }
}

.stat-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--space-lg) var(--space-md);
    background: var(--surface-elevated);
    text-align: center;
}

.stat-strip-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    margin-bottom: 2px;
    background: var(--stat-icon-bg, rgba(var(--theme-primary-rgb), 0.08));
    color: var(--stat-icon-color, var(--scgc-copper));
}

.stat-strip-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--stat-color, var(--scgc-copper));
}

.stat-strip-label {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Stat color themes (set via inline --stat-* vars or modifier classes) */
.stat-strip-item--crimson {
    --stat-color: var(--scgc-copper);
    --stat-icon-bg: rgba(var(--theme-primary-rgb), 0.08);
    --stat-icon-color: var(--scgc-copper);
}

.stat-strip-item--gold {
    --stat-color: var(--theme-accent);
    --stat-icon-bg: rgba(var(--theme-accent-ink-rgb), 0.12);
    --stat-icon-color: var(--gold);
}

.stat-strip-item--teal {
    --stat-color: var(--teal);
    --stat-icon-bg: rgba(var(--theme-primary-rgb), 0.08);
    --stat-icon-color: var(--teal);
}

.stat-strip-item--orange {
    --stat-color: var(--scgc-orange);
    --stat-icon-bg: rgba(var(--theme-primary-rgb), 0.08);
    --stat-icon-color: var(--scgc-orange);
}

/* ===== SECTION CLOSER (decorative divider) ===== */
.section-closer {
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: center;
}

.section-closer-rule {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}

.section-closer-rule::before,
.section-closer-rule::after {
    content: "";
    width: clamp(40px, 12vw, 100px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--border-subtle));
}

.section-closer-rule::after {
    background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.section-closer-rule i {
    font-size: 1rem;
    color: var(--gold);
    opacity: 0.7;
}

/* ===== SECTION HEADER MODIFIERS ===== */
.section-header--center {
    justify-content: center;
    text-align: center;
}

.section-title-group { display: inline-block; }

/* ===== INTERIOR HERO VARIANT ===== */
/* Makes hero-tag readable on photo backgrounds */
.hero--interior .hero-tag {
    background: rgba(var(--theme-surface-rgb), 0.88);
    border: 1px solid rgba(var(--theme-surface-rgb), 0.55);
    box-shadow: 0 12px 28px rgba(var(--theme-black-rgb), 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--scgc-copper);
}

/* ===== CARD HEADERS (Gradient Variants) ===== */
.card-gradient-header {
    position: relative;
    overflow: hidden;
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--theme-ink);
    padding: 12px 16px;
}

.card-gradient-header::after {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(120deg, transparent 35%, rgba(var(--theme-surface-rgb), 0.22) 50%, transparent 65%);
    transform: rotate(8deg);
    opacity: 0.55;
    pointer-events: none;
}

.card-gradient-header--navy {
    background:
        radial-gradient(900px 300px at 20% 0%, rgba(var(--theme-accent-ink-rgb), 0.35), transparent 55%),
        linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 55%, var(--theme-primary) 100%);
}

.card-gradient-header--teal {
    background:
        radial-gradient(900px 300px at 18% 0%, rgba(var(--theme-primary-rgb), 0.30), transparent 55%),
        linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 55%, var(--theme-primary) 100%);
}

.card-gradient-header--crimson {
    background:
        radial-gradient(900px 300px at 18% 0%, rgba(var(--theme-accent-rgb), 0.35), transparent 55%),
        linear-gradient(135deg, var(--scgc-orange) 0%, var(--scgc-copper) 55%, var(--scgc-copper-dark) 100%);
}

.card-gradient-header--gold {
    background:
        radial-gradient(900px 260px at 18% 0%, rgba(var(--theme-accent-ink-rgb), 0.45), transparent 60%),
        radial-gradient(900px 260px at 82% 0%, rgba(var(--theme-primary-rgb), 0.35), transparent 58%),
        linear-gradient(135deg, var(--scgc-copper) 0%, var(--theme-primary) 40%, var(--theme-primary-hover) 100%);
}

/* ===== MEDIA CARD (Image + Overlay Tag) ===== */
.card-media { position: relative; }

.card-media img {
    display: block;
    width: 100%;
    height: auto;
}

.card-media-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: rgba(var(--theme-surface-rgb), 0.86);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 22px rgba(var(--theme-black-rgb), 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 850;
    font-size: 0.78rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-media-tag i { opacity: 0.85; }

/* ===== PEOPLE LIST ===== */
.people-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.people-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(var(--theme-midnight-rgb), 0.08);
}

.people-list-item:last-child { border-bottom: none; }
.people-list-item a { color: inherit; text-decoration: none; flex: 1; }
.people-list-item a:hover { text-decoration: underline; }

/* ===== AVATARS ===== */
.avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--theme-ink);
    box-shadow: inset 0 0 0 2px rgba(var(--theme-surface-rgb), 0.20);
    flex: 0 0 auto;
}

.avatar--navy   { background: var(--theme-primary); }
.avatar--teal   { background: var(--theme-primary); }
.avatar--orange { background: var(--scgc-orange); }
.avatar--crimson { background: var(--scgc-copper); }

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.72rem;
    white-space: nowrap;
}

.badge--role { margin-left: 8px; }
.badge--gold   { background: var(--gold); color: var(--theme-ink); }
.badge--orange { background: var(--scgc-orange); color: var(--theme-ink); }
.badge--teal   { background: var(--teal); color: var(--theme-ink); }
.badge--crimson { background: var(--scgc-copper); color: var(--theme-ink); }

/* ===== CTA BUTTON VARIANT ===== */
.btn-cta {
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ===== UNDERLINE SLIDE ===== */
.underline-slide {
    position: relative;
    display: inline-block;
    --underline-color: var(--scgc-copper);
}

.underline-slide::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 4px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--underline-color), var(--gold), var(--scgc-orange));
    transition: width 0.55s var(--ease-out);
}

.underline-slide.animate::after { width: 100%; }

/* ===== PDF MODAL ===== */
.pdf-modal {
    position: fixed;
    inset: 0;
    background: rgba(var(--theme-midnight-rgb), 0.84);
    display: none;
    z-index: 99999;
}

.pdf-modal.active { display: block; }

.pdf-modal__bar {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    z-index: 2;
}

.pdf-close {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(var(--theme-surface-rgb), 0.92);
    border: 1px solid rgba(var(--theme-surface-rgb), 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(var(--theme-black-rgb), 0.30);
}

.pdf-frame {
    position: absolute;
    inset: 70px 10px 10px;
    width: calc(100% - 20px);
    height: calc(100% - 80px);
    border: none;
    border-radius: var(--radius-lg);
    background: var(--theme-midnight);
}

/* ===== SHARED KEYFRAMES ===== */
@keyframes floatIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sheen {
    0%, 58% { opacity: 0; transform: translateX(-140%) rotate(10deg); }
    62%     { opacity: 0.65; }
    72%     { opacity: 0.65; transform: translateX(140%) rotate(10deg); }
    100%    { opacity: 0; transform: translateX(140%) rotate(10deg); }
}

/* ===== TIME BADGES ===== */
.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    color: var(--theme-ink);
    white-space: nowrap;
}

.time-badge--today {
    background: var(--theme-danger);
    animation: pulse-badge 2s infinite;
}

.time-badge--tomorrow { background: var(--amber); }
.time-badge--thisweek { background: var(--teal); }

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== EVENT TYPE PILLS ===== */
.type-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.type-pill--guard  { background: var(--theme-warning-soft); color: var(--theme-warning); }
.type-pill--full   { background: var(--theme-border); color: var(--theme-primary); }
.type-pill--perc   { background: var(--theme-canvas); color: var(--theme-primary); }
.type-pill--champs { background: var(--theme-danger-soft); color: var(--theme-danger); }


/* ===== SHARED: Auth Page Layout ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--surface-base);
}

.auth-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-medium);
    padding: var(--space-xl);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo {
    height: 64px;
    width: auto;
    margin: 0 auto var(--space-lg);
}

.auth-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.65rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: var(--space-xs);
}

.auth-links {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--scgc-copper);
    font-weight: 600;
    transition: var(--transition-fast);
}

.auth-links a:hover {
    color: var(--scgc-copper-dark);
    text-decoration: underline;
}

/* ===== SHARED: Form Group (Extended) ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-submit,
.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--theme-ink);
    background: linear-gradient(135deg, var(--scgc-copper) 0%, var(--scgc-copper-dark) 100%);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
}

.form-submit:hover,
.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-accent);
}

.form-submit:active,
.auth-submit:active {
    transform: translateY(0);
}

/* ===== SHARED: Empty State ===== */
.empty-state {
    text-align: center;
    padding: clamp(48px, 8vw, 80px) var(--space-lg);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-subtle);
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-state h3,
.empty-state__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.empty-state p,
.empty-state__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===== SHARED: Vault Hero (History pages) ===== */
.vault-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 74px) 0;
    background:
        radial-gradient(900px 360px at 14% 12%, rgba(var(--theme-primary-rgb), .22), transparent 60%),
        radial-gradient(900px 420px at 84% 28%, rgba(var(--theme-accent-ink-rgb), .18), transparent 55%),
        radial-gradient(820px 420px at 50% 110%, rgba(var(--theme-primary-rgb), .10), transparent 55%),
        linear-gradient(135deg, rgba(var(--theme-midnight-rgb), 0.98), rgba(var(--theme-midnight-rgb), 0.90));
    border-bottom: 1px solid rgba(var(--theme-surface-rgb), .08);
}

.vault-hero::after {
    content: "";
    position: absolute;
    inset: -30% -20%;
    background: linear-gradient(120deg, transparent 35%, rgba(var(--theme-surface-rgb), .08) 50%, transparent 65%);
    transform: rotate(8deg);
    animation: sheen 8s ease-in-out infinite;
    pointer-events: none;
}

.vault-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.vault-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--gold-light);
    margin-bottom: var(--space-md);
}

.vault-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--scgc-copper));
    border-radius: 999px;
}

.vault-title {
    font-family: var(--font-display);
    font-weight: 950;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--theme-ink);
    margin-bottom: var(--space-sm);
}

.vault-subtitle {
    color: rgba(var(--theme-ink-rgb), .65);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    max-width: 480px;
    margin: 0 auto var(--space-lg);
}

.vault-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(var(--theme-surface-rgb), .10);
    border: 1px solid rgba(var(--theme-surface-rgb), .14);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.78rem;
    color: rgba(var(--theme-ink-rgb), .85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: var(--space-md);
}

.vault-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(var(--theme-primary-rgb), .16);
    border: 1px solid rgba(var(--theme-primary-rgb), .22);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--scgc-copper-light);
}

/* ===== SHARED: Alert Messages ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.alert-error {
    background: rgba(var(--theme-danger-rgb), 0.08);
    border: 1px solid rgba(var(--theme-danger-rgb), 0.2);
    color: var(--theme-danger);
}

.alert-success {
    background: rgba(var(--theme-success-rgb), 0.08);
    border: 1px solid rgba(var(--theme-success-rgb), 0.2);
    color: var(--theme-success);
}

.alert-content {
    flex: 1;
}

/* ===== SHARED: Error Message (inline form) ===== */
.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: var(--space-md);
    background: rgba(var(--theme-danger-rgb), 0.06);
    border: 1px solid rgba(var(--theme-danger-rgb), 0.15);
    border-radius: var(--radius-md);
    color: var(--theme-danger);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

/* ===== SHARED: Classification Badge ===== */
.classification-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.py-4 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-5 { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }
.gap-4 { gap: var(--space-xl); }

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 767px) {
    .desktop-only { display: none !important; }
}

@media (min-width: 768px) {
    .mobile-only { display: none !important; }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark-mode component finishing; layout stays public-only. */
.site-header { background: rgba(var(--theme-canvas-rgb), .96); border-bottom: 1px solid var(--border-subtle); }
.site-header .logo { background: #fff; padding: 6px 10px; border-radius: 8px; }
.site-header .logo-img { height: 38px; width: auto; }
.footer-logo { background: #fff; padding: 8px; border-radius: 8px; }
.nav-link, .nav-dropdown-item, .mobile-nav-link { color: var(--theme-ink); }
.nav-link.active, .nav-link:hover, .nav-dropdown-item:hover { color: var(--theme-primary); }
.btn-primary, .btn-donate, .btn-footer-donate, .btn-event-primary { background: var(--theme-primary); color: var(--theme-on-primary); }
.btn-primary:hover, .btn-donate:hover, .btn-event-primary:hover { background: var(--theme-primary-hover); color: var(--theme-on-primary); }
.mobile-nav-panel, .nav-dropdown-menu, .dropdown-menu { background: var(--theme-surface); color: var(--theme-ink); border: 1px solid var(--border-subtle); }
.mobile-nav-close, .nav-toggle { color: var(--theme-ink); }
input, select, textarea { color: var(--theme-ink); background-color: var(--theme-surface); }
::selection { background: var(--theme-primary); color: var(--theme-on-primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--theme-primary); outline-offset: 4px; }
.site-footer { background: var(--theme-midnight); }
.hof-plate, .show-card { border-color: var(--border-subtle); }
.card-gradient-header, .show-card__head { background: var(--theme-grounded); color: var(--theme-ink); }
.badge--role { background: var(--theme-soft); color: var(--theme-primary); }
.hero-backdrop::after { background: radial-gradient(ellipse at 25% 20%, rgba(var(--theme-grounded-rgb), .65), transparent 65%), linear-gradient(180deg, rgba(var(--theme-canvas-rgb), .85), var(--theme-canvas)); }
@media (max-width:680px) { .header-inner { padding-left:20px; padding-right:20px; } }

.site-footer .btn-footer-donate, .site-footer .btn-footer-donate:visited { color: var(--theme-on-primary); }
