:root {
  color-scheme: light;
  --fundo: #f3f4f6;
  --card: #ffffff;
  --borda: #e3e5e9;           /* divisórias */
  --borda-campo: #7e848f;     /* contorno de campos: ≥ 3:1 sobre o card e o fundo */
  --txt: #111418;
  --txt2: #4b5160;
  --txt3: #636977;            /* ≥ 4,5:1 também sobre o fundo cinza */
  --topo: #0f3d75;
  --topo-txt: #ffffff;
  --branco: #ffffff;
  --acento: #1c5cab;
  --trilho: #e9ebef;
  --neutro: #9aa0ab;          /* barra de quem não está entre os 4 primeiros */
  --vivo: #c8302f;            /* selo "Ao vivo" e pulso */
  /* cores dos candidatos por ideologia do partido (util.js): esquerda vermelho, direita azul, centro verde,
     4º colocado marrom; tons 2 e 3 para um 2º/3º candidato da mesma ideologia. ≥ 3:1 sobre o card.
     Vermelho/verde/marrom se confundem no daltonismo: o nome do candidato sempre aparece junto da cor */
  --esq1: #e53935; --esq2: #9f1d1d; --esq3: #f4511e;
  --dir1: #1f5fbf; --dir2: #0b3b82; --dir3: #3d7fe0;
  --cen1: #15803d; --cen2: #0b5a2a; --cen3: #2e9e4f;
  --marrom: #7a4a1e;
  --bom: #0a7d3b; --bom-fundo: #e3f5ea;
  --aviso: #8a5a00; --aviso-fundo: #fff4d6;
  --erro: #9f1c1b; --erro-fundo: #fde8e8;
  --raio: 14px; --raio-p: 10px; --raio-g: 18px;
  --fs-p: 12px; --fs-s: 13px; --fs-m: 14px; --fs-b: 15px; --fs-t: 16px; --fs-l: 18px; --fs-xl: 28px; --fs-xxl: 34px;
  --sombra: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fundo: #101113; --card: #1a1b1e; --borda: #2c2e33; --borda-campo: #686d77;
    --txt: #f3f4f6; --txt2: #c3c6cf; --txt3: #9a9ea8;
    --topo: #0c2a50; --acento: #6da7ec; --trilho: #2c2e33; --neutro: #6b707b; --vivo: #ff6b6a;
    --esq1: #ee6457; --esq2: #ff9c94; --esq3: #ff7a45;
    --dir1: #5596ec; --dir2: #9cc3ff; --dir3: #3b74d6;
    --cen1: #2aa860; --cen2: #7fd69d; --cen3: #1d8a4c;
    --marrom: #9c6f45;
    --bom: #5fd18f; --bom-fundo: #12301f; --aviso: #f3c45a; --aviso-fundo: #33290f;
    --erro: #ff9a99; --erro-fundo: #3a1818;
    --sombra: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--txt);
  font: var(--fs-b)/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  padding-bottom: env(safe-area-inset-bottom);
}
button, select, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.centro { text-align: center; }
.nw { white-space: nowrap; }
.ico { width: 1em; height: 1em; vertical-align: -2px; flex: none; }
/* foco visível igual em todos os controles (inclusive as abas recolhidas e o gráfico) */
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: var(--topo); color: var(--topo-txt); padding-top: env(safe-area-inset-top); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.topo :focus-visible { outline-color: var(--branco); }
.topo-linha { display: flex; align-items: center; gap: 10px; padding: 10px 16px 6px; max-width: 980px; margin: 0 auto; }
/* marca em 2 linhas no celular estreito: entrelinha curta para o topo não crescer */
.marca { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-t); line-height: 1.15; letter-spacing: -.01em; flex: 1; min-width: 0; }
.marca svg { width: 26px; height: 26px; color: var(--branco); flex: none; }
/* "Entrar" na ponta direita, depois do combo da eleição; discreto (menor e sem contorno) para não competir com os cargos */
.btn-entrar { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 4px 9px; border-radius: 999px;
  border: 0; background: rgba(255,255,255,.10); color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: var(--fs-p); white-space: nowrap; flex: none; }
