@import url('fonts.css');

:root {
  --bg: #f4f6f8;
  --bg-2: #ffffff;
  --card: rgba(255,255,255,.82);
  --card-solid: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: rgba(15,23,42,.08);
  --brand: #0f766e;
  --brand-2: #14b8a6;
  --brand-ink: #ffffff;
  --brand-soft: rgba(20,184,166,.12);
  --accent: #f97316;
  --accent-soft: rgba(249,115,22,.14);
  --poloA: #6d28d9;
  --poloB: #d97706;
  --ok: #16a34a;
  --warn: #d97706;
  --warn-soft: rgba(217,119,6,.14);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -12px rgba(15,23,42,.14);
  --shadow-lg: 0 24px 60px -20px rgba(15,23,42,.25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#0b1220; --bg-2:#0f172a; --card:rgba(17,26,46,.78); --card-solid:#111a2e; --ink:#e6edf7; --ink-2:#c3cfe0; --muted:#8b9bb4; --line:rgba(230,237,247,.09); --brand:#2dd4bf; --brand-2:#14b8a6; --brand-ink:#04211d; --brand-soft:rgba(45,212,191,.14); --poloA:#a78bfa; --poloB:#fbbf24; --shadow:0 1px 2px rgba(0,0,0,.5), 0 12px 32px -12px rgba(0,0,0,.6); --shadow-lg:0 24px 60px -20px rgba(0,0,0,.7); }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(900px 500px at 8% -10%, rgba(20,184,166,.16), transparent 60%),
  radial-gradient(700px 400px at 100% 0%, rgba(249,115,22,.10), transparent 60%),
  radial-gradient(600px 400px at 50% 110%, rgba(37,99,235,.08), transparent 60%); }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 40px 0 14px; font-weight: 700; }
h3 { font-size: 1.05rem; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { white-space: nowrap; flex: none; font-family: var(--font-display); font-weight: 800; text-decoration: none; color: var(--ink); font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px -6px var(--brand); }
.logo span.b { color: var(--brand); }
nav.menu { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
nav.menu::-webkit-scrollbar { display: none; }
@media (max-width: 720px) { nav.menu a { padding: 6px 9px; font-size: .82rem; } .logo { font-size: 1rem; } }
nav.menu a { white-space: nowrap; text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500; }
nav.menu a:hover { background: var(--brand-soft); color: var(--brand); }
main { padding: 36px 0 70px; }

/* buttons & tags */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -10px var(--brand); transition: transform .15s, box-shadow .15s, filter .15s; font-family: var(--font); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 28px -10px var(--brand); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: var(--card-solid); color: var(--brand); border: 1.5px solid color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: none; }
.btn.secondary:hover { background: var(--brand-soft); }
.btn.ghost { background: transparent; color: var(--ink-2); box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: .9rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
/* botão com rótulo longo (título de um documento, nome de PDF) não pode estourar a tela do celular */
.btn.longo { white-space: normal; text-align: left; max-width: 100%; overflow-wrap: anywhere; border-radius: var(--radius-sm); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; letter-spacing: .01em; }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.neutral { background: var(--line); color: var(--muted); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* faixa em que os deputados do partido se espalham num tema (quando a bancada não aponta um lado) */
.axis .bar .faixa { position: absolute; top: 50%; transform: translateY(-50%); height: 10px; border-radius: 999px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, transparent) 0 6px, transparent 6px 12px); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); }

/* cards */
.card { background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.notice { border-left: 4px solid var(--accent); background: var(--card); padding: 14px 18px; border-radius: var(--radius-sm); margin: 18px 0; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 30px 0 10px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.hero .cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.hero-visual { position: relative; }
.hero-visual .card { padding: 18px 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--brand); line-height: 1.1; }
.stat span { font-size: .78rem; color: var(--muted); }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 22px; top: 18px; font-family: var(--font-display); font-weight: 800; color: var(--brand); opacity: .55; font-size: 1.2rem; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
/* filho flexível precisa poder encolher (min-width:auto seguraria o texto do botão) e o botão precisa quebrar */
.feature > * { min-width: 0; }
.feature .btn { max-width: 100%; white-space: normal; }
.feature .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.3rem; }

