:root {
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ink: #1a1a1a; --ink-2: #333333; --ink-3: #555555; --ink-muted: #686868;
  --paper: #ffffff; --cream: #faf6ed; --cream-dark: #f0ead6; --warm-bg: #f8f5ee;
  --border: #e8e4d9; --border-light: #f0ece3;
  --accent: #c9963a; --accent-dark: #a87a2a; --accent-soft: #f5edda;
  --sage: #6f8f6a; --brick: #a85d4f;
  --max-w: 1280px; --radius: 4px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--warm-bg); line-height: 1.5; font-size: 16px; }
a { color: inherit; text-decoration: none; }


/* Hero — homepage-style */
.events-hero { padding: 40px 0 30px; border-bottom: 1px solid var(--border); }
.events-hero-inner { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 28px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }
.events-hero h1 { font-family: var(--serif); font-size: 2.1rem; font-weight: 800; line-height: 1.15; margin-bottom: 10px; text-align: center; }
.events-hero p { font-size: 14.5px; color: var(--ink-3); text-align: center; line-height: 1.55; max-width: 480px; margin: 0 auto; }
.hero-stat-panel { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.hero-stat-title { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.hero-stat-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--border-light); }
.hero-stat-row:last-child { border-bottom: none; }
.hero-stat-badge { font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.badge-credentialed { background: var(--accent-soft); color: var(--accent-dark); }
.badge-attended { background: #e8f0e6; color: var(--sage); }
.badge-pending { background: var(--cream-dark); color: var(--ink-muted); }

/* Filter bar */
.filter-bar { display: flex; justify-content: center; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.filter-pill { font-size: 11.5px; font-weight: 600; padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; color: var(--ink-3); cursor: pointer; }
.filter-pill.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Featured event — Pattern-style rich card */
.featured-event { padding: 36px 0; }
.featured-head { margin-bottom: 18px; }
.featured-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 6px; }
.featured-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.featured-meta { font-size: 13px; color: var(--ink-muted); display: flex; gap: 14px; align-items: center; }
.photo-grid-5 { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; margin-top: 18px; border-radius: var(--radius); overflow: hidden; }
.photo-grid-5 .g-main { grid-row: 1 / 3; }
.photo-grid-5 a { position: relative; display: block; overflow: hidden; background: var(--cream-dark); }
.photo-grid-5 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid-5 .g-main img { aspect-ratio: 4/5; }
.photo-grid-5 a:not(.g-main) img { aspect-ratio: 16/10; }
.grid-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.15); }
.grid-play::after { content: '▶'; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.9); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.grid-day-label { position: absolute; bottom: 8px; left: 8px; background: rgba(26,26,26,0.85); color: var(--cream); font-family: var(--mono); font-size: 10px; padding: 3px 8px; border-radius: 2px; }
.grid-more-overlay { position: absolute; inset: 0; background: rgba(26,26,26,0.6); display: flex; align-items: center; justify-content: center; color: var(--cream); font-family: var(--serif); font-size: 1.3rem; font-weight: 800; }

/* Event archive cards (Pattern B/C style rotation) */
.archive-section { padding: 10px 0 20px; }
.archive-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.archive-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 800; }
.event-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.event-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.event-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 800; }
.event-sub { font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }
.photo-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.photo-grid-4 a { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; background: var(--cream-dark); }
.photo-grid-4 img { width: 100%; height: 100%; object-fit: cover; }

.ad-banner { background: var(--cream-dark); border: 1px dashed var(--border); border-radius: 3px; height: 90px; display: flex; align-items: center; justify-content: center; margin: 20px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 20px 0 50px; }
.page-link { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding: 0 8px; }
.page-link.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.page-link:hover { border-color: var(--ink-muted); }
.pagination-note { text-align: center; font-family: var(--mono); font-size: 9.5px; color: var(--ink-muted); margin-top: -14px; margin-bottom: 30px; }

@media (max-width: 900px) {
  .events-hero-inner { grid-template-columns: 1fr; }
  .photo-grid-5 { grid-template-columns: 1fr 1fr; }
  .photo-grid-5 .g-main { grid-column: 1 / 3; grid-row: auto; }
  .photo-grid-4 { grid-template-columns: 1fr 1fr; }
}

/* Empty state — genuinely new, not in the locked mockup (which always
   assumed at least one event exists). Added for the zero-events case
   renderEvents.js handles explicitly. */
.empty-state { text-align: center; padding: 60px 24px; font-size: 14px; color: var(--ink-muted); }

/* Ad slot base CSS now lives in chrome.css — shared, not per-page. */
