/* Congress editor is independent of ordinary parliamentary LIVE entries. */
.ewlive-us-layout-choice{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;padding-left:14px;margin-left:4px;border-left:1px solid #c3c4c7;font-weight:400}
.ewlive-us-layout-choice strong{font-size:12px;font-weight:600}.ewlive-us-layout-choice label{white-space:normal;font-size:12px;font-weight:400!important}
.ewlive-us-congress-settings{margin:16px 0;padding:18px;border:1px solid #c3c4c7;border-radius:5px;background:#fff}
.ewlive-us-congress-settings h2{margin:0 0 15px}.ewlive-us-names{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px}
.ewlive-us-names label span{display:block;margin-bottom:5px;font-size:12px;font-weight:500}.ewlive-us-names input{width:100%}
.ewlive-us-map-editor{border-top:1px solid #ddd;margin-top:20px;padding-top:15px}.ewlive-us-map-editor h3{margin:0 0 6px}
.ewlive-us-map{width:100%;position:relative}.ewlive-us-map-canvas{width:100%;background:#f8fafc;border-radius:5px;padding:6px;box-sizing:border-box;overflow:hidden;min-height:120px}
.ewlive-us-map-canvas svg{display:block;width:100%;height:auto;max-height:680px;user-select:none;touch-action:pan-y}
.ewlive-us-map-canvas svg [data-region]{cursor:pointer;transition:fill .12s ease;outline:none}
.ewlive-us-map-canvas svg [data-region]:hover{cursor:pointer}
.ewlive-us-map-canvas svg [data-region].ewlive-us-selected{outline:none}
.ewlive-us-map-editor-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#f4f5f6;border:1px solid #dedfe0;padding:10px;margin-top:8px}
.ewlive-us-map-editor-controls .ewlive-us-selection{flex:1 1 160px}.ewlive-us-map-editor-controls select{min-width:170px;max-width:240px}
.ewlive-us-save-status{font-size:12px;color:#2271b1}.ewlive-us-tooltip-global{position:fixed;z-index:2147483600;background:#20242a;color:white;box-shadow:0 5px 15px rgba(0,0,0,.3);border-radius:5px;padding:9px 12px;min-width:145px;pointer-events:none;font-size:13px;line-height:1.4}
.ewlive-us-tooltip-global[hidden]{display:none!important}.ewlive-us-tip-title{font-weight:600;margin-bottom:4px}.ewlive-us-tip-party{display:flex;align-items:center;gap:8px}
.ewlive-us-tip-party i,.ewlive-us-party-dot{width:10px;height:10px;display:inline-block;border-radius:50%;flex:none;border:1px solid rgba(0,0,0,.1)}
.ewlive-us-party-dot[data-party="REP"]{background:#d62828}.ewlive-us-party-dot[data-party="DEM"]{background:#2261ba}.ewlive-us-party-dot[data-party="IND"]{background:#666}.ewlive-us-party-dot[data-party="OTHER"]{background:#e58c2b}.ewlive-us-party-dot[data-party="NO_ELECTION"]{background:#aaaaaa}
.ewlive-us-congress-card .ewlive-us-chamber{margin:0 0 27px}.ewlive-us-congress-card .ewlive-us-chamber h5{margin:0 0 12px}
.ewlive-us-seat-chart{height:27px;display:flex;width:100%;border-radius:3px;overflow:hidden;background:#eee;border:1px solid #d5d5d5;box-sizing:border-box;margin:0 0 10px}
.ewlive-us-seat-chart>span{display:block;height:100%;flex:0 0 auto;min-width:0}
.ewlive-us-seat-chart>.ewlive-us-unassigned{background:#e5e7eb}
.ewlive-us-chart-legend{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 15px;margin:0 0 10px;font-size:13px}
.ewlive-us-chart-legend>span{display:inline-flex;align-items:center;gap:5px}
.ewlive-us-chart-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}
.ewlive-us-chart-legend img{width:23px;height:23px;object-fit:contain;background:white;border:1px solid #ddd;border-radius:4px}
.ewlive-us-congress-card .ewlive-us-chamber-table{width:100%}.ewlive-us-congress-card .ewlive-us-chamber-table tr>td:first-child{padding-left:8px}
.ewlive-us-front-maps{display:grid;grid-template-columns:1fr;gap:20px;margin:20px 0}
.ewlive-us-map-widget h5{margin:0 0 10px}.ewlive-us-party-legend{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center;font-size:13px;margin-bottom:18px}
.ewlive-us-party-legend span{display:inline-flex;align-items:center;gap:6px}
@media(max-width:980px){.ewlive-us-names{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:600px){.ewlive-us-names{grid-template-columns:1fr}.ewlive-us-map-editor-controls{align-items:stretch}.ewlive-us-map-editor-controls select{width:100%;max-width:none}.ewlive-us-seat-chart{height:22px}}

/* The dedicated Congress entry is manual-only in this phase. */
.ewlive-admin-wrap[data-us-special="1"] .ewlive-source-choice,
.ewlive-admin-wrap[data-us-special="1"] .ewlive-source-panel{display:none!important}

/* 3.2.135 — map seat counters and Senate holdover inputs */
.ewlive-us-map-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 15px;margin-top:8px;background:#f6f8fa;border:1px solid #e0e4e8;border-radius:5px;font-size:13px}
.ewlive-us-map-summary-title{font-weight:600;color:#374151}.ewlive-us-summary-chip{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.ewlive-us-summary-chip b{min-width:14px;font-variant-numeric:tabular-nums}
.ewlive-us-baseline{padding:12px 14px;margin-top:10px;border:1px solid #d5dbe2;background:#fafbfc;border-radius:5px}.ewlive-us-before-heading{display:block;font-weight:600;margin-bottom:9px}.ewlive-us-baseline-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.ewlive-us-baseline-row label{display:inline-flex;align-items:center;gap:6px;font-weight:400}.ewlive-us-baseline-row input[type=number]{width:72px;min-height:30px}.ewlive-us-before-status{font-size:12px;color:#2271b1}
.ewlive-us-admin-chamber .ewlive-us-map-summary{margin:0 12px 12px}.ewlive-us-summary-front{margin-top:8px}

/* 3.2.135: point-and-click map winner editor and standard chart integration */
.ewlive-us-floating-editor{position:absolute;z-index:50;min-width:215px;max-width:min(270px,95%);box-sizing:border-box;padding:11px;background:#fff;border:1px solid #aab5c2;border-radius:6px;box-shadow:0 8px 24px rgba(23,31,45,.25);color:#1d2327}
.ewlive-us-floating-editor[hidden]{display:none!important}.ewlive-us-floating-title{font-size:13px;font-weight:600;margin:0 22px 9px 0;line-height:1.4}
.ewlive-us-floating-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ewlive-us-floating-select{width:100%;max-width:240px;min-height:30px;font-size:13px}.ewlive-us-floating-save{margin:2px 0 0!important}
.ewlive-us-floating-close{position:absolute;top:3px;right:5px;background:transparent;border:0;cursor:pointer;padding:2px 5px;font-size:20px;color:#50575e}
.ewlive-us-floating-status{font-size:11px;color:#2271b1;display:block;margin-top:3px}
.ewlive-us-congress-card .ewlive-us-chamber>.mandaty-auto{margin:0 0 12px}
.ewlive-us-chart-logos{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px 16px;margin:0 0 12px;font-size:12px}
.ewlive-us-chart-logos span{display:inline-flex;align-items:center;gap:5px}.ewlive-us-chart-logos img{width:22px;height:22px;object-fit:contain}

/* 3.2.136 — Congress navigation and per-chamber front order. */
.ewlive-us-congress-tabs{display:flex;align-items:stretch;justify-content:flex-start;flex-wrap:wrap;gap:0;border-bottom:1px solid #cbd0d5;margin:0 0 22px;padding:0;max-width:100%}
/* Congress buttons inherit the site's existing #belowbutton and #belowbutton.active styles. */
.ewlive-us-congress-tabs > button[data-us-tab]{cursor:pointer}
.ewlive-us-congress-tabs > button[data-us-tab]:focus-visible{outline:2px solid #2271b1;outline-offset:2px}
.ewlive-us-congress-pane[hidden]{display:none!important}
.ewlive-us-congress-pane .ewlive-us-chamber{display:flex;flex-direction:column;gap:0;margin:0 0 24px!important;min-width:0}
.ewlive-us-congress-pane .ewlive-us-chamber>.ewlive-us-chart-logos{order:1;margin:0 0 10px!important}
.ewlive-us-congress-pane .ewlive-us-chamber>.mandaty-auto{order:2;margin:0 0 15px!important;max-width:100%}
.ewlive-us-congress-pane .ewlive-us-chamber>.ewlive-us-map-widget{order:3;margin:0 0 16px;width:100%;min-width:0}
.ewlive-us-congress-pane .ewlive-us-chamber>.ewlive-us-chamber-table{order:4;margin:0;width:100%}
.ewlive-us-congress-pane .ewlive-us-map-widget .ewlive-us-map{border:0;border-radius:0 0 3px 3px;padding:8px 10px 12px;box-sizing:border-box;background:#f5f5f5}
.ewlive-us-congress-pane .ewlive-us-map-widget .ewlive-us-map-canvas{background:#f5f5f5}
.ewlive-us-congress-pane .ewlive-us-map-widget .ewlive-us-party-legend{justify-content:center;text-align:center;margin:12px 0 10px;padding:0;gap:8px 18px;width:100%;box-sizing:border-box;background:transparent;border:0}
.ewlive-us-congress-pane .ewlive-us-map-widget .ewlive-us-party-legend>span{white-space:nowrap;font-size:13px}

/* 3.2.137: Congress maps, neutral legend cursors and full-width counting. */
.ewlive-us-congress-pane .ewlive-us-map-widget .ewlive-us-map{background:#f5f5f5;border-radius:0 0 3px 3px;border:0}
.ewlive-us-congress-pane .ewlive-us-map-widget .ewlive-us-map-canvas{border-radius:2px;background:#f5f5f5}
.ewlive-us-congress-card .ewlive-us-party-legend,
.ewlive-us-congress-card .ewlive-us-party-legend *,
.ewlive-us-congress-card .mandaty-auto__legend,
.ewlive-us-congress-card .mandaty-auto__legend *{cursor:default!important}
.ewlive-us-progress{width:100%;box-sizing:border-box;margin:18px 0 5px}
.ewlive-us-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:8px;color:#374151}
.ewlive-us-progress-heading strong{font-weight:650;font-variant-numeric:tabular-nums}
.ewlive-us-progress-track{height:13px;width:100%;border-radius:2px;background:#e5e7eb;overflow:hidden}
.ewlive-us-progress-fill{display:block;background:#2366bc;width:0;height:100%;transition:width .2s ease;border-radius:2px}
.ewlive-us-congress-pane .ewlive-us-chamber>.ewlive-us-progress{order:5}
.ewlive-us-manual-won{max-width:85px}
.ewlive-us-manual-error{display:block;font-size:11px;color:#a12424}

/* 3.2.137: crisp unified map borders, smooth cursor and historic-map controls. */
.ewlive-us-map-canvas{position:relative}
.ewlive-us-map-canvas svg [data-region]{transition:none!important}
.ewlive-us-map-canvas svg [data-region]:hover{cursor:pointer}
.ewlive-us-map-canvas svg [data-region].ewlive-us-selected{outline:none}
.ewlive-us-outline-layer{pointer-events:none!important}
.ewlive-us-outline-layer .ewlive-us-outline-path{fill:none!important;stroke:#000!important;stroke-width:1px!important;stroke-dasharray:none!important;stroke-linecap:round!important;stroke-linejoin:round!important;vector-effect:non-scaling-stroke!important;pointer-events:none!important}
.ewlive-us-tooltip-global{top:0!important;left:0!important;will-change:transform;contain:layout style;}
.ewlive-us-tip-winner{display:inline-flex;align-items:center;justify-content:center;flex:0 0 17px;width:17px;height:17px;border-radius:50%;color:#fff;font-size:12px;line-height:17px;font-weight:700;border:1px solid rgba(0,0,0,.12);box-sizing:border-box}
.ewlive-us-zoom-controls{position:absolute;top:10px;left:10px;z-index:230;display:flex;flex-direction:column;gap:4px;margin:0;padding:0;pointer-events:auto}
.ewlive-us-zoom-button{width:34px!important;height:34px!important;min-width:34px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;border:1px solid #000!important;border-radius:4px!important;background:#fff!important;color:#000!important;font:400 20px/1 Arial,sans-serif!important;box-shadow:none!important;cursor:pointer!important;box-sizing:border-box!important;opacity:.8}
.ewlive-us-zoom-button:hover,.ewlive-us-zoom-button:focus{background:#f3f3f3!important;opacity:.9}
.ewlive-us-zoom-button:disabled,.ewlive-us-zoom-button:disabled:hover{opacity:.4!important;cursor:default!important;background:#fff!important}
.ewlive-us-map-canvas.ewlive-us-can-pan svg{cursor:grab}
.ewlive-us-map-canvas.ewlive-us-dragging svg,.ewlive-us-map-canvas.ewlive-us-dragging svg *{cursor:grabbing!important}

/* 3.2.138: original SVG district borders until hover, larger map legend. */
.ewlive-us-map-canvas svg [data-region]{transition:none!important}
.ewlive-us-map-canvas svg [data-region]:hover{cursor:pointer}
.ewlive-us-map-canvas svg [data-region].ewlive-us-selected{outline:none}
.ewlive-us-map-canvas .ewlive-us-outline-canvas{position:absolute;z-index:10;pointer-events:none;display:block;max-width:none;contain:strict}
.ewlive-us-congress-pane .ewlive-us-map-widget .ewlive-us-party-legend,
.ewlive-us-congress-pane .ewlive-us-map-widget .ewlive-us-party-legend>span{font-size:14.5px;line-height:1.45}
/* Congress seat labels obey their side independent of site/theme typography. */
.ewlive-us-congress-card .mandaty-auto__segment[data-us-side="right"] .mandaty-auto__segment-inner,
.ewlive-us-congress-card .mandaty-auto__segment[data-us-side="right"] .mandaty-auto__segment-name,
.ewlive-us-congress-card .mandaty-auto__segment[data-us-side="right"] .mandaty-auto__segment-value{text-align:right!important;align-items:flex-end!important;justify-content:flex-end!important;width:100%!important}
.ewlive-us-congress-card .mandaty-auto__segment[data-us-side="left"] .mandaty-auto__segment-inner,
.ewlive-us-congress-card .mandaty-auto__segment[data-us-side="left"] .mandaty-auto__segment-name,
.ewlive-us-congress-card .mandaty-auto__segment[data-us-side="left"] .mandaty-auto__segment-value{text-align:left!important;align-items:flex-start!important;justify-content:flex-start!important;width:100%!important}

/* 3.2.140: original pre-139 map geometry, presidential chart components and captions. */
.ewlive-us-congress-card .ewlive-us-congress-tabs{gap:6px;border-bottom:0;margin-bottom:23px}
.ewlive-us-congress-card .ewlive-us-party-legend>span,.ewlive-us-tooltip-global .ewlive-us-tip-party>span:last-child{text-transform:uppercase;letter-spacing:.35px}
/* 3.2.141: use the shared presidential-chart design unchanged. */
.ewlive-us-congress-pane .ewlive-us-chamber>.bar-election.presidential-chart-universal{order:2;margin:0!important;border-radius:3px 3px 0 0;width:100%;box-sizing:border-box}

/* 3.2.142: Congress-only compensation for the different bar-wrapper layout.
   Keep the main theme's 85px presidential rule unchanged. */
.ewlive-us-congress-card .bar-election.presidential-chart-universal[data-us-presidential-seats="1"] .middle-indicator{bottom:95px}

/* 3.2.143: use native election turnout/progress notes in Congress tables. */
.ewlive-us-admin-chamber>.notes-election-info.ewlive-us-progress,
.ewlive-us-congress-pane .ewlive-us-chamber>.notes-election-info.ewlive-us-progress{
  width:100%;box-sizing:border-box;margin:30px 0px 14px;
}
.ewlive-us-admin-chamber .ewlive-us-progress .notes-section{width:100%;max-width:100%}
.ewlive-us-admin-chamber .ewlive-us-progress .notes-section h5{font-size:14px;margin:0 0 10px;font-weight:650;color:#252b33}
.ewlive-us-admin-chamber .ewlive-us-progress .notes-turnout-result{position:relative;max-width:100%;width:100%}
.ewlive-us-admin-chamber .ewlive-us-progress .notes-turnout-bar{width:100%;height:16px;background:#e4e6e9;overflow:hidden;border-radius:2px}
.ewlive-us-admin-chamber .ewlive-us-progress .notes-turnout-bar>span{display:block;width:var(--frekwencja,0%);height:100%;background:#246eb4;transition:width .2s ease}
.ewlive-us-admin-chamber .ewlive-us-progress .notes-turnout-percent{font-size:13px;margin-top:5px;font-weight:600;font-variant-numeric:tabular-nums}

/* 3.2.148 – state-level House results and identical white state cards in both chambers. */
.ewlive-us-tooltip-global{background:#fff!important;color:#20252e!important;border:1px solid #d7dee7!important;border-radius:4px!important;box-shadow:0 6px 20px rgba(18,33,53,.18)!important;padding:12px 13px!important;min-width:220px!important;max-width:min(290px,90vw)!important;box-sizing:border-box!important}
.ewlive-us-state-card{font:inherit;font-size:13px;line-height:1.4;color:#263341;letter-spacing:normal}
.ewlive-us-card-state{font-weight:800;font-size:14px;text-transform:uppercase;letter-spacing:.35px;margin-bottom:3px}
.ewlive-us-card-status{font-size:12px;color:#596579;font-weight:500;margin-bottom:9px}
.ewlive-us-card-bar{height:10px;background:#e6e9ed;border-radius:2px;display:flex;width:100%;overflow:hidden;gap:0;margin:0 0 10px}
.ewlive-us-card-segment{height:100%;display:block;min-width:0;flex:none}
.ewlive-us-card-segment.ewlive-us-card-open{background:#e2e5e8}
.ewlive-us-card-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 0;font-size:12px}
.ewlive-us-card-row strong{font-weight:700;font-variant-numeric:tabular-nums}
.ewlive-us-card-party{display:inline-flex;align-items:center;gap:6px;min-width:0}
.ewlive-us-card-dot{display:inline-block;flex:none;width:10px;height:10px;border-radius:50%;background:#aaa}
.ewlive-us-card-unfilled{color:#697586}
.ewlive-us-mobile-region-picker{display:none;background:#fff;padding:9px 0 13px}
.ewlive-us-mobile-region-picker label{display:block;font-size:12px;font-weight:600;margin:0 0 5px}
.ewlive-us-mobile-region-picker select{width:100%;max-width:100%;min-height:36px;background:#fff}
.ewlive-us-mobile-card{margin-top:10px;padding:12px;background:white;border:1px solid #d7dee7;border-radius:4px}
.ewlive-us-mobile-card[hidden]{display:none!important}
/* SVG paths stay light; only hovered state gets an outline. */
.ewlive-us-map-canvas svg [data-region].ewlive-us-house-hover{stroke:#000!important;stroke-width:1px!important;stroke-linejoin:round!important;vector-effect:non-scaling-stroke!important}
.ewlive-us-house-popup{position:absolute;z-index:250;box-sizing:border-box;width:285px;max-width:calc(100% - 10px);padding:14px 12px 12px;background:#fff;border:1px solid #aeb9c5;border-radius:5px;box-shadow:0 7px 23px rgba(18,33,53,.19);color:#222}
.ewlive-us-house-popup[hidden]{display:none!important}
.ewlive-us-house-popup-title{display:block;margin:0 20px 12px 0;font-size:13px}
.ewlive-us-house-inputs{display:flex;flex-direction:column;gap:7px;max-height:280px;overflow-y:auto}
.ewlive-us-house-input-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ewlive-us-house-input-label{display:inline-flex;gap:6px;align-items:center;min-width:0;font-size:12px}
.ewlive-us-house-seat-number{width:72px!important;min-width:72px!important;max-width:72px!important;height:29px;box-sizing:border-box;text-align:right}
.ewlive-us-house-popup-count{font-size:12px;color:#43516a;padding:9px 0 6px}
.ewlive-us-house-popup-count.is-invalid{color:#a42626}
.ewlive-us-house-popup-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ewlive-us-house-popup-status{font-size:11px;color:#a42626}
@media(max-width:760px){.ewlive-us-mobile-region-picker{display:block}.ewlive-us-house-popup{max-width:calc(100% - 12px)}}

/* 3.2.149 – consistent party alignment, Senate one-status cards, mobile chooser. */
.ewlive-us-card-rivals{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:2px;margin-bottom:2px;width:100%}
.ewlive-us-card-rival{display:flex;align-items:center;gap:5px;min-width:0;flex:0 1 auto;white-space:nowrap;font-size:12px;line-height:1.45}
.ewlive-us-card-rival strong{font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.ewlive-us-card-rival-dem{text-align:left;justify-content:flex-start}
.ewlive-us-card-rival-rep{text-align:right;justify-content:flex-end;margin-left:auto}
.ewlive-us-card-rival-rep .ewlive-us-card-rival-name{order:1}
.ewlive-us-card-rival-rep strong{order:2}
.ewlive-us-card-rival-name{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.ewlive-us-card-senate-result{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;margin-top:8px;min-height:19px}
.ewlive-us-card-senate-icon{flex:0 0 18px;width:18px;height:18px;font-size:12px}
.ewlive-us-mobile-region-picker{background:transparent}
.ewlive-us-mobile-select-wrap{position:relative;width:100%}
.ewlive-us-mobile-region-picker .ewlive-us-mobile-select{appearance:none;-webkit-appearance:none;width:100%;max-width:100%;padding-right:39px;cursor:pointer;background:#fff}
.ewlive-us-mobile-select-arrow{position:absolute;right:15px;top:50%;width:9px;height:9px;border-right:2px solid #111;border-bottom:2px solid #111;transform:translateY(-70%) rotate(45deg);transition:transform .18s ease;pointer-events:none}
.ewlive-us-mobile-select-wrap.is-open .ewlive-us-mobile-select-arrow{transform:translateY(-30%) rotate(225deg)}

/* 3.2.153: Senate tooltip width (190px) and uppercase major parties in shared House/Senate cards. */
.ewlive-us-tooltip-global[data-kind="senate"]{width:190px!important;min-width:0!important;max-width:calc(100vw - 16px)!important}
.ewlive-us-card-rival-name,.ewlive-us-card-major-party{text-transform:uppercase}

/* 3.2.154: reserve enough room for both uppercase House rivals without wrapping. */
.ewlive-us-tooltip-global[data-kind="house"]{width:190px!important;min-width:0!important;max-width:calc(100vw - 16px)!important}

/* 3.2.155: compact House tooltip with vertical, seat-sorted party rows. */
.ewlive-us-state-card .ewlive-us-card-details{display:flex;flex-direction:column;gap:3px;min-width:0}
.ewlive-us-state-card .ewlive-us-card-details>.ewlive-us-card-row{display:flex;justify-content:space-between;align-items:flex-start;gap:6px;min-width:0;padding:1px 0;line-height:1.35}
.ewlive-us-state-card .ewlive-us-card-details>.ewlive-us-card-row>.ewlive-us-card-party{display:inline-flex;align-items:flex-start;flex:1 1 auto;gap:5px;min-width:0;overflow-wrap:anywhere;font-size:12px}
.ewlive-us-state-card .ewlive-us-card-details>.ewlive-us-card-row>.ewlive-us-card-party>.ewlive-us-card-dot{margin-top:3px}
.ewlive-us-state-card .ewlive-us-card-details>.ewlive-us-card-row>strong{flex:none;min-width:1ch;text-align:right}

/* 3.2.157: uppercase non-election and uncalled Senate statuses in desktop and mobile cards. */
.ewlive-us-card-senate-status{text-transform:uppercase}

/* 3.2.158 – compact mobile state selection, consistent typography and unobstructed USA map. */
/* Buttons use id="belowbutton" with an "active" class on the selected chamber.
   Keep the original site theme responsible for their colors and appearance. */
/* Never show the generic mandates chart between Congress's own chart and map. */
.ewlive-us-congress-pane .ewlive-us-chamber > .mandaty-auto{display:none!important}
@media(max-width:760px){
  /* Keep all zoom buttons away from the west coast, inside bottom-right corner. */
  .ewlive-us-congress-card .ewlive-us-zoom-controls{top:auto!important;left:auto!important;bottom:10px!important;right:10px!important}
  /* Align the select text with the 12px card inset and match its border. */
  .ewlive-us-congress-card .ewlive-us-mobile-region-picker .ewlive-us-mobile-select{
    padding:7px 38px 7px 12px!important;
    border:1px solid #d7dee7!important;border-radius:4px!important;
    box-sizing:border-box!important;
  }
  /* The mobile state card uses the same 14.5px typography as the map legend. */
  .ewlive-us-congress-card .ewlive-us-mobile-card .ewlive-us-card-state,
  .ewlive-us-congress-card .ewlive-us-mobile-card .ewlive-us-card-status,
  .ewlive-us-congress-card .ewlive-us-mobile-card .ewlive-us-card-row,
  .ewlive-us-congress-card .ewlive-us-mobile-card .ewlive-us-card-party,
  .ewlive-us-congress-card .ewlive-us-mobile-card .ewlive-us-card-senate-result,
  .ewlive-us-congress-card .ewlive-us-mobile-card .ewlive-us-card-senate-status,
  .ewlive-us-congress-card .ewlive-us-mobile-card .ewlive-us-card-major-party{
    font-size:14.5px!important;line-height:1.45;
  }
}

/* Mobile: use only the dedicated state-result card below the select. */
@media(max-width:760px){
  .ewlive-us-tooltip-global{display:none!important;visibility:hidden!important;pointer-events:none!important}
}

/* 3.2.160: dismissible mobile state-results card; independent of map tooltips. */
.ewlive-us-mobile-card{position:relative}
.ewlive-us-mobile-card .ewlive-us-card-state{padding-right:34px}
.ewlive-us-mobile-card-close{
  position:absolute;top:7px;right:7px;z-index:2;
  display:flex;align-items:center;justify-content:center;
  width:30px;height:30px;padding:0;
  border:0;border-radius:4px;background:transparent;color:#253343;
  font:400 24px/1 Arial,sans-serif;cursor:pointer;
}
.ewlive-us-mobile-card-close:hover,.ewlive-us-mobile-card-close:focus-visible{
  background:#eef1f5;color:#141e2b;
}
.ewlive-us-mobile-card-close:focus-visible{outline:2px solid #2271b1;outline-offset:1px}

/* 3.2.161: prevent iOS Safari's rectangular touch highlight on clickable SVG states.
   This is separate from the intended SVG state border/hover and does not alter it. */
.ewlive-us-congress-card .ewlive-us-map-canvas svg,
.ewlive-us-congress-card .ewlive-us-map-canvas svg * {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}
.ewlive-us-congress-card .ewlive-us-map-canvas svg [data-region] {
  -webkit-user-select: none;
  user-select: none;
}
.ewlive-us-congress-card .ewlive-us-map-canvas svg [data-region]:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* 3.2.162: state result card below the map and legend; reliable mobile selection. */
@media(max-width:760px){
  .ewlive-us-congress-card .ewlive-us-map .ewlive-us-mobile-card{
    display:block;
    margin:20px 0 0px;
  }
  .ewlive-us-congress-card .ewlive-us-map-canvas svg [data-region].ewlive-us-mobile-selected{
    stroke:#000!important;
    stroke-width:1px!important;
    stroke-opacity:1!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
    vector-effect:non-scaling-stroke!important;
  }
  /* When zoomed, finger dragging pans the map instead of the whole page. */
  .ewlive-us-congress-card .ewlive-us-map-canvas.ewlive-us-can-pan,
  .ewlive-us-congress-card .ewlive-us-map-canvas.ewlive-us-can-pan svg{
    touch-action:none!important;
    overscroll-behavior:contain;
  }
}
@media(min-width:761px){
  .ewlive-us-congress-card .ewlive-us-mobile-card{display:none!important}
}
/* Align colored party dots with the vertical centre of their label. */
.ewlive-us-state-card .ewlive-us-card-details>.ewlive-us-card-row,
.ewlive-us-state-card .ewlive-us-card-details>.ewlive-us-card-row>.ewlive-us-card-party{
  align-items:center;
}
.ewlive-us-state-card .ewlive-us-card-details>.ewlive-us-card-row>.ewlive-us-card-party>.ewlive-us-card-dot{
  margin-top:0;
  align-self:center;
}
/* Close symbol shares the title baseline and aligns with the right-hand values. */
.ewlive-us-mobile-card-close{
  top:10px;
  right:12px;
  width:26px;
  height:26px;
  justify-content:flex-end;
  font-size:28px;
  line-height:1;
}

/* 3.2.166: mobile state chooser font size. */
.ewlive-us-mobile-select-wrap > select {font-size: 0.9rem;}

/* 3.2.170: one LIVE badge inside the presidential-style chart of each Congress chamber. */
.ewlive-us-congress-card .ewlive-us-chamber > .bar-election.presidential-chart-universal{position:relative}

/* 3.2.177 – Congress chamber headings: 1.1rem desktop, 0.8rem mobile with 1.8 line height. */
.ewlive-us-congress-card .ewlive-us-chamber-heading {
  font-size:1.1rem !important;
}
@media (max-width:760px) {
  .ewlive-us-congress-card .ewlive-us-chamber-heading {
    font-size:0.8rem !important;
    line-height:1.8;
  }
}

/* 3.2.182: optional per-state Senate winner names in the map editor and tooltip. */
.ewlive-us-senate-winner-field{display:flex;flex-direction:column;gap:3px;flex:1 1 190px;min-width:170px;max-width:260px;font-size:12px;font-weight:500;line-height:1.35}
.ewlive-us-senate-winner-field[hidden]{display:none!important}
.ewlive-us-senate-winner-name{width:100%!important;max-width:100%!important;min-height:30px;box-sizing:border-box;font-size:13px}
.ewlive-us-floating-editor .ewlive-us-senate-winner-field{flex:1 1 100%;max-width:100%;min-width:0;width:100%}
.ewlive-us-card-senate-result{align-items:flex-start;min-width:0}
.ewlive-us-card-senate-result .ewlive-us-card-senate-icon{align-self:flex-start;margin-top:1px;flex-shrink:0}
.ewlive-us-card-senate-text{display:block;flex:1 1 0;min-width:0;white-space:normal;overflow-wrap:break-word;word-break:normal;line-height:1.45}
.ewlive-us-card-senate-text.ewlive-us-card-senate-candidate{text-transform:none}

/* 3.2.183 — U.S. House: separate leading districts, projected sections at half opacity. */
.ewlive-us-house-popup{width:378px;max-width:calc(100% - 10px)}
.ewlive-us-house-input-header,.ewlive-us-house-input-row{display:grid;grid-template-columns:minmax(0,1fr) 72px 72px;align-items:center;gap:7px}
.ewlive-us-house-input-header{font-size:10px;line-height:1.3;font-weight:650;color:#48556b;letter-spacing:.01em;text-align:center;}
.ewlive-us-house-input-header>span:first-child{text-align:left}
.ewlive-us-house-input-label{overflow-wrap:anywhere}
.ewlive-us-house-popup .ewlive-us-house-seat-number{margin:0;width:72px!important;min-width:0!important;max-width:72px!important}
.ewlive-us-card-segment.ewlive-us-card-leading{opacity:.5!important}
.ewlive-us-state-card .ewlive-us-card-details>.ewlive-us-card-row>.ewlive-us-card-seats{display:inline-flex;flex:none;gap:4px;white-space:nowrap;align-items:baseline;justify-content:flex-end;font-size:12px;font-variant-numeric:tabular-nums}
.ewlive-us-state-card .ewlive-us-card-leading-count{font-weight:400!important;color:inherit}
.ewlive-us-congress-card .bar-segment.ewlive-us-leading-segment{opacity:.5!important}
.ewlive-us-chamber-table .ewlive-us-leading-cell{font-weight:400}
@media(max-width:420px){
 .ewlive-us-house-popup{width:calc(100% - 12px);padding:12px 9px}
 .ewlive-us-house-input-header,.ewlive-us-house-input-row{grid-template-columns:minmax(0,1fr) 63px 63px;gap:5px}
 .ewlive-us-house-popup .ewlive-us-house-seat-number{width:63px!important;max-width:63px!important}
}


/* 3.2.184 — Senate projections and the winning row in both Congress tables. */
.ewlive-us-senate-leading-field{display:inline-flex;align-items:center;gap:7px;flex:1 1 100%;font-size:13px;line-height:1.4;font-weight:600;cursor:pointer}
.ewlive-us-senate-leading-field[hidden]{display:none!important}
.ewlive-us-senate-leading-field input{width:17px;height:17px;min-width:17px;margin:0}
.ewlive-us-floating-editor .ewlive-us-senate-leading-field{width:100%;max-width:100%}
.ewlive-us-map[data-kind="senate"] .ewlive-us-map-canvas svg [data-region][data-leading="1"]{fill-opacity:.5!important}
.ewlive-us-congress-card .ewlive-us-chamber-table tr.ewlive-us-winner-row>td{
 background-color:var(--ewlive-us-winner-tint,rgba(0,0,0,.1))!important;
}

/* 3.2.185: Senate leading label (italic) in desktop and mobile state cards. */
.ewlive-us-card-senate-leading-label{font-style:italic!important;font-weight:400!important;text-transform:none!important}

/* 3.2.187: Correct frontend tooltip selectors. The tooltip is itself the
   .ewlive-us-state-card element (not its parent); both US chambers +1px. */
/* Desktop hover card: House party names, won seats, leading counts. */
.ewlive-us-tooltip-global[data-kind="house"].ewlive-us-state-card .ewlive-us-card-details > .ewlive-us-card-row,
.ewlive-us-tooltip-global[data-kind="house"].ewlive-us-state-card .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-party,
.ewlive-us-tooltip-global[data-kind="house"].ewlive-us-state-card .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-seats,
.ewlive-us-tooltip-global[data-kind="house"].ewlive-us-state-card .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-seats > strong,
.ewlive-us-tooltip-global[data-kind="house"].ewlive-us-state-card .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-seats > .ewlive-us-card-leading-count {
  font-size: 13px !important;
}
/* Desktop hover card: Senate candidate/party text and italic leading status. */
.ewlive-us-tooltip-global[data-kind="senate"].ewlive-us-state-card .ewlive-us-card-senate-result,
.ewlive-us-tooltip-global[data-kind="senate"].ewlive-us-state-card .ewlive-us-card-senate-text,
.ewlive-us-tooltip-global[data-kind="senate"].ewlive-us-state-card .ewlive-us-card-senate-leading-label {
  font-size: 14px !important;
}
/* Mobile uses a separate state card. Match that card directly, in both chambers,
   overriding the old 14.5px rule without enlarging state headings or icons. */
@media (max-width: 760px) {
  .ewlive-us-congress-card .ewlive-us-mobile-card.ewlive-us-state-card .ewlive-us-card-details > .ewlive-us-card-row,
  .ewlive-us-congress-card .ewlive-us-mobile-card.ewlive-us-state-card .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-party,
  .ewlive-us-congress-card .ewlive-us-mobile-card.ewlive-us-state-card .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-seats,
  .ewlive-us-congress-card .ewlive-us-mobile-card.ewlive-us-state-card .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-seats > strong,
  .ewlive-us-congress-card .ewlive-us-mobile-card.ewlive-us-state-card .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-seats > .ewlive-us-card-leading-count,
  .ewlive-us-congress-card .ewlive-us-mobile-card.ewlive-us-state-card .ewlive-us-card-senate-result,
  .ewlive-us-congress-card .ewlive-us-mobile-card.ewlive-us-state-card .ewlive-us-card-senate-text,
  .ewlive-us-congress-card .ewlive-us-mobile-card.ewlive-us-state-card .ewlive-us-card-senate-leading-label {
    font-size: 15.5px !important;
  }
}


/* 3.2.188: Desktop US Congress tooltip names and numeric party results: 15px.
   The global tooltip is injected directly into <body>, outside the Congress card. */
@media (min-width: 761px) {
  .ewlive-us-tooltip-global.ewlive-us-state-card[data-kind="house"] .ewlive-us-card-details > .ewlive-us-card-row,
  .ewlive-us-tooltip-global.ewlive-us-state-card[data-kind="house"] .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-party,
  .ewlive-us-tooltip-global.ewlive-us-state-card[data-kind="house"] .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-party > span,
  .ewlive-us-tooltip-global.ewlive-us-state-card[data-kind="house"] .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-seats,
  .ewlive-us-tooltip-global.ewlive-us-state-card[data-kind="house"] .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-seats > strong,
  .ewlive-us-tooltip-global.ewlive-us-state-card[data-kind="house"] .ewlive-us-card-details > .ewlive-us-card-row > .ewlive-us-card-seats > .ewlive-us-card-leading-count,
  .ewlive-us-tooltip-global.ewlive-us-state-card[data-kind="senate"] .ewlive-us-card-senate-result,
  .ewlive-us-tooltip-global.ewlive-us-state-card[data-kind="senate"] .ewlive-us-card-senate-text,
  .ewlive-us-tooltip-global.ewlive-us-state-card[data-kind="senate"] .ewlive-us-card-senate-leading-label {
    font-size: 15px !important;
  }
}
