/* Past Gigs final visual pass: match the completed site without changing archive logic/data. */
.past-gigs-page {
  --past-radius: 22px;
  --past-radius-small: 14px;
}

/* Match the finished Home / Upcoming Gigs opening rhythm. */
@media (min-width: 901px) {
  .past-gigs-page .past-gigs-hero {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .past-gigs-page .past-gigs-hero h1 {
    font-size: clamp(2.05rem, 3.35vw, 3.35rem);
    line-height: 1.06;
    margin-bottom: 14px;
  }
}

.past-gigs-page .performances-hero-lead {
  max-width: 760px;
  line-height: 1.62;
}

/* Finished-site pill actions. */
.past-gigs-page .btn,
.past-gigs-page .past-gigs-return a {
  border-radius: 999px;
}

/* Make the archive return link a compact pill without changing its wording or location. */
.past-gigs-page .past-gigs-return a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(210,162,58,.42);
  text-decoration: none;
}

/* Rounded archive surfaces and diary cards. */
.past-gigs-page .archive-summary-bar,
.past-gigs-page .year-group,
.past-gigs-page .month-group,
.past-gigs-page .schedule-card,
.past-gigs-page .calendar-empty-state {
  border-radius: var(--past-radius);
}

.past-gigs-page .year-group,
.past-gigs-page .month-group {
  overflow: hidden;
}

.past-gigs-page .schedule-card,
.past-gigs-page .calendar-empty-state {
  border-radius: var(--past-radius-small);
}

/* Section-aware floating arrow. */
.past-gigs-page .section-scroll-next {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9998;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(244,210,124,.72);
  border-radius: 50%;
  background: rgba(5,5,5,.12);
  color: var(--gold-light);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}

.past-gigs-page .section-scroll-next.is-visible {
  opacity: .86;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.past-gigs-page .section-scroll-next svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.65));
  transition: transform .18s ease;
}

.past-gigs-page .section-scroll-next:hover,
.past-gigs-page .section-scroll-next:focus-visible {
  opacity: 1;
  border-color: var(--gold-light);
  background: rgba(5,5,5,.28);
  outline: none;
}

.past-gigs-page .section-scroll-next:hover svg,
.past-gigs-page .section-scroll-next:focus-visible svg {
  transform: translateY(2px);
}

@media (max-width: 900px) {
  .past-gigs-page .past-gigs-hero {
    padding-top: 54px;
  }
}

@media (max-width: 640px) {
  .past-gigs-page .past-gigs-hero {
    padding-top: 38px;
  }

  .past-gigs-page .section-scroll-next {
    width: 42px;
    height: 42px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .past-gigs-page .section-scroll-next svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .past-gigs-page .section-scroll-next,
  .past-gigs-page .section-scroll-next svg {
    transition: none;
  }
}

/* Past Gigs hero image: mirror the finished Upcoming Gigs two-column hero. */
.past-gigs-page .past-gigs-hero .performances-hero-grid {
  align-items: start;
}

.past-gigs-page .past-gigs-hero-media {
  border-radius: var(--past-radius);
  overflow: hidden;
}

.past-gigs-page .past-gigs-hero-media img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center 36%;
}

@media (min-width: 901px) {
  .past-gigs-page .past-gigs-hero-media img {
    height: 340px;
  }

  .past-gigs-page .performances-hero-lead {
    max-width: 690px;
  }
}
