/* ==========================================================================
   Pharma Atlas Maroc — interface
   Dark-first, glass panels, emerald/cyan accents, editorial typography.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/sora-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --font-display: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --bg: #070b13;
  --bg-soft: #0a101b;
  --panel: rgba(13, 20, 33, 0.72);
  --panel-solid: #0d1524;
  --panel-soft: rgba(19, 28, 45, 0.55);
  --text: #e9eef7;
  --muted: #93a1b5;
  --faint: #64748b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  --accent: #34d399;
  --accent-2: #22d3ee;
  --accent-soft: rgba(52, 211, 153, 0.14);
  --accent-ink: #052e24;
  --amber: #fbbf24;
  --rose: #fb7185;

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.22);
  --radius: 22px;
  --radius-sm: 13px;
  --container: 1440px;
  --topbar-h: 74px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --bg-soft: #ece8df;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #fffdf9;
  --panel-soft: rgba(255, 255, 255, 0.55);
  --text: #111827;
  --muted: #5b6779;
  --faint: #8a94a3;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --accent: #0f9f6e;
  --accent-2: #0891b2;
  --accent-soft: rgba(15, 159, 110, 0.12);
  --accent-ink: #f0fdf8;
  --shadow: 0 24px 70px rgba(38, 44, 55, 0.13);
  --shadow-soft: 0 10px 34px rgba(38, 44, 55, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 18px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img, svg { display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--accent-soft); padding: 0.12em 0.35em; border-radius: 5px; }

.hidden { display: none !important; }
body.modal-open { overflow: hidden; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 2000;
  padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Atmosphere
   -------------------------------------------------------------------------- */

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}
.orb-a {
  width: 620px; height: 620px; left: -180px; top: -240px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.55), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-b {
  width: 560px; height: 560px; right: -140px; top: 80px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.38), transparent 68%);
  animation: drift 27s ease-in-out infinite alternate-reverse;
}
.orb-c {
  width: 700px; height: 700px; left: 34%; top: 62%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.16), transparent 68%);
  animation: drift 32s ease-in-out infinite alternate;
}
[data-theme="light"] .orb { opacity: 0.32; }
[data-theme="light"] .orb-a { background: radial-gradient(circle, rgba(15, 159, 110, 0.42), transparent 68%); }
[data-theme="light"] .orb-b { background: radial-gradient(circle, rgba(8, 145, 178, 0.3), transparent 68%); }
[data-theme="light"] .orb-c { background: radial-gradient(circle, rgba(251, 191, 36, 0.24), transparent 68%); }

.grid-noise {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 72%);
}
[data-theme="light"] .grid-noise { opacity: 0.3; background-image: linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px); }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

