/* ===================================================================
   EVENTS — /events/
   Page-specific components only. The event cards themselves are the
   shared .events-grid / .event-card components from style.css — the
   same ones the homepage uses — so the two pages read as one site.
   Built on existing tokens (--navy, --red, --slate, --cream, --line).
   Containers 10px, buttons inherit 6px.
   =================================================================== */

/* --- filtering: hidden-state guard --------------------------------
   .event-card and .evt-filters-wrap both set a display value, which
   would otherwise beat the `hidden` attribute the filter script uses. */
.event-card[hidden],
.evt-filters-wrap[hidden],
.evt-empty[hidden] { display: none !important; }

/* --- featured events ----------------------------------------------
   Any number of events can carry `featured` in src/_data/events.js.
   They stack, and every other one flips the image to the right so a
   run of them doesn't read as one long column of identical rows. */
.evt-featured-list {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}
.evt-featured + .evt-featured {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 48.001rem) {
  .evt-featured:nth-child(even) .about-pastor-media { order: 2; }
}

/* date badge over the featured photo -------------------------------
   Same idea as .event-date on the grid cards, scaled up for the
   larger featured block. Sits inside .about-pastor-media, which is
   already position:relative via .ph. */
.evt-next-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: #fff; border-radius: 10px;
  padding: 0.85rem 1.15rem; text-align: center; line-height: 1.1;
  box-shadow: 0 14px 30px -16px rgba(18, 18, 19, 0.6);
}
.evt-next-dow {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate);
}
.evt-next-day {
  display: block; font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800; color: var(--navy);
}
.evt-next-month {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
}

/* meta line under the featured event title */
.evt-meta {
  margin: 0.75rem 0 0;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red);
}

/* --- filter chips --------------------------------------------------
   These are real controls now, not a legend: <button> elements driven
   by /assets/js/events.js, one group for campus and one for category.
   The pressed chip is the active filter (aria-pressed + .is-active). */
.evt-filters-wrap {
  display: flex; flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
}
.evt-filter-group { flex: 1 1 20rem; min-width: 0; }
.evt-filters {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}
.evt-filters-label {
  margin: 0 0 0.9rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.evt-chip {
  display: inline-block; cursor: pointer;
  font-family: var(--font);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.evt-chip:hover { border-color: var(--navy); }
.evt-chip.is-active,
.evt-chip[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: var(--cream);
}

/* result count — also the aria-live region the script writes into */
.evt-filter-status {
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  min-height: 1.2em;
  font-size: 0.8rem; font-weight: 600; color: var(--slate);
}
.evt-empty {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  text-align: center; color: var(--slate); font-size: 1rem;
}

/* --- empty calendar -------------------------------------------------
   A single quiet line, not a section. The Weekly Rhythms block below is
   what actually answers "so what does happen?" — this only reports the
   fact, so it should not compete with it. */
.evt-none {
  margin: 0;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 1.05rem;
  color: var(--slate);
}

/* ===================================================================
   EVENT DETAIL — /events/<slug>/
   Deliberately plain: a graphic, a title, three facts, the copy, and
   the ways out. Nothing here needs to compete with the artwork.
   =================================================================== */
.evt-detail { padding-top: clamp(2rem, 4vw, 3rem); }

/* One narrow column shared by everything on the page, so the back link,
   the title and the facts all sit on the same left edge as the artwork. */
.evt-col { max-width: 52rem; margin-inline: auto; }

.evt-back {
  display: inline-block;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: var(--slate);
}
.evt-back:hover { color: var(--red); }

/* Event artwork is designed, not photographed — the graphic usually carries
   the date and title already. Shown whole rather than cropped to a banner,
   which is why this is an <img> and not a background plate. */
.evt-detail-art {
  display: block;
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  height: auto;
  border-radius: 10px;
}

.evt-detail-body { margin-top: clamp(2rem, 4vw, 3rem); }
.evt-detail-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.evt-detail-facts {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.evt-detail-facts dt {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.evt-detail-facts dd {
  margin: 0.35rem 0 0;
  font-size: 0.98rem; line-height: 1.45; color: var(--navy); font-weight: 700;
}

.evt-detail-copy { margin-top: clamp(1.5rem, 3vw, 2rem); }
.evt-detail-copy p {
  margin: 0 0 1.1rem;
  font-size: 1.05rem; line-height: 1.8; color: var(--slate);
}
.evt-detail-copy p:last-child { margin-bottom: 0; }
.evt-detail-copy a { color: var(--red); }

/* Buttons line up under the copy on the same left edge, not centred. */
.evt-detail-cta { justify-content: flex-start; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

@media (max-width: 40rem) {
  .evt-detail-facts { grid-template-columns: 1fr; gap: 1rem; }
}
