:root {
  --ep-green: #6ec063;
  --ep-green-dark: #4f9447;
  --ep-green-deep: #3d7a38;
  --ep-ink: #1b1d34;
  --ep-muted: #5a6170;
  --ep-soft: #f7f6f3;
  --ep-soft-2: #f0eee9;
  --ep-line: #e4e2dc;
  --ep-white: #fff;
  --ep-shadow: 0 8px 24px rgba(27, 29, 52, 0.08);
  --ep-shadow-hover: 0 12px 28px rgba(27, 29, 52, 0.12);
  --ep-radius: 14px;
  --ep-radius-sm: 10px;
  --ep-container: 1200px;
  --ep-space-1: 0.5rem;
  --ep-space-2: 0.75rem;
  --ep-space-3: 1rem;
  --ep-space-4: 1.5rem;
  --ep-space-5: 2.25rem;
  --ep-space-6: 3.5rem;
}

.ep-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ep-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1100;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  background: var(--ep-ink);
  color: var(--ep-white);
  font-weight: 700;
  text-decoration: none;
}

.ep-skip-link:focus {
  transform: translateY(0);
}

.ep-page {
  min-height: 60vh;
  padding: 82px 0 4.5rem;
  background: var(--ep-white);
  color: var(--ep-ink);
  font-family: "Lato", Arial, sans-serif;
}

.ep-page--hub {
  padding-top: 72px;
}

.ep-page *,
.ep-page *::before,
.ep-page *::after {
  box-sizing: border-box;
}

.ep-page a {
  color: inherit;
}

.ep-page :focus-visible {
  outline: 3px solid var(--ep-green-dark);
  outline-offset: 3px;
}

.ep-container {
  width: min(100% - 2rem, var(--ep-container));
  margin-inline: auto;
}

/* ——— Hero ——— */
.ep-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  max-height: 380px;
  height: clamp(300px, 32vw, 380px);
  overflow: hidden;
  color: #fff;
}

.ep-hero h1,
.ep-hero p,
.ep-hero .ep-hero-headline,
.ep-hero .ep-hero-desc {
  color: #fff;
}

.ep-hero-media,
.ep-hero-overlay {
  position: absolute;
  inset: 0;
}

.ep-hero-media picture,
.ep-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.ep-hero-media img {
  display: block;
}

.ep-hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 20, 28, 0.78) 0%, rgba(16, 20, 28, 0.42) 52%, rgba(16, 20, 28, 0.18) 100%),
    linear-gradient(180deg, rgba(16, 20, 28, 0.12) 0%, rgba(16, 20, 28, 0.28) 45%, rgba(16, 20, 28, 0.62) 100%);
}

.ep-hero-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2.75rem;
  /* Keep full .ep-container width so "Events" shares the page left edge.
     Constrain line length on the copy itself, not the container. */
  max-width: none;
}

.ep-hero h1 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.ep-hero-headline {
  margin: 0.7rem 0 0;
  max-width: 22ch;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.ep-hero-desc {
  margin: 0.65rem 0 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.55;
}

.ep-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--ep-green);
  color: var(--ep-white) !important;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.ep-button:hover {
  background: var(--ep-green-dark);
}

.ep-button--hero {
  margin-top: 1.25rem;
  padding-inline: 1.4rem;
}

.ep-button--ghost {
  background: transparent;
  color: var(--ep-ink) !important;
  border: 1px solid var(--ep-line);
}

.ep-button--ghost:hover {
  background: var(--ep-soft);
  border-color: var(--ep-green);
}

