/* Public Events list and event pages. Tokens live in base.css. */

.breadcrumb { color: var(--color-muted); margin-bottom: var(--space-2); }
.empty { color: var(--color-muted); }

.events-header { margin-bottom: var(--space-5); }
.chips { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  padding: var(--space-1) var(--space-5);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}
.chips a[aria-current="true"] { background: var(--color-pond); border-color: var(--color-pond); color: var(--color-pond-text); }

.year-heading {
  margin-top: var(--space-7);
  padding-bottom: var(--space-2);
  border-bottom: 3px solid var(--color-wood);
  max-width: 10ch;
  color: var(--color-wood);
}
.event-cards { display: grid; gap: var(--space-5); margin-bottom: var(--space-6); }
@media (min-width: 768px) { .event-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .event-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.event-card { min-width: 0; }
/* The card (surface, photo, title, date line, the no-photo top edge from
   inspection row 41) is in site.css. */
.event-card__link { display: flex; flex-direction: column; height: 100%; }
.event-card__body { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-5) var(--space-5); }
.event-card__meta, .event-card__sponsors { color: var(--color-muted); font-size: var(--text-sm); }
.event-card__badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.event-card--cancelled .event-card__photo { filter: grayscale(0.8); opacity: 0.8; }

.tag {
  display: inline-block;
  justify-self: start;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-notice-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 700;
}
.tag--cancelled { background: var(--color-error-bg); color: var(--color-error); }
.tag--kind { font-weight: 400; background: transparent; border: var(--border-width) solid var(--color-border); color: var(--color-muted); }
.tag--community { border-color: var(--color-pond); color: var(--color-link); }

/* One event */
.site-main:has(.event-hero) { padding-top: 0; }
.event-hero {
  display: block;
  width: 100%;
  max-height: 70vh;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: var(--space-6);
}
.cancelled-banner {
  padding: var(--space-3) var(--space-4);
  border-left: 6px solid var(--color-error);
  background: var(--color-error-bg);
  color: var(--color-error);
  border-radius: var(--radius-sm);
  font-size: var(--text-lg);
}
.event-when { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.event-where, .event-program { color: var(--color-muted); }
.event-body { margin-bottom: var(--space-5); }
.event-numbers {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-left: 4px solid var(--color-wood);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-surface);
  font-weight: 700;
  font-size: var(--text-lg);
}
.event-photos, .sponsor-thanks, .share { margin-top: var(--space-7); }
.sponsor-thanks .logo-grid { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 11rem)); }
.sponsor-thanks__name { display: block; margin-top: var(--space-2); font-size: var(--text-sm); text-align: center; }
.event-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }
.share-copy { display: grid; gap: var(--space-2); max-width: 32rem; }
.share-copy label { font-weight: 700; }
.share-copy input {
  width: 100%;
  min-height: var(--tap-target);
  padding: var(--space-2) var(--space-3);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.share-copy .button { justify-self: start; }

@media print {
  .chips, .event-cta, .share, .edit-link, .viewer { display: none; }
  .event-hero { max-height: 40vh; }
}

/* The hidden attribute wins over component display rules. */
[hidden] { display: none !important; }
