/* Events page: the list of upcoming events and the details box. */
.ev-wrap { max-width: 1100px; margin: 0 auto 3rem; padding: 0 1rem; }
.ev-hint { color: var(--text-muted); margin-bottom: 0.75rem; }
.ev-empty { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; color: var(--text-muted); }
.ev-list { list-style: none; display: grid; gap: 0.75rem; }
/* Date, Time, Event, Location, Details: one column each on wider screens. Every cell sits in the middle of its row. */
.ev-item, .ev-head { display: grid; grid-template-columns: 15rem 6.5rem minmax(0, 1.2fr) minmax(0, 1fr) 6.5rem; gap: 1rem; align-items: center; }
.ev-item > span { align-self: center; }
/* Wide enough for the longest date ("Wednesday, September 30, 2026") on one line. */
@media (min-width: 1100px) {
  .ev-item, .ev-head { grid-template-columns: 19rem 6.5rem minmax(0, 1.2fr) minmax(0, 1fr) 6.5rem; }
  .ev-date { white-space: nowrap; }
}
.ev-head { padding: 0 1.25rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.ev-item {
  width: 100%; text-align: left;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem;
  box-shadow: var(--shadow); font: inherit; color: inherit; cursor: pointer;
}
.ev-item:hover, .ev-item:focus-visible { border-color: var(--navy); box-shadow: var(--shadow-lg); outline: none; }
.ev-date { font-weight: 700; color: var(--navy); }
.ev-time, .ev-loc { color: var(--text-muted); }
.ev-room { display: block; font-size: 0.9em; }
.ev-name { font-weight: 700; font-size: 1.15rem; }
.ev-more { background: var(--yellow); color: var(--navy-dark); font-weight: 700; border-radius: 999px; padding: 0.35rem 0.9rem; white-space: nowrap; text-align: center; }
@media (max-width: 860px) {
  .ev-head { display: none; }
  .ev-item { grid-template-columns: 1fr; gap: 0.35rem; }
  .ev-name { font-size: 1.2rem; }
  .ev-more { justify-self: start; margin-top: 0.35rem; }
}

.ev-dialog {
  margin: auto; width: min(680px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); border: 0; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-lg); color: var(--text); background: var(--white);
}
.ev-dialog::backdrop { background: rgba(10, 20, 50, 0.6); }
.ev-body { display: grid; gap: 0.75rem; }
.ev-title { color: var(--navy); font-size: 1.6rem; line-height: 1.2; padding-right: 2.5rem; }
.ev-meta { font-weight: 700; }
.ev-place { color: var(--text-muted); margin-top: -0.5rem; }
.ev-photo { display: block; max-width: 100%; max-height: 360px; width: auto; height: auto; object-fit: contain; justify-self: center; border-radius: var(--radius); } /* the whole picture, never cropped */
.ev-desc { white-space: pre-line; }
.ev-note { margin-top: 0.75rem; }
.ev-map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); }
.ev-maplink { justify-self: start; }
.ev-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--navy);
}
.ev-close:hover, .ev-close:focus-visible { background: var(--bg); outline: 2px solid var(--navy); }