/* --------------------------------------------------------------------------
   Primitives
   -------------------------------------------------------------------------- */

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2dd4bf 70%, var(--accent-2));
  color: #04251d;
  box-shadow: 0 12px 34px rgba(52, 211, 153, 0.25);
}
[data-theme="light"] .btn-primary { color: #fff; box-shadow: 0 12px 30px rgba(15, 159, 110, 0.22); }
.btn-primary:hover { box-shadow: 0 16px 42px rgba(52, 211, 153, 0.36); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}
[data-theme="light"] .btn-ghost { background: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line-strong); }
[data-theme="light"] .btn-ghost:hover { background: #fff; }
.btn-small { min-height: 38px; padding: 0 13px; font-size: 0.82rem; border-radius: 10px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(0.96); }
[data-theme="light"] .icon-btn { background: rgba(255, 255, 255, 0.6); }

.linkish {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  padding: 0;
  font-size: inherit;
}
.linkish:hover { color: var(--accent); }

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: var(--topbar-h);
  padding: 0 max(24px, calc((100vw - var(--container)) / 2 + 24px));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
[data-theme="light"] .topbar { background: rgba(244, 241, 234, 0.82); }

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04251d;
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.3);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-mark.small { width: 32px; height: 32px; border-radius: 10px; }
.brand-mark.small svg { width: 17px; height: 17px; }
.brand-text { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.03em; }
.brand-text strong { color: var(--accent); font-weight: 700; }
.brand-text small { margin-left: 7px; color: var(--faint); font-family: var(--font-body); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.main-nav a, .main-nav button {
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 650;
  transition: color 0.18s ease, background 0.18s ease;
}
.main-nav a:hover, .main-nav button:hover { color: var(--text); background: rgba(255, 255, 255, 0.055); }
[data-theme="light"] .main-nav a:hover, [data-theme="light"] .main-nav button:hover { background: rgba(15, 23, 42, 0.05); }

.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-sun, .icon-moon { position: absolute; transition: opacity 0.2s ease, transform 0.2s ease; }
[data-theme="dark"] .icon-sun { opacity: 0; transform: rotate(-40deg) scale(0.6); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: none; }
[data-theme="light"] .icon-sun { opacity: 1; transform: none; }
[data-theme="light"] .icon-moon { opacity: 0; transform: rotate(40deg) scale(0.6); }
#themeToggle { position: relative; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

main { display: block; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0 clamp(52px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 12px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
[data-theme="light"] .eyebrow { background: rgba(255, 255, 255, 0.55); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.04); }
}

.hero h1 {
  font-size: clamp(2.65rem, 5.4vw, 5.1rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
  font-weight: 600;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 8%, var(--accent-2) 55%, var(--amber) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  max-width: 58ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.7;
}
.hero-lead strong { color: var(--text); font-weight: 800; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--faint);
  font-size: 0.78rem;
}
.hero-note .icon { color: var(--accent); width: 1em; height: 1em; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 19px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  opacity: 0.8;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.stat-main { grid-column: span 3; padding: 24px 22px 21px; background: linear-gradient(135deg, var(--panel), rgba(52, 211, 153, 0.08)); }
.stat-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.stat-icon.accent { background: var(--accent-soft); color: var(--accent); }
[data-theme="light"] .stat-icon { background: rgba(15, 23, 42, 0.05); }
[data-theme="light"] .stat-icon.accent { background: var(--accent-soft); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat-main .stat-value { font-size: clamp(2.3rem, 3.8vw, 3.4rem); }
.stat-label { color: var(--text); font-size: 0.82rem; font-weight: 700; }
.stat-foot { color: var(--faint); font-size: 0.7rem; margin-top: 3px; }

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

.explorer, .insights {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(34px, 4vw, 54px) 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.section-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.45rem); letter-spacing: -0.04em; }
.section-sub { margin-top: 7px; color: var(--muted); font-size: 0.9rem; }
.section-head.compact { margin-bottom: 18px; }
.view-actions { display: flex; gap: 10px; }

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(116px, 0.62fr)) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 18px;
  margin-bottom: 16px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.18s ease, background 0.18s ease;
}
[data-theme="light"] .search-field { background: rgba(255, 255, 255, 0.7); }
.search-field:focus-within { border-color: var(--accent); background: rgba(52, 211, 153, 0.045); }
.search-field .icon { color: var(--faint); }
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
}
.search-field input::placeholder { color: var(--faint); }
.search-field kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
}

.select-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.select-field > span { padding-left: 3px; color: var(--faint); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.select-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 21px, calc(100% - 11px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  outline: none;
  transition: border-color 0.18s ease;
}
[data-theme="light"] .select-field select { background-color: rgba(255, 255, 255, 0.7); }
.select-field select:focus { border-color: var(--accent); }
.select-field option { background: var(--panel-solid); color: var(--text); }

.switch-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
[data-theme="light"] .switch-field { background: rgba(255, 255, 255, 0.7); }
.switch-field input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  position: relative;
  width: 34px; height: 20px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}
