/* ==========================================================================
   /map page. pick your target.
   layered on top of styles/main.css. relies on its tokens (--bg, --ink,
   --pink, --pink-shadow, --tape, --muted) and the .wrap / .site-nav chrome.

   sections:
     1.  page chrome (header, headline, intro)
     2.  layout (map shell + filter panel two-column grid)
     3.  filter panel (search, chips, list)
     4.  list rows (vc cards)
     5.  bottom action bar (sticky)
     6.  maplibre overrides (popups, controls)
     7.  responsive
   ========================================================================== */


/* ---------- 1. page chrome ---------- */
.map-page-header {
  max-width: 1280px;
  margin: 36px auto 12px;
  padding: 0 clamp(32px, 5vw, 80px);
  position: relative;
}
.map-page-header__back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 6px 12px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--pink);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  transform: rotate(-1deg);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.map-page-header__back:hover {
  box-shadow: 3px 3px 0 var(--pink);
  transform: rotate(-1deg) translate(-1px, -1px);
}
.map-page-header__eyebrow {
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
  transform: rotate(-1.5deg);
  display: inline-block;
  margin: 0 0 6px;
  line-height: 1;
}
.map-page-header__eyebrow::before { content: '↳ '; color: var(--muted); }

.map-page-header h1 {
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: clamp(40px, 5.6vw, 56px);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 6px;
  color: var(--ink);
  transform: rotate(-1.2deg);
  display: inline-block;
}
.map-page-header h1 em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(255, 79, 163, 0.35) 62%, rgba(255, 79, 163, 0.35) 86%, transparent 86%);
}

.map-page-header__count {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 12px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: rotate(1.5deg);
  box-shadow: 3px 3px 0 var(--pink);
  vertical-align: middle;
}
.map-page-header__count[hidden] { display: none; }
.map-page-header__count a {
  color: inherit;
  text-decoration: none;
}


