/* Calendar tools and the gig gallery share the full content rail with the
   upcoming list and the archive. A narrower 920px tier for them left the
   page's left edge stepping 80px -> 180px -> 80px between sections once the
   archive moved to the full rail. */
body.live-page #upcoming .gig-calendar,
body.live-page #gallery > .wrap {
  margin-inline: auto;
}

body.live-page #upcoming .section-head {
  max-width: none;
  margin-inline: 0;
}

body.live-page #upcoming .gig-calendar {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.78fr);
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(207, 166, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

body.live-page .gig-calendar h3 {
  margin: 0 0 10px;
  font:
    700 1.45rem/1.15 "Barlow Condensed",
    sans-serif;
  color: var(--text);
  text-align: left !important;
}

body.live-page #upcoming .gig-calendar .page-note {
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: none;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.65;
}

body.live-page #upcoming .gig-calendar .section-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch !important;
  gap: 10px !important;
  margin: 0 !important;
  text-align: center;
}

body.live-page .gig-calendar .section-actions .button {
  width: 100%;
  min-height: 44px;
  margin: 0;
}

body.live-page .gig-calendar .section-actions .small {
  justify-self: center;
  margin-top: 2px;
  font-size: 0.68rem;
  line-height: 1.5;
}

/* All photos stay reachable on mobile, including those in the disclosure. */
body.live-page #gallery .gallery-grid > figure {
  display: block;
}

body.live-page #gallery .gallery-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(207, 166, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  list-style: none;
}

body.live-page #gallery .gallery-more > summary::-webkit-details-marker {
  display: none;
}

body.live-page #gallery .gallery-more-count {
  display: inline;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
}

body.live-page #gallery .gallery-more > summary::after {
  content: "+";
  margin: 0;
  font-size: 1.15rem;
  color: var(--blue);
}

body.live-page #gallery .gallery-more[open] > summary::after {
  content: "−";
}

body.live-page #gallery .gallery-more[open] > .gallery-grid {
  margin-top: 16px;
}

@media (min-width: 761px) {
  body.live-page #gallery .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 901px) {
  body.live-page #upcoming .gig-row:not(.gig-row-cancelled) {
    min-height: 116px;
    padding-block: 16px;
  }

  body.live-page #past {
    padding-block: 44px;
  }
}

@media (max-width: 760px) {
  body.live-page #upcoming .gig-calendar {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    text-align: left;
  }

  body.live-page .gig-calendar h3 {
    font-size: 1.35rem;
  }

  body.live-page #gallery > .wrap > .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.live-page #gallery > .wrap > .gallery-grid > figure:first-child {
    grid-column: 1 / -1;
  }

  body.live-page #gallery .gallery-more > summary .gallery-more-count {
    display: inline;
  }

  body.live-page #gallery .gallery-more > summary {
    gap: 10px !important;
  }
}

/* Avoid stacking section padding and container padding above the next show. */
body.live-page .home-next-date > .wrap {
  padding-block: 0;
}
@media (min-width: 761px) {
  body.live-page main > .home-next-date {
    padding-block: 36px;
  }
  body.live-page main > .page-hero {
    padding-top: 116px !important;
    padding-bottom: 32px !important;
  }
}
@media (max-width: 760px) {
  body.live-page main > .home-next-date {
    padding-top: 28px;
    padding-bottom: 32px;
  }
}

body.live-page #upcoming .private-booking-note {
  max-width: 72ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: center;
}
body.live-page #upcoming .private-booking-note > :is(strong, span, a) {
  display: block;
}
body.live-page #upcoming .private-booking-note strong {
  color: var(--text);
}
body.live-page #upcoming .private-booking-note a {
  color: var(--blue);
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  body.live-page #upcoming .private-booking-note {
    width: min(100%, 25rem);
    margin-top: 24px;
    padding: 18px 18px 17px;
    border: 1px solid rgba(207, 166, 255, 0.18);
    border-radius: 14px;
    background: rgba(10, 7, 18, 0.3);
    font-size: 0.91rem;
    line-height: 1.55;
    text-align: left;
  }

  body.live-page #upcoming .private-booking-note strong {
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.35;
  }

  body.live-page #upcoming .private-booking-note > span {
    max-width: 34ch;
  }

  body.live-page #upcoming .private-booking-note a {
    width: fit-content;
    margin-top: 12px;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.4;
  }
}

/* Archive browsing can expand into the page instead of an inner scroller. */
#past .past-year-scroll[data-expanded="true"] {
  overflow: visible;
}
#past .past-view-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 12px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--content-border, #71568b);
  border-radius: 10px;
  background: var(--content-surface, #21182f);
  color: var(--content-label, #dfbaff);
  font:
    700 0.88rem/1.4 "Manrope",
    sans-serif;
  text-align: center;
  cursor: pointer;
}
#past .past-view-toggle[hidden] {
  display: none;
}
#past .past-view-toggle:is(:hover, :focus-visible) {
  border-color: var(--control-border, #977aae);
  background: var(--control-surface, #291e3b);
}
#past :is(.past-view-toggle, .past-year-scroll):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
#past .scroll-more {
  color: var(--muted);
  font:
    400 0.8rem/1.5 "Manrope",
    sans-serif;
  letter-spacing: 0;
  text-transform: none;
  animation: none;
}
