/* ATL Theater: dark marquee theme
   One stylesheet for every page, desktop and phone. */

:root {
  --bg: #0F0E12;
  --bg-alt: #151318;
  --surface: #18161C;
  --raised: #221F27;
  --line: #2E2A33;
  --line-strong: #4A4350;
  --text: #F4EFE6;
  --text-soft: #D9D2C7;
  --muted: #C9C1B6;
  --faint: #A79F95;
  --gold: #F5B841;
  --gold-hover: #FFD27A;
  --on-gold: #1A1408;
  --soon: #F29A88;
  --on-soon: #2A0D07;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --display-weight: 800;
  --scheme: dark;  /* light for light looks: date pickers and scrollbars follow it */
  /* EveryStage's own colors, for its "Powered by" wordmark: the platform's logo keeps its colors on
     every city's site. Light looks switch to its light-paper colors (lib/theme.php). */
  --es-ink: #F4EFE6;
  --es-gold: #F5B841;
  /* Other looks (Management > Settings > Look & feel, lib/theme.php) change these settings */
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
img { max-width: 100%; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.display {
  font-family: var(--display);
  font-weight: var(--display-weight);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
}
/* The city's name in large headings (city_mark() in lib/site.php) */
.display .city { color: var(--gold); }

.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.soon { color: var(--soon); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);   /* for browsers without color-mix() (Safari before 16.2): solid */
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.marquee-logo {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 3px dotted var(--gold);
  border-radius: 6px;
  box-shadow: 0 0 28px color-mix(in srgb, var(--gold) 18%, transparent);
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 28px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--text);
}
.marquee-logo:hover { color: var(--text); box-shadow: 0 0 36px color-mix(in srgb, var(--gold) 32%, transparent); }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a.active { color: var(--text); background: var(--raised); }
.header-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.header-search { padding-left: 10px; padding-right: 10px; }
.header-search.active { border-color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--body);
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--on-gold); border: 0; }
.btn-gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--text); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.is-disabled, .btn.is-disabled:hover { opacity: 0.35; border-color: var(--line-strong); cursor: default; pointer-events: none; }

/* ---------- Home hero ---------- */

.hero { padding-top: 72px; padding-bottom: 56px; display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-text h1 { font-size: 96px; line-height: 0.92; }
.hero-text p.lede { margin: 24px 0 32px; max-width: 520px; font-size: 19px; color: var(--muted); }
.hero-feature { flex: 0 1 360px; min-width: 260px; }
.hero-feature .poster { border-radius: 10px; }
.hero-feature .feature-caption { display: flex; flex-direction: column; margin-top: 12px; }
.hero-feature .feature-caption b { font-size: 18px; color: var(--text); }
.hero-feature .feature-caption span { color: var(--faint); }

/* Spotlight: shows stacked in one spot; only the current one is visible */
.spot-slides { display: grid; }
.spot-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.spot-slide.is-on { opacity: 1; visibility: visible; transition: opacity 0.6s ease, visibility 0s; }
.spot-slide:not(.is-on) { pointer-events: none; } /* a show fading out can't be tapped */
.spot-slides { position: relative; touch-action: pan-y; }
.spot-arrow {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 999px; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--text); border: 1px solid var(--line-strong);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); transition: border-color 0.15s, background 0.15s;
}
.spot-arrow[hidden] { display: none; }
.spot-arrow, .spot-dot, .spot-pause { -webkit-tap-highlight-color: transparent; }
.spot-arrow:hover { border-color: var(--gold); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.spot-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.spot-prev { left: 10px; }
.spot-next { right: 10px; }
.spot-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.spot-controls[hidden] { display: none; }
.spot-dots { display: flex; flex-wrap: wrap; gap: 2px; }
.spot-dot { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.spot-dot::after { content: ''; position: absolute; inset: 11px; border-radius: 999px; background: var(--line-strong); transition: background 0.2s; }
.spot-dot:hover::after { background: var(--muted); }
.spot-dot[aria-current="true"]::after { background: var(--gold); }
.spot-dot:focus-visible, .spot-pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 999px; }
.spot-pause {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.spot-pause:hover { border-color: var(--gold); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .spot-slide, .spot-slide.is-on { transition: none; } }

/* Wide screens (spotlight beside the headline): the headline block sets the height and the
   spotlight poster shrinks to fit, so the spotlight never runs past the text beside it. */
@media (min-width: 1000px) {
  .hero { flex-wrap: nowrap; align-items: stretch; }
  .hero-text { display: flex; flex-direction: column; justify-content: center; }
  .hero-feature { display: flex; flex-direction: column; }
  .hero-feature .eyebrow { flex: 0 0 auto; }
  .spot-slides { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .spot-slide { display: flex; flex-direction: column; min-height: 0; }
  .spot-slide .poster { flex: 1 1 0; min-height: 200px; aspect-ratio: auto; }
  .spot-controls { flex: 0 0 auto; }
}

/* ---------- Sections ---------- */

.section { padding-top: 24px; padding-bottom: 72px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: 48px; }
.band { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .section { padding-top: 64px; padding-bottom: 64px; }
.band .section-head { border-top: 0; padding-top: 0; margin-bottom: 20px; }

/* ---------- Poster cards ---------- */

.show-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.show-card { display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.show-card:hover { color: var(--text); }
.show-card:hover .poster { border-color: var(--gold); }
.poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.15s;
}
/* Every poster fills the same frame, whatever shape the original image is.
   Wide banners are trimmed at the sides; tall posters keep their top (where titles usually are). */
.poster img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.card-text { display: flex; flex-direction: column; gap: 2px; }
.card-title { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--text); }
.card-theater { color: var(--faint); font-size: 15px; line-height: 1.35; }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.badge-soon { background: var(--soon); color: var(--on-soon); }
.badge-closed { background: var(--soon); color: var(--on-soon); font-size: 15px; padding: 8px 14px; }
.badge-time { background: var(--gold); color: var(--on-gold); font-size: 15px; }
.today-also { margin-top: 56px; }
.today-also .hint { color: var(--faint); }

/* A theater's past shows (theaterdetail.php), a year at a time: quieter than what's on now */
.past-year { font-family: var(--display); font-weight: var(--display-weight); font-size: 32px; line-height: 1; color: var(--text-soft); margin: 0 0 20px; }
.past-year:not(:first-of-type) { margin-top: 48px; }
.past-grid .poster img { filter: saturate(0.75); }
.past-grid .show-card:hover .poster img { filter: none; }
.past-grid .show-card.unlinked:hover .poster { border-color: var(--line); }   /* (a past show whose page is gone: nothing to click) */
.past-grid .show-card.unlinked:hover .poster img { filter: saturate(0.75); }
.past-more { margin-top: 40px; }
.desc-invite { max-width: 680px; margin: 0; padding: 14px 18px; border-radius: 10px; border: 1px dashed var(--line-strong); color: var(--text-soft); font-size: 16px; }
.desc-invite a { color: var(--gold); font-weight: 700; }
.desc-invite a:hover { text-decoration: underline; }

/* ---------- Opening soon list ---------- */

.soon-list { display: flex; flex-direction: column; }
.soon-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 220px 100px;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.soon-row:hover { color: var(--text); }
.soon-row:hover .soon-more { color: var(--gold-hover); }
.date-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 72px; border-radius: 8px; background: var(--raised);
}
.date-tile .mon { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); line-height: 1.2; }
.date-tile .day { font-family: var(--display); font-weight: var(--display-weight); font-size: 32px; line-height: 1; }
.soon-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.soon-title b { font-size: 19px; line-height: 1.3; }
.soon-title span, .soon-run { color: var(--faint); font-size: 15px; }
.soon-run { color: var(--muted); }
.soon-more { color: var(--gold); font-weight: 500; font-size: 15px; text-align: right; }

/* ---------- Callout ---------- */

.callout {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: 40px 48px;
  border: 3px dotted var(--gold);
  border-radius: 12px;
}
.callout h2 { font-size: 40px; margin-bottom: 8px; }
.callout p { margin: 0; color: var(--muted); font-size: 17px; max-width: 560px; }

/* ---------- Month pages (Shows, Auditions) ---------- */

.page-intro { padding-top: 40px; }
.page-intro p { color: var(--muted); margin: 0 0 8px; }
.month-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0 40px;
}
.month-nav h1 { font-size: 64px; text-align: center; }
.month-nav h1 small { display: block; font-size: 0.4em; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 6px; }
.month-nav.flush-left { justify-content: flex-start; }   /* a page heading without month buttons (Theaters) */
.month-nav.flush-left h1 { text-align: left; }
.show-grid.room-below { padding-bottom: 72px; }          /* the month's list on Shows */
.section.room-above { padding-top: 72px; }               /* the home page's last section */