.btn-entrar:hover { background: rgba(255,255,255,.18); color: var(--branco); }
.btn-entrar .ico { width: 14px; height: 14px; }
/* celular estreito: só o ícone (o texto continua para o leitor de tela) */
@media (max-width: 420px) {
  .btn-entrar { padding: 4px 8px; }
  .btn-entrar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.sel-eleicao { position: relative; }
/* celular: a capa cobre o combo inteiro (no topo não há rótulo visível acima do seletor) */
.sel-eleicao .sel-capa { top: 0; height: auto; }
.sel-eleicao select {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: var(--branco);
  border-radius: var(--raio-p); padding: 9px 28px 9px 10px; font-weight: 600; max-width: 56vw; min-height: 40px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
/* lista nativa do select: cores do tema (no escuro o fundo da lista é escuro) */
.sel-eleicao select option { color: var(--txt); background: var(--card); }
.cargos { display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px 10px; max-width: 980px; margin: 0 auto; scrollbar-width: none; }
.cargos::-webkit-scrollbar { display: none; }
.cargos button {
  flex: none; border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--branco);
  border-radius: 999px; padding: 9px 14px; font-size: var(--fs-m); font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 40px;
}
.cargos button:hover { background: rgba(255,255,255,.12); }
.cargos button[aria-pressed="true"] { background: var(--branco); color: var(--topo); border-color: var(--branco); }

/* ---------- layout ---------- */
main { max-width: 980px; margin: 0 auto; padding: 12px 16px 24px; }
@media (min-width: 900px) {
  main { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
  .filtros, .status, .info-local, #cardGov, #cardUFs, #cardLinha, .rodape { grid-column: 1 / -1; }
}
.card { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); padding: 14px; margin-bottom: 12px; min-width: 0; }
.card-tit { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.card-tit h2 { font-size: var(--fs-t); margin: 0; }
.sub { color: var(--txt3); font-size: var(--fs-s); }
/* mapa dos estados: uma linha em branco entre o subtítulo e o mapa */
#cardUFs .card-tit { margin-bottom: 30px; }

/* filtros: no celular Estado e Município numa linha, Zona e Seção na de baixo; na tela larga os 4 juntos */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.campo { display: flex; flex-direction: column; gap: 3px; flex: 1 1 150px; min-width: 0; position: relative; }
/* celular: capa transparente sobre o seletor abre a lista própria (o seletor continua mostrando o valor) */
.sel-capa { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.campo.campo-zona { flex: 1 1 90px; }
.campo span { font-size: var(--fs-p); color: var(--txt3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.campo select, .busca input {
  width: 100%; background: var(--card); border: 1px solid var(--borda-campo); border-radius: var(--raio-p); padding: 10px 12px; min-height: 44px;
}
.busca { margin-bottom: 10px; }

/* ---------- status ---------- */
.status { display: grid; gap: 10px; }
.status .linha1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.status .grande { font-size: var(--fs-xxl); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.status .rot { color: var(--txt2); font-weight: 600; }
.barra { height: 10px; background: var(--trilho); border-radius: 999px; overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--acento); border-radius: 999px; transition: width .6s ease; }
.status .info { color: var(--txt3); font-size: var(--fs-s); display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
/* horário da atualização sempre na ponta direita da linha (mesmo quando desce para uma linha própria) */
.status .info .atualizado { margin-left: auto; text-align: right; }
.aviso, .erro { border-radius: var(--raio-p); padding: 10px 12px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.aviso { background: var(--aviso-fundo); color: var(--aviso); }
.erro { background: var(--erro-fundo); color: var(--erro); }
.aviso small { display: block; font-weight: 500; opacity: .9; }
.aviso-info { margin: 0; padding: 8px 12px; border-radius: var(--raio-p); background: color-mix(in srgb, var(--acento) 9%, var(--card)); color: var(--txt2); font-size: var(--fs-s); }
.erro-txt { color: var(--erro); padding: 14px 4px; text-align: center; font-size: var(--fs-m); }
.relogio { font-size: var(--fs-xl); font-weight: 800; letter-spacing: .02em; }
.pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--vivo); display: inline-block; box-shadow: 0 0 0 0 color-mix(in srgb, var(--vivo) 60%, transparent); animation: pulso 1.6s infinite; flex: none; margin-top: 6px; }
@keyframes pulso { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.selo-ao-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-p); font-weight: 700; color: var(--vivo); text-transform: uppercase; letter-spacing: .05em; }
.selo-ao-vivo .pulso { margin: 0; }
.nota-bu { color: var(--txt3); font-size: var(--fs-p); margin: 0; }
/* etiquetas do card do percentual (seções, vantagem, comparecimento/abstenção, brancos, nulos) */
.tag { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: .3em; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-p); font-weight: 600; line-height: 1.35; border: 1px solid transparent; }
.tag.t-sec { background: color-mix(in srgb, var(--acento) 12%, var(--card)); color: var(--acento); border-color: color-mix(in srgb, var(--acento) 25%, transparent); }
.tag.t-comp { background: var(--bom-fundo); color: var(--bom); border-color: color-mix(in srgb, var(--bom) 25%, transparent); }
.tag.t-branco, .tag.t-falta { background: var(--trilho); color: var(--txt2); border-color: var(--borda); }
.tag.t-nulo { background: var(--erro-fundo); color: var(--erro); border-color: color-mix(in srgb, var(--erro) 25%, transparent); }
/* visão por estado: contorno do estado à esquerda do percentual */
.mapa-uf { width: 54px; height: 54px; fill: var(--acento); opacity: .85; }
/* Presidente: municípios na cor de quem venceu (classes .mm do mapa do Brasil); maior para as cores aparecerem */
.mapa-uf.com-mun { width: 96px; height: 96px; opacity: 1; }
.mapa-uf path { vector-effect: non-scaling-stroke; }
.mapa-uf.com-mun .uf-borda { fill: none; stroke: color-mix(in srgb, var(--txt) 60%, transparent); stroke-width: 1px; }
@media (min-width: 600px) { .mapa-uf.com-mun { width: 120px; height: 120px; } }
.status-txt > * + * { margin-top: 10px; }
/* celular: mapa à esquerda das duas linhas curtas (percentual e selo); a frase desce para a largura toda */
@media (max-width: 599px) {
  .status-uf { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px;
    grid-template-areas: "mapa grande" "mapa selo" "rot rot" "barra barra" "info info"; align-items: center; }
  .status-uf .status-txt, .status-uf .linha1 { display: contents; }
  .status-uf .mapa-uf { grid-area: mapa; }
  .status-uf .grande { grid-area: grande; }
  .status-uf .selo, .status-uf .selo-ao-vivo { grid-area: selo; justify-self: start; }
  .status-uf .rot { grid-area: rot; margin-top: 6px; }
  .status-uf .barra { grid-area: barra; margin-top: 6px; }
  .status-uf .info { grid-area: info; margin-top: 6px; }
}
@media (min-width: 600px) { .status-uf { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; } }

/* ---------- estados (Presidente no Brasil): mapa e quadros ---------- */
.mapa-br-box:empty { display: none; }
/* dica de pinça: canto inferior esquerdo do mapa, só em tela de toque estreita (celular); any-pointer e não
   hover/pointer: celular com caneta (Galaxy Ultra com S Pen) se anuncia como hover + pointer fine */
.mapa-wrap { position: relative; }
.dica-pinca { display: none; position: absolute; left: 0; bottom: 12px; width: 36px; height: 36px; padding: 5px; box-sizing: border-box;
  border-radius: 50%; background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--txt); opacity: .7; pointer-events: none; }
.dica-pinca svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@media (any-pointer: coarse) and (max-width: 899px) { .dica-pinca { display: block; } }
.mapa-br-box:empty + .dica-pinca { display: none; }
.mapa-br { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 12px; }
.mapa-br g[data-uf] { fill: var(--cor, var(--neutro)); stroke: var(--card); stroke-width: 1px; vector-effect: non-scaling-stroke; cursor: pointer; }
.mapa-br path { vector-effect: non-scaling-stroke; }
.mapa-br g[data-uf]:hover { opacity: .7; }
.mapa-br g[data-uf]:focus { outline: none; }
.mapa-br g[data-uf]:focus-visible { stroke: var(--txt); stroke-width: 3px; }
/* por município: cor de quem venceu, mais forte quanto maior a vitória; o estado vira só a borda (e o toque) */
.mapa-br.com-mun { max-width: 440px; }
.mapa-br .munis { pointer-events: none; }
.mm { fill: var(--tom); stroke: var(--tom); stroke-width: .4px; stroke-linejoin: round; }
.mm.sem { --tom: var(--trilho); }
.mm.f0 { --tom: color-mix(in srgb, var(--cor) 38%, var(--card)); }
.mm.f1 { --tom: color-mix(in srgb, var(--cor) 54%, var(--card)); }
.mm.f2 { --tom: color-mix(in srgb, var(--cor) 70%, var(--card)); }
.mm.f3 { --tom: color-mix(in srgb, var(--cor) 85%, var(--card)); }
.mm.f4 { --tom: var(--cor); }
.mapa-br.com-mun g[data-uf] { fill: transparent; stroke: color-mix(in srgb, var(--txt) 60%, transparent); stroke-width: .9px; }
.mapa-br.com-mun g[data-uf]:hover { opacity: 1; fill: color-mix(in srgb, var(--txt) 28%, transparent); }
.mapa-br.com-mun g[data-uf]:focus-visible { stroke: var(--txt); stroke-width: 3px; }
/* siglas: sobre a cor do estado, branco com contorno escuro; as do mar na cor do texto */
.mapa-br .uf-siglas { pointer-events: none; }
.uf-sig { font-size: 1.15px; font-weight: 700; fill: #fff; text-anchor: middle; dominant-baseline: central;
  stroke: rgba(0, 0, 0, .35); stroke-width: .12px; paint-order: stroke; }
.uf-sig.fora { fill: var(--txt); stroke: none; text-anchor: start; }
.uf-sig.peq { font-size: .8px; }
.uf-traco { stroke: var(--txt3); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.ufs-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.uf-tile { border: 1px solid var(--borda); border-radius: var(--raio-p); padding: 6px 6px 7px; text-align: center; background: var(--card); cursor: pointer; min-height: 44px; }
.uf-tile:hover { border-color: var(--acento); }
.uf-tile b { display: block; font-size: var(--fs-s); }
.uf-tile b.ext { font-size: var(--fs-p); }
.uf-tile span { font-size: var(--fs-p); color: var(--txt2); }
.uf-tile .barra { height: 4px; margin-top: 4px; }
/* sem líder conhecido a barra fica neutra (antes caía no azul, a mesma cor do 1º candidato) */
.uf-tile .barra > i { background: var(--cor, var(--neutro)); }
.uf-tile[aria-current="true"] { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento) inset; }

/* ---------- 2º turno: governadores ---------- */
.gov-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gov-tile { display: flex; flex-direction: column; gap: 3px; text-align: left; border: 1px solid var(--borda); border-radius: var(--raio-p); padding: 8px 10px; background: var(--card); cursor: pointer; min-height: 44px; }
.gov-tile:hover { border-color: var(--acento); }
.gov-tile[aria-current="true"] { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento) inset; }
.gov-tile > b { font-size: var(--fs-s); }
.gov-c { display: flex; justify-content: space-between; gap: 6px; font-size: var(--fs-s); color: var(--txt2); }
.gov-c.lid { color: var(--txt); font-weight: 700; }
.gov-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gov-barra { height: 6px; border-radius: 999px; background: var(--neutro); overflow: hidden; margin: 2px 0; }
.gov-barra > i { display: block; height: 100%; background: var(--acento); border-right: 2px solid var(--card); }
.gov-tile small { color: var(--txt3); font-size: var(--fs-p); }

/* ---------- candidatos ---------- */
.cands { list-style: none; margin: 0; padding: 0; }
.cand { display: grid; grid-template-columns: 52px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--borda); cursor: pointer; }
.cand:first-child { border-top: 0; }
.cand:hover { background: color-mix(in srgb, var(--acento) 6%, transparent); }
.foto { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--trilho); display: grid; place-items: center; font-weight: 700; color: var(--txt2); font-size: var(--fs-t); grid-row: span 2; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--borda); overflow: hidden; }
.cand .nome { font-weight: 700; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.cand .det { color: var(--txt3); font-size: var(--fs-s); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand .pct { font-weight: 800; font-size: var(--fs-l); text-align: right; }
.cand .vts { color: var(--txt3); font-size: var(--fs-p); text-align: right; }
.cand .barra { grid-column: 2 / -1; height: 6px; }
.cand .barra > i { background: var(--cor, var(--neutro)); }
.cand.top .foto { box-shadow: 0 0 0 2px var(--cor); }
/* selo ao lado do nome; no card do percentual tem a mesma medida das etiquetas */
.selo { display: inline-block; font-size: var(--fs-p); font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; background: var(--bom-fundo); color: var(--bom); }
.selo.selo-st { margin-left: 0; padding: 3px 10px; line-height: 1.35; vertical-align: baseline; border: 1px solid color-mix(in srgb, var(--bom) 25%, transparent); }
.selo.t2 { background: color-mix(in srgb, var(--acento) 15%, transparent); color: var(--acento); }
.selo.sj { background: var(--aviso-fundo); color: var(--aviso); }
/* proporcionais: só eleitos e vagas por partido; compartilhar */
.chip { min-height: 40px; border: 1px solid var(--borda-campo); background: var(--card); color: var(--txt2); border-radius: 999px; padding: 6px 14px; font-size: var(--fs-s); font-weight: 600; cursor: pointer; margin: 0 6px 10px 0; }
.chip[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: var(--branco); }
.eleitos-partido { color: var(--txt2); font-size: var(--fs-s); margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.eleitos-partido b { width: 100%; font-weight: 600; color: var(--txt3); font-size: var(--fs-p); }
.nota-2022 { margin: 0 0 8px; }

/* ---------- botões secundários (um estilo só) ---------- */
.btn-mais, .btn-sec { min-height: 44px; border: 1px solid var(--borda-campo); background: var(--card); border-radius: var(--raio-p); padding: 8px 16px; font-weight: 700; cursor: pointer; color: var(--acento); }
.btn-mais { width: 100%; margin-top: 8px; }
.btn-mais:hover, .btn-sec:hover, .chip:hover { background: color-mix(in srgb, var(--acento) 8%, var(--card)); }
.btn-voltar { padding: 8px 14px 8px 10px; font-size: var(--fs-s); flex: none; }
#cardComp .card-tit h2 { flex: 1; min-width: 0; }
#cardComp .card-tit .btn-voltar { order: 2; }
#cardComp .card-tit .sub, #cardCands .card-tit .sub { order: 3; width: 100%; }
#cardCands .card-tit h2 { flex: 1; min-width: 0; }
#cardCands .card-tit .btn-voltar { order: 2; }
/* Voltar no card dos candidatos: só no celular/tablet (a partir de 900 px os cards ficam lado a lado e basta o do comparativo) */
@media (min-width: 900px) { .btn-voltar.so-celular { display: none; } }
.lnk { border: 0; background: none; padding: 0; color: var(--acento); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: inherit; }

/* ---------- comparativo ---------- */
.trilha { display: flex; flex-wrap: wrap; gap: 0 4px; align-items: center; margin-bottom: 8px; font-size: var(--fs-m); }
.trilha button { border: 0; background: none; color: var(--acento); font-weight: 600; padding: 10px 4px; min-height: 44px; cursor: pointer; }
.trilha button:hover { text-decoration: underline; }
.trilha span.at { font-weight: 700; padding: 10px 4px; }
.trilha i { color: var(--txt3); font-style: normal; }
/* legenda na mesma grade da tabela: 1ª coluna 30% + uma coluna por candidato */
.leg { display: grid; grid-template-columns: 30% repeat(var(--n, 4), 1fr); gap: 0; margin-bottom: 8px; }
.leg div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: var(--fs-p); font-weight: 700; min-width: 0; padding: 0 2px; }
.leg .foto { width: 44px; height: 44px; box-shadow: 0 0 0 2px var(--cor); }
/* nome em até 2 linhas, quebrando por sílaba (hífen) e não no meio da palavra ("ADAMANTIN / A") */
.leg span, .lnk-linha, .nm-linha { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.tab-comp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--fs-m); }
.tab-comp th { font-size: var(--fs-p); color: var(--txt3); font-weight: 600; text-align: right; padding: 0; border-bottom: 1px solid var(--borda); white-space: nowrap; }
.tab-comp th:first-child { text-align: left; width: 30%; }
.th-btn { width: 100%; min-height: 44px; border: 0; background: none; padding: 6px 4px; font: inherit; color: inherit; text-align: inherit; cursor: pointer; }
.th-btn:hover { color: var(--txt); }
.tab-comp th .ponto { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--cor); margin: 0 0 3px auto; }
.tab-comp th .nm { display: block; overflow: hidden; text-overflow: ellipsis; }
.tab-comp td { padding: 7px 4px; border-bottom: 1px solid var(--borda); text-align: right; vertical-align: middle; }
@media (max-width: 420px) { .th-btn { padding: 6px 2px; } .tab-comp td { padding: 7px 2px; font-size: var(--fs-s); } }
.tab-comp td:first-child { text-align: left; font-weight: 600; overflow: hidden; }
.lnk-linha { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer; }
.tab-comp td:first-child small { display: block; font-weight: 400; color: var(--txt3); font-size: var(--fs-p); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
small.falhou { color: var(--erro) !important; }
.tab-comp tr.clic { cursor: pointer; }
.tab-comp tr.clic:hover td, .tab-loc tr.clic:hover td { background: color-mix(in srgb, var(--acento) 5%, transparent); }
.tab-comp td.lider { font-weight: 800; }
.tab-comp td .mini { height: 3px; background: var(--trilho); border-radius: 2px; margin-top: 3px; overflow: hidden; }
.tab-comp td .mini i { display: block; height: 100%; background: var(--cor); }
.tab-comp td.lider .mini { height: 5px; }
/* 2º turno: % do candidato no 1º turno, no mesmo local */
.tab-comp td small.var { display: block; font-size: var(--fs-p); font-weight: 500; color: var(--txt3); line-height: 1.2; white-space: nowrap; }
/* local de votação nas linhas de seção */
.tab-comp tr.tr-loc td { text-align: left; padding: 10px 4px 0; border-bottom: 0; white-space: normal; font-weight: 400; }
.tab-comp tr.tr-loc small, .tab-loc small.loc, .tab-loc small.loc-b { display: block; font-size: var(--fs-p); line-height: 1.3; white-space: normal; }
.tab-comp tr.tr-loc small.loc, .tab-loc small.loc { color: var(--txt); font-weight: 700; }
.tab-comp tr.tr-loc small.loc-b, .tab-loc small.loc-b { color: var(--txt3); font-weight: 400; }
.tab-comp tr.tr-sec td { padding-top: 4px; }
.tab-loc small.loc { margin-top: 2px; }
.local-card { background: color-mix(in srgb, var(--acento) 7%, transparent); border-radius: var(--raio-p); padding: 12px 14px; margin-bottom: 8px; }
.local-card p { margin: 2px 0; color: var(--txt2); font-size: var(--fs-m); }
.local-card .local-nm { color: var(--txt); font-weight: 800; font-size: var(--fs-t); margin-bottom: 4px; }
.local-card .local-num { color: var(--txt3); font-size: var(--fs-s); margin-top: 6px; }
.carregando { color: var(--txt3); padding: 16px 0; text-align: center; font-size: var(--fs-m); }
.carregando .barra { max-width: 240px; margin: 8px auto 0; height: 6px; }
.vazio { color: var(--txt3); padding: 14px 4px; text-align: center; font-size: var(--fs-m); }
.nota { color: var(--txt3); font-size: var(--fs-s); margin: 8px 0 0; }

/* ---------- linha do tempo da apuração ---------- */
.lt-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-s); color: var(--txt2); margin-bottom: 6px; }
.lt-leg i { display: inline-block; width: 14px; height: 2px; background: var(--cor); vertical-align: middle; margin-right: 6px; border-radius: 1px; }
.lt-box { position: relative; }
.lt-svg { display: block; max-width: 100%; height: auto; touch-action: pan-y; }
.lt-grade { stroke: var(--borda); stroke-width: 1; }
.lt-eixo { fill: var(--txt3); font-size: 11px; }
.lt-linha { fill: none; stroke: var(--cor); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lt-ponto { fill: var(--cor); stroke: var(--card); stroke-width: 2; }
.lt-rot { fill: var(--txt2); font-size: 12px; }
.lt-rot .lt-pct { fill: var(--txt); font-weight: 700; }
.lt-mira { stroke: var(--txt3); stroke-width: 1; }
.lt-dica { position: absolute; top: 4px; background: var(--card); border: 1px solid var(--borda-campo); border-radius: var(--raio-p); padding: 6px 10px; font-size: var(--fs-p); box-shadow: var(--sombra); pointer-events: none; white-space: nowrap; }
.lt-dica-cab { color: var(--txt3); margin-bottom: 2px; }
.lt-dica div:not(.lt-dica-cab) { display: flex; align-items: center; gap: 4px; color: var(--txt2); }
.lt-dica div:not(.lt-dica-cab)::before { content: ""; width: 12px; height: 2px; background: var(--cor); margin-right: 2px; }
.lt-dica b { color: var(--txt); }
.lt-tab { margin-top: 8px; font-size: var(--fs-s); }
.lt-tab > summary { cursor: pointer; color: var(--acento); font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* ---------- folha (detalhe do candidato) ---------- */
/* a folha inteira rola (antes a ficha rolava dentro da folha, que também rolava) */
.folha-fundo { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
.folha {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--card); border-radius: var(--raio-g) var(--raio-g) 0 0;
  padding: 6px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.25);
  animation: sobe .22s ease-out;
}
@keyframes sobe { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) {
  .folha { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 640px; max-height: 86vh; border-radius: var(--raio-g); animation: none; }
}
.folha-alca { width: 40px; height: 5px; border-radius: 3px; background: var(--borda); margin: 4px auto 8px; }
.folha-topo { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.folha-topo img, .folha-topo .foto { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; box-shadow: 0 0 0 2px var(--cor, var(--borda)); }
.folha-id { flex: 1; min-width: 0; }
.folha-id h3 { margin: 0; font-size: var(--fs-l); }
.folha-id p { margin: 2px 0 0; color: var(--txt3); font-size: var(--fs-s); }
.btn-x { border: 0; background: var(--trilho); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: var(--fs-t); flex: none; }
.folha-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.folha-nav .trilha { margin-bottom: 0; flex: 1; min-width: 0; }
.folha-corpo { min-height: 120px; }
.tab-loc { width: 100%; border-collapse: collapse; font-size: var(--fs-m); }
.tab-loc th { font-size: var(--fs-p); color: var(--txt3); font-weight: 600; text-align: right; padding: 0; border-bottom: 1px solid var(--borda); position: sticky; top: -6px; background: var(--card); white-space: nowrap; }
.tab-loc th:first-child { text-align: left; }
.tab-loc td { padding: 9px 4px; border-bottom: 1px solid var(--borda); text-align: right; }
.tab-loc td:first-child { text-align: left; font-weight: 600; }
.tab-loc td:first-child .barra { height: 4px; margin-top: 4px; }
.tab-loc td:first-child .barra i { background: var(--cor, var(--acento)); }
.tab-loc td small { color: var(--txt3); }
.tab-loc tr.clic { cursor: pointer; }
.tab-loc td.seta { color: var(--txt3); font-size: var(--fs-t); width: 20px; padding-left: 0; }
.tab-loc .pctc { font-weight: 800; }
.lt-tab .tab-loc th { position: static; padding: 4px; }

/* ---------- abas recolhidas: ficha do candidato e "Informações do/de ..." ---------- */
.ficha { border: 1px solid var(--borda); border-radius: var(--raio-p); margin-bottom: 8px; background: var(--card); }
.ficha > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-weight: 700; color: var(--acento);
  background: color-mix(in srgb, var(--acento) 6%, var(--card)); border-radius: var(--raio-p); }
.ficha[open] > summary { border-radius: var(--raio-p) var(--raio-p) 0 0; }
.ficha > summary:hover { background: color-mix(in srgb, var(--acento) 10%, var(--card)); }
.ficha > summary::-webkit-details-marker, .ficha-bens > summary::-webkit-details-marker { display: none; }
/* seta das abas: mesma cor em todas, e o leitor de tela não a lê (texto alternativo vazio) */
.ficha > summary::after, .ficha-bens > summary::after { content: "▾"; content: "▾" / ""; color: var(--acento); font-size: var(--fs-t); transition: transform .2s; }
.ficha[open] > summary::after, .ficha-bens[open] > summary::after { transform: rotate(180deg); }
.ficha-corpo { padding: 0 12px 12px; border-top: 1px solid var(--borda); }
.ficha-nm { font-weight: 800; font-size: var(--fs-t); margin: 10px 0 2px; }
.ficha-l { color: var(--txt2); font-size: var(--fs-s); margin: 0 0 8px; }
.ficha-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0 0 10px; font-size: var(--fs-s); }
.ficha-dl div { min-width: 0; }
.ficha-dl dt { color: var(--txt3); font-size: var(--fs-p); }
.ficha-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ficha-dl dd.dica { font-weight: 400; color: var(--txt3); font-size: var(--fs-p); }
@media (max-width: 420px) { .ficha-dl { grid-template-columns: 1fr; } }
.ficha-bens { margin: 0 0 10px; font-size: var(--fs-s); }
.ficha-bens > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: 4px; color: var(--txt2); list-style: none; }
.ficha-bens > summary::after { margin-left: auto; padding-left: 8px; }
.ficha-bens ul, .ficha-el { list-style: none; margin: 0; padding: 0; }
.ficha-bens li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--borda); }
.ficha-bens li span:first-child { min-width: 0; overflow-wrap: anywhere; color: var(--txt2); }
.ficha-bens li b { color: var(--txt); font-weight: 600; }
.ficha-bens .v { font-weight: 700; white-space: nowrap; }
.ficha-sub { font-weight: 700; font-size: var(--fs-s); margin: 4px 0 4px; }
.ficha-el li { padding: 6px 0; border-top: 1px solid var(--borda); font-size: var(--fs-s); color: var(--txt2); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.ficha-el li b { color: var(--txt); }
.ficha-el .res { margin-left: auto; font-weight: 700; color: var(--txt3); }
.ficha-el .res.ok { color: var(--bom); }
/* "Informações do/de ...": mesma borda, raio e recuo (14 px) dos cards, logo abaixo do card do percentual */
.info-local { margin-bottom: 12px; box-shadow: var(--sombra); border-radius: var(--raio); }
.info-local > summary { min-height: 48px; padding: 0 14px; border-radius: var(--raio); }
.info-local[open] > summary { border-radius: var(--raio) var(--raio) 0 0; }
.info-local .ficha-corpo { padding: 10px 14px 14px; }
@media (min-width: 900px) { .info-local .ficha-dl { grid-template-columns: repeat(3, 1fr); } }
.info-bloco + .info-bloco { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--borda); }
.info-bloco h4 { margin: 0 0 8px; font-size: var(--fs-p); font-weight: 700; color: var(--acento); text-transform: uppercase; letter-spacing: .05em; }
.info-local .aviso-info { margin-bottom: 10px; }

