/* Comedy Toronto public styles. Design reference: docs/design.md. */

/* Fonts: one fixed instance per face, Latin subset (licences beside the files). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url(/assets/fonts/bricolage-grotesque-800.cd7e89b300bb.woff2) format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(/assets/fonts/source-serif-4-700.a17a67112c0c.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rock Salt";
  src: url(/assets/fonts/rock-salt-400.4db33f33d887.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens */
:root {
  color-scheme: light;
  --paper: #F5EEE7;
  --paper-strong: #FFF9F2;
  --ink: #1C2024;
  --muted-ink: #5F5956;
  --sky: #376D8C;
  --sky-deep: #28526D;
  --sky-light: #8BBFD3;
  --concrete: #D2B0A1;
  --concrete-light: #ECDBD3;
  --tower-red: #BE3545;
  --tower-red-deep: #9E2A38;
  --park: #B5C2A0;
  --park-edge: #4F6647;
  --holly: #24593A; /* Christmas only: holly leaves, the Christmas page's kicker and Christmas Day's bar */
  /* Tag chips: one fill per tag, always with ink text and outline. Two palettes,
     bright (in use) and soft (kept for a later switch); change the six --tag-*
     aliases to switch. Used only on tag chips and the filter list's dots. */
  --tag-bright-stand-up: #F9C846;
  --tag-bright-improv: #6CC5A1;
  --tag-bright-sketch: #8BBFD3;
  --tag-bright-musical: #F28DB2;
  --tag-bright-variety: #B79CED;
  --tag-bright-open-mic: #F7A35C;
  --tag-soft-stand-up: #FCE9B0;
  --tag-soft-improv: #CFEDE0;
  --tag-soft-sketch: #D6EAF2;
  --tag-soft-musical: #FBD9E6;
  --tag-soft-variety: #E6DCFA;
  --tag-soft-open-mic: #FCDDC2;
  --tag-stand-up: var(--tag-bright-stand-up);
  --tag-improv: var(--tag-bright-improv);
  --tag-sketch: var(--tag-bright-sketch);
  --tag-musical: var(--tag-bright-musical);
  --tag-variety: var(--tag-bright-variety);
  --tag-open-mic: var(--tag-bright-open-mic);
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-title: "Source Serif 4", Georgia, serif;
  --font-hand: "Rock Salt", "Comic Sans MS", cursive;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --line: 2px solid var(--ink);
  --radius: 8px;
  --radius-small: 6px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
img { display: block; max-width: 100%; }
a { color: var(--sky-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10; /* above the frozen masthead and tabs */
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper-strong);
  font-weight: 700;
}
.skip-link:focus { top: 0.75rem; color: var(--paper-strong); }
.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Masthead */
.masthead { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: var(--line); }
.masthead-main {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.25rem var(--gutter) 0;
}
.masthead-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "wordmark mark" "tagline mark";
  align-items: end;
  column-gap: 0.625rem;
}
.wordmark {
  grid-area: wordmark;
  position: relative;
  justify-self: start;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.125rem, 1rem + 6vw, 3.5rem);
  line-height: 0.88;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark-city { color: var(--tower-red); }