/* ---------- 2. layout ---------- */
.map-shell {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 clamp(32px, 5vw, 80px) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

/* Full /map: make the map as tall as the filter panel (both ~viewport
   height) so the two grid columns are equal — no empty gap beside the
   map, and the VC list gets a big scroll box. Scoped to .map-shell so
   the homepage embed (.map-embed, fixed height) is unaffected. */
@media (min-width: 961px) {
  .map-shell .map-frame__map {
    height: calc(100vh - 120px);
    min-height: 520px;
    max-height: 900px;
  }
}

/* Decorative shadow for the full /map layout lives on .map-frame-shell so it
   is not merged with overflow clipping on the same element as #map. Pairing
   box-shadow + overflow:hidden on the map's clipping ancestor can promote a
   compositor path where WebGL tiles and HTML markers drift for a frame during
   animated zoom (especially with NavigationControl +/-). The homepage embed
   keeps shadow on .map-frame: single column, no zoom buttons, less coupling
   to grid subpixel widths. */
.map-frame-shell {
  box-shadow: 6px 6px 0 var(--ink);
  min-width: 0; /* let the map column shrink inside minmax(0, 1fr) */
}
.map-shell .map-frame {
  box-shadow: none;
}

.map-frame {
  position: relative;
  border: 2px solid var(--ink);
  background: #EFE9DC;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}
.map-frame__map {
  width: 100%;
  height: 640px;
  position: relative;
  background: #EFE9DC;
}
.map-frame__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 28px;
  color: var(--muted);
  background: #EFE9DC;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.map-frame.is-ready .map-frame__loader { opacity: 0; }

/* City overview hops (Bay / LA / all). Sits left of MapLibre zoom on full /map. */
.map-city-hop {
  position: absolute;
  top: 10px;
  right: 56px;
  z-index: 6;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 6px;
  max-width: min(280px, calc(100% - 130px));
  pointer-events: auto;
}
.map-embed .map-city-hop {
  right: 12px;
  max-width: min(280px, calc(100% - 24px));
}
.map-city-hop[hidden] {
  display: none !important;
}
.map-city-hop__btn {
  margin: 0;
  cursor: pointer;
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 5px 10px;
  transform: rotate(1.2deg);
  box-shadow: 2px 2px 0 var(--pink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.map-city-hop__btn:nth-child(2) { transform: rotate(-0.8deg); }
.map-city-hop__btn:hover {
  box-shadow: 3px 3px 0 var(--pink);
}
.map-city-hop__btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 2px 2px 0 var(--pink);
}


/* ---------- on-map search overlay ----------
   Floating "jump to a VC" autocomplete that sits over the map (top-center)
   on both the full /map page and the homepage embed. Distinct from the
   sidebar .filter-search: this one flies the camera + opens the firm card.
   z-index 8 keeps it above the loader (5), corner tag / city-hop (6) and
   the empty state (7). */
.map-search {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  width: min(340px, calc(100% - 120px));
  font-family: 'Inter', sans-serif;
}
.map-search__icon {
  position: absolute;
  left: 11px;
  top: 22px;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.map-search__input {
  width: 100%;
  font-family: 'Inter', sans-serif;
  /* 16px stops iOS Safari auto-zoom on focus; trimmed on fine pointers below. */
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 11px 36px 11px 32px;
  min-height: 44px;
  outline: none;
  box-shadow: 2px 2px 0 var(--ink);
  transition: box-shadow 0.12s ease, transform 0.12s ease;
  -webkit-appearance: none;
  appearance: none;
}
@media (hover: hover) and (pointer: fine) {
  .map-search__input { font-size: 14px; padding: 9px 34px 9px 30px; min-height: 40px; }
  .map-search__icon { top: 20px; }
}
.map-search__input::placeholder { color: var(--muted); }
.map-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.map-search__input:focus {
  box-shadow: 3px 3px 0 var(--pink);
  transform: translate(-1px, -1px);
}
.map-search__clear {
  position: absolute;
  right: 7px;
  top: 22px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.map-search__clear:hover { color: var(--pink); }
.map-search__clear[hidden] { display: none; }

.map-search__results {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.map-search__results[hidden] { display: none; }
.map-search__results::-webkit-scrollbar { width: 8px; }
.map-search__results::-webkit-scrollbar-thumb {
  background: rgba(10,10,10,0.25);
  border-radius: 4px;
}
.map-search__result {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 3px;
  cursor: pointer;
}
.map-search__result.is-active,
.map-search__result:hover { background: rgba(255, 79, 163, 0.12); }
.map-search__result-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.map-search__result-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  background: #fff;
}
.map-search__result-icon::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  z-index: 0;
}
.map-search__result-icon.is-broken img { display: none; }
.map-search__result-icon.is-broken { background: #FFF6F1; }
.map-search__result-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.map-search__result-name {
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-search__result-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-search__empty {
  padding: 12px 10px;
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 17px;
  color: var(--muted);
  text-align: center;
}

/* On the embed, nudge the search toward the right of center for a cleaner
   layout on medium widths. */
.map-embed .map-search {
  left: auto;
  right: 12px;
  transform: none;
  width: min(320px, calc(100% - 24px));
}


/* ---------- 3. filter panel ----------
   Two-mode behavior:

   - Default (top of page, .map-frame still in view): inline in the
     grid next to the map, modest 560px max-height. Compact so the
     map is the dominant surface, not a wall of filters.

   - Floating popup (.is-floating, toggled by JS once the user has
     scrolled the map past the viewport): detaches into a fixed card
     pinned to the right edge of the viewport with a soft slide-in.
     The .vc-list inside takes over the available height via flex,
     so the list grows as the user resizes the window. Not a sticky
     panel that drags the whole 100vh down the page — it's a
     deliberate popup that appears WHEN it's useful and stays out
     of the way otherwise.

   On desktop the panel is a tall column matched to the map height so
   the VC list is a big, comfortable scroll box (no scroll-trigger
   gymnastics — earlier attempts tied growth to page scroll, which did
   nothing when the page didn't scroll). Mobile (<= 960px) keeps its
   own collapsible behavior below. */
.filter-panel {
  position: sticky;
  top: 88px;
  background: #FFFCF5;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Tall by default so many VC rows are visible at once, but capped to
     the EXACT same clamp as the full-map height below
     (min 520 / calc(100vh-120) / max 900) so the panel's bottom lines
     up with the map's bottom instead of overshooting it on tall
     screens (which read as "too long"). */
  max-height: clamp(520px, calc(100vh - 120px), 900px);
  min-height: 0;
}
/* the body wraps the search/chips/select/toggle/list. on desktop it's a
   regular flex column; on mobile it collapses. see the responsive section. */
.filter-panel__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
}
.filter-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
/* on desktop the panel is always open and non-collapsible, so hide the chevron.
   shown again inside the mobile media query below. */
.filter-panel__chev {
  display: none;
}
.filter-panel__title {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.filter-panel__selected {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--pink);
  border: 1.5px solid var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
}
.filter-panel__selected[hidden] { display: none; }

.filter-search {
  position: relative;
}
.filter-search input {
  width: 100%;
  font-family: 'Inter', sans-serif;
  /* 16px on touch devices stops iOS Safari from auto-zooming on focus.
     14px is fine on hover-capable pointers (mouse). */
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 11px 12px 11px 32px;
  min-height: 44px;
  outline: none;
  box-shadow: 2px 2px 0 var(--ink);
  transition: box-shadow 0.12s ease, transform 0.12s ease;
  -webkit-appearance: none;
  appearance: none;
}
@media (hover: hover) and (pointer: fine) {
  .filter-search input { font-size: 14px; padding: 9px 12px 9px 32px; min-height: 0; }
}
.filter-search input::placeholder { color: var(--muted); }
.filter-search input:focus {
  box-shadow: 3px 3px 0 var(--pink);
  transform: translate(-1px, -1px);
}
.filter-search::before {
  content: '⌕';
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-52%);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
}

.filter-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-block__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
/* Hand-written caption used under a filter block (e.g. the "access" group)
   to sell the curated / hand-screened framing. Mirrors the toggle-row hint. */
.filter-block__hint {
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 16px;
  line-height: 1.25;
  color: var(--muted);
  margin: 2px 0 0;
  transform: rotate(-0.6deg);
}

/* The "Top-tier" chip gets a pink sticker treatment so the exclusive,
   application-gated funds feel like the aspirational pick even before you
   press it. Selected state is handled by the shared .chip[aria-pressed]. */
.chip--partner {
  background: rgba(255, 79, 163, 0.16);
  box-shadow: 2px 2px 0 var(--pink);
}
.chip--partner:hover {
  box-shadow: 3px 3px 0 var(--pink);
}
.chip--partner[aria-pressed="true"] {
  background: var(--pink);
  color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}
.chip--partner[aria-pressed="true"]:hover {
  box-shadow: 4px 4px 0 var(--ink);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 8px 14px;
  /* WCAG 2.5.5: tap targets ≥ 24×24 (AA), Apple HIG 44×44. We split the
     difference at 36 to keep the chip row visually compact. */
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
  user-select: none;
  -webkit-tap-highlight-color: rgba(255, 79, 163, 0.2);
}
.chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 2px 2px 0 var(--ink);
}
.chip[aria-pressed="true"]:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.filter-select {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 16px; /* iOS zoom prevention */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 11px 28px 11px 12px;
  min-height: 44px;
  outline: none;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .filter-select { font-size: 13px; padding: 8px 28px 8px 10px; min-height: 0; }
}
.filter-select:focus {
  box-shadow: 3px 3px 0 var(--pink);
  transform: translate(-1px, -1px);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  min-height: 44px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: rgba(255, 79, 163, 0.18);
}
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row__switch {
  position: relative;
  width: 36px;
  height: 20px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.toggle-row__switch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--ink);
  border-radius: 50%;
  transition: left 0.15s ease, background 0.15s ease;
}
.toggle-row input:checked + .toggle-row__switch { background: var(--pink); }
.toggle-row input:checked + .toggle-row__switch::after {
  left: 18px;
  background: #fff;
}
.toggle-row__label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.toggle-row__hint {
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 16px;
  color: var(--muted);
  margin-left: auto;
  transform: rotate(-2deg);
}


/* ---------- 4. list rows ---------- */
.vc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  border-top: 1.5px dashed rgba(10,10,10,0.25);
  padding-top: 8px;
  scrollbar-width: thin;
}
.vc-list::-webkit-scrollbar { width: 8px; }
.vc-list::-webkit-scrollbar-thumb {
  background: rgba(10,10,10,0.25);
  border-radius: 4px;
}
.vc-list__count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0 8px;
}
.vc-list__count strong { color: var(--ink); font-weight: 800; }

