/* ── Clickable event card ────────────────────────────────────────────────────── */
.event-card { position: relative; }
.event-card-stretch {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
.event-card-footer { position: relative; z-index: 1; }

/* ── Event card image ────────────────────────────────────────────────────────── */
.event-card-image {
  margin: -24px -24px 16px;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  max-height: 200px;
}
.event-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* ── Event card link row ─────────────────────────────────────────────────────── */
.event-link-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.event-link-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 14px;
  font-size: 0.8rem;
}
.event-link-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* Make event title links unstyled */
.event-card h3 a {
  color: inherit; text-decoration: none;
}
.event-card h3 a:hover { text-decoration: underline; }

/* ── Event detail page ───────────────────────────────────────────────────────── */
.event-detail {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px;
}

.event-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  transition: color 130ms;
}
.event-back-link:hover { color: var(--ink); }

.event-detail-image {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  max-height: 420px;
}
.event-detail-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.event-detail-header {
  display: flex; align-items: flex-start; gap: 20px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-sm);
}
.event-detail-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1;
}

/* Larger date badge for detail page */
.event-date-badge--lg {
  width: 68px; height: 68px; flex-shrink: 0;
}
.event-date-badge--lg .event-month { font-size: 0.65rem; }
.event-date-badge--lg .event-day   { font-size: 1.8rem; }

.event-detail-description {
  padding: clamp(24px, 4vw, 36px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-sm);
}
.event-detail-description p {
  color: var(--ink-2); font-size: 0.95rem; line-height: 1.8;
  margin: 0 0 14px;
}
.event-detail-description p:last-child { margin-bottom: 0; }

.event-detail-links {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.event-detail-link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 20px; font-size: 0.875rem;
}
.event-detail-link-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

@media (max-width: 560px) {
  .event-detail-header { flex-direction: column; gap: 14px; }
  .event-detail-link-btn { width: 100%; justify-content: center; }
}
