.ta-apuracao-page{background:#fff8fb;color:var(--ink)}
.apuracao-intro{display:flex;align-items:center;justify-content:space-between;gap:2rem;background:var(--magenta-dark);color:white;padding:8rem max(4vw,1.25rem) 2.5rem}
.apuracao-intro .section-kicker{color:var(--gold)}
.apuracao-intro h1{margin:.7rem 0;font-family:Anton,sans-serif;font-weight:400;font-size:clamp(2.8rem,5vw,5rem);line-height:1;text-transform:uppercase}
.apuracao-intro h1 em{font-family:Lobster,sans-serif;font-weight:400;text-transform:none;color:var(--gold)}
.apuracao-intro p{margin:.8rem 0 0;color:#fbe5ee}
.apuracao-seal{font-family:Lobster,sans-serif;text-align:center;font-size:1.8rem;transform:rotate(-5deg);line-height:1}
.apuracao-seal strong{font-family:Anton,sans-serif;font-size:4.8rem;color:var(--gold)}
.apuracao-app,.apuracao-editor-content{box-sizing:border-box;width:100%;max-width:1520px;margin:0 auto;padding:2rem clamp(1rem,2.5vw,2.75rem) 4rem}
.apuracao-app *{box-sizing:border-box}
.apuracao-app button,.ap-dialog button{cursor:pointer;font:inherit}
.apuracao-toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1rem}
.apuracao-toolbar p{font-size:.8rem;color:#6c5360;margin:.6rem 0 0}
.ap-controls,.ap-segment{display:flex;gap:.5rem;flex-wrap:wrap}
.ap-badge{display:inline-block;padding:.4rem .7rem;background:var(--gold);color:#39252f;font-size:.68rem;font-weight:900;letter-spacing:.06em;border-radius:3px}
.ap-button{padding:.65rem .9rem;min-height:44px;border:1px solid #d3b7c5;border-radius:5px;background:#fff;color:var(--magenta-dark);font-weight:800;font-size:.78rem!important}
.ap-button:hover,.ap-button[aria-pressed=true]{background:var(--magenta-dark);color:#fff}
.ap-notice{font-size:.82rem;line-height:1.55;border-left:4px solid var(--magenta);background:#f7e7ee;padding:.9rem 1rem;margin:0 0 1.2rem}
.ap-target{display:grid;grid-template-columns:minmax(250px,1.25fr) repeat(3,minmax(0,1fr));border:1px solid #e2bccd;border-radius:12px;overflow:hidden;background:var(--magenta-dark);color:#fff}
.ap-portrait{display:flex;gap:1rem;align-items:center;min-width:0;padding:1.3rem}
.ap-portrait img{width:85px;height:120px;object-fit:cover;object-position:center 12%;border-radius:7px;background:#d83a89}
.ap-portrait span{font-size:.6rem;letter-spacing:.06em;color:#fbe1ed;font-weight:800}
.ap-portrait h2{font-family:Anton,sans-serif;font-size:1.5rem;font-weight:400;line-height:1.15;margin:.4rem 0}
.ap-portrait strong{font-family:Anton,sans-serif;font-size:2.4rem;line-height:1;color:var(--gold)}
.ap-metric{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:1.5rem;border-left:1px solid #ffffff26}
.ap-metric>span{font-size:.62rem;font-weight:900;letter-spacing:.06em;color:#f9d9e7}
.ap-metric>strong{font-family:Anton,sans-serif;font-size:clamp(2.15rem,3vw,3.5rem);font-weight:400;line-height:1.15;overflow-wrap:anywhere;margin:.55rem 0;color:var(--gold)}
.ap-metric small{font-size:.72rem;line-height:1.45;color:#fce4ee}
.ap-metric progress{width:100%;height:7px;accent-color:var(--gold);margin:0 0 .65rem}
.ap-method{font-size:.74rem;line-height:1.55;color:#745764;margin:.9rem 0 1.7rem}
.ap-board{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.22fr) minmax(0,1fr);gap:1rem;align-items:start}
.ap-card{min-width:0;background:#fff;border:1px solid #e6d0db;border-radius:10px;padding:1.15rem}
.ap-card-head{display:flex;justify-content:space-between;gap:.75rem;align-items:center;margin-bottom:1.1rem}
.ap-card h2,.ap-overview h2,.ap-dialog h2{font-family:Anton,sans-serif;font-weight:400;text-transform:uppercase;font-size:clamp(1.15rem,1.55vw,1.65rem);line-height:1.2;margin:.2rem 0 0}
.apuracao-app .section-kicker,.ap-dialog .section-kicker{font-size:.6rem;letter-spacing:.1em}
.ap-segment{gap:0;border:1px solid #e4c8d5;border-radius:5px;overflow:hidden;flex-wrap:nowrap}
.ap-segment button{border:0;background:#fff;font-size:.65rem;padding:.65rem .55rem;min-height:40px;color:#765160;font-weight:800}
.ap-segment button[aria-pressed=true]{background:var(--magenta);color:white}
.ap-map svg{display:block;max-width:100%;width:100%;height:330px}
.ap-map path{stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .2s}
.ap-map path:hover,.ap-map path:focus,.ap-map path.is-selected{stroke:var(--ink);stroke-width:2;outline:none}
.ap-municipality-detail{background:#fff3f8;border:1px solid #efd0dd;padding:.9rem;border-radius:5px;font-size:.78rem;min-height:88px;line-height:1.6}
.ap-muted{color:#79636d;font-size:.7rem;line-height:1.55;margin:.85rem 0 0}
.ap-search{display:block;color:#70525f;font-size:.72rem;font-weight:800;margin-bottom:1rem}
.ap-search input{display:block;width:100%;min-width:0;margin-top:.4rem;border:1px solid #dfc2d0;border-radius:5px;padding:.65rem;font:inherit;color:var(--ink);min-height:44px;background:#fff}
.ap-table-scroll{max-height:390px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.ap-table{border-collapse:collapse;width:100%;font-size:.73rem;font-variant-numeric:tabular-nums}
.ap-table thead th{position:sticky;top:0;background:#fff4f9;color:#895267;font-size:.6rem;font-weight:900;text-transform:uppercase;z-index:1}
.ap-table th,.ap-table td{padding:.65rem .38rem;border-bottom:1px solid #f0e4e9;text-align:right;vertical-align:middle}
.ap-table th:first-child,.ap-table td:first-child{text-align:left}
.ap-table th button{border:0;background:transparent;color:inherit;font:inherit;padding:.1rem 0}
.ap-table td.ap-candidate{text-align:left;min-width:90px}
.ap-candidate small{display:block;margin-top:.25rem;color:#896978;font-size:.62rem}
.ap-table tr.is-target{background:#fde6f0;font-weight:800}
.ap-table tr.is-selected{background:#fff0c0}
.ap-city-button{border:0;background:transparent;text-align:left;color:inherit;padding:0;font-size:inherit!important;line-height:1.4;min-height:30px}
.ap-text-button{border:0;background:transparent;padding:.5rem 0;color:var(--magenta);font-size:.7rem!important;white-space:nowrap;font-weight:900}
.ap-evolution{margin:1rem 0 2rem}
.ap-chart svg{display:block;width:100%;height:190px}
.ap-chart p{padding:2rem .5rem;color:#79636d;font-size:.82rem;text-align:center}
.ap-overview-head{margin-bottom:1.15rem}
.ap-overview-head h2{font-size:2rem}
.ap-offices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem}
.ap-office{display:flex;flex-direction:column;gap:.8rem;text-align:left;border:1px solid #e6d0db;border-radius:8px;padding:1.2rem;background:#fff;color:var(--ink)}
.ap-office:hover,.ap-office:focus-visible{border-color:var(--magenta);box-shadow:0 4px 14px #b9156415}
.ap-office strong{font-family:Anton,sans-serif;font-weight:400;text-transform:uppercase;font-size:1.12rem;line-height:1.2}
.ap-office small{font-size:.65rem;color:#816570;line-height:1.6}
.ap-office ul{list-style:none;padding:0;margin:0;flex:1;font-size:.7rem}
.ap-office li{display:flex;justify-content:space-between;gap:.6rem;padding:.5rem 0;border-top:1px solid #f1e3e9;line-height:1.3}
.ap-office li span:last-child{color:var(--magenta-dark);white-space:nowrap;font-weight:800}
.ap-source{font-size:.72rem;color:#795563;line-height:1.7;margin:2rem 0 0}
.ap-source a{color:var(--magenta);font-weight:800;text-decoration:underline}
.ap-dialog{max-width:min(94vw,950px);width:950px;padding:1.5rem;border:1px solid #c998ae;border-radius:12px;color:var(--ink);background:#fff8fb}
.ap-dialog::backdrop{background:#32101dcc}
.ap-dialog .ap-table-scroll{max-height:65vh}
.ap-dialog p{font-size:.8rem;color:#765361;margin-bottom:1rem}
.apuracao-app button:focus-visible,.ap-dialog button:focus-visible,.ap-search input:focus-visible{outline:3px solid #c81169;outline-offset:3px}
body.ap-screen-mode .site-header,body.ap-screen-mode footer,body.ap-screen-mode .apuracao-intro{display:none}
body.ap-screen-mode .apuracao-app{max-width:1920px;padding-top:1.2rem}
body.ap-screen-mode .ta-apuracao-page{padding-top:0!important}
@media(min-width:1101px) and (max-width:1350px){.ap-board{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}.ap-ranking{grid-column:1/-1}.ap-ranking .ap-table-scroll{max-height:260px}.ap-offices{grid-template-columns:repeat(3,minmax(0,1fr))}.ap-portrait{padding:1rem;gap:.6rem}.ap-metric{padding:1rem}}
@media(max-width:1100px){.ap-target{grid-template-columns:repeat(3,minmax(0,1fr))}.ap-portrait{grid-column:1/-1}.ap-metric:first-of-type{border-left:0}.ap-board{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}.ap-ranking{grid-column:1/-1}.ap-ranking .ap-table-scroll{max-height:260px}.ap-offices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.apuracao-intro{padding-top:6.5rem;gap:.6rem}.apuracao-seal{font-size:1.2rem}.apuracao-seal strong{font-size:3rem}.apuracao-intro h1{font-size:2.8rem}.apuracao-intro p{font-size:.8rem}.apuracao-app{padding:1.25rem 1rem 3rem}.apuracao-toolbar{align-items:flex-start;flex-direction:column}.ap-target{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-metric{padding:1rem;border-top:1px solid #ffffff26}.ap-metric:last-child{grid-column:1/-1;border-left:0}.ap-portrait img{width:70px;height:96px}.ap-board{grid-template-columns:minmax(0,1fr)}.ap-ranking{grid-column:auto}.ap-offices{grid-template-columns:minmax(0,1fr)}.ap-card{padding:1rem}.ap-map svg{height:300px}.ap-table{font-size:.68rem}.ap-dialog{padding:1rem}.ap-dialog .ap-table{min-width:510px}.ap-chart svg{height:170px}}
@media(prefers-reduced-motion:reduce){.ap-map path{transition:none}}
