/* YYC Near Me: calm, accessible civic utility */
:root {
  --navy-950: #0b2639;
  --navy-900: #12304a;
  --navy-800: #1a405e;
  --sky-700: #17658a;
  --sky-600: #277da1;
  --sky-100: #e6f3f8;
  --teal-700: #126b69;
  --teal-600: #187f7c;
  --teal-100: #e5f5f3;
  --amber-700: #a65306;
  --amber-600: #d06b08;
  --amber-100: #fff3df;
  --red-700: #9f251c;
  --red-600: #b42318;
  --red-100: #fee9e7;
  --purple-700: #684298;
  --purple-100: #f2eafa;
  --snow: #f5f8fa;
  --white: #ffffff;
  --slate-950: #182431;
  --slate-800: #283847;
  --slate-700: #405261;
  --slate-600: #566978;
  --slate-500: #566978;
  --slate-400: #9aa9b4;
  --slate-300: #c5d0d8;
  --slate-200: #dfe6ea;
  --slate-100: #eef3f5;
  --focus: #1477b8;
  --shadow-sm: 0 1px 2px rgba(11, 38, 57, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 38, 57, 0.11);
  --radius-sm: 8px;
  --radius-md: 13px;
  --radius-lg: 20px;
  --topbar-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-950);
  background: var(--snow);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--snow); color: var(--slate-950); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 68%, white);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: white;
  text-decoration: none;
  font-weight: 750;
}
.skip-link:focus { top: 12px; }

