:root {
  font-family: system-ui, sans-serif;
  color: #182b46;
  background: #f7f9fc;
  font-synthesis: none;
  --brand-navy: #244884;
  --brand-cyan: #37b3d7;
  --brand-gold: #efb51b;
  --surface: #f7f9fc;
  --ink: #182b46;
  --muted: #52637b;
  --line: #d3dce9;
  --accent: #244884;
  --focus: #244884;
  --gutter: 28px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select, summary, .layer-options label:has(input:disabled) { color: #758298; cursor: not-allowed; }
input[type=checkbox]:disabled { cursor: not-allowed; }
input[type=checkbox] { cursor: pointer; }
a { color: #244884; text-underline-offset: 3px; }
header {
  height: 76px; background: var(--brand-navy); color: #fff; box-shadow: inset 0 -3px var(--brand-gold);
  display: flex; align-items: center; justify-content: space-between; padding: 0 30px;
}
main { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 32vw, 460px); height: calc(100dvh - 76px); }
.map-wrap { position: relative; min-width: 0; background: #e9eef5; }
#map { height: 100%; width: 100%; }
aside { overflow-y: auto; border-left: 1px solid var(--line); scrollbar-gutter: stable; }
h1 { font-size: 22px; letter-spacing: -.02em; line-height: 1.25; margin: 0; font-weight: 650; }
p { font-size: 14px; line-height: 1.6; }
.controls, .results, footer { padding: 22px var(--gutter); border-top: 1px solid var(--line); }
.layer-options { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; margin: -8px 0 14px; }
.layer-options label { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.layer-options label:has(input:disabled) { color: #758298; cursor: not-allowed; }
input[type=checkbox]:disabled { cursor: not-allowed; }
input[type=checkbox] { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
input[type=search], select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #7a8da8; border-radius: 4px; background: white; color: var(--ink); padding: 10px 12px; }
input[type=search] { font-size: 16px; }
input::placeholder { color: #586b85; opacity: 1; }
input[type=search]:hover, select:hover { border-color: var(--accent); }
.filter-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0 8px; }
.filter-grid label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; }
select { font-size: 13px; font-weight: 400; padding-right: 28px; }
summary { font-size: 13px; font-weight: 650; padding: 13px 0; min-height: 44px; }
summary:hover { color: #244884; }
.legend-item { display: flex; gap: 10px; align-items: center; font-size: 12px; line-height: 1.5; margin: 10px 0; }
.swatch { display: inline-block; width: 16px; height: 12px; flex-shrink: 0; border: 1px solid #7893; }
.line-swatch { width: 24px; height: 0; border: 0; border-top-width: 3px; }
.results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
h2 { font-size: 17px; margin: 0; }
#result-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.result { display: block; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); width: 100%; padding: 16px 10px; cursor: pointer; color: inherit; border-radius: 0; overflow-wrap: anywhere; }
.result:hover, .result:focus-visible { background: #e9f6fb; }
.result[aria-pressed=true] { background: #d9f0f8; box-shadow: inset 0 0 0 1px #37b3d7; }
.result:active { background: #c8e9f5; }
.result-name { font-size: 15px; line-height: 1.4; font-weight: 650; display: block; }
.result-meta { font-size: 12px; color: var(--muted); display: block; margin: 4px 0 6px; }
.badge { display: inline-flex; gap: 7px; align-items: baseline; font-size: 12px; line-height: 1.5; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status); border: 1px solid #182b4633; flex-shrink: 0; }
#selection { padding: 24px var(--gutter); background: #edf7fc; border-block: 1px solid #badde9; overflow-wrap: anywhere; scroll-margin-block: 16px; }
#selection h2 { font-size: 25px; line-height: 1.2; margin: 16px 0 12px; letter-spacing: -.02em; }
#selection h2:focus { outline: none; }
#selection p { font-size: 14px; margin: 6px 0 12px; }
#selection button { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; color: #244884; cursor: pointer; padding: 10px 4px; min-height: 44px; text-align: left; font-size: 13px; }
#selection button:hover { color: #182f59; }
.close { float: right; margin: -12px -4px 0 12px; }
footer { color: var(--muted); font-size: 13px; }
#load-status { font-size: 13px; line-height: 1.6; padding: 16px var(--gutter); }
#load-status:empty { display: none; }
#tooltip { position: absolute; pointer-events: none; background: #fff; padding: 10px 12px; box-shadow: 0 3px 12px #24488433; font-size: 13px; max-width: min(260px, 100%); overflow-wrap: anywhere; }
.ol-control button { background: #fff; color: var(--ink); min-width: 36px; min-height: 36px; font-size: 20px; }
.ol-control button:hover, .ol-control button:focus { background: #e9f6fb; color: var(--ink); }
.ol-attribution { font-size: 10px; }
.region-control { top: 10px; right: 10px; }
.region-control button { width: auto; padding: 8px 12px; font-size: 12px; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 760px) {
  :root { --gutter: 22px; }
  header { height: 65px; padding: 0 18px; }
  main { display: flex; flex-direction: column; height: auto; }
  .map-wrap { height: 50dvh; min-height: 300px; }
  aside { overflow: visible; border-left: 0; scrollbar-gutter: auto; }
  h1 { font-size: 19px; }
  .ol-control button { min-width: 44px; min-height: 44px; }
  .region-control button { font-size: 12px; }
}
