
:root {
  --bg: #f4ecdf;
  --paper: rgba(255, 250, 243, 0.9);
  --card: #fffaf4;
  --ink: #231814;
  /* One step up from --muted, for small text that sits directly on the page
     gradient (the footer) where --muted only just cleared 4.5:1. */
  --ink-soft: #5a4a42;
  --muted: #705d55;
  --line: rgba(102, 69, 54, 0.14);
  --accent: #a33f2f;
  --accent-soft: rgba(163, 63, 47, 0.12);
  --olive: #59634d;
  --shadow: 0 22px 54px rgba(46, 27, 19, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(163, 63, 47, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(89, 99, 77, 0.12), transparent 26%),
    linear-gradient(180deg, #f8f2e8 0%, var(--bg) 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* Keyboard focus ring for every interactive element. Nothing in this stylesheet
   sets `outline: none`, but the UA default is easy to lose against the paper
   background, so make it explicit and consistent. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Text for screen readers and crawlers that shouldn't take up space. Must stay
   clipped rather than `display: none` — hiding it that way would drop it from
   the accessibility tree and from the link text search engines read. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: off-screen until focused, then pinned to the top-left. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.hero {
  position: relative;
  padding: 34px 36px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,246,236,0.92)),
    linear-gradient(90deg, rgba(163,63,47,0.08), rgba(89,99,77,0.06));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-about {
  position: absolute;
  top: 18px;
  right: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.82rem;
  text-decoration: none;
}

.hero-about:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 14px 0 0;
  max-width: 66ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.subscribe-cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--accent-soft);
}

.subscribe-cta__text {
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}

.subscribe-cta__text strong {
  color: var(--accent);
}

.subscribe-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fffaf4;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.subscribe-btn:hover {
  background: #8f3627;
}

.jump-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}
/* The section you are already in. Kept a link -- it still goes up to that
   section's index from a venue page -- but weighted so the pair reads as a
   switcher with a current item rather than two equal choices. */
.jump-nav a[aria-current] {
  border-color: var(--ink);
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.layout > * { min-width: 0; }

/* Everything inside a card is scraped copy, and scraped copy is untrusted
   text: Caveat publishes raw Markdown whose [label](https://...) links are a
   few hundred characters of unbreakable URL. Without a break opportunity that
   string sets the card's min-content width, the grid track grows to match,
   and a phone zooms the whole page out to fit it. `anywhere` (not
   `break-word`) is deliberate: only `anywhere` lets the soft break count when
   the min-content size is computed, which is what stops the track growing. */
.production-card,
.venue-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.content-panel h2,
.production-card h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.production-list,
.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.content-panel {
  padding: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* The count line and the conditions that produced it. Hung on the accent rule
   rather than boxed: the panel is already made of cards, and a fifth one here
   would flatten the hierarchy instead of adding to it. */
.tally {
  margin: 10px 0 20px;
  padding-left: 15px;
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* The readout stays at body size; only the digits take a weight step, so the
   figures stay scannable without the line becoming a display number.
   Both selectors have to outrank `.section-header p`, which these used to
   inherit their muted color from. */
.tally .tally-line {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.tally .tally-line b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tally .tally-sub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.tally-conditions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* An author `display` outranks the UA's `[hidden]` rule, so every element
   here that sets one has to opt back out explicitly. */
.tally-conditions[hidden] { display: none; }

/* Filled, to read as a condition that is on -- against the hollow
   `.cal-preset` pills, which read as a choice on offer. */
.tally-chip {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid transparent;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tally-chip:hover {
  background: rgba(163, 63, 47, 0.2);
  border-color: var(--accent);
}

.tally-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(163, 63, 47, 0.18);
  color: var(--accent);
  font-size: 0.68rem;
  line-height: 1;
}

.tally-chip:hover .tally-chip-x {
  background: var(--accent);
  color: #fffaf4;
}

/* The section total, delivered as the way out rather than as a statistic. It
   sits directly after the chips rather than pushed to the right edge: the
   panel runs past 1100px, which left it 680px of dead space away from the
   conditions it undoes. Hollow against their fill, so it does not read as
   another chip. */
.tally-show-all {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 6px;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tally-show-all:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf4;
  font-size: 0.74rem;
}

.filter-count[hidden] { display: none; }

.reclinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* 320px lands on three columns at desktop width, so six entries fill two even
     rows rather than leaving a ragged 4 + 2. Falls to two columns on tablets
     and one on phones. */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px 22px;
}

.reclinks li {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.reclinks a {
  font-weight: 600;
}

/* --ink-soft rather than --muted: this sits on --card inside a panel, and the
   extra step keeps small text clear of 4.5:1 without going full --ink. */
.reclinks p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.filter-container {
  margin-bottom: 22px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,248,240,0.88));
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.filter-container.active {
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,250,245,0.95));
  box-shadow: 0 4px 12px rgba(46, 27, 19, 0.08);
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: rgba(163, 63, 47, 0.1);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.filter-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.planning-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0 8px; }
.context-map { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }

.filter-toggle-btn:hover {
  background: rgba(163, 63, 47, 0.15);
  transform: translateX(2px);
}

.filter-toggle-btn .arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  /* collapsed: the ▼ glyph rotates to point right */
  transform: rotate(-90deg);
}

