/* Events page (events.php) — list + detail, in the visual language of the Home "Events" section. */
.ev-hero .kicker { color: var(--gold); }
.ev-hero .kicker::before { display: none; }
.ev-hero .crumbs .here { color: var(--gold); }
.ev-hero h1 { animation: fadeUp .6s ease .1s both; }
.ev-hero p { animation: fadeUp .6s ease .2s both; }
.ev-hero-tags { display: flex; gap: 8px; margin-bottom: 16px; }
.ev-hero-tags .kind-badge { position: static; background: var(--gold); color: var(--navy); }
.ev-past-tag { font-size: 9px; font-weight: 800; letter-spacing: .8px; padding: 5px 8px; border-radius: 3px; border: 1px solid rgba(255,255,255,.4); color: #fff; }
.ev-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; font-weight: 600; color: var(--gray-200); }
.ev-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

.next-event .title a:hover { color: var(--gold); }

/* Filter chips */
.ev-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.ev-chip { font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--gray-200); background: #fff; color: var(--navy); cursor: pointer; transition: all .2s; }
.ev-chip:hover { border-color: var(--navy); }
.ev-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 18px rgba(11,28,51,.22); }

/* Cards */
.ev-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ev-grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.event-card .media img { transition: transform .5s ease; }
.event-card:hover .media img { transform: scale(1.05); }
.ev-summary { margin: 0 0 10px; font-size: 12px; line-height: 1.6; color: var(--gray-600); }
.event-card.is-past .media img { filter: grayscale(.35); }
.event-card.is-past .kind-badge { background: var(--gray-500); }
.ev-past { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--gray-200); }

/* Detail */
.ev-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 40px; align-items: start; }
.ev-image { position: relative; height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); margin-bottom: 28px; }
.ev-lead { margin: 0 0 18px; font-size: 17px; line-height: 1.6; font-weight: 600; color: var(--navy); text-wrap: pretty; }
.ev-body p { margin: 0 0 16px; font-size: 15px; line-height: 1.8; color: var(--gray-700); text-wrap: pretty; }
.ev-back { margin-top: 12px; }
.ev-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.ev-facts { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.ev-fact { display: flex; align-items: center; gap: 14px; }
.ev-fact .icon-circle { width: 40px; height: 40px; margin: 0; flex-shrink: 0; background: rgba(242,183,5,.15); color: var(--gold); }
.ev-fact small { display: block; font-size: 9px; font-weight: 800; letter-spacing: 1px; color: var(--gold); }
.ev-fact b { display: block; font-size: 14px; font-weight: 700; margin-top: 2px; }
.ev-countdown { margin-top: 4px; }
.ev-countdown div { flex: 1; min-width: 0; padding: 10px 6px; }
.ev-rsvp { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; background: #fff; scroll-margin-top: 96px; }
.ev-rsvp h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--navy); }
.ev-rsvp > p { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: var(--gray-600); }
.ev-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ev-404 { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 24px; }
.ev-404 p { margin: 0; font-size: 14px; }

@media (max-width: 900px) {
  .ev-detail { grid-template-columns: 1fr; }
  .ev-side { position: static; }
  .ev-image { height: 300px; }
}
@media (max-width: 640px) {
  .ev-image { height: 220px; }
  .ev-past { margin-top: 48px; padding-top: 40px; }
  .next-event { padding: 20px; }
  .next-event .btn { width: 100%; }
  .countdown { width: 100%; }
  .countdown div { flex: 1; min-width: 0; }
  .ev-rsvp, .ev-facts { padding: 20px 16px; }
  .cta-band .btn { width: 100%; white-space: normal; }
}
@media (max-width: 640px) {
  /* one swipeable row of filter chips */
  .ev-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 4px 16px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ev-chips::-webkit-scrollbar { display: none; }
  .ev-chip { flex: 0 0 auto; }
}