/* questionário */
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 14px 0 26px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .35s cubic-bezier(.2,.8,.2,1); border-radius: 99px; }
.q-card { animation: rise .35s cubic-bezier(.2,.8,.2,1); padding: 30px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-eixo { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 700; }
.q-texto { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; margin: 10px 0 26px; line-height: 1.3; }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.likert button { border: 1.5px solid var(--line); background: var(--card-solid); color: var(--ink-2); border-radius: 14px; padding: 16px 8px; cursor: pointer; font-size: .85rem; font-weight: 600; line-height: 1.25; transition: all .15s; font-family: var(--font); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.likert button .ic { width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; display: grid; place-items: center; font-size: .8rem; }
.likert button:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.likert button.sel { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.likert button.sel .ic { opacity: 1; background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 600px) { .likert { grid-template-columns: 1fr; } .likert button { flex-direction: row; justify-content: flex-start; padding: 12px 14px; } }
.q-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; }
.pesos .item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pesos .item:last-of-type { border-bottom: 0; }
.pesos .opts { display: flex; gap: 6px; background: var(--line); padding: 4px; border-radius: 999px; }
.pesos .opts button { border: 0; background: transparent; color: var(--ink-2); border-radius: 999px; padding: 7px 16px; cursor: pointer; font-weight: 600; font-family: var(--font); transition: all .15s; }
.pesos .opts button.sel { background: var(--card-solid); color: var(--brand); box-shadow: var(--shadow); }

/* eixos (barras) */
.axis { margin: 14px 0; }
.axis .lbl { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--muted); gap: 8px; flex-wrap: wrap; }
.axis .lbl b { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.axis .bar { position: relative; height: 10px; border-radius: 99px; margin: 10px 0 4px; background: linear-gradient(90deg, var(--poloA), color-mix(in srgb, var(--poloA) 25%, var(--bg-2)) 40%, color-mix(in srgb, var(--poloB) 25%, var(--bg-2)) 60%, var(--poloB)); }
.axis .bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--muted); opacity: .35; }
.axis .dot { position: absolute; top: -7px; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--card-solid); transform: translateX(-50%); box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: left .5s cubic-bezier(.2,.8,.2,1); }
.axis .dot.voter { background: var(--ink); z-index: 2; }
.axis .dot.cand { background: var(--accent); z-index: 3; }
.axis .dot.cand.est { background: var(--card-solid); border: 3px dashed var(--accent); }
.axis .poles { display: flex; justify-content: space-between; gap: 16px; font-size: .74rem; color: var(--muted); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin: 10px 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 5px; }

/* radar */
.radar { width: 100%; max-width: 420px; margin: 0 auto; display: block; }
.radar .grid-line { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .spoke { stroke: var(--line); }
.radar .lbl { font-size: 11px; fill: var(--muted); font-family: var(--font); font-weight: 600; }
.radar .voter { fill: color-mix(in srgb, var(--ink) 18%, transparent); stroke: var(--ink); stroke-width: 2; }
.radar .cand { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent); stroke-width: 2; }