.filter-toggle-btn.open .arrow {
  /* expanded: arrow points straight down */
  transform: rotate(0deg);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

/* When the secondary stack is present (index page), put the calendar on
   the left and the dropdowns + descriptions toggle on the right, with the
   reset action spanning both columns underneath. Theater pages omit the
   secondary stack and fall back to the single-column layout above. */
.filter-controls:has(.filter-secondary) {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
}

.filter-secondary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-controls:has(.filter-secondary) > .filter-actions {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.filter-container.active .filter-controls {
  /* No height cap once open. It used to be 900px, which the stacked
     single-column layout below 960px outgrows (the gallery index's fourth
     dropdown made it obvious): the controls then spilled out of the panel and
     Reset Filters sat on top of the first venue card. Opacity still fades. */
  max-height: none;
  opacity: 1;
  overflow: visible;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 250, 243, 0.65);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.filter-group > label,
.filter-group > .filter-group-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(102, 69, 54, 0.12);
  margin: -2px 0 0;
}

/* The checkbox sets are grouped in a <fieldset> so screen readers announce
   "Neighborhood" before each option; strip the UA chrome so it looks the same. */
.filter-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: contents;
}

.filter-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 auto;
}

.filter-group-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}


.neighborhood-select,
.theater-select,
.kind-select {
  position: relative;
}

.neighborhood-select-trigger {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.8);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease;
}

.neighborhood-select-trigger:hover {
  border-color: var(--muted);
}

.neighborhood-select-trigger.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(163, 63, 47, 0.1);
}

.neighborhood-select-trigger .neighborhood-caret {
  display: inline-block;
  transition: transform 0.2s ease;
  /* collapsed: caret points right */
  transform: rotate(-90deg);
}

.neighborhood-select-trigger.active .neighborhood-caret {
  /* expanded: caret points down */
  transform: rotate(0deg);
}

.neighborhood-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(46, 27, 19, 0.12);
  z-index: 10;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.neighborhood-select-dropdown.open {
  max-height: 200px;
  opacity: 1;
  overflow-y: auto;
}

.neighborhood-option,
.theater-option,
.kind-option {
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.neighborhood-option:hover,
.theater-option:hover,
.kind-option:hover {
  background: rgba(163, 63, 47, 0.06);
}

.neighborhood-option input[type="checkbox"],
.theater-option input[type="checkbox"],
.kind-option input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--accent);
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.filter-actions button {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}


.filter-reset {
  background: rgba(255,255,255,0.7);
  color: var(--muted);
  border: 1px solid var(--line);
}

.filter-reset:hover {
  background: rgba(255,255,255,0.9);
  color: var(--ink);
}

