/* ──────────────────────────────────────────────────────────────
   Event detail — Haus Vajbz.  Mobile first; desktop splits into a
   sticky event panel (photo, red band, buy box) on the left and the
   editorial column (about, lineup, venue, organizer) on the right.
   Reads only tokens from tokens.css + hv/theme.css: radius 0, no shadows.
   ────────────────────────────────────────────────────────────── */

.ev { display: block; }

/* ── Hero: photo, then the red band with the two-tone title ── */
.ev-hero {
  position: relative; background: var(--ink);
  /* Full-bleed on phones/tablets: the panel sits inside .hv-wrap's gutter,
     so pull it back out to the screen edges. Desktop grid resets this. */
  margin-inline: calc(-1 * var(--gutter));
}
.ev-hero__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.ev-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(0.95); }
.ev-hero__empty {                      /* no photo: ink field with the wordmark */
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-size: clamp(2rem, 12vw, 4rem);
}
.ev-hero__nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--gutter) * 0.75) var(--gutter);
  padding-top: calc(var(--gutter) * 0.75 + env(safe-area-inset-top));
}
.ev-hero__nav .hv-icon-btn { border-color: var(--paper); color: var(--paper); background: rgba(13, 13, 13, 0.55); }
.ev-hero__nav .hv-icon-btn:hover { background: var(--paper); color: var(--ink); }

.ev-band { padding: 1.1rem var(--gutter) 1.25rem; background: var(--bg); color: var(--text); }
.ev-band .hv-tag { margin-bottom: 0.7rem; }
.ev-band__title { font-size: clamp(2rem, 9.5vw, 3.4rem); }
.ev-band__meta { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; color: var(--text-dim); }
.ev-band__meta span + span::before { content: '·'; margin-right: 0.8rem; }

/* ── Buy box: fixed bottom bar on mobile, in-flow under the band on desktop ── */
.ev-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--paper); color: var(--ink);
  border-top: 2px solid var(--ink);
  padding: 0.8rem var(--gutter) calc(0.8rem + env(safe-area-inset-bottom));
}
.ev-buy__price { font-size: 1.35rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ev-buy__price small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.35rem; }
.ev-buy__price--sm { font-size: 1.05rem; line-height: 1.2; }
.ev-buy__price .hv-tag { font-size: 0.8rem; padding: 0.5em 0.7em 0.45em; }
.ev-buy__note { margin-top: 0.4rem; }
.ev-buy .hv-btn { width: auto; min-width: 9.5rem; flex: none; }
body.ev-has-bar .ev-main { padding-bottom: var(--ev-bar-h, 96px); }

/* ── Waitlist (sold out): the buy box becomes a form ────────── */
.ev-waitlist { width: 100%; }
.ev-waitlist .waitlist-form { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 0.6rem; align-items: center; }
.ev-waitlist .hv-tag, .ev-waitlist .ev-buy__note { grid-column: 1 / -1; }
.ev-waitlist .hv-tag { justify-self: start; }
.ev-waitlist .hv-input { min-width: 0; padding: 0.55rem 0.7rem; }
.ev-waitlist .hv-btn { min-width: 0; }
.ev-waitlist .ev-buy__note { margin-top: 0; color: var(--text-dim); }

/* ── Notices: lock error (red) and the waitlist flash (ink) ───── */
.ev-notice { margin-top: 1rem; padding: 0.9rem 1rem; background: var(--red); color: var(--paper); border-left: 4px solid var(--red-deep); }
.ev-notice p { margin: 0; font-family: var(--font-sub); font-weight: 600; }
.ev-notice--ok { background: var(--ink); border-left-color: var(--red); }

