/* Community Forecast. Colors are the design system's tokens (/static/tokens.css): neutral for the page, brand blue for
   data, links and focus. Buttons follow the design system: primary is a gray fill with black text, secondary a black
   outline; a segmented control is a gray track with the chosen side on white. */

:root {
  --ink: var(--color-neutral-950);
  --text: var(--color-ui-text);
  --muted: var(--color-ui-text-muted);
  --subtle: var(--color-ui-text-subtle);
  --line: var(--color-ui-border);
  --line-strong: var(--color-ui-border-strong);
  --surface: var(--color-ui-background);
  --surface-muted: var(--color-ui-surface-muted);
  --surface-subtle: var(--color-ui-surface-subtle);
  --fill: var(--color-neutral-200);
  --fill-hover: var(--color-neutral-300);
  --focus: var(--color-focus-ring);
  --selected: var(--color-map-selected);
  --gain-1: var(--color-brand-200);
  --gain-2: var(--color-brand-400);
  --gain-3: var(--color-brand-600);
  --loss-1: var(--color-neutral-300);
  --loss-2: var(--color-neutral-500);
  --flat: var(--color-neutral-100);
  --header-h: 60px;
  --radius: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font-sans); color: var(--text); background: var(--surface); font-size: 14px; line-height: 1.45; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; }
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0; }
a { color: var(--color-link-default); }
a:hover { color: var(--color-link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); font-size: 12px; }
.icon { font-family: "Material Icons Outlined"; font-weight: normal; font-style: normal; font-size: 18px; line-height: 1;
  display: inline-flex; width: 1em; height: 1em; align-items: center; justify-content: center; overflow: hidden;
  vertical-align: middle; user-select: none; }
[hidden] { display: none !important; }

/* Header ----------------------------------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--header-h); display: flex; align-items: center; gap: 28px;
  padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-weight: 600; font-size: 17px; color: var(--ink); white-space: nowrap; }
.brand .dot { margin: 0 4px; }
.region-pill, .scenario-pill { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 12px; height: 34px;
  border-radius: 6px; font-weight: 500; white-space: nowrap; }
.region-pill { background: var(--surface-muted); }
.scenario-pill { margin-left: auto; border: 1px solid var(--line-strong); }
.region-pill select, .scenario-pill select { border: 0; background: transparent; font-weight: 500; padding: 4px 2px;
  max-width: 280px; cursor: pointer; }
.tabs { display: flex; gap: 4px; height: 100%; }
.tabs a { display: flex; align-items: center; padding: 0 10px; color: var(--muted); text-decoration: none; font-size: 15px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.who { font-size: 12px; color: var(--subtle); white-space: nowrap; }
.who:empty { display: none; }
body[data-tab="overview"] .scenario-pill, body[data-tab="how"] .scenario-pill { visibility: hidden; }
/* Signed out or loading: no region, tabs or scenario to show yet. */
body[data-tab="gate"] :is(.region-pill, .tabs, .scenario-pill) { visibility: hidden; }
.banner { background: var(--color-warning-50); border-bottom: 1px solid var(--color-warning-200); color: var(--color-warning-700);
  padding: 8px 24px; font-size: 13px; }

main { min-height: calc(100vh - var(--header-h)); }
/* The map view fills the window below the header and banner, and only its panels scroll. */
body[data-tab="map"] { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
body[data-tab="map"] main { flex: 1; min-height: 0; }
.view { padding: 28px 36px 48px; }
.gate { display: grid; place-items: center; min-height: 70vh; }
.gate-box { max-width: 460px; text-align: center; display: grid; gap: 14px; justify-items: center; }

/* Controls --------------------------------------------------------------------------------------------------------- */
.seg { display: inline-flex; padding: 2px; border-radius: 6px; background: var(--color-neutral-100); gap: 0; flex: none; }
.seg button { appearance: none; border: 0; background: transparent; border-radius: 5px; padding: 4px 12px; font-size: 14px;
  font-weight: 500; color: var(--color-neutral-600); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--color-neutral-900); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-neutral-950) 12%, transparent); }
.seg button:disabled { color: var(--color-ui-text-disabled); cursor: not-allowed; }
.seg.sm button { padding: 3px 10px; font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px; padding: 8px 12px;
  font-size: 14px; font-weight: 600; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--fill); color: var(--ink); }
.btn.primary:hover { background: var(--fill-hover); }
.btn.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.secondary:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.btn.tertiary { background: transparent; color: var(--ink); padding: 6px 8px; }
.btn.tertiary:hover { background: var(--surface-muted); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { appearance: none; border: 0; background: transparent; border-radius: 6px; width: 28px; height: 28px; cursor: pointer;
  color: var(--color-neutral-500); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--surface-muted); color: var(--ink); }
