/* Election broadcast: one metric, equal-width candidates, shared scale. */
main.compare-workspace{background:radial-gradient(ellipse at 50% 0,#1b3457 0,transparent 65%),#091321;color:#f5f8ff}
.election-broadcast .cb-heading{padding:26px 0 22px}.election-broadcast .cb-heading h1{font-size:clamp(28px,3vw,42px);margin:8px 0 0}.election-broadcast .cb-kicker{color:#a2bdd9}.election-broadcast .cb-access{color:#dbe9ff;border-color:#8babc64d}
.election-tabs{display:flex;gap:8px;border-bottom:1px solid #ffffff25;padding-bottom:0}.election-tabs button{flex:1;padding:16px 12px;color:#b8c9dd;font-size:18px}.election-tabs button[aria-selected=true]{background:#ffffff0d;color:#fff;border-bottom-color:#fff}
.election-panel-tools{display:flex;gap:20px;align-items:center;min-height:80px;padding:16px 0}.election-panel-tools h2{font-size:22px;color:#fff;margin:0}.election-panel-tools label{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:16px;color:#c5d3e4}.election-panel-tools select{background:#14243a;color:white;border:1px solid #63758b;border-radius:8px;padding:10px 14px;font:inherit;max-width:330px}
.election-stage{display:grid;grid-template-columns:repeat(var(--board-count),minmax(0,1fr));gap:3px;isolation:isolate;overflow:hidden;border-radius:16px;border:1px solid #ffffff26;background:#07101c}
.election-person{position:relative;isolation:isolate;min-width:0;text-align:center;padding:28px 18px 22px;overflow:hidden;background:linear-gradient(180deg,transparent 55%,#061020 100%)}
.election-backdrop{position:absolute;inset:0;z-index:-2;background:linear-gradient(125deg,color-mix(in srgb,var(--candidate),#071323 28%),#081321 80%)}
.election-backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 34%,#ffffff17 34.5%,transparent 35.5%,transparent 60%,#ffffff0e 60.5%,transparent 61%)}
.election-flag{position:absolute;right:-12%;top:15px;width:80%;height:210px;object-fit:contain;opacity:.3;z-index:-1;pointer-events:none}.election-party-pennant{display:block;position:absolute;right:14px;top:20px;max-width:75%;padding:10px 18px;background:var(--candidate);color:#fff;clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%);font-weight:700;font-size:16px;z-index:-1}
.election-face{height:clamp(190px,24vw,310px);display:flex;justify-content:center;align-items:flex-end}.election-face .cb-portrait{display:block;position:relative;width:clamp(150px,18vw,240px);height:100%;border-radius:12px 12px 0 0;overflow:hidden;background:#ffffff12;border:0;box-shadow:none}.election-face img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;object-position:var(--photo-position,50% 28%);mask-image:linear-gradient(#000 78%,transparent)}
.election-identity{position:relative;margin-top:-10px;min-height:110px}.election-identity>span{font-size:17px;color:#e0eaf6;font-weight:650}.election-identity h2{font-size:clamp(30px,3vw,40px);font-weight:800;letter-spacing:-.04em;color:white;margin:8px 0}.election-identity p{font-size:16px;line-height:1.5;color:#b9cbe0;margin:0}
.election-number{display:flex;align-items:baseline;justify-content:center;gap:7px;margin:18px 0 14px;white-space:nowrap}.election-number strong{font-size:clamp(38px,4.7vw,72px);line-height:1.1;font-weight:850;letter-spacing:-.05em;font-variant-numeric:tabular-nums;color:#fff}.election-number span{font-size:20px;color:#d1deef}
.election-bar{height:10px;background:#ffffff16;border-radius:3px;margin:0 5% 20px;overflow:hidden}.election-bar i{display:block;height:100%;background:var(--candidate);box-shadow:0 0 14px var(--candidate);transform-origin:left;animation:election-grow .6s ease-out}
.election-detail{display:inline-block;margin-top:12px;color:#e6effa!important;font-size:16px;text-decoration:none;border-bottom:1px solid #ffffff55;padding-bottom:4px}.election-caption{text-align:center;color:#bacbdf;font-size:16px;line-height:1.6;margin:20px 0}.election-swipe{display:none}.election-broadcast .cb-method{margin-top:10px}.election-broadcast .cb-method p{font-size:14px;color:#98adc7}
@keyframes election-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* Home starts white. Only a chosen candidate receives party colors. */
.product-home-wrap #compare .home-compare-matchup{background:#fff!important;background-image:none!important;color:#25334a!important;box-shadow:none!important;border:0!important;padding:16px 20px!important}
.product-home-wrap #compare .home-compare-matchup:before,.product-home-wrap #compare .home-compare-matchup:after,.product-home-wrap #compare .matchup-impact-stage{display:none!important}
.product-home-wrap #compare .matchup-caption{color:#20334b!important;padding:0 0 16px!important}.product-home-wrap #compare .matchup-caption span,.product-home-wrap #compare .matchup-caption p{color:#526276!important;text-shadow:none!important;font-size:16px!important}
.product-home-wrap #compare .home-compare-slots{gap:14px!important;background:none!important}.product-home-wrap #compare .home-compare-slots:before,.product-home-wrap #compare .home-compare-slots:after{display:none!important}
.product-home-wrap #compare .home-compare-slot{position:relative!important;isolation:isolate;background:#f7f9fc!important;border:1px solid #e0e6ee!important;border-radius:12px!important;padding:18px 12px!important;min-width:0;overflow:visible;transition:background .3s}
.product-home-wrap #compare .home-compare-slot:before,.product-home-wrap #compare .home-compare-slot:after{display:none!important}
.product-home-wrap #compare .home-compare-slot.election-selected{background:linear-gradient(145deg,color-mix(in srgb,var(--candidate),#101e32 30%),#142238)!important;border-color:var(--candidate)!important}
.product-home-wrap #compare .home-compare-person{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;transform:none!important;opacity:1!important;margin:0!important;gap:10px!important;min-height:195px!important}
.product-home-wrap #compare .matchup-entrant-clip{overflow:hidden!important;position:relative!important;min-height:0!important;clip-path:none!important}
.product-home-wrap #compare .home-compare-avatar{position:relative!important;left:auto!important;top:auto!important;width:110px!important;height:125px!important;border-radius:10px!important;transform:none!important;background:#e8edf4!important;border:0!important;box-shadow:none!important;flex-shrink:0}
.product-home-wrap #compare .home-compare-person b{color:#24354a!important;font-size:21px!important;text-shadow:none!important;line-height:1.3!important}.product-home-wrap #compare .home-compare-person small{font-size:15px!important;line-height:1.5!important;color:#607086!important;text-shadow:none!important;display:block!important}
.product-home-wrap #compare .election-selected .home-compare-person b{color:#fff!important}.product-home-wrap #compare .election-selected .home-compare-person small{color:#dde7f3!important}
.product-home-wrap #compare .election-flag{z-index:-1;opacity:.5;width:100%;right:-25%;height:155px;top:0}.product-home-wrap #compare .election-party-pennant{font-size:13px;opacity:.7}
.product-home-wrap #compare .home-compare-matchup .matchup-change{left:auto!important;transform:none!important;margin:12px auto 0!important;color:#324861!important;background:#fff!important;border:1px solid #cfd9e6!important;border-radius:7px!important;font-size:15px!important;padding:8px 12px!important}
.product-home-wrap #compare .home-compare-footer{background:#fff!important;color:#586a80!important;margin-top:16px!important}.product-home-wrap #compare .home-compare-footer>span{color:#586a80!important;text-shadow:none!important;font-size:14px!important}.product-home-wrap #compare .home-compare-footer>button{background:#162b46!important;color:white!important;font-size:17px!important;border:0!important;box-shadow:none!important}.product-home-wrap #compare .home-compare-footer>button:disabled{background:#e7ebf0!important;color:#8290a2!important}.product-home-wrap #compare .matchup-vs{display:none!important}
@media(max-width:767px){main.compare-workspace{padding:0 14px 24px}.election-tabs button{font-size:16px;padding:14px 12px;flex:0 0 auto}.election-stage{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:2px}.election-person{flex:0 0 calc(50% - 1px);padding:20px 8px;scroll-snap-align:start}.election-face{height:180px}.election-face .cb-portrait{width:140px;max-width:100%}.election-identity h2{font-size:28px}.election-identity>span,.election-identity p{font-size:14px}.election-number strong{font-size:clamp(25px,7vw,42px)}.election-number span{font-size:15px}.election-detail{font-size:14px}.election-panel-tools{flex-wrap:wrap;gap:10px}.election-panel-tools h2{font-size:20px}.election-panel-tools label{font-size:14px;max-width:100%;margin-left:0}.election-panel-tools select{max-width:220px}.election-swipe{display:block;margin-left:auto;font-size:13px;color:#a9bbd2}.product-home-wrap #compare .home-compare-matchup{padding:12px!important}.product-home-wrap #compare .home-compare-slots{gap:8px!important}.product-home-wrap #compare .home-compare-slot{padding:14px 8px!important}.product-home-wrap #compare .home-compare-person b{font-size:19px!important}.product-home-wrap #compare .home-compare-person small{font-size:14px!important}.product-home-wrap #compare .home-compare-avatar{width:95px!important;height:112px!important}}
@media(prefers-reduced-motion:reduce){.election-bar i{animation:none}.product-home-wrap #compare .home-compare-slot{transition:none}}
/* Isolated home component: no dimensions or decoration inherited from legacy matchup. */
#compare .ec-home{display:block;box-sizing:border-box;background:#fff;color:#25334a;padding:10px 20px 20px;margin:0;width:100%;height:auto;min-height:0}
#compare:has(.ec-home){height:auto!important;min-height:0!important;overflow:visible!important}
.ec-home *{box-sizing:border-box}.ec-caption{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:16px;font-size:15px}.ec-caption span{font-weight:750}.ec-caption p{margin:0;color:#627084;line-height:1.5}
.ec-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;position:relative}.ec-slot{position:relative;min-width:0;border:1px solid #e0e6ed;border-radius:14px;background:#f6f8fb;padding:18px 14px;text-align:center;isolation:isolate}.ec-slot.election-selected{background:linear-gradient(145deg,var(--candidate),#142238);border-color:var(--candidate)}
.ec-clip{position:relative;overflow:hidden}.ec-person{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;min-height:200px;isolation:isolate}.ec-avatar{position:relative;display:grid;place-items:center;width:110px;height:125px;overflow:hidden;border:1px solid #dbe2ec;border-radius:10px;background:#e9edf4;color:#4a607c;font-size:38px;flex-shrink:0;cursor:pointer}.ec-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.ec-person>div{width:100%;min-width:0}.ec-person b{display:block;font-size:22px;line-height:1.4;color:#20344f}.ec-person small{display:block;font-size:15px;line-height:1.6;color:#62748a}.election-selected .ec-person b{color:white}.election-selected .ec-person small{color:#e2edfa}
.ec-home .election-flag{z-index:-1;opacity:.4;top:0;right:-15%;width:85%;height:160px}.ec-home .election-party-pennant{z-index:-1}.ec-change{display:block;margin:12px auto 0;border:1px solid #cdd7e4;border-radius:7px;padding:9px 16px;background:white;color:#263e5c;font-size:15px;cursor:pointer}.ec-search{display:block;position:relative;text-align:left;margin-top:12px;z-index:10}.ec-search[hidden]{display:none!important}.ec-search>span{display:block;font-size:14px;color:#607187;margin-bottom:5px}.election-selected .ec-search>span{color:#e3ecf7}.ec-search input[type=search]{width:100%;height:42px;padding:9px 10px;border:1px solid #b8c7d8;background:#fff;color:#142238;border-radius:7px;font-size:16px}.ec-search .politician-autocomplete-results{z-index:40}
.ec-footer{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:18px}.ec-footer>button{width:min(100%,360px);padding:13px 18px;background:#182e4a;color:#fff;border:0;border-radius:9px;font-size:17px;font-weight:750;cursor:pointer}.ec-footer>button:disabled{background:#e8ecf2;color:#7d8ca0;cursor:default}.ec-footer>span{font-size:14px;color:#65778d;line-height:1.5}.ec-vs{display:none!important}
@media(max-width:767px){#compare .ec-home{padding:10px 12px 16px}.ec-slots{gap:8px}.ec-slot{padding:14px 8px}.ec-person{min-height:195px}.ec-person b{font-size:19px}.ec-person small{font-size:14px}.ec-caption{display:block}.ec-caption p{margin-top:5px}.ec-avatar{width:95px;height:112px}}
/* Preserve the original module footprint; fit controls inside it. */
#compare:has(.ec-home){height:355px!important;min-height:355px!important;display:flex;flex-direction:column}
#compare .ec-home{flex:1;min-height:0;padding:4px 20px 12px;display:flex;flex-direction:column;gap:8px}
.ec-caption{margin:0;gap:8px;font-size:14px;min-height:22px}.ec-caption p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ec-slots{flex:1;min-height:0}.ec-slot{padding:10px 12px;display:flex;flex-direction:column;justify-content:center}.ec-person{min-height:0;flex-direction:row;text-align:left;gap:12px}.ec-avatar{width:76px;height:90px;font-size:30px}.ec-person>div{flex:1;width:auto}.ec-person b{font-size:21px}.ec-person small{font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ec-change{margin:8px auto 0;padding:6px 12px;font-size:14px}.ec-footer{margin:0;gap:5px;flex-shrink:0}.ec-footer>button{padding:10px 16px;font-size:16px}.ec-footer>span{font-size:13px}.ec-search{position:absolute;top:calc(100% - 5px);left:0;right:0;margin:0;padding:12px;background:#fff;border:1px solid #d2dce8;border-radius:10px;box-shadow:0 8px 24px #182e4a28}.election-selected .ec-search>span{color:#607187}
@media(max-width:767px){#compare .ec-home{padding:4px 12px 12px}.ec-caption p{display:none}.ec-slot{padding:8px}.ec-person{gap:6px}.ec-avatar{width:52px;height:72px}.ec-person b{font-size:18px}.ec-person small{font-size:13px}.ec-change{font-size:13px;padding:6px 8px}}
/* Remove the old table portrait's fixed flex basis from the new stage. */
.election-face .cb-portrait{flex:0 0 auto!important;min-width:0!important;max-width:100%!important;width:clamp(150px,18vw,240px)!important;height:100%!important}.election-face{height:clamp(180px,22vh,250px)}
.election-broadcast .cb-heading{padding:18px 0 14px}.election-broadcast .cb-heading h1{font-size:32px}.compare-workspace .cb-topbar{min-height:50px}.compare-workspace .cb-selection{margin-top:10px}.compare-workspace .cb-selection>summary{padding:12px 18px}.election-panel-tools{min-height:58px;padding:10px 0}.election-person{padding-top:18px}.election-identity{min-height:90px}.election-number{margin:10px 0}.election-number strong{font-size:clamp(38px,4.4vw,64px)}
@media(max-width:767px){.election-face{height:175px}.election-face .cb-portrait{width:130px!important}.election-broadcast .cb-heading h1{font-size:27px}.election-number strong{font-size:clamp(25px,7vw,42px)}}
.ec-slots{grid-template-rows:minmax(0,1fr)}.ec-slot{min-height:0;padding:6px 12px}.ec-avatar{width:64px;height:66px}.ec-change{margin-top:5px;padding:4px 12px;line-height:20px}.ec-person b{font-size:20px}.ec-footer>button{line-height:22px;padding:8px 16px}.ec-footer>span{line-height:18px}.ec-home .election-flag{height:110px}
@media(max-width:767px){.ec-slot{padding:6px}.ec-avatar{width:48px;height:60px}.ec-person b{font-size:17px}.ec-change{padding:4px 8px}}
/* Minimal picker: preserve the existing module footprint. */
.ec-minimal .ec-slot{padding:0;min-height:0}.ec-minimal .ec-clip,.ec-minimal .ec-person{height:100%;width:100%;min-height:0}.ec-minimal .ec-add,.ec-minimal .ec-picked{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:0;border-radius:14px;background:transparent;cursor:pointer;color:#718197;padding:16px;gap:12px}.ec-minimal .ec-add{font-size:54px;font-weight:300}.ec-minimal .ec-add:hover{background:#eef1f6;color:#61428b}.ec-minimal .ec-add:focus-visible,.ec-minimal .ec-picked:focus-visible{outline:3px solid #8864ae;outline-offset:-4px}.ec-minimal .ec-picked{color:white;text-align:left}.ec-minimal .ec-picked>span:last-child{min-width:0}.ec-minimal .ec-picked b,.ec-minimal .ec-picked small{display:block}.ec-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.election-broadcast .election-identity{margin-top:16px;position:relative;z-index:1}.election-broadcast .election-identity>span{display:block;line-height:1.5;overflow:visible;white-space:normal;overflow-wrap:anywhere;padding:0 4px}.election-broadcast .election-face{flex-shrink:0}
@media(max-width:767px){.ec-minimal .ec-picked{padding:10px;gap:8px}.election-broadcast .election-identity{margin-top:14px}}

/* Keep the picker inside its original comparison card. */
#compare .ec-minimal .ec-slot .ec-search:not([hidden]){position:absolute;inset:6px;top:6px;display:flex;flex-direction:column;gap:8px;margin:0;padding:12px;min-height:0;z-index:12;overflow:hidden;border:1px solid #d5dfe8;border-radius:12px;background:#fff;box-shadow:none}
#compare .ec-search>span{flex:none;font-size:14px;color:#17334b}
#compare .ec-search>input[type=search]{flex:none;width:100%;min-width:0;box-sizing:border-box;font-size:16px}
#compare .ec-search .politician-autocomplete-results{position:static;inset:auto;flex:1;min-height:0;max-height:none;width:100%;box-sizing:border-box;overflow-y:auto;box-shadow:none;border:0;margin:0}
#compare .ec-search .politician-autocomplete-results[hidden]{display:none}
