/* map.11.css replaces map.8.css (which stays byte-identical: versioned assets are immutable for a year). DK 2026-11-08: the map follows the site
   theme. #map-frame and #map-tl no longer carry .theme-dark-scope, so the canvas, the card, the pins, the overlay and the strip use the live
   tokens; the base map swaps between a dark and a light style without a reload (map.11.js). Layout: variant C "Split" - the list left and the
   map right from 921px, stacked below that - and a selected pin that carries a plate (two segments on a light page, one plate on a dark one).
   Everything from the line "map.11.css delta" down is new; everything above it is map.8.css unchanged. */
/* map.8.css replaces map.7.css (which stays byte-identical: versioned assets are immutable for a year). Only change: the light theme.
   Every colour literal is a token now (design/theme/*.json through /styles.css; the dark values are the ones map.7.css had). The map itself
   stays dark on a light page (DK 2026-10-26): #map-frame carries .theme-dark-scope, which re-asserts the dark tokens for the canvas,
   the card, the pins and the overlay; the page chrome around it (controls, genre panel, list, notes) follows the theme. */
/* map.7.css replaces map.6.css (which stays byte-identical: versioned assets are immutable for a year). Only change: the open "About this map" box
   has more room around its text (summary 14px 20px, body 4px 20px 16px; was 14px 16px and 0 16px 8px).
   --- Live it UP - /map page, map.6.css. It replaces map.5.css (which stays on disk, untouched: versioned assets are immutable for a year):
   everything below is map.5.css unchanged except the two pin-dot margins. The dot is content-box, so its box is size + 2 * 2px border
   (20px, and 28px with a count), but the margins only offset by half the content size (-8px / -12px): the dot sat 2px right and 2px
   below the marker centre, off the venue coordinate and off the count label (which is centred). The margins are now minus half of the
   full box (-10px / -14px); the visible sizes are unchanged. */
/* Live it UP - /map page, map.5.css. It replaces map.4.css (which stays on disk, untouched: versioned assets are immutable for a year):
   everything above the genre section at the end is map.4.css unchanged, and that last section is new - the genre filter (button, panel,
   pills, filter line) and the genre chips on a show. Design: docs/design/2026-10-13-genre-filters/design-spec.md. No new colour: every
   value is an existing token or an existing literal. */
/* Live it UP - /map page (map.3.css replaces map.2.css, which stays untouched, as map.2.css did map.1.css: versioned assets are immutable for a
   year, so a changed stylesheet ships under a new name). Tokens, header and footer come from /styles.css; this file only adds the
   page's own parts. Colours are the brand tokens (docs/brandbook.md section 4): text is
   --text-primary or --text-secondary, never --text-tertiary. Weights stay at 600 and below. */

.map-body main { flex: 1 0 auto; }

.map-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 12px;
}

.map-titlebox { min-width: 0; flex: 1 1 320px; }

.map-below { padding-top: 24px; }

.map-top h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.map-sub {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 680px;
  margin-bottom: 12px;
}

.map-scope {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.map-app-line {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
}

.map-app-line a,
.map-about a,
.map-attribution a,
.map-noscript a {
  color: var(--accent-light);
}

/* ---- controls ------------------------------------------------------------------------------ */

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

/* Equal-width columns; one sliding indicator (::after) sits under the active button. map.2.js sets --seg-i (index of
   the pressed button) and --seg-n (button count) on the group and then data-seg-ready, one frame later, so the first
   placement does not animate. */
.map-seg {
  --seg-i: 0;
  --seg-n: 1;
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface-elevated);
}

.map-seg-btn {
  min-height: 44px;
  min-width: 64px;
  padding: 0 16px;
  background: transparent;
  color: var(--text-secondary);
  border: 0;
  border-right: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap; /* equal grid columns are narrow on phones: never break "3 days" onto two lines */
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.map-seg-btn:last-child { border-right: 0; }
.map-seg-btn:hover:not(:disabled) { color: var(--text-primary); }

.map-seg-btn[aria-pressed='true'] {
  background: var(--web-mapSelBg);
  color: var(--accent-light);
}

.map-seg::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% / var(--seg-n));
  height: 2px;
  background: var(--accent);
  transform: translateX(calc(var(--seg-i) * 100%));
  opacity: 0;
  pointer-events: none;
}