select.select, input.input { border: 1px solid var(--color-neutral-300); border-radius: 6px; background: var(--surface);
  padding: 6px 10px; font-size: 14px; min-width: 0; }
select.select { padding-right: 28px; cursor: pointer; }
input.input:focus, select.select:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
input.input.num { text-align: right; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 0; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; flex: none; cursor: pointer; }
.check.disabled { color: var(--color-ui-text-disabled); cursor: not-allowed; }
.check.disabled input { cursor: not-allowed; }
.tag { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 4px; background: var(--color-neutral-100);
  color: var(--color-neutral-600); margin-left: 6px; font-weight: 500; }
.marker { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px;
  background: var(--fill); color: var(--ink); font-size: 12px; font-weight: 600; flex: none; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: transparent; margin: 0;
  cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--color-neutral-200); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--color-neutral-200); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--selected); margin-top: -6px; }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--selected); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.note { font-size: 13px; color: var(--muted); }
.notes { display: grid; gap: 6px; margin-top: 10px; }
.notes p { font-size: 12px; color: var(--color-warning-700); background: var(--color-warning-50); border-radius: 6px; padding: 6px 8px; }
.error-text { color: var(--color-error-700); font-size: 13px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--color-neutral-900);
  color: var(--color-neutral-50); padding: 10px 16px; border-radius: 8px; font-size: 14px; max-width: 640px; }
.toast.error { background: var(--color-error-700); }

/* Tables ----------------------------------------------------------------------------------------------------------- */
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-weight: 500; color: var(--muted); background: var(--surface-muted); padding: 7px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th.r, table.data td.r { text-align: right; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: var(--surface-subtle); }
table.data tbody tr.on { background: var(--color-neutral-200); font-weight: 600; }
table.data th button { all: unset; cursor: pointer; }
.more { padding: 8px 12px; font-size: 13px; color: var(--muted); }
.more button { all: unset; cursor: pointer; color: var(--color-link-default); }

/* Overview ----------------------------------------------------------------------------------------------------------*/
.ov-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.ov-head .sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.btn.dark { background: var(--ink); color: var(--surface); padding: 9px 14px; }
.btn.dark:hover { background: var(--color-neutral-800); }
.ov-total { display: flex; align-items: center; gap: 16px; padding: 12px 18px; flex-wrap: wrap; }
.ov-total .label { font-weight: 600; color: var(--ink); font-size: 15px; }
.ov-own { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 18px 12px; }
.ov-own label { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.ov-own input { width: 110px; }
.ov-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 18px 0; }
.stat { padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: 14px; }
.stat .v { font-size: 24px; font-weight: 500; color: var(--ink); margin: 6px 0 4px; white-space: nowrap; }
.stat .d { color: var(--muted); font-size: 13px; }
.stat.disabled { opacity: .55; }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.ov-trend, .ov-towns { padding: 16px 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.ov-legend { display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; margin: 8px 0 14px; color: var(--muted); }
.ov-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch-line { display: inline-block; width: 18px; border-top: 2px solid currentColor; }
.swatch-line.dash { border-top-style: dashed; }
.swatch-line.dot { border-top-style: dotted; }
.ov-year { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.ov-towns { padding: 0; }
.ov-towns .panel-head { padding: 14px 18px 6px; }
.ov-towns .chart-box { padding: 14px 18px 18px; }
.inline-select { display: inline-flex; gap: 10px; align-items: center; }
.inline-select select { border: 0; background: transparent; font-size: 13px; color: var(--muted); cursor: pointer; }

/* Charts ----------------------------------------------------------------------------------------------------------- */
.chart text { font-family: var(--font-sans); font-size: 11px; fill: var(--color-chart-axis); }
.chart .grid line { stroke: var(--color-chart-grid); }
.chart .grid .domain { display: none; }
.chart .axis .domain, .chart .axis line { stroke: var(--color-chart-divider); }
.chart .latest { stroke: var(--color-chart-annotation); stroke-dasharray: 2 3; }
.chart .label { font-size: 11px; fill: var(--color-chart-text); font-weight: 500; }
.chart-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.chart-sub { font-size: 13px; color: var(--muted); }

/* Map & scenarios ---------------------------------------------------------------------------------------------------*/
.view-map { padding: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr) 420px; height: 100%;
  overflow: hidden; }
.view-map.no-detail { grid-template-columns: 360px minmax(0, 1fr) 0; }
.left { border-right: 1px solid var(--line); overflow-y: auto; padding: 16px 20px 28px; }
.center { position: relative; display: flex; flex-direction: column; min-width: 0; }
.right { border-left: 1px solid var(--line); overflow-y: auto; padding: 18px 22px 28px; }
.mapbar { display: flex; gap: 12px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mapbar .lab { color: var(--muted); font-size: 14px; }
.map { flex: 1; position: relative; min-height: 300px; }
.spark { display: block; }
.detail .chart-box { margin-top: 4px; }
.cf-tip .maplibregl-popup-content, .maplibregl-popup-content { padding: 8px 10px; border-radius: 6px; }
.legend { position: absolute; z-index: 3; top: 12px; left: 12px; display: grid; gap: 8px; max-width: 340px; pointer-events: none; }
.legend > div { background: var(--surface); border-radius: var(--radius); padding: 10px 14px;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 15%, transparent); pointer-events: auto; }
:is(.legend, .cmp-legend) .t { font-weight: 600; color: var(--ink); font-size: 15px; }
:is(.legend, .cmp-legend) .s { font-size: 12px; color: var(--muted); }
:is(.legend, .cmp-legend) .k { font-weight: 500; color: var(--ink); font-size: 12px; margin-bottom: 6px; }
:is(.legend, .cmp-legend) .ramp { display: flex; }
:is(.legend, .cmp-legend) .ramp i { flex: 1; height: 10px; }
:is(.legend, .cmp-legend) .ramp i.dash { background-image: repeating-linear-gradient(135deg, transparent 0 3px, color-mix(in srgb, var(--surface) 55%, transparent) 3px 5px); }
:is(.legend, .cmp-legend) .ticks { display: flex; font-size: 10px; color: var(--muted); margin-top: 3px; }
:is(.legend, .cmp-legend) .ticks span { flex: 1; text-align: center; white-space: nowrap; }
:is(.legend, .cmp-legend) .cats { display: grid; gap: 3px; font-size: 11px; }
:is(.legend, .cmp-legend) .cats span { display: flex; align-items: center; gap: 6px; }
:is(.legend, .cmp-legend) .cats i { width: 12px; height: 12px; border-radius: 2px; flex: none; }
.timebar { position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; align-items: center;
  gap: 4px; background: var(--surface); border-radius: var(--radius); padding: 6px 12px;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 15%, transparent); white-space: nowrap; }
