/**
 * Styles for the jixaw Performance Calendar block. Self-contained (no build);
 * inherits the signature-theatre v2.0.2 look: flat, square (no border-radius),
 * shadowless, theme-button hover (fill-invert, no opacity fades / no lifts).
 * Tokens: primary #1B1612, cream #fffef4, light #f7f5ea, muted #8d8a83,
 * breakpoint sm 644px.
 */
.jixaw-cal {
  margin: 0 auto;
  max-width: 1100px;
  padding: 2.5rem 0;
}
.jixaw-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.jixaw-cal__month {
  font-size: 1.75rem;
  line-height: 1.1;
  margin: 0;
}

/* Prev / Next nav — square, theme-button (transparent -> fills primary). */
.jixaw-cal__nav {
  display: inline-block;
  border: 2px solid #1b1612;
  border-radius: 0;
  background: transparent;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  color: #1b1612;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.jixaw-cal__nav:hover {
  background-color: #1b1612;
  color: #fffef4;
}

.jixaw-cal__grid {
  display: none;
}

/* Flat weekday header row — cream; the grid hairline provides separation. */
.jixaw-cal__weekday {
  background-color: #fffef4;
  color: #1b1612;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.6rem 0;
}
.jixaw-cal__cell {
  background-color: #fffef4;
  min-height: 5.25rem;
  padding: 0.45rem 0.55rem;
}
.jixaw-cal__cell--blank {
  background-color: #f7f5ea;
  min-height: 0;
}
/* Today marker — square 2px inset primary ring (outline, not a shadow; no layout shift). */
.jixaw-cal__cell.is-today {
  outline: 2px solid #1b1612;
  outline-offset: -2px;
}
.jixaw-cal__daynum {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
/* Event = plain text link, aligned with the day number (no tag chrome). */
.jixaw-cal__chip {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  margin-bottom: 2px;
  text-decoration: none;
  color: #1b1612;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jixaw-cal__chip:hover {
  text-decoration: underline;
}
.jixaw-cal__more {
  display: block;
  font-size: 12px;
  color: #1b1612;
}
.jixaw-cal__list {
  margin-top: 2rem;
}
.jixaw-cal__day {
  margin-bottom: 1.5rem;
}
.jixaw-cal__date {
  font-size: 18.9px;
  margin: 0 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(27, 22, 18, 0.2);
}
.jixaw-cal__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
}
.jixaw-cal__time {
  font-weight: 700;
  min-width: 5rem;
}
.jixaw-cal__name {
  flex: 1 1 12rem;
}
.jixaw-cal__links {
  display: flex;
  gap: 1rem;
}
.jixaw-cal__empty,
.jixaw-cal__error {
  font-size: 16px;
  padding: 2rem 0;
  text-align: center;
}
.jixaw-cal__error {
  color: #b91c1c;
}

/* View toggle (grid vs list) — desktop only; mobile is list-only. */
.jixaw-cal__viewtoggle {
  display: none;
}
@media (min-width: 644px) {
  /* Square segmented control — share one primary border; buttons hairline-split. */
  .jixaw-cal__viewtoggle {
    display: inline-flex;
    margin-bottom: 1.25rem;
    border: 2px solid #1b1612;
    border-radius: 0;
    overflow: hidden;
  }
  /* Square, theme-button look — transparent -> fills primary on hover. */
  .jixaw-cal__viewbtn {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #1b1612;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .jixaw-cal__viewbtn + .jixaw-cal__viewbtn {
    border-left: 2px solid #1b1612;
  }
  .jixaw-cal__viewbtn:hover {
    background-color: #1b1612;
    color: #fffef4;
  }
  /* Selected state (JS-toggled) — filled primary. */
  .jixaw-cal__viewbtn.is-active {
    background-color: #1b1612;
    color: #fffef4;
  }
  .jixaw-cal--grid .jixaw-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    /* Soft warm-grey hairlines instead of a heavy black mesh. */
    background-color: #ddd9ce;
    border: 1px solid #ddd9ce;
  }
  .jixaw-cal--grid .jixaw-cal__list {
    display: none;
  }
  .jixaw-cal--list .jixaw-cal__grid {
    display: none;
  }
  .jixaw-cal--list .jixaw-cal__list {
    display: block;
    margin-top: 2.5rem;
  }
}

/* Active / greyed Tickets button (shared visual; must match calendar.css exactly). */
.jixaw-tickets{display:inline-block;padding:13px 30px;border:2px solid #1b1612;background:transparent;color:#1b1612;font-family:var(--font-display,"Space Grotesk",sans-serif);font-weight:700;font-size:14px;text-transform:uppercase;letter-spacing:0;text-decoration:none;border-radius:0;transition:background-color .15s ease,color .15s ease;}
.jixaw-tickets--active:hover{background:#1b1612;color:#fffef4;}
.jixaw-tickets--disabled{border-color:#8d8a83;color:#8d8a83;pointer-events:none;}

/* Bottom prev/next nav — same anchors as the header, justified to the ends. */
.jixaw-cal__header--bottom {
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Month sub-heading inside the multi-month list. */
.jixaw-cal__listmonth {
  font-size: 1.35rem;
  line-height: 1.1;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #1b1612;
}
.jixaw-cal__listmonth:first-child {
  margin-top: 0;
}

/* Grid chip stack — chip link, then its badges + CTA. */
.jixaw-cal__chipwrap {
  margin-bottom: 0.5rem;
}
.jixaw-cal__chipcta {
  display: block;
  margin-top: 4px;
}
.jixaw-cal__chipcta .jixaw-tickets {
  padding: 6px 12px;
  font-size: 11px;
}

/* State badge + accessibility chips — square, flat, monochrome (Onyx/Ivory/grey;
   color stays reserved for hand-drawn accents, never UI). Verbatim shared block. */
.jixaw-badges{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:6px;}
.jixaw-badge{display:inline-block;font-size:10px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;padding:2px 8px;border:1px solid #1b1612;border-radius:0;line-height:1.5;color:#1b1612;background:transparent;}
.jixaw-badge--almost_sold_out{background:#1b1612;color:#fffef4;}
.jixaw-badge--sold_out,.jixaw-badge--on_sale_soon{border-color:#8d8a83;color:#8d8a83;}
.jixaw-badge--cancelled{border-color:#8d8a83;color:#8d8a83;text-decoration:line-through;}
.jixaw-chip{display:inline-block;font-size:10px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;padding:2px 6px;border:1px solid #1b1612;border-radius:0;line-height:1.5;color:#1b1612;}
/* Patron upsell next to sold-out / almost-sold-out performances (client request). */
.jixaw-upsell{display:inline-block;font-size:12px;font-weight:600;letter-spacing:.02em;color:#1b1612;text-decoration:underline;text-underline-offset:2px;margin-left:.35rem;white-space:nowrap;}