.map-seg[data-seg-ready]::after {
  opacity: 1;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.map-seg-btn:disabled { opacity: 0.45; cursor: default; }
.map-seg-btn:focus-visible { outline-offset: -2px; border-radius: 0; }

/* ---- stage: the map, its states and the card ------------------------------------------------ */

.map-frame {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface-elevated);
}

.map-canvas {
  width: 100%;
  /* The map starts about 170px down at 1280x900 and ends inside the first screen, so the card,
     which sits inside the map, can never be cut off by the bottom of the window. */
  height: clamp(360px, calc(100vh - 190px), 760px);
  height: clamp(360px, calc(100svh - 190px), 760px);
}

.map-frame.view-list .map-canvas,
.map-frame.view-list .map-card { display: none; }

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: var(--web-mapScrim);
  color: var(--text-primary);
  font-size: 16px;
}

.map-overlay[hidden] { display: none; }

.map-frame.view-list .map-overlay {
  position: static;
  min-height: 140px;
  background: transparent;
}

.map-overlay.is-error p { color: var(--accent-error); }

/* Same-width brand button language as the home page, but never the green primary button: the launch
   form is the only primary action on the site. */
.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.map-btn:hover { background: var(--web-ghostHoverBg); border-color: var(--web-ghostHoverBorder2); }

.map-card {
  position: absolute;
  z-index: 4;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 420px;
  max-height: calc(100% - 24px);
  overflow-y: auto;
  padding: 16px 16px 16px;
  background: var(--background-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow: 0 16px 36px var(--web-shadowPop);
  opacity: 1;
  transform: none;
  transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1), transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* The card grows in from below when [hidden] is removed; closing is instant (display: none). Browsers without
   @starting-style show it instantly. */
@starting-style {
  .map-card { opacity: 0; transform: translateY(12px); }
}

.map-card[hidden] { display: none; }
.map-card:focus { outline: none; }
.map-card:focus-visible { outline: 2px solid var(--border-focused); outline-offset: 2px; }
/* Opened by a finger or a mouse: no ring (map.2.js, openedByPointer). Keyboard opens keep it. */
.map-card.via-pointer:focus-visible,
.map-pin.via-pointer:focus-visible { outline: none; }

.map-card-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.map-card-close:hover { color: var(--text-primary); }

.map-show { padding: 4px 36px 12px 0; }
.map-show + .map-show { border-top: 1px solid var(--border-color); padding-top: 14px; }
.map-show h3 { font-size: 18px; line-height: 1.3; font-weight: 600; margin-bottom: 4px; }
.map-show-title { color: var(--text-secondary); font-size: 14px; margin-bottom: 4px; }
.map-show-where { color: var(--text-secondary); font-size: 14px; }
.map-show-when { color: var(--text-primary); font-size: 14px; font-weight: 500; margin: 2px 0 12px; }
.map-card-more { color: var(--text-secondary); font-size: 13px; padding-top: 8px; border-top: 1px solid var(--border-color); }

.map-attribution {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

body.no-map .map-attribution { display: none; }

/* ---- pins and clusters (DOM buttons on the canvas) ------------------------------------------- */

/* No `position` here: MapLibre's own `.maplibregl-marker` rule makes the element absolute, and a `position: relative`
   of ours (same specificity, later in the cascade) put every marker back into the normal flow (fixed on master in
   1d3a42c for map.1.css). */
.map-pin,
.map-cluster {
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

/* The pin is a 44px target around a 16px dot. */
.map-pin {
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 50%;
}

.map-pin::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--background-primary);
  box-shadow: 0 0 0 2px var(--web-mapRing), 0 0 14px var(--accent-glow);
  /* The visual scale lives on the dot, never on the marker element: MapLibre writes transform on that. */
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.map-pin.is-selected::before { transform: scale(1.25); }

.map-pin.has-count::before {
  width: 24px;
  height: 24px;
  margin: -14px 0 0 -14px;
}

.map-pin.has-count::after {
  content: attr(data-count);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-inverse);
  font-size: 12px;
  line-height: 1;
}

.map-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inverse);
  border: 3px solid var(--web-headerScrim);
  box-shadow: 0 0 0 3px var(--web-mapRing2), 0 0 18px var(--accent-glow);
}

.map-cluster-sm { width: 44px; height: 44px; font-size: 14px; }
.map-cluster-md { width: 52px; height: 52px; font-size: 15px; }
.map-cluster-lg { width: 62px; height: 62px; font-size: 16px; }

