/* Upcoming events (Speaking & Media, Matt 2026-10-21): event cards at the top of the page, so the
   next talks are the first thing a visitor sees after the heading. Each card leads with a calendar
   date block in Deep Coastal Blue, then the event, Ashley's talk, when and where, and its buttons.
   Cream cards on the sand band, two across from 60rem; below 30rem the date block becomes a short
   strip above the text so the words keep the card's full width. Loaded only on Speaking & Media,
   after theme.css; every value comes from its tokens. */

.event-cards { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.section__inner > .event-cards { max-width: none; } /* the base sheet caps a list at the reading measure; a row of cards takes the full section width */
@media (min-width: 60rem) { .event-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } } /* two across only where each card stays roomy (from 960px); a tablet gets one full-width card per row */

.event-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "date text"; column-gap: 1.25rem;
  margin: 0; padding: 1.5rem; background: var(--t-cream); border-radius: var(--t-radius); box-shadow: var(--shadow-low);
}
.event-card__date {
  grid-area: date; align-self: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 4.75rem; margin: 0; padding: 0.65rem 0.6rem 0.75rem;
  border-radius: var(--t-radius); background: var(--t-blue); color: var(--t-cream);
  text-align: center; line-height: 1.1;
}
.event-card__month, .event-card__weekday { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.event-card__day { font-family: "Newsreader", Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1.05; margin: 0.1rem 0 0.15rem; white-space: nowrap; }

.event-card__text { grid-area: text; display: flex; flex-direction: column; min-width: 0; }
.event-card__text > * { margin: 0; }
.event-card__title { font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--t-blue); }
.event-card__talk { margin-top: 0.4rem; }
.event-card__meta { margin-top: 0.55rem; font-size: 0.9375rem; line-height: 1.5; color: var(--t-seaglass-text); }
.event-card__nowrap { white-space: nowrap; } /* a date or time range never breaks at its dash */
.event-card__actions { margin-top: auto; padding-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.section__inner > .event-cards__note { margin-top: 1.25rem; }

/* Narrow phones: the date block becomes a strip above the text. */
@media (max-width: 29.9375rem) {
  .event-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "text"; row-gap: 0.9rem; padding: 1.25rem; }
  .event-card__date { flex-direction: row; align-items: baseline; gap: 0.45rem; justify-self: start; min-width: 0; padding: 0.4rem 0.8rem; }
  .event-card__day { font-size: 1.35rem; margin: 0; }
}