.vc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 8px;
  min-height: 52px;
  border-bottom: 1px dashed rgba(10,10,10,0.18);
  cursor: pointer;
  transition: background 0.12s ease;
  -webkit-tap-highlight-color: rgba(255, 79, 163, 0.18);
}
.vc-row:hover { background: rgba(255, 79, 163, 0.07); }
.vc-row.is-selected { background: rgba(255, 79, 163, 0.16); }

/* Top-tier (apply-flow) VCs use a pink background so the buyer can
   spot them while scrolling. These are the ones that require a
   pitch before payment, distinct from the regular pick-and-pay
   rows. */
.vc-row--apply {
  background: rgba(255, 79, 163, 0.38);
}
.vc-row--apply:hover {
  background: rgba(255, 79, 163, 0.5);
}
.vc-row--apply.is-selected {
  background: rgba(255, 79, 163, 0.62);
}
.vc-row--apply.is-selected .vc-row__check {
  background: var(--pink, #FF4FA3);
  color: #fff;
}

/* Checkbox indicator (squircle): the buyer can pick multiple VCs.
   Per-VC cake cap still enforced server-side at 1 / 30 days, but
   the UI is multi-select so they can plan / queue across funds. */
.vc-row__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 18px;
  color: transparent;
  transition: background 0.12s ease, color 0.12s ease;
}
.vc-row.is-selected .vc-row__check {
  background: var(--pink);
  color: #fff;
}

