@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Tema claro único (pedido do projeto). Raios: barra de busca, chips e botões em pílula; painéis 20px;
   teclas da urna 12px (referência física, regra única). */
:root {
  --fundo: #ffffff;
  --fundo-2: #f5f6f5;
  --fundo-3: #eef0ee;
  --tinta: #0a0c0b;
  --tinta-2: #474e4a;
  --tinta-3: #6b726e;
  --linha: #ecedec;
  --linha-2: #dcdfdc;
  --verde: #0e7a45;           /* 2º turno e melhor horário (validado para daltonismo com o laranja) */
  --verde-texto: #0b6a3b;
  --verde-fundo: rgb(14 122 69 / .08);
  --laranja: #f0883e;         /* pico do 1º turno */
  --laranja-texto: #a24e15;
  --r1: #9aa29e;              /* 1º turno */
  --r1-fundo: #eceeec;
  --tecla: #2fb36a;
  --tecla-texto: #07120b;
  --sombra-barra: 0 1px 1px rgb(10 12 11 / .04), 0 10px 30px -10px rgb(10 12 11 / .16), 0 30px 60px -30px rgb(10 12 11 / .12);
  --sombra-cartao: 0 1px 1px rgb(10 12 11 / .03), 0 24px 48px -24px rgb(10 12 11 / .18);
  --mola: cubic-bezier(.34, 1.56, .64, 1);
  --suave: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--tinta);
  font: 400 16px/1.55 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sprite { display: none; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.nw { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 8px; }

/* ------------------------------------------------------------ topo */
.topo { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; width: 100%; margin: 0 auto; padding: 12px 20px 0; }
/* marca: "votar" é a tecla CONFIRMA da urna */
.marca {
  display: inline-flex; align-items: center; gap: .34em; font: 800 18px/1 "Archivo", "Geist", sans-serif;
  letter-spacing: -.01em; text-transform: uppercase; color: var(--tinta); text-decoration: none; white-space: nowrap;
}
.marca-tecla {
  display: inline-block; padding: .38em .55em .44em; border-radius: 7px; background: var(--tecla); color: var(--tecla-texto);
  font-size: .9em; letter-spacing: .02em; text-transform: uppercase;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / .18), inset 0 1px 0 rgb(255 255 255 / .45), 0 2px 6px -2px rgb(14 122 69 / .55);
  transition: transform .12s, box-shadow .12s;
}
.marca:active .marca-tecla { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .18), 0 1px 2px rgb(0 0 0 / .2); }
.topo-dir { display: flex; align-items: center; gap: 14px; }
.contagem { margin: 0; font-size: 13.5px; color: var(--tinta-2); background: var(--fundo-2); border-radius: 999px; padding: 6px 12px; font-variant-numeric: tabular-nums; }
.contagem strong { color: var(--tinta); font-weight: 600; }

/* ------------------------------------------------------------ cabeça */
.palco { max-width: 1240px; margin: 0 auto; padding: 0 20px; width: 100%; }
.cabeca { text-align: center; max-width: 860px; margin: 0 auto; padding: clamp(14px, 3.2vh, 34px) 0 14px; }
.onde { margin: 0 0 14px; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; font-size: 14.5px; color: var(--tinta-2); }
.onde b { color: var(--tinta); font-weight: 600; }
.onde .sep { color: var(--linha-2); }
h1 {
  margin: 0; font-weight: 640; font-size: clamp(28px, min(5.6vw, 6.4vh), 58px); line-height: 1.03; letter-spacing: -.045em; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--verde-texto); white-space: nowrap; }
