:root {
  color-scheme: light;
  --text: #142330;
  --secondary-text: #43575f;
  --accent: #075e72;
  --accent-hover: #064c5c;
  --accent-light: #e6f1f3;
  --surface: #fff;
  --canvas: #f7f9f8;
  --line: #d5e0e1;
  --focus: #076f87;
  --corner: 1.12rem;
  --nav-height: 4.25rem;
  --shell-width: 100rem;
  --hero-image: url("assets/hero.png");
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; }
a { color: var(--accent); }
button:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
p, h1, h2, h3, h4, dl, ul { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; }
p { line-height: 1.55; }

.shell {
  width: min(var(--shell-width), calc(100% - clamp(2rem, 7vw, 8.5rem)));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 9;
  top: .65rem;
  left: .65rem;
  padding: .65rem 1rem;
  border-radius: .55rem;
  transform: translateY(-170%);
  color: var(--text);
  background: white;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  margin-bottom: calc(-1 * var(--nav-height));
  border-bottom: 1px solid rgb(255 255 255 / .6);
  background: rgb(248 251 250 / .8);
  backdrop-filter: blur(18px);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: .75rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
  color: var(--text);
  font-size: clamp(1.3rem, 2.5vw, 2.05rem);
  font-weight: 660;
  line-height: 1;
  letter-spacing: -.047em;
  text-decoration: none;
}
.brand-mark { width: clamp(2.35rem, 4vw, 4.25rem); height: auto; color: #174653; }
.site-nav { display: flex; align-items: center; gap: clamp(.1rem, 1.15vw, 1.1rem); }
.nav-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  border: 0;
  border-radius: 999px;
  padding-inline: .84rem;
  font-size: clamp(.83rem, 1.22vw, 1.06rem);
  font-weight: 640;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
  background: transparent;
}
.nav-action:hover, .nav-current { background: #dcecf0; }

.status-banner {
  position: fixed;
  z-index: 6;
  inset: calc(var(--nav-height) + .55rem) max(1rem, 7vw) auto;
  margin: auto;
  max-width: 44rem;
  padding: .8rem 1rem;
  border: 1px solid #d8ab86;
  border-radius: .85rem;
  background: #fff3e7;
  color: #55310e;
}
.status-banner button { margin-inline-start: .5rem; }

.hero {
  display: grid;
  align-content: center;
  position: relative;
  min-height: 100svh;
  padding-block: calc(var(--nav-height) + clamp(2rem, 5.5vh, 4rem)) clamp(3.55rem, 7.5vh, 5.5rem);
  background-color: #dfeae9;
  background-image:
    linear-gradient(90deg, rgb(255 250 240 / .54), rgb(249 248 240 / .28) 40%, rgb(247 251 251 / .04) 73%),
    var(--hero-image);
  background-position: center, center 53%;
  background-size: cover;
  scroll-margin-top: var(--nav-height);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.75rem);
}
.hero-copy { min-width: 0; }
.hero h1 {
  max-width: 16em;
  text-wrap: pretty;
  font-size: clamp(2.3rem, 3.55vw, 4.2rem);
  font-weight: 560;
  letter-spacing: -.05em;
  line-height: 1.09;
}
.lead {
  max-width: 34rem;
  margin-top: 1.15rem;
  color: #243b43;
  font-size: clamp(1rem, 1.38vw, 1.3rem);
}
.hero-field { margin-top: clamp(1.5rem, 4.2vh, 2.7rem); }
.hero-field > label { display: block; margin: 0 0 .54rem .2rem; font-weight: 660; }
.hero-control {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) auto;
  align-items: center;
  gap: .4rem;
  padding: .4rem;
  border: 1px solid rgb(255 255 255 / .96);
  border-radius: 3rem;
  background: rgb(250 249 242 / .54);
  box-shadow: 0 .4rem 1.55rem rgb(18 44 50 / .12), inset 0 1px rgb(255 255 255 / .8);
  backdrop-filter: blur(16px) saturate(120%);
}
.select-wrap { position: relative; min-width: 0; }
.select-wrap::after {
  position: absolute;
  z-index: 1;
  top: calc(50% - .3rem);
  right: 1.1rem;
  width: .54rem;
  height: .54rem;
  content: "";
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}
select {
  width: 100%;
  min-width: 0;
  min-height: 2.95rem;
  padding: .68rem 2.55rem .68rem 1rem;
  border: 1px solid #becfd1;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
}
.hero-control select { border-color: rgb(255 255 255 / .66); background: rgb(252 251 247 / .64); }
select:disabled { opacity: .65; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  min-height: 2.95rem;
  padding: .65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 670;
  line-height: 1.24;
  text-align: center;
  text-decoration: none;
}
.button.primary { border-color: var(--accent); color: white; background: var(--accent); }
.button.primary:hover:not(:disabled) { border-color: var(--accent-hover); background: var(--accent-hover); }
.button.secondary { border-color: #b7cacf; color: #164553; background: white; }
.button.secondary:hover:not(:disabled) { background: var(--accent-light); }
.button:disabled { opacity: .68; }
.example-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  margin: .8rem 0 0 .2rem;
  font-size: .9rem;
}
.example-links span { font-weight: 660; }
.example-links button {
  min-height: 2.6rem;
  padding: .25rem .28rem;
  border: 0;
  border-radius: .35rem;
  color: var(--text);
  background: transparent;
}
.example-links button:hover:not(:disabled) { color: var(--accent); background: rgb(255 255 255 / .62); }
.explore-link {
  position: absolute;
  inset: auto auto 1.15rem 50%;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.65rem;
  padding: .48rem 1rem;
  transform: translateX(-50%);
  border: 1px solid rgb(255 255 255 / .83);
  border-radius: 999px;
  background: rgb(250 252 251 / .88);
  box-shadow: 0 .22rem .85rem rgb(29 69 72 / .09);
  color: var(--text);
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}
.explore-link:hover { background: white; }
.explore-link span { color: var(--accent); font-size: 1.2rem; }

