/* Votendi Chart v2 — isolated to Election Pulse chart cards after JS succeeds.
   No estimates, averages, or election records are recalculated here. */
.themespair-ep-chart-card.votendi-chart-v2 {
  --votendi-ink: #0B1220;
  --votendi-navy: #102A43;
  --votendi-teal: #0B8F7C;
  --votendi-muted: #667085;
  --votendi-border: #D8E0EA;
  font-family: Inter, Arial, sans-serif;
}
.themespair-ep-chart-card.votendi-chart-v2 .themespair-ep-chart-key {display:none}
.themespair-ep-chart-card .votendi-chart-summary {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1.2fr)) minmax(125px,.8fr) minmax(125px,.8fr);
  gap:0;
  margin:18px 0 20px;
  padding:17px 0;
  border:1px solid #E2E8F0;
  border-radius:12px;
  background:#FBFCFE;
}
.themespair-ep-chart-card .votendi-chart-stat {
  display:flex;flex-direction:column;justify-content:center;
  gap:5px;min-width:0;padding:4px 20px;
  border-right:1px solid #D8E0EA;
}
.themespair-ep-chart-card .votendi-chart-stat:last-child {border-right:0}
.themespair-ep-chart-card .votendi-chart-stat-label {
  display:flex;align-items:flex-start;gap:8px;
  color:#344054;font-size:12px;font-weight:700;line-height:1.4;
  white-space:normal;overflow-wrap:anywhere;
}
.themespair-ep-chart-card .votendi-chart-swatch {
  display:inline-block;flex:0 0 11px;width:11px;height:11px;
  margin-top:2px;border-radius:50%;background:var(--votendi-candidate,#102A43)
}
.themespair-ep-chart-card .votendi-chart-stat-value {
  display:block;color:#0B1220;font:800 clamp(23px,2.2vw,32px)/1.15 Manrope,Inter,sans-serif;
  font-variant-numeric:tabular-nums;
}
.themespair-ep-chart-card .votendi-chart-stat-meta {
  color:#667085;font-size:11px;line-height:1.45;
}
.themespair-ep-chart-card .votendi-chart-toolbar {
  display:flex;align-items:center;justify-content:flex-start;
  flex-wrap:wrap;gap:12px;margin:0 0 8px;
}
.themespair-ep-chart-card .votendi-chart-toolbar .themespair-ep-chart-range,
.themespair-ep-chart-card .votendi-chart-view-control {
  display:inline-flex;align-items:center;gap:3px;margin:0;
  padding:4px;border:1px solid #D8E0EA;border-radius:9px;background:#F7F9FC;
}
.themespair-ep-chart-card .votendi-chart-toolbar button {
  min-height:36px;padding:6px 13px;
  border:0;border-radius:7px;background:transparent;color:#475467;
  font:700 12px/1.3 Inter,sans-serif;letter-spacing:0;
  cursor:pointer;white-space:nowrap;
}
.themespair-ep-chart-card .votendi-chart-toolbar button.is-active {
  background:#102A43;color:#fff;box-shadow:0 1px 4px #0b12201c;
}
.themespair-ep-chart-card .votendi-chart-toolbar button:focus-visible,
.themespair-ep-chart-card .votendi-chart-legend-button:focus-visible {
  outline:3px solid #0B8F7C;outline-offset:2px;
}
.themespair-ep-chart-card.votendi-chart-v2 .themespair-ep-range-count {
  display:block;margin:8px 0 18px;
  color:#667085;font-size:12px;font-weight:600;
}
.themespair-ep-chart-card.votendi-chart-v2 .themespair-ep-chart-legend {
  display:flex;flex-wrap:wrap;gap:8px;
  margin:0 0 4px;
}
.themespair-ep-chart-card .votendi-chart-legend-button {
  display:inline-flex;align-items:center;gap:8px;
  min-height:34px;padding:6px 11px;border:1px solid #D8E0EA;
  border-radius:20px;background:white;color:#0B1220;
  font:600 12px/1.35 Inter,sans-serif;
  cursor:pointer;max-width:100%;
}
.themespair-ep-chart-card .votendi-chart-legend-button[aria-pressed="false"] {
  opacity:.5;text-decoration:line-through;
}
.themespair-ep-chart-card .votendi-chart-legend-button .votendi-chart-swatch {
  margin-top:0;
}
.themespair-ep-chart-card.votendi-chart-v2 .themespair-ep-chart {
  position:relative;min-height:280px;
  width:100%;padding:4px 0 0;overflow-x:auto;overflow-y:visible;
  scrollbar-width:thin;
}
.themespair-ep-chart-card.votendi-chart-v2 .themespair-ep-chart-svg {
  display:block;width:100%;max-width:1180px;height:auto;
  min-width:620px;margin:0 auto;overflow:visible;
}
.themespair-ep-chart-card .votendi-grid-line {stroke:#E9EFF5;stroke-width:1}
.themespair-ep-chart-card .votendi-zero-line {stroke:#667085;stroke-width:1.5;stroke-dasharray:5 5}
.themespair-ep-chart-card .votendi-axis-label {
  fill:#667085;font:500 12px Inter,sans-serif;font-variant-numeric:tabular-nums;
}
.themespair-ep-chart-card .votendi-axis-explainer {
  fill:#667085;font:500 11px Inter,sans-serif;
}
.themespair-ep-chart-card .votendi-series-line {
  fill:none;stroke-width:3.4;stroke-linejoin:round;stroke-linecap:round;
  vector-effect:non-scaling-stroke;
}
.themespair-ep-chart-card .votendi-chart-point {
  cursor:help;transition:opacity .15s, r .15s;
}
.themespair-ep-chart-card .votendi-chart-point:hover,
.themespair-ep-chart-card .votendi-chart-point:focus {
  opacity:1;outline:none;stroke-width:2.5;
}
.themespair-ep-chart-card .votendi-chart-point:focus-visible {
  stroke:#0B1220;stroke-width:3;
}
.themespair-ep-chart-card .votendi-value-tag {
  font:800 14px Manrope,Inter,sans-serif;
  font-variant-numeric:tabular-nums;
}
.themespair-ep-chart-card .votendi-chart-tooltip {
  position:absolute;z-index:9;display:flex;flex-direction:column;gap:4px;
  width:max-content;max-width:min(280px,calc(100% - 24px));
  padding:12px 14px;border:1px solid #D8E0EA;border-radius:10px;
  background:#fff;color:#0B1220;
  box-shadow:0 14px 32px #0b122026;
  font:500 12px/1.45 Inter,sans-serif;
  pointer-events:none;transform:translate(-50%,-100%);
}
.themespair-ep-chart-card .votendi-chart-tooltip[hidden] {display:none}
.themespair-ep-chart-card .votendi-chart-tooltip strong {
  font:800 13px/1.3 Manrope,Inter,sans-serif;color:#102A43;
}
.themespair-ep-chart-card .votendi-chart-tooltip span {color:#475467}
.themespair-ep-chart-card .votendi-chart-foot-note {
  margin-top:10px;color:#667085;font-size:11px;line-height:1.5;
}
.themespair-ep-chart-card .votendi-chart-foot-note strong {color:#344054}
@media(max-width:1100px){
  .themespair-ep-chart-card .votendi-chart-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px;
  }
  .themespair-ep-chart-card .votendi-chart-stat:nth-child(2){border-right:0}
  .themespair-ep-chart-card .votendi-chart-stat:nth-child(3),
  .themespair-ep-chart-card .votendi-chart-stat:nth-child(4){border-top:1px solid #E2E8F0;padding-top:16px}
}
@media(max-width:767px){
  .themespair-ep-chart-card .votendi-chart-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:10px 0;gap:0;margin:14px 0;
  }
  .themespair-ep-chart-card .votendi-chart-stat {padding:10px 11px}
  .themespair-ep-chart-card .votendi-chart-stat-value {font-size:24px}
  .themespair-ep-chart-card .votendi-chart-stat-label {font-size:11px}
  .themespair-ep-chart-card .votendi-chart-toolbar{gap:8px}
  .themespair-ep-chart-card .votendi-chart-toolbar button{padding:7px 10px;font-size:11px}
  .themespair-ep-chart-card.votendi-chart-v2 .themespair-ep-chart-svg{
    min-width:620px;max-width:none;
  }
  .themespair-ep-chart-card .votendi-chart-tooltip{font-size:11px}
}
/* Separate lead/margin chart below the candidate-share chart. */
.themespair-ep-chart-card.votendi-chart-v2 .votendi-chart-lead-panel{
  clear:both;min-width:0;margin:25px 0 0;padding:22px 0 0;
  border-top:1px solid #D8E0EA;
}
.themespair-ep-chart-card .votendi-chart-lead-heading{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin:0 0 12px;
}
.themespair-ep-chart-card .votendi-chart-lead-title{
  margin:0 0 3px;color:#0B1220;
  font:800 clamp(17px,1.7vw,21px)/1.3 Manrope,Inter,sans-serif;
}
.themespair-ep-chart-card .votendi-chart-lead-subtitle{
  margin:0;color:#667085;font:500 12px/1.5 Inter,sans-serif;
}
.themespair-ep-chart-card .votendi-chart-lead-value{
  display:inline-block;flex:0 0 auto;padding:9px 15px;border-radius:24px;
  background:#E8F5F1;color:#0B8F7C;white-space:nowrap;
  font:800 14px/1.3 Manrope,Inter,sans-serif;
}
.themespair-ep-chart-card .votendi-chart-lead-graph{
  position:relative;max-width:100%;overflow-x:auto;overflow-y:visible;
  scrollbar-width:thin;
}
.themespair-ep-chart-card .votendi-chart-lead-svg{
  display:block;width:100%;min-width:560px;height:auto;
}
.themespair-ep-chart-card .votendi-chart-lead-line{
  stroke:#0B8F7C;stroke-width:3;fill:none;
}
.themespair-ep-chart-card .votendi-chart-lead-dot:focus-visible{
  outline:none;stroke:#0B1220;stroke-width:4;
}
.themespair-ep-chart-card .votendi-chart-lead-caption{
  margin:6px 0 0;color:#667085;font:500 12px/1.5 Inter,sans-serif;
}
@media(max-width:767px){
  .themespair-ep-chart-card .votendi-chart-lead-heading{align-items:flex-start}
  .themespair-ep-chart-card .votendi-chart-lead-subtitle{font-size:11px}
  .themespair-ep-chart-card .votendi-chart-lead-value{padding:6px 9px;font-size:12px}
  .themespair-ep-chart-card .votendi-chart-lead-svg{min-width:560px}
}
@media(prefers-reduced-motion:reduce){
  .themespair-ep-chart-card .votendi-chart-point{transition:none}
}