.timebar button.y { all: unset; cursor: pointer; padding: 2px 6px; color: var(--muted); font-size: 14px; border-radius: 4px; }
.timebar button.y[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.timebar .note { font-size: 12px; margin-left: 8px; }
.placing { position: absolute; z-index: 4; top: 12px; right: 60px; background: var(--ink); color: var(--surface);
  border-radius: 6px; padding: 8px 12px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.placing button { all: unset; cursor: pointer; text-decoration: underline; }
.map.placing-mode .maplibregl-canvas { cursor: crosshair; }
.lefttabs { margin-bottom: 14px; }
.ctx h4 { margin: 14px 0 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.ctx .radio, .ctx .check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 15px; }
.ctx .radio input { accent-color: var(--ink); margin: 0; width: 16px; height: 16px; }
.ctx .layer-note { font-size: 12px; color: var(--muted); margin: -2px 0 6px 24px; }
.sec { border-top: 1px solid var(--line); padding: 14px 0; }
.sec:first-of-type { border-top: 0; padding-top: 4px; }
.sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sec-head h3 { font-size: 16px; }
.sec-head .subtle { margin-left: 2px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; }
.row > span:first-child { font-size: 14px; }
.row select.select { padding: 4px 26px 4px 8px; font-size: 13px; }
.own-years { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 6px 0; }
.own-years label { display: grid; gap: 2px; font-size: 11px; color: var(--muted); }
.own-years input { width: 100%; padding: 4px 6px; font-size: 12px; }
.dial { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.dial-value { font-size: 12px; color: var(--muted); text-align: center; }
.projects { display: grid; gap: 2px; margin: 10px 0; }
.project { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 14px; padding: 3px 0; }
.project .meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.project .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project .name small { color: var(--muted); margin-left: 6px; font-size: 13px; }
.weights { display: grid; gap: 4px; margin: 10px 0; }
.weight { display: grid; grid-template-columns: 110px 1fr 48px 24px; gap: 8px; align-items: center; font-size: 14px; }
.weight .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weight .x { text-align: right; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.save-form { display: grid; gap: 8px; margin-top: 10px; }
.form-pop { display: grid; gap: 8px; padding: 10px; border-radius: var(--radius); background: var(--surface-subtle); border: 1px solid var(--line); margin: 8px 0; }
.form-pop .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-pop label { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }

.detail .kicker { font-size: 13px; color: var(--muted); }
.detail h2 { font-size: 24px; margin: 2px 0 2px; }
.detail .head { display: flex; justify-content: space-between; align-items: flex-start; }
.detail .cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.detail .mini { padding: 10px 12px; }
.detail .mini .k { font-size: 12px; color: var(--muted); }
.detail .mini .v { font-size: 18px; font-weight: 600; color: var(--ink); }
.detail .mini .d { font-size: 11px; color: var(--muted); }
.bgcard { border: 2px solid var(--selected); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0 14px; }
.bgcard .t { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink); font-size: 15px; }
.bgcard .s { font-size: 13px; color: var(--muted); }
.bgcard .flow { font-size: 13px; margin: 6px 0 10px; }
.bgcard .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.detail .mix { font-size: 13px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.detail .mix b { font-weight: 500; color: var(--ink); }
.detail .links { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.detail .empty { color: var(--muted); margin-top: 10px; }

/* Compare -----------------------------------------------------------------------------------------------------------*/
.cmp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cmp-bar h1 { margin-right: 6px; }
.cmp-bar select.select { min-width: 160px; }
.cmp-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp-maps.one { grid-template-columns: 1fr; }
.cmp-map .t { font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.cmp-map .map { height: 440px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.cmp-legend { display: flex; justify-content: flex-end; margin-top: 8px; }
.cmp-legend > div { min-width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.cmp-table { margin-top: 20px; }
.cmp-table h2 { margin-bottom: 10px; font-size: 16px; }
.why { margin: 6px 0 0; padding-left: 16px; font-size: 12px; }
.popup { font-size: 13px; min-width: 220px; }
.popup b { color: var(--ink); }
.popup .r { display: flex; justify-content: space-between; gap: 12px; }
.popup ul { margin: 6px 0 0; padding-left: 16px; }

/* Export ------------------------------------------------------------------------------------------------------------*/
.view-export { padding: 0; display: grid; grid-template-columns: 556px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.ex-form { padding: 28px 32px; border-right: 1px solid var(--line); }
.ex-form h1 { font-size: 22px; margin-bottom: 18px; }
.ex-form .grp { margin-bottom: 16px; }
.ex-form .grp > .k { font-family: var(--font-condensed); color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.ex-form .years { display: flex; gap: 16px; flex-wrap: wrap; }
.ex-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ex-form .inline { display: flex; gap: 22px; flex-wrap: wrap; }
.ex-form select.select { width: 100%; }
.ex-preview { background: var(--surface-muted); padding: 28px 32px; min-width: 0; }
.ex-preview .head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; align-items: baseline; }
.ex-preview .file { color: var(--muted); font-size: 13px; }
.ex-preview .scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ex-preview table.data tbody tr { cursor: default; }
.ex-preview table.data td { white-space: nowrap; }
.ex-preview table.data td.rules { white-space: pre-line; min-width: 180px; }
.ex-preview .foot { font-size: 12px; color: var(--muted); margin-top: 10px; }
.ex-preview .apilink { margin-top: 14px; font-size: 12px; }
.ex-preview .apilink code { background: var(--surface); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

/* How it works ------------------------------------------------------------------------------------------------------*/
.how { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.how nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 10px; font-size: 14px; }
.how nav .k { font-family: var(--font-condensed); color: var(--muted); font-size: 13px; }
.how nav a { color: var(--text); text-decoration: none; }
.how nav a:hover { color: var(--ink); text-decoration: underline; }
.how .lead { font-size: 16px; margin: 18px 0 22px; max-width: 1100px; }
.how .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.how .step { padding: 16px 18px; }
.how .step .n { font-size: 20px; color: var(--muted); }
.how .step h3 { margin: 6px 0 4px; }
.how .step p { font-size: 13px; color: var(--muted); }
.how section { margin-bottom: 28px; max-width: 1100px; scroll-margin-top: calc(var(--header-h) + 20px); }
.how section h2 { margin-bottom: 8px; }
.how section p { color: var(--muted); margin-bottom: 6px; }
.how section dl { display: grid; grid-template-columns: 240px 1fr; gap: 6px 18px; font-size: 13px; }
.how section dt { font-weight: 500; color: var(--ink); }
.how section dd { margin: 0; color: var(--muted); }

@media (max-width: 1200px) {
  .view-map { grid-template-columns: 320px minmax(0, 1fr) 360px; }
  .ov-cards { grid-template-columns: repeat(2, 1fr); }
  .ov-grid, .cmp-maps { grid-template-columns: 1fr; }
  .view-export { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .how .steps { grid-template-columns: repeat(2, 1fr); }
}