.map-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bfd1d4;
  border-radius: var(--corner);
  background: var(--surface);
}
.hero-map-card {
  border: 1px solid rgb(255 255 255 / .9);
  background: rgb(239 247 247 / .76);
  box-shadow: 0 .95rem 3.1rem rgb(17 43 51 / .16);
  backdrop-filter: blur(13px);
}
.map-card-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .35rem .9rem;
  min-height: 3.5rem;
  padding: .87rem 1.05rem;
}
.map-card-heading h2, .map-card-heading h3 {
  font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  font-weight: 680;
  letter-spacing: -.036em;
}
.map-count { color: var(--secondary-text); font-size: .89rem; }
.map-frame { position: relative; min-width: 0; overflow: hidden; background: #c2dde2; }
.hero-map { height: clamp(22rem, 51vh, 36rem); }
.workspace-map { height: clamp(23rem, 49svh, 38rem); }
.map-loading { padding: .9rem 1rem; color: #264952; }
.map-instruction { padding: .58rem 1.05rem; color: #2c464f; font-size: .9rem; }

body[data-screen="explorer"] .site-header { background: rgb(239 246 243 / .84); }
.workspace {
  --glass-edge: rgb(255 255 251 / .88);
  --glass-line: rgb(49 83 84 / .21);
  --glass-panel: linear-gradient(145deg, rgb(250 248 238 / .88), rgb(229 239 230 / .76));
  --glass-shadow: 0 .65rem 2rem rgb(27 63 54 / .12), inset 0 1px rgb(255 255 250 / .48);
  min-height: 100svh;
  padding-block: var(--nav-height) clamp(1.7rem, 4vw, 3.2rem);
  background-color: #dfe9df;
  background-image:
    linear-gradient(120deg, rgb(250 248 234 / .64), rgb(218 236 231 / .32) 56%, rgb(224 234 207 / .41)),
    var(--hero-image);
  background-size: cover;
  background-position: center, center 54%;
}
.workspace-banner-inner { padding-block: clamp(.85rem, 2.35vw, 1.45rem) clamp(.85rem, 2.15vw, 1.35rem); }
.home-back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.5rem;
  width: fit-content;
  margin: 0 0 .25rem -.45rem;
  padding: .35rem .5rem;
  border: 0;
  border-radius: .65rem;
  color: #173943;
  background-color: transparent;
  font-size: .9rem;
  font-weight: 670;
  text-decoration: none;
}
.home-back:hover { background-color: rgb(255 253 244 / .72); }
.workspace-banner h2 {
  font-size: clamp(1.8rem, 3.05vw, 3.2rem);
  font-weight: 620;
  letter-spacing: -.048em;
}
.toolbar-layout, .workspace-map-pane, .workspace-panel {
  border: 1px solid var(--glass-edge);
  border-radius: var(--corner);
  background: var(--glass-panel);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
}
.toolbar-layout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.15rem;
  padding: .73rem clamp(.85rem, 1.65vw, 1.5rem);
}
.toolbar-field { display: flex; align-items: center; gap: .55rem .8rem; min-width: 0; }
.toolbar-field label { flex: 0 0 auto; font-size: .94rem; font-weight: 665; }
.toolbar-field .select-wrap { width: clamp(11rem, 23vw, 19rem); }
.lens-control .select-wrap { width: clamp(9rem, 16vw, 14rem); }
.toolbar-field select { min-height: 2.75rem; padding-block: .6rem; background: #fffdf5; font-size: .95rem; }
.workspace-toolbar .button { min-height: 2.75rem; }
.workspace-toolbar .button.primary:disabled {
  opacity: 1;
  border-color: rgb(20 77 87 / .18);
  color: #244c54;
  background: #bcd6d6;
}
.workspace-content { margin-top: clamp(.9rem, 1.65vw, 1.6rem); }
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(19rem, 1fr);
  gap: clamp(.85rem, 1.7vw, 1.7rem);
  align-items: start;
}
.workspace-grid[data-view="profile"] > .workspace-panel { align-self: stretch; }
.workspace-map-pane .map-card-heading { padding-inline: clamp(.85rem, 1.55vw, 1.4rem); }
.workspace-map-pane .map-instruction {
  padding-inline: clamp(.85rem, 1.55vw, 1.4rem);
  border-top: 1px solid rgb(255 255 250 / .37);
}
.workspace-grid[data-view="details"] { grid-template-columns: minmax(0, 1fr); }
.workspace-grid[data-view="details"] .workspace-map-pane { display: none; }
.workspace-panel {
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 2.1rem);
}
.workspace-panel > * + * { margin-top: 1rem; }
.panel-eyebrow {
  display: block;
  color: var(--accent);
  font-size: .87rem;
  font-weight: 680;
}
.panel-title {
  font-size: clamp(1.33rem, 2.25vw, 2rem);
  font-weight: 655;
  letter-spacing: -.037em;
}
.panel-meta { color: var(--secondary-text); font-size: .95rem; }
.panel-eyebrow + .panel-title, .panel-title + .panel-meta { margin-top: .42rem; }
.source-note { color: var(--secondary-text); font-size: .88rem; }
.notice { border-left: 3px solid #8fb6bd; padding: .62rem .85rem; border-radius: .3rem; background: rgb(246 250 243 / .79); }
.empty-state { padding: .5rem .15rem; }
.empty-state p { margin-top: .58rem; color: var(--secondary-text); }
.empty-examples { margin-top: 1.3rem; padding-top: 1.05rem; border-top: 1px solid var(--glass-line); }
.empty-examples > p { margin-top: 0; color: var(--text); font-size: .95rem; font-weight: 665; }
.empty-example-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .67rem; }
.empty-example-actions .button.secondary {
  border-color: #54777c;
  background: rgb(255 254 245 / .26);
}
.empty-example-actions .button.secondary:hover { background: rgb(255 254 245 / .7); }
.metric-list, .results-list { padding: 0; list-style: none; }
.metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem .9rem;
  padding: .79rem .08rem;
  border-bottom: 1px solid var(--glass-line);
}
.metric-row:first-child { border-top: 1px solid var(--glass-line); }
.metric-row > :last-child { margin: 0; font-weight: 665; text-align: right; font-variant-numeric: tabular-nums; }
.match-row { list-style: none; }
.match-row + .match-row { border-top: 1px solid var(--glass-line); }
.match-button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: .35rem .9rem;
  min-height: 3.3rem;
  padding: .72rem .75rem;
  border: 0;
  border-radius: .55rem;
  color: var(--text);
  background: transparent;
  text-align: left;
}
.match-button:hover, .match-button[aria-current="true"], .match-button[aria-selected="true"], .match-row.is-active { border-radius: .55rem; background: rgb(205 230 228 / .76); }
.match-label, .match-name, .match-country { overflow-wrap: anywhere; }
.match-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .4rem; min-width: 0; }
.match-name { font-weight: 680; }
.match-country { color: var(--secondary-text); font-size: .88rem; }
.match-score { flex: 0 0 auto; color: #065468; font-weight: 690; font-variant-numeric: tabular-nums; }
.match-row > .panel-action { padding: .1rem .75rem .68rem; }
.score-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  padding: .8rem .9rem;
  border-radius: .75rem;
  background: rgb(211 232 226 / .84);
}
.score-value { font-size: clamp(1.65rem, 3.1vw, 2.75rem); font-weight: 680; line-height: 1; color: #064e61; letter-spacing: -.045em; }
.coverage { display: block; margin-top: .28rem; color: #214e5a; font-size: .88rem; }
.insight-grid { display: grid; gap: .75rem; }
.insight {
  padding: .76rem .9rem;
  border: 1px solid var(--glass-line);
  border-radius: .73rem;
  background: rgb(255 254 245 / .43);
}
.insight > * + * { margin-top: .42rem; }
.insight h3, .insight h4 { font-size: 1.02rem; font-weight: 675; }
.pair-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .38rem .78rem; }
.pair-values > * { min-width: 0; overflow-wrap: anywhere; }
.pair-values > * + * { border-left: 1px solid var(--line); padding-inline-start: .75rem; }
.pair-values dt { color: var(--secondary-text); font-size: .9rem; }
.pair-values dd { margin: .16rem 0 0; font-weight: 665; font-variant-numeric: tabular-nums; }
.detail-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.detail-table :is(th, td) { padding: .68rem .48rem; border-bottom: 1px solid var(--glass-line); text-align: left; line-height: 1.4; overflow-wrap: anywhere; }
.detail-table :is(th, td):first-child { width: 44%; }
.detail-table thead { background: rgb(210 232 226 / .78); }
.detail-table thead th { font-weight: 680; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(15rem, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.detail-main, .detail-help { min-width: 0; }
.detail-main > * + *, .detail-help > * + * { margin-top: .85rem; }
.detail-sources { padding-top: .7rem; }
.detail-sources h3 { margin-bottom: .42rem; font-size: 1.15rem; }
.detail-sources p + p { margin-top: .3rem; }
.detail-sources .panel-action { margin-top: .35rem; }
.detail-help {
  padding: clamp(.9rem, 2vw, 1.5rem);
  border: 1px solid var(--glass-line);
  border-radius: .8rem;
  background: rgb(246 251 243 / .62);
}
.detail-help h3, .detail-help h4 { font-size: 1.12rem; letter-spacing: -.024em; }
.detail-help details { padding-block: .58rem; border-block-end: 1px solid var(--line); }
.detail-help summary { font-weight: 650; cursor: pointer; }
.detail-help details p { margin: .55rem 0 .15rem; }
.panel-action { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .35rem; }
.view-tabs { display: none; }

.site-footer { border-top: 1px solid #d4dfd6; background: #edf2e9; color: #456066; font-size: .86rem; }
body[data-screen="home"] .site-footer { display: none; }
.footer-layout { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem .75rem; padding-block: 1.05rem; }

.info-dialog {
  width: min(42rem, calc(100% - 1.5rem));
  max-height: min(82svh, 51rem);
  overflow: auto;
  padding: 0;
  border: 1px solid #c7dadb;
  border-radius: 1.05rem;
  color: var(--text);
  background: #fcfefd;
  box-shadow: 0 1.2rem 4rem rgb(13 45 54 / .22);
}
.info-dialog::backdrop { background: rgb(11 33 42 / .43); backdrop-filter: blur(4px); }
.dialog-top {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .9rem clamp(1rem, 4vw, 1.6rem);
  border-bottom: 1px solid var(--line);
  background: #fcfefd;
}
.dialog-top h2 { font-size: clamp(1.28rem, 5vw, 1.7rem); letter-spacing: -.038em; }
.close-button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--accent-light);
  font-size: 1.55rem;
}
.close-button:hover { background: #d4e9ee; }
.dialog-content { padding: 1rem clamp(1rem, 4vw, 1.65rem) 1.5rem; }
.dialog-content > * + * { margin-top: .82rem; }
.dialog-content ul { padding-inline-start: 1.25rem; }
.dialog-content li + li { margin-top: .42rem; }
.dialog-content details { border-bottom: 1px solid var(--line); padding: .68rem 0; }
.dialog-content details p { margin: .52rem 0 .2rem; }
.dialog-content summary { cursor: pointer; font-weight: 675; }
.noscript { padding: 1rem; background: #fff3e7; }

@media (max-width: 1150px) {
  .hero-layout { gap: 1.25rem; }
  .hero-control { grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); align-items: stretch; }
  .hero-control :is(select, .button) { font-size: .9rem; }
  .hero-control select { height: 100%; padding-inline: .78rem 2.05rem; }
  .hero-control .button { width: 100%; padding-inline: .8rem; }
}

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .hero {
    background-image: linear-gradient(180deg, rgb(255 251 244 / .67), rgb(255 251 244 / .59) 38%, rgb(255 251 244 / .04) 78%), var(--hero-image);
    background-position: center, 42% center;
  }
  .hero-copy { max-width: 38rem; }
  .hero h1 { font-size: clamp(2.55rem, 6.4vw, 4rem); }
  .hero-control { grid-template-columns: minmax(0, 1fr) auto; border-radius: 999px; }
  .hero-map { height: clamp(22rem, 53vw, 30rem); }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace {
    background-image: linear-gradient(135deg, rgb(249 247 237 / .69), rgb(224 239 231 / .56)), var(--hero-image);
    background-position: center, 47% center;
  }
  .workspace-grid:is([data-view="profile"], [data-view="compare"]) > .workspace-panel { grid-row: 1; }
  .workspace-map { height: clamp(20rem, 56vw, 34rem); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .toolbar-field { flex: 1 1 15rem; }
  .toolbar-field .select-wrap { flex: 1 1 auto; width: auto; }
}

@media (max-width: 690px) {
  :root { --nav-height: 4rem; }
  .shell { width: calc(100% - 1.6rem); }
  .topbar { gap: .25rem .5rem; }
  .brand { gap: .3rem; }
  .brand-mark { width: 1.7rem; }
  .site-nav { gap: 0; }
  .nav-action { min-height: 2.55rem; padding-inline: .47rem; font-size: .79rem; }
  .hero { padding-block: calc(var(--nav-height) + 2.6rem) 4.95rem; }
  .hero h1 { font-size: clamp(2rem, 7.7vw, 3.2rem); }
  .lead { margin-top: .85rem; }
  .hero-control { grid-template-columns: minmax(0, 1fr); border-radius: 1.1rem; }
  .hero-control select, .hero-control .button { min-height: 2.85rem; }
  .hero-map { height: clamp(17.5rem, 66vw, 24rem); }
  .workspace-map { height: clamp(18rem, 68vw, 27rem); }
  .toolbar-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: .66rem; }
  .toolbar-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .workspace-toolbar .button { width: 100%; }
  .view-tabs:not([hidden]) {
    display: flex;
    gap: .24rem;
    padding: .22rem;
    border: 1px solid var(--glass-edge);
    border-radius: 999px;
    background: rgb(240 248 243 / .81);
    margin-bottom: .8rem;
  }
  .view-tabs button {
    flex: 1;
    min-height: 2.65rem;
    padding: .42rem .6rem;
    border: 0;
    border-radius: 999px;
    color: #204852;
    background: transparent;
    font-weight: 670;
  }
  .view-tabs button[aria-pressed="true"], .view-tabs button[aria-selected="true"] { color: white; background: var(--accent); }
  .workspace-grid[data-view="results"][data-mobile="results"] > .workspace-map-pane,
  .workspace-grid[data-view="results"][data-mobile="map"] > .workspace-panel { display: none; }
  .detail-table :is(th, td) { padding: .55rem .28rem; font-size: .83rem; }
  .site-footer .shell { display: block; }
  .site-footer .shell > * { display: block; }
  .site-footer .shell > * + * { margin-top: .3rem; }
}

@media (max-width: 375px) {
  :root { --nav-height: 5.85rem; }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: .4rem;
  }
  .site-nav { width: 100%; flex-wrap: wrap; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 1.27rem; }
  .nav-action { padding-inline: .35rem; font-size: .73rem; }
  .map-card-heading { padding-inline: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
