@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
@font-face{font-family:'Berkeley Mono';src:url('fonts/BerkeleyMono-Regular.otf') format('opentype');font-weight:400;font-display:swap}
:root{--black:#171717;--gray:#737373;--line:#e5e5e5;--soft:#f5f5f5;--accent:#e63946}
html{scroll-padding-top:100px}
body{background:#fafafa;font-family:Manrope,Arial,sans-serif;padding-top:82px;-webkit-font-smoothing:antialiased}
body>header{position:fixed;top:14px;left:20px;right:20px;z-index:50;width:calc(100% - 40px);max-width:1060px;height:50px;gap:22px;padding:0 18px;border:1px solid #0000000f;border-radius:100px;background:#ffffffdb;backdrop-filter:blur(20px) saturate(180%);box-shadow:0 4px 24px #0000000b}
.brand{font-size:14px;letter-spacing:-.4px;gap:6px;white-space:nowrap}.brand>img{width:26px;height:26px;object-fit:contain}.brand span{font-size:10px;color:#737373}.brand i{display:none}
body>header nav{gap:20px;font-size:11px;white-space:nowrap}.edition{font-family:'Berkeley Mono',monospace;font-size:9px;white-space:nowrap}
.sister-link{display:inline-flex;flex-shrink:0;align-items:center;gap:6px;margin-left:auto;padding:8px 13px;border:1px solid #e639462b;border-radius:999px;background:#fef2f2;color:#bf2935;font-size:11px;font-weight:800;white-space:nowrap}.sister-link:hover{background:#fee2e2;text-decoration:none}.sister-short{display:none}
main{max-width:1280px;margin:0 auto;padding:0 5%}
.hero{padding-top:50px}.hero-top{align-items:flex-end}.eyebrow,.control-caption,.scroll-link,.edition{font-family:'Berkeley Mono',monospace}.eyebrow{color:#e63946;font-weight:400;letter-spacing:1px;font-size:10px}
h1,h2{font-family:'Instrument Serif',Georgia,serif;font-weight:400;letter-spacing:-.02em}h1{font-size:clamp(44px,5.3vw,72px);line-height:1.05}h2{font-size:clamp(36px,4vw,52px);line-height:1.1}
.hero-caption{font-size:11px;line-height:1.6}.hero-caption strong{color:#404040;font-weight:650}.hero-chart{background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px 18px 0;margin-top:25px;height:455px}.hero-grid{left:20px;right:20px;top:25px}.mean-score{font-weight:750}.mean-bar{border-radius:6px 6px 0 0}.candidate-label{height:85px}.candidate-label .last{font-weight:800}.candidate-label .first{color:#737373}.party{color:#737373}
.hero-bottom{border-bottom:0;padding:17px 0}.hero-bottom p{font-size:10px;color:#737373}.scroll-link{font-size:9px}.tiny-dot{background:var(--accent)}
.tabs{border-color:var(--line);box-shadow:0 1px 3px #00000005}.tabs button{font-weight:700}.tabs button.active{background:var(--accent)}.tabs button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,button:focus-visible{outline-color:var(--accent)}
.calculation{background:#fff;border:1px solid var(--line);border-radius:8px;padding:0 18px}.calculation summary{font-size:11px;font-weight:600}.calculation-body>p{font-size:11px;line-height:1.75}.section{padding-top:70px}.section-top .eyebrow{margin-bottom:10px}.diff-header,.scenario-controls,.source-stats{background:#fff;border:1px solid var(--line);border-radius:10px}.diff-header{padding:22px}.scenario-controls{padding:22px}.source-stats{padding:24px;margin:20px 0 28px}.source-stats strong{font-family:'Instrument Serif',Georgia,serif;font-size:43px;font-weight:400;letter-spacing:-.7px}.outline-button{border-radius:999px}.outline-button:hover{background:#f5f5f5}.trend-heading{padding-top:0}.chart-note{line-height:1.75}.sources details{padding:0 4px}footer .brand{font-size:12px}.tooltip,dialog{font-family:Manrope,Arial,sans-serif}dialog{border-radius:12px}.text-button{color:#bf2935;font-weight:700}.embed-edition{display:none}
@media(min-width:1500px){.hero-chart{height:480px}}
@media(max-width:1000px){body>header{gap:15px}body>header nav{gap:13px}.edition{display:none}.hero-chart{height:435px}.brand{font-size:13px}.sister-link{font-size:10px}}
@media(max-width:720px){
 body{padding-top:102px}body>header{top:9px;left:10px;right:10px;width:calc(100% - 20px);height:auto;min-height:44px;flex-wrap:wrap;padding:8px 12px 10px;gap:8px 12px;border-radius:20px}body>header nav{order:3;width:100%;justify-content:space-between;padding-top:7px;border-top:1px solid #e5e5e5;font-size:10px;gap:8px}.brand{font-size:12px}.brand>img{width:23px;height:23px}.brand span{font-size:9px}.sister-link{padding:6px 10px;font-size:10px}.sister-long{display:none}.sister-short{display:inline}
 main{padding:0 5%}.hero{padding-top:28px}.hero h1{font-size:46px;letter-spacing:-1px}.hero-top .eyebrow{font-size:8px}.group-control{margin-top:24px}.control-caption{font-size:8px}.hero-caption{font-size:10px}.hero-chart{height:auto;padding:10px 12px;margin-top:20px;border-radius:10px}.candidate-column{height:61px;grid-template-columns:42px 85px minmax(0,1fr) 47px;gap:6px}.candidate-column:last-child{border-bottom:0}.candidate-label{height:auto}.candidate-label .last{font-size:10px}.candidate-label .first{font-size:8px}.mean-score{font-size:21px}.candidate-column .portrait{width:37px;height:37px}.mean-bar{border-radius:3px}.hero-bottom{padding:16px 0}.hero-bottom p{font-size:9px}.calculation{padding:0 12px}.calculation summary{font-size:10px}.calculation-body>p{font-size:10px}.section{padding-top:45px}h2{font-size:36px}.scenario-controls{padding:16px}.source-stats{padding:20px}.source-stats strong{font-size:36px}.diff-header{padding:15px}.source-stats span{font-size:9px}footer p{line-height:1.8}
}
/* The embedded chart uses the same markup, data, filters and calculation engine. */
html[data-embed="true"]{scroll-padding-top:0;scroll-behavior:auto}
html[data-embed="true"] body{padding:0;background:#fff;overflow-x:hidden}
html[data-embed="true"] body>header,html[data-embed="true"] main>.section,html[data-embed="true"] footer,html[data-embed="true"] .hero-top>div:not(.group-control),html[data-embed="true"] .scroll-link{display:none}
html[data-embed="true"] main{max-width:none;padding:0;margin:0}
html[data-embed="true"] .hero{padding:8px 32px 22px}
html[data-embed="true"] .hero-top{display:flex;justify-content:space-between;align-items:center;gap:20px}
html[data-embed="true"] .group-control{display:flex;align-items:center;gap:14px;margin:0}
html[data-embed="true"] .control-caption{margin:0;text-align:left;font-size:8px;max-width:90px}
html[data-embed="true"] .embed-edition{display:block;font-family:'Berkeley Mono',monospace;color:#737373;font-size:9px;line-height:1.6}
html[data-embed="true"] .hero-caption{margin-top:18px}
html[data-embed="true"] .hero-chart{border:0;border-radius:0;padding:10px 0 0;margin-top:18px;height:395px}
html[data-embed="true"] .hero-grid{left:0;right:0;top:10px}
html[data-embed="true"] .hero-bottom{padding:12px 0}
html[data-embed="true"] .hover-instruction{display:none}
@media(max-width:720px){html[data-embed="true"] .hero{padding:8px 18px 18px}html[data-embed="true"] .hero-top{display:block}html[data-embed="true"] .embed-edition{margin:0 0 13px;font-size:8px}html[data-embed="true"] .group-control{justify-content:space-between;gap:10px}html[data-embed="true"] .control-caption{max-width:75px;font-size:7px}html[data-embed="true"] .tabs{max-width:260px}html[data-embed="true"] .hero-chart{height:auto;padding:0;margin-top:15px}html[data-embed="true"] .candidate-column{grid-template-columns:37px 77px minmax(0,1fr) 44px;gap:6px;height:59px}html[data-embed="true"] .candidate-column .portrait{width:33px;height:33px}html[data-embed="true"] .candidate-label .last{font-size:9px}html[data-embed="true"] .mean-score{font-size:20px}html[data-embed="true"] .hero-caption{margin-top:15px}html[data-embed="true"] .hero-bottom p{font-size:8px}html[data-embed="true"] .calculation summary{font-size:9px}html[data-embed="true"] .calculation{padding:0 10px}}

/* Recent coherent scenarios: compact, explicit and keyboard accessible. */
.hero-top{align-items:flex-start;gap:26px}.group-control{max-width:580px;width:50%}.recent-controls{display:grid;grid-template-columns:1fr;gap:6px;margin-top:8px}.recent-controls label{font-size:10px;color:var(--muted,#666)}.recent-controls select{width:100%;min-width:0;max-width:100%;padding:9px 12px;border:1px solid var(--line,#ddd);border-radius:5px;background:#fff;font:inherit;font-size:12px;color:inherit}.recent-coverage{font-size:12px;line-height:1.6;color:#656575;max-width:1000px;margin:14px 0}.hero-caption{flex-wrap:wrap}.hero-columns{min-width:0}.candidate-label{overflow-wrap:anywhere}
html[data-embed="true"] .group-control{display:block;width:min(100%,650px);max-width:650px}html[data-embed="true"] .recent-controls{display:grid;grid-template-columns:1fr;max-width:100%}html[data-embed="true"] .recent-coverage{font-size:11px;margin:10px 0}
@media(max-width:900px){.hero-top{display:block}.group-control{width:100%;max-width:none;margin-top:20px}.hero-columns{overflow-x:auto}.candidate-label .last{font-size:12px}}
@media(max-width:720px){.recent-controls select{font-size:12px}.recent-coverage{font-size:11px}.candidate-label .last{font-size:10px}html[data-embed="true"] .control-caption{max-width:none}html[data-embed="true"] .recent-controls select{font-size:11px}}

@media(min-width:721px){.hero-chart{overflow-x:auto;max-width:100%}.hero-columns{min-width:calc(var(--columns,11) * 78px)}.hero-chart:focus-visible{outline:2px solid var(--accent)}}

/* Creator links stay quiet and remain outside the embedded chart. */
.follow-pill{position:fixed;right:18px;bottom:max(14px,env(safe-area-inset-bottom));z-index:40;display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #dedee3;border-radius:999px;background:rgba(255,255,255,.96);color:#4c4c52;font:500 11px/1.2 Manrope,Arial,sans-serif;box-shadow:0 2px 10px #00000008;backdrop-filter:blur(6px);white-space:nowrap;text-decoration:none}
.follow-pill:hover{border-color:#9a9aa1;color:#171719;text-decoration:none}.follow-dot{width:5px;height:5px;border-radius:50%;background:#77777d;flex-shrink:0}
.footer-note{display:flex;flex-direction:column;gap:5px;text-align:center}.footer-note p{margin:0}footer .creator-credit{font-size:11px;color:#62626b}.creator-credit a{color:#303036;font-weight:600;text-decoration:underline;text-underline-offset:3px}footer{padding-bottom:76px}
html[data-embed="true"] .follow-pill{display:none}
@media(max-width:720px){.follow-pill{right:12px;bottom:max(12px,env(safe-area-inset-bottom));padding:8px 11px;font-size:10px;gap:6px}.footer-note{order:3;flex-basis:100%;text-align:left;align-items:flex-start}footer{padding-bottom:70px}}
