/* Hala elections panel. */
.he-panel{--he-c:#1d3b6e;--he-c2:#e8eef8;margin:0 0 26px;border:1px solid var(--hc-line);border-top:4px solid var(--he-c);border-radius:var(--hc-radius-lg);background:var(--hc-bg,#fff);overflow:hidden}
.he-panel--provincial{--he-c:#0f6b4f;--he-c2:#e5f3ee}
.he-panel--municipal{--he-c:#8f1419;--he-c2:#fbecec}
.he-panel--compact{margin-block:20px}
.he-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;background:var(--he-c2)}
.he-type{display:inline-block;font-size:12px;font-weight:700;color:var(--he-c)}
.he-head h2{margin:4px 0;font-size:24px;line-height:1.4}
.he-head h2 a{color:inherit;text-decoration:none}
.he-date{margin:0;font-size:14px;color:var(--hc-muted)}
.he-status{flex:0 0 auto;text-align:center}
.he-status small{display:block;font-size:12px;color:var(--hc-muted);margin-top:4px}
.he-count{display:flex;gap:6px;direction:rtl}
.he-count span{display:flex;flex-direction:column;align-items:center;min-width:56px;padding:6px 8px;border-radius:8px;background:var(--hc-bg,#fff);font-size:12px;color:var(--hc-muted)}
.he-count b{font-size:24px;line-height:1.2;color:var(--he-c)}
.he-live{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:#c8102e;color:#fff;font-weight:700;font-size:14px}
.he-live i{width:9px;height:9px;border-radius:50%;background:var(--hc-bg,#fff);animation:he-pulse 1.2s infinite}
@keyframes he-pulse{50%{opacity:.25}}
.he-done{display:inline-block;padding:6px 14px;border-radius:999px;background:var(--he-c);color:#fff;font-weight:700}
.he-intro{margin:14px 20px 0;color:var(--hc-ink-2,#333);line-height:1.8}
.he-body{padding:6px 20px 4px}
.he-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}
.he-tabs button{padding:8px 14px;border:1px solid var(--hc-line-2);border-radius:999px;background:var(--hc-bg,#fff);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.he-tabs button[aria-selected="true"]{background:var(--he-c);border-color:var(--he-c);color:#fff}
.he-office{margin:14px 0 8px;font-size:16px}
.he-ward{display:flex;align-items:center;gap:10px;margin:12px 0;font-weight:600;font-size:14px}
.he-ward select{flex:1;max-width:420px;height:42px;padding:0 10px;border:1px solid var(--hc-line-2);border-radius:8px;font:inherit}
.he-card{padding:4px 0 10px}
.he-polls{display:flex;align-items:center;gap:10px;margin:6px 0 12px;font-size:13px;color:var(--hc-muted)}
.he-polls i{flex:1;height:6px;border-radius:3px;background:var(--hc-surface,#eceae6);overflow:hidden}
.he-polls b{display:block;height:100%;background:var(--he-c)}
.he-cands{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.he-cands.is-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}
.he-cand__top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:15px}
.he-cand__name small{color:var(--hc-muted);font-size:12px}
.he-cand__votes{font-weight:700;white-space:nowrap}
.he-cand__votes small{font-weight:400;color:var(--hc-muted)}
.he-bar{display:block;height:10px;margin-top:4px;border-radius:5px;background:var(--hc-surface,#eceae6);overflow:hidden}
.he-bar b{display:block;height:100%;border-radius:5px;background:#9aa4b2;transition:width .6s ease}
.he-cand.is-first .he-bar b{background:var(--he-c)}
.he-party{display:inline-block;padding:1px 8px;border-radius:999px;background:var(--hc-surface);font-size:12px;color:var(--hc-muted)}
.he-tag{display:inline-block;padding:1px 8px;border-radius:4px;background:var(--he-c2);color:var(--he-c);font-style:normal;font-size:11px;font-weight:700}
.he-tag.is-inc{background:var(--hc-surface);color:var(--hc-muted);font-weight:600}
.he-tag.is-win{background:#17703d;color:#fff}
.he-all{margin-top:10px;border:0;background:none;padding:0;font:inherit;font-size:14px;font-weight:600;color:var(--he-c);cursor:pointer;text-decoration:underline}
.he-seats{margin:14px 0;padding:12px 14px;border-radius:8px;background:var(--hc-surface)}
.he-seats h3{margin:0 0 8px;font-size:15px}
.he-seat{display:grid;grid-template-columns:minmax(90px,160px) 1fr 40px;align-items:center;gap:10px;font-size:14px;margin:4px 0}
.he-seat i{height:12px;border-radius:6px;background:#e3e1dc;overflow:hidden}
.he-seat b{display:block;height:100%;background:var(--he-c)}
.he-seat strong{text-align:end}
.he-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;padding:6px 20px 14px}
.he-box{padding:12px 14px;border:1px solid var(--hc-line);border-radius:8px}
.he-box h3{margin:0 0 8px;font-size:15px}
.he-dates{list-style:none;margin:0;padding:0;font-size:14px}
.he-dates li{display:flex;flex-direction:column;padding:6px 0;border-top:1px solid var(--hc-line)}
.he-dates li:first-child{border-top:0}
.he-dates strong{color:var(--he-c)}
.he-links{margin:0;padding-inline-start:18px;line-height:2;font-size:14px}
.he-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:10px 20px 14px;border-top:1px solid var(--hc-line);font-size:12px;color:var(--hc-muted)}
.he-more{margin-inline-start:auto;font-weight:700;font-size:14px;color:var(--he-c)}
.he-empty{color:var(--hc-muted)}
.he-panel--compact .he-head h2{font-size:20px}
@media (max-width:600px){
	.he-head{flex-direction:column}
	.he-head h2{font-size:20px}
	.he-count span{min-width:48px}
	.he-cands.is-list{grid-template-columns:1fr}
	.he-body,.he-info{padding-inline:14px}
}
@media (prefers-reduced-motion:reduce){.he-bar b{transition:none}.he-live i{animation:none}}
.he-city{display:flex;align-items:center;gap:10px;margin:16px 0 6px;padding:12px 14px;border-radius:10px;background:var(--he-c2);font-weight:700}
.he-city select{flex:1;max-width:420px;height:46px;padding:0 12px;border:1px solid var(--hc-line-2);border-radius:8px;font:inherit;font-size:16px;font-weight:600;background:var(--hc-bg,#fff)}
.he-cityoff{margin:4px 0 0;font-size:13px}
/* Ontario map */
.he-map{margin:16px 20px 0;border:1px solid var(--hc-line);border-radius:10px;overflow:hidden;background:var(--hc-bg,#fff)}
.he-map__bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:10px 14px;border-bottom:1px solid var(--hc-line)}
.he-map__bar strong{font-size:15px}
.he-map__hint{font-size:13px;color:var(--hc-muted)}
.he-map__zoom{margin-inline-start:auto;padding:6px 12px;border:1px solid var(--he-c);border-radius:999px;background:var(--hc-bg,#fff);color:var(--he-c);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.he-map__zoom[aria-pressed="true"]{background:var(--he-c);color:#fff}
.he-map__box{position:relative}
.he-map__svg{display:block;width:100%;height:auto;--k:1;direction:ltr}
.he-map__water{fill:#dce9f2}
.he-map__on{fill:#fff;stroke:#a9bccb;stroke-width:.8;vector-effect:non-scaling-stroke}
.he-map__other{fill:#ece9e3;stroke:#c9c4bb;stroke-width:.6;vector-effect:non-scaling-stroke}
.he-map__inset rect{fill:#dce9f2;stroke:#a9bccb;stroke-width:1;vector-effect:non-scaling-stroke}
.he-map__inset path{fill:#fff;stroke:#a9bccb;stroke-width:.6;vector-effect:non-scaling-stroke}
.he-map__inset .he-map__frame{fill:none;stroke:var(--he-c);stroke-dasharray:3 2}
.he-map.is-zoomed .he-map__inset,.he-map.is-zoomed .he-dot.is-inset{display:none}
.he-dot{cursor:pointer;outline:none}
.he-dot .he-hit{fill:transparent;stroke:none}
.he-dot circle{fill:var(--he-c);fill-opacity:.82;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke;transition:fill-opacity .15s}
.he-dot text{font-size:calc(12px * var(--k));font-weight:700;fill:var(--hc-ink,#15171c);paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none;opacity:0;font-family:inherit}
.he-dot.is-major text,.he-map.is-zoomed .he-dot text,.he-dot:hover text,.he-dot:focus text,.he-dot.is-on text{opacity:1}
.he-dot.is-none circle{fill:#9aa4b2}
.he-dot.is-res circle{fill:#d9822b}
.he-dot.is-won circle{fill:#17703d}
.he-dot:hover circle,.he-dot:focus circle{fill-opacity:1}
.he-dot.is-on circle{fill-opacity:1;stroke:var(--hc-ink,#15171c);stroke-width:3}
.he-dot.is-on text{font-size:calc(14px * var(--k));fill:var(--he-c)}
.he-map__tip{position:absolute;z-index:2;transform:translate(-50%,calc(-100% - 10px));min-width:150px;max-width:240px;padding:8px 10px;border-radius:8px;background:var(--hc-ink,#15171c);color:#fff;font-size:13px;line-height:1.6;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.he-map__tip.is-below{transform:translate(-50%,10px)}
.he-map__tip strong,.he-map__tip span{display:block}
.he-map__tip small{color:#c9ced6}
.he-map__legend{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0;padding:8px 14px;list-style:none;border-top:1px solid var(--hc-line);font-size:12px;color:var(--hc-muted)}
.he-map__legend i{display:inline-block;width:10px;height:10px;margin-inline-end:6px;border-radius:50%;background:var(--he-c);vertical-align:-1px}
.he-map__legend i.is-res{background:#d9822b}.he-map__legend i.is-won{background:#17703d}.he-map__legend i.is-none{background:#9aa4b2}
.he-news{margin:4px 20px 12px;padding-top:10px;border-top:1px solid var(--hc-line)}
.he-news h3{margin:0 0 6px;font-size:15px}
.he-news ul{margin:0;padding:0;list-style:none}
.he-news li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px dashed var(--hc-line);font-size:14px}
.he-news li:first-child{border-top:0}
.he-news a{color:inherit;font-weight:600;text-decoration:none}
.he-news a:hover{color:var(--he-c)}
.he-news time{flex:0 0 auto;font-size:12px;color:var(--hc-muted)}
@media (max-width:600px){
	.he-map{margin-inline:14px}
	.he-map__hint{display:none}
	.he-map__zoom{margin-inline-start:0;width:100%}
	.he-dot text{font-size:calc(11px * var(--k))}
	.he-map:not(.is-zoomed) .he-dot.is-major2:not(.is-on) text{opacity:0}
	.he-dot.is-on text{font-size:calc(13px * var(--k))}
	.he-news{margin-inline:14px}
}

/* ---- Look v2 (Haytham, Oct 15): red frame, red header, incumbents in red, initials ---- */
.he-panel{border:2px solid var(--he-c);border-radius:14px;box-shadow:0 6px 22px rgba(143,20,25,.08)}
.he-panel--municipal{--he-c:#bc1b21;--he-cd:#8f1419;--he-c2:#fdf1f1}
.he-head{align-items:center;padding:18px 22px;background:linear-gradient(135deg,var(--he-cd,var(--he-c)) 0%,var(--he-c) 60%,#d8343a 100%);color:#fff;position:relative;overflow:hidden}
.he-head::after{content:"";position:absolute;inset-inline-end:-40px;top:-60px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.07);pointer-events:none}
.he-head__txt{flex:1;min-width:0;position:relative;z-index:1}
.he-icon{flex:0 0 54px;height:54px;border-radius:14px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;color:#fff;position:relative;z-index:1}
.he-head .he-type{color:#fff;background:rgba(0,0,0,.18);padding:2px 10px;border-radius:999px}
.he-head h2{color:#fff}
.he-head .he-date{color:rgba(255,255,255,.88)}
.he-status{position:relative;z-index:1}
.he-status small{color:rgba(255,255,255,.85)}
.he-count span{background:rgba(255,255,255,.96);box-shadow:0 2px 6px rgba(0,0,0,.12);color:#5c5f66}
.he-count b{color:var(--he-cd,var(--he-c))}
.he-live{background:var(--hc-bg,#fff);color:var(--he-c)}
.he-live i{background:var(--he-c)}
.he-done{background:var(--hc-bg,#fff);color:var(--he-c)}
.he-city{border:1px solid #f3cfd0;background:var(--he-c2)}
.he-city span::before{content:"📍";margin-inline-end:6px}
.he-city select,.he-ward select{border-color:#e7b9bb}
.he-city select:focus,.he-ward select:focus{outline:2px solid var(--he-c);outline-offset:1px}
.he-tabs{gap:8px}
.he-tabs button{border-color:#ecc5c6;color:var(--he-cd,var(--he-c));transition:background .15s,color .15s}
.he-tabs button:hover{background:var(--he-c2)}
.he-tabs button[aria-selected="true"],.he-tabs button[aria-selected="true"]:hover{background:var(--he-c);border-color:var(--he-c);color:#fff;box-shadow:0 3px 10px rgba(188,27,33,.25)}
.he-ward select{background:var(--hc-bg,#fff)}
.he-tabs__n{display:inline-block;min-width:22px;margin-inline-start:4px;padding:0 6px;border-radius:999px;background:var(--he-c2);color:var(--he-c);font-size:12px;line-height:20px}
.he-tabs button[aria-selected="true"] .he-tabs__n{background:rgba(255,255,255,.22);color:#fff}
.he-sum{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:6px 0 12px;font-size:13px;color:#5c5f66}
.he-sum b{color:var(--hc-ink,#15171c);font-size:15px}
.he-sum i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:6px;vertical-align:-1px}
.he-sum__inc i{background:#bc1b21}
.he-sum__mem i{background:var(--hc-bg,#fff);border:2px solid #bc1b21}
.he-cands.is-list{gap:8px 14px}
.he-cand{display:flex;align-items:flex-start;gap:10px}
.he-cands.is-list .he-cand{align-items:center;padding:8px 10px;border:1px solid #eeeae6;border-radius:10px;background:var(--hc-bg,#fff);transition:border-color .15s,box-shadow .15s}
.he-cands.is-list .he-cand:hover{border-color:#e2b3b5;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.he-cand__main{flex:1;min-width:0}
.he-ava{flex:0 0 38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700;letter-spacing:.5px;direction:ltr}
.he-cand.is-inc .he-ava{box-shadow:0 0 0 3px #fff,0 0 0 5px #bc1b21}
.he-cand.is-member .he-ava{box-shadow:0 0 0 2px #fff,0 0 0 4px #e48a8d}
.he-cands.is-list .he-cand.is-inc{border:2px solid #bc1b21;background:var(--hc-surface,#fdf1f1)}
.he-cands.is-list .he-cand.is-member{border-color:#eaa9ab;background:var(--hc-surface,#fffafa)}
.he-cand.is-inc .he-cand__name{color:#8f1419;font-weight:700}
.he-cand__name{display:block;line-height:1.6}
.he-tags{display:inline-flex;flex-wrap:wrap;gap:4px;vertical-align:middle}
.he-tag.is-inc{background:#bc1b21;color:#fff;font-weight:700}
.he-tag.is-member{background:var(--hc-bg,#fff);color:#bc1b21;border:1px solid #bc1b21;font-weight:700}
.he-tag.is-lead{background:#fff4d6;color:#8a5a00}
.he-cand.is-first .he-bar b{background:linear-gradient(90deg,var(--he-c),#e2474c)}
.he-cands:not(.is-list) .he-cand{padding:8px 0;border-bottom:1px solid #f1eeea}
.he-cands:not(.is-list) .he-cand:last-child{border-bottom:0}
.he-polls b{background:linear-gradient(90deg,var(--he-cd,var(--he-c)),var(--he-c))}
.he-box{border-color:#f0d6d7;border-top:3px solid var(--he-c)}
.he-foot{background:var(--hc-surface,#fbf9f7)}
.he-more{color:var(--he-c)}
@media (max-width:600px){
	.he-head{flex-direction:row;flex-wrap:wrap;padding:16px}
	.he-icon{flex-basis:44px;height:44px}
	.he-icon svg{width:24px;height:24px}
	.he-status{flex:1 1 100%;text-align:start}
	.he-ava{flex-basis:34px;height:34px;font-size:12px}
}

/* Election-night rehearsal (editors only) */
.he-demo{margin:0 0 12px;padding:8px 12px;border-radius:8px;background:#bc1b21;color:#fff;font-weight:700;font-size:.9rem;text-align:center}