/* Landing pages (holiday shows etc.) */
.landing h1.display { font-size: 64px; margin: 0 0 20px; line-height: 1; }
.landing-intro { max-width: 720px; margin: 0 0 40px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.landing-intro p { margin: 0 0 12px; }
.landing .show-grid { padding-bottom: 40px; }
.landing .landing-empty { margin-bottom: 40px; }
.landing-empty { max-width: 720px; margin: 0 0 72px; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 17px; }
.landing-empty p { margin: 0 0 20px; }
.landing-empty p.btn-row { margin: 0; }
.landing h1.landing-weekend { margin-top: 36px; }
.landing h1 small { display: block; font-size: 0.4em; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 8px; }
/* "More ways to browse: Musicals · Kids' and family" */
.browse-line { margin: 0 0 56px; color: var(--muted); font-size: 16px; }
.browse-line a { font-weight: 700; }
.hero-browse { margin: 20px 0 0; font-size: 15px; }
.landing .aud-list { padding-bottom: 40px; }

/* ---------- The calendar (calendar.php, calendar.js) ---------- */
.calendar h1.cal-title { font-size: 64px; margin: 36px 0 28px; line-height: 1; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 48px; align-items: start; }
@media (min-width: 1100px) {
  /* A compact calendar on computers (4.11.2, Tony: "25% or less", so more room for shows): the same
     rounded day tiles and gold counts, just smaller */
  .cal-layout { grid-template-columns: 288px minmax(0, 1fr); gap: 8px 40px; }
  .cal-picker { position: sticky; top: 20px; }
  .cal-results .show-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cal-results > .section-head:first-child { border-top: 0; padding-top: 0; }
}
.cal-picker { max-width: 520px; width: 100%; margin-bottom: 32px; }
.cal-quick { margin: 14px 0 0; font-size: 16px; color: var(--muted); }
.cal-quick a { font-weight: 700; }
.cal-quick a.on { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.cal-month { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal-month h2 { font-size: 30px; margin: 0; }
.cal-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; margin: 0 -4px; width: calc(100% + 8px); }
.cal-grid th { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 4px 0 6px; }
.cal-grid td { padding: 0; }
.cal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  aspect-ratio: 1 / 1; min-height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-weight: 700; font-size: 17px; line-height: 1;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
a.cal-day:hover { border-color: var(--gold); color: var(--text); }
.cal-day .cal-n { font-size: 12px; font-weight: 500; color: var(--gold); }
.cal-day.is-empty { color: var(--faint); background: transparent; }
.cal-day.is-past { color: var(--faint); background: transparent; border-color: transparent; opacity: 0.5; }
.cal-day.is-today { border-color: var(--line-strong); box-shadow: inset 0 0 0 1px var(--gold); }
.cal-day.in-preview { background: color-mix(in srgb, var(--gold) 18%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.cal-day.in-range { background: color-mix(in srgb, var(--gold) 28%, var(--surface)); border-color: var(--gold); }
.cal-day.range-start, .cal-day.range-end { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.cal-day.range-start .cal-n, .cal-day.range-end .cal-n { color: var(--on-gold); }
.cal-hint { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
/* Genre buttons under the calendar (cal_genre_chips()) */
.cal-genres { margin-top: 20px; }
.cal-genres .chips { margin: 0; }
.cal-genres .chip-fold { margin: 0; }
.cal-results .show-grid.room-below { padding-bottom: 40px; }
.cal-results.is-loading { opacity: 0.55; transition: opacity 0.15s; }
.cal-results .section-head h3 { font-size: 32px; margin: 0; }
/* The compact calendar on computers (after the rules above, so it wins) */
@media (min-width: 1100px) {
  .cal-month { margin-bottom: 4px; gap: 8px; }
  .cal-month h2 { font-size: 22px; }
  .cal-month .btn-sm { min-height: 30px; width: 30px; padding: 0; justify-content: center; font-size: 13px; }
  .cal-grid { border-spacing: 5px; margin: 0 -5px; width: calc(100% + 10px); }
  .cal-grid th { font-size: 10px; letter-spacing: 0.06em; padding: 2px 0 4px; }
  .cal-day { min-height: 0; border-radius: 7px; font-size: 14px; gap: 0; }
  .cal-day .cal-n { font-size: 10px; }
  .cal-quick { margin-top: 10px; font-size: 14px; }
  .cal-quick a { white-space: nowrap; }
  .cal-hint { font-size: 13px; line-height: 1.45; }
  .cal-genres { margin-top: 16px; }
  .cal-genres .chips { gap: 6px; }
  .cal-genres .chips a { min-height: 30px; padding: 4px 11px; font-size: 13px; gap: 6px; }
  .cal-genres .chips .n { font-size: 11px; }
}
@media (max-width: 700px) {
  .calendar h1.cal-title { font-size: 46px; margin: 24px 0 20px; }
  .cal-day { font-size: 15px; border-radius: 8px; }
  .cal-grid { border-spacing: 3px; margin: 0 -3px; width: calc(100% + 6px); }
}

/* ---------- Genre filter buttons (Shows) and genre tags (show page) ---------- */

/* This weekend / By month switch and search box above the Shows list */
.shows-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; padding-top: 28px; }
.view-switch { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line-strong); border-radius: 999px; }
.view-switch a { padding: 8px 18px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; }
.view-switch a:hover { color: var(--text); }
.view-switch a.on { background: var(--gold); color: var(--on-gold); font-weight: 700; }
.search-form { display: flex; gap: 8px; flex: 0 1 360px; min-width: 0; }
.search-form input[type=search] {
  flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
}
.search-form input[type=search]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.search-form .btn-sm { min-height: 40px; padding-left: 12px; padding-right: 12px; }
.search-page { padding-top: 40px; padding-bottom: 72px; }
.search-page > h1 { font-size: 72px; margin: 0 0 20px; }
.search-big { flex-basis: auto; max-width: 640px; }
.search-big input[type=search] { min-height: 52px; font-size: 18px; padding: 10px 20px; }
.search-count { color: var(--muted); margin: 20px 0 8px; }
.search-group { margin-top: 32px; }
.search-group h2 { font-size: 34px; margin: 0 0 18px; }
.search-aud { margin: 0 0 10px; color: var(--text-soft); }
.search-aud .gold { color: var(--gold); font-weight: 700; margin-left: 6px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -12px 0 32px; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--text); font-size: 15px; font-weight: 500;
}
.chips a:hover { border-color: var(--gold); color: var(--text); }
.chips a.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; }
.chips .n { font-size: 13px; color: var(--faint); font-weight: 500; }
.chips a.on .n { color: var(--on-gold); opacity: 0.75; }
/* The Filter button (filter_chips()): on phones the buttons fold up behind it; wider screens show the buttons only */
.chip-fold > .chip-fold-btn { display: none; }
@media (max-width: 700px) {
  .chip-fold { margin: -4px 0 20px; }
  .chip-fold > .chip-fold-btn {
    display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; min-height: 44px;
    padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); cursor: pointer; list-style: none;
  }
  .chip-fold > .chip-fold-btn::-webkit-details-marker { display: none; }
  .chip-fold > .chip-fold-btn:hover, .chip-fold[open] > .chip-fold-btn { border-color: var(--gold); }
  .chip-fold > .chip-fold-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .chip-fold-word { color: var(--faint); font-size: 14px; }
  .chip-fold-btn b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .chip-fold-btn svg { flex: 0 0 auto; transition: transform 0.15s; }
  .chip-fold[open] > .chip-fold-btn svg { transform: rotate(180deg); }
  .chip-fold > .chips { margin: 12px 0 0; }
}
/* Sort by distance (lib/geo.php): under the filter buttons on Shows and Theaters */
.near-box { margin: -16px 0 32px; display: flex; flex-direction: column; gap: 10px; }
.near-box summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--gold); font-weight: 700; font-size: 15px; list-style: none; }
.near-box summary::-webkit-details-marker { display: none; }
.near-box summary::before { content: ''; width: 16px; height: 16px; flex: 0 0 auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.near-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.near-form input[type=text] {
  flex: 0 1 240px; min-width: 0; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
}
.near-form input[type=text]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.near-form .btn-sm { min-height: 40px; }
.near-or { color: var(--faint); font-size: 15px; }
.near-on { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; font-size: 15px; color: var(--muted); }
.near-on b { color: var(--text); }
.near-error { margin: 4px 0 0; color: var(--soon); font-size: 15px; }
.near-note { margin: 6px 0 0; }
.dist { color: var(--gold); white-space: nowrap; }
.theater-card .dist { margin: 0; font-size: inherit; color: var(--gold); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -8px; }
.tags a { padding: 5px 12px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 14px; font-weight: 500; }
.tags a:hover { color: var(--text); background: var(--line); }

/* ---------- Detail pages ---------- */

.crumbs { margin: 0 0 32px; padding-top: 40px; font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--text); }
.detail { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 72px; }
.detail-media { flex: 0 1 400px; min-width: 260px; }
.detail-media .poster { border-radius: 10px; aspect-ratio: auto; }
/* On a show's own page, show the whole poster uncropped */
.detail-media .poster img { height: auto; object-fit: initial; }
.detail-body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.detail-body .kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.detail-body h1 { font-size: 88px; line-height: 0.92; margin-top: 8px; overflow-wrap: anywhere; }
.facts { display: flex; gap: 12px; flex-wrap: wrap; }
.fact {
  padding: 14px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.fact .label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.fact b { font-weight: 700; }
.fact b.gold { color: var(--gold); }
.fact .directions { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--gold); }
.fact .directions:hover { text-decoration: underline; }
/* A show at another venue (lib/venue.php): the venue's name, then its address */
/* Venue maps (lib/map.php, map.js): under the poster on computers, under the address on phones
   once "Show map" is tapped. Colors come from the look; the map's own come from map.js. */
.venue-map {
  position: relative; margin-top: 20px; height: 300px; border-radius: 10px; overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--line);
}
.venue-map[hidden] { display: none; }
/* The address and Directions just above the map, in the poster's column (lib/map.php where_card_html()).
   On computers it takes over from the Where fact; on phones the fact stays (with "Show map") and this hides. */
.where-card {
  margin-top: 20px; padding: 14px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.where-card + .venue-map { margin-top: 10px; }
.where-card .label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.where-card b { font-weight: 700; }
.where-card .venue-name, .where-card .venue-address { display: block; }
.where-card .directions { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--gold); align-self: flex-start; }
.where-card .directions:hover { text-decoration: underline; }
@media (min-width: 701px) { .detail:has(.where-card) .facts .fact-where { display: none; } }
/* Phones keep the address in the facts, moved to the end of them so the map (placed right after
   the facts by map.js) opens just under it */
