/* Tables intentionally have no LIVE-specific CSS. Their appearance is inherited from the theme main.css. */
.ewlive-widget{width:100%}.ewlive-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px}.ewlive-tab{appearance:none;border:1px solid #222;background:#f3f3f3;color:#222;padding:4px 8px 2px 8px;font-size:14px;font-weight:700;cursor:pointer}.ewlive-tab:hover{background:#e7e7e7}.ewlive-tab.is-active{background:green;color:#fff}.ewlive-panel[hidden]{display:none!important}.ewlive-results-card,.ewlive-pres-card{width:100%}.ewlive-live-status{margin-top:8px;color:#777;font-size:14px;text-align:right}.notes-election-info{margin-top:14px}.notes-turnout-result{position:relative}.notes-turnout-bar{overflow:hidden}.notes-turnout-bar span{display:block;width:var(--frekwencja,0%);transition:width .35s ease}.ewlive-pres-chart{margin-bottom:20px}.ewlive-round-title{text-align:center;font-weight:800;font-size:1.1rem;margin-bottom:22px}.ewlive-pres-chart .segmented-bar{display:flex;width:100%;min-height:32px;overflow:hidden}.ewlive-pres-chart .bar-segment{display:flex;align-items:center;justify-content:center;min-width:0}.ewlive-pres-chart .bar-segment span{font-weight:700;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.45)}@media(max-width:760px){.ewlive-tabs{gap:4px}.ewlive-tab{font-size:12px;padding:4px 8px 2px 8px}}
.ewlive-widget .ewlive-chart-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;margin-bottom:12px;gap:8px}.ewlive-widget .ewlive-chart-heading>.mandaty-podzial__chart{margin:0;white-space:nowrap}.ewlive-widget .ewlive-chart-live{display:inline-flex;align-items:center;justify-self:start;gap:6px;text-align:left}.ewlive-widget .ewlive-chart-title{grid-column:2;text-align:center}.ewlive-chart-live-dot{display:inline-block;flex:0 0 8px;width:8px;height:8px;background:#e00020;border-radius:50%;animation:ewlive-chart-live-blink 1.2s ease-in-out infinite}.ewlive-widget .mandaty-auto__legend-item.is-leader{font-weight:700}.ewlive-widget .mandaty-auto__segment.is-leader{box-shadow:inset 0 0 0 2px rgba(0,0,0,.3)}@keyframes ewlive-chart-live-blink{0%,100%{opacity:1}50%{opacity:.15}}@media(max-width:480px){.ewlive-widget .ewlive-chart-heading{grid-template-columns:auto minmax(0,1fr)}.ewlive-widget .ewlive-chart-title{justify-self:end}}@media(prefers-reduced-motion:reduce){.ewlive-chart-live-dot{animation:none}}
.ewlive-widget .ewlive-seat-chart .mandaty-auto__bar{flex-direction:row!important;direction:ltr!important}.ewlive-widget .ewlive-seat-chart .mandaty-auto__segment.is-vacancy{order:2147483647}.ewlive-widget .ewlive-chart-heading>.mandaty-podzial__chart{position:static;float:none;width:auto}.ewlive-widget .ewlive-chart-heading .ewlive-chart-live,.ewlive-widget .ewlive-chart-heading .ewlive-chart-live>span{color:#e00020!important}.ewlive-widget .ewlive-chart-heading .ewlive-chart-live{text-align:left!important}

/* v1.0.50 — final LIVE/front overrides */
.ewlive-widget .ewlive-tabs{align-items:center}
.ewlive-widget .ewlive-live-badge{margin-left:auto!important;background:red!important;border:1px solid #980c30!important;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:default;pointer-events:none;white-space:nowrap}
.ewlive-widget .ewlive-live-badge[hidden]{display:none!important}
.ewlive-widget .ewlive-live-badge-dot{display:inline-block;flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:#fff!important;animation:ewlive-live-badge-blink 1.2s ease-in-out infinite}
@keyframes ewlive-live-badge-blink{0%,100%{opacity:1}50%{opacity:.15}}
@media(prefers-reduced-motion:reduce){.ewlive-widget .ewlive-live-badge-dot{animation:none}}
/* Leader highlighting must never change typography or draw a black frame. */
.ewlive-widget .mandaty-auto__legend-item.is-leader{font-weight:inherit!important}
.ewlive-widget .mandaty-auto__segment.is-leader{box-shadow:none!important;outline:0!important}
.ewlive-widget .ewlive-seat-chart .mandaty-auto__bar,.ewlive-widget .mandaty-auto__bar{flex-direction:row!important;direction:ltr!important}
.ewlive-widget .mandaty-auto__segment.is-vacancy{order:2147483647!important}
/* Counted-progress bar is isolated from global span animation rules. */
.ewlive-widget .se-counting .ewlive-counting-bar{overflow:hidden!important}
.ewlive-widget .se-counting .ewlive-counting-bar>span.ewlive-counting-bar-fill{display:block!important;max-width:100%!important;animation:none!important;transition:width .35s ease!important}
/* Theme main.css controls the percentage chart. Only normalize arbitrary uploaded logos. */
.ewlive-widget .bar .name img.logo{aspect-ratio:1 / 1!important;height:auto!important;box-sizing:border-box!important;padding:3px!important;background:#fff!important;object-fit:contain!important;object-position:center center!important;display:block!important;margin-left:auto!important;margin-right:auto!important}
.ewlive-widget .bar .column{animation:none!important}
.ewlive-widget .bar .score{animation:none!important;animation-name:none!important;animation-delay:0s!important;animation-fill-mode:none!important}
/* Party-logo tooltip (presidential tooltip is injected exactly like Wybory/Elections). */
.ewlive-party-hover-tooltip{position:fixed;z-index:2147483000;left:0;top:0;max-width:min(320px,calc(100vw - 16px));box-sizing:border-box;padding:7px 10px;background:rgba(48,48,48,.96);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:3px;box-shadow:0 4px 12px rgba(0,0,0,.22);font-family:"Sofia Sans Semi Condensed",sans-serif;font-size:1rem;font-weight:500;line-height:1.15;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity 180ms ease,transform 180ms ease,visibility 0s linear 180ms}
.ewlive-party-hover-tooltip.is-mounted{visibility:visible;transition-delay:0s}.ewlive-party-hover-tooltip.is-visible{opacity:1;transform:translateY(0);visibility:visible;transition-delay:0s}
@media(prefers-reduced-motion:reduce){.ewlive-party-hover-tooltip{transition:none!important;transform:none!important}}
/* v1.0.59: presidential winner marker does not alter candidate row styling. */

/* v1.0.62: when presidential results are the only enabled group, show only the LIVE badge on the chart. */
.ewlive-pres-results-only>.ewlive-panel{position:relative}
.ewlive-widget.ewlive-pres-results-only .ewlive-pres-results-only-live-badge{position:absolute!important;top:20px!important;right:20px!important;z-index:30;margin:0!important;margin-left:0!important}
.ewlive-pres-results-only>.ewlive-panel>.ewlive-section-body{position:relative}

/* v1.0.68: mode tabs exist only with EXIT POLL; LIVE badge belongs to the chart. */
.ewlive-widget .mandaty-auto,.ewlive-widget .ewlive-pres-card{position:relative}
.ewlive-widget .ewlive-seat-chart-live-badge{position:absolute!important;top:20px!important;right:20px!important;z-index:30;margin:0!important;margin-left:0!important}.ewlive-widget .ewlive-pres-chart-live-badge{position:absolute!important;top:20px!important;right:20px!important;z-index:30;margin:0!important;margin-left:0!important}
/* Neutral pre-result charts stay visible while waiting for the first real values. */
.ewlive-widget .ewlive-pres-waiting-results .ewlive-pres-waiting-segment{min-width:100%}

/* v1.0.69: tint the mathematically decided LIVE winner row with its own color.
   Apply the background to cells as well because many themes paint TD backgrounds
   over the TR background. Text keeps full opacity; only the color wash is 10%. */
.ewlive-widget .ewlive-results-table tr.ewlive-live-winner-row>td{background:var(--ewlive-winner-row-bg,rgba(51,51,51,.10))!important}

/* 3.2.50 */

/* 3.2.115 — counted progress follows the LIVE second-round chart. */
.ewlive-widget .ewlive-pres-counting-below-round2{max-width:100%;margin:10px 0 18px;}
.ewlive-widget .ewlive-pres-counting-below-round2 .ewlive-pres-counting-block{max-width:100%;margin:0;}

/* 3.2.123: LIVE winner badge is self-contained (does not depend on theme icons). */
.ewlive-widget .presidential-chart-universal .ewlive-pres-elected-mark{
    display:inline-flex!important;align-items:center;justify-content:center;
    width:18px!important;height:18px!important;min-width:18px;
    border-radius:50%;vertical-align:middle;margin:0 5px!important;
    color:#fff!important;font:700 13px/1 Arial,sans-serif!important;
    background-image:none!important;opacity:1!important;
}
.ewlive-widget .presidential-chart-universal .ewlive-pres-elected-mark::before,
.ewlive-widget .presidential-chart-universal .ewlive-pres-elected-mark::after{
    content:none!important;display:none!important;
}

/* 3.2.174 – LIVE chart headings: 1.1rem desktop, 1rem mobile.
   Congress chamber titles have a separate 0.9rem mobile override in maps.css. */
.ewlive-widget .ewlive-pres-round-heading,
.ewlive-widget .ewlive-round-title,
.ewlive-widget .mandaty-podzial__chart {
  font-size:1.1rem !important;
}
@media (max-width:760px) {
  .ewlive-widget .ewlive-pres-round-heading,
  .ewlive-widget .ewlive-round-title,
  .ewlive-widget .mandaty-podzial__chart {
    font-size:1rem !important;
  }
}

/* 3.2.180: countdown replaces the LIVE label until the scheduled instant. */
.ewlive-widget .ewlive-live-badge.ewlive-is-counting .ewlive-live-badge-dot{display:none!important;animation:none!important}
.ewlive-widget .ewlive-live-badge.ewlive-is-counting{font-variant-numeric:tabular-nums}
