.source-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.source-result{padding:24px;border-top:3px solid #6d3a22;background:var(--paper);overflow-wrap:anywhere}.source-result h3{font-size:25px;margin:0 0 8px}.source-result small,.source-result a{display:block;margin-top:12px}.source-result a,.text-link{text-decoration:underline}.state{display:inline-block;padding:3px 9px;background:#433c30;color:white;font-size:13px}.state.ok{background:#3c522c}.state.stale,.state.credentials_required,.state.unavailable{background:#793c23}button,select{font:inherit;padding:9px 13px;border:1px solid #604721;background:var(--paper);color:var(--ink);cursor:pointer}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #246b9d;outline-offset:3px}.atlas-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px}.map-surface{background:#e8d4ad;border:1px solid #6d3a22}.map-surface svg{display:block;width:100%;height:580px;touch-action:pan-y}.map-surface path{fill:#b88d48;stroke:#6d3a22;stroke-width:1;vector-effect:non-scaling-stroke;cursor:pointer}.map-surface #municipios path{fill:#d4b67b;stroke-width:.6}.map-surface #municipios path:hover,.map-surface #municipios path.selected{fill:#805035}#layers label{display:block;margin:12px 0}#layers input{margin-right:10px}.atlas-layout select{width:100%}.map-tools{display:flex;flex-wrap:wrap;gap:8px;padding:12px}.prose{max-width:850px}.prose a{text-decoration:underline}.prose h2{margin-top:32px}@media(max-width:700px){.atlas-layout,.source-results{grid-template-columns:1fr}.map-surface svg{height:430px}}@media(prefers-reduced-motion:reduce){.ticker-stream{animation:none}}

.alert-item{margin:10px 0 0;padding:10px 12px;border-left:4px solid #b76822;background:#f4e6c8;line-height:1.45}

.map-surface [data-kind="states"] path{fill:none;stroke:#171c16;stroke-width:2.4;stroke-opacity:.95;pointer-events:none}.map-surface [data-kind="municipalities"] path{fill:none;stroke:#81684b;stroke-width:.5}.map-surface [data-kind="neighbors"] path{stroke-width:1.2;pointer-events:none;fill-opacity:.78}.map-surface [data-kind="neighbors"] path[data-biome="cerrado"]{fill:#d6a328;stroke:#7d5700}.map-surface [data-kind="neighbors"] path[data-biome="mata-atlantica"]{fill:#28725c;stroke:#0d4938}.map-surface [data-kind="neighbors"] path[data-biome="amazonia"]{fill:#3f7f48;stroke:#174d2a}.map-surface [data-kind="biome"] path{fill:#b96532;fill-opacity:.63;stroke:#552412;stroke-width:2.1;pointer-events:none}.map-surface [data-kind="municipalities"] path.selected{fill:#f5d264;stroke:#171c16;stroke-width:2}#layers{font-size:14px}
.map-surface [data-kind="interfaces"] path{fill:none;stroke:#00a4c8;stroke-width:2.2;stroke-dasharray:7 4;pointer-events:none}.map-surface [data-kind="coast"] path{fill:#4ea7c7;fill-opacity:.38;stroke:#12627f;stroke-width:1.2;stroke-dasharray:4 3;pointer-events:none}.map-surface [data-kind="agreste"] path{fill:#9a5daa;fill-opacity:.28;stroke:#65306d;stroke-width:1.6;stroke-dasharray:2 3;pointer-events:none}
.map-surface [data-kind="hydro"] path{fill:none;stroke:#1f78a8;stroke-width:1.5;stroke-opacity:.78;pointer-events:none}
.map-surface [data-kind="hydro-regions"] path{fill:#7fb7c8;fill-opacity:.08;stroke:#4c8ca0;stroke-width:1.1;stroke-dasharray:5 3;pointer-events:none}
.map-surface [data-kind="reservoirs"] path{fill:#2d768b;stroke:#fff8e9;stroke-width:1;pointer-events:none}
.map-surface [data-kind="climate-stations"] path{fill:#d87a32;stroke:#fff8e9;stroke-width:1.1;pointer-events:none}
.map-surface [data-kind="climate-temperature"] path,.map-surface [data-kind="climate-precipitation"] path{stroke:#fff8e9;stroke-width:.18;pointer-events:none}
.map-surface [data-kind="climate-temperature"] path[data-bin="1"]{fill:#91bccc;fill-opacity:.62}.map-surface [data-kind="climate-temperature"] path[data-bin="2"]{fill:#c7d7a6;fill-opacity:.62}.map-surface [data-kind="climate-temperature"] path[data-bin="3"]{fill:#ecd789;fill-opacity:.62}.map-surface [data-kind="climate-temperature"] path[data-bin="4"]{fill:#e5a269;fill-opacity:.62}.map-surface [data-kind="climate-temperature"] path[data-bin="5"]{fill:#ba5b3f;fill-opacity:.62}
.map-surface [data-kind="climate-precipitation"] path[data-bin="1"]{fill:#d99f63;fill-opacity:.62}.map-surface [data-kind="climate-precipitation"] path[data-bin="2"]{fill:#e8ca81;fill-opacity:.62}.map-surface [data-kind="climate-precipitation"] path[data-bin="3"]{fill:#b9d39b;fill-opacity:.62}.map-surface [data-kind="climate-precipitation"] path[data-bin="4"]{fill:#79b9b5;fill-opacity:.62}.map-surface [data-kind="climate-precipitation"] path[data-bin="5"]{fill:#43899d;fill-opacity:.62}
.map-surface [data-kind="protected"] path{fill:#528f62;fill-opacity:.14;stroke:#35633f;stroke-width:.8}
.map-surface [data-kind="relief"] path{fill:#976d3d;fill-opacity:.11;stroke:#6a4726;stroke-width:.35}
.map-surface [data-kind="roads"] path{fill:none;stroke:#89401d;stroke-width:1.1;stroke-opacity:.82;pointer-events:none}

.map-surface [data-kind="municipalities"] path{pointer-events:all}.map-surface [data-kind="municipalities"] path:hover{stroke:#171c16;stroke-width:1.5}.map-surface [data-kind="municipalities"] path.selected{fill:#f5d264;fill-opacity:.85;stroke:#171c16;stroke-width:2}
.map-label{font:700 12px Arial,sans-serif;letter-spacing:.35px;paint-order:stroke;stroke:#f8ebcb;stroke-width:4;stroke-linejoin:round;pointer-events:none}.map-label.states{font-size:11px;fill:#141713;stroke:#f8ebcb;stroke-width:3}.map-label.biome{font-size:16px;fill:#592613}.map-label.cerrado{fill:#674700}.map-label.mata-atlantica{fill:#073f2f}.map-label.amazonia{fill:#123d1d}.map-label.coast{fill:#07526d}.biome-legend{margin:15px 0 22px;padding:12px 0;border-top:1px solid #8a621f;border-bottom:1px solid #8a621f;list-style:none}.biome-legend:before{content:'Biomas vizinhos no recorte';display:block;font-weight:700;margin-bottom:7px}.biome-key{display:flex;align-items:center;gap:8px;margin:5px 0}.biome-key:before{content:'';width:13px;height:13px;display:inline-block;border:1px solid #271a0e}.biome-key.cerrado:before{background:#d6a328}.biome-key.mata-atlantica:before{background:#28725c}.biome-key.amazonia:before{background:#3f7f48}

/* Hierarquia de leitura: biomas coloridos, estados neutros e camadas leves. */
.map-surface{background:#f5ead7;border-color:#9b7650}
.map-surface path{fill:#d8b782;stroke:#8f704e}
.map-surface #municipios path{fill:#ead9b7;stroke-width:.55}
.map-surface [data-kind="states"] path{stroke:#3b4641;stroke-width:1.9;stroke-opacity:.86}
.map-surface [data-kind="municipalities"] path{stroke:#a28a68;stroke-width:.45}
.map-surface [data-kind="neighbors"] path{stroke-width:1;fill-opacity:.42}
.map-surface [data-kind="neighbors"] path[data-biome="cerrado"]{fill:#dfc879;stroke:#957b2a}
.map-surface [data-kind="neighbors"] path[data-biome="mata-atlantica"]{fill:#89bfa9;stroke:#4c806b}
.map-surface [data-kind="neighbors"] path[data-biome="amazonia"]{fill:#92bc83;stroke:#527c4a}
.map-surface [data-kind="biome"] path{fill:#c98b5b;fill-opacity:.47;stroke:#905633;stroke-width:1.7}
.map-surface [data-kind="interfaces"] path{stroke:#4d9aae;stroke-width:1.8}
.map-surface [data-kind="coast"] path{fill:#9ccbd8;fill-opacity:.3;stroke:#5c99aa;stroke-width:1}
.map-surface [data-kind="agreste"] path{fill:#c1a0c7;fill-opacity:.2;stroke:#926f9a;stroke-width:1.2}
.map-surface [data-kind="relief"] path{fill:#b18b62;fill-opacity:.07;stroke:#896747;stroke-width:.3}
.map-surface [data-kind="protected"] path{fill:#7dac82;fill-opacity:.1;stroke:#57805e;stroke-width:.65}
.map-surface [data-kind="roads"] path{stroke:#ae7657;stroke-width:.85;stroke-opacity:.68}
.map-label{letter-spacing:.55px;stroke:#fff8e9;stroke-width:4}
.map-label.states{font-size:10px;fill:#33403c;stroke:#fff8e9;stroke-width:3}
.map-label.biome{font-size:14px;fill:#75452a}.map-label.cerrado{fill:#756020}.map-label.mata-atlantica{fill:#356d5b}.map-label.amazonia{fill:#426a3c}.map-label.coast{fill:#39768a}
.biome-key.cerrado:before{background:#dfc879}.biome-key.mata-atlantica:before{background:#89bfa9}.biome-key.amazonia:before{background:#92bc83}
.atlas-key{margin:0 0 22px;padding:12px;background:#fbf3e1;border-left:3px solid #9b7650;font-size:13px;line-height:1.45}.atlas-key p{margin:6px 0}.atlas-key strong{color:#5c3924}

.map-surface svg{touch-action:none;cursor:grab}.map-surface svg.is-dragging{cursor:grabbing}.map-drag-hint{margin:0;padding:11px 2px 0;color:#5c3924;font-size:13px}

.map-surface [data-kind="coast"] path{fill:url(#coast-hatch);fill-opacity:1;stroke:#2f7186;stroke-width:2.1;stroke-dasharray:6 2}
.coast-swatch{display:inline-block;width:18px;height:12px;margin:0 5px -1px 0;border:1px solid #2f7186;background:repeating-linear-gradient(35deg,#b9e1e8 0,#b9e1e8 4px,#43899d 4px,#43899d 6px)}

.map-label.states{font-size:11px;font-weight:600;letter-spacing:.15px;fill:#344955;stroke:#fff8e9;stroke-width:3}
.map-surface [data-kind="coast"] path{fill:url(#coast-hatch);stroke:#1e718a;stroke-width:2.6;stroke-dasharray:7 2}

.layer-actions{display:flex;gap:7px;margin:0 0 13px}.layer-actions button{padding:6px 8px;font-size:12px}
.map-surface [data-kind="roads"] path{stroke:#8e3f2b;stroke-width:1.55;stroke-opacity:.9}
.road-swatch{display:inline-block;width:18px;height:0;margin:0 5px 3px 0;border-top:3px solid #8e3f2b;vertical-align:middle}

.agreste-swatch{display:inline-block;width:18px;height:12px;margin:0 5px -1px 0;border:1px solid #926f9a;background:repeating-linear-gradient(35deg,#ead9ed 0,#ead9ed 4px,#926f9a 4px,#926f9a 6px)}

.atlas-layout{grid-template-columns:220px minmax(0,1fr) 270px;align-items:start}.atlas-location,.atlas-layers{background:#f8efd9;padding:18px;border-top:3px solid #9b7650}.atlas-location h2,.atlas-layers h2{font-size:20px;margin-top:0}.atlas-location #base-layers{margin-bottom:18px}.atlas-layers #theme-layers label,.atlas-location #base-layers label{display:block;margin:10px 0}.state-leader{stroke:#6e8490;stroke-width:.8;stroke-dasharray:2 2;pointer-events:none}.map-label.states{font-size:11px;fill:#344955;stroke:#fff8e9;stroke-width:3}.map-label.cursor-away{opacity:.12;transform:translateY(-18px);transition:opacity .12s ease,transform .12s ease}.map-label{transition:opacity .12s ease,transform .12s ease}@media(max-width:980px){.atlas-layout{grid-template-columns:220px minmax(0,1fr)}.atlas-layers{grid-column:1/-1}.atlas-location #base-layers{columns:2}}@media(max-width:700px){.atlas-layout{grid-template-columns:1fr}.atlas-layers{grid-column:auto}.atlas-location #base-layers{columns:auto}}
/* Atlas: escala operacional, composição simétrica e leitura documental. */
main p{hyphens:auto;text-align:justify;text-justify:inter-word}
.ticker span,.eyebrow,nav a,.button,button,label,.tag,.state,.map-tools button,.map-drag-hint,.layer-actions button,#map-status,.biome-legend,.atlas-key strong,footer span,footer a{text-align:left;hyphens:manual}
.atlas-hero{padding-top:48px;padding-bottom:42px}.atlas-hero h1{font-size:clamp(38px,5vw,61px)}
.atlas-layout{grid-template-columns:260px minmax(0,1fr) 260px;gap:22px;align-items:stretch}
.atlas-location,.atlas-layers,.atlas-map{background:#f8efd9;border-top:3px solid #9b7650;padding:18px;min-width:0}
.atlas-map{display:flex;flex-direction:column}.atlas-location h2,.atlas-layers h2{min-height:48px;display:flex;align-items:center;margin:0 0 12px;font-size:20px;line-height:1.1}
.atlas-location #base-layers,.atlas-layers #theme-layers{margin:0 0 18px}
.atlas-layers #theme-layers label,.atlas-location #base-layers label{display:flex;align-items:center;gap:9px;min-height:40px;margin:0;padding:7px 2px;border-top:1px solid #d7c39e;font-size:14px;line-height:1.25;cursor:pointer}
.atlas-layers #theme-layers label:last-child,.atlas-location #base-layers label:last-child{border-bottom:1px solid #d7c39e}
.atlas-layers input,.atlas-location input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0}
.atlas-location label[for=municipality-search]{display:block;margin:6px 0 7px;font-size:13px;font-weight:700}
#municipality-search{width:100%;min-height:42px;padding:10px;border:1px solid #8a621f;background:#fffaf0;color:#271a0e}
.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}
.map-surface{background:#f5ead7}.map-surface svg{height:540px}.map-documentation{margin:12px 0 0;color:#604721;font-size:12px;line-height:1.45}
.map-status-panel{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;margin:12px 0 0;padding:9px 11px;background:#ede0c3;border-left:3px solid #9b7650;font-size:13px;line-height:1.35}.map-status-panel p{margin:0;text-align:left}
.map-status-panel[data-state=ready]{background:#e5ecdc;border-left-color:#54743b}.map-status-panel[data-state=error]{background:#f5ddd3;border-left-color:#ad472d;color:#642619}.map-status-panel button{flex:0 0 auto;min-height:34px;padding:6px 9px;background:#fff8e9;font-size:12px}
.layer-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 13px}.layer-actions button{min-height:40px;padding:7px;font-size:13px}
.biome-legend{font-size:14px;line-height:1.4}.atlas-key{margin:0 0 18px;padding:14px;font-size:14px;line-height:1.48}.atlas-key p{margin:8px 0}
@media(max-width:980px){.atlas-layout{grid-template-columns:1fr 1fr}.atlas-map{grid-column:1/-1;grid-row:1}.atlas-location,.atlas-layers{grid-row:2}.atlas-layers{grid-column:auto}.atlas-location #base-layers{columns:auto}}
@media(max-width:700px){.atlas-layout{grid-template-columns:1fr}.atlas-map,.atlas-location,.atlas-layers{grid-column:auto;grid-row:auto}.atlas-hero{padding-top:38px;padding-bottom:34px}.map-surface svg{height:420px}}
.territory-card{margin:16px 0 0;padding:14px;background:#fff8e9;border-top:3px solid #8e3f2b}.territory-card h3{margin:8px 0;font-size:19px}.territory-card p{margin:0 0 9px;font-size:13px}.territorial-page{padding-top:46px}.territory-main{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:36px}.territory-main h2{font:600 30px/1.08 'Bahnschrift','Arial Narrow',Arial,sans-serif}.territory-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:22px 0;gap:0 24px}.territory-facts div{padding:12px 0;border-top:1px solid #9b7650}.territory-facts dt{font-size:11px;font-weight:700;color:#604721}.territory-facts dd{margin:4px 0 0}.territory-side{padding:20px;background:#743d24;color:#f5dfb8}.territory-side h2{font-size:25px;color:#fff1d6}.territory-side ul{padding-left:18px;font-size:13px}.territory-media{margin-top:35px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.territory-media img{width:100%;min-height:260px;object-fit:cover}@media(max-width:700px){.territory-main{grid-template-columns:1fr}.territory-facts{grid-template-columns:1fr}.territory-media{grid-template-columns:1fr}}

.map-surface [data-kind="state-roads"] path{fill:none;stroke:#466685;stroke-width:1.15;stroke-opacity:.78;pointer-events:none}
.state-road-swatch{display:inline-block;width:18px;height:0;margin:0 5px 3px 0;border-top:3px solid #466685;vertical-align:middle}
#satellite-map{height:620px;border:1px solid #8a621f;background:#1d2929}.satellite-controls{display:flex;align-items:end;gap:12px;margin:0 0 14px;padding:15px;background:#f8efd9;border-top:3px solid #9b7650}.satellite-controls label{display:grid;gap:5px;font-size:12px;font-weight:700}.satellite-controls select,.satellite-controls input{min-height:39px;padding:8px;border:1px solid #8a621f;background:#fffaf0;color:#271a0e}.satellite-controls button{min-height:39px;padding:9px 13px;background:#743d24;color:#fff1d6;border:0;font-weight:700}.ghost-link{background:#e9bc58;color:#28190d;padding:10px 13px;font-size:12px;font-weight:700}.sat-status{margin:0 0 14px;padding:10px 12px;background:#e5ecdc;border-left:3px solid #54743b;font-size:13px}.satellite-notes{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:34px;margin-top:25px}.satellite-notes h2{font:600 28px/1.1 'Bahnschrift','Arial Narrow',Arial,sans-serif}.satellite-notes aside{padding:20px;background:#743d24;color:#f5dfb8}.satellite-notes aside h2{color:#fff1d6;font-size:24px}.satellite-notes aside .text-link{color:#fff1d6;border-bottom:1px solid #e7bd7f}@media(max-width:700px){#satellite-map{height:440px}.satellite-controls{align-items:stretch;flex-direction:column}.satellite-notes{grid-template-columns:1fr}}
/* Perfis municipais: dado, período e proveniência permanecem juntos. */
.municipal-facts dd small{display:block;margin-top:5px;font-size:12px;font-weight:600}.data-note{padding:11px 13px;background:#f1e5c9;border-left:3px solid #9b7650;font-size:13px}.source-list{padding-left:19px}.source-list li{margin:7px 0}.territory-hero h1 span{font-size:.48em;letter-spacing:.04em;color:#f1d69a}

.distance-panel{margin:28px 0;padding:21px;background:#fff8e9;border-top:3px solid #8e3f2b}.distance-panel h2{margin:0 0 8px;font-size:26px}.distance-panel p{font-size:13px}.distance-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:16px 0;padding:0;list-style:none}.distance-grid li{padding:10px;background:#efe1c2;display:grid;gap:3px;font-size:12px}.distance-grid strong{color:#8e3f2b;text-transform:uppercase;font-size:10px}.distance-grid b{font-size:15px}.distance-control{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.distance-control label{display:grid;gap:5px;font-size:12px;font-weight:700}.distance-control select{min-width:220px}.distance-result{margin:0;font-size:14px;font-weight:700}@media(max-width:700px){.distance-grid{grid-template-columns:1fr 1fr}.distance-control{align-items:stretch}.distance-control label,.distance-control select{width:100%}}

/* Fichas municipais automatizadas: dados de base separados de perfis editoriais. */
.municipal-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:12px}.territory-card .text-link+.text-link{display:inline-block;margin-left:12px}.municipal-data small{display:block;margin-top:5px}.municipal-data .territory-facts{margin-bottom:0}@media(max-width:700px){.municipal-actions{align-items:stretch}.municipal-actions .button,.municipal-actions .text-link{width:100%;box-sizing:border-box}.territory-card .text-link+.text-link{margin:10px 0 0}}

.territory-card [hidden]{display:none!important}

/* Gráficos municipais: duas séries IBGE datadas, sem projeção local. */
.municipal-chart,.municipal-navigation{margin:32px 0;padding-top:22px;border-top:1px solid #b78d4c}.chart-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:16px 0}.chart-bars>div{display:grid;gap:7px}.chart-bars span{display:block;height:34px;width:var(--bar);min-width:8px;background:#935238;border:1px solid #62321f}.chart-bars b{font-size:15px}.chart-bars small{font-size:14px}@media(max-width:600px){.chart-bars{grid-template-columns:1fr}}

/* Objeto territorial: contexto vivo, mapa local e proveniência legível. */
.municipal-live,.municipal-local-map{margin:34px 0;padding:24px;background:#f6e8cb;border-top:3px solid #7d432d}.live-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.live-card{padding:14px;background:#fff8e9;border-left:4px solid #7e603b}.live-card.ok{border-left-color:#4d7344}.live-card.unavailable,.live-card.credentials_required{border-left-color:#a34b35}.live-card>div{display:flex;justify-content:space-between;gap:8px}.live-card span{font-size:11px;text-transform:uppercase}.live-card p{font-size:13px;margin:9px 0}.live-card small,.live-card a{display:block;font-size:11px;margin-top:7px}.municipal-local-map iframe{width:100%;height:520px;border:1px solid #875f2c;background:#e8d4ad}@media(max-width:700px){.live-grid{grid-template-columns:1fr}.municipal-local-map iframe{height:390px}}@media(prefers-reduced-motion:no-preference){body:has(.municipal-live){animation:territory-enter .45s ease-out}@keyframes territory-enter{from{opacity:.15;transform:translateY(14px)}to{opacity:1;transform:none}}}

/* Atlas: grid children must shrink within the available viewport. */
.atlas-layout>*{min-width:0;max-width:100%}.atlas-map,.atlas-map .map-surface{min-width:0;max-width:100%}.atlas-map svg{max-width:100%;width:100%;display:block}.map-tools{flex-wrap:wrap}.atlas-location input,.atlas-location select{max-width:100%;box-sizing:border-box}.atlas-layout aside{overflow-wrap:anywhere}@media(max-width:1100px){.atlas-layout{grid-template-columns:minmax(180px,220px) minmax(0,1fr)}.atlas-layout>.atlas-layers{grid-column:1/-1}}@media(max-width:760px){.atlas-layout{display:flex;flex-direction:column}.atlas-layout>*{width:100%}.atlas-location,.atlas-layers{box-sizing:border-box}}

#municipality.sr-only{position:absolute!important;width:1px!important;max-width:1px!important;min-width:0!important;height:1px!important;overflow:hidden;clip-path:inset(50%)}

#hidrografia-local path{fill:none;stroke:#397f9b;stroke-width:1.2;vector-effect:non-scaling-stroke;pointer-events:stroke}#hidrografia-local path[data-water-body=true]{fill:#b8dce4;stroke-width:.7}.state-leader{vector-effect:non-scaling-stroke}
