/* CACAU — tema global V8.5.73 R32. Controle inserido antes de Home; não é flutuante. */
.site-theme-switcher{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;z-index:3;font-family:Manrope,Arial,sans-serif;color:#17372c}
.site-theme-switcher__trigger{min-height:42px;display:flex;align-items:center;gap:6px;padding:0 9px;border:1px solid rgba(7,84,60,.25);border-radius:999px;background:rgba(255,255,255,.96);color:#17372c;box-shadow:0 10px 30px rgba(2,41,31,.18);font-size:10px;font-weight:900;cursor:pointer;white-space:nowrap;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.site-theme-switcher__icon{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#edf4ef;color:#07543c;font-size:15px}
.site-theme-switcher__menu{position:absolute;z-index:10;left:0;right:auto;top:calc(100% + 9px);bottom:auto;width:210px;padding:7px;border:1px solid rgba(7,84,60,.2);border-radius:16px;background:#fff;box-shadow:0 18px 50px rgba(2,41,31,.24)}
.site-theme-switcher__menu button{width:100%;min-height:43px;display:grid;grid-template-columns:26px 1fr;align-items:center;gap:7px;padding:7px 10px;border:0;border-radius:10px;background:transparent;color:#29483d;text-align:left;font-size:11px;font-weight:850;cursor:pointer}
.site-theme-switcher__menu button small{grid-column:2;display:block;margin-top:-5px;color:#71847b;font-size:8px;font-weight:700}
.site-theme-switcher__menu button:hover,.site-theme-switcher__menu button:focus-visible{background:#eef5f0;outline:2px solid #f0ca22;outline-offset:1px}
.site-theme-switcher__menu button.is-selected{background:#07543c;color:#fff}.site-theme-switcher__menu button.is-selected small{color:#d4e7dc}
html[data-theme="dark"] .site-theme-switcher{color:#e9f4ee}
html[data-theme="dark"] .site-theme-switcher__trigger{background:rgba(12,30,23,.97);border-color:#365649;color:#e9f4ee;box-shadow:0 10px 30px rgba(0,0,0,.4)}
html[data-theme="dark"] .site-theme-switcher__icon{background:#173b2d;color:#85e7b8}
html[data-theme="dark"] .site-theme-switcher__menu{background:#0d1d17;border-color:#355347;box-shadow:0 18px 50px rgba(0,0,0,.5)}
html[data-theme="dark"] .site-theme-switcher__menu button{color:#dcebe3}html[data-theme="dark"] .site-theme-switcher__menu button small{color:#9db3a7}
html[data-theme="dark"] .site-theme-switcher__menu button:hover,html[data-theme="dark"] .site-theme-switcher__menu button:focus-visible{background:#173126}
html[data-theme="dark"] .site-theme-switcher__menu button.is-selected{background:#11845c;color:#fff}
/* O seletor vira um item normal no menu recolhido: painel interno sem sobreposição. */
.site-theme-switcher__chevron{font-size:10px;margin-left:1px;opacity:.65}
.site-theme-switcher__menu[hidden]{display:none!important}
.site-header--compact .site-theme-switcher{display:flex;flex-direction:column;align-items:stretch;width:100%;margin:0 0 6px}
.site-header--compact .site-theme-switcher__trigger{width:100%;justify-content:flex-start;min-height:44px;font-size:13px}
.site-header--compact .site-theme-switcher__chevron{margin-left:auto}
.site-header--compact .site-theme-switcher__menu{position:static;top:auto;left:auto;right:auto;width:100%;margin-top:6px;box-shadow:none}
@media(max-width:1280px){
 .site-header .site-theme-switcher{display:flex;flex-direction:column;align-items:stretch;width:100%;margin:0 0 6px}
 .site-header .site-theme-switcher__trigger{width:100%;justify-content:flex-start;min-height:44px;font-size:13px}
 .site-header .site-theme-switcher__chevron{margin-left:auto}
 .site-header .site-theme-switcher__menu{position:static;top:auto;left:auto;right:auto;width:100%;margin-top:6px;box-shadow:none}
}
@media(max-width:520px){.site-theme-switcher__label{font-size:12px}}
/* Páginas sem navegação principal: opção próxima ao link de voltar. */
.site-theme-switcher--standalone{position:relative;display:inline-flex;vertical-align:middle;margin:0 12px 12px 0}
.site-theme-switcher--standalone .site-theme-switcher__menu{top:calc(100% + 7px);left:0;right:auto}

@media print{.site-theme-switcher{display:none!important}}

/* Variáveis compartilhadas em tema escuro. */
html[data-theme="dark"]{color-scheme:dark;--ink:#e9f3ed;--muted:#a8bbb1;--cream:#091710;--white:#0e1e17;--line:rgba(194,225,208,.18);--res-ink:#e9f3ed;--res-muted:#a8bbb1;--res-bg:#07120e;--res-border:#2a473b;--bg:#07120e;--card:#0e1e17;--apoio-ink:#e9f3ed;--apoio-muted:#a8bbb1;--apoio-bg:#07120e;--apoio-card:#0e1e17;--apoio-line:rgba(194,225,208,.18)}
html[data-theme="dark"] body{background:#07120e;color:#e9f3ed}

/* Painel eleitoral */
html[data-theme="dark"] .res-main{background:#07120e}
html[data-theme="dark"] .res-toolbar,html[data-theme="dark"] .res-overview,html[data-theme="dark"] .res-results,html[data-theme="dark"] .res-info,html[data-theme="dark"] .res-regions{background:#0d1d17;border-color:#29483b;box-shadow:none}
html[data-theme="dark"] .res-modebar button:not(.is-active),html[data-theme="dark"] .res-filter select,html[data-theme="dark"] .res-filter input,html[data-theme="dark"] .res-list-tools select{background:#10231b;color:#e8f2ec;border-color:#355347}
html[data-theme="dark"] .res-filter label,html[data-theme="dark"] .res-update,html[data-theme="dark"] .res-section-head p,html[data-theme="dark"] .res-summary span,html[data-theme="dark"] .res-stage small,html[data-theme="dark"] .res-info p{color:#a8bbb1}
html[data-theme="dark"] .res-map-wrap{background:radial-gradient(ellipse at center,#12271e,transparent 72%)}
html[data-theme="dark"] .res-map-detail,html[data-theme="dark"] .res-stat,html[data-theme="dark"] .res-uf,html[data-theme="dark"] .res-region-card,html[data-theme="dark"] .res-candidate,html[data-theme="dark"] .res-empty,html[data-theme="dark"] .res-electorate,html[data-theme="dark"] .res-electorate__card{background:#10231b;border-color:#315044;color:#e9f3ed}
html[data-theme="dark"] .res-map-state path{stroke:#10231b}html[data-theme="dark"] .res-map-state:not(.is-region-match):not(.is-region-muted) path{fill:#355347}
html[data-theme="dark"] .res-region-option{background:#182a22;border-color:#385246;color:#c8d8d0}html[data-theme="dark"] .res-region-option:hover{background:#21372d}html[data-theme="dark"] .res-region-option.is-selected{background:#12805a;color:#fff;border-color:#2cb17f}
html[data-theme="dark"] .res-dialog{background:#0d1d17;color:#e9f3ed;border-color:#355347}html[data-theme="dark"] .res-dialog-fields>div{border-color:#2c493d}html[data-theme="dark"] .res-dialog-close{background:#173126;color:#e9f3ed}
html[data-theme="dark"] .campaign-source-note{background:#0a1712;color:#a7b8af}html[data-theme="dark"] .campaign-source-note a{color:#7bd5aa}

/* Home */
html[data-theme="dark"] .section--light{background:#091710!important}
html[data-theme="dark"] .heading p,html[data-theme="dark"] .story-card p,html[data-theme="dark"] .project-steps p,html[data-theme="dark"] .timeline small,html[data-theme="dark"] .legal-card p{color:#a8bbb1!important}
html[data-theme="dark"] .project-steps article,html[data-theme="dark"] .timeline,html[data-theme="dark"] .legal-card,html[data-theme="dark"] .bio-point,html[data-theme="dark"] .project-infographic__link{background:#0e1e17!important;border-color:#2d4b3e!important;color:#e9f3ed!important;box-shadow:none!important}
html[data-theme="dark"] .bio-heading h2,html[data-theme="dark"] .bio-title__line--ink{color:#e9f3ed!important}
html[data-theme="dark"] .project-infographic figcaption{color:#a8bbb1!important}

/* Colinha */
html[data-theme="dark"] .col-panel,html[data-theme="dark"] .preview-card,html[data-theme="dark"] .vote-slot,html[data-theme="dark"] .info-grid article,html[data-theme="dark"] .candidate-dialog__box,html[data-theme="dark"] .candidate-card{background:#0e1e17;border-color:#2d4b3e;color:#e9f3ed;box-shadow:none}
html[data-theme="dark"] .data-status,html[data-theme="dark"] .btn--ghost,html[data-theme="dark"] .dialog-close,html[data-theme="dark"] .candidate-card__status{background:#173126;color:#cce0d5}
html[data-theme="dark"] .search-box input,html[data-theme="dark"] .party-filter select{background:#10231b;color:#e9f3ed;border-color:#355347}
html[data-theme="dark"] .sheet-preview{box-shadow:inset 0 0 0 1px #355347}

/* Fechado(a) com CACAU */
html[data-theme="dark"] .apoio-main{background:#07120e}
html[data-theme="dark"] .apoio-stage-card,html[data-theme="dark"] .apoio-controls,html[data-theme="dark"] .apoio-help article{background:#0e1e17!important;border-color:#2d4b3e!important;color:#e9f3ed!important;box-shadow:none!important}
html[data-theme="dark"] .apoio-mini-preview,html[data-theme="dark"] .apoio-upload,html[data-theme="dark"] .apoio-nudge button,html[data-theme="dark"] .apoio-secondary{background:#173126;color:#dcebe3;border-color:#355347}
html[data-theme="dark"] .apoio-controls__head{border-color:#2d4b3e}

/* 404 e privacidade */
html[data-theme="dark"] .section--light{color:#e9f3ed}html[data-theme="dark"] .section--light p{color:#a8bbb1}

/* R31 — revisão dos dois temas: alto contraste, formulários e cartões legíveis no escuro. */
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;--apoio-muted:#b1c9ba;--res-muted:#b7cdc0;--muted:#b7cdc0}
html[data-theme="dark"] .apoio-intro h1,
html[data-theme="dark"] .apoio-intro h1 span,
html[data-theme="dark"] .apoio-controls__head strong,
html[data-theme="dark"] .apoio-adjust-card__head strong,
html[data-theme="dark"] .apoio-help article strong,
html[data-theme="dark"] .apoio-mini-preview strong,
html[data-theme="dark"] .apoio-empty strong,
html[data-theme="dark"] .apoio-range-group__top,
html[data-theme="dark"] .apoio-stage-note,
html[data-theme="dark"] .apoio-adjust-card,
html[data-theme="dark"] .apoio-controls{color:#edf7f0!important}
html[data-theme="dark"] .apoio-intro h1 .apoio-title-cacau{color:#ffde50!important}
html[data-theme="dark"] .apoio-kicker,
html[data-theme="dark"] .apoio-status,
html[data-theme="dark"] .apoio-range-group__top output{color:#86e2b5!important}
html[data-theme="dark"] .apoio-mini-preview,
html[data-theme="dark"] .apoio-upload,
html[data-theme="dark"] .apoio-move-hint,
html[data-theme="dark"] .apoio-ai-option,
html[data-theme="dark"] .apoio-adjust-card,
html[data-theme="dark"] .apoio-extra-card{background:#172c23!important;border-color:#3e5d4c!important;color:#e8f5ec!important;box-shadow:none!important}
html[data-theme="dark"] .apoio-upload:hover,
html[data-theme="dark"] .apoio-upload:focus-within{background:#224534!important;border-color:#8ddbaf!important}
html[data-theme="dark"] .apoio-upload strong,
html[data-theme="dark"] .apoio-ai-option strong,
html[data-theme="dark"] .apoio-extra-card__head strong{color:#b6f4cf!important}
html[data-theme="dark"] .apoio-mini-preview small,
html[data-theme="dark"] .apoio-controls__head span,
html[data-theme="dark"] .apoio-adjust-card__head small,
html[data-theme="dark"] .apoio-move-hint,
html[data-theme="dark"] .apoio-ai-option small,
html[data-theme="dark"] .apoio-help p,
html[data-theme="dark"] .apoio-intro p{color:#b7d0c1!important}
html[data-theme="dark"] .apoio-empty{background:radial-gradient(circle at 50% 20%,rgba(255,218,26,.14),transparent 40%),linear-gradient(135deg,#0d3429,#0b241d);color:#e9f4ee}
html[data-theme="dark"] .apoio-empty span{color:#bbd5c5}
html[data-theme="dark"] .apoio-nudge button,
html[data-theme="dark"] .apoio-secondary,
html[data-theme="dark"] .apoio-cutout,
html[data-theme="dark"] .apoio-extra-nudge button{background:#213a2d!important;color:#eefaf1!important;border:1px solid #47755b!important}
html[data-theme="dark"] .apoio-nudge button:hover,
html[data-theme="dark"] .apoio-secondary:hover{background:#315b44!important}
html[data-theme="dark"] .apoio-replace-photo{background:#087650;color:#fff;border-color:#80bf9d}
html[data-theme="dark"] .apoio-role{background:#123c2b!important;color:#ffdf59}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{color-scheme:dark}
html[data-theme="dark"] .res-modebar>span,
html[data-theme="dark"] .res-map-detail>p,
html[data-theme="dark"] .res-uf>span,
html[data-theme="dark"] .res-uf small,
html[data-theme="dark"] .res-candidate__meta,
html[data-theme="dark"] .res-candidate__votes,
html[data-theme="dark"] .res-region-candidate em,
html[data-theme="dark"] .res-map-detail dt{color:#bed3c5!important}
html[data-theme="dark"] .res-map-detail dl div,
html[data-theme="dark"] .res-states-details,
html[data-theme="dark"] .res-info article{border-color:#37584a}
html[data-theme="dark"] .res-stage span,
html[data-theme="dark"] .res-load-more,
html[data-theme="dark"] .res-proportional,
html[data-theme="dark"] .res-demo,
html[data-theme="dark"] .res-stat,
html[data-theme="dark"] .res-info article{background:#172c23;color:#ecf8f0;border-color:#365747}
html[data-theme="dark"] .res-candidate__number{color:#8dcfff}
html[data-theme="dark"] .res-candidate__detail{color:#8ee3b8}
html[data-theme="dark"] .res-candidate__ballot,
html[data-theme="dark"] .res-candidate__status{background:#1f3a2d;color:#e7f5eb;border-color:#3a624e}
html[data-theme="dark"] .res-summary strong,
html[data-theme="dark"] .res-map-percent{color:#9ce8bc}
html[data-theme="dark"] .res-uf.is-active,
html[data-theme="dark"] .res-region-card.is-selected{background:#116845!important;color:#fff!important}
html[data-theme="dark"] .res-uf.is-active small,
html[data-theme="dark"] .res-region-card.is-selected small{color:#e4f2eb!important}
html[data-theme="dark"] .res-filter input::placeholder{color:#b3c6b9}
/* Área clara no home / cards não devem manter títulos escuros sobre fundos escuros. */
html[data-theme="dark"] .section--legal,
html[data-theme="dark"] .section--light,
html[data-theme="dark"] .section--cream{background:#091710!important;color:#e8f5ee!important}
html[data-theme="dark"] .section--light h2,
html[data-theme="dark"] .section--legal h2,
html[data-theme="dark"] .section--light h3,
html[data-theme="dark"] .section--legal h3,
html[data-theme="dark"] .legal-card h3,
html[data-theme="dark"] .bio-point strong,
html[data-theme="dark"] .project-steps strong,
html[data-theme="dark"] .timeline strong{color:#edf8f1!important}
html[data-theme="dark"] .legal-card,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .project-steps article,
html[data-theme="dark"] .bio-point,
html[data-theme="dark"] .timeline{background:#13251c!important;color:#e9f3ed!important;border-color:#315040!important}
html[data-theme="dark"] .story-card p,
html[data-theme="dark"] .legal-card p,
html[data-theme="dark"] .timeline small,
html[data-theme="dark"] .project-steps p{color:#b7cebd!important}
/* Visibilidade do foco independente do tema e do dispositivo. */
html[data-theme="dark"] :is(a,button,input,select,textarea):focus-visible,
html[data-theme="light"] :is(a,button,input,select,textarea):focus-visible{outline:3px solid #ffda1a!important;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.site-theme-switcher *{transition:none!important}}


/* V8.5.73 R32 — revisão de legibilidade mobile/desktop e página Privacidade.
   A página antes tinha background:white INLINE no cartão, acima do tema escuro. */
.privacy-main{padding-block:clamp(42px,6vw,82px)}
.privacy-main .heading{margin-top:clamp(25px,4vw,54px)!important}
.privacy-card{
  margin-top:22px;
  padding:clamp(20px,4.5vw,40px);
  background:#fff;
  color:#172b20;
  border:1px solid #ceddd0;
  border-radius:24px;
  box-shadow:0 14px 48px rgba(5,49,31,.09);
  font-size:clamp(14px,1.15vw,16px);
  line-height:1.85;
  overflow-wrap:anywhere;
}
.privacy-card h3{font-family:Manrope,Arial,sans-serif;font-size:clamp(17px,1.75vw,21px);line-height:1.4;color:#07543c;margin:30px 0 9px;font-weight:800}
.privacy-card h3:first-child{margin-top:0}
.privacy-card p{color:#32483a;margin:0 0 17px;line-height:1.85}
.privacy-card strong{color:inherit;font-weight:850}
.privacy-main .heading p{color:#41594c}
.privacy-main .heading h2{overflow-wrap:anywhere}
html[data-theme="light"] .privacy-card{background:#fff;color:#172b20;border-color:#ceddd0}
html[data-theme="light"] .privacy-card h3{color:#07543c}
html[data-theme="light"] .privacy-card p{color:#32483a}
html[data-theme="dark"] .privacy-main{background:#071710!important}
html[data-theme="dark"] .privacy-main .heading h2{color:#f0faf4!important}
html[data-theme="dark"] .privacy-main .heading p{color:#c4dcce!important}
html[data-theme="dark"] .privacy-main .kicker{color:#94e3ba!important}
html[data-theme="dark"] .privacy-card{
  background:#12271d!important;
  color:#eaf7ee!important;
  border-color:#426552!important;
  box-shadow:0 14px 40px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .privacy-card h3{color:#adf1ca!important}
html[data-theme="dark"] .privacy-card p{color:#e0ede3!important}
html[data-theme="dark"] .privacy-card strong{color:#f1fbf4!important}
/* Páginas auxiliares: botão Voltar e seletor de tema sem sobreposição. */
.privacy-main .site-theme-switcher--standalone{max-width:100%;margin-right:12px}
.privacy-main .button--primary{min-height:44px;display:inline-flex;align-items:center}
/* Contraste do texto do painel no modo escuro, incluindo microtextos e controles. */
html[data-theme="dark"] .res-region-candidate b,
html[data-theme="dark"] .res-region-selected,
html[data-theme="dark"] .res-electorate__head h3,
html[data-theme="dark"] .res-electorate__card b,
html[data-theme="dark"] .res-states-details summary,
html[data-theme="dark"] .res-list-actions>button:not(:disabled){color:#a2f0c5!important}
html[data-theme="dark"] .res-region-card.is-selected .res-region-candidate b{color:#ffea7d!important}
html[data-theme="dark"] .res-region-card.is-selected .res-region-selected{color:#e3f4e9!important}
html[data-theme="dark"] .res-list-actions>button:not(:disabled),
html[data-theme="dark"] .res-region-card .res-region-option,
html[data-theme="dark"] .res-list-tools select{
  background:#163026;border-color:#466a55;
}
html[data-theme="dark"] .res-region-card.is-selected h3,
html[data-theme="dark"] .res-region-card.is-selected strong{color:#fff!important}
html[data-theme="dark"] .res-filter label,
html[data-theme="dark"] .res-info p,
html[data-theme="dark"] .res-update,
html[data-theme="dark"] .res-map-detail .res-map-footnote,
html[data-theme="dark"] .res-candidate__dest,
html[data-theme="dark"] .res-candidate__process,
html[data-theme="dark"] .res-stat>span,
html[data-theme="dark"] .res-electorate__card span,
html[data-theme="dark"] .res-stage small,
html[data-theme="dark"] .res-modebar>span{color:#c1d7c9!important}
html[data-theme="dark"] .res-map-legend,
html[data-theme="dark"] .res-map-legend span{color:#daeae1!important}
html[data-theme="dark"] .res-uf.is-active>span{color:#ecf8ef!important}
html[data-theme="dark"] .res-region-candidate,
html[data-theme="dark"] .res-list-tools,
html[data-theme="dark"] .res-candidate__numbers{border-color:#385b48!important}
html[data-theme="dark"] .res-region-warning{color:#ffd783!important}
html[data-theme="dark"] .res-stat,
html[data-theme="dark"] .res-electorate__card,
html[data-theme="dark"] .res-electorate__card.is-total{background:#152d21!important;border-color:#3a604c!important;color:#ecf6ee!important}
html[data-theme="dark"] .res-region-option:not(.is-selected){background:#1b3026;color:#e2f2e8;border-color:#527361}
html[data-theme="dark"] .res-region-option.is-selected{background:#10784f;color:#fff;border-color:#6edaab}
html[data-theme="dark"] .res-map-state.is-active path{fill:#ebc83f!important;stroke:#ffe47f!important}
/* Reforço de contraste dos componentes de Fechado com CACAU e foco por teclado. */
html[data-theme="dark"] .apoio-control-label,
html[data-theme="dark"] .apoio-control-label strong,
html[data-theme="dark"] .apoio-control-label small,
html[data-theme="dark"] .apoio-stage-note,
html[data-theme="dark"] .apoio-mini-previews small{color:#d2e8d9!important}
html[data-theme="dark"] .apoio-fit-options button:not(.is-active),
html[data-theme="dark"] .apoio-sliders-grid button,
html[data-theme="dark"] .apoio-extra-card button:not(.apoio-primary){color:#e9f8ee;border-color:#496c56}
/* Texto útil precisa permanecer >= 12px em telas pequenas. */
@media(max-width:580px){
  .privacy-main .shell{width:calc(100% - 28px)}
  .privacy-card{border-radius:18px;padding:20px 18px;font-size:14px;line-height:1.75}
  .privacy-card p{line-height:1.8}
  .privacy-main .heading h2{font-size:clamp(29px,9vw,40px)}
  .res-filter label,.res-info p,.res-update,.res-map-detail p,.res-map-detail dt,.res-map-detail dd,.res-uf small,.res-stage small{font-size:12px!important;line-height:1.55}
  .res-uf strong,.res-uf b{font-size:14px}
  .res-candidate__meta,.res-candidate__dest,.res-candidate__process,
  .res-candidate__votes,.res-candidate__status,.res-candidate__detail{font-size:12px!important;line-height:1.5}
  .res-filter input,.res-filter select,.res-list-tools select{font-size:14px!important}
  .res-region-card>small,.res-region-candidate strong,.res-region-candidate span,
  .res-region-candidate b,.res-region-candidate em,.res-region-warning{font-size:12px!important;line-height:1.45}
  .res-map-detail dl div{align-items:flex-start;gap:12px}
  .res-map-detail dd{max-width:56%;overflow-wrap:anywhere}
}
@media(max-width:360px){.privacy-card{padding:18px 14px}}


/* V8.5.73 R33 — alto contraste EXCLUSIVO do modo escuro; tema claro intacto. */
/* Fundo amarelo exige letras escuras mesmo com o documento no modo noturno. */
html[data-theme="dark"] .button--primary,
html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .menu__cta,
html[data-theme="dark"] .apoio-primary,
html[data-theme="dark"] .apoio-help article>span {color:#07150f!important}
/* Textos secundários de Fechado com CACAU sem verde escuro sobre cartões escuros. */
html[data-theme="dark"] .apoio-controls__title-row strong,
html[data-theme="dark"] .apoio-finish-head strong,
html[data-theme="dark"] .apoio-adjust-card__head strong,
html[data-theme="dark"] .apoio-fit-options small,
html[data-theme="dark"] .apoio-upload span,
html[data-theme="dark"] .apoio-stage-note,
html[data-theme="dark"] .apoio-controls__title-row small,
html[data-theme="dark"] .apoio-finish-head small {color:#e7f3ea!important}
html[data-theme="dark"] .apoio-controls__title-row small,
html[data-theme="dark"] .apoio-finish-head small,
html[data-theme="dark"] .apoio-fit-options small {color:#c1dacb!important}
/* O destaque CACAU abaixo do título deve ser exclusivamente a logo oficial. */
.apoio-role--logo{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;max-width:100%}
.apoio-role--logo img{display:block;width:clamp(145px,22vw,222px);max-width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 3px 9px rgba(0,0,0,.18))}
html[data-theme="dark"] .apoio-role--logo{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
/* No Painel Eleições, informativos e números acompanham o fundo noturno. */
html[data-theme="dark"] .res-round-notice{background:#322c16!important;border-color:#89733b!important;color:#fff2c2!important}
html[data-theme="dark"] .res-filter select:disabled{color:#b6cbbd!important}
html[data-theme="dark"] .res-candidate__office{color:#9de2bc!important}
@media(max-width:520px){.apoio-role--logo img{width:170px}}

/* R34 - Fundo e texto coerentes em cada secao, sem alterar o modo claro. */
html[data-theme="dark"] .section--project {background:#091910!important;color:#eef9f2!important}
html[data-theme="dark"] .section--project .heading h2,
html[data-theme="dark"] .section--project .heading h2 *,
html[data-theme="dark"] .section--project .heading strong,
html[data-theme="dark"] .section--project .project-steps h3,
html[data-theme="dark"] .section--project .timeline strong {color:#f4fff7!important}
html[data-theme="dark"] .section--project .heading p,
html[data-theme="dark"] .section--project .project-steps p,
html[data-theme="dark"] .section--project .timeline small,
html[data-theme="dark"] .section--project .project-infographic figcaption {color:#d1e3d7!important}
html[data-theme="dark"] .section--project .heading .kicker{color:#94efbb!important}
html[data-theme="dark"] .section--project .project-badge{background:#103826;color:#ffffff;border:1px solid #47745b}
html[data-theme="dark"] .section--project .project-steps article,
html[data-theme="dark"] .section--project .timeline,
html[data-theme="dark"] .section--project .project-infographic__link{background:#13271d!important;border-color:#41604e!important;color:#f1f8f3!important}
html[data-theme="dark"] .section--project .project-infographic__link:hover{background:#1e3d2a!important}
html[data-theme="dark"] .section--project .project-steps article>span{background:#094930;color:#ffe565}
html[data-theme="dark"] .section--project .project-steps svg{background:#224835;color:#97f2bb}
html[data-theme="dark"] .section--project .timeline div{border-color:#335340!important}
html[data-theme="dark"] .campaign-footer a:hover,html[data-theme="dark"] .campaign-footer a:focus-visible{color:#ffe360}
html[data-theme="dark"] .res-filter select option,html[data-theme="dark"] .res-list-tools select option{background:#10231b;color:#f2fff6}
html[data-theme="dark"] .res-info h2,html[data-theme="dark"] .res-info h3,
html[data-theme="dark"] .res-section-head h2,html[data-theme="dark"] .res-results h2{color:#f2fff5!important}
html[data-theme="dark"] .res-hero h1,html[data-theme="dark"] .res-hero h1 span{color:#ffffff}
html[data-theme="dark"] .res-filter-help p,html[data-theme="dark"] .res-election-note{color:#d6e8dd}
html[data-theme="dark"] .res-refresh:disabled{opacity:.75}
/* Âncoras respeitam menu e barra fixa tanto no desktop quanto no celular. */
[id="historia"],[id="propostas"],[id="pernambuco-inteligente"],[id="midias"]{scroll-margin-top:150px}
@media(max-width:800px){[id="historia"],[id="propostas"],[id="pernambuco-inteligente"],[id="midias"]{scroll-margin-top:150px}}
/* R34: a bandeira do Brasil da moldura deve permanecer visível mesmo antes de escolher a foto. */
.apoio-empty,.apoio-empty[hidden=false]{background:transparent!important}
html[data-theme="dark"] .apoio-empty{background:transparent!important}
.apoio-empty__inner{background:rgba(1,39,29,.82)!important;color:#ffffff!important}


/* R36 — tema escuro do Painel Eleições: percentuais mais claros e filtros móveis estáveis. */
html[data-theme="dark"] .res-candidate__percent,
html[data-theme="dark"] .res-candidate__vote-total .res-candidate__percent,
html[data-theme="dark"] .res-region-candidate b,
html[data-theme="dark"] .res-electorate__card b,
html[data-theme="dark"] .res-summary strong,
html[data-theme="dark"] .res-map-percent{color:#93f2c1!important}
html[data-theme="dark"] .res-filter select,
html[data-theme="dark"] .res-filter input{color:#eefaf2!important}
@media(max-width:760px){
  html[data-theme="dark"] .res-toolbar{grid-template-columns:1fr!important}
}


/* R38 — Correção do contraste no seletor Encaixe (Fechado(a) com CACAU).
   No modo escuro, o botão "Foto inteira" mantinha fundo claro com texto claro.
   Mantemos cores noturnas em ambos os estados e texto visível mesmo desabilitado. */
html[data-theme="dark"] .apoio-fit-options button:not(.is-active) {
  background: #17372b !important;
  color: #f2fff6 !important;
  border-color: #57826c !important;
}
html[data-theme="dark"] .apoio-fit-options button.is-active {
  background: #06412f !important;
  color: #ffffff !important;
  border-color: #377e60 !important;
}
html[data-theme="dark"] .apoio-fit-options button:disabled {
  opacity: .9 !important;
  cursor: not-allowed;
}
html[data-theme="dark"] .apoio-fit-options button:focus-visible {
  outline: 3px solid #f6da35;
  outline-offset: 3px;
}