.wordmark-tld {
  display: inline-block;
  position: relative;
  top: 0.2em;
  margin-left: 0.12em;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.24em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-7deg);
  transform-origin: left center;
}
@media (max-width: 21.25rem) {
  .wordmark-tld { margin-left: 0.08em; font-size: 0.21em; }
}
.burst {
  display: none;
  position: absolute;
  left: -0.34em;
  top: -0.2em;
  width: 0.36em;
  height: 0.36em;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.tagline {
  grid-area: tagline;
  margin: 0.45rem 0 0;
  color: var(--sky-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tower-mark { grid-area: mark; width: 40px; height: 64px; }
.masthead-art { display: none; }

/* Night tabs: a boxed 4 × 2 grid on phones, one strip on the masthead rule from 40rem.
   The last cell is More dates, a <details> menu of the other nights that needs no script. */
.night-tabs { position: relative; }
.night-tabs > ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--ink);
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.night-tabs > ul > li > a,
.more-dates-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 3.25rem;
  height: 100%;
  background: var(--paper-strong);
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}
.night-tabs > ul > li > a:hover,
.more-dates-tab:hover { background: var(--concrete-light); color: var(--ink); }
.night-tabs > ul > li > a:focus-visible,
.more-dates-tab:focus-visible { outline-offset: -6px; }
.night-tabs > ul > li > a[aria-current="page"],
.more-dates-tab.is-current { background: var(--tower-red); color: var(--paper-strong); }
.night-tabs > ul > li > a[aria-current="page"]:focus-visible,
.more-dates-tab.is-current:focus-visible { outline-color: var(--paper-strong); }
.tab-tonight {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: 0.02em;
}
.tab-day { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; }
.tab-date { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; }

/* More dates: the summary is the last tab, and its menu drops below the tabs */
.more-dates { height: 100%; }
.more-dates-tab { cursor: pointer; list-style: none; }
.more-dates-tab::-webkit-details-marker { display: none; }
.more-dates[open] > .more-dates-tab:not(.is-current) { background: var(--concrete-light); }
.more-dates-tab .tab-date { display: inline-flex; align-items: center; gap: 0.3em; }
.chevron {
  width: 0.85em;
  height: 0.85em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}
.more-dates[open] .chevron { transform: rotate(180deg); }
.more-dates-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  overflow: hidden;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: var(--radius);
}
.more-dates-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1rem 0.625rem;
  border-bottom: var(--line);
  font-size: 0.8125rem;
}
.more-dates-title { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.more-dates-range { color: var(--muted-ink); }
.more-dates-list { margin: 0; padding: 0; list-style: none; }
.more-dates-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-top: 1px solid var(--concrete-light);
  color: var(--ink);
  text-decoration: none;
}
.more-dates-list li:first-child .more-dates-row { border-top: 0; }
.more-dates-row.is-week-start { border-top: 2px solid var(--concrete); }
.more-dates-row.is-weekend { background: var(--paper); }
.more-dates-row.is-weekend .row-date { font-weight: 800; }
.more-dates-row:hover { background: var(--concrete-light); color: var(--ink); }
.more-dates-row:focus-visible { outline-offset: -4px; }
.more-dates-row[aria-current="page"] { background: var(--tower-red); color: var(--paper-strong); }
.more-dates-row[aria-current="page"]:focus-visible { outline-color: var(--paper-strong); }
.row-day { flex: none; width: 2.75em; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.row-date { font-size: 0.9375rem; font-weight: 600; }
.row-count { margin-left: auto; color: var(--muted-ink); font-size: 0.8125rem; }
.more-dates-row[aria-current="page"] .row-count { color: var(--paper-strong); }
.more-dates-note {
  margin: 0;
  padding: 0.625rem 1rem 0.75rem;
  border-top: var(--line);
  color: var(--muted-ink);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Each width shows its own More dates rows and label: a phone's menu also holds
   the nights it has no tab for. */
.more-dates-phone, .more-dates-wide { display: contents; }
@media (max-width: 39.99rem) {
  .night-tabs > ul > li.tab-wide,
  .more-dates-wide { display: none; }
  .more-dates-tab.is-current-phone,
  .more-dates[open] > .more-dates-tab.is-current-phone { background: var(--tower-red); color: var(--paper-strong); }
  .more-dates-tab.is-current-phone:focus-visible { outline-color: var(--paper-strong); }
}
@media (min-width: 40rem) {
  .more-dates-phone,
  .more-dates-phone-row { display: none; }
  .more-dates-phone-row + li:not(.more-dates-phone-row) .more-dates-row { border-top: 0; }
}

/* A phone's masthead with tabs is short: the wordmark, a small tower mark, and
   one row of tabs. On a night page it stays at the top of the screen, unless the
   window is too short to spare it. */
@media (max-width: 39.99rem) {
  .masthead:has(.night-tabs) .masthead-main { gap: 0.5rem; padding: 0.375rem var(--gutter) 0.5rem; }
  .masthead:has(.night-tabs) .masthead-brand { grid-template-areas: "wordmark mark"; align-items: center; }
  .masthead:has(.night-tabs) .tagline { display: none; }
  .masthead:has(.night-tabs) .tower-mark { width: 25px; height: 40px; }
  .night-tabs > ul > li > a,
  .more-dates-tab { min-height: 3rem; }
}
@media (max-width: 39.99rem) and (min-height: 28rem) {
  html:has(.night-shell) { scroll-padding-top: 7.75rem; } /* so focus and anchors never land under it */
  .night-shell .masthead {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--paper);
  }
  .night-shell .more-dates-menu {
    max-height: calc(100dvh - 8rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Page heading */
.page {
  flex: 1 0 auto;
  width: 100%;
  padding: 1.5rem var(--gutter) 2.5rem;
}
.page-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.page-heading h1 {
  display: flex;
  align-items: center;
  gap: 0.25em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.125rem, 1.2rem + 3.4vw, 3.75rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.heading-marks {
  display: none;
  width: 0.5em;
  height: 0.5em;
  flex: none;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}
.page-meta {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Listings and show panels */
.listings { display: grid; gap: 1rem; }
.panel {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "art title" "art desc" "facts facts";
  column-gap: 0.875rem;
  row-gap: 0.375rem;
  padding: 0.875rem;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.panel:hover { background: var(--concrete-light); }
.panel:has(.panel-details-link:focus-visible) {
  outline: 3px solid var(--sky-deep);
  outline-offset: 3px;
}
.panel-chevron { display: none; }
.panel-art {
  grid-area: art;
  position: relative;
  align-self: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--concrete-light);
  border: var(--line);
  border-radius: var(--radius-small);
}
.panel-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.stamp {
  position: absolute;
  top: 0.5rem;
  left: -2px;
  padding: 0.25rem 0.45rem 0.2rem;
  background: var(--ink);
  color: var(--paper-strong);
  border: 2px solid var(--paper-strong);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-5deg);
}
.panel-title {
  grid-area: title;
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.panel-summary {
  grid-area: desc;
  align-self: start;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
}
.panel-description {
  margin: 0;
  /* Some sources join whole sentences with non-breaking spaces. */
  overflow-wrap: anywhere;
  color: var(--muted-ink);
  font-size: 0.875rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.panel-details-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--sky-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}
.panel-details-cue .icon { stroke-width: 2.5; }
.panel:hover .panel-details-cue { color: var(--ink); }
.panel-facts {
  grid-area: facts;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.panel-facts li { display: flex; align-items: center; gap: 0.375rem; min-width: 0; }
.fact-time { font-weight: 700; }

/* Buttons: filled buttons take their fill as border colour, so every button is the same size */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius-small);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.button .icon { stroke-width: 2.5; }
.button-ticket { background: var(--tower-red); border-color: var(--tower-red); color: var(--paper-strong); }
.button-ticket:hover { background: var(--tower-red-deep); border-color: var(--tower-red-deep); color: var(--paper-strong); }
.button-ticket:focus-visible { outline-color: var(--ink); }
.button-quiet { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-quiet:hover { background: var(--concrete-light); color: var(--ink); }
.button-nav { background: var(--sky-deep); border-color: var(--sky-deep); color: var(--paper-strong); }
.button-nav:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-strong); }

/* Empty state and 404 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  max-width: 40rem;
  padding: 1.5rem 1.25rem;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: var(--radius);
}
.empty-art { width: 8.25rem; height: auto; }
.empty-state h2 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
}
.empty-state p { margin: 0; color: var(--muted-ink); }

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem var(--gutter) 1.75rem;
  border-top: var(--line);
}
.site-footer p { margin: 0; color: var(--muted-ink); font-size: 0.625rem; }
.site-footer .footer-mark {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  text-transform: uppercase;
}
.footer-mark span { color: var(--tower-red); }

/* Development gallery */
.gallery-heading {
  margin: 2.5rem 0 1rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-deep);
}
.gallery-mastheads { display: grid; gap: 1.5rem; }
.gallery-masthead-preview { margin: 0; }
.gallery-masthead-preview figcaption,
.gallery-more-dates-preview figcaption {
  margin-bottom: 0.5rem;
  color: var(--muted-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gallery-masthead-preview .masthead { outline: var(--line); }
.gallery-more-dates { display: grid; gap: 1.5rem; }
/* Room for the open menu, which is positioned over whatever follows it */
.gallery-more-dates-preview { margin: 0; min-height: 38rem; }
.gallery-art { display: flex; flex-wrap: wrap; gap: 1rem; }
.gallery-art .panel-art { width: 10.5rem; }
.gallery-show { padding: 0 1rem 1.5rem; outline: var(--line); }

/* Tablet: panels put the art beside every fact */
@media (min-width: 36rem) {
  .panel {
    grid-template-columns: 9rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "art title" "art desc" "art facts";
    column-gap: 1.25rem;
    row-gap: 0.5rem;
    padding: 1rem;
  }
  .panel-title { font-size: 1.625rem; line-height: 1.12; }
  .panel-description { font-size: 0.9375rem; line-height: 1.45; }
  .panel-facts { align-self: end; flex-direction: column; gap: 0.375rem; font-size: 0.9375rem; }
  .icon { width: 1.125rem; height: 1.125rem; }
  .stamp { top: 0.75rem; padding: 0.3rem 0.6rem 0.25rem; font-size: 1rem; }
  .empty-state { padding: 1.75rem; }
  .listings { max-width: 52rem; }
}

/* Tabs join the masthead rule as one strip */
@media (min-width: 40rem) {
  .night-tabs { max-width: 58.75rem; }
  .night-tabs > ul {
    display: flex;
    border-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: visible;
  }
  .night-tabs > ul > li { flex: 1 1 0; min-width: 0; }
  .night-tabs > ul > li:first-child > a { border-top-left-radius: var(--radius-small); }
  .night-tabs > ul > li:last-child .more-dates-tab { border-top-right-radius: var(--radius-small); }
  .night-tabs > ul > li > a,
  .more-dates-tab { min-height: 4rem; gap: 4px; }
  .night-tabs > ul > li > a[aria-current="page"]::before,
  .night-tabs > ul > li > a[aria-current="page"]::after,
  .more-dates-tab.is-current::before,
  .more-dates-tab.is-current::after {
    content: "";
    position: absolute;
    left: 50%;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
  .night-tabs > ul > li > a[aria-current="page"]::before,
  .more-dates-tab.is-current::before {
    bottom: -14px;
    width: 24px;
    height: 14px;
    margin-left: -12px;
    background: var(--ink);
  }
  .night-tabs > ul > li > a[aria-current="page"]::after,
  .more-dates-tab.is-current::after {
    bottom: -10px;
    width: 18px;
    height: 10px;
    margin-left: -9px;
    background: var(--tower-red);
  }
  .more-dates-menu {
    top: 100%;
    left: auto;
    width: 21.25rem;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .tab-tonight { font-size: clamp(1.1875rem, 0.6rem + 1.2vw, 1.5rem); }
  .tab-day { font-size: 0.9375rem; }
  .tab-date { font-size: 0.8125rem; }
  .site-footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .site-footer .footer-mark { font-size: 1.625rem; }
}

/* Desktop: the skyline panel joins the masthead */
@media (min-width: 64rem) {
  .masthead { --art-width: clamp(17rem, 30vw, 27.5rem); grid-template-columns: minmax(0, 1fr) var(--art-width); }
  .masthead-main { justify-content: space-between; gap: 1.375rem; padding: 1.875rem 2.25rem 0 var(--gutter); }
  .masthead-brand { display: flex; align-items: center; gap: 1.875rem; padding-top: 0.375rem; }
  .wordmark { font-size: clamp(3.5rem, 0.6rem + 5.2vw, 6rem); }
  .burst { display: block; }
  .tagline {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.4rem + 1vw, 1.375rem);
    letter-spacing: 0;
    line-height: 1.02;
    transform: rotate(-6deg);
  }
  .tagline span { display: block; }
  .tower-mark { display: none; }
  /* A background, not an <img>, so phones that hide the panel never download it.
     The minimum height keeps the drawing's 440:236 ratio so the tower is never cropped. */
  .masthead-art {
    display: block;
    min-height: calc(var(--art-width) * 236 / 440);
    border-left: var(--line);
  }
  .masthead--original .masthead-art {
    background: var(--sky-light) url(/assets/art/skyline.3a95c4ccd6a9.svg) center bottom / cover no-repeat;
  }
  .masthead--framebreak .masthead-art {
    position: relative;
    background: var(--sky-light) url(/assets/art/skyline-framebreak.b5368cd3ce1f.svg) center bottom / cover no-repeat;
  }
  .masthead--framebreak .masthead-art::after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: -1.5rem;
    width: calc(var(--art-width) * 72 / 440);
    height: 100%;
    pointer-events: none;
    background: url(/assets/art/tower-framebreak.c1fd38b20fc8.svg) center bottom / contain no-repeat;
  }
  .masthead--photo-refined .masthead-art {
    position: relative;
    background: var(--sky-light) url(/assets/art/skyline-photo-refined.305e3f3626d8.svg) center bottom / cover no-repeat;
  }
  .masthead--photo-refined .masthead-art::after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: -1.5rem;
    width: calc(var(--art-width) * 150 / 440);
    height: 100%;
    pointer-events: none;
    background: url(/assets/art/landmark-cluster-photo-refined.c5362585bdf6.svg) center bottom / contain no-repeat;
  }
  .masthead--open-dome .masthead-art {
    position: relative;
    background: var(--sky-light) url(/assets/art/skyline-photo-refined.305e3f3626d8.svg) center bottom / cover no-repeat;
  }
  .masthead--open-dome .masthead-art::after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: -1.5rem;
    width: calc(var(--art-width) * 160 / 440);
    height: 100%;
    pointer-events: none;
    background: url(/assets/art/landmark-cluster-open-dome.c225e1f088c6.svg) center bottom / contain no-repeat;
  }
  .masthead--continuous-dome .masthead-art {
    position: relative;
    background: var(--sky-light) url(/assets/art/skyline-photo-refined.305e3f3626d8.svg) center bottom / cover no-repeat;
  }
  .masthead--continuous-dome .masthead-art::after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: -1.5rem;
    width: calc(var(--art-width) * 160 / 440);
    height: 100%;
    pointer-events: none;
    background: url(/assets/art/landmark-cluster-continuous-dome.baadd007f79e.svg) center bottom / contain no-repeat;
  }
  .masthead--curved-water .masthead-art {
    position: relative;
    background: var(--sky-light) url(/assets/art/skyline-curved-water.c17f24a64720.svg) center bottom / cover no-repeat;
  }
  .masthead--curved-water .masthead-art::after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: -1.5rem;
    width: calc(var(--art-width) * 160 / 440);
    height: 100%;
    pointer-events: none;
    background: url(/assets/art/landmark-cluster-continuous-dome.baadd007f79e.svg) center bottom / contain no-repeat;
  }
  .page { padding-top: 2.875rem; }
  .page-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; }
  .heading-marks { display: block; }
  .page-meta { margin-bottom: 0.25rem; font-size: 0.9375rem; }
}

/* Wide desktop: two columns of panels */
@media (min-width: 75rem) {
  .listings { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
  .panel { grid-template-columns: 10.5rem minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Map view (map step 3): complete without JavaScript */
.page-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.view-switch {
  display: inline-flex;
  border: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.view-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.view-switch a:hover { background: var(--concrete-light); }
.view-switch a[aria-current] { background: var(--ink); color: var(--paper-strong); }
.footer-credit a { color: inherit; }

/* One column as wide as the page, so the clubs row's scrolling strip can't widen it. */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
/* A map path shows the map, and a list path or an empty night shows the cards.
   The column stays in a list page for desktop, which turns it on below. */
.night-shell--map .map-cards { display: none; }
.night-shell--list .map-column { display: none; }
.map-badge, .map-fallback, .map-topbar, .map-credit { display: none; }
/* The name on a map, as a flat badge in the controls' style: the desktop map's
   badge and the phone map's top bar. */
.map-badge,
.map-topbar-wordmark {
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  box-sizing: border-box;
  padding: 0 0.5rem 0 0.75rem;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: var(--radius-small);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.map-topbar-wordmark:hover { background: var(--concrete-light); color: var(--ink); }
.map-badge-tld {
  display: inline-block;
  margin-left: 0.1em;
  font-family: var(--font-ui);
  font-size: 0.34em;
  letter-spacing: 0.04em;
  transform: rotate(-7deg);
}
.map-badge img,
.map-topbar-wordmark img { width: 20px; height: 32px; }
/* The licence credit shows only where a map does. */
.night-shell--list .footer-credit { display: none; }
.map-frame {
  position: relative;
  container: map / size;
  height: 75svh;
  min-height: 22rem;
  max-height: 46rem;
  margin-inline: calc(var(--gutter) * -1);
  overflow: hidden;
  background: var(--sky-light);
  border-block: var(--line);
}
.map-art, .map-names, .map-pins { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* --k is map units per screen pixel, so labels and pins keep their designed
   size: the larger of the width and height ratios for the 505 × 375 opening
   view. Container steps approximate it; the interactive script sets it exactly. */
.map-art, .map-pins { --kw: 1.58; --kh: 1.25; --k: max(var(--kw), var(--kh)); }
@container map (min-width: 360px) { .map-art, .map-pins { --kw: 1.3; } }
@container map (min-width: 400px) { .map-art, .map-pins { --kw: 1.17; } }
@container map (min-width: 450px) { .map-art, .map-pins { --kw: 1.04; } }
@container map (min-width: 500px) { .map-art, .map-pins { --kw: 0.94; } }
@container map (min-width: 560px) { .map-art, .map-pins { --kw: 0.84; } }
@container map (min-width: 630px) { .map-art, .map-pins { --kw: 0.74; } }
@container map (min-width: 700px) { .map-art, .map-pins { --kw: 0.67; } }
@container map (min-width: 780px) { .map-art, .map-pins { --kw: 0.6; } }
@container map (min-width: 870px) { .map-art, .map-pins { --kw: 0.54; } }
@container map (min-width: 970px) { .map-art, .map-pins { --kw: 0.48; } }
@container map (min-width: 1080px) { .map-art, .map-pins { --kw: 0.43; } }
@container map (min-height: 320px) { .map-art, .map-pins { --kh: 1.09; } }
@container map (min-height: 360px) { .map-art, .map-pins { --kh: 0.97; } }
@container map (min-height: 400px) { .map-art, .map-pins { --kh: 0.87; } }
@container map (min-height: 450px) { .map-art, .map-pins { --kh: 0.77; } }
@container map (min-height: 500px) { .map-art, .map-pins { --kh: 0.69; } }
@container map (min-height: 560px) { .map-art, .map-pins { --kh: 0.62; } }
@container map (min-height: 630px) { .map-art, .map-pins { --kh: 0.55; } }
@container map (min-height: 700px) { .map-art, .map-pins { --kh: 0.5; } }
@container map (min-height: 780px) { .map-art, .map-pins { --kh: 0.45; } }
@container map (min-height: 870px) { .map-art, .map-pins { --kh: 0.4; } }

/* The artwork's layers, generated by cmd/mapgen. Every stroke keeps its width
   on screen whatever the zoom. */
.map-art .land-fill { fill: var(--paper); }
.map-art .park { fill: var(--park); }
.map-art .water-fill { fill: var(--sky-light); }
.map-art .island { fill: var(--paper); }
.map-art .streets-side, .map-art .river, .map-art .water-mark, .map-art .island-edge, .map-art .shore,
.map-art .railway { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-art .streets-side { stroke: color-mix(in srgb, var(--concrete) 30%, var(--paper)); stroke-width: 0.8px; }
.map-art .river { stroke: var(--sky); stroke-width: 1.75px; }
.map-art .water-mark { stroke: var(--sky); stroke-width: 1.1px; }
.map-art .island-edge, .map-art .shore { stroke: var(--sky-deep); stroke-width: 1.5px; }
.map-art .railway { stroke: var(--muted-ink); stroke-width: 1px; stroke-dasharray: 4 3; stroke-linecap: butt; }
/* Edged roads: each <use> sets the stroke its shared lines inherit */
.map-art .arterials-edge { stroke: var(--concrete); stroke-width: 3px; }
.map-art .arterials-road { stroke: var(--paper-strong); stroke-width: 1.6px; }
.map-art .expressways-edge { stroke: var(--concrete); stroke-width: 4px; }
.map-art .expressways-road { stroke: var(--concrete-light); stroke-width: 2.5px; }
.map-art .context-edge { stroke: var(--concrete); stroke-width: 3.5px; }
.map-art .context-road { stroke: var(--paper-strong); stroke-width: 2px; }
.map-art .major-edge { stroke: var(--sky); stroke-width: 5.5px; }
.map-art .major-road { stroke: var(--paper-strong); stroke-width: 3.5px; }
.map-art .street-label,
.map-art .neighbourhood-label { font-family: var(--font-hand); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--paper); stroke-linejoin: round; stroke-width: calc(3px * var(--k)); fill: var(--ink); }
.map-art .street-label { font-size: calc(10.45px * var(--k)); }
.map-art .neighbourhood-label { font-size: calc(12.35px * var(--k)); fill: var(--tower-red); stroke: var(--paper-strong); }
/* Park names: white on a dark outline, inside the park. Two copies, because Rock
   Salt's strokes are too thin to survive one outlined copy. map.js shows each when
   it fits, so they stay hidden without JavaScript, where the map can't zoom in. */
.map-art .park-label text { font-family: var(--font-hand); font-size: calc(10.9px * var(--k)); text-anchor: middle; dominant-baseline: central; fill: var(--paper-strong); stroke-linejoin: round; }
.map-art .park-label-edge { stroke: var(--park-edge); stroke-width: calc(3.2px * var(--k)); }
.map-art .park-label-text { stroke: var(--paper-strong); stroke-width: calc(0.45px * var(--k)); }
.map-art .park-labels { display: none; }
.map-art .neighbourhood-label[data-min-scale] { display: none; }
.is-enhanced .map-art .neighbourhood-label[data-min-scale]:not(.is-off) { display: block; }
.is-enhanced .map-art .park-labels { display: block; }
.map-art .is-off { display: none; }
/* Street names: with the script, the printed labels give way to names drawn on
   their own layer, so scribbling one repaints that layer and not the whole map. */
.is-enhanced .map-art .street-labels { display: none; }
.map-names { display: none; pointer-events: none; will-change: transform; }
.is-enhanced .map-names { display: block; }
.map-name-shape { transform: scale(var(--k)); }
.map-name-text { font-family: var(--font-hand); font-size: 10.45px; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--paper); stroke-linejoin: round; stroke-width: 3px; fill: var(--ink); }
/* The pen reveals the letters through a mask, so it's white whatever the palette. */
.map-name-pen { fill: none; stroke: white; stroke-width: 9px; stroke-linejoin: round; stroke-dasharray: 1 1; animation: map-name-scribble var(--scribble-ms) linear var(--scribble-delay) both; }
@keyframes map-name-scribble { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.map-art .landmark-shape { transform: scale(var(--k)); }
.map-art .landmark-body { fill: var(--paper-strong); stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; }
.map-art .landmark-opening { fill: var(--muted-ink); }
.map-art .landmark-band { fill: var(--tower-red); }
.map-art .landmark-spire { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.map-art .venue-pins { display: none; }

/* Pins: a ticket stub in the site palette, the wedge's tip on the venue */
.map-pin { cursor: pointer; }
.map-pin-shape { transform: scale(var(--k)); }
.map-pin-hit { fill: transparent; }
.map-pin-wedge { fill: var(--ink); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.map-pin-body { fill: var(--paper-strong); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.map-pin-perforation { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2.5 2.5; }
.map-pin-sound { display: none; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.map-pin-count { text-anchor: middle; dominant-baseline: central; font-family: var(--font-ui); font-size: 15px; font-weight: 900; fill: var(--ink); font-variant-numeric: tabular-nums; }
/* The hand font is named only where the map is showing, so a phone's list never downloads it. */
.night-shell--map .map-pin-name, .is-enhanced .map-pin-name { font-family: var(--font-hand); }
.map-pin-name { display: none; dominant-baseline: central; font-size: 13.3px; fill: var(--ink); stroke: var(--paper-strong); stroke-width: 4; stroke-linejoin: round; paint-order: stroke; }
/* The picked name's underline: two red strokes in the pin's colour, so the ink name reads as the pin's.
   The paths don't scale their strokes, so these widths are screen pixels and --k isn't needed. */
.map-pin-underline { display: none; fill: none; stroke: var(--tower-red); stroke-width: 2px; stroke-linecap: round; }
.map-pin-underline-thin { stroke-width: 1.3px; }
.map-pin:hover .map-pin-body, .map-pin.is-highlighted .map-pin-body { fill: var(--sky-deep); }
.map-pin:hover .map-pin-count, .map-pin.is-highlighted .map-pin-count { fill: var(--paper-strong); }
.map-pin:hover .map-pin-perforation, .map-pin.is-highlighted .map-pin-perforation { stroke: var(--paper-strong); }
.map-pin[aria-current="true"] .map-pin-body { fill: var(--tower-red); }
.map-pin[aria-current="true"] .map-pin-count { fill: var(--paper-strong); }
.map-pin[aria-current="true"] .map-pin-perforation { stroke: var(--paper-strong); }
/* The sound marks go on the side away from the name, which map.js reports in data-name-side.
   A name slid into the row above the pin spans both sides, so the pin goes without them. */
.map-pin[aria-current="true"][data-name-side="right"] .map-pin-sound-left,
.map-pin[aria-current="true"]:is([data-name-side="left"], [data-name-side="below"]) .map-pin-sound-right { display: inline; }
.map-pin[aria-current="true"] .map-pin-name { display: inline; }
.map-pin[aria-current="true"] .map-pin-underline { display: inline; }
.map-pin:focus { outline: none; }
.map-pin:focus-visible .map-pin-body { stroke: var(--sky-deep); stroke-width: 5; }

.map-beyond {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.5rem 0.75rem;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: var(--radius-small);
  font-size: 0.8125rem;
}
.map-beyond p { margin: 0 0 0.25rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; }
.map-beyond ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.map-beyond a { color: var(--ink); font-weight: 700; }

.map-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--ink);
  color: var(--paper-strong);
  border-radius: var(--radius-small);
  font-weight: 700;
}
.map-filter p { margin: 0; }
.map-filter a { color: inherit; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.map-note { margin: 0; color: var(--muted-ink); }

.map-venue {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 1rem;
}
.map-venue h2 { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: 1.375rem; line-height: 1.15; }
.map-venue p { margin: 0; }
.map-venue-meta { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-ink); }
.map-venue-panels { display: grid; gap: 0.5rem; }

/* Map view enhanced by map.js (map step 4) */
.map-filter[hidden], .map-card[hidden],
.map-venue[hidden], .map-controls[hidden], .map-controls button[hidden] { display: none; }
.map-card.is-highlighted .panel { outline: 3px solid var(--sky); outline-offset: 2px; }
.map-pins .is-off { display: none; }

.is-enhanced .map-beyond { display: none; }
/* The script's opening view differs from the server's framing, so wait for it
   rather than jump. The animation shows the map anyway if the script never runs. */
@media (scripting: enabled) {
  [data-map]:not(.is-enhanced) .map-frame { background: var(--paper); }
  [data-map]:not(.is-enhanced) :is(.map-art, .map-pins) { visibility: hidden; animation: map-reveal 0s linear 2s forwards; }
}
@keyframes map-reveal { to { visibility: visible; } }
.is-enhanced .map-frame { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.is-enhanced .map-frame.is-dragging { cursor: grabbing; }
.map-frame:focus { outline: none; }
.map-frame:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }

/* Clusters: stacked tickets, the front wedge's tip on the cluster's centre */
.map-cluster { cursor: pointer; }
.map-cluster:focus { outline: none; }
.map-cluster-shape { transform: scale(var(--k)); }
.map-cluster-rear { fill: var(--sky-light); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.map-cluster-front { fill: var(--paper-strong); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.map-cluster-perforation { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2.5 2.5; }
.map-cluster-count { text-anchor: middle; dominant-baseline: central; font-family: var(--font-ui); font-size: 15px; font-weight: 900; fill: var(--ink); font-variant-numeric: tabular-nums; }
.map-cluster:hover .map-cluster-front, .map-cluster.is-highlighted .map-cluster-front { fill: var(--sky-deep); }
.map-cluster:hover .map-cluster-count, .map-cluster.is-highlighted .map-cluster-count { fill: var(--paper-strong); }
.map-cluster:hover .map-cluster-perforation, .map-cluster.is-highlighted .map-cluster-perforation { stroke: var(--paper-strong); }
.map-cluster:focus-visible .map-cluster-front { stroke: var(--sky-deep); stroke-width: 5; }

.map-edges { position: absolute; inset: 0; pointer-events: none; }
.map-edge {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0 0.8rem 0 0.6rem;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}
.map-edge:hover { background: var(--concrete-light); }
.map-edge:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }
.map-edge-arrow { display: inline-flex; color: var(--tower-red); }
.map-edge-arrow .icon { width: 1rem; height: 1rem; stroke-width: 2.75; }
/* Three pills along one edge only fit a narrow phone as an arrow and a number */
@media (max-width: 24.99rem) {
  .map-edge-word { display: none; }
}

/* One bar: All, −, and +, with Reset joining once the view has moved */
.map-controls { position: absolute; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); display: flex; background: var(--paper-strong); border: var(--line); border-radius: var(--radius-small); overflow: hidden; }
.map-controls button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  background: var(--paper-strong);
  color: var(--ink);
  border: 0;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.map-controls button + button { border-left: var(--line); }
.map-controls .map-control-text { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.map-controls button:hover { background: var(--concrete-light); }
.map-controls button:disabled { color: var(--muted-ink); cursor: default; }
.map-controls button:disabled:hover { background: var(--paper-strong); }
.map-controls button:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: -3px; }

.map-venue-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.map-venue-close { flex: none; color: var(--ink); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.map-venue h2:focus { outline: none; }

/* Phone: the picked venue's panel becomes a bottom sheet */
@media (max-width: 63.99rem) {
  .is-enhanced .map-venue {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    max-height: 44svh;
    overflow-y: auto;
    border-inline: 0;
    border-bottom: 0;
    border-radius: 1.125rem 1.125rem 0 0;
    padding-top: 0;
    scroll-padding-top: 5rem; /* a focused show link clears the sticky header */
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  /* The header stays on screen while the shows scroll, so Close is always in reach. */
  .is-enhanced .map-venue-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 1rem 0 0.5rem;
    background: var(--paper-strong);
    border-bottom: 1px solid var(--concrete);
  }
  /* A 44 px tap target; the margins give back the room the padding takes. */
  .is-enhanced .map-venue-close {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 44px;
    min-height: 44px;
    margin: -0.75rem 0;
  }
}

/* Stretch the title link over the card. Isolate it so open menus stay above it. */
.panel { isolation: isolate; }
.panel-title a { color: var(--ink); text-decoration: none; }
.panel-details-link::after { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: var(--radius); }
.panel-details-link:focus-visible { outline: none; }
.panel-title a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.empty-state .quiet-link { font-size: 0.875rem; font-weight: 700; }

/* Show page. One raised info card holds the poster, date badge,
   title, tags, facts, and the ticket button with the price's stub beside it.
   Lineup, description, and the lists are flat cards below it. Phone first: the
   first screen holds everything needed to buy a ticket. */
.show-page { flex: 1 0 auto; width: 100%; max-width: 72rem; margin-inline: auto; padding: 1rem var(--gutter) 2.5rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  margin-bottom: 0.875rem;
  padding: 0 1rem 0 0.75rem;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.back-link:hover { background: var(--concrete-light); }
.back-link .icon { transform: scaleX(-1); stroke-width: 2.5; }

.show-card {
  position: relative;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  grid-template-areas: "art head" "facts facts" "actions actions" "fine fine";
  column-gap: 0.875rem;
  row-gap: 1rem;
  padding: 0.875rem;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink); /* the page's one raised card: see docs/design.md */
}
.card-main { display: contents; }
.card-art { grid-area: art; position: relative; }
.card-poster {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--concrete-light);
  border: var(--line);
  border-radius: 10px;
}
.card-poster picture { display: contents; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-poster .stamp { top: auto; bottom: 0.5rem; } /* keep the sold-out stamp at the foot */
.card-head { grid-area: head; align-self: center; }
.show-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.08;
  overflow-wrap: break-word;
}
.card-head .tag-chips { margin-top: 0.625rem; }
.card-head .tag-chip { padding: 0.15rem 0.6rem 0.12rem; font-size: 0.75rem; }

/* The phone calendar sits beside the When text. */
.date-badge {
  overflow: hidden;
  text-align: center;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: 5px;
  font-family: var(--font-display);
  line-height: 1;
  text-transform: uppercase;
}
.card-art .date-badge, .when-row .icon { display: none; }
.db-month { display: block; padding: 0.12rem 0; background: var(--tower-red); color: var(--paper-strong); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; }
.db-day { display: block; padding: 0.1rem 0; color: var(--ink); font-size: 1.125rem; font-weight: 800; }
.db-dow { display: block; padding: 0.1rem 0 0.3rem; color: var(--muted-ink); font-family: var(--font-ui); font-size: 0.625rem; font-weight: 800; letter-spacing: 0.1em; }

.show-facts { --fact-icon-column: 2.125rem; grid-area: facts; display: grid; gap: 0.875rem; margin: 0; padding: 0; list-style: none; }
.show-facts > li { display: grid; grid-template-columns: var(--fact-icon-column) minmax(0, 1fr); column-gap: 0.625rem; align-items: start; }
.show-facts .icon { justify-self: center; width: 1.125rem; height: 1.125rem; margin-top: 0.15rem; }
.fact-when { align-self: center; font-weight: 700; }
.when-relative { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.fact-line { display: block; }
.fact-strong { font-weight: 700; }
.fact-sub { display: block; color: var(--muted-ink); font-size: 0.875rem; }
.fact-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: 0.125rem; }
.fact-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.875rem; font-weight: 700; text-underline-offset: 0.16em; }
.price-note { display: block; color: var(--muted-ink); font-size: 0.8125rem; }

.card-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--concrete-light);
}
.card-actions .button { width: 100%; min-height: 3rem; font-size: 0.9375rem; }
.calendar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-underline-offset: 0.16em;
  white-space: nowrap;
}
.price-fineprint { grid-area: fine; margin: 0; color: var(--muted-ink); font-size: 0.8125rem; }

/* The price as a ticket stub beside the button: a perforation between the
   amount and its label. Free is green. On a phone the stub is always full
   width above the button; a range is smaller. */
.price-stub {
  display: flex;
  align-items: stretch;
  flex: none;
  min-height: 3.25rem;
  overflow: hidden;
  background: var(--tag-bright-stand-up);
  border: var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1;
}
.price-stub-free { background: var(--park); }
.ps-amount { display: grid; place-items: center; padding: 0 0.75rem 0 0.875rem; font-size: 1.75rem; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; }
.ps-amount.is-long { padding: 0 0.875rem; font-size: 1.5rem; }
.ps-perf { position: relative; width: 0; margin: 0 0.125rem; border-left: 2px dashed var(--ink); }
.ps-perf::before,
.ps-perf::after {
  content: "";
  position: absolute;
  left: -0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: 50%;
}
.ps-perf::before { top: -0.5rem; }
.ps-perf::after { bottom: -0.5rem; }
.ps-label {
  display: grid;
  place-items: center;
  max-width: 4.5rem;
  padding: 0 0.75rem 0 0.625rem;
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}
.price-stub-free .ps-label { max-width: 6rem; }
.card-actions:has(.price-stub) { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 0.75rem; }
.card-actions:has(.price-stub) .button { min-width: 0; }
.price-stub { justify-content: space-between; }
.ps-amount { flex: 1; }

.show-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; margin-top: 1.75rem; }
.show-aside { display: grid; gap: 1.75rem; align-content: start; }
/* Phone: a venue's map comes straight after its details row, ahead of the schedule; regular shows stay after it. */
@media (max-width: 63.99rem) {
  .venue-body > .show-aside { display: contents; }
  .venue-body .where-card { order: -1; }
}
.show-section { padding: 1.125rem 1.25rem 1.25rem; background: var(--paper-strong); border: var(--line); border-radius: 18px; }
.show-section h2 { margin: 0 0 0.875rem; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.show-section .rows { background: var(--paper); border-radius: 12px; }
.show-main { display: grid; gap: 1.75rem; align-content: start; }
.about p { max-width: 38rem; margin: 0 0 0.875rem; line-height: 1.6; }
.about .button { width: 100%; margin-top: 0.25rem; }
.act-more summary { margin: 0 0 0.875rem; color: var(--muted-ink); font-size: 0.875rem; font-weight: 700; cursor: pointer; }
.act-more[open] summary { margin-bottom: 0.5rem; }
.about .act-credit { margin: 0; color: var(--muted-ink); font-size: 0.8125rem; }
.sold-note { margin: 0 0 0.75rem; font-weight: 700; }

/* Venue map with a lower-right Directions link. */
.where-card { padding: 0; overflow: hidden; }
.where-map { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.where-map .map-art { --k: 1.2; } /* names read at about 10 px at the card's width */
.where-map .map-art svg { display: block; width: 100%; height: 100%; }
.where-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2rem;
  height: 2rem;
  transform: translate(-50%, -100%);
  fill: var(--tower-red);
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}
.where-pin circle { fill: var(--paper-strong); stroke-width: 1.5; }
.where-directions {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  min-height: 2.75rem;
  padding-inline: 0.6875rem;
  background: var(--paper-strong);
  font-size: 0.8125rem;
}

/* The source, as a footnote at the foot of the page */
.source-note { margin: 2rem 0 0; padding-top: 1rem; border-top: 2px solid var(--concrete-light); color: var(--muted-ink); font-size: 0.8125rem; }

/* Other dates and Also on: rows in a flat panel, like the More dates menu */
.rows { margin: 0; padding: 0; list-style: none; overflow: hidden; background: var(--paper-strong); border: var(--line); border-radius: var(--radius); }
.rows > li + li { border-top: 1px solid var(--concrete-light); }
.date-row,
.also-row { color: var(--ink); text-decoration: none; }
.date-row:hover,
.also-row:hover { background: var(--concrete-light); color: var(--ink); }
.date-row:focus-visible,
.also-row:focus-visible { outline-offset: -4px; }
.date-row { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0 1rem; }
.row-when { font-size: 0.9375rem; font-weight: 700; }
.row-day { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.row-end { display: flex; align-items: center; gap: 0.625rem; margin-left: auto; }
.row-price { color: var(--muted-ink); font-size: 0.875rem; }
.row-flag {
  padding: 0.15rem 0.4rem 0.1rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.row-chevron {
  width: 1rem;
  height: 1rem;
  flex: none;
  transform: rotate(-90deg);
  fill: none;
  stroke: var(--muted-ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rows-more { margin: 0.625rem 0 0; color: var(--muted-ink); font-size: 0.875rem; }
.also-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.625rem 1rem;
}
.also-time { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.also-what { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.also-title { font-family: var(--font-title); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; overflow-wrap: break-word; }
.also-venue { color: var(--muted-ink); font-size: 0.8125rem; }
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Tablet: the art sits beside the details */
@media (min-width: 40rem) {
  .show-card { grid-template-columns: 15rem minmax(0, 1fr); grid-template-areas: none; padding: 0; column-gap: 0; row-gap: 0; }
  .card-main { display: grid; grid-column: 2; align-content: start; gap: 1.25rem; padding: 1.25rem 1.5rem; }
  .card-art { grid-area: auto; padding: 1.25rem 0 1.25rem 1.25rem; --poster-width: 13.75rem; }
  /* The frame follows the artwork's own ratio, clamped between 16:9 and 4:5; taller art is cropped from the top. */
  .card-poster { aspect-ratio: auto; }
  .card-poster img { display: block; height: auto; min-height: calc(var(--poster-width) * 0.5625); max-height: calc(var(--poster-width) * 1.25); }
  .card-art .date-badge {
    display: block;
    position: absolute;
    z-index: 2;
    top: 0.25rem;
    left: 0.25rem;
    width: 3.75rem;
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-5deg);
  }
  .when-row .date-badge { display: none; }
  .when-row .icon { display: block; }
  .show-facts { --fact-icon-column: 1.25rem; }
  .show-facts .icon { justify-self: start; }
  .db-month { padding: 0.3rem 0 0.2rem; font-size: 0.8125rem; }
  .db-day { padding: 0.3rem 0 0; font-size: 2rem; }
  .db-dow { padding: 0.1rem 0 0.35rem; font-size: 0.6875rem; }
  .card-head, .show-facts, .card-actions, .price-fineprint { grid-area: auto; }
  .show-title { font-size: 2.5rem; }
  .card-actions,
  .card-actions:has(.price-stub) { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; padding-top: 1rem; }
  .card-actions .button { width: auto; min-width: 13rem; }
  .card-actions:has(.price-stub) .calendar-link { grid-column: auto; }
  .about .button { width: auto; min-width: 17rem; }
}

/* Desktop: the page is centred; the card's art column is wider, and the description sits beside the lists */
@media (min-width: 64rem) {
  .show-card { grid-template-columns: 21rem minmax(0, 1fr); }
  .card-art { padding: 1.5rem 0 1.5rem 1.5rem; --poster-width: 19.5rem; }
  .card-main { gap: 1.125rem; padding: 1.5rem 2rem 1.5rem 2.25rem; }
  .show-title { font-size: 3.25rem; }
  .show-facts { gap: 1rem; font-size: 1.0625rem; }
  .show-body {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-areas: "about aside";
    align-items: start; /* each column's cards are as tall as their content, not as tall as the other column */
    column-gap: 3rem;
    margin-top: 2rem;
  }
  .show-body > .show-main,
  .show-body > .about { grid-area: about; }
  .show-body > .show-aside { grid-area: aside; }
  /* With no description, the lists take the row instead of leaving it half empty. */
  .show-body > :only-child { grid-area: auto; grid-column: 1 / -1; max-width: 40rem; }
  .about p { font-size: 1.0625rem; }
}

/* The compact masthead: a show page has no tabs, so it keeps just the brand. */
.masthead--compact .masthead-main { padding-bottom: 0.75rem; }
@media (min-width: 64rem) {
  .masthead--compact { --art-width: clamp(13rem, 19vw, 16.5rem); }
  /* Both drawings meet the shoreline at y=210 on their 236-unit canvases. */
  .masthead--compact .masthead-art {
    min-height: calc(var(--art-width) * 210 / 440);
    background-origin: border-box;
  }
  .masthead--compact .masthead-art,
  .masthead--compact .masthead-art::after {
    background-position: center top;
    background-size: 100% auto;
  }
  .masthead--compact .masthead-main { justify-content: center; padding: 0.875rem 2.25rem 0.875rem var(--gutter); }
  .masthead--compact .masthead-brand { display: grid; grid-template-columns: auto; grid-template-areas: "wordmark" "tagline"; align-items: start; gap: 0.4rem; padding-top: 0; }
  .masthead--compact .wordmark { font-size: clamp(2.75rem, 0.6rem + 3.6vw, 4.25rem); }
  .masthead--compact .tagline {
    color: var(--sky-deep);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    transform: none;
  }
  .masthead--compact .tagline span { display: inline; }
}

/* Phone and tablet, list path: a floating MAP button takes the switch's place.
   It needs no script, so it stays when a browser has none. */
.map-button { display: none; }
@media (max-width: 63.99rem) {
  .night-shell--list:not(.night-shell--empty) .view-switch { display: none; }
  .map-button {
    position: fixed;
    left: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0 1.375rem;
    background: var(--ink);
    color: var(--paper-strong);
    border: 2px solid var(--paper-strong);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
  }
  .map-button:hover { color: var(--paper-strong); background: var(--sky-deep); }
  .map-button:focus-visible { outline-color: var(--sky-deep); }
  /* Room for the button, so it never rests on the last thing on the page. */
  .night-shell--list:not(.night-shell--empty) .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* Phone and tablet, map path: the map takes the whole screen, and a finger on it
   only ever moves the map. It needs the script, so a browser without one keeps
   the ordinary page with its switch and footer. */
@media (max-width: 63.99rem) and (scripting: enabled) {
  .night-shell--map { height: 100dvh; overflow: hidden; overscroll-behavior: none; }
  .night-shell--map .masthead,
  .night-shell--map .site-footer,
  .night-shell--map .view-switch { display: none; }
  .night-shell--map .page-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .night-shell--map .map-column { position: fixed; top: 0; left: 0; right: 0; height: 100dvh; }
  .night-shell--map .map-frame { height: 100%; min-height: 0; max-height: none; margin-inline: 0; border-block: 0; }
  .night-shell--map .map-venue { display: flex; }
  .night-shell--map .map-venue[hidden] { display: none; }

  .map-topbar {
    position: absolute;
    z-index: 5;
    top: 0.625rem;
    left: 0.625rem;
    right: 0.625rem;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 0.5rem;
    pointer-events: none;
  }
  .map-topbar > * { pointer-events: auto; }
  .map-topbar-wordmark { display: flex; }
  .map-topbar-list,
  .map-days-button {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    box-sizing: border-box;
    border: var(--line);
    border-radius: var(--radius-small);
    text-decoration: none;
    text-transform: uppercase;
  }
  .map-topbar-list {
    padding: 0 0.875rem;
    background: var(--ink);
    color: var(--paper-strong);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
  }
  .map-topbar-list:hover { color: var(--paper-strong); background: var(--sky-deep); border-color: var(--sky-deep); }
  .map-days { grid-column: 1 / -1; justify-self: start; }
  .map-days-button {
    gap: 0.5rem;
    padding: 0 0.75rem;
    background: var(--paper-strong);
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    list-style: none;
    cursor: pointer;
    white-space: nowrap;
  }
  .map-days-button::-webkit-details-marker { display: none; }
  .map-days-button:hover { background: var(--concrete-light); }
  .map-days-name { color: var(--tower-red); font-family: var(--font-display); font-size: 1.1875rem; letter-spacing: 0.02em; }
  .map-days-date { font-weight: 600; }
  .map-days[open] .chevron { transform: rotate(180deg); }
  .map-days-menu {
    position: absolute;
    z-index: 6;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    max-height: 60dvh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    background: var(--paper-strong);
    border: var(--line);
    border-radius: var(--radius);
  }
  .map-days-menu li:first-child .more-dates-row { border-top: 0; }
  .map-days-menu .row-day { width: 5em; }

  /* A quiet dot, in the corner where a printed map keeps its credit. The summary is
     a full 44 px target around it, so the dot sits about 0.75rem from the screen's edges. */
  .map-credit {
    position: absolute;
    z-index: 4;
    left: 0.125rem;
    bottom: calc(0.125rem + env(safe-area-inset-bottom, 0px));
    display: block;
    font-size: 0.75rem;
  }
  .map-credit summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    list-style: none;
    cursor: pointer;
  }
  .map-credit summary::-webkit-details-marker { display: none; }
  .map-credit summary:focus-visible { outline-offset: -6px; }
  .map-credit-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--paper-strong) 55%, transparent);
    color: var(--ink);
    font-family: var(--font-title);
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
  }
  .map-credit[open] .map-credit-dot { background: var(--paper-strong); }
  .map-credit p {
    position: absolute;
    left: 0.5rem;
    bottom: calc(100% - 0.25rem);
    width: min(13.5rem, calc(100vw - 1.25rem));
    margin: 0;
    padding: 0.5rem 0.625rem;
    background: var(--paper-strong);
    border: var(--line);
    border-radius: var(--radius-small);
    line-height: 1.35;
  }
  .map-credit a { color: var(--sky-deep); }
}

/* Desktop: the masthead, day tabs, and the whole night in a column, beside a map
   that fills the rest of the window. The window scrolls the column, so a visitor
   coming back from a show page returns to their place. It needs the script, so a
   browser without one keeps the ordinary pages. */
@media (min-width: 64rem) and (scripting: enabled) {
  .night-shell { --column: 28.5rem; --column-gutter: 1.25rem; --tabs-height: 0px; width: var(--column); }

  .night-shell .masthead,
  .night-shell .masthead-main { display: contents; }
  .night-shell .masthead-art,
  .night-shell .burst,
  .night-shell .heading-marks,
  .night-shell .view-switch { display: none; }
  .night-shell .masthead-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "wordmark mark" "tagline mark";
    align-items: end;
    gap: 0 0.625rem;
    padding: 1.25rem var(--column-gutter) 0.625rem;
  }
  .night-shell .wordmark { font-size: 3.125rem; }
  .night-shell .tagline {
    margin: 0.45rem 0 0;
    color: var(--sky-deep);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    line-height: 1.45;
    transform: none;
  }
  .night-shell .tagline span { display: inline; }
  .night-shell .tower-mark { display: block; }

  /* Two rows of tabs, as on a phone, kept in place while the shows scroll. */
  .night-shell .night-tabs {
    z-index: 9; /* above the filter menu (8), so it slides under the days when the list scrolls */
    max-width: none;
    padding: 0.625rem var(--column-gutter);
    background: var(--paper);
    border-bottom: var(--line);
  }
  .night-shell .night-tabs > ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .night-shell .night-tabs > ul > li > a,
  .night-shell .more-dates-tab { min-height: 3.5rem; gap: 3px; }
  .night-shell .night-tabs > ul > li > a[aria-current="page"]::before,
  .night-shell .night-tabs > ul > li > a[aria-current="page"]::after,
  .night-shell .more-dates-tab.is-current::before,
  .night-shell .more-dates-tab.is-current::after { content: none; }
  .night-shell .tab-tonight { font-size: 1.3125rem; }
  .night-shell .tab-day { font-size: 0.875rem; }
  .night-shell .tab-date { font-size: 0.75rem; }
  .night-shell .more-dates-menu {
    top: calc(100% - 2px);
    left: var(--column-gutter);
    right: var(--column-gutter);
    width: auto;
    max-height: calc(100dvh - 10rem);
    overflow-y: auto;
  }

  .night-shell .page { padding: 1.25rem var(--column-gutter) 2rem; }
  .night-shell .page-heading { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.375rem; margin-bottom: 1rem; }
  .night-shell .page-heading h1 { font-size: 2.5rem; }
  .night-shell .page-meta { margin-bottom: 0; font-size: 0.8125rem; }

  .night-shell .map-layout { display: block; }
  .night-shell .map-cards { display: flex; flex-direction: column; gap: 1rem; }
  /* A picked venue's bar stays under the tabs on a band of paper, so the shows
     scroll away beneath it with room on both sides rather than sliding behind it. */
  .night-shell .map-filter {
    position: sticky;
    top: calc(var(--tabs-height) + 0.625rem);
    z-index: 4;
    box-shadow: 0 0 0 0.625rem var(--paper);
  }
  /* Once shows pass under it, the band ends on the same ink rule as the tabs. */
  .night-shell .map-filter::after {
    content: "";
    position: absolute;
    top: calc(100% + 0.625rem - 2px);
    left: calc(-1 * var(--column-gutter));
    right: calc(-1 * var(--column-gutter));
    border-top: var(--line);
    visibility: hidden;
  }
  .night-shell .map-filter.is-stuck::after { visibility: visible; }
  .night-shell .listings { max-width: none; grid-template-columns: minmax(0, 1fr); }
  .night-shell .site-footer { flex-direction: column; align-items: flex-start; padding-inline: var(--column-gutter); }
  .night-shell .site-footer .footer-mark { font-size: 1.375rem; }
  .night-shell .footer-credit { display: block; }

  .night-shell .map-column {
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--column);
    right: 0;
    display: block;
    border-left: var(--line);
  }
  .night-shell .map-frame { height: 100%; min-height: 0; max-height: none; margin-inline: 0; border-block: 0; }
  .night-shell .map-venue,
  .night-shell .map-note + .map-venue { display: none; }

  /* The name, when the wordmark has scrolled away. It isn't a link, and a hidden badge can't take clicks. */
  .night-shell .map-badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms ease, visibility 240ms;
  }
  .night-shell .map-badge.is-visible { opacity: 1; visibility: visible; }

  /* If the script never brings the map in, the frame offers the map path instead. */
  .night-shell--list [data-map]:not(.is-enhanced) .map-pins,
  .night-shell--list [data-map]:not(.is-enhanced) .map-edges { display: none; }
  .night-shell--list [data-map]:not(.is-enhanced) .map-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    transform: translate(-50%, -50%);
    visibility: hidden;
    animation: map-reveal 0s linear 2s forwards;
  }
}

/* The tabs lock only when the window has room for them and the shows. */
@media (min-width: 64rem) and (min-height: 36rem) and (scripting: enabled) {
  html:has(.night-shell) { scroll-padding-top: 9.25rem; } /* so focus and anchors never land under them */
  html:has(.night-shell .map-filter:not([hidden])) { scroll-padding-top: 13.5rem; } /* nor under a picked venue's bar */
  .night-shell { --tabs-height: 8.75rem; }
  .night-shell .night-tabs { position: sticky; top: 0; }
}

/* Night listings share a compact panel on phones and beside the desktop map. */
@media (width < 36rem), (min-width: 64rem) and (scripting: enabled) {
  .map-cards .listings { gap: 0.5rem; }
  :is(.map-card, .map-venue) .panel {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "art title" "art desc" "art facts";
    gap: 0.22rem 0.625rem;
    padding: 0.4rem 0.625rem;
  }
  :is(.map-card, .map-venue) .panel-title { font-size: 1.0625rem; line-height: 1.17; }
  :is(.map-card, .map-venue) .panel-chevron { display: inline; color: var(--sky-deep); font: 700 0.95em var(--font-ui); }
  :is(.map-card, .map-venue) .panel-description {
    font-size: 0.875rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  :is(.map-card, .map-venue) .panel-details-cue { display: none; }
  :is(.map-card, .map-venue) .panel-facts {
    align-self: start;
    flex-direction: row;
    gap: 0.125rem 0.5625rem;
    font-size: 0.875rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  :is(.map-card, .map-venue) .panel-facts li { gap: 0.25rem; }
  :is(.map-card, .map-venue) .icon { width: 1rem; height: 1rem; }
  :is(.map-card, .map-venue) .stamp {
    inset: auto 0 0;
    padding: 0.125rem 0;
    border: 0;
    font-size: 0.75rem;
    text-align: center;
    transform: none;
  }
}

/* The phone sheet keeps compact panels at tablet widths, where the lists use larger ones. */
@media (36rem <= width < 64rem) {
  .map-venue .panel {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "art title" "art desc" "art facts";
    gap: 0.22rem 0.625rem;
    padding: 0.4rem 0.625rem;
  }
  .map-venue .panel-title { font-size: 1.0625rem; line-height: 1.17; }
  .map-venue .panel-chevron { display: inline; color: var(--sky-deep); font: 700 0.95em var(--font-ui); }
  .map-venue .panel-description {
    font-size: 0.875rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .map-venue .panel-details-cue { display: none; }
  .map-venue .panel-facts {
    align-self: start;
    flex-direction: row;
    gap: 0.125rem 0.5625rem;
    font-size: 0.875rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .map-venue .panel-facts li { gap: 0.25rem; }
  .map-venue .icon { width: 1rem; height: 1rem; }
  .map-venue .stamp {
    inset: auto 0 0;
    padding: 0.125rem 0;
    border: 0;
    font-size: 0.75rem;
    text-align: center;
    transform: none;
  }
}

/* Lineup on show pages: outlined labels in ink and paper only, with no tag colour */
.lineup-group + .lineup-group { margin-top: 0.875rem; }
.lineup-label { margin: 0 0 0.375rem; color: var(--muted-ink); font-size: 0.8125rem; font-weight: 700; }
.lineup-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.lineup-chip {
  padding: 0.25rem 0.75rem 0.22rem;
  background: var(--paper-strong);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Tags and the filter checklist (milestone 2 of the show tags plan) */
.tag-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.tag-chip {
  padding: 0.1rem 0.5rem 0.08rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-stand-up { background: var(--tag-stand-up); }
.tag-improv { background: var(--tag-improv); }
.tag-sketch { background: var(--tag-sketch); }
.tag-musical { background: var(--tag-musical); }
.tag-variety { background: var(--tag-variety); }
.tag-open-mic { background: var(--tag-open-mic); }

/* A show the filter hides stays in the page for the script, out of sight. */
.map-card[data-filtered], .map-venue-show[data-filtered] { display: none; }

/* The date line and the Filters button share a row; the button's list drops
   over the shows, so nothing moves when it opens. */
.page-heading-row:has(.filters) { flex-wrap: nowrap; }
.page-heading-row .page-meta { min-width: 0; }
.page-heading-tools { display: flex; flex: none; align-items: center; gap: 0.75rem; }
.filters { position: relative; }
.filters-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 0.875rem 0 0.75rem;
  background: var(--paper-strong);
  color: var(--ink);
  border: var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
}
.filters-button::-webkit-details-marker { display: none; }
.filters-button:hover { background: var(--concrete-light); }
.filters-button.is-active { background: var(--ink); color: var(--paper-strong); }
.filters-button.is-active:hover { background: var(--sky-deep); border-color: var(--sky-deep); }
.filters-button .icon { stroke-width: 2.5; }
.filters-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(19.5rem, calc(100vw - 2rem));
  margin: 0;
  overflow: hidden;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: var(--radius);
}
.filters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1rem 0.625rem;
  border-bottom: var(--line);
  font-size: 0.8125rem;
}
.filters-title { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.filters-reset { font-weight: 700; text-underline-offset: 0.16em; }
.filters-reset[aria-disabled="true"] { color: var(--muted-ink); text-decoration: none; pointer-events: none; }
.filters-list { margin: 0; padding: 0; list-style: none; }
.filters-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.375rem 1rem;
  border-top: 1px solid var(--concrete-light);
  cursor: pointer;
}
.filters-list li:first-child .filters-row { border-top: 0; }
.filters-row:hover { background: var(--concrete-light); }
.filters-row.is-format { border-top: 2px solid var(--concrete); background: var(--paper); }
.filters-row.is-format:hover { background: var(--concrete-light); }
.filters-row input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--ink); cursor: pointer; }
.filters-dot { flex: none; width: 0.875rem; height: 0.875rem; border: 1.5px solid var(--ink); border-radius: 50%; }
.filters-row:has(input:not(:checked)) .filters-dot { opacity: 0.45; }
.filters-name { font-size: 0.9375rem; font-weight: 700; line-height: 1.25; }
.filters-row:has(input:not(:checked)) .filters-name { color: var(--muted-ink); }
.filters-count { margin-left: auto; color: var(--muted-ink); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.filters-foot { display: flex; justify-content: flex-end; margin: 0; padding: 0.625rem 1rem 0.75rem; border-top: var(--line); }
.filters-foot .button { min-height: 2.5rem; padding: 0 1rem; font-size: 0.8125rem; }
.filters.is-live .filters-foot { display: none; }

/* Every show on the night, or at the picked venue, filtered out */
.filters-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--paper-strong);
  border: var(--line);
  border-radius: var(--radius);
}
.filters-empty[hidden] { display: none; }
.filters-empty h2 { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: 1.375rem; line-height: 1.15; }
.filters-empty .button { min-height: 2.75rem; padding: 0 1.125rem; }

/* A phone's venue sheet whose shows the filter all hides offers them back. */
.map-venue-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding-top: 0.25rem; }
.map-venue-empty[hidden] { display: none; }
.map-venue-empty p { font-weight: 700; }
.map-venue-empty .button { min-height: 2.75rem; padding: 0 1.125rem; }

/* A venue whose shows the filter all hides keeps a faded pin that still picks it. */
.map-pin.is-faded, .map-cluster.is-faded, .map-edge.is-faded { opacity: 0.4; }

/* The phone's full-screen map floats its own copy of the filter at the bottom
   left, above which the licence dot moves; the list opens upward. It steps
   aside while a venue's sheet is open. */
.filters--map { display: none; }
@media (max-width: 63.99rem) and (scripting: enabled) {
  .night-shell--map .filters--map {
    position: absolute;
    z-index: 5;
    left: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    display: block;
  }
  .night-shell--map .filters--map .filters-button { min-height: 2.75rem; border-radius: var(--radius-small); }
  .night-shell--map .filters--map .filters-menu { top: auto; bottom: calc(100% + 0.5rem); left: 0; right: auto; width: min(22rem, calc(100vw - 1.5rem)); }
  .night-shell--map .map-column:has(> .map-venue:not([hidden])) .filters--map { display: none; }
  .night-shell--map .map-credit { bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px)); }
}

