/* Fontes Geist e Geist Mono (SIL Open Font License 1.1), hospedadas no próprio site: nenhum dado do visitante vai para terceiros. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/estatico/fontes/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/estatico/fontes/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/estatico/fontes/geist-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/estatico/fontes/geist-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* LASTEN — site editorial
   Tokens da paleta final 01 (marca/cores). Lima ≤ 2%: só no último nó do símbolo e no número-chave. */

:root {
  --fundo: #F2F2F0;
  --superficie: #FAFAF8;
  --tinta: #0D0D0C;
  --suave: #62625D;
  --linha: #DEDED9;
  --acento: #087F5B;
  --acento-forte: #066A4C;
  --acento-claro: #95D3B9;
  --lima: #D4FF3A;
  --floresta: #0D1F18;
  --floresta-borda: #0D1F18;
  --sobre-escuro: #FAFAF8;
  --sobre-escuro-suave: #95D3B9;

  --r-pill: 999px;
  --r-pequeno: 16px;
  --r-card: 28px;
  --r-grande: 36px;
  --largura: 1240px;
  --margem: 16px;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fundo: #0D0D0C; --superficie: #171816; --tinta: #FAFAF8; --suave: #A3A39C;
    --linha: #2B2C29; --acento: #3FBF8F; --acento-forte: #5BBB95; --acento-claro: #1E5A44;
    --floresta-borda: #1F3D30; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fundo: #0D0D0C; --superficie: #171816; --tinta: #FAFAF8; --suave: #A3A39C;
  --linha: #2B2C29; --acento: #3FBF8F; --acento-forte: #5BBB95; --acento-claro: #1E5A44;
  --floresta-borda: #1F3D30; color-scheme: dark;
}

@media (min-width: 768px) { :root { --margem: 32px; } }

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--tinta);
  font: 400 16px/1.5 var(--sans); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }

.pular {
  position: absolute; left: var(--margem); top: -60px; z-index: 50;
  background: var(--tinta); color: var(--fundo); padding: 10px 16px; border-radius: var(--r-pill);
}
.pular:focus { top: 12px; }

.rotulo {
  font: 500 11px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--suave);
}
.rotulo--link { color: var(--acento-forte); }

/* ---------- logo (troca por tema) */
.logo { height: 26px; width: auto; }
.logo--escuro { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo--claro { display: none; }
  :root:not([data-theme="light"]) .logo--escuro { display: block; }
}
:root[data-theme="dark"] .logo--claro { display: none; }
:root[data-theme="dark"] .logo--escuro { display: block; }

/* ---------- estrutura: barra lateral + área */
main { padding-bottom: 8px; }
.trilho { display: none; }
@media (min-width: 1024px) {
  .trilho {
    position: fixed; inset: 0 auto 0 0; width: 76px; z-index: 25;
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0;
    background: var(--superficie); border-right: 1px solid var(--linha); cursor: pointer;
  }
  .area { margin-left: 76px; }
  .topo__menu { display: none; }
}
.trilho__simbolo { margin-bottom: 14px; }
.trilho__simbolo img { width: 32px; height: 32px; }
.trilho__btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 14px;
  background: transparent; color: var(--suave);
}
.trilho__btn:hover, .trilho__btn[aria-current="page"] { background: var(--fundo); color: var(--tinta); text-decoration: none; }
.trilho__espaco { flex: 1; }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icone-btn svg, .trilho__btn svg, .menu__item svg, .topo__busca svg { width: 20px; height: 20px; flex: none; }
.cheio { fill: currentColor; stroke: none; }
.capa__simbolo { stroke: none; }

/* ---------- menu suspenso (gaveta) */
.veu { position: fixed; inset: 0; z-index: 30; background: rgba(13, 13, 12, 0.42); }
.gaveta {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(320px, 86vw);
  display: flex; flex-direction: column; gap: 2px; padding: 16px 12px 20px; overflow-y: auto;
  background: var(--superficie); border-right: 1px solid var(--linha);
  transform: translateX(-104%); visibility: hidden;
  transition: transform 0.24s ease, visibility 0s linear 0.24s;
}
.gaveta.aberta { transform: none; visibility: visible; transition: transform 0.24s ease; box-shadow: 0 0 0 1px var(--linha), 24px 0 60px rgba(0, 0, 0, 0.12); }
.gaveta__topo { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 12px; margin-bottom: 14px; }
.menu { display: grid; gap: 2px; }
.menu__item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 14px; background: transparent; color: var(--tinta);
  font-size: 15px; font-weight: 500; text-align: left;
}
.menu__item svg { color: var(--suave); }
.menu__item:hover { background: var(--fundo); text-decoration: none; }
.menu__item--ativo { background: var(--fundo); font-weight: 600; }
.menu__item--ativo svg { color: var(--tinta); }
.menu__secao { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--suave); padding: 20px 12px 6px; }
.menu__ponto { width: 20px; display: grid; place-items: center; }
.menu__ponto::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--suave); }
.menu__item--ativo .menu__ponto::before { background: var(--acento); border-color: var(--acento); }
.gaveta__base { margin-top: auto; padding-top: 20px; display: grid; gap: 8px; }

/* ---------- topo */
.topo { position: sticky; top: 0; z-index: 20; background: var(--fundo); border-bottom: 1px solid var(--linha); }
.topo__linha {
  max-width: var(--largura); margin: 0 auto; padding: 12px var(--margem);
  display: flex; align-items: center; gap: 8px;
}
.topo__marca { margin-right: auto; padding: 0 4px; }
.topo__busca {
  display: none; align-items: center; gap: 10px; flex: 1; max-width: 520px; margin: 0 auto;
  height: 44px; padding: 0 16px; border: 1px solid var(--linha); border-radius: var(--r-pill);
  background: var(--superficie); color: var(--suave);
}
.topo__busca:focus-within { border-color: var(--acento); }
.topo__busca input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--tinta); font: 400 15px var(--sans); outline: none; }
@media (min-width: 760px) {
  .topo__busca { display: flex; }
  .topo__lupa { display: none; }
  .topo__marca { margin-right: 0; }
}
.icone-btn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border: 0; background: transparent; border-radius: var(--r-pill); color: var(--tinta);
}
.icone-btn:hover { background: var(--superficie); }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--r-pill); background: var(--tinta); color: var(--fundo); border: 0;
  font-size: 15px; font-weight: 500; justify-self: start; white-space: nowrap;
}
.botao:hover { text-decoration: none; opacity: 0.88; }
.botao svg { width: 18px; height: 18px; }
.botao--largo { width: 100%; }
.botao--insta { padding: 0 16px; background: var(--superficie); color: var(--tinta); border: 1px solid var(--linha); }
@media (max-width: 559px) {
  .botao--insta { width: 44px; padding: 0; }
  .botao--insta span { display: none; }
}

/* ---------- cabeça + tópicos */
.cabeca { padding: 36px 0 20px; display: grid; gap: 8px; }
.cabeca h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.cabeca p { color: var(--suave); font-size: 17px; max-width: 58ch; }
.topicos { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--margem) * -1) 28px; padding: 0 var(--margem); }
.topicos::-webkit-scrollbar { display: none; }
.topicos ul { display: flex; gap: 6px; width: max-content; }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--linha); border-radius: var(--r-pill); background: var(--superficie);
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.pill:hover { text-decoration: none; border-color: var(--tinta); }
.pill--ativa { background: var(--tinta); color: var(--fundo); border-color: var(--tinta); }