/* Calendar date picker */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .4rem;
  font-weight: 600;
  font-size: .95rem;
}
.cal-nav {
  /* 24x24 minimum — the bare glyph was ~19px wide. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--accent);
  padding: .1rem .35rem;
  border-radius: 6px;
  line-height: 1;
}
.cal-nav:hover { background: var(--accent-soft); }
.cal-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: .85rem;
}
.cal-table th {
  text-align: center;
  padding: .25rem 0;
  color: var(--muted);
  font-weight: 500;
  font-size: .77rem;
}
/* Selectable days are <button>s inside their <td> so they can be reached and
   activated from a keyboard; the non-interactive overflow days stay bare
   <td>s. Both share .cal-day, hence the button resets here. */
.cal-day {
  display: block;
  width: 100%;
  min-height: 32px;
  text-align: center;
  padding: .35rem .1rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  border-radius: 6px;
  user-select: none;
}
td.cal-day.other-month {
  display: table-cell;
  width: auto;
}
.cal-day:not(.other-month):hover { background: rgba(102, 69, 54, 0.07); }
.cal-day.has-show {
  font-weight: 700;
  color: var(--accent);
}
.cal-day.has-show:hover { background: var(--accent-soft); }
.cal-day.selected {
  background: var(--accent);
  color: #fff !important;
}
.cal-day.selected:hover { opacity: .85; }
.cal-day.other-month {
  /* .3 opacity put this text at 1.9:1 against the panel — below any usable
     contrast floor. Still clearly de-emphasised at .55, but readable. */
  opacity: .55;
  pointer-events: none;
  cursor: default;
}
.cal-day.today {
  /* box-shadow rather than outline, so it doesn't collide with the
     :focus-visible outline ring. */
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cal-legend {
  display: flex;
  gap: 1rem;
  font-size: .75rem;
  color: var(--muted);
  margin-top: .4rem;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}
.cal-dot-show { opacity: .45; }
.cal-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .6rem;
}
.cal-preset {
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .32rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft, rgba(102, 69, 54, 0.04));
  color: var(--accent);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cal-preset:hover {
  background: var(--accent-soft, rgba(102, 69, 54, 0.09));
  border-color: var(--accent);
}
.cal-preset:active { transform: translateY(1px); }
.cal-preset[aria-pressed="true"] { background: var(--accent); color: var(--card); border-color: var(--accent); }
.current-filters { margin: 8px 0 16px; padding: 12px 14px; background: #59443b; border: 1px solid #59443b; border-left: 3px solid var(--accent); border-radius: 10px; color: #fffaf4; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }

.production-list {
  display: grid;
  gap: 18px;
}

.production-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,250,245,0.94)),
    linear-gradient(135deg, rgba(163,63,47,0.04), rgba(89,99,77,0.04));
  scroll-margin-top: 24px;
}

.production-card:target {
  box-shadow: 0 0 0 2px var(--accent-soft), 0 22px 54px rgba(46, 27, 19, 0.12);
  animation: card-target-pulse 1.6s ease-out 1;
}

@keyframes card-target-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(163, 63, 47, 0.45); }
  60%  { box-shadow: 0 0 0 10px rgba(163, 63, 47, 0); }
  100% { box-shadow: 0 0 0 2px  var(--accent-soft); }
}

.production-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.production-head h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.05;
}

/* Mirrored production art, first column of the card head. The corpus has no
   shared aspect ratio and never will: Eventbrite ships 2:1 landscape, AMT a
   2.4:1 banner, the Slipper Room 1:1 Instagram flyers, Cherry Lane 4:5
   posters, and St. Luke's puts a 1080x300 banner next to a 490x658 poster at
   the same venue. A fixed box plus object-fit is the only thing that makes
   them line up down a 98-card page. 4:3 is the compromise: it costs a square
   25% of its sides where a 1:1 box would halve a banner.
   The backdrop is the card's own paper tone rather than white because
   Performance Space's art is photography masked into hearts -- real RGBA
   transparency, whose corners take whatever sits behind them. */
.card-art {
  flex: 0 0 200px;
  width: 200px;
  /* height:auto is load-bearing, not tidiness. The width/height attributes on
     the <img> are there to reserve space before the bytes arrive, but they also
     act as presentational hints -- so without this the attribute height wins,
     aspect-ratio never applies, and a portrait poster stretches the card to
     three times its proper height. */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}

/* Lets the title column swallow the free space. Without it, a third flex child
   gives `justify-content: space-between` something to distribute and the title
   drifts into the middle of the card instead of sitting beside the art. */
.production-head-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* Square, because at this size any crop is equally illegible and what actually
   reads down a long list is uniformity. */
.show-preview-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  align-self: start;
}

/* Coverage is partial and permanent, so inside a venue whose other shows do
   have art, an artless row would start its title 72px to the left of its
   neighbours. This reserves the gutter without drawing anything: a
   pseudo-element costs no DOM node, and an empty box makes no claim that an
   image existed and failed to load. Desktop only -- below 720px the row is a
   grid, where a ::before would become a real grid item and open a blank cell.
   Browsers without :has() simply keep today's flush-left rows. */
