/* ---------- Intro ---------- */

.evs-intro { padding: clamp(40px, 7vh, 88px) 0 clamp(56px, 8vh, 96px); }
.evs-intro .h1 { font-size: clamp(58px, 9.4vw, 128px); margin: 20px 0 28px; text-wrap: balance; }
.evs-intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 56px;
}
.evs-intro-row .lede { max-width: 33em; }
.evs-intro-row .btn { flex: none; }
@media (max-width: 860px) {
  .evs-intro-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Series filter: square chips ---------- */

.evs-filters {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.evs-filters-label { color: var(--muted-dark); }
.evs-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.evs-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 12px 15px 11px 17px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.evs-chip:hover { background: var(--paper-2); }
.evs-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.evs-chip-n { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted-dark); }
.evs-chip[aria-pressed="true"] .evs-chip-n { color: var(--muted); }
.evs-filter-note { grid-column: 2; font-size: 15px; line-height: 1.45; color: var(--muted-dark); max-width: 44em; }
.evs-filter-note strong { color: var(--ink); font-weight: 700; }

@media (max-width: 760px) {
  .evs-filters { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .evs-filter-note { grid-column: 1; }
  .evs-chips { gap: 8px; }
  .evs-chip { padding: 11px 12px 10px 14px; gap: 8px; letter-spacing: 0.12em; }
}

/* ---------- Lists ---------- */

.evs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.evs-head .eyebrow { margin-bottom: 16px; }
.dark .evs-head .eyebrow { color: var(--muted); }
.evs-past .evs-head .eyebrow { color: var(--muted-dark); }

.evs-empty {
  display: grid;
  gap: 12px;
  padding: 40px 0 44px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.evs-empty .h3 { text-wrap: balance; max-width: 18em; }
.evs-empty p:not(.display) { max-width: 36em; }
.dark .evs-empty p:not(.display) { color: var(--muted); }
.dark .evs-empty .text-link { color: var(--paper); }


/* ---------- "After that" tile in the grid ---------- */

.evs-next { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; }
.evs-next-slot {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 2px solid currentColor;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dark .evs-next-slot .eyebrow { color: var(--muted); }
.evs-next-title { font-size: clamp(34px, 3.4vw, 46px); line-height: 0.95; text-wrap: balance; }
.evs-next-meta { grid-template-columns: minmax(0, 1fr); }
.evs-next:hover .evs-next-slot { background: var(--paper); color: var(--ink); }
.evs-next:hover .evs-next-slot .eyebrow { color: var(--muted-dark); }

/* When the tile would sit alone or share a row, it widens into a band instead of leaving a hole. */
.ev-grid > .evs-next:nth-child(3n + 1) { grid-column: 1 / -1; }
.ev-grid > .evs-next:nth-child(3n + 2) { grid-column: span 2; }
.ev-grid > .evs-next:nth-child(3n + 1) .evs-next-slot,
.ev-grid > .evs-next:nth-child(3n + 2) .evs-next-slot { aspect-ratio: auto; flex: 1; min-height: 240px; }

@media (max-width: 980px) {
  .ev-grid > .evs-next:nth-child(n) { grid-column: auto; }
  .ev-grid > .evs-next:nth-child(n) .evs-next-slot { aspect-ratio: 4 / 5; flex: none; min-height: 0; }
  .ev-grid > .evs-next:nth-child(odd) { grid-column: 1 / -1; }
  .ev-grid > .evs-next:nth-child(odd) .evs-next-slot { aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 560px) {
  .ev-grid > .evs-next:nth-child(n) { grid-column: auto; }
  .ev-grid > .evs-next:nth-child(n) .evs-next-slot { aspect-ratio: auto; min-height: 220px; }
}

/* Square poster art cropped to 4:5: keep the side where their type sits. */

/* Phones: the archive packs two to a row so twelve past dates don't read as an endless scroll. */
@media (max-width: 560px) {
  .evs-past .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .evs-past .ev-meta { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; padding-top: 12px; }
  .evs-past .ev-meta .when { --when-size: 20px; min-width: 0; }
  .evs-past .ev-kicker { font-size: 10px; letter-spacing: 0.12em; }
  .evs-past .ev-title { font-size: 22px; }
  .evs-past .ev-venue { font-size: 13px; }
  .evs-past .ev-flags { top: 8px; left: 8px; }
  .evs-past .ev-flags .tag { font-size: 10px; padding: 5px 9px 4px; letter-spacing: 0.1em; }
}

/* Card times stay whole ("7-8 PM"); see keepTime() in the page script. */
