/* Events page: event cards, the empty state, the recent list and the ivory
   ground. Frames, PanelHead, LogoStrip and the demo band are shared. */

.ev-ivory {
  background: var(--kit-ivory-tint);
  border-top: 1px solid var(--kit-ivory-medium);
}

.ev-group + .ev-group { margin-top: var(--l-section-gap, 48px); }

.ev-group .panel-head { margin-bottom: 24px; }

/* A short last row stays white: each card draws its own hairline instead of
   the grid's grey ground showing through the empty cells. */
.ev-grid { background: var(--kit-white); }
.ev-grid > li { box-shadow: 0 0 0 1px var(--frame-line); }

.ev-card { display: flex; flex-direction: column; }

.ev-card h4 {
  margin: 20px 0 0;
  font-size: var(--type-h4);
  font-weight: var(--type-heading-weight);
  line-height: var(--type-h4-lh);
  color: var(--kit-text-strong);
}

.ev-card p:not(.frame-num) {
  margin: 10px 0 0;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}

.ev-card .ev-meta { color: var(--kit-text-strong); }

.ev-link {
  margin-top: auto;
  padding-top: 20px;
  font-size: var(--type-small);
  font-weight: 500;
  color: var(--kit-teal-medium);
  text-decoration: none;
}

.ev-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* No upcoming events. */
.ev-empty { padding: 24px; }

@media (min-width: 1024px) {
  .ev-empty { padding: 32px; }
}

.ev-empty h3 {
  margin: 20px 0 0;
  font-size: var(--type-h4);
  font-weight: var(--type-heading-weight);
  line-height: var(--type-h4-lh);
  color: var(--kit-text-strong);
}

.ev-empty p:not(.frame-num) {
  max-width: var(--l-text);
  margin: 10px 0 24px;
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}

/* Recent events: a plain list, one row per event. */
.ev-recent {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--kit-stroke-light);
}

.ev-recent li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--kit-stroke-light);
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}

@media (min-width: 1024px) {
  .ev-recent li {
    grid-template-columns: 120px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: baseline;
  }
}

.ev-recent-kind {
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  letter-spacing: var(--type-label-tracking);
  color: var(--kit-teal-medium);
}

.ev-recent-title {
  font-weight: 500;
  color: var(--kit-text-strong);
}