@media (min-width: 721px) {
  .show-preview:has(.show-preview-thumb)
    .show-preview-row:not(:has(.show-preview-thumb))::before {
    content: "";
    flex: 0 0 72px;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.meta-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.93rem;
}

.run-range {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(89, 99, 77, 0.1);
  color: var(--olive);
}

.description {
  margin: 14px 0 0;
  color: var(--ink);
  line-height: 1.6;
}

.schedule-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.schedule-label {
  margin: 0 0 10px;
  font-size: 0.83rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(102, 69, 54, 0.08);
}

.schedule-datetime {
  font-weight: 700;
}

.schedule-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.schedule-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: end;
  font-size: 0.92rem;
}

.fallback-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.venue-grid {
  display: grid;
  gap: 16px;
}

.venue-card {
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(255,248,239,0.95));
  border: 1px solid var(--line);
  transition: opacity 0.3s ease;
}

.venue-card.hidden {
  display: none;
}

.venue-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.55rem;
}

.venue-stats {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.93rem;
}

.show-preview {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.show-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(102, 69, 54, 0.08);
}

.show-preview-row:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Left content column — grows to fill the row so titles, dates, and the
   description span the full width available beside the action links. */
.show-preview-main {
  flex: 1 1 auto;
  min-width: 0;
}

.show-preview-title {
  /* An <h4> so show titles are reachable by heading navigation, reset to the
     body's visual weight rather than the UA heading defaults. */
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.show-preview-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.show-preview-links {
  display: flex;
  /* Never shrink: .show-preview-main grows and has min-width 0, so a long
     description used to squeeze this column to ~40px and break "Source" and
     "More Info" mid-word on tablet and desktop widths. */
  flex: 0 0 auto;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: end;
  align-items: start;
  white-space: nowrap;
}

/* Bare inline links are ~19px tall, under the 24px touch-target minimum.
   Padding gives them a real hit area without moving the text. */
.show-preview-links a,
.schedule-links a,
.venue-address a,
.show-preview-venue a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 4px;
}

/* When a date filter is active, swap the single next-show line for the
   full list of matching performance dates. The <ul> does not exist in the
   served HTML at all — the filter script builds it from the row's
   `data-dates` attribute and removes it when the filter clears. */
.show-preview-dates {
  display: none;
  list-style: none;
  padding: 0;
  margin: .15rem 0 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.show-preview-date {
  padding: 1px 0;
}
.show-preview-date.hidden { display: none; }
.show-preview-row.date-filtered .show-preview-meta { display: none; }
.show-preview-row.date-filtered .show-preview-dates { display: block; }

/* Filtered-out rows. A class rather than an inline `style.display` so the
   mobile media query that switches rows to `display: grid` still wins. */
.show-preview-row.row-hidden { display: none; }

.show-preview-toggle {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.show-preview-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}

.show-preview-toggle-icon {
  display: inline-block;
  transition: transform 200ms ease;
}

.show-preview-toggle[aria-expanded="false"] .show-preview-toggle-icon {
  transform: rotate(-90deg);
}

.show-preview-description {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent-soft);
  background: rgba(255, 250, 243, 0.6);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.show-preview-description[hidden] { display: none; }
.show-preview-description p { margin: 0; }

.venue-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.venue-card-header h3 { flex: 1 1 auto; min-width: 0; }

.venue-card-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.venue-card-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}

.venue-card-toggle-icon {
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 220ms ease;
}

.venue-card-toggle[aria-expanded="false"] .venue-card-toggle-icon {
  transform: rotate(-90deg);
}

.show-preview[hidden] { display: none; }

.descriptions-toggle-group {
  padding-top: 4px;
}

.filter-group > label.descriptions-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-family: inherit;
  padding-bottom: 0;
  border-bottom: 0;
  margin: 0;
}

.descriptions-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.descriptions-toggle-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  flex: 0 0 auto;
}

.descriptions-toggle:hover .descriptions-toggle-box {
  border-color: var(--accent-soft);
}

.descriptions-toggle input:focus-visible + .descriptions-toggle-box {
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-color: var(--accent);
}

.descriptions-toggle input:checked + .descriptions-toggle-box {
  background: var(--accent);
  border-color: var(--accent);
}

.descriptions-toggle input:checked + .descriptions-toggle-box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.descriptions-toggle-label {
  color: var(--muted);
  letter-spacing: 0.02em;
}

.empty-state {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px dashed var(--line);
  color: var(--muted);
}

