/* v609 — clarity pass informed by live route review and WCAG 2.2 / NN/g heuristics.
   Keep the existing visual identity; make actions, scope and map states unmistakable. */

/* A contextual help control must look clickable, not like a detached caption. */
:root[data-dg-bazaar] .context-help { margin-block: 3px 5px !important; }
:root[data-dg-bazaar] .context-help-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 44px !important;
  min-height: 40px !important;
  padding: 4px 13px !important;
  border: 1px solid var(--dg-line) !important;
  border-radius: 999px !important;
  color: var(--dg-ink) !important;
  background: var(--dg-paper) !important;
  box-shadow: 0 1px 3px rgba(23,53,45,.05) !important;
  text-decoration: none !important;
  cursor: pointer;
}
:root[data-dg-bazaar] .context-help-toggle:hover {
  border-color: var(--dg-leaf) !important;
  background: var(--dg-wash) !important;
}
:root[data-dg-bazaar] .context-help-toggle:focus-visible {
  outline: 3px solid var(--dg-brass) !important;
  outline-offset: 2px !important;
  text-decoration: none !important;
}
:root[data-dg-bazaar] .context-help-state {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  max-width: none !important;
  text-align: start !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  color: var(--dg-ink) !important;
}
:root[data-dg-bazaar] .context-help-state::before {
  content: "؟";
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--dg-brass-soft);
  border-radius: 50%;
  color: #795d31;
  background: #f3eee1;
  font-size: .8rem;
  font-weight: 900;
}

/* Make the scope control read as an action and clarify the default all-city scope. */
:root[data-dg-bazaar] .mobile-city-bar em {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--dg-brass-soft);
  border-radius: 999px;
  color: #6f542a;
  background: #f3eee1;
  font-size: .74rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
:root[data-dg-bazaar] .mobile-city-bar:focus-visible {
  outline: 3px solid var(--dg-brass) !important;
  outline-offset: -3px !important;
}
html[data-dg-design="editorial"][data-dg-bazaar][data-theme="light"] .site-header .header-city {
  min-height: 40px;
  border-color: rgba(247,244,235,.28) !important;
}

/* The map has a stricter legacy mobile selector; deliberately outrank it. */
html[data-dg-design="editorial"] body.page-route-map .context-help-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 4px 13px !important;
  border: 1px solid var(--dg-line) !important;
  border-radius: 999px !important;
  color: var(--dg-ink) !important;
  background: var(--dg-paper) !important;
  box-shadow: 0 1px 3px rgba(23,53,45,.05) !important;
}

/* Map: never stack two status messages in the same bottom-center slot.
   The live status remains in the accessibility tree while the zoom prompt is visible. */
:root[data-dg-bazaar] body.page-route-map .map-stage.has-zoom-prompt .map-legend {
  opacity: 0 !important;
  pointer-events: none !important;
}
:root[data-dg-bazaar] body.page-route-map .map-stage .map-legend {
  max-width: min(90%, 360px);
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(164,125,67,.24);
  border-radius: 8px;
  line-height: 1.55;
  text-wrap: pretty;
}
:root[data-dg-bazaar] body.page-route-map .map-stage .map-me {
  min-height: 42px !important;
  padding: 6px 12px !important;
}
:root[data-dg-bazaar] body.page-route-map .map-zoom-prompt {
  max-width: calc(100% - 20px);
  min-height: 46px;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 999px;
}
:root[data-dg-bazaar] body.page-route-map .map-zoom-prompt-copy {
  font-size: .78rem;
  line-height: 1.5;
}
:root[data-dg-bazaar] body.page-route-map .map-zoom-btn {
  min-height: 40px !important;
  padding-inline: 11px !important;
  white-space: nowrap;
}
@media (max-width: 420px) {
  :root[data-dg-bazaar] body.page-route-map .map-stage .map-me { min-height: 44px !important; }
  :root[data-dg-bazaar] body.page-route-map .map-zoom-prompt { gap: 5px; padding-inline: 7px; }
  :root[data-dg-bazaar] body.page-route-map .map-zoom-prompt-copy { font-size: .72rem; }
  :root[data-dg-bazaar] body.page-route-map .map-zoom-btn { min-height: 40px !important; padding-inline: 8px !important; }
}

/* Keep keyboard focus clear around the secondary controls too. */
:root[data-dg-bazaar] :is(.mobile-city-bar,.context-help-toggle,.map-me,.map-zoom-btn):focus-visible {
  outline: 3px solid var(--dg-brass) !important;
  outline-offset: 2px !important;
}
