/* ACP v2 Partner Map. Everything is scoped under `.acp-usmap` so the map can
   render inside an iframe on another site; only `body.acp-map-body` (the map
   layout) sits outside it. Navy/teal palette, Poppins + Mulish. */
.acp-usmap, body.acp-map-body {
  --navy: #102a3f;
  --navy-2: #1c3a52;
  --teal: #2fa395;
  --teal-dk: #1f7d72;
  --steel: #336a8c;
  --paper: #f3f2f0;
  --paper-2: #ffffff;
  --ink: #243441;
  --muted: #5d6e7a;
  --line: #e2e0db;
  --land: #dfe6ea;
  --land-stroke: #bcccd6;
  --pane-w: min(430px, 42vw);
  --sheet-w: 360px;
  --display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Mulish', 'Segoe UI', system-ui, sans-serif;
}

/* Dynamic viewport height (`dvh`) so a collapsing iOS URL bar does not leave a
   dead strip; `min-height` rather than `height`, with the page free to scroll,
   so a short screen or 200% browser zoom SCROLLS instead of crushing the map
   to nothing. */
body.acp-map-body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- Stage ---------- */
.acp-usmap { flex: 1; display: flex; min-height: 0; position: relative; box-sizing: border-box; }
.acp-usmap *, .acp-usmap *::before, .acp-usmap *::after { box-sizing: border-box; }
.acp-usmap [hidden] { display: none !important; }
.acp-usmap .map-wrap {
  flex: 1; min-width: 0; position: relative;
  display: flex; flex-direction: column;
  background: radial-gradient(1200px 700px at 50% 0%, #f8f7f5 0%, var(--paper) 55%);
}
.acp-usmap .map-head { flex: none; z-index: 10; padding: 20px 30px 2px; }
.acp-usmap .eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 11.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--teal-dk); margin: 0 0 6px;
}
.acp-usmap .map-head h1 {
  font-family: var(--display); font-weight: 700; color: var(--navy);
  font-size: 30px; line-height: 1.05; margin: 0 0 8px;
}
.acp-usmap .map-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 620px; line-height: 1.5; }

/* The discovery band. Normal flow, above the map, never an overlay — so the
   Atlas entry card cannot cover Alaska, Hawaii or any marker. It collapses to
   nothing while empty and the map takes the space back. */
/* Empty while browsing (zero height, so the map gets it); padded only once
   the Atlas head renders into it. */
.acp-usmap .usmap-discovery { flex: none; padding: 0 30px; }
.acp-usmap.is-atlas .usmap-discovery { padding: 10px 30px 4px; }

/* The map fits whatever height is left. `min-height` keeps it a map rather
   than a sliver when the page is short; the component scrolls instead. */
/* `pan-y` at the national view, so a one-finger swipe scrolls the page (the
   map has nothing to pan) while a two-finger pinch still reaches our own
   handler. Only once zoomed in does the map take every touch action. */
.acp-usmap .map-stage {
  flex: none; position: relative;
  /* Exactly what is left of the viewport under the chrome above the stage and
     above the transport (both measured by the controller into
     --usmap-chrome-h). The SVG letterboxes inside; the page never scrolls to
     reach the map or the transport. */
  height: max(260px, calc(100vh - var(--usmap-chrome-h, 0px)));
  height: max(260px, calc(100dvh - var(--usmap-chrome-h, 0px)));
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y;
}
.acp-usmap.is-zoomed .map-stage { cursor: grab; touch-action: none; }
.acp-usmap .map-stage.is-grabbing { cursor: grabbing; }

.acp-usmap svg.usmap { width: 100%; height: 100%; display: block; }
.acp-usmap .state { fill: var(--land); stroke: var(--land-stroke); stroke-width: .6; transition: fill .18s; }
.acp-usmap .state-border { fill: none; stroke: var(--paper); stroke-width: 1.1; pointer-events: none; }

/* State shading buckets: 0 / 1-2 / 3-5 / 6-10 / 11+. Bucket 0 is simply the
   base land colour — an unshaded state is still listed and still reachable. */
