:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #0369a1;
  --accent-soft: #f0f9ff;
  --surface: #fff;
  --radius: 16px;
}
.schedule-event {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 5px #0f172a08;
}
.schedule-event :is(p, dl, dd) { margin: 0; }
.schedule-event .event-title a, .schedule-event .performer-link { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.schedule-event { padding: 10px 14px; margin-bottom: 6px; overflow-wrap: anywhere; }
.schedule-when {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 3px 8px;
  margin-bottom: 5px;
  line-height: 1.3;
  border-radius: 9px;
  color: #075985;
  background: var(--accent-soft);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.schedule-date, .schedule-start { white-space: normal; }
.schedule-date, .schedule-start strong { font-size: 1.125rem; }
.schedule-date span, .schedule-start { font-size: .875rem; }
.schedule-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.event-tag { padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; background: #f1f5f9; color: #334155; font-size: .75rem; font-weight: 650; }
.event-tag.place-tag { color: var(--accent); background: var(--accent-soft); border-color: #bae6fd; }
.event-title { margin: 2px 0; font-size: 1.125rem; line-height: 1.28; }
.schedule-event p, .schedule-event dl { font-size: .875rem; line-height: 1.35; }
.event-venue { color: #334155; font-weight: 650; }
.schedule-event dt { color: var(--muted); }
.schedule-event dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 8px; margin-top: 2px; }
.event-performers { color: #334155; }
.schedule-event .notice { margin-top: 4px; padding: 3px 7px; border-radius: 6px; border: 0; color: #78350f; background: #fffbeb; }
.cancel-label { color: #9f1239; }
.cancelled .schedule-when { color: #9f1239; background: #fff1f2; }

.event-action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.event-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 32px;
  gap: 3px;
  padding: 2px 7px;
  white-space: nowrap;
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.event-action-calendar { color: var(--accent); background: var(--accent-soft); border-color: #bae6fd; }
a.event-action:hover { color: var(--accent); background: #e0f2fe; border-color: #7dd3fc; }
.event-action[aria-disabled="true"] { color: #64748b; background: #fff; border-style: dashed; }

@media (max-width: 420px) {
  .event-action { gap: 2px; padding-inline: 2px; font-size: .75rem; }
}
@media (max-width: 370px) {
  .event-action-bar { gap: 3px; }
  .event-action { padding-inline: 1px; }
  .event-action-calendar { flex-shrink: 1; min-width: 0; padding-block: 1px; }
  .event-calendar-label { min-width: 0; white-space: normal; line-height: 1.1; }
}

button.event-action:hover { color: var(--accent); background: #e0f2fe; border-color: #7dd3fc; }
.event-calendar-options {
  margin-top: 6px;
}
.calendar-choice-links { display: flex; flex-wrap: wrap; gap: 4px; }
.calendar-choice-links .classic-link {
  display: inline-flex;
  align-items: center;
  color: #334155;
  background: white;
  border: 1px solid #d6e0eb;
  text-decoration: none;
  min-height: 32px;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: .8125rem;
  white-space: nowrap;
}
.event-calendar-help { margin-top: 3px; color: var(--muted); font-size: .8125rem; }
.event-calendar-help summary { width: fit-content; padding-block: 3px; cursor: pointer; }
.event-calendar-options .hint { margin-top: 4px; }

@media (min-width: 300px) and (max-width: 370px) {
  .event-action-bar { flex-wrap: nowrap; }
}

@media (max-width: 600px) { .schedule-event { padding: 8px 10px; } }
