/* NOPolitica — sistema visual
   Editorial, sóbrio, sem ornamentos: tipografia serifada nos títulos, sans nos
   dados, réguas finas no lugar de cartões sombreados, duas cores partidárias
   usadas apenas onde identificam candidatos. */

:root {
  --paper: #ffffff;
  --paper-2: #f5f5f3;
  --paper-3: #ecece9;
  --ink: #141414;
  --ink-2: #3d3d3d;
  --muted: #6a6a66;
  --rule: #e3e3df;
  --rule-2: #c9c9c3;
  --focus: #1d4f91;
  --c13: #b5121b;
  --c22: #1d4f91;
  --neutral: #7f8c8d;
  --nodata: #d8d8d8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; color: var(--ink); }
h1 { font-size: clamp(30px, 4.6vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
small { font-size: 0.875em; }
strong, b { font-weight: 600; }
button, input, select { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: 1480px; }

/* ---------- Cabeçalho ---------- */
.masthead { border-bottom: 1px solid var(--ink); background: var(--paper); position: relative; z-index: 20; }
.masthead__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 10px; }
.brand { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 2px; }
.brand span { font-weight: 400; }
.brand small { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-left: 12px; }
.masthead__meta { font-size: 12px; color: var(--muted); text-align: right; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav__list a { display: block; padding: 11px 12px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-2); }
.nav__list a:hover { color: var(--ink); }
.nav__list a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav__toggle { display: none; }
.search { position: relative; min-width: 240px; }
.search input { width: 100%; height: 36px; border: 1px solid var(--rule-2); border-radius: 3px; padding: 0 12px 0 34px; background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a6a66' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") 10px center no-repeat; font-size: 14px; }
.search input::placeholder { color: #9a9a95; }
.search__list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--paper); border: 1px solid var(--rule-2); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); z-index: 40; max-height: 360px; overflow: auto; }
.search__list[hidden] { display: none; }
.search__item { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.search__item:hover, .search__item.is-active { background: var(--paper-2); }
.search__meta { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- Tipografia editorial ---------- */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: block; }
.kicker--ink { color: var(--ink); }
.headline { margin: 0 0 12px; max-width: 22ch; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 64ch; margin: 0 0 20px; }
.prose { font-size: 17px; line-height: 1.6; }
.prose > * { max-width: 72ch; }
.prose h2 { margin: 40px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
.prose table { font-size: 15px; }
.byline { font-size: 13px; color: var(--muted); }
.section { padding: 40px 0; border-top: 1px solid var(--rule); }
.section--flush { border-top: 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.section__head p { margin: 6px 0 0; color: var(--ink-2); max-width: 70ch; }
.hero { padding: 36px 0 28px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.notice { padding: 12px 16px; border-left: 3px solid var(--ink); background: var(--paper-2); font-size: 14px; margin: 12px 0; }
.notice--warn { border-left-color: #b26a00; background: #fff8ec; }
.notice--error { border-left-color: var(--c13); background: #fdf0f0; }
.notice[hidden] { display: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.caveat { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 80ch; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Grades e números ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.stat { padding: 14px 16px 14px 0; border-right: 1px solid var(--rule); margin-right: 16px; min-width: 0; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }
.stat__value { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; display: block; }
.stat__note { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.panel { border: 1px solid var(--rule); padding: 20px; background: var(--paper); }
.panel--tint { background: var(--paper-2); border-color: transparent; }
.panel h3 { margin-bottom: 4px; }
.panel .kicker { margin-bottom: 4px; }

/* ---------- Barras ---------- */
.bar { display: block; height: 10px; background: var(--paper-3); overflow: hidden; position: relative; }
.bar__fill { display: block; height: 100%; background: var(--neutral); }
.bar__fill.c13 { background: var(--c13); }
.bar__fill.c22 { background: var(--c22); }
.stack { display: flex; height: 12px; width: 100%; background: var(--paper-3); overflow: hidden; }
.stack--tall { height: 22px; }
.stack__seg { display: block; height: 100%; background: var(--neutral); }
.stack__seg.c13 { background: var(--c13); }
.stack__seg.c22 { background: var(--c22); }
.stack__seg.others { background: #c7c7c2; }
.result { list-style: none; margin: 0; padding: 0; }
.result__row { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 8px 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.result__row:first-child { border-top: 1px solid var(--ink); }
.result__name { font-weight: 600; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.result__name small { color: var(--muted); font-weight: 400; }
.result__party { font-size: 12px; color: var(--muted); font-weight: 400; }
.result__pct { font-weight: 600; text-align: right; font-size: 18px; letter-spacing: -0.01em; }
.result__votes { font-size: 12px; color: var(--muted); grid-column: 1 / -1; margin-top: -4px; }
.result__row .bar { grid-column: 1 / -1; height: 8px; }
.result__row--muted .result__name, .result__row--muted .result__pct { font-weight: 500; color: var(--ink-2); font-size: 15px; }
.result--compact .result__row { padding: 6px 0; }
.result--compact .result__votes { display: none; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 1px; background: var(--neutral); flex: none; transform: translateY(-1px); }
.swatch.c13 { background: var(--c13); }
.swatch.c22 { background: var(--c22); }
.gap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.gap__value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.gap__value.c13 { color: var(--c13); }
.gap__value.c22 { color: var(--c22); }
.gap__text { color: var(--ink-2); font-size: 15px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--rule); vertical-align: middle; white-space: nowrap; }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--ink); }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th.left, table.data td.left { text-align: left; }
table.data tbody tr:hover { background: var(--paper-2); }
table.data .stack { min-width: 140px; }
table.data button.sort { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
table.data button.sort[aria-sort="descending"]::after { content: "↓"; }
table.data button.sort[aria-sort="ascending"]::after { content: "↑"; }
table.data td a { text-decoration: none; font-weight: 500; }
table.data td a:hover { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--c22); }
.neg { color: var(--c13); }

/* ---------- Botões e formulários ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 3px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { background: #333; border-color: #333; }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--paper-2); }
.button--small { height: 32px; padding: 0 12px; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.field select, .field input { height: 38px; border: 1px solid var(--rule-2); border-radius: 3px; background: var(--paper); padding: 0 10px; font-size: 14px; max-width: 100%; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.segmented button { height: 32px; padding: 0 12px; border: 1px solid var(--rule-2); background: var(--paper); border-radius: 3px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.segmented button:hover { border-color: var(--ink); color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }

/* ---------- Mapa ---------- */
.map-page { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 0; border-top: 1px solid var(--ink); min-height: calc(100vh - 118px); }
.map-side { padding: 20px; border-right: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; gap: 18px; }
.map-side--right { border-right: 0; border-left: 1px solid var(--rule); overflow-y: auto; }
.map-side h2 { font-size: 20px; }
.map { position: relative; background: var(--paper-2); min-height: 420px; overflow: hidden; touch-action: none; user-select: none; }
.map__canvas { display: block; cursor: grab; }
.map__canvas.is-dragging { cursor: grabbing; }
.map__tooltip { position: absolute; left: 0; top: 0; pointer-events: none; background: rgba(20, 20, 20, 0.96); color: #fff; padding: 10px 12px; font-size: 13px; line-height: 1.4; max-width: 280px; z-index: 5; border-radius: 3px; }
.map__tooltip[hidden] { display: none; }
.map__tooltip strong { display: block; font-size: 14px; margin-bottom: 2px; }
.map__tooltip .muted { color: #bdbdb8; }
.map__tooltip .result__row { border-color: rgba(255, 255, 255, 0.15); padding: 4px 0; grid-template-columns: minmax(0, 1fr) 56px; }
.map__tooltip .result__row:first-child { border-top: 0; }
.map__tooltip .result__pct { font-size: 14px; }
.map__tooltip .bar { background: rgba(255, 255, 255, 0.15); height: 5px; }
.map__controls { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; border: 1px solid var(--rule-2); background: var(--paper); border-radius: 3px; overflow: hidden; z-index: 4; }
.map__controls button { width: 36px; height: 36px; border: 0; background: var(--paper); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.map__controls button + button { border-top: 1px solid var(--rule); }
.map__controls button:hover { background: var(--paper-2); }
.map__loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper-2); z-index: 6; color: var(--muted); font-size: 14px; }
.map__loading[hidden] { display: none; }
.map__status { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--rule); padding: 6px 10px; font-size: 12px; color: var(--ink-2); z-index: 4; border-radius: 3px; }
.legend { font-size: 12px; color: var(--ink-2); }
.legend__title { font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.legend__ramp { display: flex; height: 12px; overflow: hidden; border-radius: 2px; }
.legend__ramp span { flex: 1; }
.legend__labels { display: flex; justify-content: space-between; margin-top: 4px; }
.legend__cats { display: grid; gap: 6px; }
.legend__cat { display: flex; align-items: center; gap: 8px; }
.legend__cat .swatch { width: 14px; height: 14px; }
.legend__nodata { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); }
.legend__nodata .swatch { background: var(--nodata); width: 14px; height: 14px; }
.detail__empty { color: var(--muted); font-size: 14px; }
.detail__title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.detail__title h2 { font-size: 24px; }
.detail__title .uf { font-size: 14px; color: var(--muted); }
.detail dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; margin: 12px 0; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; text-align: right; font-weight: 500; }
.detail .result__row { padding: 6px 0; }
.detail .result__pct { font-size: 15px; }

/* ---------- Listas de indicadores ---------- */
.indicators { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.indicator { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.indicator__label { grid-column: 1; grid-row: 1; font-weight: 600; font-size: 15px; }
.indicator__meta { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--muted); }
.indicator__value { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; text-align: right; }
.indicator__rank { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 2px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.rank { position: relative; height: 6px; background: var(--paper-3); }
.rank__dot { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; transform: translateX(-50%); }
.rank__ref { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--muted); transform: translateX(-50%); }
.rank__labels { display: flex; justify-content: space-between; margin-top: 6px; }

/* ---------- Faixas (quintis) ---------- */
.bands { display: grid; gap: 10px; }
.band { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.band__label { font-size: 13px; }
.band__label strong { display: block; font-size: 14px; }
.band__label span { color: var(--muted); }
.band__bar { display: grid; gap: 4px; }
.band__values { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); gap: 12px; flex-wrap: wrap; }
.band__values b { font-weight: 600; }

/* ---------- Anúncios (reservados, inativos por padrão) ---------- */
.ad-slot { display: none; min-height: 90px; background: var(--paper-2); border: 1px dashed var(--rule-2); align-items: center; justify-content: center; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin: 24px 0; }
.ad-slot--active { display: flex; }

/* ---------- Consentimento ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: var(--paper); border: 1px solid var(--ink); padding: 18px 20px; display: flex; gap: 20px; align-items: center; justify-content: space-between; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); max-width: 900px; margin: 0 auto; flex-wrap: wrap; }
.consent__title { font-size: 17px; margin-bottom: 4px; }
.consent__body { flex: 1 1 420px; font-size: 14px; }
.consent__body p { margin: 0; }
.consent__actions { display: flex; gap: 8px; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--ink); margin-top: 56px; padding: 28px 0 40px; font-size: 13px; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Página inicial ---------- */
.hero__result .result__row { grid-template-columns: minmax(0, 1fr) 84px; }
.hero__result .result__pct { font-size: 22px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--rule); padding: 18px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.card:hover { border-color: var(--ink); }
.card h3 { font-size: 19px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.card__cta { margin-top: auto; font-size: 13px; font-weight: 600; }
.region-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.region-card { padding: 16px 16px 16px 0; margin-right: 16px; border-right: 1px solid var(--rule); min-width: 0; }
.region-card:last-child { border-right: 0; margin-right: 0; }
.region-card h3 { font-size: 18px; margin-bottom: 2px; }
.region-card .small { display: block; margin-bottom: 10px; }
.region-card .stack { margin: 8px 0 6px; }
.region-card dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: 12px; margin: 10px 0 0; }
.region-card dt { color: var(--muted); }
.region-card dd { margin: 0; text-align: right; font-weight: 500; }
.shares { display: flex; justify-content: space-between; font-size: 12px; gap: 8px; flex-wrap: wrap; }
.shares b { font-weight: 600; }
.region-card .shares { flex-direction: column; gap: 2px; align-items: flex-start; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .map-page { grid-template-columns: 260px minmax(0, 1fr); }
  .map-side--right { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
  .region-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .region-card:nth-child(3) { border-right: 0; }
  .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
  .nav .search { order: 3; width: 100%; margin: 8px 0 10px; }
  .masthead__meta { display: none; }
  .map-page { grid-template-columns: 1fr; min-height: 0; }
  .map-side { border-right: 0; border-bottom: 1px solid var(--rule); }
  .map { height: 68vh; min-height: 360px; }
  .region-cards { grid-template-columns: 1fr 1fr; }
  .region-card:nth-child(odd) { border-right: 1px solid var(--rule); }
  .region-card:nth-child(even) { border-right: 0; }
  .band { grid-template-columns: 1fr; gap: 6px; }
  .footer__grid { grid-template-columns: 1fr; }
  .consent { left: 8px; right: 8px; bottom: 8px; }
}
@media (max-width: 480px) {
  .brand { font-size: 24px; }
  .brand small { display: none; }
  .stat { padding: 10px 12px 10px 0; }
  .region-cards { grid-template-columns: 1fr; }
  .region-card { border-right: 0 !important; margin-right: 0; border-bottom: 1px solid var(--rule); }
  .result__row { grid-template-columns: minmax(0, 1fr) 64px; }
}
@media print {
  .masthead, .footer, .consent, .map__controls, .ad-slot { display: none !important; }
}
