:root{font-family:"Segoe UI",Arial,sans-serif;color:#303030;background:#f5f6f8;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,summary{cursor:pointer}button,select,input{font:inherit}button{border:1px solid #cad6df;background:#fff;color:#175f8a;border-radius:6px;padding:7px 12px}button:hover{background:#eaf5fc}button:focus-visible,summary:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #f6a500;outline-offset:2px}.toolbar{max-width:1920px;margin:auto;min-height:49px;padding:9px 20px;display:flex;gap:16px;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e1e7eb}.update-status{margin:0;font-size:13px}.update-status::before{content:"";display:inline-block;width:8px;height:8px;border-radius:100%;background:#8c9aa3;margin-right:8px}.update-status.current::before{background:#159658}.update-status.stale::before,.update-status.reference::before{background:#c77c03}.update-status.error::before{background:#c13d3d}.dashboard{container-type:inline-size;position:relative;max-width:1920px;margin:auto;aspect-ratio:16/9;background:#fff url('/assets/fundo-original.png') center/100% 100% no-repeat}.dashboard>h1,.map-panel>h2,.metric>h2,.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-panel{position:absolute;left:1.7%;top:15.66%;width:36.27%;height:55.5%}#map{width:100%;height:91%;overflow:visible;touch-action:manipulation}#map path{stroke:#fff;stroke-width:.8;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .15s,opacity .15s}#map path:hover,#map path:focus-visible{stroke:#113e5b;stroke-width:1.6;outline:none}#map path.selected{stroke:#112f48;stroke-width:2.5}#map path.filtered{opacity:.18}.map-controls{position:absolute;left:4px;top:2px;display:flex;gap:3px;z-index:2}.map-controls button{font-size:16px;width:28px;height:28px;padding:0;background:#ffffffd9}.map-legend{display:flex;align-items:center;justify-content:center;gap:7px;font-size:.72cqw;line-height:1.3}.gradient{width:22%;height:6px;background:linear-gradient(90deg,#8dcffb,#0775bd);border-radius:3px}#map-detail{margin:5px 0 0;text-align:center;font-size:.78cqw;min-height:1.4em}.regional-filter{position:absolute;left:38%;top:18.94%;width:23.86%;height:8.6%;z-index:5}.regional-filter h2{font-size:1.02cqw;text-align:center;margin:0 0 6px}.regional-filter details{font-size:1.05cqw}.regional-filter summary{padding:6px 10px;background:#fff;border:1px solid #8f979d;list-style:none;display:flex;align-items:center;justify-content:space-between}.regional-filter summary::after{content:"⌄"}.regional-filter details[open]{box-shadow:0 6px 15px #0002}.regional-filter fieldset{max-height:300px;overflow:auto;background:#fff;margin:0;border:1px solid #8f979d;border-top:0;padding:8px}.regional-filter label{display:flex;align-items:center;gap:8px;padding:5px;cursor:pointer}.regional-filter input{accent-color:#0775bd}.municipal-table{position:absolute;left:38%;top:27.02%;width:23.86%;height:44.19%;overflow:auto;scrollbar-width:thin}.municipal-table table{border-collapse:separate;border-spacing:0;width:100%;font-size:.98cqw;text-align:left}.municipal-table th,.municipal-table td{padding:5px 9px}.municipal-table thead{position:sticky;top:0;z-index:2;background:#0775bd;color:white}.municipal-table th:last-child,.municipal-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}.municipal-table tbody tr:nth-child(odd){background:#e3f1fb}.municipal-table tbody tr:nth-child(even){background:#f4f9fc}.municipal-table tbody tr.selected{background:#abd7f4}.municipal-table tbody button{border:0;background:none;color:#242424;border-radius:0;padding:0;text-align:left;width:100%;font-size:inherit}.municipal-table tfoot{position:sticky;bottom:0;background:#d2eafb;font-weight:700}.metric{position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;color:white;pointer-events:none}.metric strong{font-size:4.35cqw;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.05em;text-shadow:0 1px 1px #0001}.metric-recent{left:67.64%;top:13.31%;width:27.54%;height:20.85%}.metric-recent strong{font-size:6.25cqw}.metric-events{left:66.32%;top:40.9%;width:13.98%;height:20.83%}.metric-participants{left:83.51%;top:40.9%;width:16.49%;height:20.83%}.metric-credit{left:65.64%;top:68.63%;width:14.64%;height:11.1%}.metric-organizations{left:82.63%;top:69.35%;width:15.65%;height:9.73%}.metric-individual{left:19.14%;top:74.14%;width:25.28%;height:15.74%}.metric-individual strong{font-size:5.2cqw}.board-note{position:absolute;margin:0;left:63.05%;top:88.4%;width:36.95%;min-height:2.8%;background:#fff;padding:3px 0;font-size:.72cqw;line-height:1.4;font-style:italic}.page-footer{max-width:1920px;margin:auto;padding:13px 20px;display:flex;justify-content:space-between;gap:12px;color:#586873;font-size:12px}.empty-row td{padding:25px 10px;text-align:center!important;color:#52636f}.dashboard.loading #map{opacity:.55}
@media(min-width:1921px){.toolbar,.page-footer{max-width:1920px}}
@media(max-width:760px){.toolbar{padding:10px 14px;align-items:flex-start}.toolbar button{white-space:nowrap;font-size:12px}.update-status{font-size:12px;line-height:1.45}.dashboard{aspect-ratio:auto;background:#fff;display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px 14px}.dashboard>h1{position:static;width:auto;height:auto;clip:auto;white-space:normal;overflow:visible;margin:0 0 4px;grid-column:1/-1;font-size:23px;line-height:1.2;color:#185f84}.map-panel,.regional-filter,.municipal-table,.metric,.board-note{position:relative;left:auto;top:auto;width:auto;height:auto}.regional-filter{grid-column:1/-1;grid-row:2}.regional-filter h2{font-size:14px;text-align:left}.regional-filter details{font-size:14px}.regional-filter fieldset{position:absolute;width:100%;max-height:260px}.map-panel{grid-column:1/-1;background:#f0f0f0;border-radius:12px;padding:15px;min-height:350px}.map-panel>h2{position:static;clip:auto;white-space:normal;overflow:visible;width:auto;height:auto;font-size:15px;text-align:center;margin:0 0 8px}#map{height:auto;max-height:370px;display:block}.map-controls{top:45px;left:20px}.map-legend,#map-detail{font-size:11px}.municipal-table{grid-column:1/-1;max-height:300px}.municipal-table table{font-size:13px}.municipal-table td,.municipal-table th{padding:8px}.metric{min-height:145px;flex-direction:column-reverse;gap:15px;padding:20px 10px;border-radius:24px;background:linear-gradient(35deg,#28618a,#1d9b57);box-shadow:0 6px 10px #0001}.metric>h2{position:static;clip:auto;white-space:normal;overflow:visible;width:auto;height:auto;margin:0;font-size:14px;line-height:1.4;font-weight:600}.metric strong,.metric-recent strong,.metric-individual strong{font-size:clamp(24px,7vw,44px)}.metric-recent,.metric-individual{grid-column:1/-1;min-height:150px}.metric-individual{background:#0775bd}.board-note{grid-column:1/-1;font-size:11px;min-height:0}.page-footer{flex-direction:column;padding:14px;background:#fff;border-top:1px solid #e4ebef;font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.period-note{max-width:1920px;margin:0 auto;padding:0 20px 16px;color:#586873;font-size:11px;line-height:1.5}@media(min-width:761px){.metric-events{left:67.7%;width:12.6%}.metric-events strong{font-size:3.75cqw}.metric-participants{left:85.4%;width:12.5%}.metric-participants strong{font-size:3.3cqw}}
@media(max-width:760px){.dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard>*{min-width:0}}

/* Refinamento da composição original, sem mudanças nos indicadores. */
#map path{stroke-width:.42}
.metric-icon{fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;opacity:.94}
.indicator-backdrop,.individual-backdrop,.indicator-pair{position:absolute;pointer-events:none}
.indicator-backdrop{left:63%;top:14%;width:37%;height:77%;background:#fff}
.individual-backdrop{left:10.5%;top:74%;width:43.5%;height:17.5%;background:#fff}
.indicator-pair{left:63.15%;width:36.2%;height:22%;border:2px solid #6ba9ce;border-radius:.65cqw;background:linear-gradient(135deg,#f6fafc,#fff);box-shadow:0 1px 4px #174f7010}
.pair-events{top:42.95%}.pair-projects{top:66.25%}
.author-credit{position:absolute;right:0;bottom:0;width:36%;height:2.12%;margin:0;padding:.15cqw .65cqw 0;background:#ccc;color:#5c6469;font-size:.56cqw;line-height:1.5;text-align:right}
@media(min-width:761px){
 .municipal-table{height:42.5%;border-radius:0 0 5px 5px}
 .metric{flex-direction:column;gap:0;background:linear-gradient(120deg,#137f98 0%,#1b925f 100%);border:1px solid #ffffff38;border-radius:1.5cqw;box-shadow:0 .25cqw .7cqw #174a6018;overflow:hidden}
 .metric:after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(155deg,#ffffff0c,transparent 55%);pointer-events:none}
 .metric>h2{position:absolute;clip:auto;white-space:normal;overflow:visible;width:94%;height:auto;margin:0;left:3%;bottom:10%;font-size:1.06cqw;line-height:1.4;letter-spacing:.02em;font-weight:600}
 .metric strong{position:absolute;left:16%;top:18%;width:80%;font-size:3.55cqw;line-height:1.05;letter-spacing:-.04em;text-shadow:none;font-weight:650}
 .metric-icon{position:absolute;left:5%;top:25%;width:2.15cqw;height:2.15cqw}
 .metric-recent{left:69.74%;top:15.46%;width:22.66%;height:24.35%;border-radius:2.4cqw;background:linear-gradient(115deg,#087da2,#1b995a)}
 .metric-recent strong{top:13%;left:16%;width:75%;font-size:6cqw}
 .metric-recent .metric-icon{left:7%;top:33%;width:3cqw;height:3cqw}
 .metric-recent>h2{font-size:1.15cqw;bottom:12%}
 .metric-events,.metric-credit{left:64.01%;width:16.46%;height:17.6%}
 .metric-participants,.metric-organizations{left:81.72%;width:16.46%;height:17.6%}
 .metric-events,.metric-participants{top:44.72%}
 .metric-credit,.metric-organizations{top:67.69%}
 .metric-participants strong{font-size:3.12cqw;left:19%;width:77%;top:20%}
 .metric-individual{left:11.35%;top:75.74%;width:40.42%;height:12.5%;border-radius:.9cqw;background:linear-gradient(110deg,#087bbb,#096eaa)}
 .metric-individual>h2{top:7.5%;bottom:auto;font-size:1.2cqw}
 .metric-individual strong{left:14%;top:36.5%;width:78%;font-size:4cqw}
 .metric-individual .metric-icon{left:5%;top:36%;width:3cqw;height:3cqw}
}
@media(max-width:760px){
 .indicator-backdrop,.individual-backdrop,.indicator-pair{display:none}
 .metric{background:linear-gradient(120deg,#137f98,#1b925f);border-radius:17px;border:1px solid #ffffff38;box-shadow:0 3px 10px #174a6018;flex-direction:column;padding:18px 12px;gap:10px}
 .metric strong{order:1;font-weight:650;text-shadow:none}
 .metric h2{order:2;font-size:13px}
 .metric-icon{width:25px;height:25px;order:0}
 .metric-individual{background:linear-gradient(110deg,#087bbb,#096eaa)}
 .author-credit{position:static;grid-column:1/-1;width:auto;height:auto;font-size:9px;background:transparent;padding:0;margin:0;text-align:right;color:#6d787d}
}

/* Mapa ampliado e pesquisas dentro da área cinza da versão principal. */
.map-panel{left:1.15%;top:11.3%;width:61%;height:67.5%;background:#efefef;border-radius:.8cqw;padding:.65cqw 1cqw;display:flex;flex-direction:column;gap:3px;z-index:3}
.map-panel>h2{position:static;clip:auto;white-space:normal;overflow:visible;width:auto;height:auto;margin:0;text-align:center;font-size:1.15cqw;line-height:1.4;font-weight:650;letter-spacing:.035em}
.map-panel #map{display:block;flex:1;min-height:0;width:100%;height:0;overflow:hidden}
.map-controls{left:1cqw;top:2.8cqw}
.map-legend{flex:none;font-size:max(10px,.72cqw)}
#map-detail{flex:none;font-size:max(10px,.78cqw);margin:0;min-height:1.5em;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-searches{display:grid;grid-template-columns:1fr 1fr;gap:1cqw;margin-top:.35cqw;flex:none}
.search-filter{position:relative;min-width:0;font-size:clamp(11px,1cqw,18px)}
.search-filter>label{display:block;font-weight:600;margin-bottom:4px;color:#284a5a}
.search-filter>input{display:block;width:100%;min-width:0;height:clamp(30px,2.7cqw,46px);border:1px solid #b8c9d3;border-radius:6px;background:#fff;color:#263f4d;padding:4px 9px;font-size:inherit}
.search-filter>input::placeholder{color:#647783}
.filter-chips{display:flex;align-items:center;gap:5px;height:clamp(22px,2cqw,32px);overflow-x:auto;scrollbar-width:thin;white-space:nowrap;color:#61727b;font-size:.9em}
.filter-chips button{padding:1px 6px;border:1px solid #b7d6e8;border-radius:4px;background:#e1f0f8;font-size:inherit;white-space:nowrap;flex:none}
.search-popup{position:absolute;left:0;right:0;bottom:calc(100% - 1.5em);z-index:10;background:#fff;border:1px solid #91b6cc;border-radius:8px;box-shadow:0 6px 24px #173c5030;overflow:hidden}
.search-popup[hidden]{display:none}
.search-hint{font-size:.88em;color:#607582;margin:0;padding:8px 10px;background:#f3f7fa;border-bottom:1px solid #e1e9ed}
.search-popup [role=listbox]{max-height:190px;overflow:auto;overscroll-behavior:contain}
.search-popup [role=option]{display:block;width:100%;text-align:left;border:0;border-radius:0;padding:9px 10px;font-size:inherit;color:#263f4d}
.search-popup [role=option]:hover,.search-popup [aria-selected=true]{background:#dfedf6;color:#075b8f}
@media(min-width:761px){
 .individual-backdrop{left:1%;top:76.5%;width:61.5%;height:15%}
 .metric-individual{left:5%;top:80%;width:53%;height:11.3%}
 .metric-individual strong{font-size:3.8cqw;top:34%}
 .metric-individual .metric-icon{top:32%}
}
@media(max-width:760px){
 .map-panel{left:auto;top:auto;width:auto;height:auto;min-height:0;padding:14px;gap:6px;z-index:3}
 .map-panel>h2{font-size:14px;letter-spacing:0}
 .map-panel #map{flex:none;height:auto;aspect-ratio:1.4;max-height:none}
 .map-controls{left:18px;top:46px}
 .map-searches{gap:10px;margin-top:6px}
 .search-filter{font-size:12px}
 .search-filter>input{height:36px}
 .filter-chips{height:26px}
 #map-detail{font-size:10px}
 .search-popup{bottom:calc(100% - 18px)}
}
@media(max-width:430px){.map-searches{grid-template-columns:1fr}.search-filter>label{margin-bottom:3px}}
/* Mais altura útil permite ampliar o Paraná sem deformar seu contorno. */
@media(min-width:761px){
 .dashboard{aspect-ratio:100/73;background:#fff}
 .dashboard::before,.dashboard::after{content:"";position:absolute;left:0;width:100%;pointer-events:none;background-image:url('/assets/fundo-original.png');background-repeat:no-repeat;background-size:100% auto}
 .dashboard::before{top:0;height:8.4cqw;background-position:center top}
 .dashboard::after{bottom:0;height:5cqw;background-position:center bottom}
 .map-panel{top:6.3cqw;height:54cqw}
 .individual-backdrop{display:none}
 .metric-individual{top:61.2cqw;height:6.8cqw}
 .metric-recent{top:8.7cqw;height:15cqw}
 .pair-events{top:25cqw;height:17cqw}
 .pair-projects{top:43.3cqw;height:17cqw}
 .metric-events,.metric-participants{top:26cqw;height:15cqw}
 .metric-credit,.metric-organizations{top:44.3cqw;height:15cqw}
 .board-note{top:60.7cqw}
 .author-credit{z-index:2;height:1.2cqw}
}

/* Composição sem faixa superior; conteúdo dos cartões alinhado ao centro. */
#status[data-compact-status]{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:761px){
 .metric-recent{top:7.5cqw}
 .pair-events{top:23.8cqw}
 .pair-projects{top:42.1cqw}
 .metric-events,.metric-participants{top:24.8cqw}
 .metric-credit,.metric-organizations{top:43.1cqw}
 .board-note{top:59.5cqw;padding:0;min-height:0;line-height:1.1}
 .author-credit{height:1.2cqw;padding:0 .65cqw;display:flex;align-items:flex-end;justify-content:flex-end;line-height:1;margin:0;bottom:0}
 .dashboard .metric:not(.metric-individual){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6cqw;padding:.8cqw}
 .dashboard .metric:not(.metric-individual)>h2,.dashboard .metric:not(.metric-individual)>strong,.dashboard .metric:not(.metric-individual)>.metric-icon{position:static;left:auto;top:auto;bottom:auto;width:auto;margin:0;text-align:center;flex:none}
 .dashboard .metric:not(.metric-individual)>.metric-icon{order:0;width:2.15cqw;height:2.15cqw}
 .dashboard .metric:not(.metric-individual)>strong{order:1;line-height:1.1;letter-spacing:-.04em}
 .dashboard .metric:not(.metric-individual)>h2{order:2;max-width:100%;height:auto;line-height:1.4}
 .dashboard .metric-recent{gap:.4cqw}
 .dashboard .metric-recent>.metric-icon{width:2.7cqw!important;height:2.7cqw!important}
}

/* Informações agrupadas sob os cartões, dentro da altura do mapa. */
.dashboard-info{color:#586873}
.dashboard-info .board-note{position:static;width:auto;min-height:0;margin:0;padding:0;background:transparent;font-size:inherit;line-height:inherit}
.dashboard-info .public-note{margin:0}
.dashboard-info .activity-note{margin:0;padding:0;font:inherit}
.dashboard-info .activity-note::before{width:6px;height:6px;margin-right:5px;box-shadow:0 0 0 2px #17874422}
@media(min-width:761px){
 .dashboard:has(.dashboard-info) .map-controls{top:1cqw}
 .dashboard:has(.dashboard-info) .metric-recent{top:7.2cqw;height:14.5cqw;padding:.55cqw}
 .dashboard:has(.dashboard-info) .pair-events{top:22.4cqw}
 .dashboard:has(.dashboard-info) .metric-events,.dashboard:has(.dashboard-info) .metric-participants{top:23.4cqw}
 .dashboard:has(.dashboard-info) .pair-projects{top:40cqw}
 .dashboard:has(.dashboard-info) .metric-credit,.dashboard:has(.dashboard-info) .metric-organizations{top:41cqw}
 .dashboard-info{position:absolute;left:63.05%;right:.8%;bottom:12.7cqw;font-size:.72cqw;line-height:1.4;display:flex;flex-direction:column;gap:.12cqw}
 .dashboard:has(.dashboard-info) .author-credit{padding-bottom:3px}
}
@media(max-width:760px){
 .dashboard-info{grid-column:1/-1;font-size:11px;line-height:1.5;display:flex;flex-direction:column;gap:4px}
 .dashboard:has(.dashboard-info) .map-controls{top:18px}
 .dashboard:has(.dashboard-info) .author-credit{transform:translateY(-3px)}
}

/* Wider invisible hit areas; the municipality under the pointer resolves shared borders. */
#map #map-regions path{fill:none;stroke-linejoin:round;stroke-linecap:round}
#map #map-regions .regional-line{stroke:#23774c;stroke-width:1.9;pointer-events:none}
#map #map-regions .regional-line.region-hover,#map #map-regions .regional-line.region-selected{stroke:#124c30;stroke-width:2.8}
#map #map-regions .regional-hit,#map #map-regions .regional-hit:hover,#map #map-regions .regional-hit:focus-visible{stroke:transparent;stroke-width:10;pointer-events:stroke;outline:none}
#map #map-shapes path.region-hover{fill:#76b99b;opacity:1}

@media(min-width:761px){
 .dashboard:has(.dashboard-info) .metric-events,.dashboard:has(.dashboard-info) .metric-participants,.dashboard:has(.dashboard-info) .metric-organizations{top:23.4cqw;width:10.8%;height:15cqw;padding:.6cqw;gap:.8cqw}
 .dashboard .metric-events{left:64.01%}
 .dashboard .metric-participants{left:75.7%}
 .dashboard .metric-organizations{left:87.39%}
 .dashboard .metric-events strong,.dashboard .metric-participants strong,.dashboard .metric-organizations strong{font-size:2.4cqw}
 .dashboard .metric-events h2,.dashboard .metric-participants h2,.dashboard .metric-organizations h2{font-size:.87cqw;letter-spacing:0}
 .dashboard:has(.dashboard-info) .metric-credit{left:64.01%;width:12.2%;top:41cqw;height:15cqw}
 .dashboard .metric-credit-value{left:77.45%;width:20.74%;top:41cqw;height:15cqw}
 .dashboard .metric-credit-value strong{font-size:2.15cqw!important;white-space:nowrap;letter-spacing:-.045em}
}
@media(max-width:760px){.metric-credit-value strong{font-size:clamp(17px,4vw,29px)}}