.offline-banner {
  position: relative;
  z-index: 1100;
  padding: 9px 16px;
  background: var(--amber-100);
  color: #723c06;
  border-bottom: 1px solid #ecc17e;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 680;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--navy-900);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy-900);
  color: #eefbfb;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-mark svg { width: 33px; height: 33px; }
.brand strong { display: block; font-size: 1rem; letter-spacing: -0.02em; line-height: 1.2; }
.brand small { display: block; margin-top: 2px; color: var(--slate-600); font-size: 0.72rem; letter-spacing: 0.01em; }

.desktop-nav { display: flex; align-items: center; gap: 3px; }
.nav-link {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--slate-600);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-link:hover { background: var(--slate-100); color: var(--navy-900); }
.nav-link.is-active { background: var(--teal-100); color: var(--teal-700); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.unofficial-label {
  padding: 5px 9px;
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  color: var(--slate-600);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 760;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.button-primary { background: var(--navy-900); color: white; box-shadow: 0 5px 16px rgba(18, 48, 74, .18); }
.button-primary:hover { background: var(--navy-800); box-shadow: 0 8px 22px rgba(18, 48, 74, .22); }
.button-secondary { background: var(--white); color: var(--navy-900); border-color: var(--slate-300); }
.button-secondary:hover { border-color: var(--navy-800); background: #fbfdfe; }
.button-quiet { background: var(--slate-100); color: var(--navy-900); border-color: var(--slate-200); }
.button-danger { margin-top: 8px; color: var(--red-700); border-color: #e7b4af; background: #fff8f7; }
.button-danger:hover { background: var(--red-100); border-color: #da928a; }
.button-small { min-height: 44px; padding: 0 13px; font-size: 0.82rem; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-700);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

/* Onboarding */
.onboarding { min-height: calc(100vh - var(--topbar-height)); padding: clamp(42px, 7vw, 92px) 28px 30px; overflow: hidden; }
.onboarding-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 108px);
}
.hero-copy { max-width: 590px; }
.hero-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-wrap: balance;
}
.hero-lede {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--slate-600);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.62;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.trust-list { display: grid; gap: 12px; margin: 33px 0 0; padding: 0; list-style: none; color: var(--slate-700); font-size: 0.9rem; }
.trust-list li { display: flex; align-items: center; gap: 10px; }
.trust-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 0.69rem;
  font-weight: 850;
}

.hero-preview {
  position: relative;
  min-height: 610px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(18, 48, 74, 0.16);
  transform: rotate(1.2deg);
}
.hero-preview::before {
  content: "";
  position: absolute;
  inset: -70px -100px auto auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(42, 157, 143, .11);
  filter: blur(2px);
  z-index: -1;
}
.preview-topline { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 5px; font-size: 0.83rem; font-weight: 750; color: var(--navy-900); }
.preview-live { display: flex; align-items: center; gap: 7px; color: var(--teal-700); font-size: 0.75rem; }
.preview-live i { width: 8px; height: 8px; border-radius: 50%; background: #28a777; box-shadow: 0 0 0 4px #dff5eb; }
.preview-map { position: relative; height: 338px; overflow: hidden; border-radius: 18px; background: #e9f0ed; background-image: linear-gradient(30deg, rgba(255,255,255,.4) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.4) 87.5%), linear-gradient(150deg, rgba(255,255,255,.4) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.4) 87.5%); background-size: 70px 120px; }
.preview-road { position: absolute; height: 13px; width: 145%; left: -22%; border: 3px solid white; border-left: 0; border-right: 0; background: #c8d3d3; transform-origin: center; }
.road-one { top: 46%; transform: rotate(-17deg); }
.road-two { top: 27%; transform: rotate(46deg); }
.road-three { top: 72%; transform: rotate(7deg); }
.preview-radius { position: absolute; left: 50%; top: 49%; width: 220px; height: 220px; transform: translate(-50%,-50%); border: 2px dashed rgba(24,127,124,.6); border-radius: 50%; background: rgba(42,157,143,.08); }
.preview-pin { position: absolute; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; box-shadow: 0 5px 12px rgba(18,48,74,.25); color: white; font-size: 0.75rem; font-weight: 850; }
.pin-home { left: 47%; top: 44%; background: var(--navy-900); }
.pin-road { left: 67%; top: 28%; background: var(--amber-600); }
.pin-dev { left: 29%; top: 60%; background: var(--teal-600); }
.pin-notice { left: 65%; top: 71%; background: var(--purple-700); }
.preview-cards { position: relative; display: grid; gap: 10px; margin: -25px 16px 0; }
.preview-cards article { display: grid; gap: 7px; padding: 15px 17px; border: 1px solid var(--slate-200); border-radius: 13px; background: white; box-shadow: var(--shadow-md); }
.preview-cards article:nth-child(2) { margin-left: 28px; }
.preview-cards strong { color: var(--navy-950); font-size: 0.94rem; }
.preview-cards small { color: var(--slate-600); font-size: 0.75rem; }
.onboarding-footnote { width: min(1180px,100%); margin: 54px auto 0; color: var(--slate-500); font-size: 0.75rem; }

/* Workspace */
.workspace { height: calc(100vh - var(--topbar-height)); min-height: 620px; display: grid; grid-template-columns: minmax(390px, 470px) 1fr; background: white; }
.feed-panel { position: relative; z-index: 3; overflow-y: auto; border-right: 1px solid var(--slate-200); background: var(--snow); padding: 28px 24px 48px; scrollbar-gutter: stable; }
.feed-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.feed-header h1 { margin: 0; color: var(--navy-950); font-size: 1.75rem; line-height: 1.12; letter-spacing: -0.035em; }
.place-context { margin: 7px 0 0; color: var(--slate-600); font-size: 0.85rem; }
.icon-button { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--slate-300); border-radius: 10px; background: white; cursor: pointer; }
.icon-button:hover { border-color: var(--teal-600); color: var(--teal-700); }
.icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.refresh-row { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--slate-200); color: var(--slate-500); font-size: 0.76rem; }
.refresh-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.text-button { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border: 0; border-radius: 7px; background: transparent; color: var(--sky-700); text-decoration: none; font-size: 0.78rem; font-weight: 760; cursor: pointer; }
.text-button:hover { background: var(--sky-100); }
.text-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.text-button.is-spinning svg { animation: rotate 900ms linear infinite; }

.source-warning { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 0; padding: 13px 14px; border: 1px solid #e9bc73; border-radius: 10px; background: var(--amber-100); color: #673905; }
.source-warning strong { font-size: 0.82rem; }
.source-warning p { margin: 4px 0 0; font-size: 0.74rem; line-height: 1.4; }

.summary-block { display: grid; grid-template-columns: auto 1fr; gap: 17px; align-items: center; margin: 18px 0 16px; padding: 17px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.summary-number { min-width: 48px; margin: 0; color: var(--navy-900); font-size: 2.3rem; line-height: 1; font-weight: 780; letter-spacing: -0.055em; }
.summary-block h2 { margin: 0; color: var(--slate-700); font-size: 0.86rem; line-height: 1.3; font-weight: 700; }
.summary-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 12px; border-top: 1px solid var(--slate-100); }
.summary-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px; background: var(--slate-100); color: var(--slate-700); font-size: 0.7rem; font-weight: 700; }
.summary-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.filter-bar { display: flex; gap: 7px; padding: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip { min-height: 44px; padding: 0 13px; border: 1px solid var(--slate-300); border-radius: 999px; background: white; color: var(--slate-600); font-size: 0.76rem; font-weight: 750; white-space: nowrap; cursor: pointer; }
.filter-chip:hover { border-color: var(--teal-600); color: var(--teal-700); }
.filter-chip.is-active { border-color: var(--navy-900); background: var(--navy-900); color: white; }

.feed-list { display: grid; gap: 11px; }
.update-card { position: relative; overflow: hidden; padding: 16px 16px 14px 18px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.update-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--category-color, var(--sky-600)); }
.update-card:hover { border-color: var(--slate-300); box-shadow: 0 9px 24px rgba(18,48,74,.09); transform: translateY(-1px); }
.update-card.is-selected { border-color: var(--teal-600); box-shadow: 0 0 0 2px rgba(24,127,124,.12); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-badge { width: max-content; display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; background: var(--category-soft, var(--sky-100)); color: var(--category-ink, var(--sky-700)); font-size: 0.65rem; line-height: 1; font-weight: 820; letter-spacing: 0.025em; }
.card-distance { color: var(--slate-500); font-size: 0.7rem; font-weight: 670; }
.update-card h3 { margin: 11px 0 0; color: var(--navy-950); font-size: 1rem; line-height: 1.36; letter-spacing: -0.012em; }
.card-description { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: var(--slate-600); font-size: 0.79rem; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-details { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; color: var(--slate-500); font-size: 0.69rem; }
.card-details span { display: inline-flex; align-items: center; gap: 5px; }
.card-details span::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--slate-400); border-radius: 50%; }
.card-actions { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--slate-100); }
.card-actions button, .card-actions a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border: 0; border-radius: 7px; background: var(--slate-100); color: var(--navy-900); text-decoration: none; font-size: 0.72rem; font-weight: 760; cursor: pointer; }
.card-actions button:hover, .card-actions a:hover { background: var(--teal-100); color: var(--teal-700); }
.card-actions a::after { content: "↗"; margin-left: 5px; font-size: .8rem; }

.category-construction { --category-color: var(--amber-700); --category-soft: var(--amber-100); --category-ink: var(--amber-700); }
.category-traffic { --category-color: var(--red-600); --category-soft: var(--red-100); --category-ink: var(--red-700); }
.category-development { --category-color: var(--teal-600); --category-soft: var(--teal-100); --category-ink: var(--teal-700); }
.category-landuse { --category-color: var(--navy-800); --category-soft: #e8f0f5; --category-ink: var(--navy-800); }
.category-notice { --category-color: var(--purple-700); --category-soft: var(--purple-100); --category-ink: var(--purple-700); }

.loading-list > p { margin: 7px 0 12px; color: var(--slate-600); font-size: .8rem; }
.skeleton-card { height: 178px; margin-bottom: 11px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: linear-gradient(90deg, #fff 0%, #edf2f4 48%, #fff 100%); background-size: 230% 100%; animation: shimmer 1.35s infinite linear; }
.empty-state { margin: 22px 0; padding: 34px 24px; border: 1px dashed var(--slate-300); border-radius: var(--radius-md); background: white; text-align: center; }
.empty-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); font-weight: 850; }
.empty-state h2 { margin: 0; font-size: 1rem; }
.empty-state p { margin: 8px auto 16px; max-width: 320px; color: var(--slate-600); font-size: .8rem; line-height: 1.5; }

.map-panel { position: relative; min-width: 0; background: #dfe8e5; }
#map { width: 100%; height: 100%; min-height: 560px; z-index: 1; }
.map-fallback { position: absolute; inset: 50% auto auto 50%; z-index: 2; transform: translate(-50%,-50%); padding: 24px; border-radius: 12px; background: white; text-align: center; box-shadow: var(--shadow-md); }
.map-fallback p { margin: 7px 0 0; color: var(--slate-600); font-size: .8rem; }
.map-legend { position: absolute; z-index: 500; top: 16px; right: 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 430px; padding: 9px; border: 1px solid rgba(197,208,216,.85); border-radius: 11px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.map-legend span { display: flex; align-items: center; gap: 5px; color: var(--slate-700); font-size: .67rem; font-weight: 720; }
.legend-dot { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--category-color); color: white; font-style: normal; font-size: .6rem; font-weight: 850; }
.map-disclaimer { position: absolute; z-index: 500; left: 16px; bottom: 16px; max-width: 420px; margin: 0; padding: 9px 11px; border: 1px solid rgba(197,208,216,.85); border-radius: 9px; background: rgba(255,255,255,.94); color: var(--slate-600); font-size: .67rem; line-height: 1.35; box-shadow: var(--shadow-sm); }

.civic-marker { position: relative; border: 0 !important; background: transparent !important; }
.civic-marker span { position: relative; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; background: var(--category-color, var(--navy-900)); color: white; box-shadow: 0 5px 12px rgba(11,38,57,.28); font-size: .7rem; font-weight: 880; }
.civic-marker::after { content: ""; position: absolute; z-index: 1; left: 12px; top: 26px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--category-color, var(--navy-900)); box-shadow: 3px 3px 5px rgba(11,38,57,.12); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 15px 36px rgba(11,38,57,.18); }
.leaflet-popup-content { margin: 15px 16px 16px; }
.map-popup h3 { margin: 9px 0 0; color: var(--navy-950); font: 750 .94rem/1.35 var(--font, inherit); }
.map-popup p { margin: 7px 0 0; color: var(--slate-600); font: .75rem/1.45 var(--font, inherit); }
.map-popup .map-popup-meta { color: var(--slate-500); font-size: .68rem; }
.map-popup-link { display: inline-flex; margin-top: 11px; color: var(--teal-700); font-size: .72rem; font-weight: 780; text-decoration: none; }
.map-popup-link:hover { text-decoration: underline; }
.leaflet-control-attribution { color: #2f4050 !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: #1f526b !important; }

/* Watchlist and About */
.page-view { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 90px; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 25px; border-bottom: 1px solid var(--slate-200); }
.page-header.compact { align-items: start; }
.page-header h1 { margin: 0; color: var(--navy-950); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.055em; line-height: 1; }
.page-header p:not(.eyebrow) { max-width: 620px; margin: 13px 0 0; color: var(--slate-600); line-height: 1.55; }
.watchlist-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 26px; }
.watch-card { position: relative; padding: 20px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.watch-card.is-active { border-color: var(--teal-600); box-shadow: 0 0 0 2px rgba(24,127,124,.09); }
.watch-card .active-tag { position: absolute; top: 17px; right: 17px; padding: 4px 7px; border-radius: 999px; background: var(--teal-100); color: var(--teal-700); font-size: .63rem; font-weight: 800; }
.watch-card h2 { margin: 0; padding-right: 54px; color: var(--navy-950); font-size: 1.15rem; }
.watch-card .watch-area { margin: 7px 0 0; color: var(--slate-600); font-size: .8rem; }
.watch-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.watch-meta span { padding: 6px 8px; border-radius: 7px; background: var(--slate-100); color: var(--slate-700); font-size: .68rem; font-weight: 700; }
.watch-actions { display: flex; gap: 7px; padding-top: 14px; border-top: 1px solid var(--slate-100); }
.watch-actions button { min-height: 44px; padding: 0 11px; border: 1px solid var(--slate-300); border-radius: 8px; background: white; color: var(--navy-900); font-size: .72rem; font-weight: 750; cursor: pointer; }
.watch-actions button:hover { border-color: var(--teal-600); }
.watch-actions .remove-place { margin-left: auto; color: var(--red-700); }
.coming-soon-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 22px; padding: 22px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: linear-gradient(135deg, #eef8f6, #f7fafc); }
.coming-soon-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--navy-900); color: white; font-weight: 850; }
.coming-soon-card h2 { margin: 0; font-size: 1.1rem; }
.coming-soon-card p:not(.eyebrow) { margin: 6px 0 0; color: var(--slate-600); font-size: .8rem; line-height: 1.48; }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 26px; }
.about-grid .source-card { grid-column: 1 / -1; min-height: 220px; }
.info-card { min-height: 285px; padding: 22px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: white; }
.info-number { color: var(--teal-600); font-size: .7rem; font-weight: 850; letter-spacing: .09em; }
.info-card h2 { margin: 33px 0 0; color: var(--navy-950); font-size: 1.2rem; }
.info-card p { color: var(--slate-600); font-size: .82rem; line-height: 1.58; }
.feedback-card .button { margin-top: 8px; }
.info-card .inline-link, .source-card a { color: var(--teal-700); font-weight: 750; text-underline-offset: 3px; }
.source-card ul { display: grid; gap: 10px; margin: 14px 0 0; padding-left: 18px; color: var(--slate-700); font-size: .78rem; }
.legal-footer { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--slate-200); color: var(--slate-500); font-size: .7rem; line-height: 1.5; }
.legal-footer p { margin: 5px 0; }
.legal-footer a { color: var(--teal-700); }