.sub { margin: 8px auto 0; max-width: 60ch; font-size: clamp(14px, 1.6vw, 16px); line-height: 1.45; color: var(--tinta-2); text-wrap: balance; }
.sub strong { color: var(--tinta); font-weight: 600; }
.sub .tb { color: var(--verde-texto); font-weight: 600; }
.sub .linha { display: block; }
.sub .tr { color: #b3261e; font-weight: 600; }

/* entrada da página: o conteúdo sobe em sequência */
@media (prefers-reduced-motion: no-preference) {
  .entra { animation: entra .9s var(--suave) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .troca { animation: troca .55s var(--suave) both; }
}
@keyframes entra { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes troca { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ busca */
.busca { position: relative; max-width: 680px; margin: 0 auto; z-index: 30; }
.barra {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 4px 0 16px; border-radius: 14px;
  background: var(--fundo); border: 1px solid var(--linha-2); box-shadow: var(--sombra-barra);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--suave);
}
.barra:focus-within { border-color: var(--tinta-3); box-shadow: 0 0 0 4px var(--fundo-3), var(--sombra-barra); }
.ic-busca { color: var(--tinta-3); width: 18px; height: 18px; }
.barra input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 16px; letter-spacing: -.01em; }
.barra input:focus { outline: none; }
.barra input::placeholder { color: var(--tinta-3); }
.contexto {
  display: inline-flex; align-items: center; gap: 6px; max-width: 42%; height: 30px; padding: 0 6px 0 12px; border-radius: 8px;
  background: var(--fundo-3); font-size: 14.5px; font-weight: 550; white-space: nowrap;
}
.contexto span { overflow: hidden; text-overflow: ellipsis; }
.contexto button { width: 24px; height: 24px; border-radius: 999px; border: 0; background: none; display: grid; place-items: center; color: var(--tinta-3); cursor: pointer; }
.contexto button:hover { background: var(--linha-2); color: var(--tinta); }
.contexto .ic { width: 14px; height: 14px; }
@media (max-width: 560px) { .barra { padding-left: 16px; } }

.tecla {
  height: 40px; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer; flex-shrink: 0;
  font-weight: 750; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tecla-texto); background: var(--tecla);
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / .16), inset 0 1px 0 rgb(255 255 255 / .4), 0 2px 8px -2px rgb(14 122 69 / .5);
  transition: transform .1s, box-shadow .1s, opacity .25s, filter .25s;
}
.tecla:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .16), 0 1px 2px rgb(0 0 0 / .2); }
.tecla:disabled { opacity: .35; filter: saturate(.3); cursor: default; box-shadow: none; }
@media (max-width: 420px) { .tecla { padding: 0 14px; letter-spacing: .06em; } }