/* resultados */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 22px; background: var(--line); padding: 5px; border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: transparent; color: var(--ink-2); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 600; font-family: var(--font); transition: all .15s; white-space: nowrap; }
.tabs button.sel { background: var(--card-solid); color: var(--brand); box-shadow: var(--shadow); }
.rank { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cand { display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; animation: rise .4s both; }
.cand:nth-child(2) { animation-delay: .08s } .cand:nth-child(3) { animation-delay: .16s }
.cand.first { border-color: color-mix(in srgb, var(--brand) 40%, transparent); box-shadow: var(--shadow-lg); }
.cand .head { display: flex; gap: 14px; align-items: center; }
.cand .foto { width: 68px; height: 84px; object-fit: cover; border-radius: 12px; background: var(--line); flex: none; }
.cand .nome { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.cand ul.why { margin: 0; padding-left: 0; list-style: none; font-size: .9rem; display: grid; gap: 6px; }
.cand ul.why li { padding-left: 22px; position: relative; }
.cand ul.why li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.pos { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: .85rem; font-family: var(--font-display); margin-right: 6px; }
.cand.first .pos { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--card-solid); }
.ring b { position: relative; font-family: var(--font-display); font-size: 1.15rem; color: var(--brand); }
.ring small { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: .68rem; color: var(--muted); font-weight: 600; }
.ring.est { background: conic-gradient(var(--warn) calc(var(--p) * 1%), var(--line) 0); } .ring.est b { color: var(--warn); }
table.lista { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.lista th, table.lista td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.lista th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
table.lista tr:hover td { background: var(--brand-soft); }
.mini-foto { width: 32px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--line); vertical-align: middle; margin-right: 8px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; align-items: center; }
.filters input, .filters select { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); font-size: .95rem; font-family: var(--font); }
.filters input { min-width: 240px; }
.filters label { display: flex; align-items: center; gap: 6px; }
.scroll-x { overflow-x: auto; }
.score-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; min-width: 90px; }
.score-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }

/* perfil */
.perfil-head { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.perfil-head .foto { width: 128px; height: 160px; object-fit: cover; border-radius: 16px; background: var(--line); box-shadow: var(--shadow); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.evid { font-size: .9rem; margin: 6px 0 0; padding-left: 18px; }
.evid li { margin: 6px 0; }
.evid .v { font-weight: 700; padding: 1px 7px; border-radius: 6px; font-size: .78rem; }
.evid .v.sim { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.evid .v.nao { color: var(--poloB); background: color-mix(in srgb, var(--poloB) 14%, transparent); }
details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0; background: var(--card-solid); }
details summary { cursor: pointer; font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips span { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 5px 11px; font-size: .8rem; font-weight: 600; }
.sticky-side { position: sticky; top: 80px; }
.fade { animation: rise .4s both; }

/* lupa (explicação do tema) */
.lupa { border: 1.5px solid var(--line); background: var(--card-solid); color: var(--brand); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 700; cursor: pointer; font-family: var(--font); display: inline-flex; gap: 6px; align-items: center; transition: all .15s; }
.lupa:hover, .lupa.on { background: var(--brand-soft); border-color: var(--brand); }
.lupa-box { display: none; background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 14px 16px; margin: -8px 0 20px; font-size: .95rem; animation: rise .25s; }
.lupa-box.open { display: block; }
.lupa-box p { margin: 0 0 8px; }
.lupa-box .btn { margin-top: 10px; }

/* resumo do eleitor e compartilhamento */
.resumo { display: grid; gap: 10px; }
.resumo .linha { display: flex; gap: 10px; align-items: flex-start; }
.resumo .linha i { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; }
.share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share .btn { gap: 8px; }
.filtros-extra { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; padding: 12px 16px; }
.filtros-extra label { display: flex; align-items: center; gap: 7px; font-size: .9rem; }
.filtros-extra input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }

/* impressão / PDF */
@media print {
  body::before, header.top, footer, .tabs, .filters, .share, .no-print, .btn, .lupa { display: none !important; }
  body { background: #fff; color: #000; font-size: 12px; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; backdrop-filter: none; background: #fff; }
  .rank { grid-template-columns: repeat(3, 1fr); }
  .two { grid-template-columns: 1fr 1fr; }
  main { padding: 0; }
  h1 { font-size: 22px; } h2 { font-size: 16px; margin-top: 18px; }
  .print-only { display: block !important; }
  a { color: #000; text-decoration: none; }
}
.print-only { display: none; }

/* interruptores (on/off) */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: none; border: 1px solid var(--line); }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--card-solid); box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s; }
.switch input:checked + .track { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch .lbl-on { display: none; } .switch input:checked ~ .txt .lbl-on { display: inline; } .switch input:checked ~ .txt .lbl-off { display: none; }
.filtros-extra { display: grid; gap: 12px; }
.filtros-extra .cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.filtros-extra .grupo { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.radio-group { display: flex; gap: 6px; flex-wrap: wrap; background: var(--line); padding: 4px; border-radius: 999px; width: fit-content; max-width: 100%; }
.radio-group label { padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.radio-group input { position: absolute; opacity: 0; }
.radio-group label:has(input:checked) { background: var(--card-solid); color: var(--brand); box-shadow: var(--shadow); }

/* comparação */
.cmp-bar { position: sticky; bottom: 14px; z-index: 15; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; }
.cmp-add { border: 1.5px solid var(--line); background: var(--card-solid); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 600; cursor: pointer; font-family: var(--font); white-space: nowrap; }
.cmp-add.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.cmp-table { display: grid; gap: 0; overflow-x: auto; }
.cmp-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; min-width: 100%; }
.cmp-col { display: grid; gap: 12px; align-content: start; }
.cmp-col .foto { width: 100%; height: 190px; object-fit: cover; border-radius: 14px; background: var(--line); }
.cmp-row-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 10px 0 4px; }
.cmp-val { font-size: .92rem; }
.mini-axis { height: 8px; border-radius: 99px; position: relative; margin: 4px 0 2px; background: linear-gradient(90deg, var(--poloA), color-mix(in srgb, var(--poloA) 25%, var(--bg-2)) 40%, color-mix(in srgb, var(--poloB) 25%, var(--bg-2)) 60%, var(--poloB)); }
.mini-axis i { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--card-solid); transform: translateX(-50%); }
.mini-axis i.voter { background: var(--ink); } .mini-axis i.cand { background: var(--accent); } .mini-axis i.est { background: var(--card-solid); border: 2px dashed var(--accent); }

/* pesos (importância dos temas) */
.peso-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 16px 0; }
.peso-card { position: relative; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 14px 12px; background: var(--card-solid); transition: all .2s; overflow: hidden; }
.peso-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand-soft), transparent 70%); opacity: 0; transition: opacity .25s; }
.peso-card[data-p="2"]::before { opacity: .55; } .peso-card[data-p="3"]::before { opacity: 1; }
.peso-card[data-p="3"] { border-color: var(--brand); box-shadow: 0 10px 24px -12px var(--brand); transform: translateY(-2px); }
.peso-card[data-p="1"] { opacity: .78; }
.peso-card > * { position: relative; }
.peso-card .ic { font-size: 1.6rem; line-height: 1; }
.peso-card .nome { font-family: var(--font-display); font-weight: 700; font-size: .98rem; margin: 6px 0 10px; line-height: 1.25; min-height: 2.5em; }
.peso-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.peso-opts button { border: 1.5px solid var(--line); background: var(--card-solid); color: var(--muted); border-radius: 10px; padding: 8px 4px 6px; cursor: pointer; font-family: var(--font); font-size: .72rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all .15s; }
.peso-opts button:hover { border-color: var(--brand); color: var(--brand); }
.peso-opts button.sel { border-color: var(--brand); background: var(--brand); color: #fff; }
.barras { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.barras i { display: block; width: 5px; border-radius: 2px; background: currentColor; opacity: .35; }
.barras i:nth-child(1) { height: 6px; } .barras i:nth-child(2) { height: 11px; } .barras i:nth-child(3) { height: 16px; }
.barras[data-n="1"] i:nth-child(1), .barras[data-n="2"] i:nth-child(-n+2), .barras[data-n="3"] i { opacity: 1; }
.peso-dist { margin: 18px 0 6px; }
.peso-dist .track { display: flex; height: 26px; border-radius: 999px; overflow: hidden; background: var(--line); }
.peso-dist .track span { display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; transition: flex .3s; white-space: nowrap; overflow: hidden; }
.peso-dist .lg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: .78rem; color: var(--muted); }
.peso-dist .lg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.peso-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); font-weight: 600; }

