/* Brand-driven public event page (Phase C of the event overhaul).
   The reused ticketing block reads --event-page-* vars; we remap those to the
   tenant brand tokens (var(--t-*)) so the whole page follows Brand Designer
   colours. Then we lay out the banner hero, the two-column body, and the
   flyer / venue / line-up side panel. Plain CSS (no SCSS source). */

.event-public-v2 {
  --event-page-background-color: var(--t-bg);
  --event-page-content-background-color: var(--t-surface);
  --event-page-primary-color: var(--t-primary);
  --event-page-primary-text-color: var(--t-primary-contrast-text, #ffffff);
  --event-page-secondary-color: var(--t-primary);
  --event-page-secondary-text-color: var(--t-text-muted);
  --event-page-font-color: var(--t-text);
  background: var(--t-bg);
  padding-top: 1.4rem;
  padding-bottom: 2.6rem;
}

.epx-shell {
  max-width: 1080px;
  gap: 1.1rem;
}

/* ── Banner hero ───────────────────────────────────────────────────────── */
.epx-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--t-border);
  background:
    linear-gradient(135deg, rgba(var(--t-primary-rgb), 0.16), rgba(var(--t-secondary-rgb), 0.12)),
    var(--t-surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.epx-hero__media {
  position: relative;
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  background: rgba(var(--t-bg-rgb), 0.5);
}

.epx-hero__media-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
}

.epx-hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.4rem 1.6rem 1.55rem;
}

.epx-hero--banner .epx-hero__body {
  margin-top: -3.6rem;
  background: linear-gradient(
    180deg,
    rgba(var(--t-surface-rgb), 0) 0%,
    rgba(var(--t-surface-rgb), 0.86) 48%,
    var(--t-surface) 100%);
}

.epx-hero--plain .epx-hero__body {
  padding-top: 2rem;
}

.epx-hero__badges {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.epx-chip {
  display: inline-block;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--t-primary-contrast-text, #ffffff);
  background: var(--t-primary);
}

.epx-chip--muted {
  background: rgba(var(--t-fg-rgb), 0.16);
  color: var(--t-text);
}

.epx-hero__title {
  margin: 0;
  color: var(--t-text);
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.04;
  font-weight: 800;
}

.epx-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.epx-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--t-text-muted);
  font-size: 0.95rem;
}

.epx-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--t-primary);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Body layout ───────────────────────────────────────────────────────── */
.epx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.1rem;
  align-items: start;
}

.epx-main {
  min-width: 0;
}

.event-public-v2 .epx-card.event-public-card {
  padding: 1.2rem 1.3rem 1.3rem;
  gap: 1.1rem;
  background: var(--t-surface);
  border: 1px solid var(--t-border);
}

.epx-aside {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: sticky;
  top: 1rem;
}

.epx-flyer {
  padding: 0.5rem;
  overflow: hidden;
}

.epx-flyer__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.epx-panel {
  padding: 1rem 1.1rem;
}

.epx-panel__title {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--t-primary);
}

.epx-panel__line {
  margin: 0 0 0.15rem;
  color: var(--t-text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.epx-panel__sub {
  margin: 0 0 0.15rem;
  color: var(--t-text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.epx-panel__note {
  margin: 0.25rem 0 0;
  color: var(--t-text-muted);
  font-size: 0.8rem;
}

.epx-panel__link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--t-primary);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.epx-panel__link:hover {
  text-decoration: underline;
}

/* ── Line up ───────────────────────────────────────────────────────────── */
.epx-lineup {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.epx-lineup__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.epx-lineup__photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--t-border);
}

.epx-lineup__photo--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--t-primary-rgb), 0.18);
  color: var(--t-primary);
  font-weight: 800;
  font-size: 1.1rem;
}

.epx-lineup__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.epx-lineup__name {
  color: var(--t-text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

a.epx-lineup__name:hover {
  color: var(--t-primary);
}

.epx-lineup__genre {
  color: var(--t-text-muted);
  font-size: 0.78rem;
}

@media (max-width: 920px) {
  .epx-layout {
    grid-template-columns: 1fr;
  }
  .epx-aside {
    position: static;
    order: 2;
  }
  .epx-main {
    order: 1;
  }
}

@media (max-width: 600px) {
  .epx-hero__body {
    padding: 1.1rem 1rem 1.2rem;
  }
  .epx-hero--banner .epx-hero__body {
    margin-top: -2.6rem;
  }
  .event-public-v2 .epx-card.event-public-card {
    padding: 1rem 1rem 1.1rem;
  }
}
