/* Product page: the seat in the ring. A round photo wears a ring of its own kind words, the price sits in the gap. */

.product { --s: min(19rem, 100%); }
.product .opening { padding-bottom: 1rem; }
.product .opening__text { gap: 1rem; }
.product h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  overflow-wrap: break-word;
  margin-bottom: 0.25rem;
}
.product__kind {
  justify-self: start;
  background: var(--shade); color: var(--sun);
  border-radius: var(--r-full);
  padding: 0.2rem 1.1rem;
  font-size: 1.25rem; line-height: 1.4;
}
.product .opening__text .pill-row { margin-top: 0.5rem; position: relative; z-index: 3; }
.product .pill { overflow-wrap: anywhere; text-align: center; padding-block: 0.45rem; }

/* The figure: ring first on a phone, so picture and name share the first window */
.product .opening__figure {
  order: -1;
  width: var(--s);
  margin: 0 auto;
  padding-bottom: 2rem;
}
.product-ring { max-width: none; width: 100%; }
.product-ring .ring__centre { width: 76%; }
.product-ring .photo { width: 100%; }
.product-ring .photo img { aspect-ratio: 1; }
.product-ring .ring__svg text { font-size: 4.2px; }
.product-ring__word { color: var(--cream); padding: 1rem; }
.product-ring .ring__seat { bottom: 1%; }

/* Set piece: one quarter turn, then the price sways into the gap and stays */
@keyframes quarter { from { transform: rotate(-90deg); } to { transform: rotate(0deg); } }
.js .product-ring .ring__svg { animation: quarter 1.1s var(--settle) both; transition: none; }
.js .product-ring__price { animation: ginga 0.9s var(--settle) 1.05s both; }
.product-ring__price { cursor: default; }
.product-ring__price:hover { transform: none; }

/* Centred variant: jiu-jitsu, workshops, performances */
.product--centre .opening { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.product--centre .opening__text,
.product--centre .opening__figure { grid-column: 1 / -1; margin-inline: auto; }
.product--centre .opening__text { justify-items: center; }
.product--centre .product__kind { justify-self: center; }
.product--centre .lede, .product--centre .prose { margin-inline: auto; }
.product--centre .pill-row { justify-content: center; }

/* Body */
.product__facts, .product__duo { display: grid; gap: 3rem; }
.product__sec { display: grid; gap: 1.1rem; align-content: start; }
.product__sec h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.product__where address { font-size: 1.35rem; line-height: 1.4; }
.product__where .pill-row { margin-top: 0.5rem; }
.product__panel { padding: clamp(1.25rem, 3.5vw, 2.25rem); }
.pspecs { margin: 0; display: grid; }
.pspecs > div {
  display: grid; grid-template-columns: minmax(7rem, 35%) 1fr;
  column-gap: 1.5rem; row-gap: 0.15rem; padding: 0.35rem 0;
}
.pspecs > div + div::before {
  content: ""; grid-column: 1 / -1; height: 0.5rem; margin-bottom: 0.6rem; opacity: 0.7;
  background: radial-gradient(circle at 50% 50%, var(--cream) 0.12rem, transparent 0.14rem) 0 50% / 0.9rem 0.5rem repeat-x;
}
.pspecs dt { color: var(--sun); }
.pspecs dd { margin: 0; }
@media (max-width: 30rem) { .pspecs > div { grid-template-columns: 1fr; } }
.product__more ul { list-style: none; padding: 0; display: grid; gap: 0.1rem; }
.product__more a { display: inline-flex; align-items: center; min-height: 2.75rem; }

@media (min-width: 60rem) {
  .product {
    --s: min(42rem, 74vh, 46vw);
    --bleed: calc(max(0px, (100vw - 90rem) / 2) + var(--gutter) + var(--s) * 0.08);
  }
  .product .opening__figure { order: 0; margin: 0; }
  .product--left .opening__text { grid-column: 7 / -1; grid-row: 1; }
  .product--left .opening__figure { grid-column: 1 / span 6; grid-row: 1; justify-self: start; margin-left: calc(var(--bleed) * -1); }
  .product--right .opening__text { grid-column: 1 / span 6; grid-row: 1; }
  .product--right .opening__figure { grid-column: 7 / -1; grid-row: 1; justify-self: end; margin-right: calc(var(--bleed) * -1); }
  .product--centre { --s: min(24rem, 46vh); }
  .product--centre .opening__figure { order: -1; margin-inline: auto; }

  .product__facts, .product__duo { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .product__facts > :first-child, .product__duo > :first-child { grid-column: 1 / span 6; grid-row: 1; }
  .product__facts > :last-child, .product__duo > :last-child { grid-column: 8 / -1; grid-row: 1; }
  .product--left .product__facts > :first-child { grid-column: 7 / -1; }
  .product--left .product__facts > :last-child { grid-column: 1 / span 6; }
}