.resultados {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; max-height: min(62vh, 520px); overflow: auto; overscroll-behavior: contain;
  background: var(--fundo); border: 1px solid var(--linha-2); border-radius: 22px; box-shadow: var(--sombra-cartao); padding: 8px;
  transform-origin: top center;
}
@media (prefers-reduced-motion: no-preference) { .resultados:not([hidden]) { animation: abre .28s var(--suave); } }
@keyframes abre { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.grupo { padding: 4px 0 6px; }
.grupo + .grupo { border-top: 1px solid var(--linha); }
.grupo-rot { padding: 10px 14px 4px; font-size: 12.5px; font-weight: 600; color: var(--tinta-3); letter-spacing: .02em; }
.item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; cursor: pointer; }
.item[aria-selected="true"] { background: var(--fundo-2); }
.item .ic-box { width: 34px; height: 34px; border-radius: 10px; background: var(--fundo-2); display: grid; place-items: center; color: var(--tinta-2); }
.item[aria-selected="true"] .ic-box { background: var(--fundo); }
.item .t { display: block; font-weight: 560; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .d { display: block; font-size: 13.5px; color: var(--tinta-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item mark { background: none; color: var(--tinta); font-weight: 700; }
.item .d mark { color: var(--tinta-2); font-weight: 600; }
.item .x { font-size: 13px; color: var(--tinta-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vazio { padding: 18px 16px; color: var(--tinta-2); font-size: 15px; }
.vazio b { color: var(--tinta); }
.esqueleto { height: 52px; margin: 6px 4px; border-radius: 14px; background: linear-gradient(90deg, var(--fundo-2), var(--fundo-3), var(--fundo-2)); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .esqueleto { animation: brilho 1.2s linear infinite; } }
@keyframes brilho { to { background-position: -200% 0; } }

.dica-busca { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--tinta-3); }
.dica-busca button { border: 0; background: none; padding: 0; color: var(--tinta-2); text-decoration: underline; text-decoration-color: var(--linha-2); text-underline-offset: 3px; cursor: pointer; }
.dica-busca button:hover { color: var(--tinta); text-decoration-color: var(--tinta-3); }

/* ------------------------------------------------------------ seções do local */
.secoes { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 860px; margin: 22px auto 0; }
.secoes-rot { font-size: 14.5px; font-weight: 600; color: var(--tinta-2); }
.chips {
  display: flex; flex-wrap: nowrap; gap: 6px; max-width: min(860px, 100%); overflow-x: auto; scrollbar-width: none; padding: 2px 24px 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 28px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; }
.chip {
  min-width: 52px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linha-2); background: var(--fundo);
  font-weight: 560; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s var(--mola);
}
.chip:hover { border-color: var(--tinta-3); }
.chip:active { transform: scale(.94); }
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--fundo); }
.chip-todas { color: var(--tinta-2); font-weight: 500; }

/* ------------------------------------------------------------ gráfico */
.palco-grafico { position: relative; margin: clamp(10px, 2vh, 22px) 0 0; }
.grafico-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 0 2px 4px; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px; }
.leg {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px;
  border: 1px solid var(--linha); background: var(--fundo); font-size: 13.5px; color: var(--tinta-2); cursor: pointer; transition: opacity .2s, border-color .2s;
}
.leg:hover { border-color: var(--linha-2); }
.leg[aria-pressed="false"] { opacity: .45; }
.leg i { display: inline-block; width: 9px; height: 9px; border-radius: 999px; margin: 0 2px; }
/* só o 1º turno: as marcas do 2º turno (melhor horário, evite) saem junto com ele */
.esconde-2 .etiqueta-melhor, .esconde-2 .etiqueta-pior, .esconde-2 .g-melhor, .esconde-2 .g-pior { opacity: 0 !important; }
.so-1 .leg-1 i { background: #1f6feb; box-shadow: 0 0 0 3px rgb(31 111 235 / .22); width: 9px; height: 9px; }
.leg-1 i { background: #a9c6ee; width: 7px; height: 7px; }
.leg-2 i { width: 22px; height: 8px; border-radius: 999px; margin: 0 2px; background: linear-gradient(90deg, #e23a2e, #f28a1f, #eab308, #0fa84f); }
.rotulo-grafico { margin: 0; font-size: 13.5px; color: var(--tinta-3); display: inline-flex; align-items: center; gap: 8px; text-align: right; }
.rotulo-grafico b { color: var(--tinta); font-weight: 600; }
.bandeira { width: 21px; height: 15px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgb(10 12 11 / .08); flex-shrink: 0; }

.grafico { position: relative; height: clamp(170px, calc(100dvh - 430px), 440px); touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.grafico:focus-visible { outline-offset: 8px; border-radius: 12px; }
.grafico svg { position: relative; z-index: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.g-pontos { position: absolute; inset: 0 auto auto 0; z-index: 1; pointer-events: none; }
.etiqueta { z-index: 2; }
.g-grade { stroke: var(--linha); stroke-width: 1; }
.g-base { stroke: var(--linha-2); stroke-width: 1; }
.g-eixo { font-size: 12px; fill: var(--tinta-3); font-variant-numeric: tabular-nums; }
.g-encerrado { fill: rgb(10 12 11 / .025); }
.g-encerrado-rot { font-size: 11.5px; fill: var(--tinta-3); }
.g-r1-area { fill: url(#grad-r1); }
.g-r1-linha { fill: none; stroke: var(--r1); stroke-width: 1.5; }
.g-r2-area { fill: url(#grad-r2); }
.g-r2-linha { fill: none; stroke: var(--verde); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.g-melhor { fill: var(--verde); }
.g-pior { fill: #d9483b; opacity: .85; }
.g-pico { fill: var(--laranja); stroke: var(--fundo); stroke-width: 2.5; }
.g-mira { stroke: var(--tinta); stroke-width: 1; stroke-opacity: .5; }
.g-k1 { fill: var(--fundo); stroke: var(--r1); stroke-width: 2.5; }
.g-k2 { fill: var(--verde); stroke: var(--fundo); stroke-width: 3; }
.g-alca { fill: var(--tinta); }
.esconde-1 .g-r1-area, .esconde-1 .g-r1-linha, .esconde-1 .g-k1, .esconde-1 .g-pico { opacity: 0; }
.esconde-2 .g-r2-area, .esconde-2 .g-r2-linha, .esconde-2 .g-k2 { opacity: 0; }
.grafico path, .grafico circle { transition: opacity .3s; }

/* rótulos em HTML por cima do SVG: nítidos e acessíveis */
.etiqueta {
  position: absolute; top: 0; transform: translate(-50%, -100%); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; pointer-events: none; transition: left .9s var(--suave), opacity .3s;
}
.etiqueta-melhor { background: var(--verde); color: #fff; font-size: 13px; padding: 5px 12px; box-shadow: 0 6px 16px -6px rgb(14 122 69 / .6); }
.etiqueta-melhor::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.etiqueta-pior { background: #d9483b; color: #fff; font-weight: 600; }
.etiqueta-pior::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.etiqueta-pico { background: none; color: var(--laranja-texto); padding: 0; transform: translate(-50%, -170%); }
.etiqueta-hora {
  background: var(--tinta); color: var(--fundo); font-variant-numeric: tabular-nums; transition: opacity .2s;
  transform: translate(-50%, 0); top: auto; bottom: -2px;
}


/* leitura do horário (régua): espera e tempo na urna nos dois turnos */
.leitura {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px 40px;
  margin-top: 18px; padding: 20px 24px; border-radius: 20px; background: var(--fundo-2);
}
.leitura-turno { display: grid; grid-template-columns: 1fr; align-content: start; gap: 2px; padding-left: 22px; border-left: 1px solid var(--linha-2); }
.leitura-hora { padding-left: 0; border-left: 0; }
.lt-rot { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--tinta-3); }
.lt-rot-2 { color: var(--verde-texto); }
.lt-num { font-size: 28px; font-weight: 650; letter-spacing: -.04em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t2 .lt-num { color: var(--verde-texto); }
.lt-sub { font-size: 14px; color: var(--tinta-3); }
.lt-sub b { color: var(--tinta-2); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .leitura { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; padding: 16px 18px; }
  .leitura-hora { grid-column: 1 / -1; }
  .leitura-turno { grid-template-columns: 1fr; padding-left: 0; border-left: 0; }
  .lt-num { font-size: 21px; white-space: normal; }
}
.arraste { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--tinta-3); transition: opacity .4s; }
.arraste.some { opacity: 0; }

/* ------------------------------------------------------------ online (barra de cima) e anúncios */
.online { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tinta-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.online b { color: var(--tinta-2); font-weight: 600; }
.pulso { position: relative; width: 7px; height: 7px; border-radius: 999px; background: #e5484d; flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .pulso::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; background: #e5484d; opacity: .3; animation: pulso 2s ease-out infinite; }
}
@keyframes pulso { from { transform: scale(.4); opacity: .45; } to { transform: scale(1.5); opacity: 0; } }
@media (max-width: 420px) { .online span { display: none; } }

.anuncios { position: relative; margin: 8px auto 0; max-width: 760px; border-radius: 14px; border: 1px dashed var(--linha-2); overflow: hidden; }
.anuncios-trilho { display: flex; transition: transform .7s var(--suave); }
.anuncio {
  flex: 0 0 100%; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 6px 52px 6px 16px;
  text-decoration: none; color: var(--tinta-3); font-size: 13.5px;
}
.anuncio:hover { background: var(--fundo-2); }
.anuncio-rot { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tinta-3); border: 1px solid var(--linha-2); border-radius: 6px; padding: 1px 6px; flex-shrink: 0; }
.anuncio-ig { width: 18px; height: 18px; color: #e1306c; flex-shrink: 0; }
.anuncio-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anuncio-txt b { color: var(--tinta-2); font-weight: 600; }
.anuncio-cta { flex-shrink: 0; font-weight: 600; color: var(--tinta); text-decoration: underline; text-decoration-color: var(--linha-2); text-underline-offset: 3px; }
.anuncios-pontos { position: absolute; right: 14px; top: 50%; translate: 0 -50%; display: flex; gap: 5px; }
.anuncios-pontos button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: var(--linha-2); cursor: pointer; }
.anuncios-pontos button[aria-pressed="true"] { background: var(--tinta-3); }
@media (max-width: 640px) {
  .so-grande, .anuncio-rot { display: none; }
  .anuncio { padding: 8px 44px 8px 14px; gap: 10px; }
  .anuncios-pontos { right: 12px; }
  .topo-dir { gap: 10px; }
  .contagem { padding: 5px 10px; font-size: 12.5px; white-space: nowrap; }
}
@media (max-width: 480px) { .cd-extra { display: none; } }

/* comparação 1º × 2º turno, da chegada à saída */
.compara { margin: 0 0 28px; padding: 22px 24px; border-radius: 20px; border: 1px solid var(--linha); text-align: center; }
.compara-rot { margin: 0 0 14px; font-size: 14.5px; font-weight: 600; color: var(--tinta-2); }
.compara-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compara-grade > div { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--fundo-2); }
.compara-grade strong { font-size: 34px; font-weight: 650; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.compara-grade .c-2 { background: rgb(14 122 69 / .07); }
.compara-grade .c-2 strong { color: var(--verde-texto); }
.c-rot { font-size: 13.5px; color: var(--tinta-3); }
.compara-nota { margin: 14px 0 0; font-size: 14px; color: var(--tinta-3); }
.compara-nota b { color: var(--tinta-2); font-weight: 600; }
@media (max-width: 640px) { .compara-grade { grid-template-columns: 1fr; } .compara-grade strong { font-size: 28px; } .compara { padding: 18px; } }

/* ------------------------------------------------------------ resultado */
.extras { max-width: 980px; margin: 40px auto 0; }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 28px; }
.numeros > div { padding: 18px 20px; border-radius: 20px; background: var(--fundo); border: 1px solid var(--linha); }
.numeros dt { font-size: 13.5px; color: var(--tinta-3); margin-top: 8px; }
.numeros dd { margin: 0; font-size: 32px; font-weight: 650; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.numeros dd small { font-size: 14px; font-weight: 500; color: var(--tinta-3); letter-spacing: 0; }
.numeros .seta { color: var(--r1); font-weight: 400; }
.numeros .bom { color: var(--verde-texto); }
.numeros > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
@media (max-width: 720px) { .numeros { grid-template-columns: 1fr; } .numeros dd { font-size: 28px; } }

.compartilha { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--linha-2); background: var(--fundo); color: var(--tinta); font-weight: 580; font-size: 15px; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: transform .15s var(--mola), border-color .2s, background .2s;
}
.btn:hover { border-color: var(--tinta-3); }
.btn:active { transform: scale(.96); }
.btn-ic { width: 48px; padding: 0; }
.btn-ic .ic { width: 19px; height: 19px; }
.btn .ic { width: 19px; height: 19px; }
.btn-zap { background: #25d366; border-color: #25d366; color: #0a2e18; }
.btn-zap:hover { border-color: #1ebe5a; background: #1ebe5a; }
.btn-x .ic { color: #000; width: 17px; height: 17px; }
.btn-tg .ic { color: #26a5e4; width: 20px; height: 20px; }
.btn-principal { background: var(--tinta); border-color: var(--tinta); color: var(--fundo); padding: 0 24px; }
.btn-principal:hover { border-color: var(--tinta); background: #262b28; }
.aviso { min-height: 22px; margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--verde-texto); }
.nota { display: block; margin-top: 8px; font-size: 14px; color: var(--tinta-3); }

.tabela { margin-top: 18px; text-align: center; }
.tabela summary { display: inline-block; cursor: pointer; color: var(--tinta-3); font-size: 14px; padding: 6px 10px; border-radius: 999px; }
.tabela summary:hover { color: var(--tinta); background: var(--fundo-2); }
.tabela-rolagem { overflow: auto; max-height: 380px; margin-top: 10px; border: 1px solid var(--linha); border-radius: 16px; text-align: left; }
.tabela table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.tabela th, .tabela td { padding: 8px 14px; text-align: right; }
.tabela th:first-child, .tabela td:first-child { text-align: left; }
.tabela thead th { position: sticky; top: 0; background: var(--fundo); color: var(--tinta-3); font-weight: 600; border-bottom: 1px solid var(--linha); }
.tabela tbody tr:nth-child(even) { background: var(--fundo-2); }

/* ------------------------------------------------------------ método e rodapé */
.para-nerds { display: flex; justify-content: center; margin: 56px auto 0; padding: 0 20px; }
.metodo { width: 100%; margin: 96px auto 0; padding: 0 20px; text-align: center; }
.metodo h2 { margin: 0 0 14px; font-size: 26px; font-weight: 640; letter-spacing: -.035em; }
.metodo { max-width: 760px; }
.metodo p { margin: 0; color: var(--tinta-2); font-size: 16px; line-height: 1.65; }
.rodape { max-width: 1240px; width: 100%; margin: 0 auto; padding: 32px 20px 44px; font-size: 13px; color: var(--tinta-3); }
.rodape { text-align: center; }
.rodape p { margin: 0 auto; max-width: 72ch; }

/* celular: a tecla CONFIRMA só aparece quando há o que confirmar */
@media (max-width: 760px) {
  .tecla:disabled { display: none; }
  .barra { padding-right: 6px; }
  .tecla { height: 44px; padding: 0 12px; font-size: 12px; letter-spacing: .05em; }
}

/* celular, no resultado: o gráfico logo depois da manchete; a busca e as seções depois da leitura */
@media (max-width: 760px) {
  body.resultado .palco { display: flex; flex-direction: column; }
  body.resultado .cabeca { order: 0; padding-bottom: 8px; }
  body.resultado .palco-grafico { order: 1; margin-top: 18px; }
  body.resultado .extras { order: 3; }
  body.resultado .busca { order: 4; width: 100%; margin-top: 36px; }
  .secoes { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; width: 100%; min-width: 0; }
  body.resultado .palco > * { max-width: 100%; min-width: 0; }
  .secoes-rot { text-align: left; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin: 0 -20px; padding-inline: 20px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; scroll-snap-align: start; }
  .contexto { max-width: 38%; }
  .tecla { height: 44px; padding: 0 12px; font-size: 12px; letter-spacing: .05em; }
  .tecla:disabled { display: none; }
  .barra { padding-right: 6px; }
  .compartilha .btn-principal { flex: 1 1 auto; }
}

/* celular: legenda numa linha e o local logo abaixo, centralizados e compactos (mais altura para o gráfico) */
@media (max-width: 560px) {
  .grafico-topo { gap: 4px; flex-direction: column; align-items: center; }
  .legenda { flex-wrap: nowrap; gap: 4px; justify-content: center; }
  .leg { height: 26px; padding: 0 8px 0 7px; font-size: 12px; gap: 6px; }
  .leg-2 i { width: 16px; }
  .rotulo-grafico { font-size: 12px; text-align: center; justify-content: center; gap: 6px; max-width: 100%; }
  .rotulo-grafico .bandeira { width: 18px; height: 13px; }
}
