/**
 * Styles for the jixaw Subscriptions block. Self-contained (no build).
 * Inherits the signature-theatre v2.0.2 look: flat, square, shadowless.
 * Headings use the theme's wp-block-heading has-heading-N-font-size classes;
 * the CTA uses the theme wp-block-button. This file is layout glue plus the
 * shared .jixaw-card primitive (square, 1px hairline, no shadow).
 * Theme tokens: primary/near-black #1b1612, cream #fffef4, alabaster #f7f5ea,
 * muted grey #8d8a83.
 */

/* Square, flat, hairline-bordered card primitive (no theme primitive exists). */
.jixaw-card {
  background: #f7f5ea;
  border: 1px solid #1b1612;
  border-radius: 0;
}

.jixaw-subs {
  max-width: 1200px;
  margin: 0 auto 3rem;
}

/* The block is dropped into a narrow (~644px) constrained content column — too tight
   for the cards to sit side by side, so the auto-fit grid collapses to one column and
   they stack. `max-width` alone can't widen a block past its containing block, so break
   OUT of the column with negative viewport margins, then re-constrain each direct child
   (intro, cards grid, season) to a centered width — the cards span wide and centered
   while the rest of the page keeps its column. Mirrors the membership-tiers breakout;
   the high-specificity selectors + !important beat WordPress's
   `.is-layout-constrained > :where(...) { margin-inline: auto !important }`, which
   otherwise pins the block back into the column. The theme's `.site-content` has
   overflow-x: hidden, so the full-bleed breakout adds no horizontal scrollbar. */
.is-layout-constrained > .jixaw-subs,
.jixaw-flow > .jixaw-subs {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: none !important;
  width: auto !important;
}
.is-layout-constrained > .jixaw-subs > *,
.jixaw-flow > .jixaw-subs > * {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.jixaw-subs__intro {
  margin-bottom: 2rem;
  text-align: center;
}
.jixaw-subs__heading {
  margin: 0;
}
.jixaw-subs__lede {
  color: #1b1612;
  max-width: 640px;
  margin: 0.75rem auto 0;
}

/* Subscription cards — centered as a group for consistency with the other pages. */
.jixaw-subs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  justify-content: center;
  gap: 1.5rem;
}
.jixaw-subs__card {
  display: flex;
  flex-direction: column;
}

/* Header: hairline-bordered row on cream with primary text (no dark bar). */
.jixaw-subs__card-head {
  padding: clamp(20px, 4vw, 32px);
  border-bottom: 1px solid #1b1612;
}
.jixaw-subs__name {
  color: #1b1612;
  margin: 0 0 0.65rem;
  overflow-wrap: anywhere;
}
.jixaw-subs__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: #1b1612;
}
.jixaw-subs__from {
  color: #8d8a83;
}
.jixaw-subs__amount {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.jixaw-subs__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(20px, 4vw, 32px);
  flex: 1 1 auto;
}

/* "On sale" eyebrow — small square primary marker, not a colored circle. */
.jixaw-subs__sale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1b1612;
  margin: 0;
}
.jixaw-subs__dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: #1b1612;
  flex: none;
}
.jixaw-subs__desc {
  font-size: 0.9375rem;
  color: #1b1612;
  margin: 0;
}
.jixaw-subs__bands-label {
  color: #8d8a83;
  margin: 0;
}
.jixaw-subs__bands {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jixaw-subs__bands li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(27, 22, 18, 0.18);
  font-size: 0.9375rem;
  color: #1b1612;
}
.jixaw-subs__band-price {
  font-weight: 700;
  white-space: nowrap;
}

/* CTA — theme button. wp-block-button styling supplies the square,
   fill-invert-on-hover look; we only pin it to the bottom of the card. */
.jixaw-subs__cta-wrap {
  margin-top: auto;
}
.jixaw-subs__cta-wrap .jixaw-subs__cta {
  text-align: center;
}

/* This season's productions */
.jixaw-subs__season {
  margin-top: 3.5rem;
}
.jixaw-subs__season-heading {
  margin: 0;
  text-align: center;
}
.jixaw-subs__season-lede {
  font-size: 1rem;
  color: #8d8a83;
  margin: 0.5rem 0 1.5rem;
  text-align: center;
}
.jixaw-subs__shows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 1.25rem;
}
.jixaw-subs__show {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: #1b1612;
  transition: background-color 0.15s ease;
}
.jixaw-subs__show:hover {
  background: #fffef4;
}
.jixaw-subs__show-media {
  display: block;
}
.jixaw-subs__show-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
/* Empty-media placeholder — light alabaster strip, not a black bar. */
.jixaw-subs__show-media--empty {
  height: 8px;
  background: #f7f5ea;
  border-bottom: 1px solid rgba(27, 22, 18, 0.18);
}
.jixaw-subs__show-body {
  display: block;
  padding: 1rem 1.1rem;
}
.jixaw-subs__show-title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.jixaw-subs__show-dates {
  display: block;
  font-size: 0.875rem;
  color: #8d8a83;
  margin-top: 0.25rem;
}
.jixaw-subs__error,
.jixaw-subs__empty {
  font-size: 1rem;
  color: #8d8a83;
  padding: 1rem 0;
}
