.ca-geo-button {
  flex: 0 1 auto;
  max-width: 118px;
  min-width: 42px;
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  padding: 0 10px;
  font: 700 12px/1.1 system-ui, sans-serif;
  cursor: pointer;
}
.ca-geo-button:hover,
.ca-geo-button:focus-visible { border-color: #3b82f6; outline: 2px solid #bfdbfe; outline-offset: 2px; }
.dark .ca-geo-button { background: #0f172a; border-color: rgba(255,255,255,.16); color: #fff; }
.ca-geo-overlay {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  padding: min(9vh, 72px) 12px 24px;
  background: rgba(15,23,42,.58);
}
.ca-geo-dialog {
  width: min(100%, 520px);
  max-height: min(80vh, 650px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15,23,42,.3);
  color: #0f172a;
}
.dark .ca-geo-dialog { background: #111c31; color: #fff; }
.ca-geo-dialog__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ca-geo-dialog__title { margin: 0; font: 800 24px/1.2 system-ui, sans-serif; }
.ca-geo-dialog__close { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.ca-geo-dialog__search { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 13px; background: transparent; color: inherit; font: 16px system-ui, sans-serif; }
.ca-geo-dialog__search:focus { outline: 2px solid #93c5fd; border-color: #3b82f6; }
.ca-geo-dialog__list { min-height: 92px; max-height: min(48vh, 390px); overflow: auto; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.ca-geo-dialog__alphabet { display: flex; flex-wrap: wrap; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.ca-geo-dialog__letter { min-width: 32px; min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: #1d4ed8; font: 800 13px system-ui, sans-serif; cursor: pointer; }
.ca-geo-dialog__letter:hover, .ca-geo-dialog__letter:focus-visible { background: #dbeafe; outline: none; }
.ca-geo-dialog__groups { min-width: 0; }
.ca-geo-dialog__group-heading { width: 100%; min-height: 44px; padding: 9px 12px; border: 0; border-bottom: 1px solid #e2e8f0; background: #f8fafc; color: inherit; text-align: left; font: 800 14px system-ui, sans-serif; cursor: pointer; }
.ca-geo-dialog__group-heading::after { content: "⌄"; float: right; }
.ca-geo-dialog__group-heading[aria-expanded="true"]::after { content: "⌃"; }
.ca-geo-dialog__more { width: 100%; min-height: 44px; border: 0; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font: 700 14px system-ui, sans-serif; cursor: pointer; }
.dark .ca-geo-dialog__alphabet, .dark .ca-geo-dialog__group-heading { border-color: #334155; }
.dark .ca-geo-dialog__group-heading { background: #1e293b; }
.dark .ca-geo-dialog__letter, .dark .ca-geo-dialog__more { color: #bfdbfe; }
.dark .ca-geo-dialog__letter:hover, .dark .ca-geo-dialog__letter:focus-visible, .dark .ca-geo-dialog__more { background: #1e3a5f; }
.ca-geo-dialog__hint { margin: 12px 2px; color: #64748b; font: 14px/1.45 system-ui, sans-serif; }
.dark .ca-geo-dialog__hint { color: #cbd5e1; }
.ca-geo-dialog__option { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 44px; padding: 11px 12px; border: 0; border-radius: 11px; background: transparent; color: inherit; text-align: left; font: 700 15px/1.3 system-ui, sans-serif; cursor: pointer; }
.ca-geo-dialog__city-name { min-width: 0; overflow-wrap: anywhere; }
.ca-geo-dialog__option:hover, .ca-geo-dialog__option:focus-visible, .ca-geo-dialog__option--active { background: #eff6ff; outline: none; }
.dark .ca-geo-dialog__option:hover, .dark .ca-geo-dialog__option:focus-visible { background: #1e3a5f; }
.ca-geo-dialog__option small { flex: 0 1 48%; min-width: 0; color: #64748b; font: 12px/1.3 system-ui, sans-serif; overflow-wrap: anywhere; text-align: right; }
.dark .ca-geo-dialog__option small { color: #cbd5e1; }
.ca-geo-dialog__all { min-height: 44px; border: 1px solid #93c5fd; border-radius: 12px; background: #eff6ff; color: #1d4ed8; font: 800 14px system-ui, sans-serif; cursor: pointer; }
.dark .ca-geo-dialog__all { background: #1e3a5f; color: #bfdbfe; }
main h1[data-ca-geo-original-hidden="true"] { display: none !important; }
.ca-geo-heading-city__link { border: 0; padding: 0; background: transparent; color: var(--ca-geo-accent, #2563eb); font: inherit; font-weight: inherit; text-decoration: none !important; cursor: pointer; }
.ca-geo-heading-city__link:hover, .ca-geo-heading-city__link:active, .ca-geo-heading-city__link:visited { color: var(--ca-geo-accent-hover, #1d4ed8); text-decoration: none !important; }
.ca-geo-heading-city__link:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; border-radius: 4px; text-decoration: none !important; }
.dark { --ca-geo-accent: #93c5fd; --ca-geo-accent-hover: #bfdbfe; }
.ca-geo-offer-count { position: relative; margin: 16px 0 0; color: #1d4ed8; font: 700 15px/1.5 system-ui, sans-serif; }
.dark .ca-geo-offer-count { color: #bfdbfe; }
/* The accepted MFO face is mounted after native hydration. Never paint its
   upstream legacy face on a city URL, even during the first frame. */
html:has(meta[name="ca-geo-category"][content="mfo"]) main article:not(:has(> [data-ca-mfo-card="true"])) {
  visibility: hidden !important;
}
/* Native empty copy says "nothing found" and mentions the admin UI; a city
   with zero confirmed evidence must not imply negative availability. */
html:has(meta[name="ca-geo-visible-count"][content="0"]) main p.rounded-3xl.border.bg-white.p-8.text-center.text-slate-500 {
  display: none !important;
}
.ca-geo-breadcrumbs { max-width: 1280px; margin: 0 auto; padding: 14px 24px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #64748b; font: 13px/1.5 system-ui, sans-serif; }
.ca-geo-breadcrumbs a { color: #2563eb; text-decoration: none; }
.ca-geo-breadcrumbs a:hover { color: #1d4ed8; }
.dark .ca-geo-breadcrumbs { color: #cbd5e1; }
.dark .ca-geo-breadcrumbs a { color: #93c5fd; }
.ca-geo-compact-nav { box-sizing: border-box; max-width: 1280px; margin: 24px auto; padding: 12px 24px; border-top: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; color: #64748b; font: 14px/1.5 system-ui, sans-serif; }
.ca-geo-compact-nav strong { color: #334155; font-weight: 800; margin-right: 6px; }
.ca-geo-compact-nav a { color: #1d4ed8; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.ca-geo-compact-nav a:hover, .ca-geo-compact-nav a:focus-visible { color: #2563eb; text-decoration: underline; }
.dark .ca-geo-compact-nav { border-color: #334155; color: #94a3b8; }
.dark .ca-geo-compact-nav strong { color: #e2e8f0; }
.dark .ca-geo-compact-nav a { color: #bfdbfe; }
.ca-geo-directory-page { margin: 0; min-height: 100vh; background: #f8fafc; color: #0f172a; font: 16px/1.5 system-ui, sans-serif; }
.ca-geo-directory { box-sizing: border-box; width: min(100%, 1120px); margin: 0 auto; padding: 24px; }
.ca-geo-directory .ca-geo-breadcrumbs { padding: 0; }
.ca-geo-directory h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.ca-geo-directory__alphabet { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.ca-geo-directory__alphabet a { min-width: 38px; min-height: 38px; display: grid; place-items: center; border-radius: 10px; background: #dbeafe; color: #1d4ed8; font-weight: 800; text-decoration: none; }
.ca-geo-directory__alphabet a[aria-current="page"] { background: #1d4ed8; color: #fff; }
.ca-geo-directory__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 8px; }
.ca-geo-directory__list li { display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.ca-geo-directory__list a { color: #1d4ed8; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.ca-geo-directory__list small { color: #64748b; overflow-wrap: anywhere; }
.ca-geo-directory__categories { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; font-size: 12px; }
.ca-geo-directory__pages { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0; }
.ca-geo-directory__pages a { color: #1d4ed8; font-weight: 700; }
@media (prefers-color-scheme: dark) { .ca-geo-directory-page { background: #0f172a; color: #fff; } .ca-geo-directory__list li { background: #111c31; border-color: #334155; } .ca-geo-directory__list a, .ca-geo-directory__pages a { color: #bfdbfe; } .ca-geo-directory__list small { color: #cbd5e1; } }
.dark .ca-geo-directory-page { background: #0f172a; color: #fff; }
.dark .ca-geo-directory__list li { background: #111c31; border-color: #334155; }
.dark .ca-geo-directory__list a, .dark .ca-geo-directory__pages a { color: #bfdbfe; }
.dark .ca-geo-directory__list small { color: #cbd5e1; }
@media (max-width: 480px) {
  .ca-geo-button { max-width: 82px; padding: 0 8px; font-size: 11px; }
  .ca-geo-overlay { padding: 8px; place-items: center; }
  .ca-geo-dialog { width: 100%; max-height: calc(100dvh - 16px); padding: 16px; gap: 10px; border-radius: 18px; }
  .ca-geo-dialog__list { max-height: min(58dvh, 500px); }
  .ca-geo-dialog__letter { min-width: 44px; min-height: 44px; }
  .ca-geo-dialog__option { align-items: flex-start; gap: 8px; }
  .ca-geo-compact-nav { margin-inline: 12px; padding: 12px 4px; }
  .ca-geo-directory { padding: 18px; }
}
