/* ==========================================================================
   events.css — Events page (custom-events.hbs), slug: events only.
   Unique treatment within the light editorial system: photo-led hero,
   purple featured panel for the most recent event, date-rail rows for
   the rest — a calendar list, deliberately unlike the News card grid.
   Spacing from the --space token scale only.
   ========================================================================== */

.ev .ev-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
  padding-top: var(--space-8);
}

.ev .ev-kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-sage);
}
.ev .ev-kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--ed-sage);
}

.ev .ev-h1 {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ed-purple);
}

.ev .ev-lead {
  margin: var(--space-4) 0 0;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.45;
  color: var(--ed-ink);
}

/* Figure owns the ratio; the img absolute-fills it (house rule). */
.ev .ev-hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}
.ev .ev-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* --- Featured (most recent) event: full-width purple panel ------------- */
.ev .ev-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  margin-top: var(--space-7);
  background: var(--ed-purple);
  border-radius: 16px;
  overflow: hidden;
}
.ev .ev-feature__media {
  position: relative;
  margin: 0;
  min-height: 320px;
  min-width: 0;
}
.ev .ev-feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ev .ev-feature__body {
  padding: var(--space-6);
  align-self: center;
  min-width: 0;
}
.ev .ev-feature__label {
  display: inline-block;
  margin: 0 0 var(--space-4);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ev .ev-feature__date {
  margin: 0 0 var(--space-3);
  color: #fff;
}
.ev .ev-feature__day {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.ev .ev-feature__mon {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ev .ev-feature__title {
  margin: 0 0 var(--space-3);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}
.ev .ev-feature__title a {
  color: #fff;
  text-decoration: none;
}
.ev .ev-feature__title a:hover {
  text-decoration: underline;
}
.ev .ev-feature__excerpt {
  margin: 0 0 var(--space-5);
  color: rgba(255, 255, 255, 0.85);
}
.ev .ev-feature__link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Event rows: date rail + text + thumbnail --------------------------- */
.ev .ev-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.ev .ev-row {
  display: grid;
  grid-template-columns: 88px 1fr 220px;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
  border: 1px solid var(--ed-line);
  border-radius: 16px;
  background: #fff;
}
.ev .ev-date {
  margin: 0;
  padding: var(--space-3) var(--space-2);
  border-radius: 12px;
  background: var(--ed-panel);
  text-align: center;
}
.ev .ev-date__day {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ed-purple);
}
.ev .ev-date__mon {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-grey);
}
.ev .ev-date__yr {
  display: block;
  font-size: 12px;
  color: var(--ed-grey);
}
.ev .ev-row__body {
  min-width: 0;
}
.ev .ev-row__title {
  margin: 0 0 var(--space-2);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
}
.ev .ev-row__title a {
  color: var(--ed-purple);
  text-decoration: none;
}
.ev .ev-row__title a:hover {
  text-decoration: underline;
}
.ev .ev-row__excerpt {
  margin: 0;
  font-size: 15px;
  color: var(--ed-grey);
}
.ev .ev-row__media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}
.ev .ev-row__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Host your own event panel ------------------------------------------- */
.ev .ev-host {
  margin-top: var(--section-space);
  padding: var(--space-6);
  border-radius: 16px;
  background: var(--ed-panel);
}
.ev .ev-host__title {
  margin: 0 0 var(--space-3);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ed-purple);
}
.ev .ev-host__text {
  margin: 0 0 var(--space-5);
  max-width: 62ch;
}
.ev .ev-host__button {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  border-radius: 12px;
  background: var(--ed-purple);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.ev .ev-host__button:hover {
  background: var(--ed-purple-dark);
}

.ev .ev-note {
  margin-top: var(--section-space);
  font-size: 15px;
  color: var(--ed-grey);
}

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 860px) {
  .ev .ev-hero {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding-top: var(--space-7);
  }
  .ev .ev-feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .ev .ev-feature__media {
    min-height: 220px;
  }
  .ev .ev-feature__body {
    padding: var(--space-5);
  }
  .ev .ev-row {
    grid-template-columns: 72px 1fr;
    padding: var(--space-4);
  }
  .ev .ev-row__media {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}
