/* Documentary series; scoped so the frozen first-round archive stays intact. */
#institutos-2t .history-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start}
#institutos-2t .history-panel{padding:24px;border-top:3px solid var(--ink)}
#institutos-2t .history-panel h3{font-family:Georgia,serif;font-size:29px;font-weight:400;letter-spacing:-.035em}
#institutos-2t .history-panel h3 small{display:block;font:11px "IBM Plex Mono",monospace;letter-spacing:.05em;margin-top:8px;color:var(--muted)}
.history-controls{display:grid;grid-template-columns:1.5fr 1fr;gap:28px;background:var(--ink);color:var(--paper);padding:24px 28px;margin:28px 0 12px}
.history-controls .note,.history-controls .kicker{color:#e0e2d8}
.history-controls .note{margin-bottom:0}
.history-switch{display:flex;gap:12px;align-items:center;font-weight:600;font-size:16px;cursor:pointer;line-height:1.4}
.history-switch input{width:21px;height:21px;flex:none;accent-color:var(--green);cursor:pointer}
.history-switch-local{border-block:1px solid var(--line);padding:13px 0;margin:20px 0;font-size:13px}
.history-scores{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:12px}
.history-scores span{display:block;font-size:11px;color:var(--muted)}
.history-scores strong{font-family:Georgia,serif;font-size:29px;font-weight:400;letter-spacing:-.04em;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-delta{font-size:12px;line-height:1.6;margin:12px 0 22px;padding:10px 0;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.history-delta b{font-weight:600;color:var(--green)}
.history-badge{font:10px "IBM Plex Mono",monospace;display:inline-block;padding:6px 8px;border:1px solid var(--line);color:var(--green);max-width:100%}
.history-method{padding:18px 0;border-bottom:1px solid var(--line);font-size:14px}
.history-method summary{cursor:pointer;font-weight:600}
.history-method p,.history-method ol{margin:18px 0}
.history-method table{min-width:800px;font-size:12px}
.history-urna-reference{padding:22px 0;border-bottom:1px solid var(--line);font-size:15px}
.history-urna-reference p{margin-bottom:6px}
#institutos-2t .history-urna table{min-width:430px;font-variant-numeric:tabular-nums}
#institutos-2t [data-history-view][hidden]{display:none!important}
@media(max-width:800px){#institutos-2t .history-grid{grid-template-columns:1fr}.history-controls{grid-template-columns:1fr;gap:8px}.history-scores strong{font-size:27px}#institutos-2t .history-panel{padding:18px}}
@media print{.history-controls,.history-switch{display:none}#institutos-2t .history-grid{grid-template-columns:1fr 1fr}.history-panel{break-inside:avoid}}
.history-error{padding:14px 0 0;margin-top:20px;border-top:1px solid var(--ink)}
.history-error span,.history-error small{display:block;font-size:11px;color:var(--muted);line-height:1.6}
.history-error b{display:block;font-size:13px;font-weight:600;margin:5px 0;font-variant-numeric:tabular-nums}
@media(max-width:380px){.history-scores{grid-template-columns:1fr;gap:8px}.history-scores>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.history-scores strong{font-size:24px}}

.history-ranking{margin:2rem 0 2.5rem;padding:1.5rem 0;border-top:3px solid var(--ink,#192e2b);border-bottom:1px solid var(--line,#c9c9bc)}
.history-ranking h3{font-size:clamp(1.5rem,3vw,2rem);margin:.25rem 0 1rem}
.history-ranking table{width:100%;min-width:720px;font-variant-numeric:tabular-nums}
.history-ranking td,.history-ranking th{vertical-align:top;text-align:left;padding:.8rem .65rem}
.history-ranking tbody th{min-width:145px}
.history-ranking small{display:block;font-size:.72rem;line-height:1.4;font-weight:400;color:var(--muted,#535b54);margin-top:.3rem;max-width:220px}
.history-ranking tbody td:nth-child(3){font-weight:700;color:#28705f}
.history-own-error{padding:1rem 1.2rem;background:#e8eee8;border-left:3px solid #28705f;line-height:1.6;margin:1rem 0}
.history-own-error b{display:block}
.history-rank{display:flex;align-items:baseline;gap:.35rem .75rem;flex-wrap:wrap;padding:.7rem 0;border-block:1px solid #d8d8cb;margin:.6rem 0 1rem;font-variant-numeric:tabular-nums}
.history-rank span{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em}
.history-rank b{font-size:1.15rem;color:#28705f}
.history-rank small{font-size:.72rem;color:#535b54}
.history-urna table{min-width:620px}
@media(max-width:600px){.history-ranking{padding:1rem 0}.history-ranking .table-scroll{max-width:100%;overflow:auto}.history-own-error{padding:.85rem}.history-rank{gap:.25rem .5rem}}
