/* Classes: the ring of nine seats, a tenth left open for you, and the plain list below. */

.classes-open__hint { opacity: .9; font-style: italic; }

/* The ring (desktop): seats around a circle, gap at six o'clock */
.seatring {
  --size: min(34rem, 40vw);
  --R: calc(var(--size) * 0.38);
  position: relative; width: var(--size); aspect-ratio: 1;
  margin: 1rem auto 3.5rem;
}
.seatring::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: calc(var(--R) * 2); height: calc(var(--R) * 2);
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 0.15rem solid var(--gourd); opacity: .8;
}
.seatring__photo {
  position: absolute; left: 50%; top: 50%; width: 46%;
  transform: translate(-50%, -50%);
}
.seatring__photo img {
  object-position: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1));
  transition: object-position .9s var(--sway), transform .9s var(--sway);
}
.seatring__seats { position: absolute; inset: 0; }
.seat {
  --a: calc(216deg + var(--i) * 36deg + var(--turn));
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1));
  transition: transform .9s var(--sway), background-color .25s var(--settle), color .25s var(--settle);
  min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: var(--r-full);
  background: var(--shade); color: var(--cream);
  font: 400 1rem/1.1 var(--text); white-space: nowrap; cursor: pointer;
}
.seat:hover { background: var(--ink); }
.seat.is-on { background: var(--sun); color: var(--ink); }

.seatring__gap {
  position: absolute; z-index: 3; left: 50%; bottom: -0.9rem;
  transform: translate(-50%, 50%); white-space: nowrap;
}
.seatring__gap.pill:hover { transform: translate(calc(-50% + 0.2rem), 50%); }
.seatring__prices { display: grid; }
.seatring__price { grid-area: 1 / 1; text-align: center; }
.seatring__price b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; margin-left: 0.25em; }
.seatring__price.is-off { visibility: hidden; }

@media (min-width: 60rem) {
  .classes-open .opening__figure { padding-inline: 3.5rem 2rem; }
  .classes-open .opening__text { grid-column: 1 / span 5; }
  .classes-open .opening__figure { grid-column: 6 / -1; }
}

/* Phone and narrow screens: photo, price, then a sideways arc of pills */
@media (max-width: 59.99rem) {
  .seatring { width: 100%; aspect-ratio: auto; margin: 0; display: grid; justify-items: center; gap: 1.25rem; }
  .seatring::before { display: none; }
  .seatring__photo { position: relative; left: auto; top: auto; transform: none; width: min(20rem, 72vw); }
  .seatring__gap { position: relative; left: auto; bottom: auto; transform: none; white-space: normal; }
  .seatring__gap.pill:hover { transform: translateX(0.2rem); }
  .seatring__seats {
    position: relative; inset: auto; order: 3; width: 100%;
    display: flex; gap: 0.5rem; overflow-x: auto; overscroll-behavior-x: contain;
    padding: 0.5rem 0.25rem 3rem; scroll-snap-type: x proximity; scrollbar-width: none;
  }
  .seatring__seats::-webkit-scrollbar { display: none; }
  .seat {
    position: relative; left: auto; top: auto; flex: none; scroll-snap-align: center;
    transform: translateY(var(--y));
  }
  .seatring__gap { order: 2; }
}

/* The plain list */
.classes-list { padding-top: clamp(2rem, 6vh, 4rem); }
.promo-pill {
  max-width: 46rem; margin: 0 auto clamp(2.5rem, 7vh, 4rem);
  background: var(--sun); color: var(--ink); border-radius: 2rem;
  padding: 1rem 1.75rem; text-align: center; line-height: 1.45;
}
.offer-group { display: grid; gap: 1.75rem; }
.offer-group__head { display: grid; gap: 1rem; }
.offers { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.offer {
  display: grid; gap: 0.4rem 1.5rem; align-items: center;
  background: var(--shade); border-radius: 2rem; padding: 1.1rem 1.5rem;
  text-decoration: none; transition: background-color .25s var(--settle);
}
.offer:hover { background: var(--ink); }
.offer:hover .offer__name { text-decoration: underline; text-decoration-color: var(--sun); }
.offer__name { font-family: var(--text); font-size: 1.25rem; line-height: 1.3; }
.offer__line { font-size: var(--fs-small); line-height: 1.5; }
.offer__price {
  justify-self: start; font-family: var(--display); font-size: 1.25rem; color: var(--sun);
  white-space: nowrap;
}
.offer__price--ask { font-family: var(--text); font-style: italic; color: var(--cream); }
@media (min-width: 52rem) {
  .offer-group { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .offer-group__head { grid-column: 1 / span 4; align-content: start; }
  .offers { grid-column: 5 / -1; }
  .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; border-radius: var(--r-full); padding: 0.9rem 1rem 0.9rem 2rem; }
  .offer__price { justify-self: end; background: var(--ground); border-radius: var(--r-full); padding: 0.55rem 1.1rem; }
}

.classes-close { display: grid; gap: 1.25rem; justify-items: start; max-width: 46rem; margin-inline: auto; }