[data-theme="light"] .switch-track { background: rgba(15, 23, 42, 0.16); }
.switch-track::after {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.switch-field input:checked + .switch-track { background: var(--accent); }
.switch-field input:checked + .switch-track::after { transform: translateX(14px); }
.switch-field input:focus-visible + .switch-track { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.reset-btn { min-height: 48px; }

/* --------------------------------------------------------------------------
   Workspace: map + results
   -------------------------------------------------------------------------- */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: start;
}

.map-panel {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  height: clamp(540px, calc(100vh - var(--topbar-h) - 34px), 820px);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 1;
}
#map { position: absolute; inset: 0; background: var(--bg-soft); }
.map-overlay {
  position: absolute;
  left: 14px; right: 14px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.map-overlay.top { top: 14px; }
.map-overlay.bottom { bottom: 14px; align-items: flex-end; }
.map-overlay > * { pointer-events: auto; }
.map-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-phone { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dot-nophone { background: #7890a8; }
.map-btn {
  width: 38px; height: 38px;
  background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}
.map-count {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}
.map-attrib {
  padding: 5px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel-solid) 78%, transparent);
  color: var(--muted);
  font-size: 0.6rem;
}

.results-panel { display: flex; flex-direction: column; min-height: 540px; }
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 2px 12px;
}
.results-count { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.results-count span:first-child { color: var(--text); font-family: var(--font-display); font-size: 1.05rem; }
.sort-field { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 0.72rem; font-weight: 700; }
.sort-field select {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 7px 28px 7px 10px;
  font-size: 0.74rem;
  font-weight: 650;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
[data-theme="light"] .sort-field select { background-color: rgba(255, 255, 255, 0.7); }

.cards { display: grid; gap: 10px; }

.pharmacy-card {
  position: relative;
  padding: 16px 17px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  animation: cardIn 0.35s ease both;
}
.pharmacy-card:hover { transform: translateY(-2px); border-color: rgba(52, 211, 153, 0.36); background: color-mix(in srgb, var(--panel) 82%, var(--accent) 6%); }
[data-theme="light"] .pharmacy-card { box-shadow: 0 6px 22px rgba(38, 44, 55, 0.06); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { min-width: 0; }
.card-title h3 {
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}
.card-city .icon { width: 0.9em; height: 0.9em; color: var(--accent); }

.quality-ring {
  --q: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 43px; height: 43px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--q) * 1%), rgba(255, 255, 255, 0.09) 0);
}
[data-theme="light"] .quality-ring { background: conic-gradient(var(--accent) calc(var(--q) * 1%), rgba(15, 23, 42, 0.1) 0); }
.quality-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--panel-solid);
}
.quality-ring span { position: relative; z-index: 1; font-size: 0.68rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.quality-ring.low { background: conic-gradient(var(--amber) calc(var(--q) * 1%), rgba(255, 255, 255, 0.09) 0); }
[data-theme="light"] .quality-ring.low { background: conic-gradient(var(--amber) calc(var(--q) * 1%), rgba(15, 23, 42, 0.1) 0); }

.card-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
[data-theme="light"] .badge { background: rgba(255, 255, 255, 0.65); }
.badge-phone { color: var(--accent); border-color: rgba(52, 211, 153, 0.25); background: var(--accent-soft); }
.badge-osm { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.2); background: rgba(125, 211, 252, 0.09); }
.badge-ammps { color: #fcd34d; border-color: rgba(252, 211, 77, 0.2); background: rgba(252, 211, 77, 0.09); }
[data-theme="light"] .badge-osm { color: #0369a1; background: rgba(3, 105, 161, 0.08); }
[data-theme="light"] .badge-ammps { color: #92400e; background: rgba(146, 64, 14, 0.08); }

.card-address {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-address.muted { color: var(--faint); font-style: italic; }
.card-footer { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.phone-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.phone-link .icon { width: 0.95em; height: 0.95em; }
.phone-missing { color: var(--faint); font-size: 0.74rem; font-style: italic; }
.card-footer .spacer { flex: 1; }
.card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  transition: color 0.16s ease, background 0.16s ease;
}
.card-action:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
[data-theme="light"] .card-action:hover { background: rgba(15, 23, 42, 0.06); }

.skeleton-card {
  height: 142px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(100deg, var(--panel) 20%, rgba(255, 255, 255, 0.06) 40%, var(--panel) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 44px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  text-align: center;
}
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.empty h3 { font-size: 1rem; }
.empty p { max-width: 38ch; color: var(--muted); font-size: 0.8rem; }
.empty .btn { margin-top: 6px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 0 4px; }
.pagination .icon-btn { width: 38px; height: 38px; }
.pagination .icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
#pageInfo { color: var(--muted); font-size: 0.76rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Insights
   -------------------------------------------------------------------------- */

.insights-grid { display: grid; grid-template-columns: 1.18fr 0.92fr 0.9fr; gap: 14px; }
.insight-card { padding: 20px; border-radius: var(--radius); }
.insight-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; }
.insight-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.insight-head h3 { font-size: 0.92rem; }
.insight-head p { margin-top: 3px; color: var(--faint); font-size: 0.72rem; }

.city-bars { display: grid; gap: 12px; }
.city-bar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 46px; align-items: center; gap: 10px; }
.city-bar .city-name { color: var(--muted); font-size: 0.72rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-bar .bar-track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
[data-theme="light"] .city-bar .bar-track { background: rgba(15, 23, 42, 0.08); }
.city-bar .bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.city-bar .city-count { color: var(--text); font-size: 0.72rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.city-bar .city-count small { display: block; color: var(--accent); font-size: 0.6rem; font-weight: 700; }

.quality-chart { display: grid; gap: 11px; }
.quality-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 38px; align-items: center; gap: 9px; }
.quality-row .score { color: var(--muted); font-size: 0.7rem; font-weight: 800; }
.quality-row .bar-track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
[data-theme="light"] .quality-row .bar-track { background: rgba(15, 23, 42, 0.08); }
.quality-row .bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--amber), var(--accent)); }
.quality-row .count { color: var(--faint); font-size: 0.68rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.source-chart { display: flex; align-items: center; gap: 18px; }
.source-donut {
  position: relative;
  width: 132px; height: 132px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 72%, var(--accent-2) 72% 100%);
}
.source-donut::before { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--panel-solid); }
.source-donut .donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.source-donut .donut-center strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; letter-spacing: -0.04em; }
.source-donut .donut-center small { color: var(--faint); font-size: 0.62rem; margin-top: 4px; }
.source-legend { display: grid; gap: 11px; min-width: 0; }
.source-legend-item { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 8px; align-items: start; }
.source-legend-item .dot { margin-top: 5px; }
.source-legend-item strong { display: block; font-size: 0.75rem; text-transform: capitalize; }
.source-legend-item span { color: var(--faint); font-size: 0.66rem; }