@media (max-width: 700px) {
  .where-card { display: none; }
  .detail:has(.venue-map) .facts .fact-where { order: 99; flex-basis: 100%; }
}
.venue-map.on-phone { margin-top: 0; height: 260px; }
.venue-map .venue-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }  /* over maplibre-gl.css's position: relative */
.venue-map.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 14px color-mix(in srgb, var(--gold) 60%, transparent); opacity: 0.6;
}
.map-pin { display: flex; align-items: center; gap: 8px; pointer-events: none; }
.map-pin-bulb {
  flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 22%, transparent), 0 0 0 18px color-mix(in srgb, var(--gold) 12%, transparent), 0 0 22px 6px color-mix(in srgb, var(--gold) 35%, transparent);
}
.map-pin-words { display: flex; flex-direction: column; font-family: var(--body); line-height: 1.25; margin-left: 10px; max-width: 170px; text-shadow: 0 0 3px var(--bg-alt), 0 0 3px var(--bg-alt), 0 0 6px var(--bg-alt); }
.map-pin-words b { font-size: 13px; font-weight: 700; color: var(--text); }
.map-pin-words span { font-size: 11px; color: var(--muted); }
.venue-map .maplibregl-ctrl-group { background: var(--raised); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: none; }
.venue-map .maplibregl-ctrl-group button { width: 30px; height: 30px; }
.venue-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line-strong); }
.venue-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { background-image: none; position: relative; }
.venue-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon::before { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 18px/1 var(--body); color: var(--text); }
.venue-map .maplibregl-ctrl-group button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon::before { content: "\2212"; }
.venue-map .maplibregl-ctrl-group button:hover { background: var(--line); }
.venue-map .maplibregl-ctrl-group button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.venue-map .maplibregl-ctrl.maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--bg-alt) 80%, transparent); color: var(--faint); font: 10px/1.6 var(--body); padding: 0 6px; border-radius: 4px 0 0 0; }
.venue-map .maplibregl-ctrl-attrib a { color: var(--muted); }
.venue-map .maplibregl-ctrl-attrib a:hover { color: var(--text); text-decoration: underline; }
.venue-map .maplibregl-cooperative-gesture-screen { background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); font: 15px/1.4 var(--body); }
.fact .map-toggle {
  align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 700 14px/1.55 var(--body); color: var(--gold);
}
.fact .map-toggle:hover { text-decoration: underline; }
/* Every theater's map (Theaters › Map, lib/map.php theaters_map_html(), map.js): the shared rules
   above (.venue-map …) style its controls and credit too */
