/* Workshops: the public list and page, and their console pages.
   Built on site.css/admin.css tokens and components; this file only adds
   the date tile, the event layout and a few small pieces. Numbers (dates,
   places, prices) use the body font: Young Serif's 0 reads as an o. */

/* ------------------------------------------------------------ list */
.event-grid { align-items: start; }

.past-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 640px; }
.past-list a {
  display: flex; gap: 16px; align-items: baseline; min-height: var(--tap); padding: 8px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.past-list a:hover { color: var(--green); }
.past-date { flex: 0 0 5.5em; color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------ one workshop */
.event-page > .alert { margin-bottom: 16px; }

.event-layout { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: minmax(0, 1fr); }
.event-photo { border-radius: var(--radius-lg); }
.event-intro h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-bottom: .3em; }
.event-intro .lede { margin-bottom: 0; }
.event-about { max-width: none; }
@media (min-width: 900px) {
  .event-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "photo intro" "about book";
    column-gap: clamp(32px, 4vw, 56px);
  }
  .event-photo { grid-area: photo; }
  .event-intro { grid-area: intro; align-self: center; }
  .event-about { grid-area: about; }
  .event-book { grid-area: book; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
}

.event-facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.event-facts li { display: flex; gap: 12px; align-items: flex-start; }
.event-fact-icon {
  flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green-soft); color: var(--green);
}
.event-fact-icon svg { width: 18px; height: 18px; }
.event-facts a { font-weight: 500; }
.event-facts .price { font-size: 1.15rem; }

.booking-card { border-radius: var(--radius-lg); }
.booking-card h2 { margin: 0; }
.place-choices { --min: 76px; }
.place-choices .choice-body { justify-items: center; text-align: center; padding: 10px 8px; }
.place-choices .choice-title { font-family: var(--font-body); font-size: 1.25rem; }

/* The phone's "Book a place" bar; beside the form on wide screens it is not needed. */
@media (min-width: 900px) { .event-sticky { display: none; } }

/* ------------------------------------------------------------ console */
.event-row { gap: 14px; }
.event-row .row-title { white-space: normal; overflow-wrap: anywhere; }
.row-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.row-tags:empty { display: none; }
.places-meter { width: 72px; height: 6px; }
.past-rows .event-row { opacity: .85; }
.event-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.event-more .menu-panel { min-width: 260px; }
.event-more > summary { min-height: 48px; }
.switches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tile-of { font-size: .55em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bookings-table td:last-child { width: 1%; white-space: nowrap; }
.booking-who { overflow-wrap: anywhere; }
.cancel-box > summary { list-style: none; cursor: pointer; }
.cancel-box > summary::-webkit-details-marker { display: none; }
.cancel-box[open] > summary { background: var(--danger-soft); color: var(--danger); }
.cancel-box .form { margin-top: 10px; min-width: min(280px, 70vw); gap: 10px; white-space: normal; }
.cancel-box textarea { min-height: 72px; }
@media (max-width: 640px) {
  .bookings-table td:last-child { width: auto; justify-content: flex-end; }
  .cancel-box .form { min-width: 0; }
}
.row-item .cancel-box { text-align: left; }
.event-times { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.event-remove-photo { margin-top: 12px; }
.event-uploader { margin-top: 16px; }
.event-photo-preview { margin-top: 10px; }
