@import url('/forest-home.css');
.history-explorer{--history-ink:#243f52;--history-line:#d7e2d8;color:var(--history-ink)}
.history-explorer:not(.history-explorer-home){margin:10px 0 24px}
.history-explorer-home{margin:40px 0;padding:24px;border:1px solid var(--history-line);border-radius:18px;background:#fffefa}
.history-hero{display:flex;align-items:center;gap:18px;padding:16px 0 8px}
.history-hero .forest-illustration{width:86px;height:90px;flex:none}
.history-hero h1,.history-hero h2{margin:0 0 8px;font-size:30px}
.history-hero p{margin:5px 0;color:#536b66}
.history-hero .eyebrow{font-size:11px;letter-spacing:.16em}
.history-query{display:flex;align-items:end;gap:16px;padding:18px 0 22px;border-bottom:1px solid var(--history-line);margin:0 0 22px}
.history-query label{display:grid;gap:7px;font-size:13px;font-weight:700;min-width:220px}
.history-query select,.history-map-year select{min-height:44px;width:100%;font:inherit;background:#fff;color:var(--history-ink);border:1px solid #a7bdac;border-radius:8px;padding:9px 12px}
.history-type-switch{display:flex;gap:4px;padding:4px;background:#eaf0e9;border-radius:10px}
.history-type-switch button{border:0;background:transparent;padding:10px 18px;border-radius:7px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;min-height:40px;color:#536b66}
.history-type-switch button[aria-pressed=true]{background:#416b85;color:#fff}
.history-explorer button:focus-visible,.history-explorer select:focus-visible,.history-explorer summary:focus-visible{outline:3px solid #416b85;outline-offset:3px}
.history-explorer button:disabled,.history-explorer select:disabled{opacity:.6;cursor:wait}
.history-explorer-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}
.history-map-panel{grid-column:1;grid-row:1;position:sticky;top:18px;margin:0;padding:14px;background:#f0f5ef;border:1px solid var(--history-line);border-radius:12px;min-width:0}
.history-map-panel>summary{font-weight:700;cursor:pointer;font-size:14px}
.history-map-panel>summary>span{float:right;font-variant-numeric:tabular-nums;font-size:12px}
.history-map-panel figure{margin:14px 0 0}
.history-map-panel .history-map-heading{font-size:12px;font-weight:700;margin:0 0 10px}
.history-explorer-map{display:block;width:100%;height:auto;max-height:320px}
.history-map-panel figcaption{font-size:11px;line-height:1.7;color:#536b66;margin-top:10px}
.history-explorer-map [data-history-map-area]{cursor:pointer;outline-offset:3px}
.history-explorer-map [aria-disabled=true]{cursor:default;opacity:.55}
.history-explorer-map path[aria-pressed=true]{stroke:#244e60;stroke-width:3}
.history-explorer-map g[aria-pressed=true]>rect{stroke:#244e60;stroke-width:3}
.history-explorer-map [data-history-map-area]:focus-visible{outline:3px solid #416b85}
.history-explorer-map [data-history-map-area]:hover{filter:brightness(.96)}
.history-all-regions{font:inherit;font-size:12px;border:0;background:none;text-decoration:underline;color:#416b85;cursor:pointer;padding:12px 0 2px}
.history-map-year{display:grid;gap:5px;margin:12px 0 0;font-size:11px}
.history-map-year select{padding:6px;min-height:36px}
.history-live-results{grid-column:2;min-width:0}
.history-comparison-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:18px}
.history-comparison-heading h2{font-size:24px;margin:0 0 7px}
.history-comparison-heading p{margin:0;color:#536b66;font-size:13px}
.history-comparison-heading>button{padding:8px;background:#fff;border:1px solid var(--history-line);border-radius:7px;color:#416b85;font:inherit;font-size:12px;cursor:pointer}
.history-cycle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.history-cycle{margin:0;min-width:0;border:1px solid var(--history-line);border-radius:12px;background:#fff;overflow:hidden}
.history-cycle-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 14px;background:#eaf1ea;border-bottom:1px solid var(--history-line)}
.history-cycle-heading h3{font-size:26px;line-height:1.2;margin:0;letter-spacing:.02em}
.history-cycle-heading button{background:none;border:0;padding:7px 0;color:#416b85;font:inherit;font-size:11px;white-space:nowrap;cursor:pointer;text-decoration:underline}
.history-cycle-heading button[aria-pressed=true]{font-weight:700}
.history-race{padding:14px;min-width:0}
.history-race+.history-race{border-top:2px solid var(--history-line)}
.history-race h4{font-size:15px;margin:0 0 2px}
.history-race-date{font-size:11px;color:#536b66;margin:0 0 14px}
.history-candidates{padding:0;margin:0;list-style:none}
.history-candidate{padding:0 0 15px;min-width:0}
.history-candidate-name{display:flex;flex-wrap:wrap;gap:5px;align-items:center;font-size:16px;line-height:1.45}
.history-candidate-name img{width:20px;height:20px;object-fit:contain;flex:none}
.history-candidate-name strong{overflow-wrap:anywhere}
.history-winner-label{font-size:10px;border:1px solid var(--history-line);background:#f0f5ef;padding:1px 4px;border-radius:4px}
.history-candidate-values{display:flex;justify-content:space-between;align-items:baseline;gap:6px;margin:5px 0 6px}
.history-candidate-values small{font-size:11px;line-height:1.4;color:#536b66}
.history-candidate-values b{font-size:21px;line-height:1;font-variant-numeric:tabular-nums}
.history-vote-track{width:100%;height:6px;background:#edf1ed;border-radius:3px;overflow:hidden}
.history-vote-track span{display:block;background:var(--history-party);height:100%;border-radius:3px}
.history-candidate-votes{display:block;text-align:right;font-size:11px;line-height:1.4;color:#536b66;margin-top:3px;font-variant-numeric:tabular-nums}
.history-margin{font-size:11px;border-top:1px solid var(--history-line);padding-top:12px;margin:0 0 12px;line-height:1.7}
.history-margin strong{font-size:20px}
.history-margin>span{display:block;color:#536b66;font-size:11px}
.history-race-meta{display:flex;flex-wrap:wrap;gap:3px 12px;font-size:10px;color:#536b66}
.history-more-candidates summary,.history-sources summary{font-size:11px;cursor:pointer;padding:7px 0}
.history-more-candidates{margin-bottom:10px}
.history-more-candidates[open]>.history-candidates{padding-top:10px}
.history-sources{font-size:11px;margin-top:5px}
.history-boundary-note,.history-no-coverage{font-size:12px;line-height:1.8;color:#536b66;padding:12px 14px;margin:0}
.history-boundary-note{background:#faf7e9;border-bottom:1px solid var(--history-line)}
.history-earlier{margin-top:20px}
.history-earlier>summary{cursor:pointer;border:1px solid #a7bdac;border-radius:8px;padding:12px 16px;font-size:14px;font-weight:700;background:#fff}
.history-earlier[open]>.history-cycle-grid{margin-top:16px}
.history-method{margin-top:22px;border-top:1px solid var(--history-line);padding-top:12px;color:#536b66;font-size:12px;line-height:1.8}
.history-method>summary{cursor:pointer}
.history-context{font-size:12px;line-height:1.8;color:#536b66;margin:0 0 14px}
.history-summary-title{font-size:23px;margin:0 0 8px}
.history-valid{font-size:13px}
.history-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.history-summary>div{border:1px solid var(--history-line);border-top:3px solid var(--history-party);padding:12px;border-radius:9px;display:grid;gap:7px;background:#fff;min-width:0}
.history-summary>div>span{display:flex;align-items:center;gap:7px;font-size:13px}
.history-summary img{width:22px;height:22px;object-fit:contain}
.history-summary strong{font-size:26px;font-variant-numeric:tabular-nums}
.history-summary small{font-size:11px}
.history-overview{margin-top:16px}
.history-table-scroll{overflow:auto}
.history-overview table{width:100%;border-collapse:collapse;font-size:13px}
.history-overview th,.history-overview td{padding:10px 6px;text-align:left;border-bottom:1px solid #e4ece2}
.history-overview td:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-overview small{display:block;color:#536b66;font-size:10px}
.history-overview button{border:0;background:none;color:#243f52;text-decoration:underline;font:inherit;font-weight:700;cursor:pointer;padding:6px 0;white-space:nowrap}
@media(min-width:1000px){.history-is-overview{grid-template-columns:330px minmax(0,1fr)}.history-is-overview .history-explorer-map{max-height:380px}}
@media(max-width:999px){.history-explorer-layout{grid-template-columns:1fr;gap:20px}.history-live-results{grid-column:1;grid-row:1}.history-map-panel{grid-column:1;grid-row:2;position:static;width:100%;box-sizing:border-box}.history-explorer-map{max-height:400px}.history-map-panel figure{max-width:380px;margin:14px auto 0}.history-query{justify-content:space-between}.history-cycle-heading h3{font-size:24px}}
@media(max-width:680px){.history-explorer-home{padding:16px;margin:28px 0}.history-hero{gap:10px;padding:8px 0}.history-hero .forest-illustration{width:58px;height:72px}.history-hero h1,.history-hero h2{font-size:24px}.history-hero p{font-size:12px;line-height:1.7}.history-query{display:grid;grid-template-columns:1fr;gap:10px;padding:12px 0 16px;margin-bottom:16px}.history-query label{min-width:0}.history-type-switch{justify-self:start}.history-type-switch button{padding:9px 20px}.history-comparison-heading h2{font-size:22px}.history-comparison-heading p{font-size:12px}.history-cycle-grid{grid-template-columns:1fr;gap:14px}.history-cycle-heading{padding:12px 16px}.history-cycle-heading h3{font-size:27px}.history-race{padding:16px}.history-race h4{font-size:16px}.history-race-date{margin-bottom:12px}.history-candidate{padding-bottom:13px}.history-candidate-name{font-size:17px}.history-candidate-values small,.history-candidate-votes{font-size:11px}.history-candidate-values b{font-size:24px}.history-summary-title{font-size:21px}.history-map-panel{padding:14px}.history-comparison-heading>button{max-width:90px;flex:none}}