/* --------------------------------------------------------------------------
   CTA + footer
   -------------------------------------------------------------------------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--container), calc(100% - 48px));
  margin: clamp(30px, 4vw, 54px) auto;
  padding: clamp(24px, 3.4vw, 36px);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 20%, var(--accent-soft), transparent 42%),
    var(--panel);
}
.cta-band h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.cta-band p:not(.section-kicker) { max-width: 58ch; margin-top: 6px; color: var(--muted); font-size: 0.86rem; }

.site-footer {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.74rem;
}
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.footer-brand strong { color: var(--text); font-family: var(--font-display); font-size: 0.9rem; }
.footer-brand p { color: var(--faint); font-size: 0.7rem; margin-top: 1px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.footer-legal { max-width: 90ch; padding-top: 13px; border-top: 1px solid var(--line); font-size: 0.68rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn 0.2s ease; }
[data-theme="light"] .modal-backdrop { background: rgba(30, 36, 46, 0.42); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: clamp(24px, 3.5vw, 38px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  animation: modalIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.detail-panel { width: min(620px, 100%); }
.modal-close {
  position: absolute;
  top: 15px; right: 15px;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.modal h2 { font-size: clamp(1.4rem, 2.7vw, 2rem); padding-right: 38px; }
.modal-lead { margin-top: 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

.timeline { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.timeline li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
.timeline-num {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}
.timeline h3 { font-size: 0.92rem; margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: 0.8rem; line-height: 1.6; }

.modal-note {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding: 13px 14px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 0.78rem;
}
.modal-note .icon { color: var(--accent); margin-top: 2px; }

.source-list { display: grid; gap: 12px; margin-top: 24px; }
.source-item { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 13px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-soft); }
.source-badge { display: inline-grid; place-items: center; padding: 5px 7px; border-radius: 7px; font-size: 0.58rem; font-weight: 850; letter-spacing: 0.08em; }
.source-badge.ammps { color: #fcd34d; background: rgba(252, 211, 77, 0.12); }
.source-badge.osm { color: #7dd3fc; background: rgba(125, 211, 252, 0.12); }
.source-badge.geo { color: var(--accent); background: var(--accent-soft); }
.source-badge.google { color: var(--rose); background: rgba(251, 113, 133, 0.12); }
.source-item h3 { font-size: 0.85rem; margin-bottom: 3px; }
.source-item p { color: var(--muted); font-size: 0.76rem; line-height: 1.55; }

/* Detail modal content */
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-right: 34px; }
.detail-head h2 { padding-right: 0; font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
.detail-city { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.detail-city .icon { color: var(--accent); }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.detail-field { padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-soft); min-width: 0; }
.detail-field .label { display: flex; align-items: center; gap: 5px; color: var(--faint); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.detail-field .value { margin-top: 4px; font-size: 0.82rem; font-weight: 650; overflow-wrap: anywhere; }
.detail-field.full { grid-column: 1 / -1; }
.detail-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding: 14px; border: 1px solid rgba(52, 211, 153, 0.2); border-radius: 13px; background: var(--accent-soft); }
.detail-phone .phone-big { color: var(--accent); font-family: var(--font-display); font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; letter-spacing: -0.03em; }
.detail-phone .actions { display: flex; gap: 7px; margin-left: auto; }
.detail-phone .btn { min-height: 36px; padding: 0 11px; font-size: 0.74rem; }
.detail-note { margin-top: 18px; color: var(--faint); font-size: 0.7rem; line-height: 1.6; }
.detail-map-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 0.78rem; font-weight: 750; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Toast / noscript
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 2000;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 16px;
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: 10px;
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { position: fixed; inset: auto 20px 20px; z-index: 3000; padding: 14px 18px; border-radius: 12px; background: var(--rose); color: #1f0710; font-weight: 700; text-align: center; }

/* --------------------------------------------------------------------------
   Leaflet overrides
   -------------------------------------------------------------------------- */

.leaflet-container { font-family: var(--font-body); background: var(--bg-soft); }
[data-theme="dark"] .leaflet-tile-pane { filter: grayscale(0.9) invert(1) brightness(0.86) contrast(1.05) saturate(0.2); }
.leaflet-control-zoom a { background: var(--panel-solid) !important; color: var(--text) !important; border-color: var(--line) !important; }
.leaflet-control-zoom a:hover { background: var(--panel-soft) !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--panel-solid) 76%, transparent) !important; color: var(--faint) !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel-solid); color: var(--text); box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.leaflet-popup-content-wrapper { border-radius: 13px; }
.leaflet-popup-content { margin: 12px 14px; font-size: 0.78rem; line-height: 1.45; }
.leaflet-popup-close-button { color: var(--muted) !important; }
.popup-name { font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; letter-spacing: -0.02em; margin-bottom: 2px; }
.popup-city { color: var(--muted); font-size: 0.7rem; margin-bottom: 7px; }
.popup-phone { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 800; font-size: 0.78rem; margin-bottom: 7px; }
.popup-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 0.68rem; font-weight: 750; }
.popup-btn:hover { color: var(--text); border-color: var(--line-strong); }

