/* Storefront events: the list and the event page. Builds on ui.css (tokens, pills, banner, bar, sheet, stepper). */

/* ---------- list ---------- */
.ev-list-page { max-width: 72rem; }
.ev-list-title { margin: 4px 0 8px; font-size: 2.8rem; line-height: 1.2; }
.ev-group__title { margin: 28px 0 4px; font-family: var(--ui-font-mono); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-muted); }
.ev-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ui-line); }
.ev-list > li { border-bottom: 1px solid var(--ui-line); }
.ev-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; color: var(--ui-text); text-decoration: none; }
.ev-row:hover .ev-row__title { text-decoration: underline; text-underline-offset: 4px; }
.ev-date { flex: none; width: 48px; padding-top: 2px; text-align: center; font-family: var(--ui-font-mono); line-height: 1.1; }
.ev-date__day { display: block; font-size: 2.4rem; font-weight: 700; }
.ev-date__month { display: block; margin-top: 2px; font-size: 1.2rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ui-signal); }
.ev-thumb { flex: none; width: 72px; height: 72px; border-radius: var(--ui-radius-sm); overflow: hidden; background: var(--ui-surface-2); }
.ev-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-row__main { flex: 1; min-width: 0; }
.ev-row__title { margin: 0; font-family: var(--ui-font-mono); font-size: 1.6rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ev-row__venue { margin: 2px 0 0; font-size: 1.4rem; color: var(--ui-muted); overflow-wrap: anywhere; }
.ev-row__price { margin: 4px 0 0; font-family: var(--ui-font-mono); font-size: 1.4rem; font-weight: 600; }
.ev-row__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-empty { margin: 32px 0; color: var(--ui-muted); }
@media screen and (min-width: 750px) {
  .ev-thumb { width: 96px; height: 96px; }
  .ev-date { width: 64px; }
  .ev-row__title { font-size: 1.8rem; }
}

/* ---------- event page ---------- */
.ev-page { max-width: 118rem; margin: 0 auto; }
.ev-hero { background: var(--ui-surface); }
.ev-hero img { display: block; width: 100%; max-height: 38vh; object-fit: cover; aspect-ratio: 1 / 1; }
.ev-hero--empty { aspect-ratio: 16 / 9; }
.ev-body { padding-top: 20px; }
.ev-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ev-h1 { margin: 0 0 10px; font-size: 2.8rem; line-height: 1.15; overflow-wrap: anywhere; }
.ev-when, .ev-doors { margin: 0; font-family: var(--ui-font-mono); font-weight: 700; font-size: 1.7rem; color: var(--ui-signal); line-height: 1.4; }
.ev-doors { font-size: 1.5rem; font-weight: 600; }
.ev-venue {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 14px; min-height: var(--ui-tap);
  color: var(--ui-text); text-decoration: none; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm);
}
.ev-venue:hover { border-color: var(--ui-line-strong); }
.ev-venue svg { flex: none; width: 20px; height: 20px; color: var(--ui-muted); }
.ev-venue__name { display: block; font-family: var(--ui-font-mono); font-weight: 600; font-size: 1.5rem; }
.ev-venue__addr { display: block; font-size: 1.4rem; color: var(--ui-muted); }
.ev-venue__go { margin-left: auto; flex: none; font-family: var(--ui-font-mono); font-size: 1.2rem; font-weight: 600; color: var(--ui-muted); white-space: nowrap; }
.ev-banner { margin-top: 18px; }
.ev-banner__note { margin: 10px 0 0; font-family: var(--ui-font-mono); font-size: 1.3rem; color: var(--ui-muted); }
.ev-desc { margin-top: 22px; font-size: 1.6rem; color: rgba(242, 242, 242, 0.88); overflow-wrap: anywhere; }
.ev-desc p { margin: 0 0 1em; }
.ev-desc a { color: var(--ui-text); }
@media screen and (min-width: 990px) {
  .ev-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; padding: 32px 32px 0; }
  .ev-hero { position: sticky; top: calc(var(--ui-header-h) + 16px); border-radius: var(--ui-radius); overflow: hidden; }
  .ev-hero img { max-height: calc(100vh - 140px); aspect-ratio: 4 / 5; }
  .ev-body { padding: 0 0 48px; }
  .ev-h1 { font-size: 3.6rem; }
}

/* ---------- ticket sheet ---------- */
.tt-list { margin: 0; padding: 0; list-style: none; }
.tt { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ui-line); }
.tt:last-child { border-bottom: 0; }
.tt__main { flex: 1; min-width: 0; }
.tt__name { display: block; font-family: var(--ui-font-mono); font-weight: 700; font-size: 1.6rem; line-height: 1.3; overflow-wrap: anywhere; }
.tt__price { display: block; margin-top: 2px; font-family: var(--ui-font-mono); font-size: 1.5rem; font-weight: 600; }
.tt__left { display: block; margin-top: 2px; font-size: 1.3rem; color: var(--ui-warn); }
.tt.is-out .tt__name, .tt.is-out .tt__price { color: var(--ui-muted); }
.tt-note { margin: 12px 0 0; font-size: 1.4rem; color: var(--ui-muted); }
.tt-error { margin: 12px 0 0; padding: 10px 12px; font-size: 1.4rem; color: var(--ui-bad); background: var(--ui-bad-tint); border-radius: var(--ui-radius-sm); }
.tt-error[hidden] { display: none; }
.tt-foot { display: flex; align-items: center; gap: 12px; width: 100%; }
.tt-foot__sum { flex: 1; min-width: 0; font-family: var(--ui-font-mono); font-weight: 700; font-size: 1.5rem; line-height: 1.3; }
.tt-foot__sum small { display: block; min-height: 1.6em; font-family: var(--ui-font-body); font-weight: 600; font-size: 1.3rem; color: var(--ui-signal); }
.tt-foot .ui-btn { flex: none; min-width: 140px; }

/* the Get tickets bar: a centred button on wide screens rather than one across the whole window */
@media screen and (min-width: 750px) {
  .ev-page ~ .ui-bar { justify-content: center; }
  .ev-page ~ .ui-bar > .ui-btn:only-child { max-width: 420px; margin: 0; }
}
