@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  size-adjust: 107.64%;
  ascent-override: 90.20%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: optional;
  size-adjust: 107.64%;
  ascent-override: 90.20%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
  size-adjust: 107.64%;
  ascent-override: 90.20%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}

:root {
  /* Brand — La Fleur Repère / Muse kit (Bleu Québec) */
  --brand-50: #e8eef8;
  --brand-100: #c5d4f0;
  --brand-200: #8aa6de;
  --brand-500: #003DA5;
  --brand-600: #003DA5;
  --brand-700: #0C2D48;
  --brand-800: #0C2D48;

  --accent-600: #c2410c;
  --accent-700: #9a3412;

  --info-600: #0369a1;
  --ok-600: #1FA97A;
  --ok-700: #178a64;
  --warn-600: #92400e;
  --danger-600: #dc2626;
  --danger-700: #b91c1c;

  --bg: #F7F9FC;
  --bg-elevated: #ffffff;
  --bg-subtle: #eef1f5;
  --bg-inverse: #0b1220;

  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #475569;
  --text-inverse: #f8fafc;
  --text-on-brand: #ffffff;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --focus: #003DA5;
  --focus-ring: 0 0 0 3px rgba(0, 61, 165, 0.35);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* 8pt spacing */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;

  /* Type scale */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --fs-display: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  --fs-title: 1.25rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --lh-tight: 1.25;
  --lh-body: 1.55;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --header-h: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;

  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-elevated: #121a2b;
  --bg-subtle: #1a2438;
  --bg-inverse: #f8fafc;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-inverse: #0f172a;
  --border: #243047;
  --border-strong: #334155;
  --brand-50: #0a1a33;
  --brand-100: #12305a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --focus-ring: 0 0 0 3px rgba(45, 212, 191, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-600); }
[data-theme="dark"] a { color: #5eead4; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  margin: 0 0 var(--s2);
  color: var(--text);
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-title); font-weight: var(--fw-semibold); }
h3 { font-size: 1.05rem; font-weight: var(--fw-semibold); margin-bottom: var(--s1); }
p { margin: 0 0 var(--s2); }
.lead { font-size: 1.0625rem; color: var(--text-secondary); max-width: 42rem; }
.meta { font-size: var(--fs-sm); color: var(--text-tertiary); }
.caption { font-size: var(--fs-xs); color: var(--text-tertiary); letter-spacing: 0.01em; }

.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 1000;
  background: var(--bg-elevated); color: var(--text);
  padding: var(--s1) var(--s2); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: var(--s2); outline: none; box-shadow: var(--focus-ring); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: none; box-shadow: var(--focus-ring);
}

.container {
  width: min(1120px, calc(100% - var(--s4)));
  margin-inline: auto;
}
.container-wide {
  width: min(1280px, calc(100% - var(--s3)));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: var(--s2);
  justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: var(--fw-bold);
  letter-spacing: -0.03em; font-size: 1.05rem;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 0;
  background: none; box-shadow: none;
  position: relative; line-height: 0; flex: none;
}
.brand-mark img {
  width: 32px; height: 32px; display: block;
}
.brand-mark::after { content: none; display: none; }
.nav-desktop { display: none; gap: 4px; align-items: center; }
@media (min-width: 860px) { .nav-desktop { display: flex; } .nav-toggle { display: none !important; } }
.nav-desktop a {
  text-decoration: none; color: var(--text-secondary);
  padding: 8px 12px; border-radius: var(--radius-full);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-desktop a:hover { background: var(--bg-subtle); color: var(--text); }
.nav-desktop a[aria-current="page"] {
  background: var(--brand-50); color: var(--brand-700);
}
[data-theme="dark"] .nav-desktop a[aria-current="page"] { color: #5eead4; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-drawer {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 35;
  background: var(--bg-elevated); padding: var(--s3);
  flex-direction: column; gap: var(--s1);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  text-decoration: none; color: var(--text);
  padding: 14px 16px; border-radius: var(--radius-md);
  font-weight: var(--fw-medium); min-height: 48px;
  display: flex; align-items: center;
}
.nav-drawer a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius-md); border: 1px solid transparent;
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--brand-600); color: var(--text-on-brand);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-700); color: var(--text-on-brand); }
.btn-secondary {
  background: var(--bg-elevated); color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--border-strong); background: var(--bg-subtle); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }
