:root {
  --bg: #fcfcfb;
  --surface: #ffffff;
  --sunken: #f3f2ef;
  --ink: #141413;
  --ink-2: #4a4945;
  --muted: #7b7a74;
  --line: #e6e4df;
  --line-2: #d4d2cb;
  --accent: #141413;
  --focus: #2b6cd8;
  --radius: 10px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surface: #1c1c1a;
    --sunken: #232321;
    --ink: #f1f0ec;
    --ink-2: #c3c1ba;
    --muted: #8f8d86;
    --line: #2e2d2a;
    --line-2: #3d3c38;
    --accent: #f1f0ec;
    --focus: #7aa7f5;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--font); font-feature-settings: "tnum" 1, "cv11" 1;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
@media (max-width: 1500px) { .updated { display: none; } }
.brand { display: flex; align-items: center; flex: none; border-radius: 8px; }
.brand img { display: block; height: 58px; width: auto; }
.tabs { display: flex; gap: 2px; }
.tabs a { text-decoration: none; padding: 7px 9px; font-size: 14.5px; border-radius: 8px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.tabs a:hover { background: var(--sunken); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.updated { margin: 0 0 0 auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 760px) {
  .top-inner { height: auto; flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .updated { margin-left: auto; }
  .tabs { order: 3; width: 100%; overflow-x: auto; }
}

main.wrap { padding-top: 48px; padding-bottom: 64px; min-height: 70vh; }
html { scroll-padding-top: 96px; }
@media (max-width: 760px) { main.wrap { padding-top: 32px; } html { scroll-padding-top: 130px; } .brand img { height: 46px; } }
h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 6px; font-weight: 700; }
h2 { font-size: 19px; letter-spacing: -0.01em; margin: 0 0 4px; font-weight: 650; }
h3 { font-size: 15px; margin: 0 0 6px; font-weight: 650; }
.lede { color: var(--ink-2); margin: 0; max-width: 70ch; }
.sub { color: var(--muted); font-size: 13px; margin: 0; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.countdown { text-align: right; }
.countdown .big { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.countdown .lbl { color: var(--muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--sunken); color: var(--ink-2); border: 1px solid var(--line); }
.pill.hot { background: #fdecea; color: #a1231a; border-color: #f6c9c4; }
@media (prefers-color-scheme: dark) { .pill.hot { background: #3a1d1a; color: #f4a59c; border-color: #5a2a25; } }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; } .countdown { text-align: left; } }

/* ---------- cards & grid ---------- */
.grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters .sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ctl { font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; min-height: 32px; }
button.ctl { cursor: pointer; }
.ctl:hover { border-color: var(--muted); }
.lbl-inline { font-size: 13px; color: var(--muted); }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 6; width: 300px; max-height: 360px; overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 8px; }
.dd-panel input[type=search] { width: 100%; margin-bottom: 6px; }
.dd-panel label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.dd-panel label:hover { background: var(--sunken); }
.dd-panel label .c { margin-left: auto; color: var(--muted); font-size: 12px; }
.dd-actions { display: flex; gap: 6px; padding: 4px 2px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dd-actions button { font: inherit; font-size: 12px; border: 0; background: none; color: var(--focus); cursor: pointer; padding: 2px 4px; }
.reset { margin-left: auto; font: inherit; font-size: 13px; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; }

/* ---------- average bars ---------- */
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 112px 1fr 92px; align-items: center; gap: 10px; }
.bar-row .name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.bar-track { height: 16px; position: relative; }
.bar-fill { height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-val { text-align: right; font-size: 14px; }
.bar-val b { font-weight: 650; }
.bar-val small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.delta { font-size: 11px; margin-left: 4px; color: var(--muted); }

/* ---------- seats / pacts ---------- */
.parl { display: flex; height: 34px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface); position: relative; }
.parl > span { height: 100%; min-width: 2px; }
.parl-wrap { position: relative; padding-top: 22px; }
.maj { position: absolute; top: 0; bottom: -6px; width: 0; border-left: 2px dashed var(--ink); }
.maj span { position: absolute; top: 0; left: 6px; font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.pact-result { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pact-result .big { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.ok { color: #1f7a3a; } .ko { color: #a1231a; }
@media (prefers-color-scheme: dark) { .ok { color: #6fd08c; } .ko { color: #f4a59c; } }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.presets button { font: inherit; font-size: 12px; border: 1px dashed var(--line-2); background: none; color: var(--ink-2); border-radius: 99px; padding: 3px 9px; cursor: pointer; }

/* ---------- chart ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; }
.chart .dot { opacity: .45; }
@media (prefers-color-scheme: dark) { .chart .dot { opacity: .3; } }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .lbl { font-size: 11.5px; font-weight: 650; fill: var(--ink); }
.chart .xhair { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .elec { stroke: var(--ink-2); stroke-width: 1; }
.chart .elec-t { fill: var(--muted); font-size: 10.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; }
.legend button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--ink); }
.legend button[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.legend button[aria-pressed="false"] .sw { opacity: .3; }

.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.16); padding: 9px 11px; font-size: 12.5px; min-width: 170px; max-width: 280px; }
.tip h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.tip .r { display: flex; align-items: center; gap: 7px; line-height: 1.6; }
.tip .r b { margin-left: auto; font-weight: 650; padding-left: 12px; }

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.polls { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.polls th, .polls td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.polls th { position: sticky; top: 0; background: var(--surface); font-weight: 600; color: var(--ink-2); font-size: 12px; z-index: 1; }
.polls th.p { min-width: 54px; }
.polls th.p .sw { display: block; width: 100%; height: 4px; border-radius: 2px; margin-bottom: 4px; }
.polls th button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
.polls td.l, .polls th.l { text-align: left; }
.polls td.firm { font-weight: 600; }
.polls td.firm small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.polls td .s { display: block; color: var(--muted); font-size: 11.5px; }
.polls td.lead1 { font-weight: 700; }
.polls tr.elec td { background: var(--sunken); font-style: italic; }
.polls tbody tr:hover td { background: var(--sunken); }
.polls td.na { color: var(--line-2); }
.polls a.src { color: var(--muted); text-decoration: none; font-size: 12px; }
.polls a.src:hover { color: var(--ink); text-decoration: underline; }
.first-col { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.more { display: block; margin: 14px auto 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------- regions ---------- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rcard { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .15s ease, transform .15s ease; }
.rcard:hover { border-color: var(--line-2); transform: translateY(-1px); }
.rcard .when { font-size: 13px; color: var(--ink-2); margin: 2px 0 10px; }
.rcard .when b { color: var(--ink); }
.rcard .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 10px; }
.mini { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--sunken); }
.mini span { height: 100%; }
.mini-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-2); margin-top: 7px; }
.mini-legend span { display: inline-flex; align-items: center; gap: 4px; }
.mini-legend .sw { width: 8px; height: 8px; }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 18px 20px; }
.tl-item::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.tl-item.past::before { border-color: var(--line-2); }
.tl-date { font-weight: 650; }
.tl-names { color: var(--ink-2); font-size: 14px; }
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--ink); }
.region-select { display: flex; flex-wrap: wrap; gap: 6px; }
.region-select a { text-decoration: none; font-size: 13px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); }
.region-select a[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; }
.facts div { font-size: 13px; color: var(--muted); }
.facts b { display: block; font-size: 20px; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; }



.skeleton { display: grid; gap: 16px; }
.skeleton div { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--sunken), var(--line), var(--sunken)); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
.skeleton div:first-child { height: 60px; width: 50%; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton div { animation: none; } .rcard { transition: none; } }
@media (max-width: 640px) { .filters .sep { display: none; } }

/* ---------- hemiciclo ---------- */
.hemi-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 900px) { .hemi-grid { grid-template-columns: 1fr; } }
:root { --hemi-gap: var(--surface); }
.hemi { display: block; width: 100%; height: auto; overflow: visible; }
.hemi .seg { cursor: pointer; transition: opacity .15s ease; }
.hemi .h-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.hemi .h-num { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hemi .h-name.sm { font-size: 14px; }
.hemi .h-num.sm { font-size: 16px; font-weight: 700; }
.hemi .h-leg { font-size: 13px; fill: var(--ink); }
.hemi .h-center { font-size: 34px; font-weight: 800; fill: var(--ink); font-variant-numeric: tabular-nums; }
.hemi .h-sub { font-size: 13px; fill: var(--muted); }
.blocs { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
.bloc { display: inline-flex; align-items: center; gap: 7px; }
.bloc .sw { width: 12px; height: 12px; border-radius: 50%; }
.bloc b { font-size: 18px; font-weight: 800; }

/* ---------- últimas encuestas ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.pcard { scroll-snap-align: start; display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.pcard:hover { border-color: var(--muted); transform: translateY(-1px); }
.pc-head { display: flex; flex-direction: column; }
.pc-head b { font-size: 15px; }
.pc-head span, .pc-date { color: var(--muted); font-size: 12.5px; }
.pc-date { margin-bottom: 8px; }
.pcard .hemi { margin: 2px 0 8px; }
.hemi .h-cnum { font-size: 64px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pc-top { display: grid; gap: 3px; font-size: 13px; }
.pc-top span { display: flex; align-items: center; gap: 6px; }
.pc-top b { margin-left: auto; }
.pc-top small { color: var(--muted); min-width: 44px; text-align: right; }
em { font-style: normal; font-weight: 600; color: #a1231a; }
@media (prefers-color-scheme: dark) { em { color: #f4a59c; } }

/* ---------- ficha de encuesta ---------- */
tr.clk { cursor: pointer; }
.poll-dlg { width: min(1040px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink); padding: 22px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.poll-dlg::backdrop { background: rgba(10,10,9,.5); backdrop-filter: blur(2px); }
.dlg-close { position: absolute; right: 16px; top: 16px; }
.dlg-title { font-size: 26px; margin: 4px 0 16px; }
.dlg-title span { color: var(--muted); font-weight: 500; }
.dlg-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 28px; }
@media (max-width: 760px) { .dlg-grid { grid-template-columns: 1fr; } .poll-dlg { padding: 18px 14px; } }
.dlg-tbl { margin-top: 16px; }
.dlg-tbl td small { color: var(--muted); }
.up { color: #1f7a3a; } .down { color: #a1231a; }
@media (prefers-color-scheme: dark) { .up { color: #6fd08c; } .down { color: #f4a59c; } }
.ficha { background: var(--sunken); border-radius: var(--radius); padding: 16px 18px; align-self: start; }
.ficha dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 10px 0 16px; font-size: 13.5px; }
.ficha dt { color: var(--muted); }
.ficha dd { margin: 0; font-weight: 600; }
.ficha dd small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.src-btn, .share { display: block; width: 100%; text-align: center; text-decoration: none; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .pcard, .hemi .seg { transition: none; } }

.h-small { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.h-small span { display: inline-flex; align-items: center; gap: 5px; }
.h-small .sw { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- noticias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.news { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.news.compact h3 { font-size: 15px; line-height: 1.35; margin: 6px 0 0; }
.news h3 { font-size: 17px; line-height: 1.35; margin: 6px 0 6px; letter-spacing: -0.005em; }
.news h3 a { text-decoration: none; }
.news h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news p { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }
.n-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; color: var(--muted); }
.n-meta b { color: var(--ink-2); }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--sunken); color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); }
.tag.poll { background: #e8f0fd; color: #1d4fa8; border-color: #c9dafa; }
@media (prefers-color-scheme: dark) { .tag.poll { background: #1b2a44; color: #9fc0f7; border-color: #2a3f63; } }
.n-src { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.n-src:hover { color: var(--ink); }
.news-day { margin-top: 26px; }
.news-day h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.news-list { display: grid; gap: 10px; }
.tabs { overflow-x: auto; scrollbar-width: none; }

/* ---------- pie ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; padding: 48px 0 28px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.foot-brand img { height: 120px; width: auto; display: block; margin: -8px 0 10px -6px; }
.foot-brand p { margin: 0 0 8px; max-width: 52ch; }
.foot-warn { color: var(--muted); font-size: 13px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; margin: 0 0 4px; }
.foot-col a { text-decoration: none; color: var(--ink); }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: grid; gap: 4px; }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: inherit; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .fs-grid { grid-template-columns: 1fr; } }

/* ---------- páginas de texto (legal, fuentes) ---------- */
.prose { max-width: 76ch; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: 20px; margin: 34px 0 8px; }
.prose h3 { font-size: 16px; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.65; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose .meta-date { color: var(--muted); font-size: 13px; }
.prose .todo { background: #fff3c4; color: #6b4e00; padding: 0 4px; border-radius: 4px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .prose .todo { background: #4a3a05; color: #ffe08a; } }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 26px; }
.legal-nav a { text-decoration: none; font-size: 13px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); }
.legal-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.src-table td.l small { display: block; color: var(--muted); font-size: 12px; white-space: normal; }
.src-table td { white-space: normal; }
.kind { display: inline-block; font-size: 11px; padding: 0 6px; margin: 1px 2px 1px 0; border-radius: 99px; background: var(--sunken); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 28px; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- veda electoral ---------- */
.veda { border: 1px solid #f0c36d; background: #fff8e6; color: #5c4300; border-radius: var(--radius); padding: 22px 24px; }
.veda h2 { margin: 0 0 8px; color: inherit; }
.veda p { margin: 0 0 8px; max-width: 80ch; }
@media (prefers-color-scheme: dark) { .veda { background: #2e2408; border-color: #6b5313; color: #f6dc9a; } }

/* ---------- contenido pre-renderizado (se ve antes de que cargue la app) ---------- */
[data-ssr] h1, #view > h1 { margin-bottom: 10px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: inherit; }
.faq h3 { margin: 18px 0 4px; }
.faq p { margin: 0; color: var(--ink-2); max-width: 75ch; }