/* Place dialog */
.place-dialog { width: min(590px, calc(100vw - 28px)); max-height: min(850px, calc(100vh - 28px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 18px; background: white; color: var(--slate-950); box-shadow: 0 28px 90px rgba(11,38,57,.28); }
.place-dialog::backdrop { background: rgba(11,38,57,.58); backdrop-filter: blur(5px); }
.place-dialog form { max-height: min(850px, calc(100vh - 28px)); padding: 24px; overflow-y: auto; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dialog-header h2 { margin: 0; color: var(--navy-950); font-size: 1.5rem; letter-spacing: -.035em; }
.dialog-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 9px; background: var(--slate-100); color: var(--slate-600); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--slate-200); color: var(--navy-900); }
.field-label { display: block; margin: 16px 0 7px; color: var(--slate-800); font-size: .77rem; font-weight: 780; }
.text-input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--slate-300); border-radius: 9px; background: white; color: var(--slate-950); }
.text-input::placeholder { color: var(--slate-400); }
.text-input:hover { border-color: var(--slate-400); }
.text-input:focus { border-color: var(--focus); outline: 3px solid rgba(20,119,184,.15); }
.field-help { margin: 6px 0 0; color: var(--slate-500); font-size: .68rem; line-height: 1.4; }
.address-combobox { position: relative; }
.input-status { position: absolute; right: 12px; top: 15px; color: var(--slate-500); font-size: .68rem; pointer-events: none; }
.suggestion-list { position: absolute; z-index: 20; inset: calc(100% + 5px) 0 auto; max-height: 235px; margin: 0; padding: 6px; overflow-y: auto; border: 1px solid var(--slate-300); border-radius: 10px; background: white; box-shadow: var(--shadow-md); list-style: none; }
.suggestion-list li + li { border-top: 1px solid var(--slate-100); }
.suggestion-list button { width: 100%; min-height: 44px; padding: 8px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--slate-800); text-align: left; font-size: .78rem; cursor: pointer; }
.suggestion-list button:hover, .suggestion-list button[aria-selected="true"] { background: var(--teal-100); color: var(--teal-700); }
.location-button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; border: 1px dashed var(--slate-300); border-radius: 9px; background: var(--snow); color: var(--sky-700); font-size: .75rem; font-weight: 760; cursor: pointer; }
.location-button:hover { border-color: var(--sky-600); background: var(--sky-100); }
.location-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.selected-address { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 11px; padding: 11px 12px; border: 1px solid #acd7ce; border-radius: 9px; background: var(--teal-100); }
.selected-address > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-700); color: white; font-size: .7rem; font-weight: 850; }
.selected-address strong { display: block; color: var(--teal-700); font-size: .75rem; }
.selected-address p { margin: 3px 0 0; color: var(--slate-700); font-size: .7rem; }
.form-section { min-width: 0; margin: 21px 0 0; padding: 0; border: 0; }
.form-section legend { margin-bottom: 9px; color: var(--slate-800); font-size: .77rem; font-weight: 780; }
.segmented-control { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.segmented-control label { position: relative; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span { min-height: 44px; display: grid; place-items: center; border: 1px solid var(--slate-300); border-radius: 9px; background: white; color: var(--slate-600); font-size: .75rem; font-weight: 760; cursor: pointer; }
.segmented-control input:checked + span { border-color: var(--navy-900); background: var(--navy-900); color: white; }
.segmented-control input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--focus) 68%, white); outline-offset: 3px; }
.topic-options { display: grid; gap: 8px; }
.topic-options label { position: relative; }
.topic-options input { position: absolute; opacity: 0; pointer-events: none; }
.topic-options label > span { min-height: 64px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 11px; align-items: center; padding: 10px 12px; border: 1px solid var(--slate-300); border-radius: 10px; background: white; cursor: pointer; }
.topic-options input:checked + span { border-color: var(--teal-600); background: #f4fbfa; box-shadow: inset 0 0 0 1px rgba(24,127,124,.14); }
.topic-options input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--focus) 68%, white); outline-offset: 3px; }
.topic-options b { align-self: end; font-size: .77rem; }
.topic-options small { align-self: start; color: var(--slate-500); font-size: .67rem; line-height: 1.3; }
.topic-icon { grid-row: 1 / 3; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; color: white; font-style: normal; font-size: .68rem; font-weight: 850; }
.road-icon { background: var(--amber-600); }
.development-icon { background: var(--teal-600); }
.notice-icon { background: var(--purple-700); }
.privacy-note { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 20px; padding: 11px; border-radius: 9px; background: var(--slate-100); }
.privacy-note svg { width: 20px; height: 20px; fill: none; stroke: var(--slate-600); stroke-width: 1.8; }
.privacy-note p { margin: 0; color: var(--slate-600); font-size: .68rem; line-height: 1.45; }
.form-error { margin: 12px 0 0; padding: 9px 10px; border-radius: 8px; background: var(--red-100); color: var(--red-700); font-size: .72rem; }
.dialog-actions { position: sticky; bottom: -24px; display: flex; justify-content: flex-end; gap: 8px; margin: 22px -24px -24px; padding: 15px 24px calc(15px + env(safe-area-inset-bottom)); border-top: 1px solid var(--slate-200); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }

.toast-region { position: fixed; z-index: 2000; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 360px; padding: 12px 14px; border: 1px solid var(--slate-300); border-radius: 10px; background: var(--navy-950); color: white; box-shadow: var(--shadow-md); font-size: .77rem; line-height: 1.4; animation: toast-in 180ms ease-out; }
.noscript-message { margin: 20px; padding: 18px; border-radius: 10px; background: var(--amber-100); color: #673905; }
.mobile-nav { display: none; }

@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 980px) {
  .onboarding-shell { grid-template-columns: 1fr 1fr; gap: 42px; }
  .hero-copy h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); }
  .hero-preview { min-height: 560px; }
  .workspace { grid-template-columns: minmax(350px, 420px) 1fr; }
  .watchlist-grid, .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid .source-card { grid-column: 1 / -1; min-height: 220px; }
}

@media (max-width: 820px) {
  :root { --topbar-height: 62px; }
  body.has-mobile-nav { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; height: var(--topbar-height); padding: 0 15px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand-mark svg { width: 30px; height: 30px; }
  .brand small, .unofficial-label, .desktop-nav { display: none; }
  .onboarding { min-height: auto; padding: 40px 18px 36px; }
  .onboarding-shell { grid-template-columns: 1fr; gap: 45px; }
  .hero-copy { max-width: 680px; }
  .hero-copy h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-preview { width: min(570px,100%); min-height: 555px; margin: 0 auto; transform: none; }
  .onboarding-footnote { margin-top: 36px; }

  .workspace { height: calc(100vh - var(--topbar-height) - 68px - env(safe-area-inset-bottom)); min-height: 560px; display: block; }
  .feed-panel { height: 100%; border-right: 0; padding: 20px 16px 32px; }
  .map-panel { height: 100%; }
  #map { min-height: 100%; }
  .workspace[data-mobile-view="nearby"] .map-panel { display: none; }
  .workspace[data-mobile-view="map"] .feed-panel { display: none; }
  .map-legend { top: 11px; right: 11px; max-width: calc(100% - 22px); }
  .map-disclaimer { left: 11px; right: 65px; bottom: 11px; max-width: none; }
  .mobile-nav { position: fixed; z-index: 950; inset: auto 0 0; height: calc(68px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); padding: 7px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--slate-200); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }
  .mobile-nav button { min-width: 0; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; border-radius: 9px; background: transparent; color: var(--slate-500); font-size: .62rem; font-weight: 750; cursor: pointer; }
  .mobile-nav button.is-active { background: var(--teal-100); color: var(--teal-700); }
  .mobile-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .page-view { width: min(100% - 30px, 700px); padding: 35px 0 50px; }
  .page-header { align-items: flex-start; }
  .watchlist-grid, .about-grid { grid-template-columns: 1fr; }
  .about-grid .source-card { grid-column: auto; }
  .info-card { min-height: 230px; }
  .toast-region { left: 14px; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
}

@media (max-width: 560px) {
  .header-actions .button { display: none; }
  .hero-copy h1 { font-size: clamp(2.85rem, 15.5vw, 4.2rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-preview { min-height: 500px; padding: 12px; border-radius: 20px; }
  .preview-map { height: 300px; }
  .preview-radius { width: 190px; height: 190px; }
  .preview-cards { margin-left: 8px; margin-right: 8px; }
  .preview-cards article:nth-child(2) { margin-left: 14px; }
  .feed-header h1 { font-size: 1.55rem; }
  .summary-block { padding: 14px; }
  .summary-number { font-size: 2rem; }
  .page-header { display: grid; }
  .page-header .button { width: 100%; }
  .coming-soon-card { grid-template-columns: 1fr; }
  .place-dialog { width: 100vw; max-height: 94vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .place-dialog form { max-height: 94vh; padding: 20px 17px; }
  .dialog-actions { bottom: -20px; margin: 20px -17px -20px; padding: 13px 17px calc(13px + env(safe-area-inset-bottom)); }
  .dialog-actions .button { flex: 1; padding: 0 12px; }
}

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

@media (forced-colors: active) {
  .mini-badge, .filter-chip, .legend-dot, .topic-icon, .preview-pin { border: 1px solid CanvasText; }
  .update-card::before { width: 7px; }
}

.results-limit { margin: 15px 0 4px; padding: 14px 16px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: var(--slate-100); color: var(--slate-600); font-size: .78rem; line-height: 1.5; }
