:root {
  color-scheme: dark;
  --bg: #080c16;
  --surface: #101725;
  --surface-2: #151e30;
  --text: #edf1f8;
  --muted: #939fb6;
  --faint: #71819b;
  --line: #ffffff12;
  --blue: #1447e6;
  --purple: #7008e7;
  --gradient: linear-gradient(110deg, #1447e6, #7008e7);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.6 Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button {
  border: 0;
}
img,
svg {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.2;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 17px;
}
p {
  color: var(--muted);
}
input,
select {
  min-width: 0;
}
input:focus,
select:focus {
  outline: none;
  border-color: #7561fa !important;
  box-shadow: 0 0 0 3px #7008e720;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
}
input[type="checkbox"] {
  accent-color: #6b51ff;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
span[data-icon] {
  display: inline-flex;
}
.page-width {
  width: min(1480px, calc(100% - 64px));
  margin-inline: auto;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 10000;
  background: var(--blue);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: 80px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
  background: #090e19f2;
  position: sticky;
  top: 0;
  z-index: 1100;
  backdrop-filter: blur(18px);
}
.atlas-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid !important;
  place-items: center;
  border-radius: 13px;
  background: var(--gradient);
  box-shadow: 0 5px 25px #5c37fa25;
}
.brand-mark .icon {
  width: 26px;
  height: 26px;
}
.atlas-brand > span:last-child {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -1.5px;
  line-height: 1;
}
.brand-dot {
  color: #9b8cff;
}
.atlas-brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 7px;
}
.main-nav {
  display: flex;
  gap: 6px;
  margin-left: 35px;
  align-items: center;
  height: 100%;
}
.main-nav > a,
.main-nav > button {
  background: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  border-radius: 10px;
  transition:
    background 0.2s,
    color 0.2s;
}
.main-nav > a:hover,
.main-nav > button:hover {
  color: white;
  background: #ffffff06;
}
.main-nav > .active {
  background: #5268ff14;
  color: #b0baff;
}
.main-nav .icon {
  width: 17px;
  height: 17px;
}
.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.labs-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #b2bed3;
  font-weight: 650;
  white-space: nowrap;
}
.labs-link img {
  border-radius: 7px;
}
.labs-link .icon {
  width: 13px;
  height: 13px;
}
.account-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.account-link > img {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-count {
  background: #6755ff30;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 10px;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 32px;
  padding-top: 39px;
  padding-bottom: 26px;
}
.intro-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.intro.has-town {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
}
.intro.has-town .intro-note {
  display: none;
}
.intro.has-town .atlas-search {
  grid-column: 2;
  grid-row: 1;
}
.intro.has-town .search-field {
  min-height: 52px;
  padding: 5px 5px 5px 13px;
  border-radius: 15px;
}
.intro.has-town .search-submit {
  min-height: 40px;
}
.eyebrow,
.overline {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.9px;
  color: #a6b1c9;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.tiny-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9180ff;
  box-shadow: 0 0 10px #9180ff40;
  flex-shrink: 0;
}
.intro h1 {
  font-size: clamp(32px, 3.7vw, 52px);
  font-weight: 800;
  letter-spacing: -2.2px;
}
.intro h1 span {
  background: linear-gradient(110deg, #8ea9ff, #c5a6ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.intro-copy > p {
  font-size: 13px;
  margin-top: 11px;
}
.intro-note {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #c0cadb;
  line-height: 1.7;
  padding-right: 8px;
}
.intro-note > .icon,
.intro-note > span {
  color: #a99bfc;
}
.intro-note small {
  display: block;
  color: var(--faint);
  font-size: 10px;
  font-weight: 400;
}
.explorer {
  display: grid;
  grid-template-columns: 352px minmax(0, 1fr);
  height: 690px;
  height: clamp(580px, 75vh, 840px);
  border: 1px solid #ffffff14;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px #00000030;
  scroll-margin-top: 94px;
  position: relative;
}
.explorer-sidebar {
  background: #101725;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #ffffff0f;
  z-index: 700;
  min-width: 0;
}
.sidebar-head {
  padding: 20px 18px 0;
  position: relative;
}
.atlas-search {
  position: relative;
  grid-column: 1 / -1;
  min-width: 0;
  z-index: 1000;
  scroll-margin-top: 104px;
}
.search-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 650;
  color: #dce3f1;
}
#town-search-form {
  position: relative;
}
.search-field {
  display: flex;
  gap: 10px;
  align-items: center;
  background: linear-gradient(115deg, #131e33, #15152b);
  border: 1px solid #8271f44d;
  border-radius: 15px;
  padding: 5px 5px 5px 15px;
  min-height: 56px;
  box-shadow: 0 10px 35px #00000020;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.search-field:focus-within {
  border-color: #7862ee;
  box-shadow:
    0 0 0 3px #7862ee20,
    0 10px 35px #00000020;
}
.search-field > .icon,
.search-field > span {
  color: #a699ff;
  flex-shrink: 0;
}
.search-field > span .icon {
  width: 20px;
  height: 20px;
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  color: white;
  font-size: 16px;
  outline: none;
  box-shadow: none;
  padding: 8px 0;
}
.search-field input::placeholder {
  color: #a0aac0;
}
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search-submit {
  min-height: 44px;
  padding-inline: 17px;
  flex-shrink: 0;
  border-radius: 12px;
}
.search-clear {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  color: #b7bfd3;
  border-radius: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.search-clear:hover {
  background: #ffffff0d;
  color: white;
}
.search-clear .icon {
  width: 18px;
  height: 18px;
}
.search-hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.search-field kbd {
  font-size: 10px;
  border: 1px solid #ffffff16;
  color: #78859f;
  border-radius: 4px;
  width: 19px;
  flex-shrink: 0;
  margin-right: 10px;
  text-align: center;
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #182236;
  border: 1px solid #414567;
  border-radius: 13px;
  box-shadow: 0 16px 40px #0009;
  z-index: 1000;
  max-height: min(370px, 46svh);
  overflow: auto;
  padding: 5px;
}
.search-results a,
.search-results > button {
  display: flex;
  padding: 13px 15px;
  border-radius: 8px;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  width: 100%;
  text-align: left;
  background: transparent;
}
.search-results a:hover,
.search-results a:focus,
.search-results > button:hover,
.search-results > button:focus-visible {
  background: #6474ff22;
}
.search-results strong {
  font-weight: 650;
}
.search-results small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.search-results > .status-block {
  padding: 10px;
}
.search-results > button > span { min-width: 0; overflow-wrap: anywhere; }
.search-results .search-result-kind { color: #c4b5fd; margin-top: 5px; }
.search-attribution { padding: 8px 12px; color: var(--muted); font-size: 10px; }
.search-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 5px; min-height: 26px; }
.search-help { position: relative; flex: 0 0 auto; }
.search-help summary { display: grid; place-items: center; list-style: none; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.search-help summary::-webkit-details-marker { display: none; }
.search-help summary .icon { width: 15px; height: 15px; }
.search-help summary:hover, .search-help[open] summary { color: #c4b5fd; background: #8b5cf617; }
.search-help > div { position: absolute; right: 0; top: calc(100% + 5px); width: min(330px, calc(100vw - 44px)); padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #182236; box-shadow: 0 12px 32px #0007; z-index: 1001; font-size: 11px; line-height: 1.7; color: var(--muted); }
.search-help strong { color: #e4e7f2; font-size: 12px; }
.search-help p { margin: 7px 0 0; }
.address-selection { display: flex; align-items: center; gap: 9px; margin-top: 7px; padding: 6px 8px 6px 12px; border: 1px solid #8b5cf634; background: #8b5cf609; border-radius: 12px; min-height: 58px; }
.address-selection > .icon { flex: 0 0 auto; color: #bcaaff; width: 18px; height: 18px; }
.address-selection-copy { flex: 1; min-width: 0; }
.address-selection strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-selection small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-detail-button, .address-clear-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 0 0 auto; min-height: 40px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.address-detail-button { padding: 0 8px; color: #bcaaff; font-size: 11px; font-weight: 650; }
.address-clear-button { width: 36px; color: var(--muted); }
.address-detail-button:hover, .address-clear-button:hover { color: white; background: #8b5cf61a; }
.address-detail-button .icon, .address-clear-button .icon { width: 16px; height: 16px; }
.address-marker { display: grid; place-items: center; border-radius: 14px 14px 14px 3px; border: 2px solid #fff; color: #fff; background: linear-gradient(135deg,#2563eb,#7c3aed); box-shadow: 0 5px 18px #15102c66; }
.address-marker .icon { width: 24px; height: 24px; }
.map-location > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-tabs,
.stats-tabs {
  display: flex;
  position: relative;
  background: #080e19;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-top: 17px;
  isolation: isolate;
}
.sidebar-tabs {
  margin-top: 0;
}
.sidebar-tabs > button,
.stats-tabs > button {
  flex: 1;
  background: transparent;
  position: relative;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 650;
  color: #8d9bb3;
  z-index: 1;
  white-space: nowrap;
  transition: color 0.2s;
}
.sidebar-tabs > button[aria-selected="true"],
.stats-tabs > button[aria-selected="true"] {
  color: #fff;
}
.tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 6px);
  border-radius: 9px;
  background: var(--gradient);
  box-shadow: 0 4px 12px #3426b51a;
  transition:
    left 0.3s var(--ease),
    width 0.3s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.sidebar-scroll {
  padding: 23px 18px 20px;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #303b53 transparent;
}
.sidebar-scroll section:not([hidden]),
[role="tabpanel"]:not([hidden]) {
  animation: panel-in 0.25s var(--ease);
}
@keyframes panel-in {
  from {
    opacity: 0.2;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
}
.filter-heading h2 {
  font-size: 19px;
  margin-top: 6px;
}
.filter-heading .overline {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--faint);
}
.text-button {
  background: none;
  color: #a49afe;
  font-size: 10px;
  font-weight: 600;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.text-button .icon {
  width: 13px;
  height: 13px;
}
.category-group {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.category-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 11px;
  font-weight: 650;
  color: #bec9dc;
}
.category-group summary::-webkit-details-marker {
  display: none;
}
.category-group summary > .icon {
  margin-left: auto;
  width: 13px;
  height: 13px;
  color: var(--faint);
  transition: transform 0.25s;
}
.category-group[open] summary > .icon {
  transform: rotate(180deg);
}
.category-group summary small {
  font-size: 9px;
  color: #8590aa;
  margin-left: auto;
}
.category-group summary small + .icon {
  margin-left: 0;
}
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px 0 11px;
}
.category-button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 45px;
  padding: 7px;
  background: #ffffff03;
  border: 1px solid #ffffff0b;
  border-radius: 9px;
  text-align: left;
  transition:
    border-color 0.2s,
    background 0.2s;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: #a5b0c6;
}
.category-button .icon {
  width: 16px;
  height: 16px;
  color: var(--category-color);
}
.category-button:hover {
  background: #ffffff08;
  border-color: #ffffff20;
}
.category-button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--category-color) 11%, transparent);
  border-color: color-mix(in srgb, var(--category-color) 40%, transparent);
  color: #eaf0ff;
}
.category-button > span {
  min-width: 0;
}
.scope-controls {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.scope-controls > label:first-child {
  font-size: 10px;
  font-weight: 650;
  color: #aebad0;
}
select,
.plain-input {
  border: 1px solid #ffffff16;
  background: #0a111f;
  color: #ccd5e6;
  padding: 10px 11px;
  border-radius: 10px;
  outline: none;
  font-size: 11px;
}
select {
  color-scheme: dark;
}
.plain-input {
  width: 100%;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.check-label input {
  margin: 0;
  width: 14px;
  height: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  transition:
    background 0.2s,
    opacity 0.2s,
    transform 0.2s;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button.primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 5px 20px #4a31e31a;
}
.button.primary:hover {
  opacity: 0.9;
}
.button.secondary {
  background: #151e30;
  border: 1px solid #ffffff12;
  color: #c7d2e7;
}
.button.secondary:hover {
  background: #1b2840;
}
.full-width {
  width: 100%;
}
.sidebar-foot {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: start;
  padding: 13px 18px;
  font-size: 9px;
  line-height: 1.6;
  color: #8491aa;
}
.sidebar-foot .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}
.status-block {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  padding: 15px 0;
}
.status-block.error,
.notice {
  color: #ffc4a2;
}
.status-block .text-button {
  margin-left: 4px;
}
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 7px;
  font-size: 10px;
  color: #a1adc3;
}
.place-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  width: 100%;
  background: none;
  text-align: left;
}
.place-row:hover strong {
  color: #c0b8ff;
}
.place-row .place-symbol {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--category-color) 13%, transparent);
  color: var(--category-color);
}
.place-row .place-symbol .icon {
  width: 17px;
  height: 17px;
}
.place-row .place-copy {
  flex: 1;
  min-width: 0;
}
.place-row strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #d9e1ef;
}
.place-row small {
  display: block;
  font-size: 9px;
  color: #8796b0;
}
.place-distance {
  font-size: 9px;
  color: #a1adc5;
  white-space: nowrap;
}
.town-title .overline {
  font-size: 9px;
}
.town-title h2 {
  font-size: 24px;
  margin: 8px 0;
}
.town-title p {
  font-size: 11px;
}
.summary-population {
  background: linear-gradient(130deg, #234af015, #873df513);
  border: 1px solid #7962ff26;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
}
.summary-population strong {
  display: block;
  font-size: 38px;
  letter-spacing: -1.5px;
  line-height: 1.3;
}
.summary-population small {
  color: #a2b0c9;
  font-size: 10px;
}
.summary-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 18px 0;
  font-size: 12px;
}
.summary-facts dt {
  color: var(--faint);
  font-size: 10px;
}
.summary-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.town-actions {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.empty-state {
  text-align: center;
  padding: 35px 12px;
  color: #a49cfe;
}
.empty-state > .icon {
  width: 32px;
  height: 32px;
}
.empty-state h2 {
  font-size: 19px;
  color: var(--text);
  margin: 16px 0 10px;
}
.empty-state p {
  font-size: 12px;
}
.boundary-status {
  position: absolute;
  top: 66px;
  left: 18px;
  max-width: calc(100% - 96px);
  z-index: 650;
  padding: 9px 12px;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  background: #151c30ed;
  color: #e3dfff;
  font-size: 11px;
  line-height: 1.5;
}
.navigation-options {
  margin: 18px 0;
}
.navigation-options h3 {
  margin-bottom: 12px;
  font-size: 14px;
}
.navigation-options p {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.navigation-providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.navigation-provider {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid #ffffff14;
  background: #ffffff04;
  border-radius: 12px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.navigation-provider:hover {
  border-color: #8b75e680;
  background: #7255df18;
}
.navigation-provider > .icon {
  color: #a99af7;
  flex-shrink: 0;
}
.navigation-provider > .icon:last-child {
  margin-left: auto;
  width: 14px;
}
.navigation-provider span {
  font-size: 10px;
  color: var(--muted);
}
.navigation-provider strong {
  display: block;
  font-size: 12px;
  color: #f1f3fb;
}
@media (max-width: 480px) {
  .navigation-providers {
    grid-template-columns: 1fr;
  }
}
.map-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #dce4df;
  isolation: isolate;
}
#map {
  width: 100%;
  height: 100%;
  background: #dce4df;
  z-index: 0;
  color: #15203b;
}
.map-topbar {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 65px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  z-index: 600;
  pointer-events: none;
}
.map-topbar > * {
  pointer-events: auto;
}
.map-location {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  background: #0d172bed;
  backdrop-filter: blur(12px);
  border: 1px solid #ffffff18;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 650;
  box-shadow: 0 3px 12px #0002;
}
.map-button {
  background: #101a2fee;
  color: white;
  font-size: 10px;
  padding: 9px 13px;
  box-shadow: 0 4px 15px #0002;
  min-height: 35px;
}
.map-controls {
  position: absolute;
  z-index: 600;
  right: 16px;
  top: 105px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.map-controls button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #ffffff25;
  background: #101a2ff0;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 12px #0002;
  transition: background 0.2s;
}
.map-controls button:hover,
.map-controls button[aria-pressed="true"] {
  background: #6244ed;
}
.map-controls .icon {
  width: 17px;
  height: 17px;
}
.leaflet-control-zoom {
  border: 0 !important;
  margin: 18px 16px 0 0 !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 3px 12px #0002 !important;
}
.leaflet-container .leaflet-municipality-pane > svg {
  /* Leaflet's SVG viewport is wider than the map; the page's image rule must not shrink it. */
  max-width: none !important;
  max-height: none !important;
}
.leaflet-control-zoom a {
  background: #101a2ff0 !important;
  color: white !important;
  width: 36px !important;
  height: 32px !important;
  line-height: 32px !important;
  border-color: #ffffff1a !important;
  font:
    18px/32px Inter,
    sans-serif !important;
}
.leaflet-control-zoom a:hover {
  background: #463e92 !important;
}
.leaflet-control-attribution {
  font-size: 9px !important;
  background: #ffffffde !important;
  color: #536075 !important;
  border-top-left-radius: 5px;
  padding: 3px 7px !important;
}
.leaflet-control-attribution a {
  color: #2844ab !important;
}
.leaflet-control-scale {
  margin-bottom: 10px !important;
  margin-left: 15px !important;
}
.leaflet-control-scale-line {
  font-family: Inter, sans-serif;
  border-color: #334155 !important;
  color: #334155 !important;
  background: #fffc !important;
  font-size: 9px !important;
}
.leaflet-tooltip {
  font-family: Inter, sans-serif !important;
  font-size: 11px !important;
  color: #102040 !important;
  border-radius: 7px !important;
  border: 0 !important;
  padding: 7px 10px !important;
}
.map-marker {
  background: none;
  border: 0;
}
.marker-symbol {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--marker-color);
  color: white;
  box-shadow: 0 2px 8px #0004;
  border: 2px solid #fff;
}
.marker-symbol .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
.cluster-marker {
  background: #4338ca !important;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  text-align: center;
  line-height: 32px;
  font:
    700 11px/32px Inter,
    sans-serif;
  box-shadow: 0 3px 9px #0003;
}
.map-welcome {
  position: absolute;
  bottom: 32px;
  left: 28px;
  background: #0b1426ed;
  backdrop-filter: blur(18px);
  padding: 25px;
  border-radius: 18px;
  border: 1px solid #ffffff22;
  max-width: 340px;
  box-shadow: 0 15px 30px #0b142620;
  z-index: 500;
}
.map-welcome h2 {
  font-size: 25px;
  max-width: 230px;
  margin: 10px 0;
}
.map-welcome p {
  font-size: 11px;
}
.map-welcome .overline {
  font-size: 8px;
  color: #b9b0ff;
}
.quick-towns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 21px;
}
.quick-towns a {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff16;
  border-radius: 9px;
  padding: 7px 9px;
  white-space: nowrap;
}
.quick-towns a:hover {
  background: #6b50ff25;
  border-color: #8b75fa;
}
.quick-towns .icon {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: #b2a4ff;
}
.measurement {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  background: #0d172bf2;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90%;
  box-shadow: 0 3px 12px #0003;
}
.measurement button {
  background: none;
  padding: 0;
  color: #bfb4ff;
}
.measurement .icon {
  width: 16px;
  height: 16px;
}
.map-legend {
  position: absolute;
  left: 15px;
  bottom: 34px;
  z-index: 400;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  max-width: calc(100% - 80px);
  pointer-events: none;
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  background: #0e192ceb;
  color: #d9e1f0;
  padding: 5px 8px;
  border-radius: 7px;
}
.map-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.map-error {
  position: absolute;
  top: 75px;
  left: 18px;
  right: 70px;
  padding: 10px 14px;
  background: #4a271cf2;
  border: 1px solid #eeae7255;
  border-radius: 11px;
  color: #ffdbbf;
  font-size: 11px;
  z-index: 600;
}
.mobile-panel-toggle {
  display: none;
}
.statistics {
  padding-top: 52px;
  scroll-margin-top: 104px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}
.section-heading h2 {
  margin: 8px 0;
}
.section-heading p {
  font-size: 12px;
}
.section-heading .overline {
  color: #9099b5;
  font-size: 9px;
}
.export-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.export-actions .button {
  font-size: 10px;
  min-height: 35px;
  padding: 8px 11px;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.metric-card > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #a4b0c6;
}
.metric-card > span .icon {
  width: 16px;
  height: 16px;
  color: #9584ed;
}
.metric-card strong {
  font-size: 29px;
  display: block;
  letter-spacing: -0.9px;
  margin: 9px 0 4px;
  line-height: 1.3;
}
.metric-card small {
  display: block;
  font-size: 10px;
  color: var(--faint);
}
.metric-card small.positive {
  color: #5cd7b4;
}
.metric-card small.negative {
  color: #fca1a7;
}
.stats-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 5px;
  gap: 5px;
}
.stats-tabs > button {
  padding: 10px 18px;
  font-size: 11px;
}
.stats-tabs .tab-indicator {
  width: calc(33.333% - 8px);
  top: 5px;
  bottom: 5px;
  left: 5px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 16px;
}
.data-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 24px;
  min-width: 0;
}
.data-card > h3 {
  margin-bottom: 18px;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.card-heading p {
  font-size: 10px;
  margin-top: 7px;
}
.card-heading select {
  padding: 6px;
  font-size: 10px;
}
.chart-container {
  padding: 23px 0 6px;
  min-height: 200px;
}
.series-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.series-svg text {
  fill: #92a0ba;
  font:
    10px Inter,
    sans-serif;
}
.series-svg .chart-grid {
  stroke: #ffffff0b;
  stroke-width: 1;
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--faint);
  font-size: 9px;
}
.sex-total {
  padding-top: 16px;
  font-size: 33px;
  font-weight: 750;
  letter-spacing: -1px;
}
.sex-bar {
  display: flex;
  gap: 3px;
  height: 11px;
  border-radius: 5px;
  overflow: hidden;
  margin: 18px 0;
}
.sex-bar span:first-child {
  background: #6c7fff;
}
.sex-bar span:last-child {
  background: #ad81ef;
}
.sex-legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.sex-legend div {
  font-size: 10px;
  color: #9caac2;
}
.sex-legend b {
  display: block;
  font-size: 18px;
  color: #dce4f2;
  letter-spacing: -0.5px;
}
.sex-legend small {
  font-size: 10px;
}
.insight {
  padding: 13px;
  margin-top: 24px;
  border-radius: 10px;
  background: #6265ff0b;
  border: 1px solid #7c6afd15;
  color: #a8b4cd;
  font-size: 11px;
  line-height: 1.7;
}
.data-table-details {
  grid-column: 1/-1;
  padding: 0;
}
.data-table-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  font-size: 11px;
  font-weight: 650;
  list-style: none;
}
.table-scroll {
  overflow-x: auto;
  max-height: 460px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: right;
}
caption {
  font-size: 10px;
  text-align: left;
  color: #a2aec3;
  padding: 12px 18px;
}
td,
th {
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  font-variant-numeric: tabular-nums;
}
th:first-child,
td:first-child {
  text-align: left;
}
thead th {
  color: #94a2bb;
  font-size: 10px;
  font-weight: 650;
  background: #ffffff03;
}
tbody th {
  font-weight: 550;
  color: #c6d2e5;
}
td {
  color: #becae0;
}
.section-loading {
  padding: 20px 0;
  font-size: 12px;
  color: var(--muted);
}
.age-row {
  margin-top: 18px;
}
.age-row > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #a6b3ca;
}
.age-row b {
  color: #dbe5f6;
  font-size: 13px;
}
.age-track {
  height: 9px;
  background: #ffffff06;
  margin: 8px 0;
  border-radius: 10px;
  overflow: hidden;
}
.age-track > div {
  height: 100%;
  background: var(--age-color);
  border-radius: 10px;
}
.data-year {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}
.movement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.movement-stat {
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 11px;
  font-size: 10px;
  color: #95a5bd;
}
.movement-stat strong {
  font-size: 22px;
  display: block;
  font-weight: 700;
  color: #dce5f3;
  margin-top: 4px;
}
.metric-caption {
  color: var(--faint);
  font-size: 9px;
  margin-top: 12px;
}
.benchmark-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 11px;
}
.benchmark-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.benchmark-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.notice {
  border: 1px solid #ea984425;
  background: #f0a63a09;
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 11px;
  margin-bottom: 15px;
}
.discover {
  padding-top: 54px;
}
.catalog-count {
  font-size: 10px;
  color: #8998b2;
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.featured-towns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.featured-town {
  display: flex;
  gap: 13px;
  align-items: center;
  background: #101725;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  transition:
    border-color 0.2s,
    transform 0.2s,
    background 0.2s;
  min-width: 0;
}
.featured-town:hover {
  border-color: #6c5ae169;
  transform: translateY(-2px);
  background: #151b30;
}
.town-map-icon {
  display: grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1447e61b, #7008e71b);
  border: 1px solid #8b78ff20;
  border-radius: 11px;
  color: #a098ed;
  flex-shrink: 0;
}
.featured-town > div {
  min-width: 0;
}
.featured-town strong {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-town small {
  font-size: 9px;
  color: var(--faint);
  display: block;
  margin-top: 4px;
}
.featured-town > span:last-child {
  margin-left: auto;
  color: #65748f;
}
.featured-town > span:last-child .icon {
  width: 14px;
  height: 14px;
}
.municipality-directory {
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.municipality-directory > summary {
  padding: 16px 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: #a6b4cc;
}
.district-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 0 18px 18px;
  align-items: start;
}
.district-directory > details {
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
}
.district-directory summary {
  padding: 9px 11px;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.district-directory summary small {
  color: var(--faint);
}
.district-directory > details > div {
  display: flex;
  flex-direction: column;
  max-height: 230px;
  overflow: auto;
  padding: 3px 10px;
}
.district-directory a {
  padding: 4px;
  color: #98a8c3;
}
.district-directory a:hover {
  color: #c1b3ff;
}
.methodology {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-top: 52px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
  margin-top: 15px;
}
.methodology > div > .icon,
.methodology > div > span {
  color: #9787e9;
  margin-bottom: 12px;
}
.methodology h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.methodology p {
  font-size: 11px;
  line-height: 1.85;
}
.methodology details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  align-self: start;
}
.methodology summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.methodology details p {
  margin-top: 16px;
}
.methodology details a {
  color: #bcaafa;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 23px;
  color: #7888a5;
  font-size: 10px;
}
.site-footer > a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c0cade;
  font-weight: 650;
}
.site-footer img {
  border-radius: 6px;
}
.site-footer > div {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.atlas-dialog {
  background: #101725;
  color: var(--text);
  border: 1px solid #ffffff20;
  border-radius: 24px;
  box-shadow: 0 30px 130px #0009;
  width: min(560px, calc(100% - 30px));
  max-height: 90dvh;
  padding: 0;
  overflow: auto;
  scrollbar-width: thin;
}
.atlas-dialog[open] {
  animation: dialog-in 0.3s var(--ease);
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.atlas-dialog::backdrop {
  background: #030712c9;
  backdrop-filter: blur(7px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(110deg, #1447e622, #7008e722);
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 {
  font-size: 21px;
  overflow-wrap: anywhere;
}
.dialog-heading .overline {
  font-size: 8px;
  display: block;
  margin-bottom: 5px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 9px;
  flex-shrink: 0;
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.dialog-body {
  padding: 24px;
}
.dialog-body p {
  font-size: 12px;
}
.detail-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--category-color);
  margin-bottom: 15px;
}
.detail-facts {
  margin: 12px 0;
}
.detail-facts > div {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.detail-facts dt {
  color: var(--muted);
}
.detail-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #d5e0f1;
}
.detail-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 19px 0;
}
.detail-links a {
  flex: 1;
}
.detail-source {
  font-size: 10px !important;
  color: var(--faint);
  margin-top: 18px;
}
.detail-source a {
  color: #b0a1ec;
}
.coordinates-box {
  margin-top: 15px;
  background: #0a101d;
  padding: 12px;
  border-radius: 10px;
  font:
    11px/1.8 ui-monospace,
    monospace;
  color: #a5b5d0;
  overflow-wrap: anywhere;
}
.detail-tags {
  margin-top: 18px;
  font-size: 10px;
}
.detail-tags pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 10px;
  color: var(--muted);
}
.compare-dialog {
  width: min(920px, calc(100% - 30px));
}
#compare-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 20px 0 25px;
}
#compare-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #aebdd5;
  font-size: 11px;
}
.compare-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.compare-summary > div {
  padding: 16px;
  background: #6570ff0b;
  border: 1px solid #8878ff25;
  border-radius: 12px;
}
.compare-summary strong {
  display: block;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
}
.compare-summary h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.compare-summary small {
  font-size: 10px;
  color: #95a5be;
}
.compare-chart {
  margin-top: 25px;
}
.saved-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.saved-row > button:first-child {
  background: none;
  text-align: left;
  flex: 1;
  font-size: 12px;
}
.saved-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2500;
  background: #1b2741;
  border: 1px solid #9585f65c;
  color: #f0f3ff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 12px;
  max-width: calc(100% - 28px);
  text-align: center;
  box-shadow: 0 8px 40px #0006;
}
.noscript {
  position: fixed;
  bottom: 0;
  padding: 14px;
  background: #42291f;
  color: #ffe0c1;
  z-index: 2000;
  width: 100%;
  text-align: center;
}
.account-link #account-label {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.transit-detail {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.transit-detail h3 {
  font-size: 15px;
}
.transit-detail > .muted {
  font-size: 10px;
  margin: 8px 0 13px;
}
.transit-route {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 10px;
}
.transit-route > b {
  background: #416cff22;
  border: 1px solid #6981ff33;
  border-radius: 7px;
  padding: 6px;
  color: #b4c4ff;
  min-width: 35px;
  text-align: center;
}
.transit-route > span {
  flex: 1;
}
.transit-route small {
  display: block;
  color: var(--faint);
}
.transit-route > .icon {
  width: 12px;
  height: 12px;
}
@media (min-width: 1650px) {
  .site-header {
    padding-inline: max(32px, calc((100vw - 1480px) / 2));
  }
  .explorer {
    grid-template-columns: 375px minmax(0, 1fr);
  }
}
@media (max-width: 1150px) {
  .page-width {
    width: calc(100% - 40px);
  }
  .site-header {
    padding-inline: 20px;
    gap: 15px;
  }
  .main-nav {
    margin-left: 5px;
  }
  .header-end {
    gap: 13px;
  }
  .account-link {
    padding-left: 13px;
  }
  .labs-link > span:not([data-icon]) {
    display: none;
  }
  .main-nav > a,
  .main-nav > button {
    padding: 9px 10px;
  }
  .explorer {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  .sidebar-head {
    padding-inline: 15px;
  }
  .sidebar-scroll {
    padding-inline: 15px;
  }
  .intro-note {
    display: none;
  }
  .featured-towns {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-heading {
    align-items: start;
  }
  .export-actions {
    max-width: 350px;
  }
  .stats-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .data-card {
    padding: 20px;
  }
  .metric-card {
    padding: 16px;
  }
  .metric-card strong {
    font-size: 25px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 70px;
  }
  .page-width {
    width: calc(100% - 28px);
  }
  .site-header {
    height: 65px;
    padding-inline: 15px;
    gap: 12px;
  }
  .atlas-brand > span:last-child {
    font-size: 25px;
  }
  .atlas-brand small {
    font-size: 6.5px;
    letter-spacing: 1.35px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .brand-mark .icon {
    width: 23px;
    height: 23px;
  }
  .atlas-brand {
    gap: 8px;
  }
  .main-nav {
    margin-left: auto;
    gap: 0;
  }
  .main-nav > a,
  .main-nav > button {
    font-size: 0;
    gap: 0;
    padding: 10px;
  }
  .main-nav .icon {
    width: 19px;
    height: 19px;
  }
  .main-nav .nav-count {
    position: absolute;
    right: 0;
    top: 3px;
  }
  .header-end {
    margin-left: 0;
    gap: 11px;
  }
  .labs-link {
    gap: 0;
  }
  .labs-link > span {
    display: none;
  }
  .labs-link img {
    width: 24px;
    height: 24px;
  }
  .account-link {
    padding-left: 10px;
  }
  .account-link #account-label {
    display: none;
  }
  .account-link .icon {
    width: 20px;
    height: 20px;
  }
  .intro,
  .intro.has-town {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-block: 25px 22px;
  }
  .intro.has-town .atlas-search {
    grid-column: 1;
    grid-row: auto;
  }
  .intro h1 {
    font-size: 35px;
    letter-spacing: -1.5px;
  }
  .intro .eyebrow {
    font-size: 8px;
    margin-bottom: 9px;
    letter-spacing: 1.5px;
  }
  .intro-copy > p {
    font-size: 11px;
    max-width: 360px;
    line-height: 1.7;
  }
  .atlas-search {
    scroll-margin-top: 80px;
  }
  .search-field, .intro.has-town .search-field {
    min-height: 54px;
    padding: 5px 5px 5px 13px;
    gap: 8px;
    border-radius: 15px;
  }
  .search-field > span .icon {
    width: 20px;
    height: 20px;
  }
  .search-submit, .intro.has-town .search-submit {
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 10px;
  }
  .search-submit-label,
  .search-field kbd {
    display: none;
  }
  .search-clear {
    flex-basis: 28px;
  }
  .search-hint {
    line-height: 1.6;
  }
  .address-selection { gap: 6px; padding: 5px 6px 5px 9px; }
  .address-detail-button, .address-clear-button { min-width: 40px; min-height: 44px; padding: 0; }
  .address-detail-button > span { display: none; }
  .explorer {
    display: block;
    height: 600px;
    height: 70svh;
    min-height: 490px;
    max-height: 720px;
    border-radius: 17px;
    overflow: hidden;
    scroll-margin-top: 78px;
  }
  .map-shell {
    height: 100%;
  }
  .explorer-sidebar {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, calc(100% - 45px));
    box-shadow: 10px 0 40px #0004;
    z-index: 800;
    border-radius: 16px 0 0 16px;
  }
  .explorer.sidebar-open .explorer-sidebar {
    display: flex;
    animation: panel-in 0.25s var(--ease);
  }
  .mobile-panel-toggle {
    display: flex;
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 850;
    box-shadow: 0 5px 22px #0003;
    white-space: nowrap;
    font-size: 11px;
    padding: 12px 16px;
  }
  .explorer.sidebar-open .mobile-panel-toggle {
    left: auto;
    right: 9px;
    top: 13px;
    bottom: auto;
    transform: none;
    width: 30px;
    height: 35px;
    padding: 0;
    font-size: 0;
    border-radius: 9px;
    gap: 0;
  }
  .explorer.sidebar-open .mobile-panel-toggle span:last-child {
    display: none;
  }
  .map-topbar {
    left: 13px;
    right: 62px;
    top: 13px;
  }
  .map-location {
    font-size: 10px;
    padding: 8px 10px;
    max-width: 180px;
  }
  .map-location span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .map-topbar #search-here {
    position: absolute;
    top: 45px;
    left: 0;
    font-size: 9px;
    padding: 7px 9px;
  }
  .map-controls {
    right: 12px;
    top: 94px;
  }
  .leaflet-control-zoom {
    margin: 13px 12px 0 0 !important;
  }
  .map-welcome {
    left: 14px;
    bottom: 100px;
    padding: 19px;
    width: calc(100% - 85px);
    max-width: 290px;
  }
  .map-welcome h2 {
    font-size: 24px;
  }
  .map-welcome .overline {
    font-size: 7px;
  }
  .map-welcome p {
    font-size: 10px;
  }
  .quick-towns {
    gap: 7px;
    margin-top: 15px;
  }
  .quick-towns a {
    font-size: 9px;
    padding: 7px;
  }
  .map-legend {
    bottom: 89px;
    left: 12px;
    max-width: calc(100% - 60px);
  }
  .map-legend span {
    font-size: 8px;
    padding: 4px 6px;
  }
  .measurement {
    bottom: 91px;
    font-size: 10px;
    width: 90%;
    justify-content: space-between;
  }
  .map-error {
    top: 94px;
    left: 12px;
    right: 58px;
    font-size: 10px;
  }
  .statistics {
    padding-top: 32px;
  }
  .section-heading {
    display: block;
    margin-bottom: 19px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .export-actions {
    justify-content: flex-start;
    max-width: none;
    margin-top: 16px;
    gap: 6px;
  }
  .export-actions .button {
    font-size: 9px;
    padding: 8px 9px;
    min-height: 33px;
  }
  .export-actions .button .icon {
    width: 13px;
    height: 13px;
  }
  .stat-cards {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metric-card {
    padding: 14px;
  }
  .metric-card > span {
    font-size: 10px;
  }
  .metric-card strong {
    font-size: 25px;
    margin: 8px 0 3px;
  }
  .metric-card small {
    font-size: 9px;
  }
  .stats-tabs {
    width: 100%;
    gap: 0;
    padding: 4px;
    overflow: hidden;
  }
  .stats-tabs > button {
    padding: 9px 4px;
    font-size: 9px;
    white-space: normal;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .data-card {
    padding: 19px;
    border-radius: 15px;
  }
  .data-card h3 {
    font-size: 15px;
  }
  .chart-container {
    min-height: 155px;
    padding-top: 20px;
  }
  .chart-foot {
    font-size: 8px;
    gap: 7px;
  }
  .data-table-details {
    padding: 0;
  }
  .sex-total {
    padding-top: 4px;
  }
  .sex-legend b {
    font-size: 20px;
  }
  .insight {
    margin-top: 17px;
  }
  .discover {
    padding-top: 34px;
  }
  .catalog-count {
    display: inline-block;
    margin-top: 10px;
    font-size: 9px;
    padding: 5px 8px;
  }
  .featured-towns {
    gap: 8px;
  }
  .featured-town {
    gap: 9px;
    padding: 12px 10px;
    border-radius: 11px;
  }
  .town-map-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }
  .town-map-icon .icon {
    width: 17px;
    height: 17px;
  }
  .featured-town strong {
    font-size: 10px;
  }
  .featured-town small {
    font-size: 8px;
  }
  .featured-town > span:last-child {
    display: none;
  }
  .district-directory {
    grid-template-columns: 1fr;
    padding: 0 10px 10px;
  }
  .methodology {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 31px;
    padding-bottom: 25px;
  }
  .methodology h3 {
    font-size: 17px;
  }
  .methodology p {
    font-size: 10px;
  }
  .methodology details {
    padding: 15px;
  }
  .methodology summary {
    font-size: 11px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 22px;
    font-size: 9px;
  }
  .site-footer > span {
    margin-left: auto;
  }
  .site-footer > div {
    margin-left: 0;
    width: 100%;
    gap: 16px;
    padding-top: 9px;
  }
  .dialog-heading {
    padding: 20px;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  .dialog-body {
    padding: 19px;
  }
  .atlas-dialog {
    border-radius: 20px;
  }
  #compare-form {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .compare-summary {
    gap: 10px;
  }
  .compare-summary > div {
    padding: 12px;
  }
  .compare-summary strong {
    font-size: 23px;
  }
  .compare-summary h3 {
    font-size: 13px;
  }
  .detail-facts > div {
    grid-template-columns: 105px 1fr;
  }
  .benchmark-legend {
    font-size: 9px;
    gap: 9px;
  }
  .toast {
    bottom: 15px;
    font-size: 11px;
  }
  .table-scroll td,
  .table-scroll th {
    padding: 10px;
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .site-header {
    padding-inline: 10px;
    gap: 8px;
  }
  .main-nav > a,
  .main-nav > button {
    padding: 8px;
  }
  .header-end {
    gap: 8px;
  }
  .account-link {
    padding-left: 8px;
  }
  .intro h1 {
    font-size: 31px;
  }
  .export-actions .button {
    gap: 5px;
    padding-inline: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  color-scheme: light;
  body {
    background: white;
    color: #172039;
    font-size: 11px;
  }
  .site-header,
  .atlas-search,
  .explorer,
  .discover,
  .methodology,
  .site-footer,
  .export-actions,
  .stats-tabs,
  .intro-note,
  .toast,
  dialog,
  .skip-link {
    display: none !important;
  }
  .page-width {
    width: 100%;
    max-width: none;
  }
  .intro {
    display: block;
    padding: 0 0 20px;
  }
  .intro h1 {
    font-size: 30px;
  }
  .intro p,
  .overline,
  .muted,
  p {
    color: #536079 !important;
  }
  .statistics {
    display: block !important;
    padding-top: 0;
  }
  .stat-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .metric-card,
  .data-card {
    background: white;
    border: 1px solid #dce1eb;
    break-inside: avoid;
    color: #172039;
    padding: 14px;
  }
  .metric-card strong {
    font-size: 22px;
  }
  .metric-card small,
  .metric-card > span {
    color: #536079;
  }
  .stats-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 10px;
  }
  .series-svg text {
    fill: #536079;
  }
  .series-svg .chart-grid {
    stroke: #dce1eb;
  }
  .chart-foot {
    color: #536079;
  }
  .sex-legend b,
  .sex-total {
    color: #172039;
  }
  .insight {
    color: #536079;
  }
  .data-table-details {
    display: none;
  }
  .statistics-status {
    display: none;
  }
  .chart-container {
    min-height: 0;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .data-card h3 {
    font-size: 14px;
  }
  .intro:after {
    content: "TECH INFO Atlas · atlas.tech-infosk.eu";
    font-size: 10px;
    color: #536079;
  }
  .notice {
    color: #80532e;
  }
  .population-chart {
    break-inside: avoid;
  }
}