/* ---------- mapa de votação (folha do candidato) ---------- */
.mv-box { position: relative; margin-top: 10px; }
.mv-svg { display: block; width: 100%; height: auto; max-height: 340px; }
.mv-area { stroke: var(--card); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.mv-area path { vector-effect: non-scaling-stroke; }
.mv-area.clic { cursor: pointer; }
.mv-area.clic:hover { opacity: .85; }
.mv-bolha { stroke: var(--card); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.mv-bolha.clic { cursor: pointer; }
.mv-contorno { fill: var(--trilho); stroke: var(--borda-campo); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.mv-ponto { fill: var(--cor); fill-opacity: .55; }
.mv-dica { position: absolute; z-index: 2; background: var(--card); border: 1px solid var(--borda-campo); border-radius: var(--raio-p); padding: 4px 8px; font-size: var(--fs-p); color: var(--txt); box-shadow: var(--sombra); pointer-events: none; white-space: nowrap; }
.mv-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: var(--fs-p); color: var(--txt3); }
.mv-leg i { display: inline-block; width: 16px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.mv-nota { margin-top: 4px; }
/* chave "% sobre o lugar" × "% sobre o todo" acima do mapa */
.mv-modo { display: inline-flex; max-width: 100%; margin-bottom: 6px; padding: 2px; border: 1px solid var(--borda-campo); border-radius: 999px; background: var(--card); }
.mv-modo button { min-height: 36px; border: 0; background: transparent; color: var(--txt2); border-radius: 999px; padding: 4px 12px; font-size: var(--fs-p); font-weight: 600; cursor: pointer; }
.mv-modo button[aria-pressed="true"] { background: var(--acento); color: var(--branco); }

/* chamada "Desbloquear dados completos" (painel do local e ficha do candidato) */
.desbloq { margin: 10px 0 4px; padding: 12px 14px; border-radius: var(--raio-p); border: 1px dashed color-mix(in srgb, var(--acento) 45%, var(--borda));
  background: color-mix(in srgb, var(--acento) 6%, var(--card)); }
.info-bloco + .desbloq { margin-top: 12px; }
.desbloq-tit { margin: 0 0 4px; font-weight: 800; color: var(--acento); display: flex; align-items: center; gap: 6px; }
.desbloq-txt { margin: 0 0 10px; color: var(--txt2); font-size: var(--fs-s); }
.desbloq-btn { display: inline-flex; align-items: center; text-decoration: none; }

.rodape { color: var(--txt3); font-size: var(--fs-p); text-align: center; padding: 8px 4px 0; }
.rodape code { font-size: var(--fs-p); }
body.travado { overflow: hidden; }

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

/* ---------- página de contato ("Desbloquear dados completos") ---------- */
.marca-lnk { color: inherit; text-decoration: none; }
.pag-contato { max-width: 640px; display: block; }
.voltar-topo { margin: 0 0 12px; }
a.btn-voltar { display: inline-flex; align-items: center; gap: .3em; text-decoration: none; }
.contato-tit { font-size: var(--fs-l); margin: 0 0 6px; }
.contato-txt { color: var(--txt2); margin: 0 0 10px; font-size: var(--fs-m); }
.campo-f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.campo-f span { font-size: var(--fs-s); font-weight: 600; color: var(--txt2); }
.campo-f input, .campo-f textarea { width: 100%; background: var(--card); border: 1px solid var(--borda-campo); border-radius: var(--raio-p); padding: 10px 12px; min-height: 44px; font: inherit; color: inherit; }
.campo-f textarea { resize: vertical; }
.campo-f input:focus-visible, .campo-f textarea:focus-visible, .consent input:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-s); color: var(--txt2); margin: 4px 0 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--acento); }
.contato-erro { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--raio-p); background: var(--erro-fundo); color: var(--erro); font-weight: 600; font-size: var(--fs-s); }
.btn-envia { width: 100%; min-height: 48px; border: 0; border-radius: var(--raio-p); background: var(--acento); color: var(--branco); font-weight: 700; font-size: var(--fs-t); cursor: pointer; }
.btn-envia:disabled { opacity: .6; cursor: wait; }
@media (prefers-color-scheme: dark) { .btn-envia { color: #0b1a2e; } }
.contato-ok { padding: 8px 0; }
.contato-ok-tit { font-weight: 800; font-size: var(--fs-t); color: var(--bom); margin: 0 0 4px; }

/* ---------- página de login ---------- */
.pag-login { max-width: 420px; display: block; }
.login-sub { color: var(--txt2); margin: 0 0 14px; font-size: var(--fs-m); }
.login-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: var(--fs-s); }
.login-links a { color: var(--acento); font-weight: 600; }
.login-aviso { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--raio-p); background: var(--aviso-fundo); color: var(--aviso); font-weight: 600; font-size: var(--fs-s); }
.login-aviso a { color: inherit; }