/* quadro de compartilhamento (opcional) */
.share-box { border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand-soft) 60%, var(--card)); margin: 0 0 22px; display: grid; gap: 14px; }
.share-head { display: flex; gap: 12px; align-items: flex-start; }
.share-head .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--card-solid); font-size: 1.3rem; box-shadow: var(--shadow); }
.share-box .share { padding-left: 54px; }
@media (max-width: 560px) { .share-box .share { padding-left: 0; } }

/* quadro de compartilhamento: versão compacta */
.share-box { padding: 12px 16px; gap: 8px; margin-bottom: 18px; }
.share-box .share-head { align-items: center; gap: 10px; }
.share-box .share-head .ic { width: 30px; height: 30px; font-size: .95rem; border-radius: 9px; }
.share-box h3 { font-size: .95rem; }
.share-box .share-head .small { font-size: .78rem; line-height: 1.35; }
.share-box .share { padding-left: 40px; gap: 6px; }
.share-box .share .btn { padding: 6px 12px; font-size: .82rem; }
@media (max-width: 560px) { .share-box .share { padding-left: 0; } }

/* autoexplicativo: linha "na prática", termos com ?, tela de instruções */
.q-exemplo { font-size: .95rem; color: var(--ink-2); background: var(--line); border-radius: 10px; padding: 10px 14px; margin: -12px 0 18px; }
.termo { position: relative; border-bottom: 1px dotted var(--brand); cursor: help; }
.termo i { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .68rem; font-style: normal; font-weight: 800; margin-left: 4px; vertical-align: 2px; }
.termo-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: min(320px, 80vw); background: var(--card-solid); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .84rem; font-weight: 400; line-height: 1.45; box-shadow: var(--shadow-lg); cursor: default; animation: rise .15s; }
.intro { display: grid; gap: 14px; }
.intro-item { display: flex; gap: 14px; align-items: flex-start; }
.intro-item .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.15rem; font-weight: 800; }
.intro-item .muted { font-size: .92rem; }
.como-ler { border-left: 4px solid var(--brand); }
.como-ler summary { font-weight: 700; cursor: pointer; }
.como-ler ul { margin: 8px 0 0; padding-left: 18px; }
.como-ler li { margin: 6px 0; }
.uf-select { margin-top: 10px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card-solid); color: var(--ink); font-size: 1rem; font-family: var(--font); min-width: 240px; }
.uf-select:focus { border-color: var(--brand); outline: none; }
nav.menu a.ativo { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
/* menu: em telas estreitas, quebra em duas linhas em vez de esconder itens */
@media (max-width: 900px) { header.top .wrap { height: auto; min-height: 64px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; } nav.menu { flex-wrap: wrap; overflow: visible; justify-content: flex-start; width: 100%; gap: 2px 4px; } nav.menu a { padding: 6px 10px; font-size: .86rem; } }

/* relatório completo (só aparece na impressão) */
.relatorio { display: none; }
@media print {
  body.print-relatorio main > *:not(#relatorio) { display: none !important; }
  body.print-relatorio #relatorio { display: block !important; }
  .relatorio h1 { font-size: 22px; margin: 0 0 6px; }
  .relatorio h2 { font-size: 16px; margin: 18px 0 6px; border-bottom: 1px solid #ccc; padding-bottom: 3px; break-after: avoid; }
  .relatorio .rel-perfil { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: start; }
  .relatorio .radar { max-width: 220px; }
  .relatorio .rel-cand { border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px; margin: 6px 0; break-inside: avoid; }
  .relatorio .rel-head { margin-bottom: 4px; }
  .relatorio .peso-dist .track span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* identidade De Olho no Político */
.logo .mark { font-size: 1.05rem; }
footer .foot { display: grid; gap: 14px; grid-template-columns: 1.2fr 1fr; align-items: start; }
footer .foot > .small { grid-column: 1 / -1; }
footer .foot-brand { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
footer .foot-brand .mark { flex: none; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-size: 1rem; }
footer .foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; }
footer .foot-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
footer .foot-links a:hover { color: var(--brand); }
@media (max-width: 700px) { footer .foot { grid-template-columns: 1fr; } footer .foot-links { justify-content: flex-start; } }
.ax-ic { font-size: .95em; margin-right: 2px; }

/* abas de cargo fixas ao rolar */
.tabs-sticky { position: sticky; top: 70px; z-index: 12; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: color-mix(in srgb, var(--line) 70%, var(--bg)); box-shadow: var(--shadow); }
@media (max-width: 900px) { .tabs-sticky { top: 0; } }

/* filtros recolhidos */
details.filtros-extra > summary { list-style: none; cursor: pointer; }
details.filtros-extra > summary::-webkit-details-marker { display: none; }
details.filtros-extra > summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
details.filtros-extra[open] > summary::after { content: "▴"; }

/* página inicial: três passos + prévia animada */
.passos { display: grid; gap: 12px; }
.passo { display: flex; gap: 12px; align-items: flex-start; }
.passo .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; font-family: var(--font-display); }
.passo b { display: block; }
.passo .muted { font-size: .9rem; }
.previa { position: relative; }
.previa .radar polygon.voter { animation: pulse 3.2s ease-in-out infinite; transform-origin: 240px 180px; }
@keyframes pulse { 0%, 100% { transform: scale(.72); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
.previa .ring { position: absolute; right: 8px; top: 8px; }
.termo { white-space: nowrap; }

/* acessibilidade: tamanho de letra e alto contraste (preferência guardada no navegador) */
.a11y { display: inline-flex; gap: 4px; align-items: center; margin-left: 6px; }
.a11y button { border: 1.5px solid var(--line); background: var(--card-solid); color: var(--ink-2); border-radius: 8px; padding: 4px 8px; font-size: .8rem; font-weight: 700; cursor: pointer; font-family: var(--font); line-height: 1; }
.a11y button:hover { border-color: var(--brand); color: var(--brand); }
.a11y button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
html[data-fonte="grande"] { font-size: 112%; }
html[data-fonte="maior"] { font-size: 125%; }
html[data-contraste="alto"] { --ink: #000; --ink-2: #111; --muted: #333; --line: rgba(0,0,0,.25); --bg: #fff; --bg-2: #fff; --card: #fff; --card-solid: #fff; --brand: #045d55; --brand-soft: #d6efe9; --poloA: #4c1d95; --poloB: #9a3412; --shadow: none; --shadow-lg: none; }
html[data-contraste="alto"] body::before { display: none; }
html[data-contraste="alto"] .card, html[data-contraste="alto"] header.top { backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-contraste="alto"] .btn { background: var(--brand); box-shadow: none; }
html[data-contraste="alto"] main a:not(.btn):not(.cmp-add) { text-decoration: underline; }

/* menu compacto no celular: botão ☰ abre e fecha a lista */
.menu-btn { display: none; border: 1.5px solid var(--line); background: var(--card-solid); color: var(--ink); border-radius: 10px; padding: 7px 11px; font-weight: 700; cursor: pointer; font-family: var(--font); font-size: .9rem; }
@media (max-width: 700px) {
  header.top .wrap { height: 60px; min-height: 0; padding: 0 16px; flex-wrap: nowrap; }
  .menu-btn { display: inline-flex; gap: 6px; align-items: center; }
  nav.menu { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--card-solid); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 10px 16px 14px; flex-direction: column; gap: 4px; width: auto; }
  nav.menu.aberto { display: flex; }
  nav.menu a { padding: 10px 12px; font-size: 1rem; border-radius: 10px; }
  nav.menu .a11y { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line); width: 100%; justify-content: flex-start; }
  .logo { font-size: 1.05rem; }
}