.theaters-map {
  position: relative; height: min(72vh, 680px); min-height: 380px; margin-top: 24px; border-radius: 12px; overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--line);
}
.theaters-map.is-failed { display: none; }
.theaters-map .venue-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.theaters-map .maplibregl-ctrl-group { background: var(--raised); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: none; }
.theaters-map .maplibregl-ctrl-group button { width: 32px; height: 32px; }
.theaters-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line-strong); }
.theaters-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { background-image: none; position: relative; }
.theaters-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon::before { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 18px/1 var(--body); color: var(--text); }
.theaters-map .maplibregl-ctrl-group button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon::before { content: "\2212"; }
.theaters-map .maplibregl-ctrl-group button:hover { background: var(--line); }
.theaters-map .maplibregl-ctrl.maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--bg-alt) 80%, transparent); color: var(--faint); font: 10px/1.6 var(--body); padding: 0 6px; border-radius: 4px 0 0 0; }
.theaters-map .maplibregl-ctrl-attrib a { color: var(--muted); }
.theaters-map .maplibregl-cooperative-gesture-screen { background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); font: 15px/1.4 var(--body); }
.theater-popup .maplibregl-popup-content { padding: 0; background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 10px 30px color-mix(in srgb, #000 35%, transparent); }
.theater-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--line-strong); }
.theater-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--line-strong); }
.theater-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--line-strong); }
.theater-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--line-strong); }
.theater-popup .maplibregl-popup-close-button { color: var(--muted); font-size: 20px; width: 30px; height: 30px; right: 2px; top: 2px; border-radius: 6px; }
.theater-popup .maplibregl-popup-close-button:hover { background: var(--line); color: var(--text); }
.map-card { display: flex; gap: 12px; align-items: center; padding: 12px 34px 12px 12px; color: var(--text); text-decoration: none; font-family: var(--body); }
.map-card .logo-tile { flex: none; width: 64px; height: 64px; border-radius: 8px; }
.map-card-words { display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.map-card-words b { color: var(--text); font-size: 15px; }
.map-card-words span b { font-size: 13px; color: var(--text); }
.map-card-go { color: var(--gold); font-weight: 700; margin-top: 2px; }
.map-card:hover .map-card-go { text-decoration: underline; }
.theaters-map-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.theaters-map-key span { display: inline-flex; align-items: center; gap: 8px; }
.theaters-map-key i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg); }
.theaters-map-key .key-lit { background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
.theaters-map-key .key-dim { background: var(--bg-alt); border: 2.5px solid var(--gold); width: 14px; height: 14px; }
.theaters-map-key .key-group { background: var(--gold); width: 18px; height: 18px; display: grid; place-items: center; font: 700 10px/1 var(--body); color: var(--on-gold); font-style: normal; }
.theaters-map-off { margin-top: 10px; font-size: 14px; color: var(--muted); }
.theaters-map-off a { color: var(--text); }
.theaters-map-noscript { padding: 24px; }
/* The Calendar's List | Map switch and its map (lib/calendar.php cal_view_switch(), cal_map_html(); 4.26.0) */
.cal-results .section-head:has(.cal-switch) { justify-content: flex-start; align-items: center; }
.cal-results .section-head .cal-switch { margin-left: auto; }
.cal-switch a { padding: 6px 16px; font-size: 14px; }
.cal-results .cal-map { margin-top: 0; }
.cal-map-card { align-items: flex-start; padding-right: 36px; }
.cal-map-card .map-card-words { gap: 6px; }
.cal-map-card .map-card-words > b a { color: var(--text); }
.cal-map-show { display: flex; flex-direction: column; gap: 1px; padding-top: 6px; border-top: 1px solid var(--line); }
.cal-map-show a { color: var(--text); font-weight: 700; font-size: 14px; }
.cal-map-show i { font-style: normal; }
.cal-map-show em { font-style: normal; color: var(--gold); font-weight: 700; }
@media (max-width: 700px) { .theaters-map { height: 68vh; margin-top: 16px; } }
.fact .venue-name, .fact .venue-address { display: block; }
.fact .venue-address { font-weight: 500; color: var(--muted); }
/* Management: a login request for a theater that's already listed (manage/index.php), and the
   request form's "Is it one of these?" (members/request.php) */
.match-note {
  margin: 0; padding: 10px 14px; border-radius: 8px; font-size: 15px;
  background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.match-note a { color: var(--gold); font-weight: 700; }
.match-note .btn { margin: 6px 6px 0 0; }

/* Management > Newsletter: the scheduled job's command */
.job-cmd { display: block; margin: 8px 0; padding: 8px 10px; border-radius: 6px; background: var(--bg); color: var(--text); font-size: 13px; overflow-wrap: anywhere; user-select: all; }

/* Add several shows (members/import.php) and approving an upload (manage/index.php) */
.import-help summary { cursor: pointer; color: var(--gold); width: max-content; }
.import-help dl { margin: 12px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 15px; }
.import-help dt { font-weight: 700; color: var(--text); }
.import-help dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .import-help dl { grid-template-columns: 1fr; gap: 2px; } .import-help dd { margin-bottom: 8px; } }
.import-table td { vertical-align: top; }
.import-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold); }
.import-table label { cursor: pointer; }
.import-bad td { background: color-mix(in srgb, var(--soon) 8%, transparent); }
.import-problem { margin-top: 4px; font-size: 14px; color: var(--soon); font-weight: 600; }
.import-note { margin-top: 4px; font-size: 14px; color: var(--muted); }
.panel.upload-group { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.upload-group > div { flex: 1 1 360px; }

/* Email one login: earlier emails (manage/email.php) */
.past-email { border-top: 1px solid var(--line); padding: 10px 0; }
.past-email summary { cursor: pointer; }
.past-email-body { margin-top: 8px; padding: 12px 14px; border-radius: 8px; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; }

/* Logins: moving a login to another theater (manage/users.php) */

/* A closed show's page says so first (showdetail.php) */
.closed-note {
  max-width: 680px; display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 20px; border-radius: 10px;
  background: var(--surface); background: color-mix(in srgb, var(--soon) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--soon) 55%, transparent);
}
.closed-note p { margin: 0; font-size: 17px; color: var(--text); }
.closed-note a { color: var(--gold); font-weight: 700; }
.closed-note a:hover { text-decoration: underline; }
.gone-note { max-width: 680px; margin: 10px 0 0; padding: 10px 14px; border-radius: 8px; border: 1px dashed var(--line-strong); color: var(--text-soft); font-size: 15px; }
.gone-note a { color: var(--gold); font-weight: 700; }
.closed-tag {
  flex: none; padding: 4px 10px; border-radius: 6px; margin-top: 1px;
  background: var(--soon); color: var(--on-soon);
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
/* A show's performances (Dates & times, lib/performances.php) */
.perf-box { max-width: 680px; }
.perf-head { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; font-family: inherit; }
.perf-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.perf-list li { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.perf-day { flex: 0 0 9.5em; font-weight: 700; color: var(--text); }
.perf-times { color: var(--text-soft); }
.perf-time { color: var(--text); font-weight: 600; }
.perf-label { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.perf-today .perf-day { color: var(--gold); }
.perf-more summary { cursor: pointer; color: var(--gold); font-weight: 700; padding: 10px 0; }
.perf-more .perf-list { border-top: 0; }
@media (max-width: 560px) { .perf-day { flex-basis: 100%; } .perf-list li { gap: 2px 16px; } }
/* Add to calendar (lib/addcal.php): a small calendar button beside each performance, and a button
   with a day picker for a show with only a run; each opens Google Calendar or a calendar file */
.addcal { position: relative; display: inline-block; vertical-align: middle; }
.addcal > summary { list-style: none; cursor: pointer; }
.addcal > summary::-webkit-details-marker { display: none; }
.addcal-perf { margin-left: 6px; }
.addcal-perf > summary {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.addcal-perf > summary:hover, .addcal-perf[open] > summary { border-color: var(--gold); color: var(--gold); }
.addcal > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.addcal-run > summary.btn { gap: 8px; }
.addcal-run[open] > summary.btn { border-color: var(--gold); }
.addcal-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: flex; flex-direction: column; gap: 2px;
  min-width: 250px; padding: 6px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--raised); box-shadow: 0 12px 32px color-mix(in srgb, var(--bg) 70%, transparent);
  font-size: 15px; font-weight: 500;
}
.addcal-menu a { padding: 9px 12px; border-radius: 8px; color: var(--text); }
.addcal-menu a:hover { background: var(--surface); color: var(--text); }
form.addcal-menu { width: 330px; gap: 8px; padding: 14px; }
form.addcal-menu label { font-weight: 700; color: var(--text); }
form.addcal-menu input[type=date] {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 8px 10px; color-scheme: var(--scheme);
}
.addcal-hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.addcal-go { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.addcal-go .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 560px) {
  /* On phones the choices open under the button, in the page, so they never run off the screen */
  .addcal-menu { position: static; margin-top: 8px; width: auto; min-width: 0; box-shadow: none; }
  .addcal-perf[open] { display: block; flex-basis: 100%; margin-left: 0; }
  .addcal-run[open] { flex-basis: 100%; }
}
.prose { font-size: 17px; color: var(--text-soft); max-width: 680px; overflow-wrap: anywhere; }
.prose p { margin: 0 0 14px; }
.review-box { max-width: 680px; padding: 24px 28px; border-radius: 12px; border: 3px dotted var(--gold); }
.review-box .eyebrow { margin-bottom: 6px; font-size: 13px; }
.review-box p { margin: 0 0 10px; font-size: 17px; }
.review-box p:last-child { margin-bottom: 0; }

.logo-tile {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 24px;
  border-radius: 10px;
  background: #807B86; /* medium grey: works for both light and dark logos */
}
/* Every logo is scaled to the same height (very wide logos are capped by the tile width) */
.logo-tile { position: relative; }
.logo-tile img {
  position: absolute; inset: 0; margin: auto;
  height: 72%; width: auto; max-width: calc(100% - 24px);
  object-fit: contain; display: block;
}

/* "More at this theater" */
.more { padding-bottom: 72px; }
.more .section-head h2 { font-size: 40px; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.more-card {
  display: flex; gap: 20px; align-items: center; padding: 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.more-card:hover { color: var(--text); border-color: var(--gold); }
.more-card .thumb { flex: 0 0 72px; height: 96px; border-radius: 6px; overflow: hidden; background: var(--raised); }
.more-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.more-card b { display: block; font-size: 18px; line-height: 1.3; }
.more-card b + span { color: var(--faint); }

/* ---------- Theaters list ---------- */

.theater-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-bottom: 72px; }
.theater-card { display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.theater-card:hover { color: var(--text); }
.theater-card .logo-tile { aspect-ratio: 3 / 2; padding: 20px; border: 2px solid transparent; transition: border-color 0.15s; }
.theater-card:hover .logo-tile { border-color: var(--gold); }
.theater-card b { font-size: 17px; line-height: 1.3; }
.theater-card span { color: var(--faint); font-size: 15px; margin-top: -8px; }

/* ---------- List view (4.25.0): the same cards laid out as rows, when a visitor picks List
   on Shows (and the show landing pages) or Theaters (view_pick(), list_class()) ---------- */
.show-grid.as-list, .theater-grid.as-list { display: flex; flex-direction: column; gap: 0; }
.as-list .show-card, .as-list .theater-card {
  display: grid; align-items: center; column-gap: 18px; row-gap: 2px;
  padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0;
  transition: background-color 0.15s;
}
.as-list .show-card:first-child, .as-list .theater-card:first-child { border-top: 1px solid var(--line); }
.as-list .show-card:hover, .as-list .theater-card:hover { background: color-mix(in srgb, var(--gold) 8%, transparent); }
/* A show: thumbnail · title and theater · dates */
.as-list .show-card { grid-template-columns: 56px minmax(0, 1fr) auto; }
.as-list .show-card .poster { display: contents; }
.as-list .show-card .poster img {
  grid-column: 1; grid-row: 1; width: 56px; height: 70px;
  border-radius: 6px; border: 1px solid var(--line); background: var(--surface);
}
.as-list .show-card:hover .poster img { border-color: var(--gold); }
.as-list .show-card .card-text { grid-column: 2; grid-row: 1; }
.as-list .show-card .badge { position: static; grid-column: 3; grid-row: 1; box-shadow: none; white-space: nowrap; justify-self: end; }
/* Plain dates (no "closing soon" or time color) read as text, lined up with the title */
.as-list .show-card .badge:not(.badge-soon):not(.badge-time):not(.badge-closed) { background: none; padding-left: 0; padding-right: 0; color: var(--text-soft); }
/* A theater: logo · name, with its city and types under · its shows on the right */
.as-list .theater-card { grid-template-columns: 96px minmax(0, 1fr) auto; }
.as-list .theater-card .tc-types { margin: 0; font-size: inherit; color: var(--faint); }
.as-list .theater-card .tc-counts { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin: 0; text-align: right; }
.as-list .theater-card .tc-counts > span { margin: 0; font-size: 15px; white-space: nowrap; }
.as-list .theater-card .tc-now { color: var(--gold); font-weight: 700; }
.as-list .theater-card .tc-coming { color: var(--text-soft); }
.as-list .theater-card .tc-none { color: var(--faint); }
.as-list .theater-card .logo-tile { grid-row: 1 / span 2; width: 96px; aspect-ratio: 3 / 2; padding: 0; border-width: 1px; border-radius: 8px; margin: 0; }
.as-list .theater-card b { grid-column: 2; align-self: end; }
.as-list .theater-card > span:not(.logo-tile):not(.tc-counts) { grid-column: 2; margin-top: 0; align-self: start; }
@media (max-width: 700px) {
  /* Phones: the dates go under the theater */
  .as-list .show-card { grid-template-columns: 48px minmax(0, 1fr); padding: 10px 4px; column-gap: 14px; }
  .as-list .show-card .poster img { grid-row: 1 / span 2; width: 48px; height: 60px; }
  .as-list .show-card .badge { grid-column: 2; grid-row: 2; justify-self: start; padding: 3px 10px; font-size: 12px; }
  .as-list .theater-card { grid-template-columns: 72px minmax(0, 1fr); padding: 10px 4px; column-gap: 14px; }
  /* Phones: the show counts go under the city, on one line */
  .as-list .theater-card .logo-tile { grid-row: 1 / span 3; }
  .as-list .theater-card .tc-counts { grid-column: 2; grid-row: 3; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 12px; text-align: left; }
  .as-list .theater-card .tc-counts > span { font-size: 13px; }
  .as-list .theater-card .logo-tile { width: 72px; }
}

/* ---------- Auditions ---------- */

.aud-list { display: flex; flex-direction: column; gap: 16px; padding-bottom: 72px; }
.aud-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: start;
  padding: 24px 28px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.aud-card h2, .aud-card h3 { margin: 0; font-size: 22px; line-height: 1.3; }
.aud-meta { color: var(--faint); font-size: 15px; margin: 4px 0 12px; }
.aud-meta b { color: var(--gold); font-weight: 700; }
.aud-blurb { color: var(--text-soft); overflow-wrap: anywhere; }
.aud-blurb p { margin: 0 0 10px; }
.aud-blurb p:last-child { margin-bottom: 0; }
/* Audition alerts (lib/follow.php): the button above the list, the small link on each card */
.aud-follow { margin: -8px 0 24px; }
.aud-alert-row { grid-column: 1 / -1; margin: -4px 0 0; }
.aud-alert { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; }
.aud-alert svg { width: 15px; height: 15px; }
.aud-alert:hover, .aud-alert:focus-visible { color: var(--gold); text-decoration: underline; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- About ---------- */

.about { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; padding-top: 48px; padding-bottom: 72px; }
.about figure { flex: 0 1 340px; min-width: 240px; margin: 0; }
.about figure img { width: 100%; border-radius: 10px; display: block; }
.about figcaption { margin-top: 10px; color: var(--faint); font-size: 15px; }
.about .prose { flex: 1 1 520px; }
.about h1 { font-size: 72px; margin-bottom: 24px; }

/* ---------- Empty state: the ghost light (norows() in lib/listings.php) ---------- */

.empty { text-align: center; padding-top: 24px; padding-bottom: 72px; }
.empty h2 { font-family: var(--display); font-weight: var(--display-weight); text-transform: uppercase; font-size: 32px; margin: 0 0 24px; }
.dark-stage { max-width: 640px; }
.dark-stage h2 { font-size: clamp(36px, 7vw, 52px); line-height: 1; margin-bottom: 10px; }
.ghost-light { display: block; width: 200px; max-width: 60%; height: auto; margin: 0 auto 8px; overflow: visible; color-scheme: var(--scheme); }
.ghost-light .gl-glow-in { stop-color: var(--gold); stop-opacity: .45; }
.ghost-light .gl-pool-in { stop-color: var(--gold); stop-opacity: .22; }
.ghost-light .gl-glow-out { stop-color: var(--gold); stop-opacity: 0; }
.ghost-light .gl-floor { stroke: var(--line-strong); stroke-width: 2; }
.ghost-light .gl-stand { stroke: var(--muted); stroke-width: 4; stroke-linecap: round; fill: none; }
.ghost-light .gl-cage { stroke: var(--faint); stroke-width: 2; stroke-linecap: round; fill: none; }
/* (the bulb is lit in every look: on a light look's paper, a pale tint of the accent rather than the accent itself) */
.ghost-light .gl-bulb { fill: var(--gold-hover); fill: light-dark(color-mix(in srgb, var(--gold) 22%, var(--bg)), var(--gold-hover)); stroke: light-dark(var(--gold), transparent); stroke-width: 1.5; }
.ghost-light .gl-socket { fill: var(--muted); }
/* (an old bulb: now and then it flickers) */
.ghost-light .gl-halo { animation: gl-flicker 7s infinite; }
@keyframes gl-flicker { 0%, 46%, 49%, 53%, 100% { opacity: 1; } 47% { opacity: .7; } 51% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .ghost-light .gl-halo { animation: none; } }
.empty-text { color: var(--text-soft); font-size: 18px; margin: 0 0 28px; }
.stage-quote { margin: 0 auto 22px; max-width: 520px; }
.stage-quote blockquote { margin: 0; }
.stage-quote blockquote p { font-size: 21px; line-height: 1.45; font-style: italic; color: var(--text); margin: 0 0 10px; }
.stage-quote figcaption { color: var(--muted); font-size: 15px; }
.stage-quote figcaption::before { content: "\2014\00a0"; }

/* ---------- Not found: the stage manager (page_not_found() in lib/listings.php) ---------- */

.backstage { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 580px); gap: 56px; justify-content: center; align-items: center; padding-top: 40px; padding-bottom: 88px; }
.stage-door { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px 22px; text-align: center; background: var(--surface); border: 3px solid var(--gold); border-radius: 6px; outline: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); outline-offset: 5px; box-shadow: 0 0 48px color-mix(in srgb, var(--gold) 14%, transparent); transform: rotate(-2deg); }
.door-number { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.door-name { font-family: var(--display); font-weight: var(--display-weight); font-size: 58px; line-height: .95; text-transform: uppercase; color: var(--gold); }
.door-rule { width: 100%; padding-top: 10px; border-top: 2px solid var(--line-strong); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.sm-note { position: relative; padding: 38px 34px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.sm-note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 22px; margin-left: -48px; background: var(--line-strong); border-radius: 6px 6px 3px 3px; }  /* the clipboard's clip */
.sm-note .sm-from { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.sm-note h1 { margin: 0 0 18px; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(34px, 6vw, 50px); line-height: 1; text-transform: uppercase; }
.sm-note p { margin: 0 0 14px; font-size: 18px; line-height: 1.55; color: var(--text-soft); }
.sm-note .btn-row { margin: 24px 0 20px; }
.sm-note .sm-sign { margin: 0; font-family: 'Gochi Hand', 'Comic Sans MS', cursive; font-size: 28px; line-height: 1.2; color: var(--text); }
.sm-sign span { display: block; font-size: 20px; color: var(--muted); }
@media (max-width: 760px) {
  .backstage { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .stage-door { justify-self: center; width: min(260px, 100%); }
  .door-name { font-size: 48px; }
  .sm-note { padding: 34px 22px 24px; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-top: 40px; padding-bottom: 56px; color: var(--faint); font-size: 14px;
}
.footer-about { flex: 1 1 520px; max-width: 760px; }
.footer-about p { margin: 8px 0 0; }
.footer-logo { font-family: var(--display); font-weight: var(--display-weight); font-size: 22px; letter-spacing: 0.08em; color: var(--text); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-donate { font-weight: 700; }
/* "Powered by EveryStage" (lib/everystage.php): small and quiet, under the footer */
.footer-powered { display: flex; justify-content: center; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.powered-by { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 4px; border-radius: 6px; }
.powered-label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.es-mark { display: block; height: 19px; width: auto; aspect-ratio: 631.8 / 112.2; }
.es-mark .es-every { fill: var(--es-ink); }
.es-mark .es-stage { fill: var(--es-gold); }
.powered-by:hover .powered-label { color: var(--muted); }
.powered-by:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.about .donate { margin: 28px 0 0; }
/* The privacy policy (privacy.php) */
.privacy .prose h2 { font-size: 22px; color: var(--text); margin: 32px 0 10px; }
.privacy .prose ul { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.privacy .privacy-updated { color: var(--faint); font-size: 15px; }

/* The For theaters guide (for-theaters.php) */
.ft-hero { padding-top: 56px; }
.ft-hero h1 { font-size: 72px; max-width: 900px; }
.ft-hero .lede { margin: 24px 0 32px; max-width: 680px; font-size: 20px; color: var(--muted); }
.ft-section { padding-top: 72px; }
.ft-section > h2 { font-size: 44px; margin-bottom: 24px; }
.ft-section h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; color: var(--text); }
.ft-section p { margin: 0; color: var(--muted); font-size: 16px; }
.ft-section p + p { margin-top: 10px; }
.ft-section p b { color: var(--text-soft); }
.ft-tiles, .ft-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ft-tiles li, .ft-feature { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ft-steps { counter-reset: ft-step; }
.ft-steps li { counter-increment: ft-step; padding-top: 18px; border-top: 3px solid var(--gold); }
.ft-steps li::before { content: counter(ft-step); display: block; margin-bottom: 10px; font-family: var(--display); font-weight: var(--display-weight); font-size: 48px; line-height: 1; color: var(--gold); }
.ft-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ft-feature.ft-star { grid-column: 1 / -1; border: 2px solid var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.ft-feature.ft-star h3 { font-size: 26px; }
.ft-feature.ft-star p { font-size: 17px; max-width: 720px; }
.ft-feature.ft-star { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: center; }
.ft-example { margin: 0; padding: 18px 20px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.ft-example figcaption { margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.ft-example table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ft-example th { text-align: left; font-size: 13px; font-weight: 500; color: var(--faint); padding: 0 8px 6px 0; }
.ft-example td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); color: var(--text-soft); white-space: nowrap; }
.ft-example .ft-label { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .ft-feature.ft-star { grid-template-columns: 1fr; } }
.ft-section .ft-tag { display: inline-block; margin: 0 0 10px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ft-last { padding-bottom: 80px; }
.ft-last .callout p + p { margin-top: 8px; }
@media (max-width: 700px) {
  .ft-hero { padding-top: 32px; }
  .ft-hero h1 { font-size: 48px; }
  .ft-hero .lede { font-size: 18px; margin: 16px 0 24px; }
  .ft-section { padding-top: 56px; }
  .ft-section > h2 { font-size: 36px; }
  .ft-features { grid-template-columns: 1fr; }
}

/* ---------- Newsletter sign-up ---------- */

.footer-signup { margin-top: 22px; }
.footer-signup label { display: block; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.nl-form .nl-row, form.nl-form:not(.footer-signup) { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.nl-form input[type=email] {
  flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
}
.nl-form input[type=email]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.footer-signup .btn { min-height: 44px; }
.nl-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.nl-page { padding-top: 56px; padding-bottom: 80px; }
.nl-box { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.nl-box h1 { font-size: 64px; margin: 0; }
/* Following theaters and shows (follow.php) */
.follow-box h1 { font-size: 56px; }
.follow-box .eyebrow { margin: 0 0 -10px; }
.follow-sub { margin: -8px 0 0; color: var(--muted); font-size: 17px; }
.follow-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.follow-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.follow-list a { color: var(--text); }
.follow-list form { flex: 0 0 auto; }
.follow-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.follow-forget { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--gold); text-decoration: underline; cursor: pointer; }
.btn svg { flex: 0 0 auto; }
.follow-on { border-color: var(--gold); color: var(--gold); }
.nl-box .prose { margin: 0; }
@media (max-width: 640px) { .nl-box h1 { font-size: 46px; } }
/* The latest issue under the sign-up box (newsletter.php, nl_example_html()) */
.nl-example { max-width: 640px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.nl-example h2 { font-size: 44px; margin: 0 0 10px; }
.nl-example-note { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
.nl-example-subject { display: block; margin-top: 4px; color: var(--text); }
.nl-example-frame { display: block; width: 100%; height: 900px; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 640px) { .nl-example h2 { font-size: 34px; } }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat-row .stat { gap: 2px; padding: 20px 24px; }
.stat-row .stat b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--gold); }
.stat-row .stat span { color: var(--faint); font-size: 15px; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }
.social-post { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.social-text textarea { min-height: 420px; line-height: 1.5; }
.social-picture img { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.social-picture.wide img { max-width: 480px; }
.social-nets { margin: 0 0 4px; }
.short-other { display: none; min-width: 240px; }
.short-other.on { display: block; }
.short-list select, .short-list .short-other { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; max-width: 280px; }
.dash-heading { margin: 8px 0 -4px; }
.dash-stats .stat { flex: 1 1 160px; }
.dash-stats .stat b a { color: inherit; text-decoration: none; }
.dash-stats .stat-note { display: block; margin-top: 6px; color: var(--faint); font-size: 13px; }
.dash-done { color: var(--muted); }
/* The social posts' ticks on the dashboards (dash_social_item()) */
.social-ticks { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.social-ticks-label { color: var(--faint); font-size: 14px; margin-right: 4px; }
.social-ticks button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 12px 5px 8px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--text); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
}
.social-ticks button:hover { border-color: var(--gold); }
.social-ticks button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.social-ticks .tick {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 50%; border: 1px solid var(--line-strong); font-size: 12px; line-height: 1;
}
.social-ticks button.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; }
.social-ticks button.on .tick { border-color: var(--on-gold); color: var(--on-gold); }
.dash-social.is-done { opacity: 0.8; }
.dash-social.is-done .info b { color: var(--muted); }
.social-count.over { color: var(--gold); font-weight: 700; }
.social-picture #picture-alt { min-height: 0; }
.social-steps { margin: 8px 0 12px; padding-left: 22px; line-height: 1.7; }
@media (max-width: 860px) { .social-post { grid-template-columns: minmax(0, 1fr); } }
.nl-preview { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 10px; background: #f4efe6; }
.form-actions button[disabled] { opacity: 0.4; cursor: default; }

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  .show-grid, .theater-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-text h1 { font-size: 76px; }
  .detail-body h1 { font-size: 64px; }
  .soon-row { grid-template-columns: 72px minmax(0, 1fr) 180px; }
  .soon-more { display: none; }
}

/* ---------- Phone ---------- */

@media (max-width: 700px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-inner { padding-top: 12px; padding-bottom: 10px; gap: 10px; }
  .marquee-logo { font-size: 22px; padding: 6px 12px; border-width: 2px; }
  .header-tools { order: 1; margin-left: auto; gap: 6px; }
  .header-tools .btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
  .header-tools .header-search { padding: 6px 9px; }
  .marquee-logo { padding: 6px 10px; }
  .shows-toolbar { padding-top: 20px; }
  .view-switch { display: flex; width: 100%; }
  .view-switch a { flex: 1 1 auto; text-align: center; padding: 8px 6px; font-size: 14px; }
  .search-form { flex-basis: 100%; }
  .search-page > h1 { font-size: 52px; }
  .main-nav { order: 2; width: 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 8px 9px; font-size: 15px; white-space: nowrap; }
  .hero-feature { max-width: 300px; }

  .hero { padding-top: 32px; padding-bottom: 28px; gap: 28px; }
  .hero-text { flex-basis: 100%; }
  .hero-text h1 { font-size: 56px; }
  .hero-text p.lede { font-size: 17px; margin: 16px 0 20px; }
  .hero-feature { flex-basis: 100%; }

  .section { padding-bottom: 48px; }
  .section-head { padding-top: 24px; margin-bottom: 20px; }
  .section-head h2 { font-size: 34px; }
  .band .section { padding-top: 32px; padding-bottom: 32px; }

  .show-grid, .theater-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .badge { top: 8px; left: 8px; padding: 4px 9px; font-size: 12px; }
  .card-title { font-size: 15px; }
  .card-theater { font-size: 13px; }
  .theater-card b { font-size: 15px; }

  .soon-row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
  .soon-run { display: none; }
  .date-tile { height: 56px; }
  .date-tile .day { font-size: 24px; }
  .soon-title b { font-size: 16px; }

  .callout { padding: 22px; border-width: 2px; }
  .callout h2 { font-size: 28px; }

  .month-nav { padding: 16px 0 24px; gap: 8px; }
  .month-nav h1 { font-size: 36px; }
  .month-nav .btn { padding: 10px 0; width: 44px; flex: 0 0 44px; font-size: 18px; }
  .month-nav .mlabel { display: none; }
  .chips { margin-top: -4px; margin-bottom: 20px; gap: 6px; }
  .chips a { min-height: 36px; padding: 6px 12px; font-size: 14px; }

  .crumbs { padding-top: 24px; margin-bottom: 20px; }
  .landing h1.display { font-size: 40px; }
  .landing h1.landing-weekend { margin-top: 24px; }
  .landing-intro { font-size: 17px; margin-bottom: 28px; }
  .landing-empty { padding: 20px; }
  .detail { gap: 28px; }
  .detail-media { flex-basis: 100%; }
  .detail-body h1 { font-size: 48px; }
  .about h1 { font-size: 48px; }

  .aud-card { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .more .section-head h2 { font-size: 30px; }
  .footer-inner { padding-top: 28px; padding-bottom: 36px; }
}

/* =========================================================
   Theater portal and management area
   ========================================================= */

.app-brand { display: flex; align-items: center; gap: 16px; }
.app-brand .marquee-logo { font-size: 22px; padding: 6px 14px; }
.app-label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.app-user { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.app-user b { color: var(--text); }
.btn-sm { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.btn-danger { border: 1px solid var(--line-strong); color: var(--soon); background: transparent; font-weight: 500; }
.btn-danger:hover { border-color: var(--soon); color: var(--soon); }

.app-layout { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; padding-top: 40px; padding-bottom: 80px; }
.app-nav { flex: 0 0 220px; display: flex; flex-direction: column; gap: 4px; }
.app-nav a { padding: 11px 16px; border-radius: 10px; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.app-nav a:hover { color: var(--text); background: var(--surface); }
.app-nav a.active { background: var(--raised); color: var(--text); font-weight: 700; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
details.nav-group { display: block; }   /* (a heading that folds its group away: lib/app.php) */
details.nav-group > a { margin-top: 2px; }
.nav-group + .nav-group { margin-top: 18px; }
.nav-head { padding: 0 16px 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
summary.nav-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; border-radius: 8px; padding-top: 4px; padding-bottom: 6px; }
summary.nav-head::-webkit-details-marker { display: none; }
summary.nav-head::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.15s; }
details.nav-group:not([open]) > summary.nav-head::after { transform: rotate(-45deg); }
summary.nav-head:hover { color: var(--text); }
summary.nav-head:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { summary.nav-head::after { transition: none; } }
/* Items under a heading sit a little in from it */
.nav-head ~ a { padding-left: 30px; }
.app-menu-bar { display: none; }
.count { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: 13px; font-weight: 700; text-align: center; }
.app-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.app-main h1 { font-family: var(--display); font-weight: var(--display-weight); text-transform: uppercase; font-size: 52px; line-height: 1; margin: 0; }
.app-main h2 { font-family: var(--display); font-weight: var(--display-weight); text-transform: uppercase; font-size: 30px; line-height: 1.1; margin: 0; }
.app-main .intro { margin: 8px 0 0; color: var(--muted); max-width: 720px; }
.app-single { max-width: 520px; margin: 0 auto; flex: 1 1 100%; }

.panel { padding: 28px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.panel-head h3 { margin: 4px 0 0; font-size: 22px; line-height: 1.3; }
.panel-head .meta { color: var(--faint); font-size: 15px; }

.flash { padding: 14px 18px; border-radius: 10px; font-weight: 500; border: 1px solid; }
.flash-ok { background: #16301F; border-color: #2C5A3B; color: #B9EBC9; }
.flash-error { background: #3A1712; border-color: #6A2A20; color: #F7C1B6; }
.flash.has-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.flash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.flash-ok .btn-ghost { color: #B9EBC9; border-color: #2C5A3B; }
.flash-ok .btn-ghost:hover { color: #fff; border-color: #B9EBC9; }

.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill-pending { background: #3A2E10; color: #F5CF7A; }
.pill-approved, .pill-live, .pill-active { background: #16301F; color: #8FD9A8; }
.pill-changes { background: #10283A; color: #9CCBF2; }
.pill-rejected, .pill-disabled { background: #3A1712; color: #F29A88; }
.pill-kind { background: var(--raised); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }

/* Forms */
form.stack { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-weight: 700; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url],
.field input[type=date], .field input[type=tel], .field input[type=number], .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--bg);
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-strong); width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field input[type=date] { color-scheme: var(--scheme); }
.field input:disabled { opacity: 0.45; cursor: not-allowed; }
.field input[type=number] { max-width: 180px; color-scheme: var(--scheme); }
.hint { font-size: 14px; color: var(--faint); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.address-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 0.8fr); gap: 20px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px; border-radius: 10px;
  border: 2px dashed var(--line-strong); color: var(--muted); text-align: center; cursor: pointer; font-weight: 400 !important;
}
.dropzone:hover, .file-input:focus + .dropzone { border-color: var(--gold); }
.dropzone b { color: var(--text); }
.dropzone span { font-size: 14px; color: var(--faint); }
.current-img { display: flex; gap: 14px; align-items: center; color: var(--faint); font-size: 14px; }
.current-img img { width: 72px; height: 90px; object-fit: cover; border-radius: 6px; background: var(--raised); }
.current-img:has(.share-preview) { flex-wrap: wrap; }
/* Site details: the settings kept by the host */
.host-values { margin: 14px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.host-values > div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.host-values dt { color: var(--faint); font-size: 14px; }
.host-values dd { margin: 0; overflow-wrap: anywhere; }
.host-values dd .hint { display: block; }
.host-values dt code { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.host-values dd.is-hidden { color: var(--faint); font-style: italic; }
@media (max-width: 640px) { .host-values > div { grid-template-columns: 1fr; } }
.current-img img.share-preview { width: min(100%, 320px); height: auto; aspect-ratio: 1200 / 630; border: 1px solid var(--line); }   /* Site details: the sharing picture */
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.genre-picks { border: 0; padding: 0; margin: 0; }
.genre-picks legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.genre-picks > div { display: flex; gap: 8px; flex-wrap: wrap; }
.genre-picks label { position: relative; cursor: pointer; }
.genre-picks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.genre-picks label span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text); font-size: 15px; font-weight: 500;
}
.genre-picks label span::before { content: '+'; margin-right: 6px; color: var(--faint); font-weight: 700; }
.genre-picks input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; }
.genre-picks input:checked + span::before { content: '\2713'; color: var(--on-gold); }
.genre-picks input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.genre-picks .hint { display: block; margin-top: 8px; }
.checkline { display: flex; gap: 10px; align-items: center; font-weight: 500 !important; }
.checkline input { accent-color: var(--gold); width: 18px; height: 18px; }

/* Lists and tables */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.row-item .info { display: flex; flex-direction: column; min-width: 0; }
.row-item .info span { color: var(--faint); font-size: 15px; }
.row-item .acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.note { padding: 12px 16px; border-radius: 10px; background: #10283A; color: #CFE6FA; font-size: 15px; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.stack > .table-wrap { min-width: 0; }  /* in a grid, let the table scroll inside its box rather than widen the page */
/* Dates & times (lib/performances.php) */
.times-pattern input, .times-list input[type=time], .times-list input[type=text], .times-add input {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg); color-scheme: var(--scheme);
  padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-strong);
}
.times-pattern input:focus, .times-list input:focus, .times-add input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.times-pattern input[type=time], .times-list input[type=time] { width: 8.5em; max-width: 100%; }
.times-slots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.times-slots .times-slot[hidden], .times-more[hidden] { display: none; }
.times-list input[type=text] { width: 100%; min-width: 9em; }
.times-list input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
.times-past { opacity: 0.6; }
.times-add { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 16px; margin: 0; }
.times-add legend { font-weight: 700; padding: 0 6px; }
.times-add .inline-row { flex-wrap: wrap; }
.times-add label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-soft); }
/* On phones, each day (and each performance) is a small card instead of a wide table row */
@media (max-width: 560px) {
  .times-pattern thead, .times-list thead { display: none; }
  .times-pattern, .times-pattern tbody, .times-list, .times-list tbody { display: block; width: 100%; }
  .times-pattern tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .times-list tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .times-list td:nth-child(3) { grid-column: 1 / -1; order: 3; }   /* the label, on its own line */
  .times-list td:nth-child(4) label::before { content: "Remove"; font-size: 13px; color: var(--text-soft); }
  .times-pattern input[type=time]::-webkit-calendar-picker-indicator, .times-list input[type=time]::-webkit-calendar-picker-indicator { display: none; }
  table.data.times-pattern th, table.data.times-pattern td, table.data.times-list th, table.data.times-list td { display: block; padding: 0; border: 0; background: none; }
  .times-pattern tr { padding: 10px 10px; }
  .times-pattern th[scope=row], .times-list th[scope=row] { grid-column: 1 / -1; }
  .times-list input[type=time] { width: 100%; min-width: 0; padding: 7px 6px; font-size: 14px; }
  .times-pattern input[type=time] { flex: 1 1 6.5em; width: auto; min-width: 0; max-width: 9em; padding: 7px 6px; font-size: 14px; }
  .times-list input[type=text] { min-width: 0; }
}
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); background: var(--surface); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.nowrap { white-space: nowrap; }
table.data img.thumb { width: 44px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--raised); display: block; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: 14px; }
.filters a.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; }
.filters select { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; }

/* Side-by-side comparison in the approval queue */
.diff { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.diff > div { background: var(--bg-alt); padding: 10px 14px; overflow-wrap: anywhere; white-space: pre-line; font-size: 15px; }
.diff .h { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); white-space: normal; }
.diff .k { font-weight: 700; white-space: normal; }
.diff .old { color: #F29A88; text-decoration: line-through; }
.diff .new { color: #8FD9A8; }
.diff img { max-width: 120px; border-radius: 6px; display: block; }
.diff.single { grid-template-columns: 150px minmax(0, 1fr); }
.review-actions { display: flex; flex-direction: column; gap: 12px; }
.review-actions textarea { font: inherit; color: var(--text); background: var(--bg); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line-strong); width: 100%; min-height: 64px; }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { padding: 16px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 150px; }
.stat b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; }
.stat span { color: var(--faint); font-size: 14px; }

.secret { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bg); padding: 2px 8px; border-radius: 6px; color: var(--gold); }

@media (max-width: 700px) {
  .app-layout { padding-top: 20px; gap: 20px; }
  /* The menu folds into a Menu button that opens it as a dropdown (lib/app.php) */
  .app-menu-bar {
    display: block; flex: 1 1 100%; min-width: 0; margin: -10px -16px 0; padding: 10px 16px;
    position: sticky; top: 0; z-index: 40; background: var(--bg); padding-top: calc(10px + env(safe-area-inset-top));
  }
  .app-menu-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0;
    padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer;
  }
  .app-menu-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .app-menu-toggle .menu-here { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 500; }
  .app-menu-toggle .menu-here::before { content: '\00B7'; margin-right: 10px; color: var(--faint); }
  .app-menu-toggle[aria-expanded="true"] { border-color: var(--gold); }
  /* It stays at the top of the screen as you scroll (the header scrolls away to make room) */
  body.app .site-header { position: static; }
  .app-nav { flex-basis: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: -10px; }
  .app-nav { display: none; }
  /* Open, it drops down just under the button, wherever you are on the page */
  .app-nav.open {
    display: flex; position: fixed; z-index: 45; margin: 0; overflow-y: auto; overscroll-behavior: contain;
    top: var(--menu-top, 80px); left: var(--menu-left, 16px); width: var(--menu-width, calc(100% - 32px));
    max-height: calc(100dvh - var(--menu-top, 80px) - 12px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 18%, transparent);
  }
  .app-nav a { padding: 12px 14px; }
  .nav-head ~ a { padding-left: 26px; }
  .app-main h1 { font-size: 38px; }
  .panel { padding: 20px; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .address-row { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); }
  .address-row .field:first-child { grid-column: 1 / -1; }
  .diff, .diff.single { grid-template-columns: minmax(0, 1fr); }
  .diff .h { display: none; }
  .app-brand .app-label { display: none; }
}

.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; }

details summary { cursor: pointer; font-weight: 700; color: var(--gold); }
label.check { display: flex; gap: 10px; align-items: baseline; font-weight: 500; cursor: pointer; }
label.check input { accent-color: var(--gold); width: 18px; height: 18px; flex: 0 0 18px; position: relative; top: 3px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
/* Sortable tables (lib/app.php): each heading becomes a button; the arrow shows the sort order */
table.sortable th { padding: 0; }
.sort-btn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 14px; border: 0; background: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: inherit; white-space: nowrap; }
th.num .sort-btn { justify-content: flex-end; }
.sort-btn:hover { color: var(--text); }
.sort-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 4px; }
.sort-icon::after { content: '\2195'; opacity: 0.45; font-size: 13px; letter-spacing: 0; }
th[aria-sort] { color: var(--text); }
th[aria-sort="ascending"] .sort-icon::after { content: '\25B2'; opacity: 1; color: var(--gold); font-size: 9px; }
th[aria-sort="descending"] .sort-icon::after { content: '\25BC'; opacity: 1; color: var(--gold); font-size: 9px; }
.click-summary b { color: var(--gold); font-size: 1.15em; }

/* Share this show */
.share { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btns .btn { gap: 7px; }
.share-btns .share-native { border-color: var(--gold); }

/* Guided tour (theater portal) */
.tour-spot {
  position: fixed; z-index: 900; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 9999px rgba(8, 7, 10, 0.62);
  transition: top 0.25s, left 0.25s, width 0.25s, height 0.25s;
}
.tour-card {
  position: fixed; z-index: 901; width: min(380px, calc(100vw - 24px));
  padding: 18px 20px 16px; border-radius: 14px; background: var(--raised);
  border: 1px solid var(--gold); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  color: var(--text); font-size: 15px; line-height: 1.5;
}
.tour-card.is-center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 24px)); }
.tour-spot.is-center { box-shadow: 0 0 0 9999px rgba(8, 7, 10, 0.62); }
.tour-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.tour-count { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.tour-exit { background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.tour-exit:hover { color: var(--text); }
.tour-title { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
.tour-text p { margin: 0 0 8px; color: var(--text-soft); }
.tour-text b { color: var(--text); }
.tour-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.tour-btns [hidden] { display: none; }
@media (max-width: 699px) {
  .tour-card.is-sheet:not(.is-center) { top: auto !important; left: 12px !important; right: 12px; bottom: 12px; width: auto; max-height: 46vh; overflow: auto; }
  .touring .app-main { padding-bottom: 50vh; }
  /* The phone menu, opened by the tour, stops above the tour's card at the bottom */
  .touring .app-nav.open { max-height: calc(52dvh - var(--menu-top, 80px)); }
}
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* Management > Traffic */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .tick { fill: var(--faint); font-size: 12px; font-family: var(--body); }
.chart .col { fill: var(--gold); }
.chart .hit { fill: transparent; }
.chart .mark { stroke: var(--text-soft); stroke-width: 1.5; stroke-dasharray: 4 3; pointer-events: none; }
.chart .mark-label { fill: var(--text-soft); font-size: 12px; font-family: var(--body); pointer-events: none; }
.chart .bar { outline: none; cursor: default; }
.chart .bar.on .hit, .chart .bar:focus-visible .hit { fill: color-mix(in srgb, var(--gold) 8%, transparent); }
.chart-tip { position: absolute; top: 0; padding: 8px 12px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgba(0,0,0,0.45); font-size: 14px; pointer-events: none; white-space: nowrap; display: flex; flex-direction: column; }
.chart-tip[hidden] { display: none; }
.chart-tip span { color: var(--text-soft); }
.traffic-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.traffic-pair table.data td { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 900px) { .traffic-pair { grid-template-columns: 1fr; } }

/* Email > Delivery report (manage/delivery.php) */
.dmarc-verdict { border-left: 4px solid var(--line-strong); }
.dmarc-verdict.is-good { border-left-color: var(--gold); }
.dmarc-verdict.is-warn { border-left-color: color-mix(in srgb, var(--soon) 60%, var(--gold)); }
.dmarc-verdict.is-bad { border-left-color: var(--soon); }
.dmarc-verdict h2 { margin-bottom: 6px; }
.chart .col.fail { fill: var(--text); }
.chart-key { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; }
.chart-key span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--gold); }
.chart-key .key-fail { background: var(--text); margin-left: 12px; }
.hint.block { display: block; }
.dm-status { display: inline-block; margin-right: 4px; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--raised); border: 1px solid var(--line-strong); color: var(--text-soft); white-space: nowrap; }
.dm-yours .dm-status { background: color-mix(in srgb, var(--gold) 16%, transparent); border-color: color-mix(in srgb, var(--gold) 45%, transparent); color: var(--text); }
.dm-failing .dm-status { background: var(--soon); border-color: var(--soon); color: var(--on-soon); }
.dmarc-senders td:first-child { min-width: 9em; }
.dmarc-senders td:last-child { min-width: 16em; }
@media (max-width: 640px) {
  /* Phones: what each sender means goes on its own line under it, so nothing scrolls sideways */
  .dmarc-senders thead tr, .dmarc-senders tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 5em 5em; align-items: center; }
  .dmarc-senders thead th:last-child { display: none; }
  .dmarc-senders td:first-child { min-width: 0; }
  .dmarc-senders tbody td:not(:last-child) { border-bottom: 0; }
  .dmarc-senders td:last-child { grid-column: 1 / -1; min-width: 0; padding-top: 0; }
}
.dmarc-ready { padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }

/* Email > Invite theaters */
.invite-list { display: flex; flex-direction: column; gap: 8px; }
.invite-row { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) 150px; gap: 8px 14px; align-items: center; }
.invite-row input[type=email] { min-width: 0; min-height: 40px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; }
.invite-status { text-align: right; }
@media (max-width: 760px) { .invite-row { grid-template-columns: 1fr; } .invite-status { text-align: left; } .invite-row + .invite-row { padding-top: 10px; border-top: 1px solid var(--line); } }
table.data input[type=checkbox] { accent-color: var(--gold); width: 18px; height: 18px; vertical-align: middle; }

/* Narrowest phones: three tabs above the Shows list still fit on one line */
@media (max-width: 360px) {
  .view-switch a { padding: 8px 3px; font-size: 13px; }
}

/* Holiday page: Christmas lights instead of marquee dots, gently twinkling */
.marquee-logo.festive {
  border: 5px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Ccircle cx='9.5' cy='2.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='9.5' cy='43.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='2.5' cy='9.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='43.5' cy='9.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='18.5' cy='2.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='18.5' cy='43.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='2.5' cy='18.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='43.5' cy='18.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='27.5' cy='2.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='27.5' cy='43.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='2.5' cy='27.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='43.5' cy='27.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='36.5' cy='2.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='36.5' cy='43.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='2.5' cy='36.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='43.5' cy='36.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='2.5' cy='2.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='43.5' cy='2.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='2.5' cy='43.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='43.5' cy='43.5' r='2.3' fill='%23FF5A5A'/%3E%3C/svg%3E") 5 round;
  box-shadow: 0 0 22px rgba(255, 90, 90, 0.16), 0 0 34px rgba(61, 220, 132, 0.12);
  animation: festive-twinkle 1.6s steps(1) infinite;
}
.marquee-logo.festive:hover { box-shadow: 0 0 30px rgba(255, 90, 90, 0.26), 0 0 44px rgba(61, 220, 132, 0.2); }
@keyframes festive-twinkle {
  0% { border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Ccircle cx='9.5' cy='2.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='9.5' cy='43.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='2.5' cy='9.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='43.5' cy='9.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='18.5' cy='2.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='18.5' cy='43.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='2.5' cy='18.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='43.5' cy='18.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='27.5' cy='2.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='27.5' cy='43.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='2.5' cy='27.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='43.5' cy='27.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='36.5' cy='2.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='36.5' cy='43.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='2.5' cy='36.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='43.5' cy='36.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='2.5' cy='2.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='43.5' cy='2.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='2.5' cy='43.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='43.5' cy='43.5' r='2.3' fill='%23FF5A5A'/%3E%3C/svg%3E"); }
  50% { border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Ccircle cx='9.5' cy='2.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='9.5' cy='43.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='2.5' cy='9.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='43.5' cy='9.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='18.5' cy='2.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='18.5' cy='43.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='2.5' cy='18.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='43.5' cy='18.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='27.5' cy='2.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='27.5' cy='43.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='2.5' cy='27.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='43.5' cy='27.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='36.5' cy='2.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='36.5' cy='43.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='2.5' cy='36.5' r='2.3' fill='%233DDC84'/%3E%3Ccircle cx='43.5' cy='36.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='2.5' cy='2.5' r='2.3' fill='%23F5B841'/%3E%3Ccircle cx='43.5' cy='2.5' r='2.3' fill='%235AA8FF'/%3E%3Ccircle cx='2.5' cy='43.5' r='2.3' fill='%23FF5A5A'/%3E%3Ccircle cx='43.5' cy='43.5' r='2.3' fill='%233DDC84'/%3E%3C/svg%3E"); }
}
@media (prefers-reduced-motion: reduce) { .marquee-logo.festive { animation: none; } }
@media (max-width: 700px) { .marquee-logo.festive { border-width: 4px; } }

/* Kids' and family page: the logo in a child's handwriting, a little wobbly.
   Gochi Hand by Juan Pablo del Peral, SIL Open Font License (fonts/OFL.txt). Browsers only
   download it on pages that use it. */
@font-face {
  font-family: 'Gochi Hand';
  src: url('fonts/GochiHand-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
.marquee-logo.kids {
  font-family: 'Gochi Hand', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 32px;
  padding: 6px 18px;
  transform: rotate(-2deg);
}
@media (max-width: 700px) { .marquee-logo.kids { font-size: 25px; padding: 5px 12px; } }

/* Management: the site's version at the bottom of each page */
.app-version { margin: 24px 0 0; font-size: 12px; color: var(--faint); }

/* Management > Settings > Look & feel (manage/theme.php) */
.theme-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.theme-preview-wrap { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.theme-preview-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.theme-presets { display: grid; gap: 10px; }
.theme-preset { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.theme-preset:has(input:checked) { border-color: var(--gold); background: var(--raised); }
.theme-preset input { flex: 0 0 auto; accent-color: var(--gold); }
.theme-preset .swatch { flex: 0 0 auto; position: relative; width: 64px; height: 44px; border-radius: 8px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.theme-preset .swatch i { position: absolute; right: 6px; bottom: 6px; width: 10px; height: 10px; border-radius: 50%; }
.theme-preset .swatch-custom { background: var(--surface); color: var(--muted); }
.theme-colors { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.theme-colors .field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 0; }
.theme-colors .field label { grid-column: 1; grid-row: 1; }
.theme-colors .field .hint { grid-column: 1; grid-row: 2; margin: 0; }
.theme-colors .color-pair { grid-column: 2; grid-row: 1 / 3; }
@media (max-width: 560px) { .theme-colors .field { grid-template-columns: minmax(0, 1fr); } .theme-colors .field > * { grid-column: 1 !important; } }
.color-pair { display: flex; gap: 8px; align-items: center; }
.color-pair input[type=color] { flex: 0 0 44px; width: 44px; height: 44px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
.color-pair input[type=text] { width: 9.5ch; box-sizing: content-box; padding-left: 12px; padding-right: 12px; font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
#theme-checks { display: flex; flex-direction: column; gap: 8px; }
#theme-checks:empty { display: none; }
@media (max-width: 1000px) { .theme-layout { grid-template-columns: minmax(0, 1fr); } .theme-preview-wrap { position: static; order: -1; } }
/* The preview: a small page drawn with the look's settings (set on this element by the page's script) */
.theme-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-family: var(--body); color-scheme: var(--scheme); }
.tp-header { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tp-logo { padding: 5px 12px; border: 3px dotted var(--gold); border-radius: 6px; box-shadow: 0 0 22px color-mix(in srgb, var(--gold) 18%, transparent); font-family: var(--display); font-weight: var(--display-weight); font-size: 20px; letter-spacing: 0.08em; line-height: 1; }
.tp-nav { display: flex; gap: 4px; font-size: 14px; color: var(--muted); }
.tp-nav span { padding: 6px 12px; border-radius: 999px; }
.tp-nav .on { background: var(--raised); color: var(--text); }
.tp-body { padding: 22px 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.tp-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tp-headline { margin: -6px 0 0; font-family: var(--display); font-weight: var(--display-weight); text-transform: uppercase; font-size: 46px; line-height: 0.95; letter-spacing: 0.01em; text-wrap: balance; }
.tp-headline span { color: var(--gold); }
.tp-text { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.tp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tp-card { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.tp-card b { margin-top: 6px; font-size: 15px; }
.tp-card span:not(.tp-date) { color: var(--faint); font-size: 13px; }
.tp-poster { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; background: linear-gradient(135deg, var(--raised), var(--line-strong)); }
.tp-poster.alt { background: linear-gradient(135deg, var(--line), var(--raised)); }
.tp-date { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--gold); color: var(--on-gold); }
.tp-date.soon { background: var(--soon); color: var(--on-soon); }
.tp-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tp-btn { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--gold); color: var(--on-gold); }
.tp-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); font-weight: 500; }
.tp-link { color: var(--gold); font-size: 14px; }

/* The installable app (manifest.php, sw.php, app.php) */
.app-back { display: none; }
.in-app .app-back {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; margin-right: -8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer;
}
.in-app .app-back:hover { border-color: var(--gold); color: var(--gold); }
.in-app .footer-app { display: none; }
.app-box { text-align: left; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; }
.app-how { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.app-how h2 { margin: 0; font-size: 18px; }
.app-how ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--text-soft); }
.app-how-mine h2 { color: var(--gold); }
.app-glyph { display: inline-block; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 13px; }
.offline-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }


/* ---------- Management and the theaters' portal: small layout helpers ---------- */
/* Named once here instead of written into each page. Each one wins over the page's other rules
   (!important), as the inline styles they replaced did. */
.flat { margin: 0 !important; }
.inline { display: inline !important; }
.bold { font-weight: 700 !important; }
.small-print { font-size: 12px !important; }
.plain-text { color: var(--text) !important; }
.name-link { color: var(--text) !important; font-weight: 700 !important; }
.hidden-at-first { display: none !important; }
.narrow { max-width: 520px !important; }
.grow { flex: 1 1 260px !important; }
.push-right { margin-left: auto !important; }
.center-items { align-items: center !important; }
.gold-border { border-color: var(--gold) !important; }
.gap-above-lg { margin-top: 24px !important; }
.gap-above { margin-top: 20px !important; }
.gap-above-md { margin-top: 16px !important; }
.gap-above-sm { margin-top: 14px !important; }
.gap-above-xs { margin-top: 12px !important; }
.gap-above-tight { margin: 8px 0 0 !important; }
.gap-above-tighter { margin: 6px 0 0 !important; }
.gap-above-tiny { margin: 4px 0 0 !important; }
.pull-up { margin: -8px 0 0 !important; }
.pull-up-more { margin: -12px 0 0 !important; }
.tag-list { margin: 12px 0 0 !important; line-height: 1.9 !important; }
.inline-row { display: flex !important; gap: 8px !important; align-items: center !important; }
.wide-row { display: flex !important; gap: 16px !important; align-items: center !important; flex-wrap: wrap !important; }
.chip-row { display: inline-flex !important; gap: 8px !important; flex-wrap: wrap !important; margin-top: 6px !important; }
/* A panel laid out in a row: a delete bar, or a row of fields */
.panel-bar { flex-direction: row !important; justify-content: space-between !important; align-items: center !important; flex-wrap: wrap !important; }
.panel-fields { flex-direction: row !important; align-items: flex-end !important; flex-wrap: wrap !important; gap: 12px !important; }
.plain-select { font: inherit !important; color: var(--text) !important; background: var(--bg) !important; border: 1px solid var(--line-strong) !important; border-radius: 8px !important; padding: 8px 12px !important; min-width: 180px !important; }
.pill-select { font: inherit !important; font-size: 14px !important; color: var(--text) !important; background: var(--bg) !important; border: 1px solid var(--line-strong) !important; border-radius: 999px !important; padding: 8px 14px !important; }
.big-check { width: 20px !important; height: 20px !important; accent-color: var(--gold) !important; }
.preview-pic { width: 240px !important; height: auto !important; border-radius: 6px !important; }
/* A logo in a Management list, on the same grey as the logo tiles */
.logo-thumb { object-fit: contain !important; background: #807B86 !important; width: 64px !important; height: 44px !important; padding: 4px !important; }
/* A hidden field that only spam robots fill in */
.trap-field { position: absolute !important; left: -9999px !important; }

/* A show's own venue on its form (lib/venue.php): folded unless it has one */
.venue-fold > * + * { margin-top: 14px; }
.venue-fold > .hint { margin-bottom: 0; }

/* Posters & logos: the title posters and title logos sections */
.title-panel { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.title-panel > .stack { flex: 1; min-width: 260px; }
.title-panel > .stack > p, .title-panel .form-actions { margin: 0; }
.title-sample { border-radius: 6px; }
.title-sample.sample-on-grey { background: #807B86; padding: 10px; box-sizing: content-box; }