.ep-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.35rem;
  border: 0;
  background: transparent;
  color: var(--ep-muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.ep-text-link:hover {
  color: var(--ep-green-deep);
}

/* ——— Landing page headings (campus/category/detail) ——— */
.ep-page-heading {
  padding: 2.5rem 0 1.25rem;
  background: var(--ep-soft);
}

.ep-kicker {
  margin: 0 0 0.75rem;
  color: var(--ep-green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ep-kicker a {
  text-decoration: none;
}

.ep-kicker a:hover {
  color: var(--ep-ink);
}

.ep-page-heading h1 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.ep-page-heading h1 span {
  color: var(--ep-green-dark);
}

.ep-page-heading > .ep-container > p {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--ep-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ——— Discovery bar ——— */
.ep-discovery {
  background: var(--ep-white);
  padding: 1.15rem 0 1.1rem;
  scroll-margin-top: 90px;
}

.ep-filter-bar {
  display: block;
}

/* Mobile/tablet: stacked. Desktop (≥1100px): one toolbar row. */
.ep-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: end;
}

.ep-filter-toolbar > .ep-field--search {
  grid-column: 1;
  grid-row: 1;
}

.ep-filter-toolbar > .ep-clear {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.ep-filter-toolbar > .ep-facet--when,
.ep-filter-toolbar > .ep-filter-selects {
  grid-column: 1 / -1;
}

.ep-field {
  position: relative;
  display: block;
  margin: 0;
}

.ep-field select,
.ep-field input[type="search"] {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 2.1rem 0 0.95rem;
  border: 1px solid var(--ep-line);
  border-radius: 12px;
  background: var(--ep-soft);
  color: var(--ep-ink);
  font: inherit;
  font-size: 0.95rem;
  line-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.ep-field select:hover,
.ep-field input[type="search"]:hover {
  border-color: #d0d4cc;
}

.ep-field select:focus,
.ep-field input[type="search"]:focus {
  outline: none;
  border-color: var(--ep-green);
  background: var(--ep-white);
  box-shadow: 0 0 0 3px rgba(110, 192, 99, 0.18);
}

.ep-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6170' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-color: var(--ep-soft);
  min-width: 8.5rem;
  padding-right: 2.25rem;
}

.ep-field--search {
  display: flex;
  align-items: center;
}

.ep-field--search .ep-field-icon {
  position: absolute;
  left: 0.9rem;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-block: auto;
  color: var(--ep-muted);
  pointer-events: none;
  line-height: 0;
}

.ep-field--search .ep-field-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ep-field--search input[type="search"] {
  flex: 1 1 auto;
  padding-left: 2.55rem;
  line-height: 48px;
}

.ep-field--day {
  flex: 0 0 auto;
}

.ep-field--select {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.ep-field--select > span {
  color: var(--ep-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ep-field--select select {
  min-width: 0;
  width: 100%;
  padding-left: 0.95rem;
}

.ep-filter-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 14rem));
  gap: 0.75rem 1rem;
  align-items: end;
  max-width: 30rem;
}

.ep-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.65rem;
  border: 0;
  background: transparent;
  color: var(--ep-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ep-clear:hover {
  color: var(--ep-ink);
}

.ep-clear[hidden] {
  display: none !important;
}

.ep-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.ep-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ep-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.ep-chip:hover {
  color: var(--ep-ink);
  background: var(--ep-soft);
}

.ep-chip.is-active {
  color: var(--ep-ink);
  background: var(--ep-soft-2);
}

.ep-chip:focus-visible {
  outline: 3px solid var(--ep-green-dark);
  outline-offset: 2px;
}

/* Facets --------------------------------------------------------------
   One primary chip row (When) plus two labeled selects (Campus / Ministry).
   Matching three identical chip rows made independent axes feel like one
   mutually exclusive control. Different control types match cardinality. */
.ep-facet {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ep-facet-legend {
  padding: 0 0 0.3rem;
  color: var(--ep-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ep-facet--when .ep-chips {
  gap: 0.35rem;
}

.ep-facet--when .ep-chip {
  border: 1px solid var(--ep-line);
  background: var(--ep-white);
  color: var(--ep-ink);
}

.ep-facet--when .ep-chip:hover {
  border-color: #d0d4cc;
  background: var(--ep-soft);
  color: var(--ep-ink);
}

.ep-facet--when .ep-chip.is-active {
  border-color: var(--ep-green);
  background: var(--ep-green);
  color: var(--ep-white);
}

.ep-facet--when .ep-chip.is-active:hover {
  border-color: var(--ep-green-dark);
  background: var(--ep-green-dark);
  color: var(--ep-white);
}

/* Desktop: search · When · Campus · Ministry on one row */
@media (min-width: 1100px) {
  .ep-filter-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem 0.9rem;
  }

  .ep-filter-toolbar > .ep-field--search {
    flex: 0 1 15.5rem;
    width: 15.5rem;
    max-width: 17rem;
    min-width: 12.5rem;
  }

  .ep-filter-toolbar > .ep-clear {
    flex: 0 0 auto;
    align-self: center;
    margin-bottom: 0;
  }

  .ep-filter-toolbar > .ep-facet--when {
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
    padding-bottom: 0;
  }

  .ep-filter-toolbar > .ep-filter-selects {
    display: flex;
    flex: 0 0 auto;
    gap: 0.75rem;
    max-width: none;
    align-items: center;
    position: static;
    padding-left: 0;
    margin-left: 0;
  }

  .ep-filter-toolbar > .ep-filter-selects > .ep-field--select {
    position: relative;
    min-width: 10.75rem;
    width: 11.5rem;
    padding-right: 0;
  }

  .ep-filter-toolbar .ep-field select,
  .ep-filter-toolbar .ep-field input[type="search"] {
    height: 42px;
    min-height: 42px;
    line-height: 42px;
    border-radius: 10px;
  }

  .ep-filter-toolbar .ep-facet--when .ep-chip {
    min-height: 42px;
  }
}

@media (max-width: 900px) {
  .ep-filter-selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  /* Edge-to-edge scroll on phones so chips are not clipped mid-word. */
  .ep-facet--when .ep-chips {
    margin-inline: calc(var(--ep-space-3) * -1);
    padding-inline: var(--ep-space-3);
  }
}

/* Legacy three-column facet grid (kept for any older embeds). */
.ep-facets {
  display: grid;
  gap: 0.75rem;
}

/* Legacy toolbar (campus/category landings) */
.ep-toolbar {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem 0 1.5rem;
}

.ep-filters {
  display: grid;
  grid-template-columns: minmax(12rem, 1.4fr) repeat(3, minmax(8rem, 1fr)) auto;
  gap: 0.65rem;
  align-items: end;
}

.ep-filters--compact {
  grid-template-columns: repeat(2, minmax(8rem, 1fr)) auto;
}

.ep-filters .ep-field > span:not(.ep-visually-hidden):not(.ep-field-icon) {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ep-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ep-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* ——— Results summary ——— */
.ep-results-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.35rem 0 0.35rem;
}

.ep-count {
  margin: 0;
  color: var(--ep-ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.ep-section-link {
  color: var(--ep-green-deep);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ep-section-link:hover {
  text-decoration: underline;
}

/* ——— Sections ——— */
.ep-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}

.ep-section-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--ep-green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ep-section-heading h2 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ep-section-heading p {
  margin: 0.4rem 0 0;
  max-width: 48ch;
  color: var(--ep-muted);
  line-height: 1.5;
}

.ep-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ep-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.ep-sort select {
  min-height: 40px;
  padding: 0.35rem 2rem 0.35rem 0.7rem;
  border: 1px solid var(--ep-line);
  border-radius: 8px;
  background: var(--ep-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6170' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.55rem center;
  color: var(--ep-ink);
  font: inherit;
  font-weight: 600;
  appearance: none;
}

/* ——— Cards ——— */
.ep-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.ep-list-grid,
.ep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}

.ep-list-grid .ep-card,
.ep-grid .ep-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

/* Month grouping ------------------------------------------------------
   Gives a long list somewhere for the eye to land. */
.ep-list-groups {
  display: block;
}

.ep-month-heading {
  margin: 2rem 0 0.75rem;
  color: var(--ep-ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ep-list-groups > .ep-month-heading:first-child {
  margin-top: 0.25rem;
}

/* Status badge --------------------------------------------------------
   "Happening now" / "Today" is the fastest read on the card. */
.ep-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--ep-ink);
  color: var(--ep-white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(27, 29, 52, 0.24);
}

.ep-card-badge--now {
  background: #c2410c;
}

.ep-card-badge--today {
  background: var(--ep-green-deep);
}

.ep-card.is-now {
  box-shadow: 0 0 0 2px #f0b895, var(--ep-shadow);
}

/* Match Weekly News card chrome: soft elevation, 12px radius, no heavy border. */
.ep-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 0.75rem;
  background: var(--ep-white);
  box-shadow: var(--ep-shadow);
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.ep-card:hover {
  box-shadow: var(--ep-shadow-hover);
  transform: translateY(-4px);
}

/* Entrance ------------------------------------------------------------
   One staggered reveal on load rather than scattered micro-animations.
   Capped at 12 steps so a long list never waits on a slow cascade, and
   fully disabled for anyone who asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .ep-card {
    animation: ep-card-in 380ms cubic-bezier(0.22, 0.68, 0.32, 1) both;
  }

  .ep-card:nth-child(1) { animation-delay: 20ms; }
  .ep-card:nth-child(2) { animation-delay: 50ms; }
  .ep-card:nth-child(3) { animation-delay: 80ms; }
  .ep-card:nth-child(4) { animation-delay: 110ms; }
  .ep-card:nth-child(5) { animation-delay: 140ms; }
  .ep-card:nth-child(6) { animation-delay: 170ms; }
  .ep-card:nth-child(n + 7) { animation-delay: 200ms; }

  .ep-month-heading {
    animation: ep-card-in 380ms cubic-bezier(0.22, 0.68, 0.32, 1) both;
  }
}

@keyframes ep-card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover lift must not fight the entrance transform. */
.ep-card {
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .ep-card:hover {
    transform: none;
  }
}

.ep-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ep-soft-2);
  aspect-ratio: 16 / 9;
}

.ep-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.ep-card:hover .ep-card-media img {
  transform: scale(1.03);
}

/* Most imported events have no artwork. A full 16:9 block of empty gradient
   cost ~250px of scroll per card on a phone, so an image-less card collapses
   to a slim band that still carries the date chip and any status badge. */
.ep-card-media--empty {
  aspect-ratio: auto;
  min-height: 58px;
  background:
    linear-gradient(135deg, #e8efe5 0%, #f4f2ec 55%, #e4ebe1 100%);
}

.ep-card-media--empty .ep-card-date {
  top: 50%;
  transform: translateY(-50%);
}

.ep-card-media--empty .ep-card-badge {
  top: 50%;
  transform: translateY(-50%);
}

.ep-card-date {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 3.1rem;
  padding: 0.4rem 0.45rem 0.45rem;
  border-radius: 8px;
  background: var(--ep-white);
  box-shadow: 0 4px 14px rgba(27, 29, 52, 0.12);
  color: var(--ep-ink);
  line-height: 1;
  text-align: center;
}

.ep-card-month {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ep-green-deep);
}

.ep-card-day {
  margin-top: 0.15rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.ep-card-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.15rem;
}

.ep-card-eyebrow {
  margin: 0;
  color: var(--ep-green-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
}

.ep-card-title {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ep-card-primary-link {
  text-decoration: none;
  color: inherit;
}

.ep-card-primary-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ep-card-summary {
  margin: 0;
  color: var(--ep-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-card-meta-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.ep-card-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--ep-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.ep-card-meta-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 0.05rem;
  color: var(--ep-muted);
}

.ep-card-meta-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ep-card-meta-text {
  min-width: 0;
}

.ep-card-arrow {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ep-line);
  background: var(--ep-white);
  color: var(--ep-green-deep);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.ep-card-arrow svg {
  width: 16px;
  height: 16px;
}

.ep-card:hover .ep-card-arrow {
  transform: translateX(3px);
  border-color: var(--ep-green);
  background: #eef8ec;
}

.ep-card--featured .ep-card-body {
  padding-bottom: 1.35rem;
  min-height: 11.5rem;
}

.ep-card--featured .ep-card-title {
  font-size: 1.2rem;
}

/* List cards follow Weekly News: compact 3-up tiles, 16:9 art on top,
   body + More Info below — not oversized 2-up posters. */
.ep-card--list {
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
}

.ep-card--list .ep-card-media {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  align-self: stretch;
}

.ep-card--list .ep-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 1.15rem 1.2rem 1.3rem;
}

.ep-card--list .ep-card-summary {
  -webkit-line-clamp: 3;
  margin-top: 0.45rem;
}

.ep-card--list .ep-card-title {
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.ep-card--list .ep-card-meta-list {
  margin-top: 0.75rem;
  gap: 0.4rem;
}

.ep-card--list .ep-card-arrow {
  display: none;
}

.ep-card--list .ep-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.62rem 1.15rem 0.62rem 1.2rem;
  border-radius: 0.45rem;
  background: var(--ep-green);
  color: var(--ep-white) !important;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.ep-card--list .ep-card-link:hover,
.ep-card--list .ep-card-link:focus-visible {
  background: var(--ep-green-dark);
  color: var(--ep-white) !important;
}

.ep-card--list .ep-card-link-icon {
  display: inline-flex;
  width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ep-white);
  color: var(--ep-green);
  line-height: 0;
}

.ep-card--list .ep-card-link-icon svg {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
}

.ep-card--list .ep-card-link:hover .ep-card-link-icon,
.ep-card--list .ep-card-link:focus-visible .ep-card-link-icon {
  color: var(--ep-green-dark);
}

/* Primary title link still covers the card; keep CTA above it for click. */
.ep-card--list .ep-card-link {
  position: relative;
  z-index: 2;
}

/* Featured spotlight ---------------------------------------------------
   A featured card must be a different *kind* of object from a list row, not
   the same card under a second heading. It keeps the big image and gains an
   accent frame and ribbon; the list below becomes compact rows. */
.ep-card--featured {
  border-color: #cfe0ca;
  box-shadow: 0 10px 30px rgba(27, 29, 52, 0.10);
}

.ep-card--featured .ep-card-media {
  aspect-ratio: 16 / 9;
}

.ep-card--featured .ep-card-title {
  font-size: 1.2rem;
}

.ep-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--ep-green);
  pointer-events: none;
  z-index: 3;
}

.ep-featured-ribbon {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--ep-green-deep);
  color: var(--ep-white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(27, 29, 52, 0.28);
}

/* The date chip steps aside for the ribbon on featured cards. */
.ep-card--featured .ep-card-date {
  top: auto;
  bottom: 0.75rem;
}


/* Legacy facts only (CTA is live again on list cards). */
.ep-card .ep-card-meta,
.ep-card .ep-card-facts {
  display: none;
}

.ep-card--featured .ep-card-link,
.ep-card--featured .ep-card-arrow {
  display: none;
}

/* ——— Contact / help ———
   Closing beat after the calendar — not another bordered card. One top rule
   separates it from the list; copy + CTA sit on a single dense row. */
.ep-contact {
  margin-top: 2.75rem;
  padding: 1.65rem 0 0.35rem;
  border-top: 1px solid var(--ep-line);
}

.ep-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.ep-contact-copy {
  min-width: 0;
}

.ep-contact h2 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ep-contact p {
  margin: 0.35rem 0 0;
  max-width: 40ch;
  color: var(--ep-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ep-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  padding: 0.62rem 1.15rem 0.62rem 1.2rem;
  border-radius: 0.45rem;
  background: var(--ep-green);
  color: var(--ep-white) !important;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.ep-contact-link:hover,
.ep-contact-link:focus-visible {
  background: var(--ep-green-dark);
  color: var(--ep-white) !important;
}

.ep-contact-link-icon {
  display: inline-flex;
  width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ep-white);
  color: var(--ep-green);
  line-height: 0;
}

.ep-contact-link-icon svg {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
}

.ep-contact-link:hover .ep-contact-link-icon,
.ep-contact-link:focus-visible .ep-contact-link-icon {
  color: var(--ep-green-dark);
}

@media (max-width: 640px) {
  .ep-contact {
    margin-top: 2.25rem;
    padding-top: 1.35rem;
  }

  .ep-contact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ——— States ——— */
.ep-state {
  padding: 1.5rem 0 2rem;
}

.ep-empty,
.ep-error {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
}

.ep-empty h2,
.ep-error h2 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.ep-empty p,
.ep-error p {
  margin: 0.65rem 0 0;
  color: var(--ep-muted);
  line-height: 1.5;
}

.ep-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.ep-skeletons {
  display: grid;
  gap: 1rem;
}

.ep-skeletons--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.ep-skeletons--list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ep-skeletons i {
  display: block;
  min-height: 280px;
  border-radius: var(--ep-radius);
  background: linear-gradient(90deg, #eceae4 0%, #f7f6f3 45%, #eceae4 100%);
  background-size: 200% 100%;
  animation: ep-shimmer 1.3s ease-in-out infinite;
}

.ep-skeletons--list i {
  min-height: 148px;
}

.ep-page.is-filtering #ep-featured,
.ep-page.is-filtering #ep-list {
  opacity: 0.55;
  transition: opacity 120ms ease;
  pointer-events: none;
}

@keyframes ep-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ep-card,
  .ep-card-media img,
  .ep-card-arrow,
  .ep-button,
  .ep-page.is-filtering #ep-featured,
  .ep-page.is-filtering #ep-list {
    transition: none !important;
  }

  .ep-card:hover .ep-card-media img,
  .ep-card:hover .ep-card-arrow {
    transform: none !important;
  }

  .ep-skeletons i {
    animation: none;
  }
}

/* ——— Detail ——— */
.ep-detail {
  padding-top: 2rem;
}

/* Detail layout -------------------------------------------------------
   Title leads at full width; the story runs down the main column while the
   practical details (when / where / cost / register) stay in reach in a
   sticky rail. Previously the body sat under a half-empty second column. */
.ep-detail-header {
  max-width: 72ch;
  margin-bottom: 1.75rem;
}

.ep-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: 1.75rem 2.5rem;
  align-items: start;
}

/* Desktop placement — the rail rides beside the art and stays with the
   reader as the body scrolls. */
.ep-detail-grid > .ep-detail-media {
  grid-column: 1;
  grid-row: 1;
}

.ep-detail-rail {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}

.ep-detail-main {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.ep-detail-rail-inner {
  position: sticky;
  top: 1.5rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--ep-line);
  border-radius: var(--ep-radius);
  background: var(--ep-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .ep-detail-rail-inner {
    transition: box-shadow 200ms ease;
  }
}

.ep-detail-media {
  overflow: hidden;
  border-radius: var(--ep-radius);
  background: var(--ep-soft-2);
  aspect-ratio: 16 / 9;
}

.ep-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-detail-fallback {
  display: grid;
  place-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #3d7a38, #1b1d34);
  color: var(--ep-white);
}

.ep-detail-copy h1 {
  margin: 0.35rem 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ep-detail-summary {
  margin: 0.85rem 0 0;
  color: var(--ep-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.ep-fact-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0 0;
}

.ep-fact-list > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: baseline;
}

.ep-fact-list dt,
.ep-fact-list dd {
  margin: 0;
  line-height: 1.45;
}

.ep-fact-list dt {
  color: var(--ep-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ep-fact-list dd {
  font-weight: 600;
}

.ep-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
}

.ep-detail-actions:empty {
  display: none;
}

/* Secondary actions: calendar / map / share ---------------------------- */
.ep-detail-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ep-detail-secondary:empty {
  display: none;
}

.ep-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--ep-line);
  border-radius: 999px;
  background: var(--ep-white);
  color: var(--ep-ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.ep-action:hover {
  border-color: var(--ep-green-dark);
  background: var(--ep-soft);
  color: var(--ep-green-deep);
}

.ep-action:focus-visible {
  outline: 3px solid var(--ep-green-dark);
  outline-offset: 2px;
}

.ep-action.is-copied {
  border-color: var(--ep-green-dark);
  color: var(--ep-green-deep);
}

.ep-action-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Status pill above the title (Happening now / Today) */
.ep-detail-status {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--ep-ink);
  color: var(--ep-white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ep-detail-status--now {
  background: #c2410c;
}

.ep-detail-status--today {
  background: var(--ep-green-deep);
}

.ep-detail-status[hidden] {
  display: none;
}

/* Rich body -----------------------------------------------------------
   Imported WordPress copy keeps its structure now, so it needs real
   typographic rules rather than one undifferentiated block of text. */
.ep-detail-body {
  margin-top: 2.25rem;
  max-width: 68ch;
  line-height: 1.7;
}

/* Spacing lives on every child, not on `* + *` — `.ep-detail-body p` is more
   specific and its `margin: 0` was silently winning, collapsing the whole
   article into one unbroken block. */
.ep-detail-body > * {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.ep-detail-body > *:last-child {
  margin-bottom: 0;
}

.ep-detail-body h2,
.ep-detail-body h3,
.ep-detail-body h4 {
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  color: var(--ep-ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ep-detail-body h2 { font-size: 1.4rem; }
.ep-detail-body h3 { font-size: 1.15rem; }
.ep-detail-body h4 { font-size: 1rem; }

.ep-detail-body p {
  color: #33384a;
}

/* Imported copy leads many paragraphs with a bold label ("WHAT: ", "WHEN: ").
   Darken it so it reads as the sub-heading it stands in for, but leave it
   `inline` — `inline-block` drops the label's trailing space and renders
   "WHAT:3v3 Sand Volleyball". */
.ep-detail-body p > strong:first-child {
  color: var(--ep-ink);
}

.ep-detail-body ul,
.ep-detail-body ol {
  padding-left: 1.35rem;
  color: #33384a;
}

.ep-detail-body li + li {
  margin-top: 0.4rem;
}

.ep-detail-body a {
  color: var(--ep-green-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ep-detail-body a:hover {
  color: var(--ep-ink);
}

.ep-detail-body blockquote {
  padding-left: 1.1rem;
  border-left: 3px solid var(--ep-green);
  color: var(--ep-muted);
  font-style: italic;
}

.ep-detail-body hr {
  height: 1px;
  margin: 2rem 0;
  border: 0;
  background: var(--ep-line);
}

.ep-detail-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.ep-detail-body th,
.ep-detail-body td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--ep-line);
  text-align: left;
}

.ep-occurrences {
  margin-top: 3rem;
}

.ep-related {
  margin-top: 4.5rem;
  padding-top: 0.5rem;
}

.ep-related h2 {
  margin: 0 0 1.15rem;
}

.ep-occurrences ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--ep-muted);
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .ep-featured-grid,
  .ep-skeletons--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Stacked: DOM order wins (art → details → body) and the rail is a plain
     block rather than a sticky column. */
  .ep-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .ep-detail-grid > .ep-detail-media,
  .ep-detail-rail,
  .ep-detail-main {
    grid-column: 1;
    grid-row: auto;
  }

  .ep-detail-rail-inner {
    position: static;
  }

  .ep-detail-body {
    margin-top: 0;
  }
}

@media (max-width: 850px) {
  .ep-filters {
    grid-template-columns: 1fr 1fr;
  }

  .ep-filters .ep-filter-actions,
  .ep-filters .ep-field--search {
    grid-column: 1 / -1;
  }

  .ep-list-grid,
  .ep-grid,
  .ep-skeletons--list,
  .ep-featured-grid,
  .ep-skeletons--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Keep image-less cards compact when they stack. */
  .ep-card--list .ep-card-media--empty {
    aspect-ratio: auto;
    min-height: 58px;
  }
}

@media (max-width: 640px) {
  .ep-page--hub {
    padding-top: 64px;
  }

  .ep-hero {
    height: auto;
    min-height: 300px;
    max-height: none;
    align-items: flex-end;
  }

  .ep-hero-inner {
    padding: 2.75rem 0 2.5rem;
  }

  .ep-page--hub > .ep-hero > .ep-container {
    width: min(100% - 2.5rem, var(--ep-container));
  }

  .ep-hero h1 {
    font-size: clamp(2.15rem, 11vw, 2.75rem);
  }

  .ep-hero-desc {
    max-width: 28ch;
  }

  .ep-filter-selects {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .ep-chips {
    margin: 0 -1rem;
    padding: 0.1rem 1rem 0.25rem;
  }

  .ep-results-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .ep-section-heading,
  .ep-section-heading--list {
    flex-direction: column;
    align-items: flex-start;
  }

  .ep-featured-grid,
  .ep-skeletons--featured {
    grid-template-columns: 1fr;
  }

  .ep-filters,
  .ep-filters--compact {
    grid-template-columns: 1fr;
  }
}

/* Mobile: same stacked Weekly News cards (1-col), not compact side-thumb rows. */
@media (max-width: 640px) {
  /* Featured: full-width spotlights, stacked. */
  .ep-featured-grid,
  .ep-skeletons--featured,
  .ep-list-grid,
  .ep-grid,
  .ep-skeletons--list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .ep-card--list {
    flex-direction: column;
  }

  .ep-card--list .ep-card-media {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
  }

  .ep-card--list .ep-card-media--empty {
    aspect-ratio: auto;
    min-height: 58px;
  }

  .ep-card--list .ep-card-body {
    padding: 1.05rem 1.1rem 1.2rem;
  }

  .ep-card--list .ep-card-title {
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .ep-card--list .ep-card-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
  }

  .ep-month-heading {
    margin-top: 1.75rem;
  }
}

/* Status flags stay available for JS, but list cards use the image badge —
   Weekly News–style stacked cards have room for the overlay. */
.ep-card-flag {
  display: none;
  align-self: flex-start;
  margin-bottom: 0.3rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--ep-ink);
  color: var(--ep-white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ep-card-flag--now {
  background: #c2410c;
}

.ep-card-flag--today {
  background: var(--ep-green-deep);
}

/* Featured rail adapts to how many items staff actually flagged.
   A fixed three-column grid left one flagged event stranded in the first
   third of the row with two empty slots beside it. */
@media (min-width: 641px) {
  .ep-featured-grid:has(> .ep-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Exactly one: a full-width horizontal spotlight rather than a lone card. */
  .ep-featured-grid:has(> .ep-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }

  .ep-featured-grid > .ep-card:only-child {
    flex-direction: row;
    align-items: stretch;
  }

  .ep-featured-grid > .ep-card:only-child .ep-card-media {
    flex: 0 0 46%;
    max-width: 46%;
    aspect-ratio: auto;
  }

  .ep-featured-grid > .ep-card:only-child .ep-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.25rem;
  }

  .ep-featured-grid > .ep-card:only-child .ep-card-title {
    font-size: 1.6rem;
  }

  .ep-featured-grid > .ep-card:only-child .ep-card-summary {
    -webkit-line-clamp: 3;
    font-size: 1rem;
  }
}