.map-pin:hover::before { background: var(--accent-light); }
.map-cluster:hover { background: var(--accent-light); }

.map-pin:focus-visible,
.map-cluster:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; border-radius: 50%; }

/* ---- notes, list view, noscript, about ---------------------------------------------------- */

.map-notes { padding-top: 12px; }

.map-note {
  margin-bottom: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 14px;
}

.map-note[hidden] { display: none; }
.map-note-warn { border-color: var(--web-mapNoteBorder); color: var(--text-primary); }

/* Since map.4: the line that says why the map opened where it did, with the button that puts the whole world back. */
.map-geo-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--text-primary); }
.map-geo-note[hidden] { display: none; }
.map-geo-note .map-btn { min-height: 44px; flex: none; }

.map-list-view { padding-top: 8px; padding-bottom: 8px; }
.map-list-view[hidden] { display: none; }
.map-list-view h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.map-list-count { color: var(--text-secondary); font-size: 14px; margin-bottom: 12px; }
.map-list { list-style: none; display: grid; gap: 8px; margin-bottom: 16px; }

.map-list-item a {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.map-list-item a:hover { border-color: var(--web-mapItemHover); background: var(--web-partnerBg); }
.map-list-name { font-size: 16px; font-weight: 600; }
.map-list-where { color: var(--text-secondary); font-size: 14px; }
.map-list-when { color: var(--text-primary); font-size: 14px; font-weight: 500; }
.map-list-cta { color: var(--accent-light); font-size: 14px; font-weight: 600; margin-top: 4px; }

.map-noscript {
  margin: 16px 0;
  padding: 20px;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  background: var(--bg-surface);
}

.map-noscript h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.map-noscript p { color: var(--text-secondary); font-size: 15px; }

.map-about { margin: 24px 0 40px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-surface); }
.map-about summary { cursor: pointer; padding: 14px 20px; min-height: 44px; font-size: 15px; font-weight: 600; }
.map-about-body { padding: 4px 20px 16px; color: var(--text-secondary); font-size: 14px; }
.map-about-body p { margin-bottom: 12px; }

/* MapLibre's own control buttons stay light on the dark map; only give them the 44px target. */
.maplibregl-ctrl-group button { width: 44px; height: 44px; }

@media (max-width: 560px) {
  /* Compact phone header: one row, the wordmark and the one action. */
  .map-body .glass-header { padding: 8px 0; }
  .map-body .header-inner { flex-wrap: nowrap; gap: 8px; }
  .map-body .nav-links { flex-wrap: nowrap; gap: 8px; }
  .map-body .nav-links a:not(.nav-contact-btn) { display: none; }
  .map-body .nav-contact-btn { padding: 6px 10px; font-size: 13px; }
  .map-body .brand-wordmark { font-size: 19px; gap: 6px; }

  .map-top { padding-top: 10px; padding-bottom: 8px; gap: 6px; }
  .map-top h1 { font-size: 22px; }
  .map-scope { font-size: 13px; }
  /* Both segmented controls on one row, still 44px high. */
  .map-controls { flex-wrap: nowrap; width: 100%; gap: 8px; }
  .map-seg-btn { min-width: 0; padding: 0 6px; font-size: 13px; }
  .map-seg:first-child { flex: 3 1 0; }
  .map-seg:last-child { flex: 2 1 0; }
  .map-canvas { height: clamp(320px, calc(100vh - 215px), 640px); height: clamp(320px, calc(100svh - 215px), 640px); }
  .map-card { left: 8px; right: 8px; bottom: 8px; max-width: none; max-height: 62%; }
}

/* ================================================================================================================================
   Genre filter (since map.5). The control is one more button in .map-controls; the panel is a popover on wide screens and a bottom
   sheet at 560px and below; a show carries up to two static chips.
   ================================================================================================================================ */

/* ---- the control: one more button in .map-controls -------------------------------------------- */
.map-genre-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.map-genre-btn:hover { color: var(--text-primary); }
.map-genre-btn svg { width: 16px; height: 16px; flex: none; }
.map-genre-btn[aria-expanded='true'] { color: var(--text-primary); border-color: var(--web-ghostHoverBorder2); }
/* Active = at least one genre picked. Same tint as a pressed segment. */
.map-genre-btn.is-active {
  background: var(--web-mapSelBg);
  border-color: var(--web-mapRing);
  color: var(--accent-light);
}
.map-genre-btn:focus-visible { border-radius: 12px; }
.map-genre-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
.map-genre-badge[hidden] { display: none; }