.cluster-badge {
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 88%, #052e24);
  color: #03231b;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.16), 0 8px 22px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.55);
}
[data-theme="light"] .cluster-badge { color: #fff; border-color: rgba(255, 255, 255, 0.8); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; gap: 38px; }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-main { grid-column: span 1; }
  .stat-main .stat-value { font-size: clamp(1.7rem, 2.6vw, 2.45rem); }
  .workspace { grid-template-columns: 1fr 1fr; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .insight-card:first-child { grid-column: span 2; }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .map-panel { position: relative; top: 0; height: 460px; }
  .results-panel { min-height: 0; }
  .filters { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 0.6fr)); }
  .search-field { grid-column: 1 / -1; }
  .switch-field { grid-column: span 2; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card:first-child { grid-column: auto; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --topbar-h: 66px; }
  .topbar { padding: 0 18px; gap: 12px; }
  .brand-text small { display: none; }
  .btn-export span { display: none; }
  .btn-export { width: 42px; padding: 0; }
  .hero { width: calc(100% - 36px); padding-top: 44px; }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 3.4rem); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat-main { grid-column: span 2; }
  .hero-stats .stat-card:last-child { grid-column: span 2; }
  .explorer, .insights, .site-footer { width: calc(100% - 36px); }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .switch-field { grid-column: 1 / -1; }
  .reset-btn { grid-column: 1 / -1; }
  .map-panel { height: 380px; }
  .map-legend { gap: 9px; font-size: 0.62rem; }
  .map-attrib { display: none; }
  .city-bar { grid-template-columns: 76px minmax(0, 1fr) 40px; }
  .source-chart { flex-direction: column; align-items: flex-start; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-phone .actions { margin-left: 0; }
  .cta-band { width: calc(100% - 36px); }
  .cta-band .btn { width: 100%; }
  .footer-meta { flex-direction: column; gap: 5px; }
}

@media (max-width: 460px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats .stat-main { grid-column: auto; }
  .hero-stats .stat-card:last-child { grid-column: auto; }
  .filters { grid-template-columns: 1fr; }
  .search-field, .switch-field, .reset-btn { grid-column: auto; }
  .select-field select { min-height: 44px; }
  .section-head h2 { font-size: 1.55rem; }
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .sort-field { width: 100%; justify-content: space-between; }
  .sort-field select { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