/* favicon avatar in list rows */
.vc-row__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.vc-row__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.vc-row__icon::after {
  /* fallback monogram, sits behind the img and shows when img fails */
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  z-index: 0;
}
.vc-row__icon img { position: relative; z-index: 1; background: #fff; }
.vc-row__icon.is-broken img { display: none; }
.vc-row__icon.is-broken { background: #FFF6F1; }

.vc-row__body { flex: 1; min-width: 0; }
.vc-row__name {
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vc-row__meta {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.vc-row__meta span { white-space: nowrap; }
.vc-row__meta .dot { color: rgba(10,10,10,0.35); }

/* ---- per-row scarcity counter / tombstone ---- */
.vc-row__slots {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  margin-left: auto;
  padding-left: 8px;
  min-width: 56px;
}
.vc-row__slots-num {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}
.vc-row__slots-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
/* Last slot: urgent pink. */
.vc-row__slots.is-last .vc-row__slots-num { color: var(--pink); }
/* Slots gone: muted, with the countdown underneath. */
.vc-row__slots.is-gone .vc-row__slots-num {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.vc-row__slots.is-gone .vc-row__slots-sub { color: var(--pink); font-weight: 600; }

/* Capped row: greyed, not pickable. Hide the checkbox affordance. */
.vc-row--capped {
  cursor: not-allowed;
  background: rgba(10, 10, 10, 0.035);
}
.vc-row--capped:hover { background: rgba(10, 10, 10, 0.05); }
.vc-row--capped .vc-row__icon,
.vc-row--capped .vc-row__name,
.vc-row--capped .vc-row__meta { opacity: 0.5; filter: grayscale(0.5); }
.vc-row--capped .vc-row__check { visibility: hidden; }
/* Even when a capped VC is a top-tier (apply) firm, mute its pink fill. */
.vc-row--apply.vc-row--capped { background: rgba(10, 10, 10, 0.04); }
.vc-row--apply.vc-row--capped:hover { background: rgba(10, 10, 10, 0.06); }

.vc-list__empty {
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 22px;
  color: var(--muted);
  text-align: center;
  padding: 32px 12px;
  line-height: 1.25;
}
.vc-list__empty strong { color: var(--ink); display: block; font-weight: 700; }


/* ---------- 5. bottom action bar (sticky) ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--bg);
  color: var(--ink);
  border-top: 2px solid var(--ink);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  /* iOS home-indicator + landscape notch padding so the bar's content never
     hides behind the system UI strip. */
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.action-bar.is-visible { transform: translateY(0); }
/* Signed-out visitors: hide the $100 / total breakdown. The Send button
   stays; clicking it pops the Clerk sign-in modal first. */
.action-bar.is-signed-out .action-bar__breakdown { display: none; }
/* Top-tier (apply-flow) picks: no money is owed at the apply step, so
   hide the $100 chip and just show "Apply →". */
.action-bar.is-apply .action-bar__breakdown { display: none; }
.action-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.action-bar__count {
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 28px;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--ink);
}
.action-bar__count em {
  color: var(--pink);
  font-style: normal;
}
.action-bar__breakdown {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(10,10,10,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-bar__breakdown .sep { opacity: 0.45; }
.action-bar__breakdown strong { color: var(--ink); font-weight: 700; }

.action-bar__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--ink);
  padding: 12px 22px;
  min-height: 48px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.action-bar__cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.action-bar__clear {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(10,10,10,0.7);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(10,10,10,0.4);
  text-underline-offset: 4px;
  padding: 10px 8px;
  min-height: 44px;
}
.action-bar__clear:hover { color: var(--ink); text-decoration-color: var(--pink); }


/* ---------- map pins: WebGL circle + symbol layers (see scripts/map.js) ---------- */

/* ---------- 6. maplibre overrides ---------- */
.maplibregl-canvas:focus { outline: none; }
.maplibregl-ctrl-attrib {
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  background: rgba(244,240,232,0.85) !important;
}
.maplibregl-ctrl-group {
  border: 1.5px solid var(--ink) !important;
  background: var(--bg) !important;
  box-shadow: 2px 2px 0 var(--ink) !important;
  border-radius: 4px !important;
}
.maplibregl-ctrl-group button {
  background-color: var(--bg) !important;
}
.maplibregl-ctrl-group button + button {
  border-top: 1px solid var(--ink) !important;
}

/* popup card. matches FAQ accordion treatment */
.maplibregl-popup-content {
  background: #fff !important;
  border: 2px solid var(--ink) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: 4px 4px 0 var(--ink) !important;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  max-width: 280px;
}
.maplibregl-popup-tip { display: none !important; }
.maplibregl-popup-close-button {
  font-size: 20px !important;
  color: var(--ink) !important;
  padding: 0 6px !important;
  background: transparent !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1 !important;
  top: 4px !important;
  right: 4px !important;
}
.maplibregl-popup-close-button:hover {
  color: var(--pink) !important;
  background: transparent !important;
}

.vc-popup {
  padding: 14px 16px 14px;
  min-width: 220px;
}
.vc-popup__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 22px 8px 0;
}
.vc-popup__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: 2px 2px 0 var(--pink);
}
.vc-popup__icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  background: #fff;
}
.vc-popup__icon::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  z-index: 0;
}
.vc-popup__icon.is-broken img { display: none; }
.vc-popup__icon.is-broken { background: #FFF6F1; }
.vc-popup__name {
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.vc-popup__addr {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  margin: 0 0 8px;
}
.vc-popup__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 12px;
}
.vc-popup__tag {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 79, 163, 0.18);
  border: 1px solid rgba(10,10,10,0.18);
  padding: 2px 7px;
  border-radius: 999px;
}
.vc-popup__tag.stage {
  background: rgba(10,10,10,0.06);
}
.vc-popup__site {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 10px;
  text-decoration: none;
  border-bottom: 1px dotted var(--muted);
}
.vc-popup__site:hover { color: var(--pink); border-color: var(--pink); }

/* ---- scarcity counter ("N cakes left this month") ---- */
.vc-popup__cakes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 7px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 79, 163, 0.10);
  box-shadow: 2px 2px 0 rgba(255, 79, 163, 0.35);
}
.vc-popup__pips {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
  line-height: 1;
  font-size: 14px;
}
.vc-popup__pip { filter: none; opacity: 1; }
/* Spent slots read as "gone": greyed + crossed so the remaining ones pop. */
.vc-popup__pip.is-spent {
  filter: grayscale(1);
  opacity: 0.32;
}
.vc-popup__cakes-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.25;
  color: var(--ink);
}
.vc-popup__cakes-label strong { font-weight: 700; }
/* Last slot: dial the urgency up. */
.vc-popup__cakes.is-last {
  background: rgba(255, 79, 163, 0.18);
  box-shadow: 2px 2px 0 var(--pink);
}
.vc-popup__cakes.is-last .vc-popup__cakes-label strong {
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
/* Slots-gone tombstone: ink-on-grey, with the countdown line. */
.vc-popup__cakes.is-gone {
  background: rgba(10, 10, 10, 0.05);
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.25);
}
.vc-popup__cakes.is-gone .vc-popup__cakes-label strong {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.vc-popup__countdown {
  display: inline-block;
  margin-top: 3px;
  font-weight: 700;
  color: var(--pink);
}

.vc-popup__pick {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  border: 1.5px solid var(--ink);
  padding: 7px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.vc-popup__pick:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.vc-popup__pick.is-picked {
  background: var(--bg);
  color: var(--ink);
}
.vc-popup__pick.is-picked::after { content: ' ✓'; color: var(--pink); font-weight: 800; }
/* Top-tier (apply-flow) firms: distinguish the popup CTA from a plain
   Pick. Same shape, but ink-on-cream so it reads as a different step,
   plus a one-liner hint underneath. */
.vc-popup__pick.is-apply {
  background: var(--ink);
  color: var(--bg);
}
.vc-popup__apply-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
/* Slots-gone: disabled, greyed CTA. No hover lift. */
.vc-popup__pick.is-gone,
.vc-popup__pick.is-gone:hover {
  background: rgba(10, 10, 10, 0.12);
  color: var(--muted);
  border-color: rgba(10, 10, 10, 0.35);
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.2);
  cursor: not-allowed;
  transform: none;
  font-size: 12px;
}


/* ---------- 7. error / empty states ---------- */
.map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #EFE9DC;
  z-index: 7;
  padding: 32px;
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
}
.map-empty__big {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  transform: rotate(-1deg);
}
.map-empty__small {
  font-size: 18px;
  color: var(--muted);
  max-width: 420px;
}
.map-empty code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 1px 6px;
  border-radius: 3px;
}