.btn-lg { min-height: 52px; padding: 14px 22px; font-size: 1rem; border-radius: var(--radius-lg); }

/* Smart search */
.search-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: grid;
  gap: 6px;
  transition: box-shadow var(--dur) var(--ease);
}
@media (min-width: 720px) {
  .search-shell {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 8px;
  }
}
.search-shell:focus-within {
  box-shadow: var(--shadow-lg), var(--focus-ring);
  border-color: var(--brand-500);
}
.search-field {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; min-height: 52px;
}
.search-field svg { flex-shrink: 0; color: var(--text-tertiary); width: 22px; height: 22px; }
.search-field input {
  border: 0; outline: none; background: transparent; width: 100%;
  font: inherit; font-size: 1.05rem; color: var(--text);
}
.search-field input::placeholder { color: var(--text-tertiary); }
.search-actions { display: flex; gap: 6px; padding: 0 6px 6px; flex-wrap: wrap; }
@media (min-width: 720px) { .search-actions { padding: 0 6px 0 0; flex-wrap: nowrap; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-secondary);
  border-radius: var(--radius-full); padding: 8px 14px; min-height: 40px;
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium); cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"] {
  background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-700);
  font-weight: var(--fw-semibold);
}

/* Cards */
.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s2);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--brand-200); }
.card.sponsored {
  background: linear-gradient(180deg, color-mix(in srgb, var(--info-600) 6%, var(--bg-elevated)), var(--bg-elevated));
  border-color: color-mix(in srgb, var(--info-600) 35%, var(--border));
}

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 0.04em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 6px;
}
.badge-sponsored { background: #e0f2fe; color: #075985; }
[data-theme="dark"] .badge-sponsored { background: #0c4a6e; color: #bae6fd; }
.badge-example { background: var(--bg-subtle); color: var(--text-secondary); text-transform: none; font-weight: var(--fw-medium); letter-spacing: 0; }
.badge-open { background: #dcfce7; color: var(--ok-700); }
[data-theme="dark"] .badge-open { background: #14532d; color: #86efac; }
.badge-quiet { background: transparent; color: var(--text-tertiary); border: 1px solid var(--border); font-weight: var(--fw-medium); text-transform: none; letter-spacing: 0; }

/* Occupancy gauge */
.gauge {
  --pct: 0;
  display: grid; gap: 6px;
}
.gauge-track {
  height: 10px; border-radius: var(--radius-full); background: var(--bg-subtle);
  overflow: hidden; position: relative;
}
.gauge-fill {
  height: 100%; width: min(100%, calc(var(--pct) * 1%));
  border-radius: inherit;
  background: var(--ok-600);
  transition: width 400ms var(--ease);
}
.gauge[data-level="mid"] .gauge-fill { background: var(--warn-600); }
.gauge[data-level="high"] .gauge-fill { background: var(--danger-600); }
.gauge[data-level="nd"] .gauge-fill { width: 0; }
.gauge-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: var(--fs-sm);
}
.gauge-label strong { font-size: 1.125rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Skeletons */
.skeleton {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, color-mix(in srgb, var(--bg-subtle) 40%, var(--bg-elevated)) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.skel-line { height: 14px; margin-bottom: 10px; }
.skel-card { height: 96px; border-radius: var(--radius-lg); }

/* Map */
.map {
  width: 100%; height: 280px; min-height: 280px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--bg-subtle); z-index: 1;
  contain: layout size;
}
@media (min-width: 900px) { .map { height: 100%; min-height: 420px; } }
.map-placeholder {
  display: grid; place-items: center; color: var(--text-tertiary); font-size: var(--fs-sm);
  height: 100%; min-height: 280px;
}

/* Split list+map */
.split {
  display: grid; gap: var(--s2);
}
.split-list {
  height: min(70vh, 560px);
  max-height: min(70vh, 560px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.poi-card h3 a {
  display: inline-block;
  min-height: 28px;
  padding: 4px 0;
  line-height: 1.35;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(340px, 1fr) minmax(360px, 1.1fr);
    gap: var(--s3);
    align-items: start;
  }
  .split-list {
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow: auto; padding-right: 4px;
    scroll-padding-top: 8px;
    min-height: 360px;
  }
  .split-map {
    position: sticky; top: calc(var(--header-h) + 16px);
    height: calc(100vh - var(--header-h) - 32px);
  }
}

.poi-card {
  padding: var(--s2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-elevated); margin-bottom: 10px;
  cursor: pointer; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.poi-card:hover, .poi-card.is-active {
  border-color: var(--brand-500); box-shadow: var(--shadow-md);
}
.poi-card.is-active { outline: 2px solid color-mix(in srgb, var(--brand-500) 40%, transparent); }
.poi-card h3 { margin: 4px 0; }
.poi-card h3 a { color: inherit; text-decoration: none; }
.row-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }

.callout {
  border-radius: var(--radius-md); padding: var(--s2); font-size: var(--fs-sm);
  border: 1px solid var(--border);
}
.callout-warn { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
[data-theme="dark"] .callout-warn { background: #422006; border-color: #854d0e; color: #fde68a; }
.callout-info { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
[data-theme="dark"] .callout-info { color: #99f6e4; border-color: #134e4a; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center;
  font-size: var(--fs-xs); color: var(--text-tertiary);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }

.site-footer {
  margin-top: var(--s8); border-top: 1px solid var(--border);
  padding: var(--s4) 0 var(--s6); font-size: var(--fs-xs); color: var(--text-tertiary);
}
.site-footer a { color: var(--text-secondary); }
.footer-grid { display: grid; gap: var(--s2); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr; } }

.toast {
  position: fixed; bottom: var(--s3); left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-inverse); color: var(--text-inverse);
  padding: 12px 18px; border-radius: var(--radius-full); font-size: var(--fs-sm);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 60; box-shadow: var(--shadow-lg); max-width: min(90vw, 420px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 var(--s3); }
.steps li {
  padding: 8px 12px; border-radius: var(--radius-full); background: var(--bg-subtle);
  font-size: var(--fs-xs); color: var(--text-tertiary); font-weight: var(--fw-medium);
}
.steps li[aria-current="step"] { background: var(--brand-50); color: var(--brand-700); font-weight: var(--fw-semibold); }

.hero {
  padding: var(--s5) 0 var(--s4);
}
@media (min-width: 860px) { .hero { padding: var(--s8) 0 var(--s5); } }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--brand-700); margin-bottom: var(--s2);
}
[data-theme="dark"] .hero-kicker { color: #5eead4; }
.hero-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok-600);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok-600) 25%, transparent);
}

.section { padding: var(--s4) 0; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: var(--s2); margin-bottom: var(--s3);
}

.empty {
  text-align: center; padding: var(--s6) var(--s2); color: var(--text-secondary);
}

/* --- v3 UX additions --- */
.coverage-banner {
  background: var(--brand-700);
  color: #fff;
  font-size: var(--fs-xs);
  text-align: center;
  padding: 6px 12px;
  font-weight: 500;
}
.emergency-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--s2) 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
}
.pill-danger { background: #fef2f2; color: var(--danger-700); border: 1px solid #fecaca; }
.pill-info { background: #e0f2fe; color: #0c4a6e; border: 1px solid #7dd3fc; }
[data-theme="dark"] .pill-danger { background: #450a0a; color: #fecaca; border-color: #7f1d1d; }
[data-theme="dark"] .pill-info { background: #0c4a6e; color: #bae6fd; border-color: #075985; }

.badge-closed {
  background: #fef3c7;
  color: #92400e;
}
[data-theme="dark"] .badge-closed { background: #78350f; color: #fde68a; }
.badge-occ[data-level="high"] { background: #fee2e2; color: var(--danger-700); }
.badge-occ[data-level="mid"] { background: #ffedd5; color: #9a3412; }
.badge-occ[data-level="low"] { background: #dcfce7; color: var(--ok-700); }

.er-strip-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.er-mini { display: block; text-decoration: none; color: inherit; }
.er-mini strong { display: block; margin: 4px 0; font-size: 0.95rem; }

.card-tap { cursor: pointer; }
.card-link { color: inherit; text-decoration: none; display: block; }
.card-link:hover h3 { color: var(--brand-600); }

.thumb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.sticky-cta {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .sticky-cta { position: static; box-shadow: none; border: none; padding: 0; background: transparent; }
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.view-toggle button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.view-toggle button[aria-pressed="true"] {
  background: var(--brand-600);
  color: #fff;
}

@media (max-width: 899px) {
  body.view-map .split-list { display: none; }
  body.view-list .split-map { display: none; }
  body.view-map .split { grid-template-columns: 1fr; }
  .mobile-view-bar {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    z-index: 15;
    display: flex;
    justify-content: center;
    padding: 8px;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(8px);
  }
}
@media (min-width: 900px) {
  .mobile-view-bar { display: none; }
}

.form-grid label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--s2);
}
.form-grid input, .form-grid select, .form-grid textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.form-grid textarea { min-height: 88px; }

.data-ts {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  margin: var(--s1) 0 var(--s2);
}

/* —— UX finalize: breadcrumbs, entry cards, footer nav, empty —— */
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center;
  font-size: 13px; color: var(--muted); margin: 0 0 var(--s3);
  list-style: none; padding: 0;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "›"; color: var(--muted); opacity: 0.7; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-deep); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

.footer-nav {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin: 0 0 12px; padding: 0; list-style: none;
}
.footer-nav a { color: var(--text); font-weight: 500; font-size: 13px; text-decoration: none; }
.footer-nav a:hover { color: var(--teal-deep); text-decoration: underline; }

.entry-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
  margin-top: var(--s3);
}
@media (min-width: 720px) {
  .entry-grid { grid-template-columns: repeat(3, 1fr); }
}
.entry-card {
  display: block; padding: 16px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg-elevated, #fff);
  text-decoration: none; color: inherit; min-height: 44px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.entry-card:hover, .entry-card:focus-visible {
  border-color: var(--teal); box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
  outline: none;
}
.entry-card h3 { margin: 0 0 6px; font-size: 16px; }
.entry-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

.empty-rich { padding: 20px; border-radius: 14px; border: 1px dashed var(--border); background: var(--bg-subtle, #f8fafc); }
.empty-rich .niche-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.city-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.city-stats .chip-static {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--bg-subtle, #f1f5f9);
  font-size: 13px; color: var(--text); border: 1px solid var(--border);
}
.city-modules { display: grid; gap: 16px; margin-top: var(--s3); }
.city-modules h2 { font-size: 18px; margin: 0 0 8px; }
.er-mini table { width: 100%; border-collapse: collapse; font-size: 13px; }
.er-mini th, .er-mini td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.cross-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Mobile polish: larger chips / nav drawer targets */
@media (max-width: 859px) {
  .chip { min-height: 40px; padding: 8px 14px; }
  .nav-drawer a { min-height: 44px; display: flex; align-items: center; padding: 10px 16px; }
  .btn { min-height: 44px; }
}


/* QA polish 20261031qa2 */
html, body { overflow-x: clip; max-width: 100vw; }
.header-inner { min-width: 0; }
.brand { min-width: 0; }
.brand [data-i18n="brand"] {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42vw;
}
@media (max-width: 420px) {
  .brand [data-i18n="brand"] { max-width: 28vw; }
}
.header-actions { flex: none; gap: 6px; }
.icon-btn {
  box-sizing: border-box;
  min-width: 44px; min-height: 44px;
  width: 44px; height: 44px;
}
.lang-btn.icon-btn {
  min-width: 44px; width: auto; padding: 0 10px !important;
}
.pill { min-height: 44px; box-sizing: border-box; }
.chip { min-height: 44px; box-sizing: border-box; }
.breadcrumbs a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 4px; box-sizing: border-box;
}
.skip-link { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 859px) {
  .chip { min-height: 44px; padding: 10px 14px; }
}
input, select, textarea { min-height: 44px; box-sizing: border-box; }
input[type="checkbox"], input[type="radio"] { min-height: 20px; min-width: 20px; }


/* QA tap targets */
.clinic-card h3 a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 6px 0; box-sizing: border-box;
}
.view-toggle button { box-sizing: border-box; }
label a, .callout a, .form-help a, #er-alert a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0;
}
#btn-change-origin, #btn-er-loc { min-height: 44px !important; padding: 4px 10px !important; }