@media (max-width: 960px) {
  /* The filters stack into one tall column here, so the first venue card
     needs clearer separation from Reset Filters than the desktop 22px. */
  .filter-container {
    margin-bottom: 36px;
  }

  .filter-controls,
  .filter-controls:has(.filter-secondary) {
    grid-template-columns: 1fr;
  }
  .filter-controls:has(.filter-secondary) > .filter-actions {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 18px;
  }

  .hero,
  .content-panel,
  .production-card,
  .venue-card,
  .filter-container {
    border-radius: 20px;
  }

  .hero {
    padding: 26px 22px;
  }

  .content-panel {
    padding: 18px;
  }

  .production-card {
    padding: 18px;
  }

  .filter-container {
    padding: 16px;
  }

  .filter-controls,
  .filter-controls:has(.filter-secondary) {
    grid-template-columns: 1fr;
  }
  .filter-controls:has(.filter-secondary) > .filter-actions {
    grid-column: auto;
  }

  .production-head,
  .section-header,
  .show-preview-row,
  .schedule-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  /* The head is a single-column grid here, so the art becomes a banner above
     the title. Cap the height: a 4:5 poster at full card width would otherwise
     take most of a phone screen before the show's name appeared. */
  .card-art {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }

  /* The row is a single-column grid here too. Give the thumbnail its column
     back rather than stacking a square above every title, which would add
     ~72px of scroll to each of ~372 rows. */
  .show-preview-row:has(.show-preview-thumb) {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 12px;
  }
  .show-preview-row:has(.show-preview-thumb) > .show-preview-main,
  .show-preview-row:has(.show-preview-thumb) > .show-preview-links {
    grid-column: 2;
  }
  .show-preview-thumb {
    width: 56px;
    height: 56px;
  }

  .schedule-links {
    justify-content: start;
  }
}

.site-footer {
  margin-top: 36px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.85rem;
  /* --muted at this size sat at 4.5:1 over the page gradient — technically
     passing, but only just. --ink-soft clears it with room to spare. */
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  /* 10px, not 4px: adjacent footer targets need clear space between them to
     satisfy the 24px touch-target rule. */
  gap: 10px;
}

/* Footer links and the cookie button are the smallest targets on the page.
   Padding brings them to the 24px minimum without changing the visual line. */
.site-footer a,
.site-footer__link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 4px;
  color: var(--ink-soft);
  text-decoration: underline;
}

.site-footer a:hover,
.site-footer__link-btn:hover {
  color: var(--accent);
}

.site-footer__sep {
  /* Decorative only (aria-hidden in the markup), but --line was invisible at
     1.2:1 — use the same colour as the text around it. */
  color: var(--ink-soft);
}

.site-footer__link-btn {
  font: inherit;
  background: none;
  border: 0;
  margin: 0;
  cursor: pointer;
}

.privacy-page p,
.privacy-page li {
  line-height: 1.55;
  color: var(--ink);
}

.privacy-page h2 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.privacy-page .privacy-updated {
  color: var(--muted);
  margin-top: 0;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.privacy-table th,
.privacy-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.privacy-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.privacy-table code {
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--ink);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner__text {
  flex: 1 1 auto;
  line-height: 1.45;
}

.consent-banner__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.consent-banner__btn {
  font: inherit;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  background: var(--card);
  color: var(--accent);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.consent-banner__btn:hover {
  background: var(--accent-soft);
}

.consent-banner__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .consent-banner__actions {
    flex-direction: column;
  }
  .consent-banner__btn {
    width: 100%;
  }
}

.source-status {
  padding: 10px 14px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  line-height: 1.5;
}

.venue-address {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.venue-address a {
  margin-left: 8px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.venue-address a:hover {
  text-decoration: underline;
}

.venue-address--unknown span,
.show-preview-venue--unknown span {
  /* Italic alone carries the "we don't know" signal; the 0.85 opacity that
     used to sit on top of it dropped this text to 4.3:1. */
  font-style: italic;
}

.show-preview-venue {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--muted);
}

.show-preview-venue a {
  margin-left: 6px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.show-preview-venue a:hover {
  text-decoration: underline;
}

/* Respect an OS-level request for reduced motion. The card-target-pulse in
   particular fires unprompted every time someone follows a "More Info" deep
   link, which is exactly the kind of motion this setting exists to stop. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .production-card:target {
    animation: none;
  }
}