/* ---- the active-filter line under the scope line ----------------------------------------------- */
.map-filter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.map-filter-line[hidden] { display: none; }
.map-filter-line b { color: var(--text-primary); font-weight: 500; }
.map-filter-line .short { display: none; }
.map-linkbtn {
  min-height: 44px;           /* 44px target, 20px of visible text */
  margin: -12px 0;            /* ...without making the line 44px tall */
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.map-linkbtn:hover { text-decoration: underline; }

/* ---- the panel: popover on wide screens, bottom sheet at 560px and below ------------------------ */
.map-top { position: relative; }
.map-genre-panel {
  position: absolute;
  z-index: 10;
  top: calc(100% - 4px);
  right: 24px;                /* the .container gutter */
  width: 440px;
  max-height: min(560px, calc(100svh - 200px));
  display: flex;
  flex-direction: column;
  background: var(--background-card);        /* the card's surface */
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow: 0 16px 36px var(--web-shadowPop);
}
.map-genre-panel[hidden] { display: none; }
.map-genre-head { padding: 16px 16px 8px; }
.map-genre-head h2 { font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.map-genre-head p { color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.map-genre-body { flex: 1 1 auto; min-height: 0; padding: 4px 16px 12px; overflow-y: auto; }
.map-genre-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.map-genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.map-genre-pill:hover:not(:disabled) { border-color: var(--web-ghostHoverBorder2); }
.map-genre-pill .n { color: var(--text-secondary); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.map-genre-pill .tick { display: none; width: 14px; height: 14px; flex: none; }
.map-genre-pill[aria-pressed='true'] {
  background: var(--web-mapSelBg);
  border-color: var(--accent);
  color: var(--accent-light);
  font-weight: 600;
}
.map-genre-pill[aria-pressed='true'] .tick { display: block; }
.map-genre-pill[aria-pressed='true'] .n { color: var(--accent-light); }
.map-genre-pill:disabled { opacity: 0.45; cursor: default; }
/* The global :focus-visible ring (styles.css) has radius 4; a pill keeps its own shape. Keyboard only, as everywhere. */
.map-genre-pill:focus-visible { border-radius: 999px; }
.map-genre-panel:focus,
.map-genre-panel:focus-visible { outline: none; }
/* A tap or a click puts focus back by script; Chrome may draw the ring on it. map.7.js marks such an element `via-pointer` (the rule the
   card and the pins already follow); any key press hands the ring back. */
.map-genre-btn.via-pointer:focus-visible,
.map-genre-pill.via-pointer:focus-visible,
.map-linkbtn.via-pointer:focus-visible { outline: none; }
.map-genre-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
}
.map-genre-foot .map-genre-count { color: var(--text-secondary); font-size: 13px; }
.map-genre-foot .map-genre-count b { color: var(--text-primary); font-weight: 600; }
.map-genre-actions { display: flex; gap: 8px; }
.map-genre-foot .map-btn { min-height: 44px; padding: 0 16px; }
.map-genre-foot .map-btn:disabled { opacity: 0.45; cursor: default; }
.map-genre-scrim { display: none; }

/* The "Clear genre filter" button in the empty-view note. */
.map-empty-btn { margin-top: 8px; display: flex; width: fit-content; }

/* ---- genre chips on a show (map card and list) ------------------------------------------------- */
.map-genres { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 8px; }
.map-show .map-genres { margin: 2px 0 6px; }
.map-genre-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.map-genre-chip.is-match {
  border-color: var(--web-mapRing);
  background: var(--web-badgeBg);
  color: var(--accent-light);
}
.map-genre-chip.more { background: transparent; }
.map-list-item .map-genres { margin: 4px 0 2px; }

/* ---- narrow screens ----------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .map-seg:first-child { flex: 3 1 0; }
  .map-seg:nth-child(2) { flex: 2 1 0; }
  .map-genre-btn { flex: none; padding: 0 12px; font-size: 13px; gap: 6px; }
  /* The long sentence moves into the panel; the phone line keeps the picks and the count. */
  .map-filter-line { font-size: 13px; }
  .map-filter-line .long { display: none; }
  .map-filter-line .short { display: inline; }

  .map-genre-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--web-mapScrim);   /* the map overlay's own scrim */
  }
  .map-genre-scrim[hidden] { display: none; }
  .map-genre-panel {
    position: fixed;
    z-index: 51;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-height: 85vh;
    max-height: 85svh;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .map-genre-panel::before {          /* grab handle, decorative */
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: var(--border-default);
  }
  .map-genre-foot { flex-wrap: nowrap; }
  .map-genre-foot .map-btn { flex: 1 1 0; }
  .map-genre-actions { flex: 1 1 auto; }
}

/* Very narrow phones: the button keeps its 44px but shows the icon and the badge only; its accessible name is unchanged. */
@media (max-width: 360px) {
  .map-genre-btn .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .map-genre-btn { min-width: 44px; padding: 0 10px; }
}

/* 320px header: wordmark + "Android waitlist" + the 36px Theme button need one row, so the button label tightens (it wrapped to two lines). */
@media (max-width: 359px) {
  .map-body .brand-wordmark { font-size: 17px; }
  .map-body .nav-contact-btn { padding: 6px 7px; font-size: 12px; white-space: nowrap; }
}

/* ================================================================================================================================
   map.11.css delta (DK 2026-11-08, variant C "Split"): everything above is map.8.css verbatim; everything below is new or overrides it.
   Colours are tokens only (web-theme-tokens.test.ts). The two custom properties --c-fill and --c-ring are declared on .map-split,
   because the list rows sit outside .map-frame.
   ================================================================================================================================ */

.map-split {
  --c-fill: var(--background-card);
  --c-ring: var(--accent-light);            /* light #375D75, dark #34D399 */
}

/* This page only: the header and the content are 1280 wide, the site's other pages stay at 1080. */
.map-body .container { max-width: 1280px; }
.map-about-body p { max-width: 72ch; }

/* ---- the split: the list left, the map right (921px and up); stacked below ------------------------------------------------- */
.map-split { display: flex; flex-direction: column; padding-top: 0; }
.map-split .map-top { order: 1; position: relative; padding-left: 0; padding-right: 0; }
.map-split .map-frame { order: 2; }
.map-split .map-notes { order: 3; padding-top: 12px; }
.map-split .map-list-view { order: 4; padding-left: 0; padding-right: 0; }
.map-split .map-genre-panel { right: 0; }
.map-split .map-list-view[hidden] { display: none; }
.map-split .map-notes[hidden] { display: none; }

@media (min-width: 921px) {
  .map-seg[aria-label='View'] { display: none; }
  .map-split {
    display: grid;
    grid-template-columns: 408px minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    column-gap: 20px;
    height: max(560px, calc(100svh - 96px));
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .map-split .map-top { grid-column: 1; grid-row: 1; order: 0; display: block; padding: 0; }
  .map-split .map-top h1 { margin-bottom: 2px; }
  .map-split .map-controls { margin-top: 12px; flex-wrap: wrap; align-items: center; }
  .map-split .map-notes { grid-column: 1; grid-row: 2; order: 0; padding-top: 0; }
  .map-split .map-list-view { grid-column: 1; grid-row: 3; order: 0; display: flex; flex-direction: column; min-height: 0; padding: 0; }
  .map-split .map-list-view[hidden] { display: none; }
  .map-split .map-list-view h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .map-split .map-list-count { margin: 10px 0 8px; }
  /* The list clips what overflows it, so its padding holds the focus ring of a row (2px ring + 2px offset): 4px and more on every side. */
  .map-split .map-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; padding: 4px 6px 6px 4px; margin: 0 -6px 0 -4px; }
  .map-split .map-frame { grid-column: 2; grid-row: 1 / -1; order: 0; height: 100%; }
  .map-split .map-canvas { height: 100%; }
  .map-split .map-genre-panel { left: 0; right: auto; width: 408px; }
  body.no-map .map-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; height: auto; }
  body.no-map .map-split .map-frame { grid-column: 1; grid-row: 4; height: auto; }
}

