/* ============================================================
   Discover East Oklahoma — "The Curated Trailhead" Design System
   Earth & Sky palette · Editorial Journal aesthetic
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Core brand colors */
    --primary:           #163429;
    --primary-container: #2d4b3f;
    --secondary:         #904d00;
    --secondary-fixed:   #ffdcc3;
    --on-secondary-container: #663500;

    /* Surfaces — no hard borders, use tonal layering */
    --surface:                #fdfae9;
    --surface-container-low:  #f7f4e3;
    --surface-container:      #f1eedd;
    --surface-container-high: #ebe9d8;
    --surface-container-highest: #e6e3d2;

    /* Text */
    --on-surface:         #1c1c12;
    --on-surface-variant: #414845;
    --outline:            #727974;
    --outline-variant:    #c1c8c3;

    /* Legacy aliases */
    --green-dark:  #163429;
    --green:       #2d4b3f;
    --green-light: #466558;
    --brown-dark:  #1c1c12;
    --brown:       #414845;
    --brown-light: #727974;
    --sand:        #f7f4e3;
    --sand-dark:   #ebe9d8;
    --cream:       #fdfae9;
    --rust:        #904d00;
    --text:        #1c1c12;
    --text-light:  #414845;
    --white:       #ffffff;
    --gold:        #904d00;
    --border:      #e6e3d2;

    /* Radius */
    --radius-sm: 0.25rem;
    --radius:    0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows — organic, warm-tinted */
    --shadow:       0 4px 16px rgba(28, 28, 18, 0.05);
    --shadow-card:  0 12px 40px rgba(28, 28, 18, 0.06);
    --shadow-hover: 0 16px 48px rgba(28, 28, 18, 0.10);

    /* Ghost border */
    --ghost-border: 1px solid rgba(193, 200, 195, 0.20);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Base ───────────────────────────────────────────────────── */
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--on-surface);
    background: var(--surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif', Georgia, serif;
    line-height: 1.25;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    background: rgba(253, 250, 233, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--ghost-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5rem;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
}
.logo:hover { color: var(--primary); opacity: 0.85; }
.logo img { height: 64px; width: auto; }
.logo h1 {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.logo .tagline { display: none; }

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
nav a {
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 2px;
}
nav a:hover { color: var(--secondary); }
nav a.active { color: var(--secondary); border-bottom: 2px solid var(--secondary); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-container-high);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
}
.header-search input {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--on-surface);
    width: 160px;
}
.header-search input::placeholder { color: var(--outline); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero-slim {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 3rem;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
}
.hero-slim-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22,52,41,0.82) 0%, transparent 60%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 3rem;
    max-width: 680px;
}
.hero-kicker {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.hero-content h2,
.hero-content h1 {
    font-family: 'Noto Serif', serif;
    font-size: clamp(1.8rem, 4vw, 3.25rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-sub {
    color: rgba(255,255,255,0.88);
    font-size: 1.05rem;
    font-weight: 500;
    max-width: 520px;
    margin-bottom: 1.5rem;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}
.hero-cta:hover { color: #fff; opacity: 0.92; transform: scale(1.02); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
.btn:hover { background: var(--primary-container); color: #fff; transform: scale(1.01); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--surface-container-high); color: var(--primary); transform: none; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { opacity: 0.9; }
.btn-ghost { background: var(--surface-container-high); color: var(--primary); border: none; }
.btn-ghost:hover { background: var(--surface-container-highest); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.82rem; border-radius: var(--radius); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; text-align: center; }
.btn-primary {
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-container); color: #fff; }
.btn-active { background: var(--primary) !important; color: #fff !important; }
.btn-approve { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.btn-approve:hover { background: #dcfce7; }
.btn-reject { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.btn-reject:hover { background: #fee2e2; }

/* ── Sidebar Layout ─────────────────────────────────────────── */
.layout-sidebar {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}
.main-content { flex: 1; min-width: 0; }
.filter-toggle {
    display: none;
    position: fixed;
    bottom: 1rem; right: 1rem;
    z-index: 200;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: 260px; min-width: 260px;
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    background: var(--surface-container-low);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1rem;
}
.sidebar-section { margin-bottom: 1.25rem; padding-bottom: 1rem; }
.sidebar-section:last-of-type { margin-bottom: 0; padding-bottom: 0; }
.sidebar-section h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--outline);
    margin-bottom: 0.75rem;
}
.sidebar-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--surface-container-high);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--on-surface);
    transition: border-color 0.2s;
}
.sidebar-search-input:focus { outline: none; border-bottom-color: var(--primary); }
.sidebar-search-input::placeholder { color: var(--outline); }

.date-label { display: block; font-size: 0.8rem; color: var(--on-surface-variant); margin-bottom: 0.4rem; }
.date-label input {
    width: 100%; padding: 0.35rem 0.5rem;
    background: var(--surface-container-high);
    border: none; border-bottom: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.85rem; margin-top: 0.15rem;
    font-family: inherit; transition: border-color 0.2s;
}
.date-label input:focus { outline: none; border-bottom-color: var(--primary); }

.cb-label {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; padding: 0.2rem 0;
    cursor: pointer; color: var(--on-surface-variant);
}
.cb-label input { accent-color: var(--primary); }
.cb-label:hover { color: var(--on-surface); }
.count { color: var(--outline); font-size: 0.8rem; margin-left: auto; }
.county-group { margin-bottom: 0.75rem; }
.county-name {
    font-size: 0.76rem; font-weight: 700;
    color: var(--primary); display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.sidebar-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.show-more-link { display: block; font-size: 0.8rem; color: var(--secondary); font-weight: 600; cursor: pointer; margin-top: 0.35rem; }
.show-more-link:hover { text-decoration: underline; color: var(--secondary); }

.quick-dates { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }
.quick-date-btn {
    padding: 0.28rem 0.65rem; font-size: 0.76rem;
    font-family: inherit; font-weight: 600;
    background: var(--surface-container-high);
    border: none; border-radius: var(--radius-full);
    cursor: pointer; color: var(--on-surface-variant);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.quick-date-btn:hover, .quick-date-btn.active { background: var(--primary); color: #fff; }

/* Mini Calendar */
.mini-calendar { margin-bottom: 0.5rem; }
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.cal-title { font-size: 0.85rem; font-weight: 700; color: var(--on-surface); }
.cal-nav {
    background: var(--surface-container-high); border: none;
    border-radius: var(--radius); width: 28px; height: 28px;
    cursor: pointer; font-size: 1rem; color: var(--on-surface-variant);
    display: flex; align-items: center; justify-content: center;
}
.cal-nav:hover { background: var(--surface-container-highest); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.cal-dow { font-size: 0.64rem; font-weight: 700; color: var(--outline); padding: 0.2rem 0; text-transform: uppercase; }
.cal-day { font-size: 0.8rem; padding: 0.3rem 0; cursor: pointer; border-radius: var(--radius-sm); transition: background 0.15s; }
.cal-day:hover { background: var(--surface-container-high); }
.cal-empty { cursor: default; }
.cal-empty:hover { background: none; }
.cal-today { font-weight: 700; color: var(--primary); }
.cal-start, .cal-end { background: var(--primary) !important; color: #fff !important; font-weight: 700; border-radius: var(--radius-sm); }
.cal-in-range { background: var(--surface-container-high); }
.date-range-display { font-size: 0.8rem; color: var(--outline); display: flex; justify-content: space-between; align-items: center; }
.clear-link { font-size: 0.75rem; color: var(--secondary); font-weight: 600; }
.clear-link:hover { text-decoration: underline; color: var(--secondary); }

/* ── Toolbar ────────────────────────────────────────────────── */
.toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem;
}
.results-count { font-size: 0.88rem; color: var(--on-surface-variant); font-weight: 500; }
.view-toggle { display: flex; gap: 0.5rem; }
.view-btn {
    padding: 0.35rem 0.75rem; border: none;
    border-radius: var(--radius);
    background: var(--surface-container-high);
    color: var(--on-surface-variant);
    cursor: pointer; font-size: 0.85rem;
    font-family: inherit; font-weight: 600;
    transition: all 0.15s;
}
.view-btn.active, .view-btn:hover { background: var(--primary); color: #fff; }

/* ── Event Cards ─────────────────────────────────────────────── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.event-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background 0.25s, box-shadow 0.25s;
    outline: var(--ghost-border);
}
.event-card:hover {
    background: var(--surface-container-low);
    box-shadow: var(--shadow-card);
}

.event-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    aspect-ratio: 16 / 10;
}
.event-image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.5s ease;
}
.event-card:hover .event-image-wrap img { transform: scale(1.04); }

.event-placeholder-subtle {
    width: 100%; aspect-ratio: 16 / 10;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-container-high);
    color: var(--outline-variant);
}
.placeholder-icon { width: 56px; height: 56px; opacity: 0.35; }

/* Category fallback images — slightly dimmed so real photos stand out */
.event-category-fallback {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    filter: brightness(0.88) saturate(0.85);
    transition: transform 0.5s ease, filter 0.3s ease;
}
.event-card:hover .event-category-fallback { transform: scale(1.04); filter: brightness(0.95) saturate(1); }

.mini-date-container {
    position: absolute; top: 0.75rem; left: 0.75rem;
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(28,28,18,0.12);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    line-height: 1;
}
.mini-date-container .month {
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; color: var(--secondary); letter-spacing: 0.5px;
}
.mini-date-container .day {
    font-size: 1.3rem; font-weight: 900;
    color: var(--on-surface); margin-top: 1px;
}

.card-category-badge {
    position: absolute; top: 0.75rem; right: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    background: rgba(255,255,255,0.92);
    color: var(--on-surface);
    backdrop-filter: blur(8px);
}

.event-body {
    padding: 1rem 1rem 1.5rem;
    flex: 1; display: flex; flex-direction: column;
}
.event-meta-row {
    display: flex; align-items: center;
    gap: 0.75rem; margin-bottom: 0.75rem;
}
.event-category {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--secondary);
}
.event-date-inline {
    font-size: 0.78rem; color: var(--on-surface-variant); font-weight: 500;
}
.event-meta-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--outline-variant); flex-shrink: 0;
}
.event-body h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 0.75rem; line-height: 1.35;
    transition: color 0.2s;
}
.event-body h3 a { color: var(--on-surface); }
.event-card:hover .event-body h3 a,
.event-body h3 a:hover { color: var(--secondary); }

.event-excerpt {
    font-size: 0.9rem; color: var(--on-surface-variant);
    line-height: 1.6; margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-footer {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
}

.location-chip {
    display: inline-flex; align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-fixed);
    color: var(--on-secondary-container);
    border-radius: var(--radius-full);
    font-size: 0.72rem; font-weight: 700;
}

.recurring-badge {
    display: inline-flex; align-items: center;
    padding: 0.2rem 0.6rem;
    background: #e8f0fe;
    color: #1a5276;
    border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 600;
}

.card-read-more { font-size: 0.85rem; font-weight: 700; color: var(--secondary); }
.card-read-more:hover { text-decoration: underline; color: var(--secondary); }

/* Legacy meta (list view) */
.event-meta {
    display: flex; flex-direction: column;
    gap: 0.2rem; font-size: 0.85rem;
    color: var(--on-surface-variant); margin-bottom: 0.5rem;
}

.no-events {
    grid-column: 1 / -1; text-align: center;
    padding: 3rem; background: var(--surface-container-low);
    border-radius: var(--radius-xl); color: var(--on-surface-variant);
}

/* List View */
.events-list .event-card {
    display: grid; grid-template-columns: 140px 1fr;
    border-radius: var(--radius-lg); margin-bottom: 1rem;
}
.events-list .event-image-wrap {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    aspect-ratio: unset; height: 100%; min-height: 120px;
}

/* Section headers */
.section-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 2rem;
}
.section-header h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.8rem; font-weight: 700; color: var(--primary);
}
.section-view-all {
    font-size: 0.88rem; font-weight: 700; color: var(--secondary);
}
.section-view-all:hover { text-decoration: underline; color: var(--secondary); }

/* ── Category Colors ─────────────────────────────────────────── */
.event-category.cat-festival    { color: #b45309; }
.event-category.cat-market      { color: #166534; }
.event-category.cat-music       { color: #1e40af; }
.event-category.cat-rodeo       { color: #9a3412; }
.event-category.cat-sports      { color: #1e3a8a; }
.event-category.cat-church      { color: #6b21a8; }
.event-category.cat-fundraiser  { color: #b45309; }
.event-category.cat-community   { color: #065f46; }
.event-category.cat-holiday     { color: #991b1b; }
.event-category.cat-government  { color: #374151; }
.event-category.cat-school      { color: #1d4ed8; }
.cat-bg-festival    { background: #fff7ed; color: #c2410c; }
.cat-bg-market      { background: #f0fdf4; color: #15803d; }
.cat-bg-music       { background: #eff6ff; color: #1d4ed8; }
.cat-bg-rodeo       { background: #fff7ed; color: #9a3412; }
.cat-bg-sports      { background: #eef2ff; color: #3730a3; }
.cat-bg-church      { background: #faf5ff; color: #7e22ce; }
.cat-bg-fundraiser  { background: #fffbeb; color: #b45309; }
.cat-bg-community   { background: #ecfdf5; color: #047857; }
.cat-bg-holiday     { background: #fff1f2; color: #be123c; }
.cat-bg-government  { background: #f8fafc; color: #475569; }
.cat-bg-school      { background: #eff6ff; color: #1d4ed8; }
.cat-bg-other       { background: var(--surface-container-high); color: var(--on-surface-variant); }

/* ── Newsletter Banner ───────────────────────────────────────── */
.newsletter-banner {
    background: var(--primary-container);
    border-radius: 1.25rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
}
@media (min-width: 640px) {
    .newsletter-banner { flex-direction: row; align-items: center; }
    .newsletter-copy { flex: 1; }
    .newsletter-form-wrap { flex: 1; }
}
.newsletter-banner .glow-a {
    position: absolute; right: -3rem; top: -3rem;
    width: 16rem; height: 16rem;
    background: rgba(144,77,0,0.10);
    border-radius: 50%; filter: blur(48px); pointer-events: none;
}
.newsletter-banner .glow-b {
    position: absolute; left: -3rem; bottom: -3rem;
    width: 16rem; height: 16rem;
    background: rgba(22,52,41,0.15);
    border-radius: 50%; filter: blur(48px); pointer-events: none;
}
.newsletter-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.newsletter-copy h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.75rem; font-weight: 700;
    color: #fff; margin-bottom: 0.75rem;
}
.newsletter-copy p { color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.6; max-width: 480px; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 480px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input[type="email"] {
    flex: 1; padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.20);
    color: #fff; border-radius: var(--radius-lg);
    font-family: inherit; font-size: 0.95rem;
    transition: border-color 0.2s; backdrop-filter: blur(10px);
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--secondary); }
.newsletter-form .btn {
    background: var(--secondary); white-space: nowrap;
    border-radius: var(--radius-lg); padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-card);
}
.newsletter-form .btn:hover { opacity: 0.9; transform: scale(1.01); }
.newsletter-fine { color: rgba(255,255,255,0.4); font-size: 0.75rem; margin-top: 0.5rem; }

/* ── Event Detail ────────────────────────────────────────────── */
.event-detail { padding: 1rem 0 3rem; }
.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1rem; font-weight: 600; font-size: 0.88rem;
    color: var(--on-surface-variant);
}
.back-link:hover { color: var(--primary); }
.event-detail-header { margin-bottom: 1.5rem; }
.event-detail-title {
    font-family: 'Noto Serif', serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 900; margin-top: 0.75rem; line-height: 1.2;
}
.event-detail-header h2 { font-size: 1.9rem; margin-top: 0.75rem; }
.event-detail-date-hero {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 0.75rem; font-size: 1rem;
    color: var(--on-surface-variant); font-weight: 600;
}
.date-hero-icon { font-size: 1.2rem; }
.date-hero-text { font-weight: 600; }
.event-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
.event-detail-image img { width: 100%; border-radius: var(--radius-lg); }
.event-description { font-size: 1rem; line-height: 1.8; margin-top: 1rem; }
.event-description h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--primary); }

.info-card {
    background: var(--surface-container-low);
    padding: 1.5rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); margin-bottom: 1rem;
    outline: var(--ghost-border);
}
.info-card:first-child { position: sticky; top: 5.5rem; }
.info-card h3 { margin-bottom: 1rem; color: var(--primary); font-size: 1.05rem; }
.info-card dl { display: grid; gap: 0.75rem; }
.info-card dt { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--outline); }
.info-card dd { margin: 0; font-size: 0.95rem; }

.event-map-section {
    margin-top: 2rem; background: var(--surface-container-low);
    padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.event-map-section h3 { font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--primary); }
.event-map iframe { width: 100%; border-radius: var(--radius); }
.map-directions-link {
    display: block; text-align: center; margin-top: 0.75rem;
    font-weight: 700; font-size: 0.9rem; color: var(--primary);
    padding: 0.5rem; background: var(--surface-container-high);
    border-radius: var(--radius); transition: background 0.2s;
}
.map-directions-link:hover { background: var(--surface-container-highest); color: var(--primary); }
.raw-text { margin-top: 1.5rem; }
.raw-text summary { cursor: pointer; color: var(--outline); font-size: 0.9rem; }
.raw-text pre {
    white-space: pre-wrap; background: var(--surface-container-high);
    padding: 1rem; border-radius: var(--radius); margin-top: 0.5rem; font-size: 0.85rem;
    max-height: 200px; overflow-y: auto;
}

/* ── Submit Page ─────────────────────────────────────────────── */
.submit-page { padding: 2rem 0; max-width: 700px; margin: 0 auto; }
.submit-page h2 { margin-bottom: 0.5rem; font-size: 1.8rem; }
.submit-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.submit-option {
    background: var(--surface-container-low); padding: 1.5rem;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    text-align: center; outline: var(--ghost-border);
}
.submit-option h3 { margin-bottom: 0.75rem; }
.submit-option p { margin-bottom: 1rem; color: var(--on-surface-variant); font-size: 0.9rem; }
.submit-tips {
    background: var(--surface-container-low); padding: 1.5rem;
    border-radius: var(--radius-lg); outline: var(--ghost-border);
}
.submit-tips h3 { margin-bottom: 0.75rem; }
.submit-tips ul { padding-left: 1.25rem; }
.submit-tips li { margin-bottom: 0.4rem; }

/* ── Error Page ──────────────────────────────────────────────── */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page h2 { font-size: 2rem; margin-bottom: 1rem; }
.error-page p { margin-bottom: 1.5rem; color: var(--on-surface-variant); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--surface-container-low);
    border-top: var(--ghost-border);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem; margin-bottom: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-brand-logo {
    display: flex; align-items: center;
    gap: 0.5rem; margin-bottom: 0.5rem;
}
.footer-brand-logo img { height: 40px; width: auto; }
.footer-brand-name {
    font-family: 'Noto Serif', serif;
    font-size: 1.05rem; font-weight: 700; color: var(--primary);
}
.footer-tagline { font-size: 0.82rem; color: var(--on-surface-variant); line-height: 1.5; }
.site-footer h3 {
    font-family: 'Noto Serif', serif;
    font-size: 0.85rem; font-weight: 700;
    color: var(--primary); margin-bottom: 1rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.site-footer p, .site-footer li { font-size: 0.85rem; line-height: 1.65; color: var(--on-surface-variant); }
.site-footer a { color: var(--on-surface-variant); }
.site-footer a:hover { color: var(--secondary); text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-btn {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: var(--surface-container-highest);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1rem;
    transition: background 0.2s, color 0.2s; text-decoration: none;
}
.social-btn:hover { background: var(--secondary); color: #fff; }
.copyright {
    text-align: center; font-size: 0.8rem; color: var(--outline);
    border-top: var(--ghost-border); padding-top: 1.5rem; margin-top: 1rem;
}

/* ── Ad Spots ────────────────────────────────────────────────── */
.ad-sidebar { margin-top: 1.5rem; text-align: center; }
.ad-sidebar a { display: block; }
.ad-sidebar img { max-width: 300px; width: 100%; height: auto; border-radius: var(--radius); }
.ad-sidebar .ad-text-fallback {
    padding: 1.5rem; background: var(--surface-container-high);
    border-radius: var(--radius-lg); outline: var(--ghost-border);
}
.ad-sidebar .ad-sponsor-logo { max-height: 60px; margin-bottom: 0.5rem; }
.ad-label { display: block; font-size: 0.65rem; color: var(--outline); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }
.category-sponsor-header {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1rem; margin-bottom: 1rem;
    background: var(--surface-container-low); border-radius: var(--radius-lg);
    font-size: 0.85rem; color: var(--on-surface-variant);
    outline: var(--ghost-border);
}
.category-sponsor-header a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); font-weight: 700; }
.cat-sponsor-logo { max-height: 24px; border-radius: var(--radius-sm); }

/* ── Flash / Badges ─────────────────────────────────────────── */
.flash { padding: 0.75rem 1rem; border-radius: var(--radius-lg); margin-bottom: 1rem; font-weight: 600; }
.flash-success { background: #f0fdf4; color: #166534; outline: 1px solid #bbf7d0; }
.flash-error   { background: #fef2f2; color: #991b1b; outline: 1px solid #fecaca; }
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; }
.badge-approved { background: #f0fdf4; color: #166534; }
.badge-pending  { background: #fffbeb; color: #b45309; }
.badge-success  { background: #f0fdf4; color: #166534; }
.badge-muted    { background: var(--surface-container-high); color: var(--outline); }

/* ── Admin ───────────────────────────────────────────────────── */
.admin-panel { max-width: 960px; margin: 0 auto; padding: 1rem 0; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
.admin-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-card {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 1.25rem; margin-bottom: 1rem;
    outline: var(--ghost-border); box-shadow: var(--shadow);
}
.admin-card-pending { outline: 2px solid var(--secondary); }
.admin-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.admin-card-header h3 { margin: 0; font-size: 1.1rem; }
.admin-card-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--on-surface-variant); font-size: 0.9rem; margin-bottom: 0.5rem; }
.admin-card-desc { color: var(--on-surface); margin: 0.5rem 0; line-height: 1.5; }
.admin-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.admin-card-footer { margin-top: 0.5rem; color: var(--outline); font-size: 0.8rem; }
.events-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.events-table th, .events-table td { padding: 0.55rem 0.75rem; text-align: left; }
.events-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--outline); border-bottom: 1px solid var(--surface-container-highest); }
.events-table tr:hover td { background: var(--surface-container-low); }
.empty-state { text-align: center; padding: 3rem; color: var(--on-surface-variant); font-size: 1.05rem; }

/* Admin Forms */
.admin-form { max-width: 800px; }
.admin-login { max-width: 400px; margin: 3rem auto; }
.admin-login h2 { text-align: center; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 700; font-size: 0.88rem; color: var(--on-surface); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 0.55rem 0.75rem;
    background: var(--surface-container-high);
    border: none; border-bottom: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 0.95rem; font-family: inherit;
    color: var(--on-surface); transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-bottom-color: var(--primary); }
.form-group textarea { resize: vertical; }
.form-group-wide { flex: 1; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 150px; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ── Advertise Page ─────────────────────────────────────────── */
.advertise-page { max-width: 900px; margin: 0 auto; }
.advertise-hero { text-align: center; padding: 2rem 1rem; margin-bottom: 2rem; }
.advertise-hero h2 {
    font-family: 'Noto Serif', serif;
    font-size: 2.2rem; color: var(--primary); margin-bottom: 0.75rem;
}
/* hero-sub color is set in the hero block above (rgba white) — this variant is for non-hero contexts */
.advertise-hero .hero-sub,
.things-hero .hero-sub { font-size: 1.1rem; color: var(--on-surface-variant); max-width: 600px; margin: 0 auto; line-height: 1.65; }
.advertise-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.stat-card {
    text-align: center; padding: 1.5rem;
    background: var(--surface-container-low); border-radius: var(--radius-lg); outline: var(--ghost-border);
}
.stat-number { font-family: 'Noto Serif', serif; font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.stat-label { font-size: 0.82rem; color: var(--outline); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.advertise-page h3 { font-family: 'Noto Serif', serif; color: var(--on-surface); margin-bottom: 1rem; }
.ad-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.ad-option-card {
    padding: 1.5rem; background: var(--surface);
    border-radius: var(--radius-lg); outline: var(--ghost-border); box-shadow: var(--shadow);
}
.ad-option-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--on-surface); }
.ad-price { font-family: 'Noto Serif', serif; font-size: 1.9rem; font-weight: 900; color: var(--primary); margin-bottom: 0.75rem; }
.ad-price span { font-size: 0.85rem; font-weight: 400; color: var(--outline); }
.ad-option-card p { font-size: 0.9rem; color: var(--on-surface-variant); margin-bottom: 0.75rem; line-height: 1.5; }
.ad-option-card ul { padding-left: 1.25rem; font-size: 0.85rem; color: var(--on-surface-variant); }
.ad-option-card li { margin-bottom: 0.3rem; }
.ad-option-featured { outline: 2px solid var(--primary); background: var(--surface-container-low); }
.advertise-cta {
    text-align: center; padding: 2.5rem 1.5rem;
    background: var(--surface-container-low); border-radius: var(--radius-xl); margin-bottom: 2rem; outline: var(--ghost-border);
}
.advertise-cta h3 { color: var(--primary); }
.advertise-cta p { color: var(--on-surface-variant); margin-bottom: 1rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1.1rem; }
.cta-sub { font-size: 0.85rem; color: var(--outline); margin-top: 1rem !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .event-detail-grid { grid-template-columns: 1fr; }
    .info-card:first-child { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-header .container { height: auto; padding: 0.75rem 1rem; flex-wrap: wrap; }
    .logo h1 { font-size: 1.1rem; }
    nav { gap: 1rem; }
    .header-search { display: none; }
    nav a { font-size: 0.9rem; }

    .hero-slim { min-height: 260px; }
    .hero-content { padding: 1.5rem 1rem; }
    .hero-content h2, .hero-content h1 { font-size: 1.75rem; }

    .layout-sidebar { flex-direction: column; }
    .filter-toggle { display: flex; }
    .sidebar {
        display: none; position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; min-width: 100%;
        z-index: 300; border-radius: 0;
        max-height: 100vh; padding: 3rem 1.5rem 1.5rem;
        overflow-y: auto;
    }
    .sidebar.open { display: block; }
    .events-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .events-list .event-card { grid-template-columns: 1fr; }
    .events-list .event-image-wrap { border-radius: var(--radius-lg) var(--radius-lg) 0 0; min-height: 180px; }
    .submit-options { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .advertise-stats { grid-template-columns: 1fr; }
    .ad-options { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .admin-header { flex-direction: column; gap: 0.5rem; }
    .events-table { font-size: 0.8rem; }
    .events-table th, .events-table td { padding: 0.4rem; }
    .newsletter-banner { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-content { padding: 1rem; }
}