/* Google Analytics choice: a strip along the foot of the window that blocks
   nothing. No thanks and Accept look the same, so neither is the easy one. */
.consent-strip {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.875rem var(--gutter) calc(0.875rem + env(safe-area-inset-bottom));
  background: var(--paper-strong);
  border-top: var(--line);
}
.consent-strip[hidden] { display: none; }
.consent-text { flex: 1 1 24rem; min-width: 0; }
.consent-strip h2 { margin: 0 0 0.25rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.consent-strip p { margin: 0; font-size: 0.875rem; color: var(--ink); }
.consent-strip a { color: var(--sky-deep); font-weight: 700; }
.consent-actions { display: flex; flex: 1 1 auto; justify-content: flex-end; gap: 0.625rem; }
.button-consent { flex: 1 1 0; max-width: 11rem; background: var(--paper-strong); border-color: var(--ink); color: var(--ink); font-family: var(--font-ui); cursor: pointer; }
.button-consent:hover { background: var(--ink); color: var(--paper-strong); }
.button-consent[aria-pressed="true"] { background: var(--sky-deep); border-color: var(--sky-deep); color: var(--paper-strong); }
.site-footer a.footer-privacy { color: inherit; }
.consent-settings[hidden] { display: none; }
.consent-status { font-weight: 700; }
.consent-settings .consent-actions { justify-content: flex-start; }
.button-consent-switch { flex: 0 1 auto; max-width: none; }
.privacy .show-section { max-width: 44rem; margin-bottom: 1rem; }
.privacy .show-section h2 { margin-top: 0; }
.privacy .show-section p { line-height: 1.55; }

/* Venue pages: the show page's family, with a header card that has no art
   column until the venue has a photo. */
.venue-kicker { margin: 0 0 0.375rem; color: var(--muted-ink); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.venue-card.no-art { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "facts"; }
.venue-card .show-facts a { color: var(--ink); }
.inline-link { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.inline-link:hover { color: var(--sky-deep); }
.venue-photo-frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete-light); border: var(--line); border-radius: 10px; }
.venue-photo-frame picture { display: contents; }
.venue-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.venue-photo-credit { margin: 0.375rem 0 0; color: var(--muted-ink); font-size: 0.6875rem; }
.venue-card.has-photo { grid-template-areas: "art" "head" "facts"; grid-template-columns: minmax(0, 1fr); }
.venue-card.has-photo .card-art { grid-area: art; }
/* Venue facts: outlined pills under the address, and the details card. Pills
   share the lineup chips' ink outline; "no step-free access" is dashed. */
.venue-card .show-facts > li.fact-pills { display: block; padding-left: calc(var(--fact-icon-column) + 0.625rem); }
.venue-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.venue-pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem 0.22rem 0.625rem; background: var(--paper-strong); border: 2px solid var(--ink); border-radius: 999px; font-size: 0.9375rem; font-weight: 700; line-height: 1.35; }
.venue-pill .icon { width: 1rem; height: 1rem; }
.venue-pill.is-no { border-style: dashed; }
.venue-details { margin-top: 1.75rem; background: var(--paper-strong); border: var(--line); border-radius: 18px; }
.venue-details > summary { display: flex; align-items: center; gap: 0.625rem; min-height: 3.5rem; padding: 0 1.25rem; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; }
.venue-details > summary::-webkit-details-marker { display: none; }
.venue-details > summary .details-title { flex: 1; }
.venue-details > summary .icon, .venue-details > summary .chevron { width: 1.125rem; height: 1.125rem; flex: none; }
.venue-details[open] > summary { border-bottom: 2px solid var(--concrete-light); }
.venue-details[open] > summary .chevron { transform: rotate(180deg); }
.details-body { display: grid; gap: 0.875rem; padding: 1.125rem 1.25rem 1.25rem; }
/* The venue's own words sit in a block quote: a red rule on the left and the
   attribution last, so "we offer" reads as the venue speaking. */