/* ---------- capa discreta */
.capa {
  container-type: inline-size; position: relative; aspect-ratio: 16 / 10;
  background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--r-card);
  padding: 18px; display: flex; flex-direction: column; overflow: hidden; color: var(--tinta);
}
.capa--grande { border-radius: 28px; padding: clamp(20px, 3vw, 32px); height: 100%; }
.capa__ed { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--suave); }
.capa__num { margin-top: auto; font-weight: 600; font-size: clamp(24px, 12cqi, 84px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.capa__rot { margin-top: 6px; font: 400 12px var(--mono); color: var(--suave); max-width: 75%; }
.capa__simbolo { position: absolute; right: 18px; bottom: 18px; width: 28px; height: 28px; }
.capa--grande .capa__simbolo { width: 40px; height: 40px; right: 28px; bottom: 28px; }

/* ---------- destaque (primeira matéria) */
.destaque {
  display: grid; gap: 8px; background: var(--superficie); border-radius: var(--r-grande); padding: 10px;
}
.destaque .capa { background: var(--fundo); }
.destaque__texto { padding: 20px 18px 22px; display: grid; gap: 10px; align-content: center; }
.destaque__titulo { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; }
.destaque__fina { color: var(--suave); font-size: 17px; line-height: 1.45; max-width: 52ch; }
.destaque .botao { margin-top: 8px; }
.destaque__capa { display: block; min-height: 220px; }
@media (min-width: 900px) {
  .destaque { grid-template-columns: 1.05fr 1fr; padding: 12px; }
  .destaque__texto { padding: 32px; }
}

/* ---------- grade de matérias */
.grade { display: grid; gap: 36px 24px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grade { grid-template-columns: repeat(3, 1fr); } }
.cartao__capa { display: block; }
.cartao__capa:hover { text-decoration: none; }
.cartao__corpo { padding-top: 14px; display: grid; gap: 6px; }
.cartao__topico { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--acento-forte); justify-self: start; }
.cartao__titulo { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
.cartao__titulo a:hover { text-decoration-thickness: 1px; }
.cartao:has(.cartao__capa:hover) .cartao__titulo a { text-decoration: underline; text-underline-offset: 3px; }
.cartao__fina { color: var(--suave); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 14px; font: 400 10.5px var(--mono); letter-spacing: 0.02em; color: var(--suave); }
.respiro { height: 28px; }
.selo {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: var(--r-pill);
  border: 1px dashed var(--suave); font: 500 9.5px var(--mono); text-transform: uppercase; letter-spacing: 0.05em;
}

.secao { margin-top: 72px; }
.secao__titulo { font-size: 22px; padding-top: 14px; border-top: 1px solid var(--linha); }
.secao .grade { margin-top: 20px; }
.vazio { color: var(--suave); padding: 40px 0; }

/* ---------- paginação */
.paginacao { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 56px; }
.pag__num, .pag__btn {
  min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px;
  border: 1px solid var(--linha); border-radius: 14px; font: 500 14px var(--mono);
}
.pag__num:hover, .pag__btn:hover { border-color: var(--tinta); text-decoration: none; }
.pag__num--atual { background: var(--tinta); color: var(--fundo); border-color: var(--tinta); }

/* ---------- indicadores */
.indicadores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
@media (min-width: 900px) { .indicadores { grid-template-columns: repeat(4, 1fr); } }
.ind { background: var(--superficie); border-radius: 22px; padding: 16px 18px; display: grid; gap: 6px; }
.ind__nome { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--suave); }
.ind__valor { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ind__valor small { font: 500 12px var(--mono); color: var(--suave); margin-left: 6px; letter-spacing: 0; }
.ind__fonte { font: 400 11px var(--mono); color: var(--suave); }


/* ---------- matéria */
.materia { padding-top: 32px; }
.materia__topo { max-width: 860px; display: grid; gap: 14px; margin-bottom: 28px; }
.materia__topo h1 { font-size: clamp(30px, 4.8vw, 58px); line-height: 1.03; letter-spacing: -0.045em; }
.materia__fina { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.45; color: var(--suave); max-width: 64ch; }
.materia__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font: 400 12.5px var(--mono); color: var(--suave); padding-top: 6px; }

.materia__grade { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 1000px) { .materia__grade { grid-template-columns: minmax(0, 680px) 300px; justify-content: space-between; } }
.materia__lado { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1000px) { .materia__lado { position: sticky; top: 96px; } }

.materia__corpo { font-size: 18.5px; line-height: 1.62; max-width: 680px; }
.materia__corpo > * + * { margin-top: 1.1em; }
.materia__corpo h2 { font-size: 26px; line-height: 1.15; margin-top: 1.8em; }
.materia__corpo h3 { font-size: 21px; margin-top: 1.5em; }
.materia__corpo a { color: var(--acento-forte); text-decoration: underline; text-underline-offset: 3px; }
.materia__corpo strong { font-weight: 600; }
.materia__corpo ul, .materia__corpo ol { padding-left: 1.2em; }
.materia__corpo ul { list-style: disc; }
.materia__corpo ol { list-style: decimal; }
.materia__corpo li + li { margin-top: 0.4em; }
.materia__corpo li::marker { color: var(--acento); }
.materia__corpo hr { border: 0; border-top: 1px solid var(--linha); }
.materia__corpo blockquote {
  margin: 1.8em 0; padding: 22px 0; border-top: 1px solid var(--tinta); border-bottom: 1px solid var(--linha);
  font-size: 23px; line-height: 1.35; font-weight: 500; letter-spacing: -0.02em;
}
.materia--texto { max-width: 760px; }
.materia--texto .materia__corpo { margin-top: 8px; }

.aviso {
  font: 400 13px/1.5 var(--mono); color: var(--suave); border: 1px dashed var(--suave);
  border-radius: var(--r-pequeno); padding: 12px 14px;
}

.ficha { background: var(--superficie); border-radius: 24px; padding: 20px; display: grid; gap: 14px; }
.ficha dl { margin: 0; display: grid; gap: 12px; }
.ficha dt { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--suave); }
.ficha dd { margin: 2px 0 0; font-size: 15px; line-height: 1.35; }

.compartilhar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.compartilhar .rotulo { width: 100%; }
.compartilhar a, .compartilhar button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--linha); border-radius: var(--r-pill); background: transparent; font-size: 14px; font-weight: 500;
}
.compartilhar a:hover, .compartilhar button:hover { border-color: var(--tinta); text-decoration: none; }
.compartilhar svg { width: 16px; height: 16px; }
.materia__topo .cartao__topico { margin-bottom: 2px; }

.correcao { max-width: 680px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--linha); color: var(--suave); font-size: 14px; }
.correcao a { color: var(--acento-forte); text-decoration: underline; }

