/* CRIE.ATLAS.PUBLIC.EXPERIENCE.01 + MAP.02
   Apresentacao editorial, estados de foco e instrumento primeiro. Sem bibliotecas externas.
   Paleta de interface nao determina semantica de indicadores. */
body.cc-territory-portal {--ctp-ink:#102A43;--ctp-muted:#52677A;--ctp-blue:#176B85;--ctp-green:#1D745B;--ctp-line:#D7E1E5;--ctp-surface:#FFFFFF; background:#F7F9F9;color:#102A43}
body.cc-territory-portal .ctp-main {max-width:1480px;margin:0 auto;padding:18px clamp(16px,2.4vw,36px) 65px}
body.cc-territory-portal .ctp-hero.ctp-hero--experience {display:block;min-height:0;box-shadow:none;border:0;background:transparent;border-radius:0;padding:0;margin:0 0 14px;overflow:visible}
body.cc-territory-portal .ctp-hero--experience:before {display:none}
body.cc-territory-portal .ctp-hero__copy {padding:0 0 12px;max-width:none}
body.cc-territory-portal .ctp-hero .ctp-eyebrow {margin:0 0 8px;font-size:.7rem;font-weight:800;letter-spacing:.105em;color:#176B85}
body.cc-territory-portal .ctp-hero h1 {max-width:1200px;margin:0;color:#102A43;font-size:clamp(1.8rem,3vw,3rem);line-height:1.06;font-weight:800;letter-spacing:-.04em}
body.cc-territory-portal .ctp-hero h1 span {color:#176B85}
body.cc-territory-portal .ctp-hero .ctp-lead {max-width:1060px;margin:8px 0 0;font-size:clamp(.9rem,1.3vw,1rem);line-height:1.5;color:#435C70}
body.cc-territory-portal .ctp-studio-band {margin:11px 0 0;position:relative;overflow:hidden;border-radius:15px;background:#E9E6DC;aspect-ratio:5/1;max-height:230px}
body.cc-territory-portal .ctp-studio-band img {display:block;width:100%;height:100%;object-fit:cover;object-position:center 55%}
body.cc-territory-portal .ctp-studio-band figcaption {position:absolute;bottom:0;left:0;right:0;background:linear-gradient(0deg,rgba(11,32,45,.76),transparent);color:#fff;padding:24px 16px 11px;font-size:.83rem;font-weight:600;letter-spacing:.01em}
body.cc-territory-portal .ctp-unified-atlas {margin:0;scroll-margin-top:125px}
body.cc-territory-portal .ctp-unified-atlas__heading {padding:4px 2px 11px;display:flex;align-items:center;justify-content:space-between;gap:15px}
body.cc-territory-portal .ctp-unified-atlas__heading h2 {font-size:clamp(1.22rem,2vw,1.75rem);letter-spacing:-.02em}
body.cc-territory-portal .ctp-unified-atlas__heading p:last-child {margin:4px 0 0;font-size:.89rem;max-width:1000px}
body.cc-territory-portal .ctp-unified-atlas__heading a {white-space:nowrap;font-size:.8rem;text-decoration:none;border:1px solid #BDD7DE;border-radius:99px;padding:9px 14px;background:#fff}
body.cc-territory-portal .ctp-unified-atlas .atlasmap-shell {display:grid;grid-template-columns:minmax(0,1fr);gap:11px;align-items:start}
body.cc-territory-portal .ctp-unified-atlas .atlasmap-workspace {background:#fff;border:1px solid #DEE7EA;padding:clamp(14px,1.65vw,23px);border-radius:19px;box-shadow:0 7px 28px rgba(16,42,67,.045)}
body.cc-territory-portal .ctp-unified-atlas .atlasmap-workspace__head {margin:0 0 12px}
body.cc-territory-portal .ctp-unified-atlas .atlasmap-workspace__head h2 {font-size:clamp(1.1rem,1.7vw,1.5rem)}
body.cc-territory-portal .ctp-unified-atlas .atlasmap-geography {grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:17px;align-items:start}
body.cc-territory-portal .ctp-unified-atlas .atlasmap-svgbox {height:clamp(380px,45vw,545px);min-height:360px;border-radius:15px;background:linear-gradient(145deg,#EDF5F4,#E8F0F4);border:1px solid #D8E5E7}
body.cc-territory-portal .atlasmap-shape {fill:#71AABA;fill-opacity:.90;stroke:#EFF7F6;stroke-width:1.15;transition:fill .12s}
body.cc-territory-portal .atlasmap-shape:hover,body.cc-territory-portal .atlasmap-shape:focus-visible {fill:#C88936;stroke:#102A43;fill-opacity:1;outline:none;stroke-width:2}
body.cc-territory-portal .atlasmap-shape.is-selected {fill:#C88936;stroke:#102A43;fill-opacity:1}
body.cc-territory-portal .ctp-search--inside-atlas {display:block;margin:0 0 12px;padding:0;box-shadow:none;background:transparent;border:0;max-width:none}
body.cc-territory-portal .ctp-search--inside-atlas label {margin:0 0 6px;display:block;color:#102A43;font-size:.88rem;font-weight:750}
body.cc-territory-portal .ctp-search--inside-atlas .ctp-search__control {display:flex;gap:6px;flex-wrap:nowrap;margin:0;padding:5px;border:1px solid #D7E1E5;border-radius:12px;background:#fff;box-shadow:none;min-width:0}
body.cc-territory-portal .ctp-search--inside-atlas input {font-size:.9rem;min-width:0;width:100%;flex:1;border:none;padding:9px 8px}
body.cc-territory-portal .ctp-search--inside-atlas button {flex:0 0 auto;font-size:.85rem;padding:8px 12px;background:#176B85;border-radius:9px;color:white}
body.cc-territory-portal .ctp-search--inside-atlas button:disabled {opacity:.52}
body.cc-territory-portal .ctp-search--inside-atlas .ctp-search__hint {font-size:.74rem;margin:6px 0;color:#536A7A}
body.cc-territory-portal .atlasmap-state-picker {padding-top:2px}
body.cc-territory-portal .atlasmap-geography__aside label {font-size:.87rem}
body.cc-territory-portal .atlasmap-state-picker select {min-height:45px;border-radius:11px}
body.cc-territory-portal .atlasmap-state-shortcuts {padding:9px 0 0}
body.cc-territory-portal .atlasmap-state-shortcuts summary {font-size:.81rem;color:#176B85;cursor:pointer;font-weight:700}
body.cc-territory-portal .atlasmap-state-list {margin:9px 0 0;max-height:210px;grid-template-columns:repeat(5,minmax(0,1fr));overflow:auto}
body.cc-territory-portal .atlasmap-city-panel {margin-top:15px}
body.cc-territory-portal .atlasmap-guidance {display:block;width:100%;padding:0;margin:0;background:#FFFFFF;border:1px solid #DDE7EA;border-radius:14px;box-shadow:none;grid-column:1}
body.cc-territory-portal .atlasmap-guidance summary {padding:13px 18px;cursor:pointer;color:#176B85;font-weight:750;list-style:disclosure-closed;font-size:.91rem}
body.cc-territory-portal .atlasmap-guidance[open] summary {border-bottom:1px solid #E6EEF0}
body.cc-territory-portal .atlasmap-guidance__body {padding:14px 18px;max-width:900px}
body.cc-territory-portal .atlasmap-guidance ol {margin:6px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.cc-territory-portal .atlasmap-guidance li {border:1px solid #E6EFF1;border-radius:10px;padding:12px}
body.cc-territory-portal .atlasmap-guidance__body>p {margin-top:0}
body.cc-territory-portal .atlasmap-workspace .atlasmap-selection {border-color:#E2E9EC}
body.cc-territory-portal .ctp-foundations {margin:17px 0 0;border:1px solid #DDE6EA;border-radius:17px;background:#fff;overflow:hidden}
body.cc-territory-portal .ctp-foundations>summary {padding:16px 20px;list-style:none;display:flex;justify-content:space-between;gap:12px;cursor:pointer;color:#102A43;font-size:.9rem}
body.cc-territory-portal .ctp-foundations>summary::-webkit-details-marker {display:none}
body.cc-territory-portal .ctp-foundations>summary strong {color:#176B85;margin-right:7px}
body.cc-territory-portal .ctp-foundations[open]>summary {border-bottom:1px solid #DFE7EB}
body.cc-territory-portal .ctp-foundations__content {padding:0 20px 20px}
body.cc-territory-portal .ctp-foundations__content .ctp-section {margin:0;padding:22px 0;border-bottom:1px solid #E8EEF0}
body.cc-territory-portal .ctp-foundations__content .ctp-section__head h2,body.cc-territory-portal .ctp-foundations__content .ctp-method h2 {font-size:clamp(1.2rem,2vw,1.6rem)}
body.cc-territory-portal .ctp-main button:focus-visible, body.cc-territory-portal .ctp-main select:focus-visible,body.cc-territory-portal .ctp-main input:focus-visible,body.cc-territory-portal .ctp-main summary:focus-visible,body.cc-territory-portal .ctp-main a:focus-visible {outline:3px solid #B56B0C;outline-offset:3px}
@media(max-width:950px){body.cc-territory-portal .ctp-unified-atlas .atlasmap-geography {grid-template-columns:minmax(0,1fr) minmax(250px,.68fr)}body.cc-territory-portal .atlasmap-guidance ol {grid-template-columns:1fr}}
@media(max-width:720px){body.cc-territory-portal .ctp-main {padding:12px 12px 40px}body.cc-territory-portal .ctp-hero h1 {font-size:clamp(1.65rem,7vw,2.4rem)}body.cc-territory-portal .ctp-studio-band {aspect-ratio:3.4/1;max-height:170px;border-radius:12px}body.cc-territory-portal .ctp-studio-band img {object-position:center}body.cc-territory-portal .ctp-studio-band figcaption {font-size:.7rem;padding:20px 11px 8px}body.cc-territory-portal .ctp-unified-atlas__heading {flex-wrap:wrap}body.cc-territory-portal .ctp-unified-atlas__heading a {padding:6px 10px}body.cc-territory-portal .ctp-unified-atlas .atlasmap-geography {grid-template-columns:1fr}body.cc-territory-portal .ctp-unified-atlas .atlasmap-svgbox {height:clamp(265px,82vw,365px);min-height:265px}body.cc-territory-portal .atlasmap-geography__aside {order:0}body.cc-territory-portal .ctp-unified-atlas .atlasmap-workspace {padding:13px}body.cc-territory-portal .ctp-search--inside-atlas .ctp-search__control {max-width:none}body.cc-territory-portal .ctp-foundations__content {padding:0 12px 12px}}
@media(prefers-reduced-motion:reduce){body.cc-territory-portal .atlasmap-shape {transition:none}}
/* Mobile: mostrar primeiro o território, depois os controles de escolha. */
@media(max-width:720px){
 body.cc-territory-portal .atlasmap-shell .atlasmap-geography{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"map" "search" "selector" "municipios";gap:12px}
 body.cc-territory-portal .atlasmap-shell .atlasmap-geography__aside{display:contents}
 body.cc-territory-portal .atlasmap-shell .atlasmap-svgbox{grid-area:map}
 body.cc-territory-portal .atlasmap-shell .ctp-search--inside-atlas{grid-area:search;min-width:0}
 body.cc-territory-portal .atlasmap-shell .atlasmap-state-picker{grid-area:selector;min-width:0}
 body.cc-territory-portal .atlasmap-shell .atlasmap-city-panel{grid-area:municipios;min-width:0}
}

body.cc-territory-portal .atlasmap-map-source{color:#52677A;font-size:.75rem;margin:10px 0 0;line-height:1.5}
