/* The shared event card (06-04, 06-UI-SPEC "Event card"): a .panel row with a date block and a
   content stack. The name is the one link; its ::after stretches over the card so the whole card is
   one 44px-plus target and one focus stop. Hover underlines the name only: no lift, no shadow.
   Light only, no dark mode (CLAUDE.md). */

.event-card {
  position: relative;
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  align-items: flex-start;
}

.event-card-date {
  flex: none;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ink);
}

.event-card-month {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--muted);
}

.event-card-day {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.event-card-weekday,
.event-card-days {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.event-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.event-card-title {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.event-card-link {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.event-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.event-card-link:hover,
.event-card-link:focus-visible {
  text-decoration: underline;
}

/* The stretched link covers the card, so the focus ring goes on the card. */
.event-card:has(.event-card-link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.event-card-flags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-weight: 600;
}

.event-card-meta,
.event-card-org {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
}

.event-card-place {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.event-card-place svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.event-card-distance {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
}

.event-card-chips {
  list-style: none;
  margin: var(--space-xs) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.event-card-chips .chip svg {
  width: 16px;
  height: 16px;
  flex: none;
}
