/* ==========================================================================
   PazeCraze — /use/ page-specific styles
   Depends on ../styles.css for tokens (--accent, --line, --radius, …) and
   shared components (.wrap, .card, .btn, .callout, .cta-band).
   Nothing here belongs in the shared sheet.
   ========================================================================== */

/* Nothing is pinned to the top of this page, so anchor jumps only need a
   little breathing room. */
html {
  scroll-padding-top: 1rem;
}

/* .btn and friends set display, which beats the [hidden] UA rule. */
[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */
.use-intro h1 {
  font-size: clamp(2rem, 7.5vw, 3.25rem);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Chain cards
   -------------------------------------------------------------------------- */
.chains {
  display: grid;
  gap: 1rem;
}

@media (min-width: 34rem) {
  .chains {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 60rem) {
  .chains {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Deliberately quieter than the finder: these are the fallback, not the point. */
.chain {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem 0.75rem;
}

.chain__name {
  font-size: 1.0625rem;
}

.chain__play {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
}

.chain__play strong {
  color: var(--ink);
}

.chain__link {
  align-self: flex-start;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.chain__link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   Finder — honesty note + panel
   -------------------------------------------------------------------------- */
.finder__honesty {
  max-width: 46rem;
  margin-top: 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--line);
}

.finder__panel {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1rem, 3.5vw, 1.75rem);
}

/* --------------------------------------------------------------------------
   Finder — controls
   -------------------------------------------------------------------------- */
.finder__controls {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 46rem) {
  .finder__controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 1rem;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__control {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.field__control:hover {
  border-color: var(--muted);
}

.field__control:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

select.field__control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  cursor: pointer;
  /* caret drawn with a data URI so we never fetch an external asset */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235C6357' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
}

@media (prefers-color-scheme: dark) {
  select.field__control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23A8AC9F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* --------------------------------------------------------------------------
   Finder — filter chips
   -------------------------------------------------------------------------- */
.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.fchips:empty {
  display: none;
}

/* On phones the 16 category chips would push results off-screen, so the row
   becomes a single swipeable line that bleeds to the panel edges. */
@media (max-width: 46rem) {
  .fchips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding-inline: clamp(1rem, 3.5vw, 1.75rem);
    margin-inline: calc(-1 * clamp(1rem, 3.5vw, 1.75rem));
    /* room for focus rings, which would otherwise be clipped by overflow */
    padding-block: 4px;
  }

  .fchips::-webkit-scrollbar {
    display: none;
  }

  .fchip {
    scroll-snap-align: start;
  }
}

.fchip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}

.fchip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fchip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.fchip[aria-pressed="true"]:hover {
  color: var(--accent-ink);
  filter: brightness(1.05);
}

.fchip__count {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
  font-weight: 600;
}

.fchip--fav[aria-pressed="true"] {
  background: var(--pop);
  border-color: var(--pop);
  color: var(--pop-ink);
}

.fchip--fav[aria-pressed="true"]:hover {
  color: var(--pop-ink);
}

.fchip--metro {
  border-style: dashed;
}

.fchip--metro[aria-pressed="true"] {
  border-style: solid;
}

/* --------------------------------------------------------------------------
   Finder — status, messages, results
   -------------------------------------------------------------------------- */
.finder__loc {
  margin-top: 0.85rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
}

.finder__loc--miss {
  background: var(--pop-soft);
}

.finder__count {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.finder__count:empty {
  display: none;
}

.finder__msg:empty {
  display: none;
}

.finder__empty,
.finder__error {
  margin-top: 1rem;
  padding: clamp(1.5rem, 6vw, 2.5rem) 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

.finder__empty-icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.finder__error {
  border-style: solid;
  border-color: var(--pop);
  background: var(--pop-soft);
  color: var(--ink);
  text-align: left;
}

.finder__error code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.35em;
}

/* --------------------------------------------------------------------------
   Finder — view switch + map-area filter
   -------------------------------------------------------------------------- */
.finder__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
}

.viewswitch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.viewswitch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 34px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.viewswitch__btn:hover {
  color: var(--ink);
}

.viewswitch__btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Reads as a chip, but it belongs to the map rather than the category row. */
.fchip--bounds {
  min-height: 34px;
}

/* --------------------------------------------------------------------------
   Finder — map + list split
   -------------------------------------------------------------------------- */
.finder__split {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

@media (min-width: 64rem) {
  .finder__split {
    /* Near-even split: the map still leads, but the list gets enough width
       that a name and "★4.6 · Denver · Pizza" both fit on their own line. */
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
}

.finder__mapwrap[hidden] {
  display: none;
}

/* One of the two panes steps aside; the survivor takes the whole row. */
.finder__split.is-map .finder__listwrap,
.finder__split.is-list .finder__mapwrap {
  display: none;
}

@media (min-width: 64rem) {
  .finder__split.is-map,
  .finder__split.is-list,
  /* Leaflet blocked or offline: no map column to reserve room for. */
  .finder__split:has(.finder__mapwrap[hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.map {
  height: 55vh;
  min-height: 320px;
  max-height: 30rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  /* Keep Leaflet's stacking context contained to the map. */
  z-index: 0;
  isolation: isolate;
}

@media (min-width: 64rem) {
  .map {
    height: 34rem;
    max-height: none;
  }

  /* Map on its own — take the height the list column was holding. */
  .finder__split.is-map .map {
    height: min(42rem, 78vh);
  }
}

.map__hint {
  margin-top: 0.5rem;
}

/* Leaflet chrome, retinted to match the design system. */
.leaflet-container {
  font: inherit;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.leaflet-control-attribution {
  background: color-mix(in srgb, var(--surface) 86%, transparent) !important;
  color: var(--muted) !important;
  font-size: 0.6875rem;
}

.leaflet-control-attribution a {
  color: var(--accent) !important;
}

/* Zoom buttons at a comfortable size — 36px with a mouse, 44px on touch
   (Leaflet ships 26–30px). Specificity beats leaflet.css's .leaflet-touch. */
.leaflet-container .leaflet-bar a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 1.2rem;
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-bottom-color: var(--line) !important;
}

@media (pointer: coarse) {
  .leaflet-container .leaflet-bar a {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 1.35rem;
  }
}

.leaflet-bar a:hover {
  background: var(--surface-2) !important;
}

.leaflet-container .leaflet-bar a.leaflet-disabled {
  color: var(--muted) !important;
  opacity: 0.5;
}

.leaflet-container:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.leaflet-popup-content-wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.leaflet-popup-content {
  margin: 0.7rem 0.85rem;
  min-width: 11rem;
  line-height: 1.45;
}

/* Close button: Leaflet's is ~24px — pad it out to a real target. */
.leaflet-container a.leaflet-popup-close-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  top: 0;
  right: 0;
  padding: 0;
  font-size: 1.35rem;
  color: var(--muted);
  border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.mpop__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  /* keep clear of the enlarged close button */
  padding-right: 1.6rem;
}

.mpop__meta {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.mpop__rating {
  font-weight: 700;
  color: var(--ink);
}

.mpop__cuisine {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.9;
}

/* The one action in the popup — a full-width 44px button, not a text link. */
.mpop__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.6rem;
  padding: 0 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}

.mpop__link:hover {
  filter: brightness(1.06);
}

/* The list column scrolls on its own beside the map on wide screens; on a
   phone it just flows down the page (no nested scrolling). */
@media (min-width: 64rem) {
  .finder__listwrap {
    max-height: 34rem;
    overflow-y: auto;
    padding-right: 0.35rem;
    overscroll-behavior: contain;
  }

  /* List on its own — no map to line up with, so let it run full width and
     fill the row with as many columns as fit. */
  .finder__split.is-list .finder__listwrap {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .finder__split.is-list .m-list {
    grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
    gap: 0.4rem 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Install hint (PWA)
   -------------------------------------------------------------------------- */
.install-hint {
  position: relative;
  margin-bottom: 0.75rem;
  padding: 0.9rem 2.25rem 1rem 1rem;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.install-hint[hidden] {
  display: none;
}

.install-hint__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
}

.install-hint__body {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.install-hint__btn {
  margin-top: 0.7rem;
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9375rem;
}

.install-hint__btn[hidden] {
  display: none;
}

.install-hint__ios {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink);
}

.install-hint__ios[hidden] {
  display: none;
}

.install-hint__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.install-hint__close:hover {
  background: var(--surface);
  color: var(--ink);
}

.m-list {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.m-list:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   Finder — merchant card

   Beside the map the list column is only ~24rem wide, so every row is two
   ellipsised lines and nothing wraps: a card that grows to four lines because
   of a long name turns the sidebar into a wall. Name on one line, everything
   else (rating · city · ZIP · cuisine) on the second.
   -------------------------------------------------------------------------- */
.m-card {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  gap: 0.1rem 0.55rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.m-card:hover {
  border-color: var(--accent);
}

.m-card.is-fav {
  border-color: var(--pop);
  background: linear-gradient(var(--pop-soft), var(--pop-soft)), var(--surface);
}

.m-card__emoji {
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: center;
}

.m-card__body {
  min-width: 0;
}

.m-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-card__meta {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-card__rating {
  font-weight: 700;
  color: var(--ink);
}

.m-card__rating > span[aria-hidden] {
  color: var(--pop);
  margin-right: 0.1em;
}

/* Separators live in CSS so a missing rating or cuisine can't strand a dot. */
.m-card__rating:not([hidden]) + .m-card__place::before,
.m-card__place:not(:empty) + .m-card__cuisine::before {
  content: " · ";
}

.m-card__cuisine {
  opacity: 0.85;
}

.m-card__cuisine:empty {
  display: none;
}

.m-card__actions {
  grid-column: 3;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

/* On a phone the row is only ~20rem wide: keeping the buttons beside the text
   would squeeze the name down to a few characters, so they drop to their own
   line and the name gets the full width. */
@media (max-width: 29.99rem) {
  .m-card {
    align-items: start;
  }

  .m-card__actions {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: flex-end;
    margin-top: 0.2rem;
  }
}

.m-card__order {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 36px;
  margin-left: 0.2rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.m-card__order:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

@media (pointer: coarse) {
  .m-card__order {
    min-height: 44px;
  }
}

.icon-btn {
  flex: none;
  /* 36px with a mouse keeps the sidebar row short; touch gets the full 44. */
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: color 0.15s var(--ease), opacity 0.15s var(--ease),
    background-color 0.15s var(--ease), transform 0.12s var(--ease);
}

@media (pointer: coarse) {
  .icon-btn {
    width: 44px;
    height: 44px;
  }
}

.icon-btn:active {
  transform: scale(0.9);
}

.fav-btn:hover {
  opacity: 1;
  color: var(--pop);
  background: var(--pop-soft);
}

.fav-btn[aria-pressed="true"] {
  opacity: 1;
  color: var(--pop);
  font-size: 1.2rem;
}

.pin-btn:hover {
  opacity: 1;
  background: var(--accent-soft);
}

.pin-btn[hidden] {
  display: none;
}

.finder__more {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Pro tips
   -------------------------------------------------------------------------- */
/* Featured tipping card — the one thing on this page we want people to read. */
.tip-feature {
  background: linear-gradient(var(--pop-soft), var(--pop-soft)), var(--surface);
  border: 1px solid var(--pop);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.tip-feature__head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.tip-feature__icon {
  font-size: 1.75rem;
  line-height: 1.1;
  flex: none;
}

.tip-feature__title {
  font-size: clamp(1.25rem, 4.2vw, 1.75rem);
}

.tip-feature__lede {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46rem;
}

.tip-feature__lede strong {
  color: var(--ink);
}

/* The one move: a worked receipt beside the reason to do it. */
.tip-move {
  display: grid;
  gap: clamp(1rem, 3.5vw, 1.5rem);
  margin-top: clamp(1.1rem, 3.5vw, 1.5rem);
  align-items: center;
}

@media (min-width: 52rem) {
  .tip-move {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  }
}

.tip-move__copy {
  display: grid;
  gap: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.tip-move__copy strong {
  color: var(--ink);
}

.tip-feature__note {
  margin-top: clamp(1rem, 3vw, 1.35rem);
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 50rem;
}

.tips {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .tips {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .tips {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.1rem, 3.5vw, 1.4rem);
}

.tip__icon {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.tip__title {
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}

.tip__body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.tip__body strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.5rem;
  max-width: 48rem;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq__item[open] {
  border-color: var(--accent);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.9rem 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  flex: none;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.15s var(--ease);
}

.faq__item[open] .faq__q::after {
  content: "−";
}

.faq__q:hover {
  color: var(--accent);
}

.faq__a {
  padding: 0 1rem 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--measure);
}

.faq__a strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .fav-btn:active,
  .m-card,
  .fchip {
    transition: none;
  }

  /* Popup fade is CSS-driven, separate from the JS animation flags. */
  .leaflet-fade-anim .leaflet-popup {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .tabnav,
  .finder__controls,
  .fchips,
  .finder__toolbar,
  .finder__more,
  .fav-btn {
    display: none !important;
  }

  /* Printed, the list is the useful half — let it run at full width whatever
     the on-screen view was. */
  .finder__split,
  .finder__split.is-map,
  .finder__split.is-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .finder__split.is-map .finder__listwrap {
    display: block;
  }

  .finder__listwrap {
    max-height: none !important;
    overflow: visible !important;
  }
}