/* No map (no WebGL, tiles failed): the page is the list alone, so the empty frame is dropped unless it is showing a message. */
body.no-map .map-frame:not(:has(.map-overlay:not([hidden]))):not(:has(.map-chip:not([hidden]))) { display: none; }

/* ---- day chips: the strip's single-day range, one tap each (they replace the Today / 3 days segment while the counts are in) --------- */
/* The chips wrap onto as many lines as they need at every width: a row that scrolls sideways clipped its last chip ("Mon") on the phone with no hint. */
.map-day-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1 1 100%; }
.map-day-chips[hidden] { display: none; }
.map-day-chip {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.map-day-chip .n { margin-left: 6px; font-weight: 500; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.map-day-chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--text-inverse); }
.map-day-chip[aria-pressed='true'] .n { color: var(--text-inverse); }
.map-day-chip:hover:not([aria-pressed='true']):not(:disabled) { border-color: var(--web-ghostHoverBorder2); }
.map-day-chip:disabled { opacity: 0.45; cursor: default; }
body.chips-on .map-seg[aria-label='Time range'] { display: none; }
@media (max-width: 560px) {
  /* map.8.css keeps the controls on one nowrap row at this width; the chips are a row of their own (they scroll sideways). */
  .map-split .map-controls { flex-wrap: wrap; }
  .map-split .map-day-chips { order: 5; }
}
@media (min-width: 921px) {
  /* On the split the chips are a row of their own that WRAPS: every day is on screen, none is reached by scrolling sideways. */
  .map-split .map-day-chips { flex: 1 1 100%; flex-wrap: wrap; overflow: visible; }
}

