/* Palette 1: neutral editorial glass; country and party identities are separate. */
html{--piq-accent:#d71938;--piq-ink:#11212d;--piq-muted:#526575;--piq-base:#f3f5f5;--piq-panel:#ffffffd6;--piq-glass:#ffffffb8;--piq-input:#ffffffd9;--piq-hover:#e6ecef;--piq-border:#b7c4cb8c;--piq-map-ocean:#e9eff2;--piq-map-land:#c2cdd2;--piq-map-stroke:#f4f7f8;--piq-label-halo:#f4f7f8;--piq-shadow:0 14px 44px #06141b0a,inset 0 1px #ffffffe6;color-scheme:light}
html[data-resolved-theme=dark]{--piq-accent:#ff4f64;--piq-ink:#f1f4f5;--piq-muted:#a7b6bf;--piq-base:#06141b;--piq-panel:#11212ded;--piq-glass:#11212dc9;--piq-input:#253745a8;--piq-hover:#304755;--piq-border:#6a81934d;--piq-map-ocean:#0b1d28;--piq-map-land:#3c5363;--piq-map-stroke:#11212d;--piq-label-halo:#11212d;--piq-shadow:0 18px 55px #0003,inset 0 1px #ffffff0c;color-scheme:dark}
html[data-resolved-theme] body[data-piq-design]{--ink:var(--piq-ink);--text:var(--piq-ink);--muted:var(--piq-muted);--paper:var(--piq-base);--bg:var(--piq-base);--surface:var(--piq-panel);--card:var(--piq-panel);--line:var(--piq-border);--border:var(--piq-border);--accent:var(--piq-accent);--studio-ink:var(--piq-ink);--studio-muted:var(--piq-muted);--studio-border:var(--piq-border);--studio-panel:var(--piq-glass);--studio-shadow:var(--piq-shadow);background:radial-gradient(ellipse at 0 0,#9ba8ab13,transparent 45%),radial-gradient(ellipse at 100% 15%,#4a5c6a0b,transparent 45%),var(--piq-base)!important;color:var(--piq-ink)!important;background-attachment:fixed}
html[data-resolved-theme] body[data-piq-design] :is(.panel,.race-card,.municipality,.coverage-stats>div,.about-grid>div,.poll-average,.poll-context,.ft-highlight,.poll-archive,.pa-notes,.fp-panel,.outlook-card,.us-card,.br-card,.eu-map-panel,.eu-seat-panel,.eu-riding-detail,.eu-country-card,.eu-feature-card,.eu-ep-panel,.en-profile,.en-facts article,.en-institution-details,.el-map-glass,.el-map-detail,.el-leader-grid article,.eu-country-coverage,.eu-method,.eu-members,.en-country-map,.en-party-table,.en-chamber-grid article,.in-panel,.in-stat,.in-results,.in-map-panel,.in-card,.studio-disclosure){background:var(--piq-glass)!important;background-image:linear-gradient(135deg,#9ba8ab09,transparent)!important;border-color:var(--piq-border)!important;color:var(--piq-ink);box-shadow:var(--piq-shadow);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html[data-resolved-theme] body[data-piq-design] :is(.masthead,.in-header,.top,.piq-preferences){background:var(--piq-glass)!important;color:var(--piq-ink);border-color:var(--piq-border);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
html[data-resolved-theme] body[data-piq-design] :is(h1,h2,h3,h4,.wordmark,.brand,.panelhead,.eu-party-row b,.eu-vote-table th,.en-party-table th,.el-mini-facts b,.el-leader-name,.en-facts b){color:var(--piq-ink)}
html[data-resolved-theme] body[data-piq-design] :is(.small,.muted,.eyebrow,.eu-kicker,.eu-detail-note,.eu-map-instruction,.eu-map-summary,.en-source-note,.en-map-disclosure,.en-chart-key,.el-geometry-note,.el-leader-line,.el-leader-line span,.el-leader-context,.el-leader-grid small,.el-map-foot,#el-status,.eu-breadcrumb,.eu-page-jumps,.piq-footer,.en-facts small,.en-facts span,.en-country-map p,.en-country-map small){color:var(--piq-muted)!important}
html[data-resolved-theme] body[data-piq-design] :is(input,select,textarea){color:var(--piq-ink)!important;background:var(--piq-input)!important;border-color:var(--piq-border)!important}html[data-resolved-theme] body[data-piq-design] input::placeholder{color:var(--piq-muted)}
html[data-resolved-theme] body[data-piq-design] :is(button,.eu-years a,.eu-page-jumps a){color:var(--piq-ink);background-color:var(--piq-input);border-color:var(--piq-border)}html[data-resolved-theme] body[data-piq-design] :is(button:hover,.eu-years a:hover,.eu-page-jumps a:hover){background-color:var(--piq-hover)}
html[data-resolved-theme] body[data-piq-design] :is(button,a,input,select,summary):focus-visible{outline:3px solid var(--piq-accent);outline-offset:3px}html[data-resolved-theme] body[data-piq-design] :is(th,td){border-color:var(--piq-border)}
html[data-resolved-theme] body[data-piq-design] :is(.map,.map-canvas,.ontario-map-canvas,.el-map-stage,.eu-national-map,.en-country-map,.in-map,.map-panel .map-wrap){background-color:var(--piq-map-ocean)!important;background-image:none!important}
html[data-resolved-theme] body[data-piq-design] :is(.en-source-note,.en-no-election,.en-local-map-link,.el-mini-facts>span,.el-party-monogram,.eu-status,.eu-source-pill,.en-status){background:var(--piq-input)!important;border-color:var(--piq-border)!important;color:var(--piq-muted)}
html[data-resolved-theme] body[data-piq-design] :is(.tip,.ontario-map-tooltip,#eu-map-tooltip,#tooltip,.fp-tooltip,.bc-hover){background:var(--piq-panel)!important;color:var(--piq-ink)!important;border-color:var(--piq-border)!important;box-shadow:var(--piq-shadow)}html[data-resolved-theme] body[data-piq-design] :is(.tip,.ontario-map-tooltip,#eu-map-tooltip,#tooltip,.fp-tooltip,.bc-hover) :is(p,span,small,b,strong,h3){color:inherit}
html[data-resolved-theme=dark] [data-piq-surface]{background-color:var(--piq-panel)!important;background-image:none!important}html[data-resolved-theme=dark] [data-piq-ink]{color:var(--piq-ink)!important}html[data-resolved-theme=dark] [data-piq-muted]{color:var(--piq-muted)!important}
html[data-resolved-theme=light] .el-map-stage path{stroke:#f4f7f8}html[data-resolved-theme=dark] .el-map-stage path{stroke:#253745}html[data-resolved-theme] .el-map-stage a[aria-current=true] path{stroke:var(--piq-ink)}html[data-resolved-theme] .el-leading-party>span{color:var(--piq-muted)}
html[data-resolved-theme] .piq-preferences{font-family:system-ui;font-size:12px;border-color:var(--piq-border)}html[data-resolved-theme] .piq-preferences-inner{padding:6px 30px}.piq-preferences-controls{align-items:center;gap:14px}.piq-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px!important;border:1px solid var(--piq-border);border-radius:999px!important;color:var(--piq-ink)!important;background:var(--piq-input)!important;cursor:pointer;font:600 11px/1 system-ui;white-space:nowrap}.piq-theme-toggle svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.piq-theme-sun{display:none}html[data-resolved-theme=dark] .piq-theme-moon{display:none}html[data-resolved-theme=dark] .piq-theme-sun{display:inline-flex}html[data-resolved-theme] .piq-theme-toggle:hover{background:var(--piq-hover)!important}html[data-resolved-theme] .piq-preferences-brand{color:var(--piq-ink)}
.piq-viewport-host{position:relative}.piq-map-toolbar{position:absolute;top:10px;right:10px;display:flex;align-items:center;gap:4px;padding:5px;background:var(--piq-glass);border:1px solid var(--piq-border);border-radius:12px;box-shadow:var(--piq-shadow);backdrop-filter:blur(18px);z-index:5}.piq-map-toolbar button{min-width:35px;min-height:35px;padding:5px 8px;border:0;border-radius:8px;font:600 15px system-ui;background:var(--piq-input);color:var(--piq-ink);cursor:pointer}.piq-map-toolbar .piq-map-fit{font-size:10px}.piq-map-toolbar output{font-size:9px;min-width:28px;color:var(--piq-muted);text-align:center}.piq-zoomable-map{touch-action:pan-y}.piq-zoomable-map.piq-is-zoomed{touch-action:none;cursor:grab}.piq-zoomable-map.piq-dragging{cursor:grabbing}.piq-map-native-zoom{display:none!important}.piq-map-hint{position:absolute;bottom:7px;left:9px;font:9px system-ui;color:var(--piq-muted);background:var(--piq-glass);border:1px solid var(--piq-border);padding:5px 8px;border-radius:8px;z-index:2;pointer-events:none}
@media(max-width:700px){html[data-resolved-theme] .piq-preferences-inner{padding:6px 14px}.piq-theme-toggle{min-height:40px;min-width:42px;padding:8px!important}.piq-theme-state{display:none}.piq-map-toolbar button{min-height:42px;min-width:40px}.piq-map-toolbar{top:6px;right:6px}.piq-map-hint{font-size:8px;max-width:70%}.el-controls select,.eu-map-controls select{max-width:100%}}
@media(forced-colors:active){.piq-theme-toggle,.piq-map-toolbar{border:1px solid ButtonText}.world-land.is-covered{forced-color-adjust:none}.piq-map-hint{display:none}}
/* Image covers keep white overlay type in both appearance modes. */
html[data-resolved-theme] body.us-election[data-piq-design] .us-cover h1{color:#f4f7f8!important}html[data-resolved-theme] body.us-election[data-piq-design] .us-cover .eyebrow{color:#c7d2dd!important}
html[data-resolved-theme] body[data-piq-design] .navigation a[aria-current=page],html[data-resolved-theme] body[data-piq-design] .navigation details:has(a[aria-current=page])>summary{color:var(--piq-accent)!important;background:color-mix(in srgb,var(--piq-accent),transparent 93%)}
.eu-continent>.piq-map-toolbar{top:45px;right:15px}