/* ── Sections ────────────────────────────────────────────────── */
.ev-main { padding-top: 0.4rem; }
.ev-section { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.ev-section:last-child { border-bottom: 0; padding-bottom: 2.4rem; }
.ev-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.ev-section__title { font-size: 1.05rem; }

/* about: clamped, mono "read more" toggle */
.ev-about { color: var(--ink-2); max-width: 62ch; }
.ev-about p { margin: 0; }
.ev-about p + p { margin-top: 0.7rem; }
.ev-about.is-clamped { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.ev-more {
  display: none; margin-top: 0.8rem; padding: 0;
  border: 0; background: transparent; color: var(--red); cursor: pointer;
}
.ev-more.is-visible { display: inline-block; }
.ev-more:hover { color: var(--red-deep); }

/* lineup: ruled rows, square avatar, name, time, follow */
.ev-lineup > li { align-items: center; gap: 0.9rem; }
.ev-avatar {
  flex: none; width: 44px; height: 44px; overflow: hidden;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-hero); font-weight: 900; font-size: 1.1rem; text-transform: uppercase;
}
.ev-avatar img, .ev-avatar picture { width: 100%; height: 100%; object-fit: cover; }
.ev-lineup__name { flex: 1; min-width: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.ev-lineup__time { flex: none; font-variant-numeric: tabular-nums; }
.ev-follow {
  flex: none; display: inline-flex; align-items: center; gap: 0.4em;
  min-height: 34px; padding: 0.4rem 0.7rem;
  border: 2px solid var(--ink); color: var(--ink); text-decoration: none;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ev-follow:hover { background: var(--ink); color: var(--paper); }
.ev-tba { margin: 0; }

/* venue: text left, square photo right */
.ev-venue { display: flex; gap: 1rem; align-items: flex-start; }
.ev-venue__info { flex: 1; min-width: 0; }
.ev-venue__name { font-size: 1.5rem; }
.ev-venue__addr { margin: 0.3rem 0 0.9rem; color: var(--ink-2); }
.ev-venue__btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ev-venue__doors { margin-top: 0.9rem; }
.ev-venue__thumb { flex: none; width: 112px; height: 112px; overflow: hidden; background: var(--ink); }
.ev-venue__thumb img, .ev-venue__thumb picture { width: 100%; height: 100%; object-fit: cover; }

/* organizer */
.ev-org { display: flex; align-items: center; gap: 0.9rem; }
.ev-org__logo { width: 48px; height: 48px; font-size: 1.2rem; }
.ev-org__name { flex: 1; min-width: 0; font-size: 1.05rem; }
.ev-org__links { display: flex; gap: 0.5rem; }

/* toast: ink band that slides over the bottom bar */
.ev-toast {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(var(--ev-bar-h, 96px) + 0.5rem);
  z-index: 50; padding: 0.8rem 1rem;
  background: var(--ink); color: var(--paper);
  transform: translateY(0.5rem); opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ev-toast.is-visible { opacity: 1; transform: none; }

/* ── Tablet ──────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .ev-hero__media { aspect-ratio: 16 / 9; }
  .ev-venue__thumb { width: 140px; height: 140px; }
  .ev-toast { left: auto; max-width: 360px; }
}

/* ── Desktop: sticky event panel + editorial column ──────────── */
@media (min-width: 1024px) {
  .ev { display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; gap: 0 clamp(2rem, 5vw, 5rem); align-items: start; }
  .ev-hero { position: sticky; top: var(--nav-h, 60px); align-self: start; margin-inline: 0; }   /* under the site bar (js/hv/nav.js publishes --nav-h) */
  .ev-hero__media { aspect-ratio: 4 / 5; }
  .ev-hero__nav { padding: 1.25rem; }
  .ev-band { padding: 1.4rem 1.5rem 1.6rem; }
  .ev-band__title { font-size: clamp(2.4rem, 3.6vw, 3.6rem); }
  .ev-buy {
    position: static; z-index: auto;
    padding: 1.1rem 1.5rem;
    border-top: 0; border-bottom: 2px solid var(--ink);
  }
  body.ev-has-bar .ev-main { padding-bottom: 0; }
  .ev-main { padding-top: 1.5rem; }
  .ev-section:first-child { padding-top: 0; }
  .ev-toast { bottom: 1.5rem; right: 1.5rem; }
}