/* ---------- lista dos filtros no celular (no lugar do seletor do sistema) ---------- */
.sel-fundo { z-index: 50; }
.sel-folha { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 80vh; max-height: 80dvh; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--raio-g) var(--raio-g) 0 0; padding: 6px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0,0,0,.25); animation: sobe .22s ease-out; }
.sel-tit { margin: 0 0 8px; font-size: var(--fs-t); }
.sel-folha .busca { margin-bottom: 8px; }
.sel-lista { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.sel-lista li { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 6px; border-top: 1px solid var(--borda); cursor: pointer; }
.sel-lista li:first-child { border-top: 0; }
.sel-lista li[aria-selected="true"] { color: var(--acento); font-weight: 700; }
.sel-lista li[aria-selected="true"]::after { content: "✓"; content: "✓" / ""; font-weight: 800; }
.sel-lista li:focus-visible { outline: 2px solid var(--acento); outline-offset: -2px; }
.sel-concluir { margin-top: 10px; flex: none; }

/* ---------- emendas parlamentares (painel do local) e atuação parlamentar (ficha) ---------- */
.em-total { margin: 0 0 6px; font-size: var(--fs-m); color: var(--txt2); }
.em-total b { color: var(--txt); font-size: var(--fs-t); }
.em-anos, .em-lista, .parl-gastos { list-style: none; margin: 0 0 8px; padding: 0; font-size: var(--fs-s); }
.em-anos li { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 2px 0; }
.em-barra { height: 8px; background: var(--trilho); border-radius: 999px; overflow: hidden; }
.em-barra i { display: block; height: 100%; background: var(--acento); border-radius: 999px; }
.em-lista li, .parl-gastos li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--borda); }
.em-lista li span:first-child, .parl-gastos li span:first-child { min-width: 0; overflow-wrap: anywhere; color: var(--txt2); }
.em-lista .v, .em-anos .v, .parl-gastos .v { font-weight: 700; white-space: nowrap; }
.parl-btns { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.btn-parl { text-align: left; }
.btn-parl[aria-expanded="true"] { background: color-mix(in srgb, var(--acento) 8%, var(--card)); }
.parl { border: 1px solid var(--borda); border-radius: var(--raio-p); padding: 10px 12px; }
.parl-topo { display: flex; gap: 10px; align-items: center; }
.parl-foto { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; background: var(--trilho); }
.parl .ficha-nm { margin-top: 0; }

/* "Compartilhar" na folha do candidato, abaixo do nome */
.chip.chip-folha { margin: 6px 0 0; min-height: 32px; padding: 4px 12px; font-size: var(--fs-p); }

/* "Estratégia por IA" na folha: a chamada ocupa o corpo da aba */
#iaCorpo .desbloq { margin-top: 12px; }

/* ---------- histórico das páginas /eleicoes/resultado/... (etl/paginas.py): aba recolhida no fim do app ---------- */
.hist-seo h2 { font-size: var(--fs-t); margin: 14px 0 4px; }
.hist-seo h3 { font-size: var(--fs-m); margin: 12px 0 2px; }
.hist-seo a { color: var(--acento); }
.hist-seo .intro { color: var(--txt2); font-size: var(--fs-m); margin: 0 0 8px; }
.hist-sec + .hist-sec { border-top: 1px solid var(--borda); margin-top: 12px; }
.migalhas { font-size: var(--fs-s); color: var(--txt3); margin-bottom: 6px; }
.migalhas a { color: var(--txt2); }
.tab-res-box { overflow-x: auto; margin-top: 4px; }
.tab-res { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.tab-res th, .tab-res td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--borda); vertical-align: top; }
.tab-res th { color: var(--txt3); font-weight: 600; }
.tab-res .n { text-align: right; white-space: nowrap; }
.lista-mun { columns: 3 160px; column-gap: 16px; padding: 0; margin: 6px 0 0; list-style: none; font-size: var(--fs-s); }
.lista-mun li { padding: 2px 0; break-inside: avoid; }
.rodape a { color: inherit; }
/* título da página inicial: h1 com a aparência da marca */
.marca h1 { font: inherit; margin: 0; }
