/* Election mode (data/elections.json, lib/render-election.js). Loaded on every page; inert when nothing uses it. */

:root { --e-ink: #1d3f7a; --e-navy: #13294f; --e-rule: #13294f; --e-blue: #1f4fa0; --e-red: #c62828; --e-yes: #0d7a3e; --e-no: #b3261e; }
@media (prefers-color-scheme: dark) { :root { --e-ink: #8fb3ff; --e-rule: #5b8dff; } }

/* chrome */
.w-util-vote::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5b8dff; margin-right: 7px; vertical-align: 1px; }

/* shared */
.e-party { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 3px; font: 800 10.5px/1 var(--sans); color: #fff; text-decoration: none; letter-spacing: .02em; vertical-align: 2px; cursor: help; }
.e-party-D { background: #1f5bb5; }
.e-party-R { background: #c62828; }
.e-party-I { background: #5b6270; }
.e-party-N { background: #8a8f99; }
.e-face { position: relative; display: block; flex: none; overflow: hidden; background: var(--c, #5b6170); border-radius: 6px; aspect-ratio: 1; }
.e-face img { width: 100%; height: 100%; object-fit: cover; }
.e-face-i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 1.25em/1 var(--display); letter-spacing: .02em; }
.e-face.is-sm { width: 34px; border-radius: 50%; font-size: 12px; }
.e-stage { flex: none; font: 800 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 3px; background: #24324f; color: #cfe0ff; }
.e-stage-voting { background: #0d7a3e; color: #fff; }
.e-stage-counting { background: #c8102e; color: #fff; }
.e-stage-final { background: #fff; color: #15171c; }
.e-won { display: inline-block; margin-left: 6px; font: 800 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; background: var(--e-yes); color: #fff; padding: 3px 6px; border-radius: 3px; vertical-align: 3px; }
.e-source { font: 500 13px/1.45 var(--sans); color: var(--muted); margin: 10px 0 0; }
.e-empty { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.e-sec-note { font: 500 13.5px/1.3 var(--sans); color: var(--muted); text-align: right; }

/* ---- site theme while election mode is on (body.is-election) ---- */
.is-election .w-util { background: #0a1426; }
.is-election .w-brandbar { background: linear-gradient(90deg, rgba(19, 41, 79, 0) 0, rgba(19, 41, 79, .15) 16%, var(--e-navy) 44%), url('/img/election/stars.svg') 0 0 / 44px 40px repeat, var(--e-navy); border-bottom: 0; }
.is-election .w-search button { background: var(--e-red); }
.is-election .w-search button:hover { background: #a51f1f; }
.is-election .w-nav { background: #0c1a33; border-bottom-color: var(--e-red); }
.is-election .w-nav a { color: #cdd6e6; border-right-color: #1c2c4b; }
.is-election .w-nav li:first-child a { border-left-color: #1c2c4b; }
.is-election .w-nav a:hover { background: #172a4d; color: #fff; }
.is-election .w-nav a[href="/elections"] { color: #fff; background: #1d3f7a; }
.is-election .w-nav a[href="/elections"]::before { content: ''; display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; background: #fff; -webkit-mask: url('/img/election/star.svg') center / contain no-repeat; mask: url('/img/election/star.svg') center / contain no-repeat; }
.is-election .w-nav a[aria-current="page"] { background: var(--e-red); color: #fff; }
.is-election .w-ticker .w-ticker-label { background: var(--e-navy); }
.is-election .w-sec-link[aria-current="page"] { background: var(--e-navy); color: #fff; }
.is-election .w-sec-link[aria-current="page"] small { color: #a9b6d0; }
.is-election .w-sec-link[aria-current="page"] .w-ico, .is-election .w-sec-link[href="/elections"] .w-ico { color: var(--e-red); opacity: 1; }
.is-election .w-foot { background: #0c1a33; border-top: 0; }
.is-election .w-foot::before { content: ''; display: block; height: 6px; background: linear-gradient(90deg, var(--e-red) 0 33.4%, #f4f4f1 33.4% 66.6%, var(--e-blue) 66.6%); }
.is-election .w-foot-brand, .is-election .w-foot-rooms { border-bottom-color: #1c2c4b; }
.is-election .w-sec-head { border-top-color: var(--e-rule); }
.is-election .w-main > .w-sec:nth-of-type(even) > .w-sec-head { border-top-color: var(--e-red); }
.is-election .w-sec-head h2::before, .is-election .w-kicker::before { content: ''; display: inline-block; width: .68em; height: .68em; margin-right: .38em; vertical-align: -.02em; background: var(--e-red); -webkit-mask: url('/img/election/star.svg') center / contain no-repeat; mask: url('/img/election/star.svg') center / contain no-repeat; }
.is-election .w-main > .w-sec:nth-of-type(even) > .w-sec-head h2::before { background: var(--e-rule); }
@media (prefers-color-scheme: dark) { .is-election .w-sec-link[aria-current="page"] { background: #2a4a85; color: #fff; } }

/* lockup in the brand bar */
.e-lockup { display: flex; align-items: center; gap: 12px; flex: none; padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.e-lockup:hover { color: #fff; }
.e-lockup:hover .e-lockup-name b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.e-flags { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.e-flags img { width: 38px; height: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.e-lockup-name { display: inline-flex; align-items: center; gap: 7px; font: 800 22px/1 var(--sans); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.e-lockup-name b { font-weight: 800; }
.e-lockup-name i { font-style: normal; background: var(--e-red); color: #fff; padding: 4px 7px 3px; border-radius: 3px; letter-spacing: .03em; }

/* bunting under the header */
.e-bunting { height: 26px; background: url('/img/election/bunting.svg') 0 0 / 104px 26px repeat-x; pointer-events: none; }

/* ---- race tracker (right rail) ---- */
.e-tracker { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.e-tracker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; color: #fff; background: linear-gradient(90deg, rgba(19, 41, 79, .1) 0, var(--e-navy) 75%), url('/img/election/stars.svg') 0 0 / 34px 31px repeat, var(--e-navy); border-bottom: 4px solid var(--e-red); }
.e-tracker-head a { display: grid; gap: 5px; color: #fff; min-width: 0; }
.e-tracker-head a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.e-tracker-brand { font: 800 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: #a9c4ff; }
.e-tracker-head b { font: 700 25px/1.05 var(--display); }
.e-tracker-head b small { display: block; margin-top: 4px; font: 600 12.5px/1.2 var(--sans); color: #c3cbe0; }
.e-tracker-list { list-style: none; margin: 0; padding: 2px 16px 0; }
.e-tracker-list li a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 0 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.e-tracker-list li:last-child a { border-bottom: 0; }
.e-tracker-list li.is-out { opacity: .5; }
.e-tracker-list a:hover b { color: var(--brand-ink); }
.e-face.is-tr { width: 44px; border-radius: 50%; }
.e-tr-name { flex: 1; min-width: 0; display: grid; gap: 4px; }
.e-tr-name b { font: 700 16.5px/1.15 var(--display); }
.e-tr-name small { display: flex; align-items: center; gap: 6px; min-width: 0; font: 500 12.5px/1.2 var(--sans); color: var(--muted); }
.e-tr-name small span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-tr-pct { font: 800 23px/1 var(--sans); font-variant-numeric: tabular-nums; }
.e-tr-pct small { font-size: .55em; margin-left: 1px; color: var(--muted); }
.e-tr-bar { position: absolute; left: 55px; bottom: 7px; height: 4px; max-width: calc(100% - 55px); border-radius: 2px; background: var(--c); }
.e-tracker-src { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font: 500 12.5px/1.45 var(--sans); color: var(--muted); }
.e-tracker-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--chip); }
.e-tracker-foot small { display: block; margin-bottom: 4px; font: 700 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.e-tracker-foot b { font: 700 15px/1.2 var(--sans); }
.e-tracker-foot a { flex: none; padding: 9px 12px; border-radius: 4px; background: var(--e-navy); color: #fff; font: 700 13px/1 var(--sans); }
.e-tracker-foot a:hover { background: var(--e-red); color: #fff; }

/* ---- homepage blocks ---- */
.e-strip ul { list-style: none; margin: 0; padding: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 18px 14px; }
.e-strip a { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--ink); }
.e-face.is-strip { width: 84px; margin-bottom: 8px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--c); }
.e-strip-name { font: 700 16.5px/1.15 var(--display); }
.e-strip-meta { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; font: 500 12.5px/1.2 var(--sans); color: var(--muted); }
.e-strip-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-strip a:hover .e-strip-name { color: var(--brand-ink); }
.e-strip li.is-out { opacity: .5; }
.e-ob-grid { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 28px; padding-top: 12px; }
.e-ob-col h3 { padding-bottom: 8px; border-bottom: 2px solid var(--line); font: 800 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--e-ink); }
.e-ob-col h3 a:hover { color: var(--brand-ink); }
.e-ob-col ul { list-style: none; margin: 0; padding: 0; }
.e-ob-col li a { display: grid; gap: 3px; padding: 10px 0; }
.e-ob-col li + li { border-top: 1px solid var(--line); }
.e-ob-col .w-compact { border-bottom: 0; padding: 10px 0; }
.e-ob-kind { font: 700 11.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.e-ob-col li b { font: 600 17px/1.25 var(--display); color: var(--ink); }
.e-ob-col li a:hover b { color: var(--brand-ink); }
.e-ob-sub { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.e-adwatch-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; padding: 14px 0 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.e-adwatch figure { margin: 0; scroll-snap-align: start; }
.e-adwatch a { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #0f1115; border-bottom: 4px solid var(--c); }
.e-adwatch img { width: 100%; height: 100%; object-fit: contain; }
.e-adwatch figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.e-adwatch figcaption b { display: block; font: 700 15.5px/1.2 var(--display); color: var(--ink); }

/* ---- results and candidate tables ---- */
.e-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.e-table th, .e-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.e-table thead th { font: 700 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 4px 8px 9px; border-bottom: 2px solid var(--ink); }
.e-table tbody th { font-weight: 400; width: 46%; }
.e-who { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.e-who .e-face { width: 52px; border-radius: 50%; }
.e-who-text b { font: 600 18px/1.2 var(--display); margin-right: 7px; }
.e-who-text small { display: block; font: 500 13px/1.3 var(--sans); color: var(--muted); margin-top: 2px; }
a.e-who:hover b { color: var(--brand-ink); }
.e-bar-cell { width: 40%; }
.e-bar { display: block; height: 14px; background: var(--chip); border-radius: 2px; overflow: hidden; }
.e-bar i { display: block; height: 100%; background: var(--c); }
.e-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.e-table .e-num b { font: 700 18px/1 var(--sans); }
.e-table.is-compact th, .e-table.is-compact td { padding: 8px 6px; }
.e-table.is-compact tbody th { width: auto; }
.e-table.is-compact .e-who-text b { font-size: 16px; }
.e-table tr.is-out { opacity: .55; }

/* ---- /elections ---- */
.e-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; background: #0f1115; color: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.e-hero::before { content: ''; display: block; height: 5px; background: linear-gradient(90deg, var(--e-red) 0 33.4%, #f4f4f1 33.4% 66.6%, var(--e-blue) 66.6%); position: absolute; inset: 0 0 auto; z-index: 1; }
.e-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.e-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 16, 0) 25%, rgba(10, 12, 16, .9) 100%); }
.e-hero-text { position: relative; z-index: 1; padding: 120px 32px 28px; max-width: 920px; }
.e-hero h1 { font: 700 54px/1.02 var(--display); }
.e-hero-intro { font: 400 19px/1.45 var(--serif); color: #e2e4e8; margin: 12px 0 0; max-width: 720px; }
.e-hero-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #fff; }
.e-hero-kicker .e-lockup-name { font-size: 18px; }
.e-hero-meta { margin-top: 16px; }
.e-hero.no-img { min-height: 0; }
.e-hero.no-img .e-hero-text { padding-top: 40px; }
.e-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; }
.e-jump a { font: 700 13px/1 var(--sans); padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.e-jump a:hover { border-color: var(--ink); color: var(--ink); }
.e-sec { margin-bottom: 42px; scroll-margin-top: 16px; }
.e-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.e-card { position: relative; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px 12px 17px; overflow: hidden; }
.e-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.e-card:hover { border-color: var(--line-2); }
.e-card:hover b { color: var(--brand-ink); }
.e-card.is-out { opacity: .55; }
.e-face.is-card { width: 84px; }
.e-card-text { display: grid; gap: 4px; min-width: 0; }
.e-card-text b { font: 700 19px/1.15 var(--display); color: var(--ink); }
.e-card-meta { display: flex; align-items: center; gap: 6px; font: 500 13px/1.2 var(--sans); color: var(--muted); }
.e-card-slogan { font: italic 400 14.5px/1.35 var(--serif); color: var(--ink-2); }
.e-scroll { overflow-x: auto; }
.e-polls { width: 100%; min-width: 640px; border-collapse: collapse; margin-top: 8px; }
.e-polls th, .e-polls td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.e-polls thead th { font: 700 12px/1.1 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.e-poll-c { display: inline-block; border-bottom: 3px solid var(--c); padding-bottom: 3px; }
.e-polls tbody th { text-align: left; font-weight: 400; }
.e-polls tbody th b { display: block; font: 600 15px/1.2 var(--sans); }
.e-polls tbody th small { font-size: 12.5px; color: var(--muted); }
.e-polls td { font-size: 15px; }
.e-polls td.is-top { font-weight: 800; }
.e-races { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.e-race { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 16px 12px; scroll-margin-top: 16px; }
.e-race h3 { font: 700 19px/1.2 var(--display); }
.e-race-area { font-size: 13.5px; color: var(--muted); margin: 3px 0 0; }
.e-props { display: grid; gap: 16px; margin-top: 14px; }
.e-prop { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; scroll-margin-top: 16px; }
.e-prop-num { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--e-ink); }
.e-prop h3 { font: 700 23px/1.2 var(--display); margin-top: 7px; }
.e-prop-sum { font: 400 16.5px/1.5 var(--serif); color: var(--ink-2); margin: 8px 0 0; }
.e-outcome { font: 800 11px/1 var(--sans); letter-spacing: .06em; padding: 4px 7px; border-radius: 3px; color: #fff; }
.e-outcome.is-yes { background: var(--e-yes); }
.e-outcome.is-no { background: var(--e-no); }
.e-yn { display: flex; gap: 2px; height: 28px; margin-top: 14px; border-radius: 4px; overflow: hidden; font: 700 12.5px/28px var(--sans); color: #fff; }
.e-yn span { flex: 0 1 auto; min-width: 0; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.e-yn-yes { background: var(--e-yes); }
.e-yn-no { background: var(--e-no); text-align: right; }
.e-means { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 0; }
.e-means div { border-top: 3px solid var(--e-yes); padding-top: 8px; }
.e-means div + div { border-top-color: var(--e-no); }
.e-means dt { font: 800 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.e-means dd { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.e-vote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 14px; }
.e-vote.no-img { grid-template-columns: 1fr; }
.e-vote-img { margin: 0; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--chip); }
.e-vote-img img { width: 100%; height: 100%; object-fit: cover; }
.e-vote-when { font: 700 19px/1.3 var(--display) !important; color: var(--ink) !important; }
.e-vote-text p { font: 400 16.5px/1.55 var(--serif); color: var(--ink-2); margin: 0 0 12px; }
.e-places { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
.e-places th, .e-places td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.e-places thead th { font: 700 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.e-places tbody th { font-weight: 600; }

/* ---- candidate page ---- */
.e-profile-banner { margin: 4px 0 0; aspect-ratio: 16 / 5; border-radius: 8px; overflow: hidden; background: var(--c); }
.e-profile-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.e-profile-head { position: relative; display: flex; align-items: flex-end; gap: 22px; margin: -70px 0 30px 28px; }
.e-profile-head.no-banner { margin: 16px 0 30px; }
.e-face.is-profile { width: 156px; border: 4px solid var(--bg); border-radius: 10px; box-sizing: content-box; }
.e-profile-head h1 { font: 700 50px/1.02 var(--display); }
.e-profile-meta { display: flex; align-items: center; gap: 8px; margin: 9px 0 0; font: 600 15px/1.3 var(--sans); color: var(--ink-2); }
.e-slogan { font: italic 400 19px/1.4 var(--serif); color: var(--ink-2); margin: 8px 0 0; }
.e-psec { margin-bottom: 36px; scroll-margin-top: 16px; }
.e-psec > h2 { font: 700 26px/1.2 var(--display); border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 12px; }
.e-psec .w-body { font-size: 19px; }
.e-platform { list-style: none; margin: 0; padding: 0; }
.e-platform li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); font: 400 17.5px/1.45 var(--serif); }
.e-platform li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.e-statement-meta { font: 500 13.5px/1.4 var(--sans); color: var(--muted); margin: 0 0 14px; }
.e-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.e-ads figure { margin: 0; }
.e-ads a { display: block; aspect-ratio: 16 / 10; background: var(--chip); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.e-ads img { width: 100%; height: 100%; object-fit: contain; }
.e-ads figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.e-facts dl { margin: 0; padding-top: 12px; }
.e-facts dl div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.e-facts dl div:last-child { border-bottom: 0; }
.e-facts dt { font: 700 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.e-facts dd { margin: 5px 0 0; font: 600 15px/1.35 var(--sans); color: var(--ink); }
.e-facts dd small { font-weight: 500; color: var(--muted); }

/* ---- rail box ---- */
.e-rail-list { list-style: none; margin: 0; padding: 0; }
.e-rail-list li a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 0 13px; border-bottom: 1px solid var(--line); color: var(--ink); }
.e-rail-list li:last-child a { border-bottom: 0; }
.e-rail-list a:hover .e-rail-name { color: var(--brand-ink); }
.e-rail-name { flex: 1; min-width: 0; font: 600 14.5px/1.2 var(--sans); }
.e-rail-list b { font: 800 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.e-rail-list i { position: absolute; left: 44px; bottom: 6px; height: 3px; max-width: calc(100% - 44px); border-radius: 2px; background: var(--c); }
.e-rail .e-source { margin-top: 4px; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .e-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .e-races, .e-vote { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .e-hero { min-height: 260px; }
  .e-hero h1 { font-size: 36px; }
  .e-hero-text { padding: 90px 18px 20px; }
  .e-hero-meta { flex-wrap: wrap; }
  .e-cards, .e-means { grid-template-columns: 1fr; }
  .e-who .e-face { width: 40px; }
  .e-table tbody th { width: auto; }
  .e-bar-cell { width: 28%; }
  .e-profile-head { flex-direction: column; align-items: flex-start; gap: 12px; margin: -48px 0 24px 14px; }
  .e-face.is-profile { width: 112px; }
  .e-profile-head h1 { font-size: 36px; }
  .e-profile-banner { aspect-ratio: 16 / 7; }
}
@media (max-width: 1100px) {
  .e-ob-grid { grid-template-columns: 1fr 1fr; }
  .e-ob-col:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .e-adwatch-row { grid-auto-columns: minmax(220px, calc((100% - 32px) / 3)); }
}
@media (max-width: 1239px) {
  .e-lockup { padding-left: 18px; }
}
@media (max-width: 900px) {
  .e-flags img { width: 30px; }
  .e-lockup-name { font-size: 18px; }
}
@media (max-width: 720px) {
  .e-lockup { padding-left: 12px; gap: 8px; }
  .e-lockup-name { font-size: 15px; gap: 5px; }
  .e-lockup-name i { padding: 3px 5px 2px; }
  .e-bunting { height: 20px; background-size: 80px 20px; }
  .e-ob-grid { grid-template-columns: 1fr; gap: 18px; }
  .e-face.is-strip { width: 68px; }
  .e-strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .e-adwatch-row { grid-auto-columns: 78%; }
}
@media (max-width: 480px) {
  .e-flags { display: none; }
}

/* ---- polls: tracker list, hub table labels ---- */
.e-rp { padding: 2px 16px 10px; border-top: 1px solid var(--line); }
.e-rp h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 4px; font: 800 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.e-rp h3 a { font-weight: 700; letter-spacing: .04em; color: var(--e-ink); }
.e-rp h3 a:hover { color: var(--brand-ink); }
.e-rp ul { list-style: none; margin: 0; padding: 0; }
.e-rp li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.e-rp li:first-child { border-top: 0; }
.e-rp-src { display: grid; gap: 2px; min-width: 0; }
.e-rp-src b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13.5px/1.2 var(--sans); }
.e-rp-src small { font-size: 12px; color: var(--muted); }
.e-rp-top { display: grid; justify-items: end; gap: 3px; flex: none; font: 500 12.5px/1.1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.e-rp-top span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; background: var(--c); }
.e-rp-top b { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.e-polls tbody th small { display: block; }
.e-poll-note { font-style: italic; margin-top: 2px; }
.e-polls tr.is-avg th, .e-polls tr.is-avg td { background: var(--chip); }
.e-polls tr.is-avg td { font-weight: 700; }
.e-polls tr.is-side th b, .e-polls tr.is-side td { color: var(--muted); }
.e-pk { display: inline-block; margin: 4px 0 2px; padding: 3px 6px; border: 1px solid currentColor; border-radius: 3px; font: 800 10px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.e-pk-internal { color: var(--e-no); }
.e-pk-regional { color: var(--e-ink); }
.e-pk-unscientific { color: #6b4fa0; }
@media (prefers-color-scheme: dark) { .e-pk-unscientific { color: #b9a4ff; } }
.e-mypolls { font-size: 15px; }
.e-mypolls tbody th { font-weight: 600; }
.e-mypolls tr.is-side th, .e-mypolls tr.is-side td { color: var(--muted); }
.e-mypolls .e-pk { margin: 0 0 0 6px; vertical-align: 1px; }
.e-more-note { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: 8px; font: 500 15px/1.45 var(--sans); color: var(--ink-2); }
.e-more-note::before { content: ''; flex: none; width: 14px; height: 14px; background: var(--e-red); -webkit-mask: url('/img/election/star.svg') center / contain no-repeat; mask: url('/img/election/star.svg') center / contain no-repeat; }
.e-ob-col li.e-ob-note { padding: 10px 0 0; font: italic 400 13.5px/1.4 var(--sans); color: var(--muted); }
