/* specials.css - /special-elections/ (private preview; built by us_site/specials.py). Tokens only. */

/* Summary row: three figures, no boxes */
.sp-sum { display: flex; flex-wrap: wrap; gap: 12px 48px; padding-top: 8px; }
.sp-fig { display: flex; flex-direction: column; min-width: 0; }
.sp-num { font-family: var(--pc-sans); font-size: 40px; font-weight: 700; line-height: 1.05; color: var(--pc-text);
    font-variant-numeric: tabular-nums; }
.sp-num.is-dem { color: var(--pc-party-dem); }
.sp-num.is-rep { color: var(--pc-party-rep); }
.sp-lbl { font-family: var(--pc-sans); font-size: 12px; color: var(--pc-text-meta); margin-top: 4px; }

/* Chart */
.sp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--pc-sans); font-size: 12px;
    color: var(--pc-text-body); margin: 0 0 8px; }
.sp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sp-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--party-color); }
.sp-key-flip { background: transparent; box-shadow: 0 0 0 2px var(--pc-text); width: 8px; height: 8px; }
.sp-chart-wrap { position: relative; width: 100%; max-width: 720px; }
.sp-chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.sp-chart-wrap .sp-axis text { font-family: var(--pc-sans); font-size: 11px; fill: var(--pc-text-meta);
    font-variant-numeric: tabular-nums; }
.sp-chart-wrap .sp-grid line { stroke: var(--pc-border-light); }
.sp-chart-wrap .sp-zero { stroke: var(--pc-border); }
.sp-chart-wrap .sp-diag { stroke: var(--pc-text-meta); stroke-dasharray: 4 3; }
.sp-chart-wrap .sp-diag-l { font-family: var(--pc-sans); font-size: 11px; fill: var(--pc-text-meta); }
.sp-chart-wrap .sp-side { font-family: var(--pc-sans); font-size: 11px; font-weight: 600; }
.sp-chart-wrap .sp-ttl { font-family: var(--pc-sans); font-size: 11px; font-weight: 600; fill: var(--pc-text-body); }
.sp-chart-wrap circle.sp-pt { stroke: var(--pc-surface); stroke-width: 1; cursor: pointer; }
.sp-chart-wrap circle.sp-pt.is-flip { stroke: var(--pc-text); stroke-width: 2; }
.sp-chart-wrap circle.sp-pt.is-hot { stroke: var(--pc-text); stroke-width: 2.5; }

/* Table */
.pc-table.sp-table thead th.sp-l, .pc-table.sp-table tbody td.sp-l { text-align: left; }
.sp-table td { white-space: nowrap; }
.sp-win { font-weight: 600; color: var(--pc-text); }
.sp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--party-color);
    margin-right: 6px; vertical-align: 1px; }
.sp-pty { font-weight: 400; color: var(--pc-text-meta); font-size: 12px; }
.sp-flip { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--pc-surface); background: var(--pc-text); vertical-align: 1px; }
.sp-na { color: var(--pc-text-meta); font-size: 12px; }
.sp-sw { font-weight: 700; }
.sp-sw.is-pos { color: var(--pc-party-dem); }
.sp-sw.is-neg { color: var(--pc-party-rep); }
.sp-method { margin-top: 10px; }
.pc-th-sortable[aria-sort="ascending"] .pc-sort-icon::after { content: "\25B2"; }
.pc-th-sortable[aria-sort="descending"] .pc-sort-icon::after { content: "\25BC"; }

@media (max-width: 768px) {
    .sp-sum { gap: 12px 28px; }
    .sp-num { font-size: 30px; }
}