/* ---------- gráfico de barras */
.grafico { margin: 2em 0; background: var(--superficie); border-radius: var(--r-card); padding: 22px; }
.grafico__titulo { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }
.grafico__barras { display: grid; gap: 12px; }
.barra { display: grid; grid-template-columns: minmax(96px, 30%) 1fr 52px; gap: 12px; align-items: center; font-size: 14px; line-height: 1.25; }
.barra__trilho { width: calc(100% - 12px); height: 12px; margin: 0 6px; overflow: visible; }
.barra__fundo, .barra__valor { stroke-width: 12px; stroke-linecap: round; vector-effect: non-scaling-stroke; fill: none; }
.barra__fundo { stroke: var(--linha); }
.barra__valor { stroke: var(--acento-claro); }
.barra--fim .barra__valor { stroke: var(--acento); }
.barra--fim .barra__rot { font-weight: 600; }
.barra__num { font: 500 14px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.grafico figcaption { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font: 400 12px var(--mono); color: var(--suave); }
.grafico__nota { border: 1px dashed var(--suave); border-radius: var(--r-pill); padding: 1px 9px; }

/* ---------- busca */
.busca { display: flex; gap: 8px; flex-wrap: wrap; }
.busca input {
  flex: 1 1 260px; min-height: 52px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid var(--linha); background: var(--superficie); color: var(--tinta); font: 400 17px var(--sans);
}
.busca input:focus-visible { outline: 2px solid var(--acento); outline-offset: 1px; }
.busca .botao { min-height: 52px; }
.busca__status { margin: 20px 0 0; font: 400 13px var(--mono); color: var(--suave); }
.busca__status + .grade { margin-top: 24px; }

/* ---------- rodapé (fundo floresta fixo, nos dois temas) */
.rodape { margin-top: 120px; background: var(--floresta); color: #FAFAF8; }
.rodape__interno { max-width: var(--largura); margin: 0 auto; padding: 64px var(--margem) 28px; }
.rodape a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rodape__frase { font-size: clamp(28px, 4vw, 48px); font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; max-width: 16ch; }
.rodape__frase span { color: #95D3B9; }
.rodape__colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; margin-top: 56px; }
@media (min-width: 900px) { .rodape__colunas { grid-template-columns: repeat(4, 1fr); } }
.rodape__rot { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: #95D3B9; margin-bottom: 14px; }
.rodape__col ul { border-left: 1px solid rgba(250, 250, 248, 0.16); padding-left: 14px; display: grid; gap: 2px; }
.rodape__col ul a { display: inline-block; padding: 5px 0; font-size: 17px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.rodape__col--final { display: grid; gap: 18px; align-content: start; grid-column: 1 / -1; }
@media (min-width: 900px) { .rodape__col--final { grid-column: auto; border-left: 1px solid rgba(250, 250, 248, 0.16); padding-left: 14px; } }
.rodape__col--final .botao { margin: 0; }
.rodape .rodape__legal { border: 0; padding: 0; }
.rodape .rodape__legal a { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 0; }
.rodape__direitos { font: 400 12px/1.6 var(--mono); color: #95D3B9; text-transform: uppercase; letter-spacing: 0.04em; }
.rodape__gigante { display: block; margin-top: 64px; }
.rodape__gigante:hover { opacity: 0.92; }
.rodape__gigante img { width: 100%; height: auto; }
.rodape__nota { margin-top: 20px; font: 400 11px var(--mono); color: rgba(250, 250, 248, 0.6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* visibilidade por largura (depois de .icone-btn para vencer a cascata) */
@media (min-width: 760px) { .topo .topo__lupa { display: none; } }
@media (min-width: 1024px) { .topo .topo__menu { display: none; } }

/* submenu de tópicos no menu lateral */
.menu__grupo .chevron { transition: transform 0.2s ease; }
.menu__grupo svg:last-child { margin-left: auto; width: 18px; height: 18px; }
.menu__grupo[aria-expanded="true"] .chevron { transform: rotate(180deg); transform-origin: 12px 12px; }
.submenu { display: grid; gap: 2px; margin: 2px 0 6px 22px; padding-left: 10px; border-left: 1px solid var(--linha); }
.submenu[hidden] { display: none; }
.submenu .menu__item { min-height: 40px; font-size: 14.5px; }
.botao--claro { background: #FAFAF8; color: #0D0D0C; }
.rodape__col ul a { overflow-wrap: normal; }
@media (max-width: 899px) { .rodape__colunas > .rodape__col:nth-child(3) { grid-column: 1 / -1; } }

/* ---------- indicadores ao vivo */
.ind-status { font: 400 12px var(--mono); color: var(--suave); margin: -4px 0 8px; display: flex; align-items: center; gap: 8px; }
.ind-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 1.5px var(--acento); flex: none; }
.ind-grupo { margin-top: 36px; }
.ind-grupo__topo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-top: 14px; border-top: 1px solid var(--linha); margin-bottom: 14px; }
.ind-grupo__topo h2 { font-size: 20px; }
.ind-grupo__topo p { font: 400 12px var(--mono); color: var(--suave); }
.ind { position: relative; min-height: 148px; align-content: start; transition: background-color 0.6s ease; }
.ind__valor { font-size: clamp(24px, 2.4vw, 30px); }
.ind__var { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; min-height: 18px; }
.ind__var--alta { color: var(--alta, #087F5B); }
.ind__var--queda { color: var(--queda, #C8322B); }
.ind__var--neutro { color: var(--suave); }
.ind__linha { width: 100%; height: auto; max-height: 34px; margin: 2px 0; overflow: visible; }
.ind__linha path { fill: none; stroke: var(--acento); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ind__linha circle { fill: var(--lima); stroke: var(--acento); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ind__fonte { margin-top: auto; }
.ind--novo { background: color-mix(in srgb, var(--acento) 8%, var(--superficie)); }
.ind--erro [data-quando] { color: var(--queda, #C8322B); }
.ind-rodape { margin-top: 28px; font: 400 12px/1.6 var(--mono); color: var(--suave); max-width: 80ch; }
:root { --alta: #087F5B; --queda: #B42B24; }
:root[data-theme="dark"] { --alta: #3FBF8F; --queda: #F0645A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --alta: #3FBF8F; --queda: #F0645A; } }

/* =================================================================== MOTION
   Entradas só existem com html.motion (ligado por tema.js quando não há "reduzir movimento").
   Fixos (topo, barra lateral, menu) não animam. */
:root { --ease: cubic-bezier(0.22, 0.75, 0.18, 1); --no-fim: #9ED62B; }
:root[data-theme="dark"] { --no-fim: #D4FF3A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --no-fim: #D4FF3A; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

html.motion :is(.destaque, .grade > .cartao, .cabeca > *, .materia__topo > *, .materia__corpo > *, .materia__lado > *,
  .ind-status, .ind-grupo__topo, .indicadores > .ind, .ind-rodape, .secao__titulo, .paginacao, .busca, .correcao, .funcs > .func, .fontes-menu, .mx-comp__topo, .cp-abas, .ini-cidade__topo,
  .rodape__frase, .rodape__col, .rodape__assuntos, .materia__assuntos, .rodape__gigante, .rodape__nota) {
  transition: opacity 0.9s var(--ease) var(--atraso, 0ms), transform 1s var(--ease) var(--atraso, 0ms),
              translate 0.45s var(--ease), box-shadow 0.45s var(--ease), background-color 0.6s ease;
}
html.motion :is(.destaque, .grade > .cartao, .cabeca > *, .materia__topo > *, .materia__corpo > *, .materia__lado > *,
  .ind-status, .ind-grupo__topo, .indicadores > .ind, .ind-rodape, .secao__titulo, .paginacao, .busca, .correcao, .funcs > .func, .fontes-menu, .mx-comp__topo, .cp-abas, .ini-cidade__topo,
  .rodape__frase, .rodape__col, .rodape__assuntos, .materia__assuntos, .rodape__gigante, .rodape__nota):not(.visivel) {
  opacity: 0; transform: translate3d(0, 28px, 0);
}
html.motion .destaque:not(.visivel) { transform: translate3d(0, 36px, 0) scale(0.985); }

/* ---------- símbolo Rede animável (capas) */
.simb { overflow: visible; }
.simb__linha { fill: none; stroke: var(--acento); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.simb__fil, .simb__no { fill: var(--acento); stroke: none; }
.simb__fim { fill: var(--no-fim); }
.simb__no { transform-box: fill-box; transform-origin: center; }
html.motion .simb__linha { transition: stroke-dashoffset 1.1s var(--ease) 0.25s; }
html.motion .simb__fil { transition: opacity 0.5s ease 1s; }
html.motion .simb__no { transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
html.motion .simb__no--1 { transition-delay: 0.15s; } html.motion .simb__no--2 { transition-delay: 0.4s; }
html.motion .simb__no--3 { transition-delay: 0.65s; } html.motion .simb__no--4 { transition-delay: 0.9s; }
html.motion :is(.cartao, .destaque):not(.visivel) .simb__linha { stroke-dashoffset: 1; }
html.motion :is(.cartao, .destaque):not(.visivel) .simb__fil { opacity: 0; }
html.motion :is(.cartao, .destaque):not(.visivel) .simb__no { transform: scale(0); }
@keyframes pulo { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-3px) scale(1.12); } }
html.motion :is(.cartao, .destaque):hover .simb__no { animation: pulo 0.55s var(--ease) both; }
html.motion :is(.cartao, .destaque):hover .simb__no--2 { animation-delay: 0.08s; }
html.motion :is(.cartao, .destaque):hover .simb__no--3 { animation-delay: 0.16s; }
html.motion :is(.cartao, .destaque):hover .simb__no--4 { animation-delay: 0.24s; }

/* ---------- hovers */
.capa { transition: translate 0.5s var(--ease), border-color 0.3s ease, box-shadow 0.5s var(--ease), scale 0.6s var(--ease); }
.cartao:hover .capa { translate: 0 -6px; border-color: color-mix(in srgb, var(--tinta) 22%, var(--linha)); box-shadow: 0 22px 40px -26px rgba(13, 13, 12, 0.35); }
.destaque:hover .capa { scale: 1.012; }
.capa__num { transition: translate 0.2s linear; }
.botao, .pag__num, .pag__btn, .compartilhar a, .compartilhar button { transition: translate 0.3s var(--ease), opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
.botao:hover, .compartilhar a:hover, .compartilhar button:hover, .pag__num:hover, .pag__btn:hover { translate: 0 -2px; }
.menu__item svg, .trilho__btn svg, .icone-btn svg { transition: transform 0.35s var(--ease), color 0.2s ease; }
.menu__item:hover svg { transform: translateX(3px); }
.trilho__btn:hover svg, .icone-btn:hover svg { transform: scale(1.12); }
.menu__item, .trilho__btn, .icone-btn { transition: background-color 0.2s ease, color 0.2s ease; }
.ind:hover { translate: 0 -4px; box-shadow: 0 18px 36px -26px rgba(13, 13, 12, 0.35); }
.rodape__col ul a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.rodape__col ul a:hover { text-decoration: none; background-size: 100% 1px; }
.cartao__titulo a, .destaque__titulo a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.5s var(--ease); }
.cartao__titulo a:hover, .destaque__titulo a:hover, .cartao:has(.cartao__capa:hover) .cartao__titulo a { text-decoration: none; background-size: 100% 1.5px; }

/* ---------- barras animadas */
.barra__valor { transform-box: fill-box; transform-origin: left center; }
html.motion .barra__valor { transform: scaleX(0); transition: transform 1.1s var(--ease) calc(var(--i, 0) * 120ms + 200ms); }
html.motion .visivel .barra__valor { transform: scaleX(1); }
.contando { font-variant-numeric: tabular-nums; }

/* ---------- gráfico de linha */
.linha__caixa { position: relative; }
.linha__svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.linha__grade line { stroke: var(--linha); stroke-width: 1; }
.linha__grade text, .linha__eixo text { fill: var(--suave); stroke: none; font: 400 11px var(--mono); }
.linha__area { fill: var(--acento); stroke: none; opacity: 0.09; }
.linha__traco { fill: none; stroke: var(--acento); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.linha__p { fill: var(--superficie); stroke: var(--acento); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; transition: transform 0.25s var(--ease); }
.linha__p--fim { fill: var(--no-fim); stroke: var(--acento); stroke-width: 1.6; }
.linha__p--ativo { transform: scale(1.5); }
.linha__guia { opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.linha__guia.ativa { opacity: 1; }
.linha__guia line { stroke: var(--tinta); stroke-width: 1; stroke-dasharray: 3 3; }
.linha__guia circle { fill: none; stroke: var(--tinta); stroke-width: 1.2; }
.linha__captura { fill: transparent; stroke: none; cursor: crosshair; }
.linha__dica {
  position: absolute; left: 0; top: 0; width: 120px; pointer-events: none; display: grid; gap: 2px;
  background: var(--tinta); color: var(--fundo); border-radius: 12px; padding: 8px 12px; transition: transform 0.12s linear;
}
.linha__dica span { font: 400 11px var(--mono); opacity: 0.75; }
.linha__dica strong { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.grafico--linha:focus-visible { outline: 2px solid var(--acento); outline-offset: 4px; }
@keyframes respira { 0%, 100% { stroke-width: 1.6; } 50% { stroke-width: 5; } }
html.motion .linha__p--fim { animation: respira 2.4s ease-in-out 2.4s infinite; }
html.motion .linha__traco { transition: stroke-dashoffset 1.8s var(--ease) 0.25s; }
html.motion .linha__area { transition: opacity 0.9s ease 1.3s; }
html.motion .linha__pontos { transition: opacity 0.6s ease 1.6s; }
html.motion .grafico--linha:not(.visivel) .linha__traco { stroke-dashoffset: 1; }
html.motion .grafico--linha:not(.visivel) .linha__area,
html.motion .grafico--linha:not(.visivel) .linha__pontos { opacity: 0; }

/* ---------- fluxo (diagrama vivo) */
.fluxo__nos { display: grid; gap: 0; margin-top: 8px; }
.fluxo__no { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; padding-bottom: 22px; }
.fluxo__no:last-child { padding-bottom: 0; }
.fluxo__icone {
  grid-row: span 2; width: 56px; height: 56px; display: grid; place-items: center; position: relative; z-index: 1;
  border: 1px solid var(--linha); border-radius: 18px; background: var(--fundo); color: var(--suave);
  transition: border-color 0.4s ease, background-color 0.4s ease, color 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}
.fluxo__icone .ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fluxo__nome { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; align-self: end; transition: color 0.3s ease; }
.fluxo__desc { font-size: 13.5px; color: var(--suave); line-height: 1.35; }
.fluxo__no:not(:last-child)::after {
  content: ""; position: absolute; left: 28px; top: 58px; bottom: 2px; width: 1px; background: var(--linha); transition: background-color 0.4s ease;
}
.fluxo__ponto { position: absolute; left: 25px; top: 58px; width: 7px; height: 7px; border-radius: 50%; background: var(--acento); opacity: 0; z-index: 2; }
.fluxo__no:last-child .fluxo__ponto { display: none; }
.fluxo__no.ativo .fluxo__icone { border-color: var(--tinta); color: var(--tinta); background: var(--superficie); transform: scale(1.07); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acento) 14%, transparent); }
.fluxo__no.feito .fluxo__icone { border-color: var(--acento); color: var(--acento); }
.fluxo__no.feito::after { background: var(--acento); }
@keyframes desce { 0% { opacity: 0; top: 58px; } 15%, 85% { opacity: 1; } 100% { opacity: 0; top: calc(100% - 4px); } }
@keyframes atravessa { 0% { opacity: 0; left: calc(50% + 32px); } 15%, 85% { opacity: 1; } 100% { opacity: 0; left: calc(150% - 38px); } }
.fluxo__no.percorrendo .fluxo__ponto { animation: desce 1.3s var(--ease) forwards; }
@media (min-width: 640px) {
  .fluxo__nos--3 { grid-template-columns: repeat(3, 1fr); } .fluxo__nos--4 { grid-template-columns: repeat(4, 1fr); }
  .fluxo__nos--5 { grid-template-columns: repeat(5, 1fr); } .fluxo__nos--6 { grid-template-columns: repeat(6, 1fr); }
  .fluxo__nos--2 { grid-template-columns: repeat(2, 1fr); }
  .fluxo__no { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 6px; padding: 0 6px; }
  .fluxo__icone { grid-row: auto; margin-bottom: 6px; }
  .fluxo__nome { align-self: auto; }
  .fluxo__no:not(:last-child)::after { left: calc(50% + 34px); right: calc(-50% + 34px); top: 28px; bottom: auto; width: auto; height: 1px; }
  .fluxo__ponto { top: 25px; left: calc(50% + 32px); }
  .fluxo__no.percorrendo .fluxo__ponto { animation-name: atravessa; }
}

/* ---------- número em destaque */
.numero { margin: 2em 0; padding: 28px 0 22px; border-top: 1px solid var(--tinta); border-bottom: 1px solid var(--linha); display: grid; gap: 8px; }
.numero__valor { font-size: clamp(52px, 9vw, 96px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.numero__rotulo { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--suave); display: flex; align-items: center; gap: 8px; }
.numero__rotulo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--no-fim); box-shadow: 0 0 0 1.5px var(--acento); }
.numero figcaption { font: 400 12px var(--mono); color: var(--suave); }

/* ---------- sparkline dos indicadores desenha ao entrar */
.ind__linha path { stroke-dasharray: 400; stroke-dashoffset: 0; }
html.motion .ind__linha path { transition: stroke-dashoffset 1.6s var(--ease) calc(var(--atraso, 0ms) + 300ms); }
html.motion .ind:not(.visivel) .ind__linha path { stroke-dashoffset: 400; }
.linha__dica[hidden] { display: none; }

/* =================================================================== PUBLICIDADE
   Espaço reservado com altura mínima (evita a página "pular" quando o anúncio carrega). */
.anuncio { display: grid; gap: 6px; margin: 40px 0; }
.anuncio__rotulo { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--suave); text-align: center; }
.anuncio__caixa { display: block; width: 100%; min-height: 250px; border-radius: 20px; overflow: hidden; }
.anuncio--horizontal .anuncio__caixa { min-height: 250px; }
@media (min-width: 768px) { .anuncio--horizontal .anuncio__caixa { min-height: 120px; } }
.anuncio--artigo { margin: 2.2em 0; }
.anuncio--lateral { margin: 8px 0 0; }
.anuncio--lateral .anuncio__caixa { min-height: 250px; max-width: 300px; justify-self: center; }
.anuncio--grade { grid-column: 1 / -1; margin: 0; }
.anuncio--topo { margin: 40px 0 0; }
.anuncio--fim { max-width: 680px; margin: 48px 0 0; }
.anuncio--reserva .anuncio__caixa {
  display: grid; place-items: center; border: 1px dashed var(--linha); background:
    repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--linha) 45%, transparent) 10px 11px);
}
.anuncio--reserva .anuncio__caixa span { font: 500 11px var(--mono); color: var(--suave); background: var(--fundo); padding: 4px 10px; border-radius: 999px; }
html.sem-anuncios .anuncio:not(.anuncio--reserva) { display: none; }

/* aviso de consentimento: mesmo peso visual para aceitar e recusar */
.consentimento {
  position: fixed; z-index: 45; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto;
  display: grid; gap: 14px; padding: 18px 20px; border-radius: 24px;
  background: var(--superficie); border: 1px solid var(--linha); box-shadow: 0 24px 60px -24px rgba(13, 13, 12, 0.35);
}
.consentimento[hidden] { display: none; }
.consentimento p { font-size: 14.5px; line-height: 1.45; }
.consentimento a { text-decoration: underline; color: var(--acento-forte); }
.consentimento__botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consentimento .botao { justify-self: stretch; margin: 0; }
.botao--contorno { background: transparent; color: var(--tinta); border: 1px solid var(--tinta); }
@media (min-width: 1024px) { .consentimento { left: calc(76px + 24px); } }
.rodape__botao { background: none; border: 0; padding: 6px 0; color: inherit; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }
.rodape__botao:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- ASSUNTOS (SEO) */
.rodape__assuntos { margin-top: 48px; border-top: 1px solid rgba(250, 250, 248, 0.16); border-bottom: 1px solid rgba(250, 250, 248, 0.16); }
.rodape__abrir { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 0; background: none; border: 0; color: inherit; cursor: pointer; text-align: left; }
.rodape__abrir > span:first-child { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: #95D3B9; }
.rodape__abrir-sub { font-size: 15px; color: rgba(250, 250, 248, 0.72); }
.rodape__abrir svg { margin-left: auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rodape__abrir .chevron { transition: transform 0.3s var(--ease); transform-origin: 12px 12px; }
.rodape__abrir[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.rodape__abrir:hover .rodape__abrir-sub { color: #FAFAF8; }
.rodape__painel { padding: 6px 0 26px; }
.rodape__painel[hidden] { display: none; }
html.motion .rodape__painel:not([hidden]) { animation: assuntos-abre 0.45s var(--ease) both; }
@keyframes assuntos-abre { from { opacity: 0; transform: translateY(-6px); } }
.assuntos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
@media (min-width: 900px) { .assuntos { grid-template-columns: repeat(5, 1fr); } }
.assuntos__grupo ul { border-left: 1px solid rgba(250, 250, 248, 0.16); padding-left: 14px; display: grid; gap: 0; }
.assuntos__grupo a { display: inline-block; padding: 4px 0; font-size: 14.5px; color: rgba(250, 250, 248, 0.86); }
.assuntos__grupo a:hover { color: #FAFAF8; }
.rodape__todos { display: inline-block; margin-top: 24px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }

/* assuntos no fim da matéria */
.materia__assuntos { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--linha); max-width: 68ch; }
.materia__assuntos ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.materia__assuntos a { font-size: 14.5px; color: var(--tinta); text-decoration: underline; text-decoration-color: var(--linha); text-underline-offset: 4px; }
.materia__assuntos a:hover { text-decoration-color: currentColor; }

/* página /assuntos/ */
.assuntos-pag { display: grid; gap: 32px; }
@media (min-width: 700px) { .assuntos-pag { grid-template-columns: repeat(2, 1fr); } }
.assuntos-pag__grupo h2 { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--suave); margin: 0 0 10px; }
.assuntos-pag__grupo ul { list-style: none; padding: 0 0 0 14px; margin: 0; border-left: 1px solid var(--linha); display: grid; gap: 4px; }
.assuntos-pag__grupo li span { font: 400 11px var(--mono); color: var(--suave); }

/* ---------------------------------------------------------------- FUNCIONALIDADES */
.funcs { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 700px) { .funcs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .funcs { grid-template-columns: repeat(3, 1fr); } }
.func { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-card); background: var(--superficie); border: 1px solid var(--linha); color: var(--tinta); text-decoration: none; transition: translate 0.3s var(--ease), border-color 0.2s ease; }
.func:hover { translate: 0 -3px; border-color: var(--acento); text-decoration: none; }
.func__icone { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--fundo); color: var(--acento); }
.func__icone svg { width: 22px; height: 22px; }
.func__nome { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }
.func__desc { color: var(--suave); font-size: 15px; line-height: 1.5; }
.func__ir { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--acento-forte); }
.func__ir svg { width: 16px; height: 16px; transition: translate 0.3s var(--ease); }
.func:hover .func__ir svg { translate: 3px 0; }

/* ---------------------------------------------------------------- CUSTO DE VIDA */
.cv {
  --cv-1: #DCEFE6; --cv-2: #A9D9C3; --cv-3: #5DB592; --cv-4: #13875F; --cv-5: #0D3B2C;
  --cv-vazio: #E2E2DD; --cv-borda: #F2F2F0; --cv-sel: #D4FF3A; --cv-sel-borda: #0D0D0C; --cv-hover: #0D0D0C; --cv-sel2: #0D0D0C;
  display: grid; gap: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cv {
    --cv-1: #16332A; --cv-2: #1E5A44; --cv-3: #2E8A66; --cv-4: #4DBB8F; --cv-5: #A8E6C9;
    --cv-vazio: #262723; --cv-borda: #0D0D0C; --cv-sel-borda: #FAFAF8; --cv-hover: #FAFAF8; --cv-sel2: #FAFAF8;
  }
}
:root[data-theme="dark"] .cv {
  --cv-1: #16332A; --cv-2: #1E5A44; --cv-3: #2E8A66; --cv-4: #4DBB8F; --cv-5: #A8E6C9;
  --cv-vazio: #262723; --cv-borda: #0D0D0C; --cv-sel-borda: #FAFAF8; --cv-hover: #FAFAF8; --cv-sel2: #FAFAF8;
}
.cv__barra { display: grid; gap: 10px; }
@media (min-width: 900px) { .cv__barra { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.cv__busca { position: relative; }
.cv__busca > svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--suave); pointer-events: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cv__busca input { width: 100%; height: 52px; padding: 0 18px 0 46px; border-radius: var(--r-pill); border: 1px solid var(--linha); background: var(--superficie); color: var(--tinta); font: inherit; font-size: 16px; }
.cv__busca input:focus { outline: 2px solid var(--acento); outline-offset: 1px; border-color: transparent; }
.cv__busca input:disabled { opacity: 0.6; }
.cv__sugestoes { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; border-radius: 18px; background: var(--superficie); border: 1px solid var(--linha); box-shadow: 0 18px 40px rgba(13, 13, 12, 0.14); }
.cv__sugestoes[hidden] { display: none; }
.cv__sugestoes li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.cv__sugestoes li[aria-selected="true"], .cv__sugestoes li:hover { background: var(--fundo); }
.cv__op-nome { font-weight: 500; }
.cv__op-uf, .cv__op-vazio { font: 400 12px var(--mono); color: var(--suave); }
.cv__op-vazio { cursor: default; }
.cv__camadas { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--superficie); border: 1px solid var(--linha); justify-self: start; }
.cv__camadas button { border: 0; background: none; color: var(--suave); font: 500 13.5px var(--sans); padding: 9px 14px; border-radius: var(--r-pill); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.cv__camadas button:hover { color: var(--tinta); }
.cv__camadas button[aria-checked="true"] { background: var(--tinta); color: var(--fundo); }
.cv__grade { display: grid; gap: 16px; }
@media (min-width: 900px) { .cv__grade { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.cv__mapa { position: relative; height: min(72vh, 680px); min-height: 380px; border-radius: var(--r-card); background: var(--superficie); border: 1px solid var(--linha); overflow: hidden; }
@media (max-width: 899px) { .cv__mapa { height: 62vh; } }
.cv__mapa canvas { display: block; touch-action: pan-y; }
.cv__mapa canvas.arrastando { cursor: grabbing !important; }
.cv__estado { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; font: 400 13px var(--mono); color: var(--suave); }
.cv__estado[hidden] { display: none; }
html.motion .cv__estado:not(.cv__estado--erro) { animation: cv-pulso 1.4s ease-in-out infinite; }
@keyframes cv-pulso { 50% { opacity: 0.45; } }
html.motion .cv--pronto canvas { animation: cv-entra 0.7s var(--ease) both; }
@keyframes cv-entra { from { opacity: 0; scale: 0.985; } }
.cv__zoom { position: absolute; top: 14px; right: 14px; display: grid; gap: 6px; }
.cv__zoom button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--linha); background: var(--superficie); color: var(--tinta); font: 500 20px/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
.cv__zoom button:hover { border-color: var(--tinta); }
.cv__zoom svg { width: 17px; height: 17px; }
.cv__dica-zoom { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 10px 16px; border-radius: var(--r-pill); background: rgba(13, 13, 12, 0.82); color: #FAFAF8; font-size: 14px; pointer-events: none; text-align: center; }
.cv__dica-zoom[hidden] { display: none; }
.cv__tip { position: absolute; left: 0; top: 0; display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; background: var(--tinta); color: var(--fundo); font-size: 13px; pointer-events: none; white-space: nowrap; }
.cv__tip[hidden] { display: none; }
.cv__tip span { opacity: 0.8; font-size: 12px; }
.cv__legenda { position: absolute; left: 14px; bottom: 14px; padding: 12px 14px; border-radius: 16px; background: var(--superficie); border: 1px solid var(--linha); font-size: 12px; max-width: calc(100% - 28px); }
.cv__legenda:empty { display: none; }
.cv__legenda-t { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--suave); margin-bottom: 8px; }
.cv__legenda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
@media (max-width: 899px) {
  .cv__legenda { left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; }
  .cv__legenda-t { margin-bottom: 6px; }
  .cv__legenda ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
  .cv__legenda li { gap: 6px; white-space: nowrap; font-size: 11.5px; }
  .cv__legenda li:nth-child(2) span:last-child, .cv__legenda li:nth-child(3) span:last-child, .cv__legenda li:nth-child(4) span:last-child { display: none; }
  .cv__legenda li:nth-child(5) { margin-right: 10px; }
  .cv__legenda-n { display: none; }
  .cv__camadas { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .cv__camadas button { flex: none; }
}
.cv__legenda li { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.cv__legenda-n { margin-top: 8px; font: 400 10.5px var(--mono); color: var(--suave); }
.cv__sw { width: 14px; height: 10px; border-radius: 3px; flex: none; }
.cv__sw--1 { background: var(--cv-1); } .cv__sw--2 { background: var(--cv-2); } .cv__sw--3 { background: var(--cv-3); }
.cv__sw--4 { background: var(--cv-4); } .cv__sw--5 { background: var(--cv-5); } .cv__sw--vazio { background: var(--cv-vazio); }
.cv__painel { border-radius: var(--r-card); background: var(--superficie); border: 1px solid var(--linha); padding: 22px; display: grid; gap: 18px; scroll-margin-top: 90px; }
@media (min-width: 900px) { .cv__painel { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; } }
html.motion .cv__painel--entra > * { animation: cv-sobe 0.5s var(--ease) both; }
html.motion .cv__painel--entra > *:nth-child(2) { animation-delay: 50ms; } html.motion .cv__painel--entra > *:nth-child(3) { animation-delay: 100ms; }
html.motion .cv__painel--entra > *:nth-child(4) { animation-delay: 150ms; } html.motion .cv__painel--entra > *:nth-child(n+5) { animation-delay: 200ms; }
@keyframes cv-sobe { from { opacity: 0; translate: 0 8px; } }
.cv__vazio { display: grid; gap: 10px; color: var(--suave); font-size: 15px; line-height: 1.55; }
.cv__nota { font-size: 13px; color: var(--suave); }
.cv__nome { font-size: 28px; line-height: 1.05; letter-spacing: -0.03em; }
.cv__sub { color: var(--suave); margin-top: 6px; font-size: 14.5px; }
.cv__grupo h3, .cv__conta h3 { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--acento-forte); margin-bottom: 8px; }
.cv__grupo dl { margin: 0; display: grid; }
.cv__linha { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--linha); }
.cv__linha dt { font-size: 14px; color: var(--suave); }
.cv__linha dd { margin: 0; display: grid; gap: 3px; }
.cv__valor { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cv__linha--sem .cv__valor { font-size: 15px; font-weight: 500; color: var(--suave); }
.cv__fonte { font: 400 10.5px/1.5 var(--mono); color: var(--suave); }
.cv__conta { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: var(--fundo); }
.cv__conta p { font-size: 15px; }
.cv__barra-pct { display: block; height: 8px; border-radius: 99px; background: var(--linha); overflow: hidden; margin-bottom: 6px; }
.cv__barra-pct span { display: block; height: 100%; width: var(--pct); border-radius: 99px; background: var(--acento); }
html.motion .cv__painel--entra .cv__barra-pct span { animation: cv-barra 0.9s var(--ease) 0.25s both; }
@keyframes cv-barra { from { width: 0; } }
.cv-fontes { margin-top: 48px; display: grid; gap: 12px; max-width: 80ch; color: var(--suave); font-size: 15px; line-height: 1.6; }
.cv-fontes ul { padding-left: 18px; display: grid; gap: 4px; }
.cv-fontes strong { color: var(--tinta); font-weight: 500; }

/* custo de vida: rodapé do painel e tabela de fontes */
.cv__rodape { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--linha); }
.cv__rodape-n { font-size: 14.5px; }
.cv__rodape-n strong { font-weight: 600; }
.cv__medidor { display: block; height: 6px; border-radius: 99px; background: var(--linha); overflow: hidden; }
.cv__medidor span { display: block; height: 100%; width: var(--pct); border-radius: 99px; background: var(--acento); }
.cv__rodape-falta { font-size: 13px; color: var(--suave); line-height: 1.5; }
.cv-fontes__resumo strong { color: var(--tinta); }
.cv-tabela { overflow-x: auto; border: 1px solid var(--linha); border-radius: 20px; background: var(--superficie); }
.cv-tabela table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--tinta); }
.cv-tabela th, .cv-tabela td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--linha); }
.cv-tabela thead th { border-top: 0; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--suave); white-space: nowrap; }
.cv-tabela tbody th { font-weight: 500; }
.cv-tabela td { color: var(--suave); }
.cv-tabela a { color: var(--tinta); text-decoration: underline; text-decoration-color: var(--linha); text-underline-offset: 3px; }
.cv-tabela a:hover { text-decoration-color: currentColor; }
.cv-sit { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.cv-sit::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.cv-sit--sim { color: var(--acento-forte); }
.cv-sit--sim::before { background: var(--acento); }
.cv-sit--nao { color: var(--suave); }
.cv-sit--nao::before { border: 1.5px solid var(--suave); box-sizing: border-box; }
@media (max-width: 760px) {
  .cv-tabela { border: 0; background: none; overflow: visible; }
  .cv-tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cv-tabela tbody { display: grid; gap: 10px; }
  .cv-tabela tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border: 1px solid var(--linha); border-radius: 18px; background: var(--superficie); }
  .cv-tabela th, .cv-tabela td { padding: 0; border: 0; }
  .cv-tabela tbody th { grid-column: 1; }
  .cv-tabela td[data-rot="Situação"] { grid-column: 2; grid-row: 1; }
  .cv-tabela td:not([data-rot="Situação"]) { grid-column: 1 / -1; font-size: 13px; }
  .cv-tabela td:not([data-rot="Situação"])::before { content: attr(data-rot) ": "; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
}
.cv__conta p.cv__fonte { font-size: 10.5px; }
.cv-fontes { max-width: none; } .cv-fontes > p { max-width: 80ch; } .cv-tabela td[data-rot="Referência"], .cv-tabela td[data-rot="Coletado em"] { white-space: nowrap; }


/* ---------------------------------------------------------------- FONTES (menu recolhível) */
.fontes-menu { margin-top: 48px; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.fontes-menu > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 20px 2px; cursor: pointer; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.fontes-menu > summary::-webkit-details-marker { display: none; }
.fontes-menu > summary svg { margin-left: auto; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fontes-menu > summary .chevron { transition: transform 0.3s var(--ease); transform-origin: 12px 12px; }
.fontes-menu[open] > summary .chevron { transform: rotate(180deg); }
.fontes-menu > summary:hover { color: var(--acento-forte); }
.fontes-menu > summary:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 8px; }
.fontes-menu .cv-fontes { margin: 0 0 28px; }
html.motion .fontes-menu[open] .cv-fontes { animation: cv-sobe 0.45s var(--ease) both; }

/* ---------------------------------------------------------------- EXPLORADOR DE MUNICÍPIOS */
.mx-rank { font: 500 10.5px var(--mono); color: var(--acento-forte); letter-spacing: 0.02em; }
.mx-barras { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--fundo); }
.mx-barras__t { font-size: 13.5px; color: var(--suave); }
.mx-barras__i { display: grid; gap: 4px; }
.mx-barras__i p { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.mx-barras__i strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.mx-barras__b { display: block; height: 7px; border-radius: 99px; background: var(--linha); overflow: hidden; }
.mx-barras__b span { display: block; height: 100%; width: var(--pct); border-radius: 99px; background: var(--acento); }
html.motion .cv__painel--entra .mx-barras__b span { animation: cv-barra 0.9s var(--ease) 0.2s both; }
.mx-comp { display: grid; gap: 16px; margin-top: 40px; }
.mx-comp__topo { display: grid; gap: 6px; }
.mx-comp__escolha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mx-chip { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: var(--r-pill); background: var(--superficie); border: 1px solid var(--linha); font-weight: 500; }
.mx-chip__cor { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--lima); border: 1.5px solid var(--tinta); flex: none; vertical-align: -1px; margin-right: 8px; }
.mx-chip .mx-chip__cor { margin-right: 0; }
.mx-chip__cor--b { background: var(--tinta); }
.mx-comp__x { color: var(--suave); font-size: 18px; }
.mx-comp__busca { flex: 1 1 280px; max-width: 460px; }
.mx-comp__busca > .mx-chip__cor { position: absolute; left: 18px; top: 50%; translate: 0 -50%; margin: 0; }
.mx-comp__busca input { padding-left: 42px; }
.mx-comp__limpar { border: 0; background: none; color: var(--suave); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; padding: 8px; }
.mx-comp__limpar:hover { color: var(--tinta); }
.mx-comp__limpar[hidden] { display: none; }
.mx-comp__vazio { padding: 28px; border-radius: var(--r-card); border: 1px dashed var(--linha); color: var(--suave); text-align: center; }
.mx-comp__caixa { border: 1px solid var(--linha); border-radius: 20px; background: var(--superficie); overflow-x: auto; }
.mx-comp table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.mx-comp th, .mx-comp td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--linha); vertical-align: middle; }
.mx-comp thead th { border-top: 0; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--suave); }
.mx-comp tbody th { font-weight: 400; color: var(--suave); }
.mx-comp td { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mx-comp td.mx-sem { font-weight: 400; color: var(--suave); }
.mx-comp__grupo th { font: 500 10.5px var(--mono) !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--acento-forte) !important; background: var(--fundo); padding-top: 9px; padding-bottom: 9px; }
.mx-comp__th-barra { width: 28%; }
.mx-comp__barra { display: grid; gap: 4px; min-width: 120px; }
.mx-comp__b { display: block; height: 6px; width: var(--pct); border-radius: 99px; }
.mx-comp__b--a { background: var(--acento); }
.mx-comp__b--b { background: var(--tinta); opacity: 0.7; }
@media (max-width: 760px) {
  .mx-comp__caixa { border: 0; background: none; overflow: visible; }
  .mx-comp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mx-comp tbody { display: grid; gap: 8px; }
  .mx-comp tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--linha); border-radius: 16px; background: var(--superficie); }
  .mx-comp tbody tr.mx-comp__grupo { display: block; padding: 14px 2px 0; border: 0; background: none; }
  .mx-comp__grupo th { background: none; padding: 0; }
  .mx-comp th, .mx-comp td { padding: 0; border: 0; }
  .mx-comp tbody th { grid-column: 1 / -1; }
  .mx-comp td { white-space: normal; }
  .mx-comp td::before { content: attr(data-rot); display: block; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--suave); margin-bottom: 2px; }
  .mx-comp__barra { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- COMPARADOR */
.cp { --s1: var(--acento); --s2: var(--tinta); --s3: var(--suave); --s4: #6FC2A0; --s5: var(--tinta); display: grid; gap: 22px; }
.cp-abas { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: var(--r-pill); background: var(--superficie); border: 1px solid var(--linha); justify-self: start; max-width: 100%; }
.cp-abas button { flex: none; border: 0; background: none; color: var(--suave); font: 500 14px var(--sans); padding: 10px 16px; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.cp-abas button:hover { color: var(--tinta); }
.cp-abas button[aria-selected="true"] { background: var(--tinta); color: var(--fundo); }
.cp-abas button:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.cp-painel { display: grid; gap: 18px; }
.cp-painel[hidden] { display: none; }
html.motion .cp-painel:not([hidden]) { animation: cv-sobe 0.45s var(--ease) both; }
.cp-desc { color: var(--suave); font-size: 16px; max-width: 70ch; }
.cp-corpo { display: grid; gap: 18px; position: relative; min-height: 160px; }
.cp-carregando { position: static; min-height: 160px; }
.cp-erro { padding: 24px; border-radius: var(--r-card); border: 1px dashed var(--linha); color: var(--suave); }
.cp-barra { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; }
.cp-barra > .cp-campo, .cp-barra > .cp-escolha, .cp-barra > .cp-select { flex: 1 1 260px; max-width: 460px; }
.cp-escolha--cor > .cp-escolha__cor { position: absolute; left: 18px; top: 50%; translate: 0 -50%; margin: 0; z-index: 1; }
.cp-escolha--cor input { padding-left: 42px !important; }
.cp-escolha input { width: 100%; height: 52px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--linha); background: var(--superficie); color: var(--tinta); font: inherit; font-size: 16px; }
.cp-escolha input:focus { outline: 2px solid var(--acento); outline-offset: 1px; border-color: transparent; }
.cp-ctrls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.cp-ctrls > .cp-escolha { flex: 1 1 320px; max-width: 520px; }
.cp-select, .cp-input { display: grid; gap: 6px; font-size: 13px; color: var(--suave); }
.cp-select select, .cp-input input { height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--linha); background: var(--superficie); color: var(--tinta); font: inherit; font-size: 15.5px; min-width: 120px; }
.cp-select select:focus, .cp-input input:focus { outline: 2px solid var(--acento); outline-offset: 1px; }
.cp-res { display: grid; gap: 14px; }
.cp-mini { font-size: 14px; color: var(--suave); }
.cp-explica { font-size: 15px; color: var(--suave); max-width: 70ch; }
.cp-fonte { font: 400 11px/1.6 var(--mono); color: var(--suave); }
.cp-aviso { padding: 14px 16px; border-radius: 16px; background: var(--superficie); border: 1px solid var(--linha); font-size: 14px; line-height: 1.55; }
.cp-link { font-weight: 500; color: var(--acento-forte); }
.cp-nota-linha { display: block; font: 400 10.5px var(--mono); color: var(--suave); margin-top: 2px; }
.cp-bloco { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-card); background: var(--superficie); border: 1px solid var(--linha); }
.cp-bloco .cp-select select, .cp-bloco .cp-input input { background: var(--fundo); }
.cp-h3 { font-size: 20px; letter-spacing: -0.02em; }
.cp-calc { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.cp-calc__res { display: grid; gap: 10px; }
.cp-kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cp-kpi { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 18px; background: var(--fundo); border: 1px solid var(--linha); }
.cp-res > .cp-kpis .cp-kpi, .cp-corpo > .cp-kpis .cp-kpi { background: var(--superficie); }
.cp-kpi__r { font-size: 13px; color: var(--suave); }
.cp-kpi__v { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cp-kpi__n { font: 400 11px var(--mono); color: var(--suave); }
.cp-kpi--pos .cp-kpi__v { color: var(--acento-forte); }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--linha); background: var(--superficie); color: var(--suave); font: 500 13.5px var(--sans); padding: 8px 14px; border-radius: var(--r-pill); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; }
.cp-chip:hover { color: var(--tinta); border-color: var(--tinta); }
.cp-chip[aria-pressed="true"] { background: var(--tinta); color: var(--fundo); border-color: var(--tinta); }
.cp-chip:disabled { cursor: default; opacity: 1; }
.cp-chip--rem { color: var(--tinta); }
.cp-chip--rem::after { content: "×"; font-size: 16px; line-height: 1; color: var(--suave); margin-left: 2px; }
.cp-chip i, .cp-ult__i i, .cp-graf__dica i { width: 10px; height: 10px; border-radius: 3px; background: var(--cor); flex: none; display: inline-block; }
.cp-s--1 { --cor: var(--s1); } .cp-s--2 { --cor: var(--s2); } .cp-s--3 { --cor: var(--s3); } .cp-s--4 { --cor: var(--s4); } .cp-s--5 { --cor: var(--s5); }
.cp-graf { margin: 0; display: grid; gap: 10px; padding: 18px; border-radius: var(--r-card); background: var(--superficie); border: 1px solid var(--linha); }
.cp-bloco .cp-graf { background: var(--fundo); }
.cp-graf:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.cp-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.cp-leg__i { display: inline-flex; align-items: center; gap: 8px; }
.cp-leg__traco { width: 18px; height: 3px; border-radius: 3px; background: var(--cor); }
.cp-leg__i.cp-s--4 .cp-leg__traco, .cp-leg__i.cp-s--5 .cp-leg__traco { background: repeating-linear-gradient(90deg, var(--cor) 0 5px, transparent 5px 8px); }
.cp-graf__area { position: relative; width: 100%; min-height: 230px; }
.cp-graf__area svg { display: block; overflow: visible; }
.cp-graf__grade { stroke: var(--linha); stroke-width: 1; }
.cp-graf__zero { stroke: var(--suave); stroke-dasharray: 3 3; }
.cp-graf__eixo { fill: var(--suave); font: 400 10.5px var(--mono); }
.cp-graf__linha { fill: none; stroke: var(--cor); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.cp-graf__linha.cp-s--4 { stroke-dasharray: 6 4; } .cp-graf__linha.cp-s--5 { stroke-dasharray: 2 4; }
html.motion .cp-graf--entra .cp-graf__linha { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cp-traca 1.1s var(--ease) forwards; }
html.motion .cp-graf--entra .cp-graf__linha.cp-s--4, html.motion .cp-graf--entra .cp-graf__linha.cp-s--5 { animation: none; stroke-dashoffset: 0; }
html.motion .cp-graf--entra .cp-graf__linha.cp-s--4 { stroke-dasharray: 6 4; } html.motion .cp-graf--entra .cp-graf__linha.cp-s--5 { stroke-dasharray: 2 4; }
@keyframes cp-traca { to { stroke-dashoffset: 0; } }
.cp-graf__fim { fill: var(--cor); stroke: var(--superficie); stroke-width: 2; }
.cp-graf__ponto { fill: var(--cor); stroke: var(--superficie); stroke-width: 2; }
.cp-graf__guia { stroke: var(--suave); stroke-width: 1; stroke-dasharray: 3 3; }
.cp-graf__captura { fill: transparent; cursor: crosshair; }
.cp-graf__dica { position: absolute; left: 0; top: 0; display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--tinta); color: var(--fundo); font-size: 12.5px; pointer-events: none; max-width: 300px; z-index: 2; }
.cp-graf__dica[hidden] { display: none; }
.cp-graf__dica span { display: flex; align-items: center; gap: 8px; }
.cp-graf__dica .cp-s--2 i { background: var(--fundo); }
.cp-ult { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cp-ult__i { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; padding: 12px 14px; border-radius: 16px; background: var(--superficie); border: 1px solid var(--linha); }
.cp-ult__i span { font-size: 13.5px; color: var(--suave); }
.cp-ult__i strong { grid-column: 1 / -1; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cp-ult__i small { grid-column: 1 / -1; font: 400 10.5px var(--mono); color: var(--suave); }
.cp .mx-comp { margin-top: 0; }
/* gráficos do comparador: não herdam o contorno dos ícones */
.cp-graf__area svg, .cp-graf__area svg text, .cp-graf__captura { stroke: none; }
.cp-graf__eixo { font-weight: 400; font-size: 10px; opacity: 0.8; stroke: none; }
.cv-comp__frase { font-size: 17px; line-height: 1.5; max-width: 72ch; }
.cv-comp__frase strong { font-weight: 600; }
.cv .mx-comp__tabela { display: grid; gap: 12px; }

/* ---------------------------------------------------------------- GASTO PÚBLICO DA SUA CIDADE */
.gp { display: grid; gap: 28px; }
.gp-busca { display: grid; gap: 12px; max-width: 760px; }
.gp-busca .cv__busca input { height: 60px; font-size: 18px; }
.gp-exemplos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--suave); }
.gp-exemplos span { margin-right: 4px; }
.gp-res { display: grid; gap: 36px; }
html.motion .gp-res--entra > * { animation: cv-sobe 0.55s var(--ease) both; }
html.motion .gp-res--entra > *:nth-child(2) { animation-delay: 60ms; } html.motion .gp-res--entra > *:nth-child(3) { animation-delay: 120ms; }
.gp-inicio { padding: 24px; border-radius: var(--r-card); border: 1px dashed var(--linha); color: var(--suave); max-width: 760px; }
.gp-inicio ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.55; }
.gp-inicio strong { color: var(--tinta); font-weight: 500; }
.gp-carregando { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-card); background: var(--superficie); border: 1px solid var(--linha); max-width: 760px; }
.gp-passos { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font: 400 12.5px var(--mono); color: var(--suave); }
.gp-passos li::before { content: "○"; display: inline-block; width: 18px; color: var(--suave); }
.gp-passos li.ok { color: var(--tinta); }
.gp-passos li.ok::before { content: "●"; color: var(--acento); }
html.motion .gp-passos li:not(.ok) { animation: cv-pulso 1.4s ease-in-out infinite; }
.gp-topo { display: grid; gap: 6px; scroll-margin-top: 90px; padding-bottom: 18px; border-bottom: 1px solid var(--linha); }
.gp-nome { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.02; letter-spacing: -0.04em; }
.gp-sub { color: var(--suave); }
.gp-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gp-nav a { font-size: 13.5px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--linha); color: var(--tinta); background: var(--superficie); }
.gp-nav a:hover { border-color: var(--tinta); text-decoration: none; }
.gp-parte { display: grid; gap: 16px; scroll-margin-top: 90px; }
.gp-parte__t { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; }
.gp-parte__s { color: var(--suave); margin-top: -8px; }
.gp-bloco { display: grid; gap: 22px; }
.gp-sec { display: grid; gap: 12px; padding: 22px; border-radius: var(--r-card); background: var(--superficie); border: 1px solid var(--linha); }
.gp-sec__t { font-size: 19px; letter-spacing: -0.02em; }
.gp-sec__s { font-size: 14px; color: var(--suave); margin-top: -6px; }
.gp-indisp { padding: 16px 18px; border-radius: 16px; border: 1px dashed var(--linha); color: var(--suave); font-size: 14.5px; }
.gp-prog { display: block; height: 5px; border-radius: 99px; background: var(--linha); overflow: hidden; margin-top: 6px; }
.gp-prog span { display: block; height: 100%; width: var(--pct); border-radius: 99px; background: var(--acento); }
.gp-barras { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gp-barra__cx { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--linha); }
.gp-barras > li:first-child .gp-barra__cx { border-top: 0; }
.gp-barra__topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; list-style: none; }
details.gp-barra__cx > summary { cursor: pointer; }
details.gp-barra__cx > summary::-webkit-details-marker { display: none; }
details.gp-barra__cx > summary .gp-barra__nome::after { content: "+"; margin-left: 8px; color: var(--suave); font-weight: 400; }
details.gp-barra__cx[open] > summary .gp-barra__nome::after { content: "−"; }
details.gp-barra__cx > summary:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 6px; }
.gp-barra__nome { font-size: 15px; font-weight: 500; }
.gp-barra__val { display: grid; justify-items: end; text-align: right; }
.gp-barra__val strong { font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gp-barra__val span { font: 400 10.5px var(--mono); color: var(--suave); }
.gp-barra__b { display: block; height: 8px; border-radius: 99px; background: var(--fundo); overflow: hidden; }
.gp-barra__b span { display: block; height: 100%; width: var(--pct); border-radius: 99px; background: var(--acento); }
html.motion .gp-res--entra .gp-barra__b span { animation: cv-barra 1s var(--ease) 0.2s both; }
.gp-subs { list-style: none; margin: 4px 0 4px 12px; padding: 0 0 0 12px; border-left: 1px solid var(--linha); display: grid; gap: 4px; }
.gp-subs li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--suave); }
.gp-subs strong { color: var(--tinta); font-weight: 500; font-variant-numeric: tabular-nums; }
.gp-pilha { display: flex; height: 16px; border-radius: 99px; overflow: hidden; gap: 2px; }
.gp-pilha__p { width: var(--pct); min-width: 3px; }
.gp-n--pessoal { background: var(--acento); } .gp-n--custeio { background: #6FC2A0; } .gp-n--invest { background: var(--tinta); }
.gp-n--divida { background: var(--suave); } .gp-n--outros { background: var(--linha); }
.gp-frase { font-size: 16px; line-height: 1.55; padding: 14px 16px; border-radius: 16px; background: var(--fundo); }
.gp-pessoal__frase { font-size: 18px; line-height: 1.5; max-width: 70ch; }
.gp-st--pos { color: var(--acento-forte); } .gp-st--alerta { color: #B7791F; } .gp-st--neg { color: #C2412D; }
.gp-gauge { position: relative; height: 18px; border-radius: 99px; background: var(--linha); margin: 6px 0 0; }
.gp-gauge__f { position: absolute; left: 0; top: 0; bottom: 0; width: var(--pct); border-radius: 99px; background: currentColor; }
html.motion .gp-res--entra .gp-gauge__f { animation: cv-barra 1.2s var(--ease) 0.3s both; }
.gp-gauge__m { position: absolute; left: var(--pos); top: -4px; bottom: -4px; width: 2px; background: var(--tinta); }
.gp-gauge__m small { position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; white-space: nowrap; font: 400 10.5px var(--mono); color: var(--suave); }
.gp-gauge__m:nth-of-type(2) small { translate: -100% 0; }
.gp-gauge__m:nth-of-type(4) small { translate: 0 0; }
.gp-hist { list-style: none; margin: 0; padding: 22px; display: grid; gap: 14px; border-radius: var(--r-card); background: var(--superficie); border: 1px solid var(--linha); }
.gp-hist li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.gp-hist__ano { font: 500 13px var(--mono); }
.gp-hist__barras { display: grid; gap: 4px; }
.gp-hist__l { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.gp-hist__b { display: block; height: 10px; width: var(--pct); border-radius: 99px; }
.gp-hist__b--receita { background: #6FC2A0; } .gp-hist__b--despesa { background: var(--acento); }
.gp-hist__v { font: 400 11px var(--mono); color: var(--suave); white-space: nowrap; }
.gp-mais { display: grid; gap: 10px; padding: 22px; border-radius: var(--r-card); border: 1px dashed var(--linha); }
.gp-mais ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.gp-mais small { display: block; color: var(--suave); font-size: 13px; }
.gp-mais a { color: var(--acento-forte); font-weight: 500; }
@media (max-width: 600px) {
  .gp-barra__topo { flex-direction: column; align-items: start; gap: 2px; }
  .gp-barra__val { justify-items: start; text-align: left; }
  .gp-hist__l { grid-template-columns: 1fr; }
}
.gp-gauge__leg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 11.5px var(--mono); color: var(--suave); }
.gp-gauge__leg li { display: inline-flex; align-items: center; gap: 7px; }
.gp-gauge__leg b { width: 2px; height: 12px; background: var(--tinta); }
.gp-gauge__leg i { width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.gp-gauge__leg-atual { color: var(--tinta); }

/* ---------------------------------------------------------------- REVELADOR DE IMPOSTOS */
.im { --fed: var(--acento); --est: var(--tinta); --mun: #6FC2A0; display: grid; gap: 22px; }
.im-c--fed { --cor: var(--fed); background: var(--fed); } .im-c--est { --cor: var(--est); background: var(--est); } .im-c--mun { --cor: var(--mun); background: var(--mun); }
.im-onde { display: grid; gap: 8px; max-width: 640px; }
.im-onde__busca > svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--suave); pointer-events: none; }
.im-onde__atual { font-size: 14px; color: var(--suave); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.im-onde__atual strong { color: var(--tinta); font-weight: 500; }
.im-resumo { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r-card); background: var(--floresta); color: #FAFAF8; }
.im-resumo:empty { display: none; }
.im-resumo__frase { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.3; letter-spacing: -0.02em; max-width: 36ch; }
.im-resumo__frase strong { color: #95D3B9; font-weight: 600; }
.im-resumo__extremos { font: 400 12px/1.6 var(--mono); color: rgba(250, 250, 248, 0.72); }
.im-filtros { display: grid; gap: 12px; }
.im-filtros__lin { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.im-filtro { flex: 1 1 240px; max-width: 420px; }
.im-grade { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.im-card { width: 100%; height: 100%; display: grid; gap: 8px; align-content: start; text-align: left; padding: 18px; border-radius: 22px; border: 1px solid var(--linha); background: var(--superficie); color: var(--tinta); font: inherit; cursor: pointer; transition: translate 0.3s var(--ease), border-color 0.2s ease; }
.im-card:hover { translate: 0 -3px; border-color: var(--acento); }
.im-card:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.im-card--ativo { border-color: var(--tinta); }
html.motion .im-card { animation: cv-sobe 0.45s var(--ease) var(--d, 0ms) both; }
.im-card__cat { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--suave); }
.im-card__nome { font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.im-card__v { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.im-card__v strong { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.im-card__v span { font-size: 13px; color: var(--suave); }
.im-card__cem { font: 400 11px var(--mono); color: var(--suave); }
.im-barra { display: flex; height: 8px; border-radius: 99px; background: var(--fundo); overflow: hidden; gap: 2px; }
.im-barra span { width: var(--pct); }
html.motion .im-barra span { animation: im-cresce 0.9s var(--ease) both; }
@keyframes im-cresce { from { width: 0; } }
.im-barra--grande { height: 14px; }
.im-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--suave); }
.im-leg li { display: inline-flex; align-items: center; gap: 8px; }
.im-leg i, .im-calc__lista i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.im-ficha { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-card); background: var(--superficie); border: 1px solid var(--tinta); scroll-margin-top: 90px; }
.im-ficha[hidden] { display: none; }
html.motion .im-ficha:not([hidden]) { animation: cv-sobe 0.45s var(--ease) both; }
.im-ficha__topo { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.im-ficha__nome { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.05; margin-top: 4px; }
.im-ficha__grande { font-size: 18px; color: var(--suave); }
.im-ficha__grande strong { font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -0.04em; color: var(--tinta); margin-right: 8px; font-variant-numeric: tabular-nums; }
.im-calc { display: grid; gap: 14px; grid-template-columns: minmax(180px, 240px) 1fr; align-items: start; padding: 16px; border-radius: 18px; background: var(--fundo); }
@media (max-width: 640px) { .im-calc { grid-template-columns: 1fr; } }
.im-calc .cp-input input { background: var(--superficie); }
.im-calc__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.im-calc__lista li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 14.5px; }
.im-calc__lista strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.im-calc__total { padding-top: 8px; border-top: 1px solid var(--linha); font-weight: 600; grid-template-columns: 1fr auto !important; }
.im-calc__sem { color: var(--suave); grid-template-columns: 1fr auto !important; }
.im-ficha__notas { display: grid; gap: 6px; font-size: 14px; color: var(--suave); line-height: 1.5; }

/* ---------------------------------------------------------------- INÍCIO: "Como está a sua cidade?" */
.ini-cidade { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--linha); display: grid; gap: 18px; }
.ini-cidade__topo { display: grid; gap: 8px; max-width: 64ch; }
.ini-cidade__t { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.ini-cidade__s { color: var(--suave); font-size: 16.5px; line-height: 1.5; }
.ini-cidade__busca { max-width: 640px; }
.ini-cidade__busca input { height: 58px; font-size: 17px; }
.ini-cidade__mapa { height: min(62vh, 560px); }
.ini-cidade__mais { font-size: 13px; color: var(--suave); }
.ini-cidade__mais a { color: var(--acento-forte); font-weight: 500; }