/* ---- list rows: each one is a link to the show page ---------------------------------------------------------------------------- */
.map-row-item { list-style: none; }
.map-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  text-decoration: none;
}
.map-row:hover { border-color: var(--web-mapItemHover); background: var(--web-partnerBg); }
.map-row.is-selected { border: 2px solid var(--accent); padding: 11px; background: var(--web-mapSelBg); }
/* The card never takes more than 62% of the frame at any width (map.8.css said 62% only at 560px and below, and the frame minus 24px above it): a tall
   card (3 shows) scrolls inside itself, and the selected pin that liftPinAboveCard puts above it is never behind it. */
.map-card { max-height: 62%; }
/* styles.css gives every a:focus-visible a 4px radius, which would square a focused row's corners. */
.map-row:focus-visible { border-radius: 14px; }

/* "Skip to the map": the list is first in the tab order, so a keyboard reader can jump over its rows. Hidden until it has focus. */
.map-skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.map-skip:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin-bottom: 8px; color: var(--accent-light); font-size: 14px; font-weight: 600; }
body.no-map .map-skip { display: none; }
/* Stacked page (920px and below): the List view replaces the map there, so a link to the map would do nothing. */
@media (max-width: 920px) { .map-skip, .map-skip:focus { display: none; } }
.map-row-tile { display: grid; align-content: center; justify-items: center; width: 48px; height: 56px; border-radius: 12px; background: var(--web-badgeBg); color: var(--accent-light); line-height: 1.1; }
.map-row-tile .dow { font-size: 12px; font-weight: 600; }
.map-row-tile .day { font-size: 20px; font-weight: 700; }
.map-row-main { min-width: 0; display: grid; gap: 2px; }
.map-row-name { font-size: 16px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-row-where { font-size: 14px; color: var(--text-secondary); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-row-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.map-row-meta .map-genres { display: contents; margin: 0; }
.map-row-seller { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--badge-ticket); color: var(--badge-ticketText); font-size: 12px; font-weight: 600; white-space: nowrap; }
.map-row-seller svg { width: 12px; height: 12px; flex: none; }
/* on the tinted selected row the chip text takes the lighter accent: --badge-ticketText is 3.74:1 there on dark */
.map-row.is-selected .map-row-seller { color: var(--accent-light); }
.map-row-go { width: 20px; height: 20px; color: var(--text-secondary); }
.map-list:focus { outline: none; }
.map-list:focus-visible { outline: 2px solid var(--border-focused); outline-offset: 2px; }

/* ---- pins: quiet dots; only the selected pin carries a plate ------------------------------------------------------------------- */
.map-pin { width: 44px; height: 44px; background: transparent; }
.map-pin::before {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  box-sizing: border-box;
  background: var(--accent);
  border: 2.5px solid var(--c-fill);
  box-shadow: 0 0 0 1.5px var(--c-ring), 0 1px 5px var(--shadow-lift);
}
.map-pin.has-count::before { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.map-pin:hover::before, .map-pin.is-hover::before { background: var(--accent); transform: scale(1.25); }
.map-pin.has-count:hover::after, .map-pin.has-count.is-hover::after { transform: translate(-50%, -50%) scale(1.25); }
.map-pin.is-selected { z-index: 3; }
/* The selected dot is the ink dot: the only inverted fill on the map, never a date or a label. */
.map-pin.is-selected::before,
.map-pin.has-count.is-selected::before {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: var(--text-primary);
  border: 3px solid var(--c-fill);
  box-shadow: 0 0 0 1.5px var(--text-primary), 0 2px 6px var(--shadow-lift);
  transform: none;
}
.map-pin.has-count.is-selected::after { display: none; }
.map-cluster { background: var(--accent); color: var(--text-inverse); border: 3px solid var(--c-fill); box-shadow: 0 2px 8px var(--shadow-lift); }
.map-cluster:hover { background: var(--accent-light); }

/* The plate of the selected pin: ONE markup (an artist span and a date span), the look is pure CSS. The default is the dark look, one
   plate with the date on a second line; the light look (two segments, the date on a tonal segment) is declared below with the site's own
   pair of selectors, so a theme flip re-styles an already selected pin with no script. */
.map-pin .p-plate {
  position: absolute;
  left: 50%;
  bottom: calc(50% + 17px);
  transform: translateX(-50%);
  --plate-dx: 0px;                 /* placePlate() writes both inline when the plate would leave the frame */
  --plate-tail: calc(50% - 4px);
  margin-left: var(--plate-dx);
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px 5px;
  background: var(--c-fill);
  color: var(--text-primary);
  border: 1px solid var(--border-input);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow-lift);
  pointer-events: none;
  white-space: nowrap;
  text-align: left;
}
.map-pin .p-plate::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: var(--plate-tail);
  width: 8px;
  height: 8px;
  background: var(--c-fill);
  border-right: 1px solid var(--border-input);
  border-bottom: 1px solid var(--border-input);
  transform: rotate(45deg);
}
.map-pin .p-plate .seg { display: flex; align-items: center; padding: 0; }
.map-pin .p-name { font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--text-primary); max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.map-pin .p-date { font-size: 11px; font-weight: 500; line-height: 1.25; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
/* No room above the dot (the frame clips): the plate goes below it, the tail on top. Set by placePlate(). */
.map-pin .p-plate[data-below] { bottom: auto; top: calc(50% + 17px); }
.map-pin .p-plate[data-below]::after { bottom: auto; top: -5px; border: 0; border-left: 1px solid var(--border-input); border-top: 1px solid var(--border-input); }

/* The LIGHT pin plate, written twice as styles.css writes every token: once for the OS preference (when the reader has not picked a
   theme) and once for an explicit pick. The two lists are identical (a test compares them). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .map-pin .p-plate {
    --plate-tail: 18px;
    flex-direction: row;
    gap: 0;
    padding: 0;
    height: 28px;
    left: calc(50% - 22px);
    transform: none;
  }
  :root:not([data-theme="dark"]) .map-pin .p-plate .seg.a {
    padding: 0 10px;
    border-radius: 9px 0 0 9px;
    background: var(--c-fill);
  }
  :root:not([data-theme="dark"]) .map-pin .p-plate .seg.a:only-child {
    border-radius: 9px;
  }
  :root:not([data-theme="dark"]) .map-pin .p-plate .seg.b {
    padding: 0 9px;
    border-radius: 0 9px 9px 0;
    background: var(--badge-past);
    border-left: 1px solid var(--border-default);
  }
}
:root[data-theme="light"] .map-pin .p-plate {
  --plate-tail: 18px;
  flex-direction: row;
  gap: 0;
  padding: 0;
  height: 28px;
  left: calc(50% - 22px);
  transform: none;
}
:root[data-theme="light"] .map-pin .p-plate .seg.a {
  padding: 0 10px;
  border-radius: 9px 0 0 9px;
  background: var(--c-fill);
}
:root[data-theme="light"] .map-pin .p-plate .seg.a:only-child {
  border-radius: 9px;
}
:root[data-theme="light"] .map-pin .p-plate .seg.b {
  padding: 0 9px;
  border-radius: 0 9px 9px 0;
  background: var(--badge-past);
  border-left: 1px solid var(--border-default);
}


@media (prefers-reduced-motion: reduce) {
  .map-pin::before, .map-pin::after { transition: none; }
}