.details-quote { display: grid; gap: 1rem; margin: 0; padding: 1rem 1rem 1rem 1.125rem; background: var(--paper); border-left: 5px solid var(--tower-red); border-radius: 0 10px 10px 0; }
.details-attribution { margin: 0; color: var(--muted-ink); font-size: 0.875rem; font-weight: 700; }
.details-attribution::before { content: "\2014\00a0"; }
.details-attribution a { color: var(--ink); }
.details-topic h2 { margin: 0 0 0.5rem; color: var(--muted-ink); font-family: var(--font-ui); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.details-quotes { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.details-row { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); column-gap: 0.75rem; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.details-row .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; }
.venue-link { color: inherit; text-underline-offset: 0.16em; }
.venue-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.site-footer a.footer-privacy + a.footer-privacy { margin-left: 0.75rem; }
@media (min-width: 40rem) {
  .venue-card.has-photo { grid-template-columns: 18rem minmax(0, 1fr); grid-template-areas: none; }
  .venue-card.has-photo .card-art { grid-area: auto; padding: 1.25rem 0 1.25rem 1.25rem; }
  .venue-card.no-art { grid-template-columns: minmax(0, 1fr); }
  .venue-card.no-art .card-main { grid-column: 1; }
}

/* A night of shows at one venue, as rows with a poster each. */
.night-stack { display: grid; gap: 1.25rem; }
.night-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 0.75rem; }
.night-head h2 { margin: 0; }
.show-section .night-head h2 { font-size: inherit; letter-spacing: inherit; text-transform: none; }
.night-name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; letter-spacing: 0; text-transform: none; }
.night-date { margin-left: 0.5rem; color: var(--muted-ink); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.night-count { color: var(--muted-ink); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.sched-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.875rem;
  min-height: 3.5rem;
  padding: 0.625rem 1rem;
  color: var(--ink);
  text-decoration: none;
}
.sched-row:hover { background: var(--concrete-light); color: var(--ink); }
.sched-row:focus-visible { outline-offset: -4px; }
.sched-row.has-thumb { grid-template-columns: 2.75rem 4.25rem minmax(0, 1fr) auto; }
/* The Next show row has a long date, so the time sits above the title instead of in the 5rem column. */
.sched-row.sched-row-next { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time end" "what end"; row-gap: 0.25rem; }
.sched-row-next .sched-time { grid-area: time; }
.sched-row-next .sched-what { grid-area: what; }
.sched-row-next .sched-end { grid-area: end; }
.sched-thumb { width: 2.75rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: var(--line); border-radius: 6px; }
.sched-time { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.sched-what { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.sched-title { font-family: var(--font-title); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; overflow-wrap: break-word; }
.sched-what .tag-chips { margin: 0; }
.sched-what .tag-chip { padding: 0.08rem 0.45rem 0.05rem; font-size: 0.625rem; }
.sched-end { display: flex; align-items: center; gap: 0.625rem; }
.sched-price { color: var(--muted-ink); font-size: 0.875rem; white-space: nowrap; }
@media (max-width: 39.99rem) {
  /* The time and price share a line above the title, beside the poster. */
  .sched-row { grid-template-columns: 4.375rem minmax(0, 1fr) auto; column-gap: 0.5rem; padding: 0.625rem 0.75rem; }
  .sched-time { font-size: 0.75rem; letter-spacing: 0.02em; }
  .sched-price { font-size: 0.8125rem; }
  .sched-end { gap: 0.375rem; }
  .sched-row.has-thumb {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    grid-template-areas: "thumb time end" "thumb what what";
    row-gap: 0.25rem;
    align-items: start;
  }
  .sched-row.has-thumb .sched-thumb { grid-area: thumb; }
  .sched-row.has-thumb .sched-time { grid-area: time; align-self: center; }
  .sched-row.has-thumb .sched-what { grid-area: what; }
  .sched-row.has-thumb .sched-end { grid-area: end; }
}

/* The second week, folded away. It's a details element, so it needs no script.
   Only the summary is a card, and opening it removes it for good: the nights
   then continue the page's own stack rather than nesting inside another card. */
.week-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: 0 1.25rem; background: var(--paper-strong); border: var(--line); border-radius: 18px; cursor: pointer; list-style: none; font-weight: 800; }
.week-fold > summary::-webkit-details-marker { display: none; }
.week-fold .fold-label { font-family: var(--font-display); font-size: 1.125rem; }
.week-fold .fold-meta { color: var(--muted-ink); font-size: 0.8125rem; }
.week-fold[open] > summary { display: none; }
.beyond-line { margin: 0.25rem 0 0; color: var(--muted-ink); font-size: 0.9375rem; }
.gap-note { margin: 0; padding: 0.875rem 1rem; background: var(--paper); border: 2px dashed var(--concrete); border-radius: 12px; font-weight: 700; }
.gap-note .gap-sub { display: block; margin-top: 0.25rem; color: var(--muted-ink); font-size: 0.875rem; font-weight: 400; }

/* The venue index: one row per venue. */
.index-page { flex: 1 0 auto; width: 100%; max-width: 72rem; margin-inline: auto; padding: 1rem var(--gutter) 2.5rem; }
.index-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.25rem; row-gap: 0.5rem; margin: 0.5rem 0 1.5rem; }
.index-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; line-height: 1; }
.index-head { align-items: flex-end; justify-content: space-between; }
.index-map-link { flex: none; }
.index-group + .index-group { margin-top: 1.75rem; }
.index-group h2 { margin: 0 0 0.75rem; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.index-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 13rem 1rem; align-items: center; column-gap: 1rem; min-height: 3.75rem; padding: 0.625rem 1.25rem; color: var(--ink); text-decoration: none; }
.index-row:hover { background: var(--concrete-light); color: var(--ink); }
.index-row:focus-visible { outline-offset: -4px; }
.index-name { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.index-title { font-family: var(--font-title); font-weight: 700; font-size: 1.1875rem; line-height: 1.2; }
.index-street { color: var(--muted-ink); font-size: 0.8125rem; }
.index-count { font-weight: 800; font-size: 0.9375rem; }
.index-next { color: var(--muted-ink); font-size: 0.8125rem; white-space: nowrap; }
.club-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.club-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--paper-strong); border: var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.club-art { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete-light); border-bottom: var(--line); }
.club-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.club-body { display: flex; flex: 1; flex-direction: column; gap: 0.25rem; padding: 0.875rem 1rem 1rem; }
.club-title { font-family: var(--font-title); font-weight: 700; font-size: 1.375rem; line-height: 1.2; }
.club-card:hover .club-title { text-decoration: underline; }
.club-street { color: var(--muted-ink); font-size: 0.8125rem; }
.club-next { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.5rem; padding-top: 0.625rem; border-top: 2px solid var(--ink); }
.club-label { color: var(--muted-ink); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.club-when { font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.club-when.is-soon { color: var(--tower-red-deep); }
.club-busy { display: flex; flex-direction: column; gap: 0.375rem; margin-top: auto; padding-top: 0.875rem; }
.club-cadence { font-size: 0.875rem; font-weight: 600; }
.night-bars { display: flex; gap: 0.25rem; }
.night { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 0.2rem; max-width: 2rem; }
.night-day { color: var(--muted-ink); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; }
.night-bar { width: 100%; height: 0.625rem; border-radius: 3px; border: 1.5px solid var(--ink); }
.night-bar.on { background: var(--sky-deep); }
.night-bar.on.tonight { background: var(--tower-red); }
.night-bar.dark { border: 1.5px dashed var(--concrete); }
.night:first-child .night-day { color: var(--tower-red-deep); }

/* The comedy clubs row that ends a night's list: compact club cards in one row
   that scrolls sideways with CSS alone, bleeding to the page's edges. */
.club-row { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; margin-top: 1.5rem; padding-top: 1.5rem; border-top: var(--line); }
.club-row h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.club-scroll { display: flex; gap: 0.75rem; margin: 0 calc(-1 * var(--gutter)); padding: 0.25rem var(--gutter) 0.5rem; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.club-scroll::-webkit-scrollbar { display: none; }
.club-scroll > li { flex: 0 0 15rem; scroll-snap-align: start; }
.club-scroll .club-body { padding: 0.75rem 0.875rem 0.875rem; }
.club-scroll .club-title { font-size: 1.125rem; }
.club-row .see-all { align-self: flex-start; margin-top: 0; }
@media (min-width: 64rem) and (scripting: enabled) {
  /* Beside the map the list is a column, so the strip stays inside it. */
  .club-scroll { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
}
@media (min-width: 36rem) {
  .club-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .club-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 39.99rem) {
  .index-row { grid-template-columns: minmax(0, 1fr) auto 1rem; padding: 0.625rem 0.875rem; }
  .index-next { display: none; }
}
@media (min-width: 64rem) {
  .venue-card.has-photo { grid-template-columns: 24rem minmax(0, 1fr); }
  .venue-card.has-photo .card-art { padding: 1.5rem 0 1.5rem 1.5rem; }
}

/* Production pages: the next show, the dates card and a venue's regular shows. */
.schedule-line { font-weight: 700; }
.up-next .next-when { margin: 0 0 0.875rem; font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; }
.up-next .card-actions { padding-top: 0; border-top: 0; }
.show-all { margin-top: 0.75rem; }
.show-all > summary { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; cursor: pointer; list-style: none; color: var(--sky-deep); font-size: 0.875rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.show-all > summary::-webkit-details-marker { display: none; }
.show-all[open] > summary { display: none; }
.show-all .chevron { width: 1rem; height: 1rem; }
.regular-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.75rem; min-height: 3.5rem; padding: 0.625rem 1rem; color: var(--ink); text-decoration: none; }
.regular-row:hover { background: var(--concrete-light); color: var(--ink); }
.regular-row:focus-visible { outline-offset: -4px; }
.regular-what { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.regular-title { font-family: var(--font-title); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; overflow-wrap: break-word; }
.regular-line { color: var(--muted-ink); font-size: 0.8125rem; }

/* Christmas: the theme tag's chip, the /christmas/ page, and the links to it.
   Design reference: docs/design.md, "Christmas". */

/* The Christmas chip is a candy-cane rim around an ink-on-cream label with a
   holly sprig, the one tag that carries red. */
.tag-chip.tag-christmas {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding-left: 0.4em;
  background: linear-gradient(var(--paper-strong), var(--paper-strong)) padding-box, repeating-linear-gradient(-45deg, var(--tower-red) 0 3px, var(--paper-strong) 3px 6px) border-box;
  border: 3px solid transparent;
  box-shadow: 0 0 0 1.5px var(--ink);
}
.tag-chip.tag-christmas::before { content: ""; width: 1.15em; height: 0.95em; flex: none; background: url(/assets/art/holly.9dce2db17f7e.svg) center / contain no-repeat; }

/* Holly drawn inline */
.holly .holly-leaf { fill: var(--holly); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.holly .holly-berry { fill: var(--tower-red); stroke: var(--ink); stroke-width: 1; }

/* The page */
.xmas-garland { display: block; width: 100%; height: 2.5rem; margin: 0.25rem 0 -0.25rem; }
.xmas-wire { fill: none; stroke: var(--ink); stroke-width: 2; }
.xmas-socket { fill: var(--ink); }
.xmas-bulb { stroke: var(--ink); stroke-width: 1.5; }
.xmas-bulb.bulb-0 { fill: var(--tag-stand-up); }
.xmas-bulb.bulb-1 { fill: var(--tag-improv); }
.xmas-bulb.bulb-2 { fill: var(--tag-musical); }
.xmas-bulb.bulb-3 { fill: var(--tag-sketch); }
.xmas-bulb.bulb-4 { fill: var(--tag-open-mic); }
.xmas-bulb.bulb-5 { fill: var(--tower-red); }
.xmas-head { margin: 0.5rem 0 2rem; }
.xmas-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; line-height: 1; }
.xmas-head .venue-kicker { margin-bottom: 0.5rem; color: var(--holly); }
.xmas-meta { display: flex; flex-wrap: wrap; gap: 0.375rem 1.25rem; margin: 0.875rem 0 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.xmas-meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.xmas-meta .icon { width: 1.125rem; height: 1.125rem; }
.xmas-meta strong { font-weight: 800; }
.xmas-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.club-card .tag-chips { margin-top: 0.375rem; }

/* A card's season strip: one bar per night from tonight to Dec 31, with the
   nights it has a show filled, tonight in red and holly over Christmas Day. */
.xmas-season { display: flex; align-items: flex-end; gap: 2px; padding: 0.875rem 0 0.95rem; }
.xmas-bar { position: relative; flex: 1; min-width: 0; height: 0.625rem; border-radius: 2px; background: var(--concrete-light); }
.xmas-bar.on { background: var(--sky-deep); }
.xmas-bar.on.tonight { background: var(--tower-red); }
.xmas-bar.christmas { height: 0.875rem; box-shadow: 0 0 0 1.5px var(--holly); }
.xmas-day-mark { position: absolute; bottom: calc(100% + 1px); left: 50%; width: 1.1rem; height: 0.9rem; transform: translateX(-50%); }
.xmas-bar-label { position: absolute; top: calc(100% + 0.2rem); color: var(--muted-ink); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.xmas-bar-label.is-start { left: 0; color: var(--tower-red-deep); }
.xmas-bar-label.is-mid { left: 50%; transform: translateX(-50%); }
.xmas-bar-label.is-end { right: 0; }

/* The venue index's link */
.index-head-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* The strip at the end of a night's list */
.xmas-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.875rem; margin: 1.25rem 0 0; padding: 0.875rem 1.125rem; color: var(--ink); text-decoration: none; background: var(--paper-strong); border: var(--line); border-radius: var(--radius); }
.xmas-strip:hover { background: var(--concrete-light); color: var(--ink); }
.xmas-strip-holly { width: 2.75rem; height: 2.25rem; }
.xmas-strip-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.xmas-strip-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; line-height: 1.15; }
.xmas-strip-sub { color: var(--muted-ink); font-size: 0.875rem; }
.xmas-strip .icon { width: 1.25rem; height: 1.25rem; }

/* The gift tag hanging off a Christmas show's info card: a cream tag on a red
   string, tilted, overlapping the card's bottom edge. */
/* The card makes room so the tag never covers its fine print or buttons. */
.show-card.has-gift-tag { padding-bottom: 1.5rem; }
.gift-tag-hook { position: relative; z-index: 3; display: flex; justify-content: flex-end; margin: -1.6rem 1rem 0.5rem 0; }
.gift-tag { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; transform: rotate(-4deg); }
.gift-tag:hover { color: var(--ink); }
.gift-tag:hover .gift-tag-text { text-decoration: underline; }
.gift-tag-string { width: 3rem; height: 1.5rem; margin-right: -0.6rem; }
.gift-tag-string path { fill: none; stroke: var(--tower-red); stroke-width: 2.5; stroke-linecap: round; }
.gift-tag-body { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.25rem 0.875rem 2.6rem; }
.gift-tag-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.gift-tag-shape path { fill: var(--paper-strong); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gift-tag-hole { position: absolute; left: 1.15rem; top: 50%; width: 0.7rem; height: 0.7rem; margin-top: -0.35rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); }
.gift-tag-holly, .gift-tag-text, .gift-tag .icon { position: relative; }
.gift-tag-holly { width: 1.75rem; height: 1.4rem; }
.gift-tag-text { font-family: var(--font-hand); font-size: 0.875rem; line-height: 1.3; white-space: nowrap; }
.gift-tag .icon { width: 1.125rem; height: 1.125rem; }
@media (min-width: 40rem) {
  .gift-tag-hook { margin-right: 2.5rem; }
  .gift-tag-text { font-size: 0.9375rem; }
}