/* ---------- homepage embed (single-column, no filter panel) ---------- */
.map-embed {
  position: relative;
  margin: 32px 0 12px;
}
.map-embed .map-frame__map { height: 520px; }
.map-embed-cta {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.map-embed-cta__hint {
  font-family: 'Caveat', 'Bradley Hand', 'Marker Felt', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 22px;
  color: var(--muted);
  margin: 0;
  transform: rotate(-1deg);
}
.map-embed-cta__hint strong { color: var(--ink); font-weight: 700; }
.map-embed-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 11px 20px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.map-embed-cta__btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
/* Animated GIF "wave" revealed through the label via background-clip: text.
   The button stays white (background set above); only the text shows the GIF,
   matching the footer "Add your bakery" CTA. */
.map-embed-cta__btn .map-cta-text {
  background-image: url("https://framerusercontent.com/images/byCMylKU6RQ8oaA7tX9IhqyXS4.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* A GIF can't be paused via CSS, so reduced-motion users get plain ink text. */
@media (prefers-reduced-motion: reduce) {
  .map-embed-cta__btn .map-cta-text {
    background-image: none;
    -webkit-text-fill-color: var(--ink);
    color: var(--ink);
  }
}


/* ---------- 8. responsive ---------- */
@media (max-width: 960px) {
  .map-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 96px;
  }
  .map-frame__map { height: 460px; }
  /* On the stacked-mobile layout the panel sits below the map, so
     sticky would pin it to the top of the viewport forever once the
     user scrolled past it — annoying. Fall back to static + an
     unbounded max-height so the page scroll handles the long list. */
  .filter-panel { position: static; max-height: none; }
  .vc-list { max-height: 360px; }
}

/* ---- mid-mobile / small tablet ---- */
@media (max-width: 760px) {
  .map-page-header,
  .map-shell {
    padding-left: 24px;
    padding-right: 24px;
  }
  /* keep the shell's footprint clear of the sticky action-bar so the last
     list row isn't permanently hidden behind it. height = bar (60ish) +
     safe-area (up to 34) + a bit of breathing room. Only the shell needs
     this — adding it to the header just leaves a big empty gap above the
     map on mobile. */
  .map-shell { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .map-page-header { margin-top: 24px; }
  .map-page-header h1 { font-size: clamp(36px, 9vw, 48px); }

  /* taller, more usable map. dvh keeps it stable when iOS hides/shows the
     toolbar, vh keeps older browsers happy. */
  .map-frame__map { height: 60vh; height: 60dvh; min-height: 360px; max-height: 560px; }
  .map-embed .map-frame__map { height: 380px; }

  /* collapsible filter panel - defaults to closed, opens on .is-open from JS.
     this gives the map ~all of viewport on first paint instead of pushing
     it down 300px+ behind chips and a long select. */
  .filter-panel {
    padding: 16px 14px 14px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .filter-panel__head {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 79, 163, 0.18);
    padding: 6px 36px 6px 4px;
    min-height: 44px;
    user-select: none;
    position: relative;
    align-items: center;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
  }
  .filter-panel__head .filter-panel__title {
    flex: 1 1 auto;
  }
  .filter-panel__chev {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .filter-panel.is-open .filter-panel__chev {
    transform: translateY(-50%) rotate(45deg);
  }

  .filter-panel__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.18s ease, padding 0.2s ease;
    padding-top: 0;
  }
  .filter-panel.is-open .filter-panel__body {
    max-height: 1200px;
    opacity: 1;
    padding-top: 12px;
  }
  /* the list stays inside the panel body; cap it so the action-bar isn't
     covered when the filters are open. */
  .filter-panel.is-open .vc-list { max-height: 50vh; max-height: 50dvh; }
  /* when filters are closed, still show the list (just lower). */
  .filter-panel:not(.is-open) .vc-list { max-height: 320px; }

  /* action bar ergonomics. count gets smaller, send is the focal CTA. */
  .action-bar__inner { padding: 10px 18px; gap: 10px; }
  .action-bar__count { font-size: 20px; }
  .action-bar__breakdown { font-size: 12px; }
  .action-bar__cta { padding: 11px 18px; font-size: 14px; min-height: 44px; }

  /* the homepage map embed cta prefers stacking on narrow */
  .map-embed-cta { flex-direction: column; align-items: stretch; }
  .map-embed-cta__btn { justify-content: center; }

  /* On-map search: widen toward full width but keep clear of the
     top-right navigation control on the full /map page. */
  .map-search {
    width: calc(100% - 92px);
  }
  /* On the embed there is no nav control, but the corner tag owns the
     top-left — drop the search onto its own row beneath it. */
  .map-embed .map-search {
    top: 48px;
    left: 8px;
    right: 8px;
    width: auto;
    transform: none;
  }
}

/* ---- phones ---- */
@media (max-width: 480px) {
  .map-page-header,
  .map-shell {
    padding-left: 18px;
    padding-right: 18px;
  }
  .map-frame__map { height: 58vh; height: 58dvh; min-height: 340px; }
  .map-embed .map-frame__map { height: 320px; }

  .map-page-header__count {
    display: block;
    margin: 10px 0 0;
    transform: rotate(0);
  }
  .map-page-header__count a { padding: 6px 12px; min-height: 40px; display: inline-flex; align-items: center; }

  /* corner tag inside map can crowd the basemap navigation. */
  .map-city-hop {
    top: 8px;
    right: 50px;
    gap: 4px;
    max-width: calc(100% - 56px);
  }
  .map-embed .map-city-hop { right: 8px; max-width: calc(100% - 16px); }
  .map-city-hop__btn { font-size: 14px; padding: 5px 8px; }

  .action-bar__inner { padding: 9px 14px; }
  .action-bar__breakdown { display: none; } /* keep count + clear + send only */

  /* popup spans most of the viewport; help readability. */
  .maplibregl-popup-content { max-width: calc(100vw - 32px) !important; }
  .vc-popup { padding: 14px 14px 14px; min-width: 0; }
  .vc-popup__name { font-size: 18px; }
  .vc-popup__pick { padding: 9px 16px; min-height: 44px; font-size: 14px; }
}

/* ---- coarse-pointer / touch-only refinements regardless of width ---- */
@media (hover: none) and (pointer: coarse) {
  .chip:hover,
  .vc-popup__pick:hover,
  .map-embed-cta__btn:hover,
  .action-bar__cta:hover {
    /* hover-translate looks broken on touch - restore baseline. */
    transform: none;
  }
  .chip:active { transform: translate(-1px, -1px); }
}

/* ===== Brand confirm modal ==========================================
   Coldcaked-styled replacement for window.confirm(). Used when the
   buyer mixes an apply-VC with regular picks: same pink-on-cream
   palette + tilt as the bakery modals so it doesn't feel like a
   system dialog. */
.brand-confirm {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 4000;
  backdrop-filter: blur(2px);
  animation: brand-confirm-fade 200ms ease-out;
}
.brand-confirm[hidden] { display: none; }
.brand-confirm__card {
  background: var(--paper, #FBF7EA);
  border: 1.5px solid var(--ink, #0A0A0A);
  border-radius: 16px;
  padding: 26px 26px 22px;
  max-width: 460px;
  width: 100%;
  box-shadow: 7px 7px 0 var(--pink, #FF4FA3);
  transform: rotate(-0.6deg);
  position: relative;
  animation: brand-confirm-pop 320ms cubic-bezier(.16,1.18,.34,1.04);
}
.brand-confirm__eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--pink, #FF4FA3);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
  transform: rotate(-1deg);
  display: inline-block;
}
.brand-confirm__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink, #0A0A0A);
  margin: 0 0 8px;
  line-height: 1.2;
}
.brand-confirm__body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink, #0A0A0A);
  margin: 0 0 18px;
}
.brand-confirm__btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.brand-confirm__btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid var(--ink, #0A0A0A);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.brand-confirm__btn--cancel {
  background: transparent;
  color: var(--ink, #0A0A0A);
}
.brand-confirm__btn--cancel:hover {
  background: rgba(10, 10, 10, 0.06);
}
.brand-confirm__btn--go {
  background: var(--ink, #0A0A0A);
  color: var(--bg, #F4F0E8);
  box-shadow: 3px 3px 0 var(--pink, #FF4FA3);
  transform: rotate(-1.1deg);
}
.brand-confirm__btn--go:hover {
  transform: rotate(-1.1deg) translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--pink, #FF4FA3);
}
@keyframes brand-confirm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes brand-confirm-pop {
  0%   { opacity: 0; transform: rotate(-0.6deg) translateY(-10px) scale(0.97); }
  100% { opacity: 1; transform: rotate(-0.6deg) translateY(0) scale(1); }
}
