body.live-page {
  background-image: none; /* no paper texture behind the black CTA/footer */
  background-color: var(--pure-black);
}

/* mobile: the photo fills main only, so the CTA and footer below it sit on
   plain black; desktop moves it to body so it runs behind everything */
.live-page main,
body.live-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.live-page main {
  background-image: url("../assets/live/live-mobile.webp");
}

.live {
  flex: 1;
  gap: 1.5rem;
}

.page-home-link,
.site-footer {
  color: var(--white);
}

/* look for the "Past shows" toggle */
.live-action {
  gap: 0.5rem;
  box-sizing: border-box;
  min-height: 2.75rem; /* 44px tap target */
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 1rem; /* matches .live-cta-line on mobile */
  line-height: 1.2;
  cursor: pointer;
}

.live-upcoming {
  list-style: none;
  gap: 0.25rem;
  padding: 0.25rem 0;
}

.live-upcoming-show {
  column-gap: 0.75rem;
}

.live-upcoming-line,
.live-upcoming-tickets {
  color: var(--white);
  font-size: 1rem; /* matches .live-cta-line on mobile */
  line-height: 1.2;
}

.live-upcoming-tickets {
  padding: 0.5rem 0; /* taller tap target */
  text-decoration: underline;
}

.live-action:focus-visible,
.live-upcoming-tickets:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.live-past-chevron {
  width: 1em;
  height: 1em;
  transition: transform var(--ui-motion-duration) ease;
}

.live-past-toggle[aria-expanded="true"] .live-past-chevron {
  transform: rotate(180deg);
}

.live-past-panel {
  z-index: 1;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100vw - var(--page-padding-mobile) * 2);
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--white);
  background-color: var(--black);
  /* closed: clipped to nothing and out of the a11y tree; visibility flips
     only after the clip finishes so closing animates too */
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path var(--ui-motion-duration) ease,
    visibility 0s linear var(--ui-motion-duration);
}

/* open: grows top to bottom at the same speed as the caret */
.live-past-panel.is-open {
  visibility: visible;
  clip-path: inset(0);
  transition:
    clip-path var(--ui-motion-duration) ease,
    visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .live-past-chevron,
  .live-past-panel,
  .live-past-panel.is-open {
    transition: none;
  }
}

.live-shows {
  list-style: none;
  gap: 0.75rem;
}

.live-show + .live-show {
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--white) 25%, transparent);
}

.live-show-line,
.live-show-link-line {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.3;
}

/* dates and venues are inline-block (in the HTML), so each moves to the next
   line whole and only wraps inside when it can't fit a line alone (e.g. with
   enlarged text); nowrap here would push the page sideways instead */
.live-upcoming-line,
.live-show-line {
  overflow-wrap: anywhere;
}

.live-show-link {
  color: var(--white);
  text-decoration: underline;
}

.live-cta {
  margin-top: auto; /* pinned to the bottom of the column */
  gap: 1rem;
  /* mobile only: full-bleed black band (cancelling main's side padding) that
     ends the photo, running into the black body behind the footer */
  margin-inline: calc(var(--page-padding-mobile) * -1);
  padding: 1.5rem var(--page-padding-mobile) 0;
  background-color: var(--pure-black);
}

.live-cta-line {
  max-width: 92vw;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.4;
}

.live-contact {
  gap: 4px;
}

.live-contact-line {
  max-width: 92vw;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.live-contact-email {
  color: var(--white);
  text-decoration: underline;
}

@media (min-width: 768px) {
  body.live-page {
    background-image: url("../assets/live/live-2.webp");
  }

  .live-page main {
    background-image: none;
  }

  /* desktop has no backing box behind the text, so a soft dark halo keeps
     white text legible over the bright stage lights */
  .live-action,
  .live-upcoming-line,
  .live-upcoming-tickets,
  .live-cta-line,
  .live-contact-line {
    text-shadow: 0 0 0.5rem color-mix(in srgb, var(--black) 85%, transparent);
  }

  .live-action,
  .live-upcoming-line,
  .live-upcoming-tickets {
    font-size: 1.625rem;
  }

  .live-past-panel {
    max-width: calc(100vw - var(--page-padding-desktop) * 2);
    padding: 1.25rem 1.5rem;
  }

  .live-show-line,
  .live-show-link-line {
    font-size: 1.25rem;
  }

  .live-cta {
    gap: 1.75rem;
    margin-inline: 0;
    padding: 0;
    background-color: transparent;
  }

  .live-cta-line,
  .live-contact-line {
    max-width: none;
    font-size: 1.625rem;
    line-height: 1.2;
  }
}