.acp-usmap .state.c1 { fill: #cfe6e2; }
.acp-usmap .state.c2 { fill: #a5d3cc; }
.acp-usmap .state.c3 { fill: #6dbcb1; }
.acp-usmap .state.c4 { fill: #2fa395; }
.acp-usmap .state.active { fill: var(--teal-dk); }
.acp-usmap.mode-states .state { cursor: pointer; }

/* ---------- Markers ---------- */
/* One dot per conversation. A quiet dot sits at two thirds strength: lighter
   than a count, but present enough that a state full of single conversations
   reads as full rather than empty (38% left the map looking bare on real
   data, where almost nothing is lit). A dot with stories (highlights or a
   medley) is solid with a white keyline. */
.acp-usmap .marker { cursor: pointer; }
.acp-usmap .marker.off { display: none; }
.acp-usmap .marker.out { opacity: .22; pointer-events: none; }
/* The national States view is about states: dots recede and a click on one
   reaches the state beneath. Selecting a state or zooming in brings them back. */
.acp-usmap.mode-states:not(.has-state):not(.is-zoomed) .marker { opacity: .3; pointer-events: none; }
/* Focus modes fade the rest: other dots at 55% around a selected conversation;
   other partners at 22% around a focused partner, still clickable so a
   neighbour can be reached without closing first. */
.acp-usmap .marker.dim { opacity: .55; }
.acp-usmap .marker.far { opacity: .22; }
/* Decoration only: with neighbours allowed to overlap, a halo must never take a click meant for the dot beneath it. */
.acp-usmap .marker .halo { opacity: 0; transition: opacity .2s; pointer-events: none; }
.acp-usmap .marker:hover .halo, .acp-usmap .marker:focus-visible .halo { opacity: .22; }
.acp-usmap .marker .dot { fill-opacity: .66; stroke: none; stroke-width: 1.3; }
.acp-usmap .marker.lit .dot { fill-opacity: 1; stroke: #fff; stroke-width: 1.4; }
.acp-usmap .marker.selected .dot { stroke: var(--navy); stroke-width: 2.2; }
.acp-usmap .marker:focus { outline: none; }
.acp-usmap .marker:focus-visible .dot { stroke: var(--navy); stroke-width: 2.2; }

/* The fold: zoomed out, a partner's conversations in one town are one
   numbered dot. The lead carries the count; the rest are hidden, not removed,
   so a zoom animation has both ends of every dot's path. */
.acp-usmap .marker.fold { display: none; }
/* A numbered dot speaks for a whole town, so it takes near-full colour whether
   or not any of its conversations has stories: on real data most towns are
   quiet, and a map of half-strength counts read as washed out. */
.acp-usmap .marker.fold-lead .dot { fill-opacity: .85; stroke: #fff; stroke-width: 1.6; }
.acp-usmap .marker.fold-lead.lit .dot { fill-opacity: 1; }
.acp-usmap .marker .num {
  font-family: var(--display); font-weight: 700; fill: #fff;
  text-anchor: middle; dominant-baseline: central; pointer-events: none;
}

/* The focused partner: a hub dot with a white edge, named above, and curves
   to its conversations (dashed) or from the selected conversation (solid).
   Curves are map-space paths, so the stroke must not scale with the zoom. */
.acp-usmap .hub { cursor: pointer; }
.acp-usmap .hub .dot { stroke: #fff; stroke-width: 2; }
.acp-usmap .hub:focus { outline: none; }
.acp-usmap .hub:focus-visible .dot { stroke: var(--navy); }
.acp-usmap .hub .hub-name {
  font-family: var(--display); font-weight: 700; font-size: 11.5px; text-anchor: middle;
  fill: var(--navy); stroke: #fff; stroke-width: 3px; paint-order: stroke; stroke-linejoin: round;
}
.acp-usmap .curve-layer path { fill: none; pointer-events: none; vector-effect: non-scaling-stroke; }
.acp-usmap .curve-layer path.dashed { stroke: var(--navy); stroke-width: 1; stroke-dasharray: 3 4; opacity: .55; }
.acp-usmap .curve-layer path.solid { stroke: var(--navy); stroke-width: 1.8; }
.acp-usmap.is-atlas .curve-layer, .acp-usmap.is-atlas .hub-layer { display: none; }

/* Town names under their dots, drawn only once the view is close enough for
   them to fit; a white stroke keeps them legible over land and dots. */
.acp-usmap .place-label { pointer-events: none; }
.acp-usmap .place-label text {
  font-family: var(--body); font-weight: 600; font-size: 10.5px; letter-spacing: .02em;
  fill: #4a6072; stroke: #fff; stroke-width: 3px; paint-order: stroke; stroke-linejoin: round;
  text-anchor: middle; dominant-baseline: central;
}

/* State count pills */
.acp-usmap .state-label { cursor: pointer; }
.acp-usmap .state-label rect { fill: #fff; stroke: var(--line); stroke-width: 1; }
.acp-usmap .state-label text {
  fill: var(--navy); font-family: var(--display); font-weight: 600; font-size: 11px;
  text-anchor: middle; dominant-baseline: middle;
}
.acp-usmap .state-label:hover rect,
.acp-usmap .state-label:focus-visible rect { stroke: var(--teal-dk); stroke-width: 2; }

/* ---------- Toolbar: mode toggle, browse, filters ---------- */
.acp-usmap .usmap-toolbar {
  flex: none; z-index: 12; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 30px 8px;
}
.acp-usmap .usmap-modes {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: #fff; flex: none;
}
.acp-usmap .usmap-mode {
  min-height: 36px; padding: 0 16px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 12.5px; color: var(--muted);
  white-space: nowrap;
}
.acp-usmap .usmap-mode[aria-pressed="true"] { background: var(--navy); color: #fff; }
.acp-usmap .usmap-clear, .acp-usmap .usmap-near, .acp-usmap .usmap-back {
  min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer; font-family: var(--display); font-weight: 600;
  font-size: 12.5px; color: var(--navy); white-space: nowrap; flex: none;
}
.acp-usmap .usmap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* Filters: inline toolbar content on desktop, a sheet on phones. */
.acp-usmap .usmap-filters-toggle {
  display: none; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 12.5px; color: var(--navy); white-space: nowrap; flex: none;
}
.acp-usmap .usmap-filters-toggle svg { width: 14px; height: 14px; }
.acp-usmap .usmap-filters-toggle.is-active { border-color: var(--teal); color: var(--teal-dk); }
.acp-usmap .usmap-filters-toggle.is-active::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.acp-usmap.panels-sheet .usmap-filters-toggle, .acp-usmap.panels-side .usmap-filters-toggle { display: inline-flex; }
/* NOT `display: contents` — a `display: contents` element and its descendants
   report a zero getBoundingClientRect() (verified against this test's own
   headless Chrome), which is indistinguishable from "not on the toolbar row"
   for any layout assertion. A real (if invisible) flex box keeps the wrapper
   measurable while still reading as toolbar content. */
.acp-usmap .usmap-filters.usmap-wide {
  display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0;
}
.acp-usmap .usmap-filters.usmap-wide .usmap-handle, .acp-usmap .usmap-filters.usmap-wide .usmap-filters-head { display: none; }
.acp-usmap .usmap-filters.usmap-sheet, .acp-usmap .usmap-filters.usmap-side { gap: 10px; padding: 0 18px 18px; }
.acp-usmap .usmap-filters.usmap-sheet .usmap-chips, .acp-usmap .usmap-filters.usmap-side .usmap-chips { flex-wrap: wrap; }
.acp-usmap .usmap-filters .usmap-filters-head { margin: 0 -18px 4px; }
.acp-usmap .usmap-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--navy);
  white-space: nowrap; flex: none;
}
.acp-usmap .usmap-chip.dim { opacity: .45; background: var(--paper); }
.acp-usmap .usmap-chip--toggle[aria-pressed="true"] { background: var(--teal-dk); color: #fff; border-color: var(--teal-dk); }
.acp-usmap .usmap-swatch-dot { width: 9px; height: 9px; border-radius: 50%; }
.acp-usmap .usmap-chip-count { color: var(--muted); font-weight: 700; font-size: 11px; }
.acp-usmap .usmap-chip.dim .usmap-chip-count { color: inherit; }
.acp-usmap .usmap-zero { flex: none; margin: 0; padding: 0 30px 8px; color: var(--muted); font-size: 13.5px; }
.acp-usmap .usmap-linkish {
  border: 0; background: none; padding: 0; color: var(--teal-dk); font: inherit;
  text-decoration: underline; cursor: pointer;
}

/* ---------- Zoom controls (44px targets) ---------- */
.acp-usmap .usmap-controls {
  position: absolute; right: 16px; top: 16px; z-index: 20;
  display: flex; flex-direction: column; gap: 6px;
}
.acp-usmap .usmap-zoom {
  min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--navy); cursor: pointer; font-family: var(--display);
  font-weight: 700; font-size: 18px; line-height: 1;
  box-shadow: 0 4px 14px rgba(16, 42, 63, .10);
}
.acp-usmap .usmap-zoom--home { font-size: 12px; }

/* ---------- Tooltip ---------- */
/* A bold title line, then muted detail lines: what it is, where and when,
   who hosted it. */
.acp-usmap .tip {
  position: absolute; pointer-events: none; z-index: 30; max-width: 270px;
  background: var(--navy); color: #fff; font-family: var(--display); font-weight: 500;
  font-size: 12px; line-height: 1.4; padding: 8px 11px; border-radius: 8px;
  transform: translate(-50%, calc(-100% - 16px)); opacity: 0; transition: opacity .12s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.acp-usmap .tip.below { transform: translate(-50%, 0); }
.acp-usmap .tip .tt { display: block; font-weight: 700; font-size: 13px; }
.acp-usmap .tip .tc { display: block; color: rgba(255, 255, 255, .72); }

/* ---------- Loading / hint ---------- */
.acp-usmap .loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: var(--display); font-weight: 500; gap: 12px; font-size: 14px;
  text-align: center; padding: 0 24px;
}
.acp-usmap .spinner {
  width: 20px; height: 20px; border: 3px solid var(--line); border-top-color: var(--teal);
  border-radius: 50%; animation: usmap-spin 1s linear infinite;
}
@keyframes usmap-spin { to { transform: rotate(360deg); } }
.acp-usmap .empty-hint {
  position: absolute; left: 20px; bottom: 18px; z-index: 10; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 15px; font-size: 12.5px; color: var(--muted);
  box-shadow: 0 6px 20px rgba(16, 42, 63, .07); display: none; align-items: center; gap: 9px;
  max-width: min(430px, calc(100% - 40px));
}
.acp-usmap .empty-hint.show { display: flex; }
.acp-usmap .empty-hint b { color: var(--navy); font-weight: 600; }

/* ---------- Server-rendered fallback ----------
   Visible until the map actually draws, and restored if drawing fails. With no
   JavaScript at all it simply stays — which is the whole point. */
.acp-usmap .usmap-fallback { flex: 0 1 auto; overflow-y: auto; padding: 8px 30px 28px; }
.acp-usmap .usmap-fallback h2 {
  font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 18px; margin: 8px 0 12px;
}
.acp-usmap .usmap-fallback h3 {
  font-family: var(--display); font-weight: 600; color: var(--teal-dk); font-size: 12.5px;
  letter-spacing: 1px; text-transform: uppercase; margin: 16px 0 6px;
}
.acp-usmap .usmap-fallback-count { color: var(--muted); font-weight: 700; }
.acp-usmap .usmap-fallback ul { list-style: none; margin: 0; padding: 0; }
.acp-usmap .usmap-fallback li { padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.acp-usmap .usmap-fallback-city { color: var(--muted); margin-left: 8px; }
.acp-usmap .usmap-fallback a { color: var(--teal-dk); margin-left: 8px; }

/* ---------- Panels: partner pane + state list ----------
   The panel SHAPE is set by a class the controller computes from the measured
   component size, not by a media query — an 800px-wide embed inside a wide
   page has to behave like the narrow thing it actually is. */
.acp-usmap .usmap-panel, .acp-usmap .pane { display: flex; flex-direction: column; }

/* Desktop: the pane takes width so the map shrinks and re-scales rather than
   being covered. */
.acp-usmap .pane.usmap-wide {
  flex: none; width: 0; overflow: hidden;
  background: var(--paper-2); border-left: 1px solid transparent;
  box-shadow: -14px 0 38px rgba(16, 42, 63, .10);
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.acp-usmap .pane.usmap-wide.open { width: var(--pane-w); border-left-color: var(--line); }
.acp-usmap .pane.usmap-wide .pane-scroll { width: var(--pane-w); }
.acp-usmap .pane.usmap-wide .usmap-handle { display: none; }

/* Phone: a dismissible bottom sheet, clear of the safe area. The detail pane
   is a fixed 46vh so the map above it is a known size the fits can use. */
.acp-usmap .pane.usmap-sheet, .acp-usmap .usmap-state-sheet.usmap-sheet, .acp-usmap .usmap-filters.usmap-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; width: 100%; z-index: 60;
  max-height: 78vh; max-height: 78dvh; background: var(--paper-2);
  border-radius: 18px 18px 0 0; box-shadow: 0 -14px 38px rgba(16, 42, 63, .20);
  transform: translateY(101%); transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.acp-usmap .pane.usmap-sheet { height: 46vh; height: 46dvh; }

/* While a sheet is up: the header is a back link and the title, and the
   medley card goes, so the map keeps the room above the sheet. */
.acp-usmap .usmap-head-back {
  display: none; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px 0 6px; margin-right: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--navy);
}
.acp-usmap .usmap-head-back svg { width: 16px; height: 16px; }
.acp-usmap.sheet-open .usmap-head-back { display: inline-flex; }
.acp-usmap.sheet-open .map-head { display: flex; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 8px; }
.acp-usmap.sheet-open .map-head h1 { font-size: 17px; margin: 0; }
.acp-usmap.sheet-open .map-head .eyebrow, .acp-usmap.sheet-open .map-head [data-us-map-target="lede"] { display: none; }
.acp-usmap.sheet-open:not(.is-atlas) .usmap-discovery, .acp-usmap.sheet-open:not(.is-atlas) .usmap-dock { display: none; }
.acp-usmap .pane.usmap-sheet.open, .acp-usmap .usmap-state-sheet.usmap-sheet.open, .acp-usmap .usmap-filters.usmap-sheet.open { transform: translateY(0); }
.acp-usmap .pane.usmap-sheet.dragging, .acp-usmap .usmap-state-sheet.usmap-sheet.dragging, .acp-usmap .usmap-filters.usmap-sheet.dragging { transition: none; }

/* Short landscape: a side panel, so nothing important hides under a sheet on a
   390px-tall screen. */
.acp-usmap .pane.usmap-side, .acp-usmap .usmap-state-sheet.usmap-side, .acp-usmap .usmap-filters.usmap-side {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 62vw); z-index: 60;
  background: var(--paper-2); box-shadow: -14px 0 38px rgba(16, 42, 63, .18);
  transform: translateX(101%); transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  padding-right: env(safe-area-inset-right);
}
.acp-usmap .pane.usmap-side.open, .acp-usmap .usmap-state-sheet.usmap-side.open, .acp-usmap .usmap-filters.usmap-side.open { transform: translateX(0); }
.acp-usmap .pane.usmap-side .pane-scroll, .acp-usmap .pane.usmap-sheet .pane-scroll { width: 100%; }

/* A sheet may cover the map; it may never cover the transport. The sheet
   is pinned to the transport's top edge (its height is measured into
   --usmap-transport-h by the controller) and capped so the map keeps at
   least 120px above the sheet. */
.acp-usmap.is-atlas .pane.usmap-sheet, .acp-usmap.is-atlas .usmap-state-sheet.usmap-sheet {
  bottom: var(--usmap-transport-h, 0px);
  max-height: calc(100vh - var(--usmap-transport-h, 0px) - 120px);
  max-height: calc(100dvh - var(--usmap-transport-h, 0px) - 120px);
  padding-bottom: 0;
}
.acp-usmap.is-atlas .pane.usmap-side, .acp-usmap.is-atlas .usmap-state-sheet.usmap-side {
  bottom: var(--usmap-transport-h, 0px);
}

/* Desktop state list: the same flex column the pane uses, on the map's right
   edge. The pane and the list are exclusive on desktop (see COLUMN_PANELS in
   the controller), so the column is only ever one thing, and it never floats
   over the zoom controls. */
.acp-usmap .usmap-state-sheet.usmap-wide {
  flex: none; width: 0; overflow: hidden;
  background: var(--paper-2); border-left: 1px solid transparent;
  box-shadow: -14px 0 38px rgba(16, 42, 63, .10);
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.acp-usmap .usmap-state-sheet.usmap-wide.open { width: var(--sheet-w); border-left-color: var(--line); }
.acp-usmap .usmap-state-sheet.usmap-wide .usmap-panel-head,
.acp-usmap .usmap-state-sheet.usmap-wide .usmap-list { width: var(--sheet-w); }
.acp-usmap .usmap-state-sheet.usmap-wide .usmap-handle { display: none; }

.acp-usmap .usmap-handle {
  flex: none; height: 22px; display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: none;
}
.acp-usmap .usmap-handle::before { content: ""; width: 42px; height: 4px; border-radius: 2px; background: var(--line); }

.acp-usmap .usmap-panel-head { flex: none; position: relative; padding: 12px 18px 10px; border-bottom: 1px solid var(--line); }
.acp-usmap .usmap-panel-head h2 {
  font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 18px; margin: 4px 48px 2px 0;
}
.acp-usmap .usmap-panel-head h2:focus-visible { outline: 2px solid var(--teal-dk); outline-offset: 3px; }
.acp-usmap .usmap-panel-sub { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; }
.acp-usmap .usmap-panel-message {
  margin: 6px 0 0; color: var(--navy); font-size: 12.5px;
  background: #fdf3e3; border-radius: 8px; padding: 8px 10px;
}
.acp-usmap .usmap-panel-close {
  position: absolute; top: 6px; right: 8px; min-width: 44px; min-height: 44px; border: 0;
  background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.acp-usmap .usmap-back { margin-bottom: 6px; }

.acp-usmap .usmap-list { flex: 1 1 auto; overflow-y: auto; list-style: none; margin: 0; padding: 4px 0 12px; }
.acp-usmap .usmap-row {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px;
  padding: 8px 18px; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--body); color: var(--ink);
}
.acp-usmap .usmap-row:hover { background: var(--paper); }
.acp-usmap .usmap-row.selected { background: rgba(47, 163, 149, .12); }
.acp-usmap .usmap-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acp-usmap .usmap-row-name { font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--navy); }
.acp-usmap .usmap-row-meta { font-size: 11.5px; color: var(--muted); }
.acp-usmap .usmap-row-count { flex: none; font-family: var(--display); font-weight: 700; font-size: 12.5px; color: var(--steel); }
.acp-usmap .usmap-swatch { flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--land); }
.acp-usmap .usmap-swatch.c1 { background: #cfe6e2; }
.acp-usmap .usmap-swatch.c2 { background: #a5d3cc; }
.acp-usmap .usmap-swatch.c3 { background: #6dbcb1; }
.acp-usmap .usmap-swatch.c4 { background: #2fa395; }
.acp-usmap .usmap-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; }
.acp-usmap .usmap-dot.hollow { background: #fff !important; box-shadow: inset 0 0 0 2px currentColor; }
.acp-usmap .usmap-new {
  flex: none; font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .6px;
  text-transform: uppercase; color: #b45309; background: #fdf0d9; border-radius: 999px; padding: 3px 7px;
}
.acp-usmap .usmap-empty { padding: 14px 18px; color: var(--muted); font-size: 13px; }

/* ---------- Partner pane contents ---------- */
.acp-usmap .pane-scroll { flex: 1 1 auto; overflow-y: auto; padding: 0 0 30px; }
.acp-usmap .pane-hero {
  padding: 24px 26px 22px; color: #fff; position: relative;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 70%, var(--steel) 140%);
}
.acp-usmap .pane-close {
  position: absolute; top: 8px; right: 8px; z-index: 1; min-width: 44px; min-height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 0; color: #fff; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center; transition: background .15s; line-height: 1;
}
.acp-usmap .pane-close:hover { background: rgba(255, 255, 255, .28); }
.acp-usmap .chip {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 600;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  margin-bottom: 14px; color: #fff;
}
.acp-usmap .chip .cdot { width: 8px; height: 8px; border-radius: 50%; }
.acp-usmap .pane-hero h2 { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.12; margin: 0 0 4px; }
.acp-usmap .pane-hero h2:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.acp-usmap .pane-hero .loc { font-size: 13.5px; color: rgba(255, 255, 255, .72); margin-bottom: 8px; }
.acp-usmap .pane-badges { font-size: 12px; color: rgba(255, 255, 255, .82); margin: 0 0 14px; }
.acp-usmap .web {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 13.5px; background: rgba(255, 255, 255, .12);
  padding: 8px 14px; border-radius: 9px; transition: background .15s;
}
.acp-usmap .web:hover { background: rgba(255, 255, 255, .24); }
.acp-usmap .web svg { width: 14px; height: 14px; }
.acp-usmap .share {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; cursor: pointer; border: 0; margin-right: 8px;
  font: inherit; font-weight: 600; font-size: 13.5px; background: rgba(255, 255, 255, .12);
  padding: 8px 14px; border-radius: 9px; transition: background .15s;
}
.acp-usmap .share:hover { background: rgba(255, 255, 255, .24); }
.acp-usmap .share svg { width: 14px; height: 14px; }

.acp-usmap .section { padding: 22px 26px 0; }
.acp-usmap .section h3 {
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--teal-dk); margin: 0 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.acp-usmap .section h3::before { content: ""; width: 18px; height: 2.5px; border-radius: 2px; background: var(--teal); }
.acp-usmap .purpose {
  font-size: 14.5px; line-height: 1.62; color: var(--ink); margin: 0;
  border-left: 3px solid var(--line); padding-left: 15px; font-style: italic;
}
.acp-usmap .media-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.acp-usmap .muted-empty { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }

.acp-usmap .hl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.acp-usmap .hl-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2);
}
.acp-usmap .hl-card.is-playing { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(47, 163, 149, 0.15); }
.acp-usmap .hl-play {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal); color: #fff; display: grid; place-items: center;
}
.acp-usmap .hl-play:hover { background: var(--teal-dk); }
.acp-usmap .hl-play:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.acp-usmap .hl-play svg { width: 18px; height: 18px; fill: currentColor; }
.acp-usmap .hl-play .hl-icon-pause { display: none; }
.acp-usmap .hl-play[aria-pressed="true"] .hl-icon-play { display: none; }
.acp-usmap .hl-play[aria-pressed="true"] .hl-icon-pause { display: block; }
.acp-usmap .hl-body { min-width: 0; flex: 1; }
.acp-usmap .hl-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.35; }
.acp-usmap .hl-text {
  margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.acp-usmap .hl-title[hidden] + .hl-text { margin-top: 0; }
.acp-usmap .hl-card.is-playing .hl-text, .acp-usmap .hl-card.is-expanded .hl-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.acp-usmap .hl-more {
  margin: 4px 0 0; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--teal-dk);
}
.acp-usmap .hl-more:hover { text-decoration: underline; }
.acp-usmap .hl-load-row { list-style: none; }
.acp-usmap .hl-load {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--teal); border-radius: 999px; background: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--teal-dk);
}
.acp-usmap .hl-load:hover { background: var(--teal); color: #fff; }
.acp-usmap .hl-card.is-playing .hl-more { display: none; }
.acp-usmap .hl-meta { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.acp-usmap .hl-progress { margin-top: 8px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.acp-usmap .hl-progress-bar { display: block; height: 100%; width: 0; background: var(--teal); transition: width 120ms linear; }
@media (prefers-reduced-motion: reduce) { .acp-usmap .hl-progress-bar { transition: none; } }
.acp-usmap .hl-see-all-row { list-style: none; }
.acp-usmap .hl-see-all {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 12.5px; color: var(--teal-dk);
}
.acp-usmap .hl-see-all:hover { border-color: var(--teal); }

/* ---------- Conversation + town panes ----------
   The same container as the partner pane. A conversation reads as an event:
   a light header with a bar in its partner's colour and a calendar tile; a
   town keeps the dark hero. */
.acp-usmap .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acp-usmap .hero-actions .share { margin-right: 0; }
.acp-usmap .cal {
  float: right; margin: 0 0 10px 14px; width: 62px; text-align: center; border-radius: 10px; overflow: hidden;
  background: #fff; color: var(--navy); border: 1px solid var(--line); font-family: var(--display);
}
.acp-usmap .cal-month {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 4px 0 2px; color: #fff; background: var(--hero-color, var(--teal));
}
.acp-usmap .cal-day { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; padding-top: 4px; }
.acp-usmap .cal-time { display: block; font-size: 10.5px; color: var(--muted); padding: 2px 0 6px; }
.acp-usmap .hosted-by { font-size: 13px; margin: -6px 0 14px; color: rgba(255, 255, 255, .82); }
.acp-usmap .hosted-by-link {
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 700; color: inherit;
  text-decoration: underline; text-underline-offset: 2px;
}
.acp-usmap .hosted-by-count { color: inherit; opacity: .8; }
.acp-usmap .view-partner {
  display: inline-flex; align-items: center; cursor: pointer; border: 1px solid rgba(255, 255, 255, .35);
  font: inherit; font-weight: 600; font-size: 13.5px; color: #fff; background: transparent;
  padding: 8px 14px; border-radius: 9px; transition: background .15s;
}
.acp-usmap .view-partner:hover { background: rgba(255, 255, 255, .14); }
.acp-usmap .pane[data-pane-mode="conversation"] .pane-hero {
  background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line);
  border-top: 5px solid var(--hero-color, var(--teal));
}
.acp-usmap .pane[data-pane-mode="conversation"] .pane-hero h2:focus-visible { outline-color: var(--navy); }
.acp-usmap .pane[data-pane-mode="conversation"] .pane-hero .loc { color: var(--muted); }
.acp-usmap .pane[data-pane-mode="conversation"] .pane-badges { color: var(--steel); }
.acp-usmap .pane[data-pane-mode="conversation"] .hosted-by { color: var(--ink); }
.acp-usmap .pane[data-pane-mode="conversation"] .pane-close { background: rgba(16, 42, 63, .08); color: var(--navy); }
/* The tile floats into the same corner as the close button; it starts below it. */
.acp-usmap .pane[data-pane-mode="conversation"] .cal { margin-top: 32px; }
.acp-usmap .pane[data-pane-mode="conversation"] .pane-close:hover { background: rgba(16, 42, 63, .16); }
.acp-usmap .pane[data-pane-mode="conversation"] .share,
.acp-usmap .pane[data-pane-mode="conversation"] .view-partner {
  color: var(--navy); background: rgba(16, 42, 63, .07); border-color: rgba(16, 42, 63, .2);
}
.acp-usmap .pane[data-pane-mode="conversation"] .share:hover,
.acp-usmap .pane[data-pane-mode="conversation"] .view-partner:hover { background: rgba(16, 42, 63, .14); }
.acp-usmap .more-list { list-style: none; margin: 0; padding: 0; }
.acp-usmap .more-list li { border-bottom: 1px solid var(--line); }
.acp-usmap .more-list li:last-child { border-bottom: 0; }
.acp-usmap .more-list button {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 10px 2px;
  border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink); border-radius: 6px;
}
.acp-usmap .more-list button:hover { background: var(--paper-2); }
.acp-usmap .more-list button:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.acp-usmap .more-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.acp-usmap .more-meta { font-size: 11.5px; color: var(--muted); }

/* ---------- Hint legend ---------- */
.acp-usmap .empty-hint { flex-wrap: wrap; }
.acp-usmap .legend { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; }
.acp-usmap .legend > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.acp-usmap .lg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; }
.acp-usmap .lg-quiet { background: #fff; border: 2px solid var(--steel); }
.acp-usmap .lg-lit { background: var(--teal); }
.acp-usmap .lg-partner { width: 11px; height: 11px; background: var(--navy); }
.acp-usmap .lg-num {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
  background: var(--steel); color: #fff; font-style: normal; font-weight: 700; font-size: 9px;
}

/* ---------- Narrow chrome ---------- */
@media (max-width: 860px) {
  .acp-usmap .map-head h1 { font-size: 23px; }
  .acp-usmap .map-head, .acp-usmap .usmap-toolbar, .acp-usmap .usmap-zero,
  .acp-usmap .usmap-discovery, .acp-usmap .usmap-fallback { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 700px) {
  .acp-usmap .map-head p { font-size: 13px; }
  /* Modes and Filters share the first row; the medley dock wraps to a full
     row of its own below them (see the dock rules further down). */
  .acp-usmap .usmap-toolbar { flex-wrap: wrap; gap: 6px; padding-bottom: 10px; }
  .acp-usmap .usmap-controls { right: 10px; top: 10px; }
  .acp-usmap .empty-hint { display: none !important; }
  /* The lede repeats the hint; on a phone it costs a third of the first screen. */
  .acp-usmap .map-head [data-us-map-target="lede"] { display: none; }
  .acp-usmap .map-head h1 { margin-bottom: 4px; }
}

/* Reduced motion: settle immediately, and no pulse. The animated arrival is
   decoration; the information is identical either way. */
@media (prefers-reduced-motion: reduce) {
  .acp-usmap *, .acp-usmap *::before, .acp-usmap *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* =====================================================================
   The Medley Atlas.

   Mode is a class on the component root (`.acp-usmap.is-atlas`), never a body
   class: the map has to be able to run inside somebody else's page, and an
   embed that repaints its host's <body> is not embeddable.
   ===================================================================== */

/* ---------- The dock: the entry card, shrunk into the toolbar row ---------- */
/* The card keeps the navy gradient at about a third of its old width. The
   base `.usmap-featured` rules are the card's look; `--dock` is the size. */
.acp-usmap .usmap-featured {
  display: flex; align-items: center; gap: 24px; width: 100%; text-align: left; cursor: pointer;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 65%, var(--steel) 140%);
  color: #fff; border: 0; border-radius: 16px; padding: 12px 18px; font-family: var(--body);
  box-shadow: 0 12px 30px rgba(16, 42, 63, .22); transition: box-shadow .15s;
}
.acp-usmap .usmap-featured:hover { box-shadow: 0 18px 40px rgba(16, 42, 63, .32); }
.acp-usmap .usmap-featured:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.acp-usmap .usmap-featured.is-pending { cursor: progress; }
.acp-usmap .usmap-featured.is-pending .usmap-featured-cta { opacity: .75; }
.acp-usmap .usmap-featured-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.acp-usmap .usmap-featured-top { display: flex; align-items: center; gap: 8px; }
.acp-usmap .usmap-featured-new {
  background: #f59e0b; color: #451a03; border-radius: 999px; padding: 2px 8px;
  font-family: var(--display); font-weight: 800; font-size: 10px; letter-spacing: .06em;
}
.acp-usmap .usmap-featured-eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: 1.3px;
  text-transform: uppercase; color: #8fd6cb;
}
.acp-usmap .usmap-featured-name {
  font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.18; color: #fff;
  overflow-wrap: anywhere;
}
.acp-usmap .usmap-featured-meta {
  font-family: var(--display); font-weight: 600; font-size: 12px; color: rgba(255, 255, 255, .68);
}
/* Phone-only (see the 700px block): on desktop the meta line carries the duration. */
.acp-usmap .usmap-featured-clock { display: none; }
.acp-usmap .usmap-featured-cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  background: var(--teal); color: #fff; border-radius: 11px; padding: 10px 18px;
  font-family: var(--display); font-weight: 700; font-size: 13.5px;
}
.acp-usmap .usmap-featured-cta svg { width: 15px; height: 15px; }

/* The dock itself: chevron · card · chevron on one row, the counter under the
   card. Clamped to 320-360px and pushed to the right end of the toolbar; if
   the filters need the room it wraps to its own row rather than shrinking. */
.acp-usmap .usmap-dock { display: flex; flex: 0 1 360px; min-width: 320px; max-width: 360px; margin-left: auto; }
.acp-usmap .usmap-dock-live { display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: 0; }
.acp-usmap .usmap-dock-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.acp-usmap .usmap-dock-step {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; padding: 0;
}
.acp-usmap .usmap-dock-step svg { width: 14px; height: 14px; }
.acp-usmap .usmap-dock-step:hover { border-color: var(--steel); }
.acp-usmap .usmap-dock-step:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.acp-usmap .usmap-dock-counter {
  align-self: flex-end; padding-right: 46px; font-family: var(--display); font-weight: 600;
  font-size: 11px; color: var(--muted);
}
.acp-usmap .usmap-featured--dock {
  flex: 1; min-width: 0; width: auto; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(16, 42, 63, .18); transition: box-shadow .15s, opacity .18s;
}
.acp-usmap .usmap-featured--dock.is-fading { opacity: 0; pointer-events: none; }
.acp-usmap .usmap-featured--dock .usmap-featured-text { gap: 1px; }
.acp-usmap .usmap-featured--dock .usmap-featured-eyebrow {
  font-size: 9.5px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acp-usmap .usmap-featured--dock .usmap-featured-name {
  font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal;
}
.acp-usmap .usmap-featured--dock .usmap-featured-meta { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acp-usmap .usmap-featured--dock .usmap-featured-cta { min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 12px; gap: 6px; }
.acp-usmap .usmap-featured--dock .usmap-featured-cta svg { width: 13px; height: 13px; }

/* ---------- Atlas heading + picker ---------- */
.acp-usmap .usmap-atlas-back {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  font-family: var(--body); font-weight: 700; font-size: 12.5px; color: var(--steel);
  padding: 6px 0; margin: 0 0 6px;
}
.acp-usmap .usmap-atlas-back:hover { text-decoration: underline; }
.acp-usmap .usmap-atlas-back svg { width: 13px; height: 13px; }
.acp-usmap .usmap-atlas-name {
  font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1;
  color: var(--navy); margin: 0 0 4px;
}
.acp-usmap .usmap-atlas-description { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); max-width: 620px; }
.acp-usmap .usmap-picker {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin;
}
.acp-usmap .usmap-picker-card {
  flex: none; min-width: 190px; max-width: 280px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; min-height: 44px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px;
  font-family: var(--body);
}
.acp-usmap .usmap-picker-card:hover { border-color: var(--teal); }
.acp-usmap .usmap-picker-card.is-current { background: var(--navy); border-color: var(--navy); }
.acp-usmap .usmap-picker-name {
  font-family: var(--display); font-weight: 700; font-size: 13.5px; color: var(--navy); line-height: 1.25;
}
.acp-usmap .usmap-picker-card.is-current .usmap-picker-name { color: #fff; }
.acp-usmap .usmap-picker-meta { font-size: 11.5px; color: var(--muted); }
.acp-usmap .usmap-picker-card.is-current .usmap-picker-meta { color: rgba(255, 255, 255, .72); }

/* ---------- Atlas mode: the network recedes, the route leads ---------- */
.acp-usmap.is-atlas .usmap-toolbar,
.acp-usmap.is-atlas .usmap-zero,
.acp-usmap.is-atlas .place-label-layer,
.acp-usmap.is-atlas .label-layer,
.acp-usmap.is-atlas .empty-hint { display: none; }
.acp-usmap.is-atlas .marker { opacity: .2; pointer-events: none; }
.acp-usmap.is-atlas .state { fill: #e8edf0; }
/* The Atlas head carries its own heading and "Back to Partner Map" button;
   the page title/lede above it is redundant while playing, and the room it
   frees up is what keeps the stage at its 260px floor on short viewports. */
.acp-usmap.is-atlas .map-head { display: none; }

/* Short laptop viewports: the Atlas head's own chrome (eyebrow, description,
   full-size picker cards) is the next thing to give, ahead of the map floor. */
@media (max-height: 820px) {
  .acp-usmap.is-atlas .usmap-atlas-head .eyebrow,
  .acp-usmap.is-atlas .usmap-atlas-description { display: none; }
  .acp-usmap.is-atlas .usmap-picker-card { padding: 6px 10px; }
  .acp-usmap.is-atlas .usmap-picker-meta { display: none; }
}

/* ---------- The route ---------- */
.acp-usmap .arc-layer path { fill: none; pointer-events: none; }
.acp-usmap .usmap-arc {
  stroke: var(--land-stroke); stroke-width: calc(var(--usmap-upx, 1px) * 1.6);
  stroke-dasharray: calc(var(--usmap-upx, 1px) * 5) calc(var(--usmap-upx, 1px) * 5); opacity: .7;
}
.acp-usmap .usmap-arc.is-played { stroke: var(--steel); opacity: .45; stroke-dasharray: none; }
.acp-usmap .usmap-arc.is-current { stroke: var(--steel); opacity: .5; }
.acp-usmap .usmap-arc-progress {
  stroke: var(--teal); stroke-width: calc(var(--usmap-upx, 1px) * 2.6); stroke-linecap: round;
}

/* ---------- Ghost routes (browse state) ---------- */
/* Faint on purpose: a texture under the dots that says "these places are
   connected", not a diagram. The current medley's route is darker, never
   solid; the dots stay the loudest thing on the map. */
.acp-usmap { --usmap-ghost-idle: .16; --usmap-ghost-current: .55; }
.acp-usmap .route-layer path { fill: none; }
.acp-usmap .usmap-route-line {
  stroke: var(--steel); stroke-width: calc(var(--usmap-upx, 1px) * 1.6); stroke-linecap: round;
  stroke-dasharray: calc(var(--usmap-upx, 1px) * 3) calc(var(--usmap-upx, 1px) * 6);
  opacity: var(--usmap-ghost-idle); pointer-events: none; transition: opacity .18s;
  animation: usmap-route-march 1.6s linear infinite;
}
.acp-usmap .usmap-route.is-current .usmap-route-line { opacity: var(--usmap-ghost-current); }
.acp-usmap .usmap-route-hit { stroke: transparent; pointer-events: stroke; cursor: pointer; }
.acp-usmap .usmap-route-pulse {
  fill: var(--steel); opacity: 0; display: none; transform-box: fill-box; transform-origin: center;
}
.acp-usmap .usmap-route.is-current .usmap-route-pulse {
  display: block; animation: usmap-route-pulse 1.8s ease-out infinite;
}
/* One dash period (3 + 6) per cycle, so the drift is seamless. */
@keyframes usmap-route-march { to { stroke-dashoffset: calc(var(--usmap-upx, 1px) * -9); } }
@keyframes usmap-route-pulse {
  from { transform: scale(.4); opacity: .4; }
  to { transform: scale(1.6); opacity: 0; }
}
.acp-usmap.is-atlas .route-layer { display: none; }
/* States mode: the routes stay drawn (texture), but a route's hit stroke sits
   above the land layer in document order, so without this a tap meant for a
   state lands on the route instead. `.usmap-route-hit` sets its own
   `pointer-events: stroke`, which an ancestor's `pointer-events: none` cannot
   override by inheritance alone, so the hit path is targeted directly. */
.acp-usmap.mode-states .route-layer { pointer-events: none; }
.acp-usmap.mode-states .usmap-route-hit { pointer-events: none; cursor: default; }
.acp-usmap.usmap-reduced .usmap-route-line { animation: none; }
.acp-usmap.usmap-reduced .usmap-route-pulse { display: none; }
.acp-usmap .usmap-atlas-marker { color: var(--steel); cursor: pointer; }
.acp-usmap .usmap-atlas-marker .pulse { opacity: 0; }
.acp-usmap .usmap-atlas-marker.is-played { color: var(--land-stroke); }
.acp-usmap .usmap-atlas-marker.is-current { color: var(--teal-dk); }
.acp-usmap .usmap-atlas-marker.is-current .pulse { opacity: .55; animation: usmap-pulse 1.8s ease-out infinite; }
@keyframes usmap-pulse { 0% { r: 9; opacity: .5; } 100% { r: 26; opacity: 0; } }
.acp-usmap .usmap-atlas-marker:focus { outline: none; }
.acp-usmap .usmap-atlas-marker:focus-visible .ring { stroke: var(--navy); stroke-width: 3; }

/* ---------- Transport (in flow below the stage, never under a sheet) ---------- */
.acp-usmap .usmap-transport {
  position: sticky; bottom: 0; flex: none; z-index: 70;
  background: var(--paper-2); border-top: 1px solid var(--line); padding: 12px 26px 14px;
}
.acp-usmap .usmap-transport-row { display: flex; align-items: center; gap: 12px; }
.acp-usmap .usmap-play {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(16, 42, 63, .22);
}
.acp-usmap .usmap-play:hover { background: var(--navy-2); }
.acp-usmap .usmap-play svg { width: 18px; height: 18px; }
.acp-usmap .usmap-icon-pause { display: none; }
.acp-usmap .usmap-transport.fp-playing .usmap-icon-play { display: none; }
.acp-usmap .usmap-transport.fp-playing .usmap-icon-pause { display: block; }
.acp-usmap .usmap-transport-button {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: #fff; color: var(--steel); display: flex; align-items: center; justify-content: center;
}
.acp-usmap .usmap-transport-button:hover { border-color: var(--steel); }
.acp-usmap .usmap-transport-button svg { width: 15px; height: 15px; }
.acp-usmap .usmap-transport-button[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.acp-usmap .usmap-transport-mid { flex: 1; min-width: 0; }
.acp-usmap .usmap-now { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 16px; }
.acp-usmap .usmap-now-credit {
  font-family: var(--display); font-weight: 600; font-size: 12.5px; line-height: 16px; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acp-usmap .usmap-now-place { color: var(--muted); }
.acp-usmap .usmap-now-place:not(:empty)::before { content: " · "; }
.acp-usmap .usmap-now-status { color: var(--teal-dk); }
.acp-usmap .usmap-now-credit.has-status [data-player-attribution],
.acp-usmap .usmap-now-credit.has-status .usmap-now-place { display: none; }
/* Loading and buffering pulse the segment bar; the words in the credit slot
   say which. */
@keyframes usmap-buffer { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.acp-usmap.is-atlas-loading .usmap-segbar, .acp-usmap.is-atlas-buffering .usmap-segbar {
  animation: usmap-buffer 1.1s ease-in-out infinite;
}
.acp-usmap.usmap-reduced.is-atlas-loading .usmap-segbar, .acp-usmap.usmap-reduced.is-atlas-buffering .usmap-segbar { animation: none; opacity: .6; }
.acp-usmap .usmap-now-time {
  flex: none; font-family: var(--display); font-variant-numeric: tabular-nums;
  font-size: 11.5px; line-height: 15px; color: var(--muted);
}
.acp-usmap .usmap-stage-wrap { position: relative; }
.acp-usmap .usmap-stage {
  max-height: 44px; overflow: hidden; font-size: 13.5px; line-height: 21px; color: var(--ink); margin: 3px 0 6px;
}
.acp-usmap .usmap-stage .fp-line { margin: 0; }
.acp-usmap .usmap-stage .fp-word { opacity: .42; transition: opacity .15s, color .15s; }
.acp-usmap .usmap-stage .fp-word--spoken { opacity: .9; }
.acp-usmap .usmap-stage .fp-word--active { opacity: 1; font-weight: 700; color: var(--navy); }
.acp-usmap .usmap-stage-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-start;
  background: linear-gradient(90deg, rgba(255, 255, 255, .92) 55%, rgba(255, 255, 255, 0));
  color: var(--steel); pointer-events: none; transition: opacity .15s;
}
.acp-usmap .usmap-stage-overlay svg { width: 16px; height: 16px; }
.acp-usmap .fp-hidden { opacity: 0; }

.acp-usmap .usmap-scrub { width: 100%; height: 20px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.acp-usmap .usmap-segbar { display: flex; gap: 3px; height: 6px; }
.acp-usmap .usmap-segbar .fp-segment {
  position: relative; flex: 1; min-width: 6px; border-radius: 3px; background: var(--line);
  overflow: hidden; cursor: pointer;
}
.acp-usmap .usmap-segbar .fp-segment::after {
  content: ""; position: absolute; inset: 0; width: var(--fill, 0%); background: var(--teal); border-radius: 3px;
}
.acp-usmap .usmap-transport-caption,
.acp-usmap .usmap-transport-counter {
  /* Present because the player writes to them; the transport says the same
     things in its own words, so they are read out rather than shown twice. */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0;
}
.acp-usmap .usmap-transport-error {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 11px; padding: 10px 14px;
}
.acp-usmap .usmap-transport-error-message { margin: 0; flex: 1; min-width: 200px; font-size: 13px; color: #7f1d1d; }
.acp-usmap .usmap-transport-error-actions { display: flex; gap: 8px; }
.acp-usmap .usmap-transport-retry, .acp-usmap .usmap-transport-exit {
  min-height: 36px; border-radius: 9px; padding: 7px 14px; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 12.5px;
}
.acp-usmap .usmap-transport-retry { background: var(--navy); border: 0; color: #fff; }
.acp-usmap .usmap-transport-exit { background: #fff; border: 1px solid var(--line); color: var(--navy); }

/* ---------- Lineup (a transport-level drawer, not a pane section) ---------- */
.acp-usmap .usmap-lineup {
  position: absolute; left: 0; right: 0; bottom: 100%; z-index: 5;
  background: var(--navy); color: #fff; border-radius: 14px 14px 0 0;
  box-shadow: 0 -12px 30px rgba(16, 42, 63, .18);
  max-height: 0; overflow: hidden; transition: max-height .28s cubic-bezier(.4, 0, .2, 1);
}
.acp-usmap .usmap-lineup.open { max-height: 340px; }
.acp-usmap .usmap-lineup-head {
  display: flex; align-items: center; justify-content: space-between; padding: 13px 12px 8px 20px;
}
.acp-usmap .usmap-lineup-head h2 {
  margin: 0; font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: .6px; text-transform: uppercase; color: #8fd6cb;
}
.acp-usmap .usmap-lineup-count { color: rgba(255, 255, 255, .55); text-transform: none; letter-spacing: 0; }
.acp-usmap .usmap-lineup-close {
  background: none; border: 0; color: rgba(255, 255, 255, .65); cursor: pointer; font-size: 20px;
  line-height: 1; width: 32px; height: 32px; border-radius: 50%;
}
.acp-usmap .usmap-lineup-close:hover { background: rgba(255, 255, 255, .12); }
.acp-usmap .usmap-lineup-list { list-style: none; margin: 0; padding: 0 10px 14px; max-height: 268px; overflow-y: auto; }
.acp-usmap .usmap-lineup-row {
  display: flex; gap: 12px; align-items: center; width: 100%; min-height: 44px; text-align: left;
  padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: #fff; cursor: pointer;
  font-family: var(--body);
}
.acp-usmap .usmap-lineup-row:hover { background: rgba(255, 255, 255, .08); }
.acp-usmap .usmap-lineup-row.is-current { background: rgba(47, 163, 149, .24); }
.acp-usmap .usmap-lineup-index {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .14);
  font-family: var(--display); font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.acp-usmap .usmap-lineup-row.is-played .usmap-lineup-index { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .5); }
.acp-usmap .usmap-lineup-partner {
  display: block; margin: -2px 10px 6px 54px; font-size: 11.5px; font-weight: 600;
  color: #8fd6cb; text-decoration: none;
}
.acp-usmap .usmap-lineup-partner:hover { text-decoration: underline; }
.acp-usmap .usmap-lineup-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acp-usmap .usmap-lineup-org { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.acp-usmap .usmap-lineup-place { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.acp-usmap .usmap-lineup-excerpt {
  font-size: 12px; color: rgba(255, 255, 255, .72); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acp-usmap .usmap-lineup-time {
  flex: none; font-family: var(--display); font-weight: 600; font-size: 11.5px; color: #8fd6cb;
}

/* ---------- Narrow: the card is a strip, the transport stays reachable ---------- */
@media (max-width: 700px) {
  /* One strip, not a stacked card: eyebrow + name on the left, a round play
     button on the right. Description and meta are desktop-only; the name
     truncates rather than wrapping so the strip is one line tall. */
  .acp-usmap .usmap-featured { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 14px; }
  .acp-usmap .usmap-featured-text { gap: 1px; }
  .acp-usmap .usmap-featured-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .acp-usmap .usmap-featured-meta { display: none; }
  /* The dock is a full-width strip on its own toolbar row: chevron, one-line
     card (New chip · name · duration · round play), chevron, counter. The
     eyebrow and meta line are desktop-only; the duration survives as its own
     span because the CTA label (the other place it appears) is hidden here. */
  .acp-usmap .usmap-featured--dock .usmap-featured-eyebrow { display: none; }
  .acp-usmap .usmap-featured--dock .usmap-featured-top:not(:has(.usmap-featured-new)) { display: none; }
  .acp-usmap .usmap-featured--dock .usmap-featured-text { flex-direction: row; align-items: center; gap: 8px; }
  .acp-usmap .usmap-featured--dock .usmap-featured-name { flex: 1 1 auto; }
  .acp-usmap .usmap-featured--dock .usmap-featured-clock {
    display: inline; flex: none; font-family: var(--display); font-weight: 600; font-size: 11px;
    color: rgba(255, 255, 255, .68); font-variant-numeric: tabular-nums;
  }
  .acp-usmap .usmap-dock { flex: 1 0 100%; min-width: 0; max-width: none; margin-left: 0; }
  .acp-usmap .usmap-dock-live { flex-direction: row; align-items: center; gap: 6px; }
  .acp-usmap .usmap-dock-row { flex: 1; }
  .acp-usmap .usmap-dock-counter { align-self: center; padding-right: 0; flex: none; }
  .acp-usmap .usmap-featured-cta { min-height: 40px; width: 40px; padding: 0; border-radius: 50%; justify-content: center; }
  .acp-usmap .usmap-featured-cta-label { display: none; }
  .acp-usmap .usmap-featured-cta svg { width: 16px; height: 16px; }
  .acp-usmap .usmap-transport { padding: 10px 16px 12px; }
  .acp-usmap .usmap-transport-row { flex-wrap: wrap; }
  .acp-usmap .usmap-transport-mid { flex-basis: 100%; order: 2; }
}

/* Reduced motion: the route still fills, it just does not animate or pulse.
   The arc half of that lives in JS (AtlasSession#onTick draws the current hop
   complete rather than filling it), because arc progress is an inline
   `stroke-dashoffset` written per tick and no stylesheet can reach it. */
.acp-usmap.usmap-reduced .usmap-atlas-marker .pulse { animation: none; opacity: 0; }
