.tvc-election__ad-slot { display: grid; place-items: center; min-height: 56px; margin: 18px 0 4px; border: 1px dashed #cbd5df; background: #eef2f5cc; color: #7a8793; border-radius: 10px; }
.tvc-election__ad-slot span { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.tvc-election__ad-slot--inline { min-height: 96px; margin: 28px 0 18px; }
.tvc-election__visual-summary { margin: 4px 0 24px; padding: 24px; border-radius: 20px; color: #f8fbff; background: linear-gradient(135deg, #101b35 0%, #19294a 58%, #254469 100%); box-shadow: 0 18px 40px #20374d1c; overflow: hidden; position: relative; }
.tvc-election__visual-summary::after { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; border: 1px solid #ffffff18; border-radius: 50%; box-shadow: 0 0 0 26px #ffffff08, 0 0 0 54px #ffffff05; pointer-events: none; }
.tvc-election__visual-summary-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.tvc-election__visual-summary .tvc-election__eyebrow { color: #a9c2ef; margin-bottom: 8px !important; }
.tvc-election__visual-summary h2 { color: #ffffff; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -.05em; margin: 0 0 9px; }
.tvc-election__visual-summary-head p:not(.tvc-election__eyebrow) { color: #c2d0e3; max-width: 480px; margin: 0; font-size: 11px; line-height: 1.6; }
.tvc-election__legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; color: #dbe7f7; font-size: 10px; }
.tvc-election__legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tvc-election__party-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.tvc-election__party-dot--dem { background: #5291ff; }
.tvc-election__party-dot--rep { background: #ef7479; }
.tvc-election__party-dot--none { background: #a7b4c3; }
.tvc-election__seat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(230px, .85fr); gap: 12px; margin-top: 24px; position: relative; z-index: 1; }
.tvc-election__seat-card, .tvc-election__projection-card { min-width: 0; border: 1px solid #ffffff1d; border-radius: 14px; padding: 16px; background: #ffffff0d; }
.tvc-election__seat-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: #d9e5f4; font-size: 11px; }
.tvc-election__seat-card-top b { color: #aebfd5; font-size: 9px; white-space: nowrap; font-weight: 500; }
.tvc-election__seat-card > strong { display: block; color: #ffffff; font-size: 22px; letter-spacing: -.04em; margin: 18px 0 12px; font-weight: 500; }
.tvc-election__seat-card small { display: block; color: #b9c9dd; line-height: 1.5; font-size: 9px; min-height: 28px; }
.tvc-election__party-track { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 7px; margin-bottom: 9px; }
.tvc-election__party-track span:first-child { background: #5291ff; border-radius: 5px 0 0 5px; opacity: .85; }
.tvc-election__party-track span:last-child { background: #ef7479; border-radius: 0 5px 5px 0; opacity: .85; }
.tvc-election__projection-card { background: linear-gradient(145deg, #e8a33b1c, #ffffff0a); border-color: #e8a33b5c; }
.tvc-election__projection-kicker { display: flex; justify-content: space-between; align-items: center; color: #f5c46e; letter-spacing: .13em; font-size: 9px; }
.tvc-election__projection-kicker i { font-style: normal; font-size: 18px; }
.tvc-election__projection-card h3 { color: #ffffff; font-size: 17px; margin: 16px 0 8px; letter-spacing: -.03em; }
.tvc-election__projection-card p { color: #c7d3e1; font-size: 10px; line-height: 1.6; margin: 0 0 16px; }
.tvc-election__projection-status { display: inline-block; padding: 5px 8px; border-radius: 99px; color: #f5c46e; background: #e8a33b1f; font-size: 9px; }
.tvc-election__map-card { padding: 22px 24px 18px; margin: 24px 0; border: 1px solid var(--election-line); border-radius: 18px; background: linear-gradient(150deg, #ffffff, #f3f7fa); }
.tvc-election__map-card .tvc-election__map-head { padding: 0; }
.tvc-election__map-card .tvc-election__map-head h3 { color: var(--election-ink); font-size: 22px; line-height: 1.2; margin: 0; letter-spacing: -.035em; }
.tvc-election__map-card .tvc-election__eyebrow { color: #bf5c63; margin: 0 0 7px !important; }
.tvc-election__map-card .tvc-election__map-hint { padding: 0; max-width: 560px; margin: 11px 0 2px; }
.tvc-election__map-card .tvc-election__map { margin-top: 10px; filter: drop-shadow(0 18px 24px #20374d18); }
.tvc-election__map-card .tvc-election__map-state { stroke: #ffffff; stroke-width: 1.2; }
.tvc-election__map-card .tvc-election__map a:hover .tvc-election__map-state, .tvc-election__map-card .tvc-election__map a:focus .tvc-election__map-state { filter: brightness(.92) saturate(1.1); stroke: #192943; stroke-width: 2.4; }
.tvc-election__map-card .tvc-election__map-footnote { margin-inline: 0; text-align: left; }

/* US map: broadcast contrast with People’s Tally-style geographic interaction. */
.tvc-election__map-card--us { border-color: #253a5a; background: radial-gradient(circle at 82% 18%, #314c78 0, transparent 30%), linear-gradient(145deg, #101a30 0%, #172641 62%, #1d3454 100%); box-shadow: 0 20px 46px #07112138; }
.tvc-election__map-card--us .tvc-election__map-head h3 { color: #f7fbff; }
.tvc-election__map-card--us .tvc-election__eyebrow { color: #8eaff0; }
.tvc-election__map-card--us .tvc-election__map-tag { border-color: #ffffff2b; color: #c6d7f0; background: #ffffff0d; }
.tvc-election__map-card--us .tvc-election__map-hint { color: #bdcce0; }
.tvc-election__map-card--us .tvc-election__map { filter: drop-shadow(0 22px 28px #050c1a66); }
.tvc-election__map-card--us .tvc-election__map-inactive { fill: #344760; stroke: #14243c; stroke-width: 1.4; }
.tvc-election__map-card--us .tvc-election__map-state { stroke: #172943; stroke-width: 1.4; }
.tvc-election__map-card--us .tvc-election__map a:hover .tvc-election__map-state, .tvc-election__map-card--us .tvc-election__map a:focus .tvc-election__map-state { filter: brightness(1.12) saturate(1.2); stroke: #ffffff; stroke-width: 2.6; }
.tvc-election__map-card--us .tvc-election__map a[aria-current] .tvc-election__map-state { stroke: #ffffff; stroke-width: 3.2; }
.tvc-election__map-card--us .tvc-election__map-legend { color: #d3e0f2; }
.tvc-election__map-card--us .tvc-election__map-legend > span:first-child { color: #a8bbd4; }
.tvc-election__map-card--us .tvc-election__map-footnote { color: #a8bbd4; }
.tvc-election__map-card--us { position: relative; }
.tvc-election__map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 198px; gap: 18px; align-items: stretch; margin-top: 14px; }
.tvc-election__map-stage { position: relative; min-width: 0; display: grid; place-items: center; border: 1px solid #ffffff18; border-radius: 14px; background: linear-gradient(145deg, #0b1427b8, #203b60a8); overflow: hidden; }
.tvc-election__map-stage::before { content: ''; position: absolute; inset: 12px; border: 1px solid #ffffff0d; border-radius: 10px; pointer-events: none; }
.tvc-election__map-stage .tvc-election__map { width: 100%; margin-top: 0; padding: 12px; position: relative; z-index: 1; }
.tvc-election__map-rail { min-width: 0; padding: 13px 10px 10px; border: 1px solid #ffffff1f; border-radius: 14px; background: #0b1427a8; }
.tvc-election__map-rail-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 0 4px 9px; border-bottom: 1px solid #ffffff18; color: #f7fbff; }
.tvc-election__map-rail-head strong { font-size: 11px; letter-spacing: -.01em; }
.tvc-election__map-rail-head span { color: #8fa7c8; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.tvc-election__map-state-list { display: grid; grid-template-columns: 1fr; max-height: 360px; overflow-y: auto; padding-right: 3px; }
.tvc-election__map-detail { margin-top: 12px; padding: 12px 10px 10px; border-top: 1px solid #ffffff1f; }
.tvc-election__map-detail-kicker { margin: 0 0 5px; color: #8fa7c8; font-size: 8px; letter-spacing: .12em; }
.tvc-election__map-detail-title { display: block; color: #ffffff; font-size: 17px; letter-spacing: -.03em; }
.tvc-election__map-detail-empty { margin: 6px 0 0; color: #aebfd5; font-size: 9px; line-height: 1.45; }
.tvc-election__map-detail-race { margin-top: 12px; padding-top: 10px; border-top: 1px solid #ffffff18; }
.tvc-election__map-detail-race h4 { margin: 0 0 8px; color: #cbd9eb; font-size: 9px; font-weight: 600; line-height: 1.3; }
.tvc-election__map-detail-candidate { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 6px 0; color: #dbe7f7; }
.tvc-election__map-detail-avatar { width: 28px; height: 28px; display: grid; place-items: center; overflow: hidden; border: 1px solid #ffffff26; border-radius: 50%; color: #cbd9eb; background: #263d61; font-size: 8px; font-weight: 700; }
.tvc-election__map-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tvc-election__map-detail-candidate-copy { min-width: 0; display: grid; gap: 2px; }
.tvc-election__map-detail-candidate-copy b { overflow: hidden; color: #ffffff; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tvc-election__map-detail-candidate-copy small { color: #8fa7c8; font-size: 8px; }
.tvc-election__map-detail-candidate > strong { color: #ffffff; font-size: 9px; text-align: right; white-space: nowrap; }
.tvc-election__map-detail-candidate.is-leading { margin-inline: -4px; padding-inline: 4px; border-radius: 6px; background: #ffffff0d; }
.tvc-election__map-state-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 18px; gap: 5px; align-items: center; padding: 6px 4px; border-bottom: 1px solid #ffffff0d; color: #cbd9eb; text-decoration: none; font-size: 9px; line-height: 1.2; }
.tvc-election__map-state-row:hover, .tvc-election__map-state-row:focus-visible { color: #ffffff; background: #ffffff10; outline: none; }
.tvc-election__map-state-row b { color: #8fa7c8; font-size: 8px; }
.tvc-election__map-state-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvc-election__map-state-row em { justify-self: end; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; color: #ffffff; font-size: 7px; font-style: normal; font-weight: 700; background: #43536b; }
.tvc-election__map-state-row--dem em { background: #3979e8; }
.tvc-election__map-state-row--rep em { background: #df5b61; }
@media (max-width: 760px) {
  .tvc-election__visual-summary { padding: 20px 16px; border-radius: 16px; }
  .tvc-election__visual-summary-head { display: block; }
  .tvc-election__legend { justify-content: flex-start; margin-top: 18px; }
  .tvc-election__seat-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .tvc-election__seat-card > strong { margin-top: 14px; }
  .tvc-election__map-card { padding: 18px 16px 16px; }
  .tvc-election__map-card .tvc-election__map-head { align-items: flex-start; }
  .tvc-election__map-card .tvc-election__map-head h3 { font-size: 20px; }
  .tvc-election__map-card .tvc-election__map-tag { padding: 5px 7px; font-size: 8px; }
  .tvc-election__map-layout { grid-template-columns: 1fr; }
  .tvc-election__map-state-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 220px; }
}

.tvc-senate-scoreboard {
	margin-block: 18px;
	padding: clamp(12px, 3vw, 24px);
	border: 1px solid #dce6f4;
	border-radius: 8px;
	background: #f6f9fd;
}

.tvc-senate-scoreboard__label,
.tvc-senate-scoreboard__majority {
	margin: 0;
	text-align: center;
	font-weight: 700;
}

.tvc-senate-scoreboard__totals {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 8px;
	align-items: end;
	margin-block: 8px;
	font-size: clamp(.68rem, 2vw, 1rem);
	font-weight: 700;
}

.tvc-senate-scoreboard__totals b {
	display: block;
	font-size: clamp(1.8rem, 6vw, 3.5rem);
	line-height: 1;
}

.tvc-senate-scoreboard__totals > span:first-child { color: #164fc0; }
.tvc-senate-scoreboard__totals > span:nth-child(2) { text-align: center; }
.tvc-senate-scoreboard__totals > span:last-child { color: #c81635; text-align: right; }

.tvc-senate-scoreboard__bar {
	height: 34px;
	background: repeating-linear-gradient(90deg, transparent 0 calc(var(--seat-step, 1%) - .5px), #fff calc(var(--seat-step, 1%) - .5px) var(--seat-step, 1%)),
		linear-gradient(90deg, #2056ce 0 var(--dem-end, 54%), #d6dae2 var(--dem-end, 54%) var(--rep-start, 56%), #d21838 var(--rep-start, 56%));
	position: relative;
}

.tvc-senate-scoreboard__bar::after {
	content: "";
	position: absolute;
	inset-block: -4px;
	left: var(--majority, 51%);
	border-left: 2px solid #151922;
}

.tvc-senate-scoreboard__majority { margin-top: 8px; font-size: .8rem; }

.tvc-senate-scoreboard__source { margin: 10px 0 0; font-size: .82rem; }

.tvc-election__office-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block: 0 16px;
	border-bottom: 1px solid #dce6f4;
}

.tvc-election__office-tabs a {
	padding: 10px 16px;
	border-bottom: 3px solid transparent;
	font-weight: 700;
	text-decoration: none;
}

.tvc-election__office-tabs a[aria-current="page"] {
	border-color: #1880fd;
	color: #0759b6;
}

.tvc-election__dashboard {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.tvc-election__dashboard .tvc-election__us-races {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1050px) {
	.tvc-election__dashboard {
		grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	}

	.tvc-election__dashboard .tvc-election__map-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.tvc-election__dashboard .tvc-election__results-card {
		max-height: 850px;
		overflow: auto;
	}
}

.tvc-election__race-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) repeat(2, auto) auto;
	align-items: center;
	gap: 8px;
	padding: 7px 4px;
	cursor: pointer;
	font-size: .8rem;
}

.tvc-election__race-summary small {
	background: #e7f0ff;
	padding: 2px 4px;
	border-radius: 4px;
}

.tvc-election__state-rail {
	padding: 12px;
	border: 1px solid #dce6f4;
	border-radius: 8px;
	background: #f6f9fd;
}

.tvc-election__state-rail > div {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 10px;
	margin-top: 8px;
}

.tvc-election__state-rail a {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: .83rem;
}

.tvc-election__state-rail a[aria-current="page"] {
	font-weight: 800;
	color: #0759b6;
}

@media (min-width: 1050px) and (max-width: 1249px) {
	.tvc-election__sidebar {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1250px) {
	.tvc-election__dashboard {
		grid-template-columns: minmax(260px, 1fr) minmax(0, 2.4fr) minmax(305px, 1.35fr);
	}
}

.tvc-election__state-rail .tvc-election__party-dot {
	display: inline-block;
	flex: 0 0 8px;
	height: 8px;
	border-radius: 50%;
}

.tvc-election__results-rail {
	min-width: 0;
}

.tvc-election__sidebar .tvc-election__office-tabs {
	gap: 4px;
	margin-bottom: 8px;
}

.tvc-election__sidebar .tvc-election__office-tabs a {
	padding-inline: 8px;
	font-size: .85rem;
}

.tvc-election__history {
	display: none;
	padding: 14px;
	border: 1px solid #dce6f4;
	border-radius: 8px;
}

.tvc-election__history:target {
	display: block;
}

.tvc-election__history:target + #us-election-current {
	display: none;
}

.tvc-election__sidebar .tvc-election__office-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border: 0;
}

.tvc-election__sidebar .tvc-election__office-cards a {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 5px;
	padding: 8px 2px;
	border: 1px solid #dce6f4;
	border-radius: 8px;
	background: #fff;
	text-align: center;
	font-size: clamp(.64rem, .8vw, .84rem);
}

.tvc-election__sidebar .tvc-election__office-cards a[aria-current="page"] {
	border-color: #0759b6;
	box-shadow: inset 0 0 0 1px #0759b6;
}

.tvc-election__office-icon {
	display: block;
	width: 34px;
	height: 34px;
}

.tvc-election__sidebar .tvc-election__office-cards a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.tvc-election__office-cards .tvc-election__office-icon {
	max-width: 100%;
	flex-shrink: 0;
}

.tvc-election__selected-state {
	padding: 10px 12px;
}

.tvc-election__selected-state p {
	margin: 0;
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
}

.tvc-election__selected-state h3 {
	margin: 4px 0;
	font-size: clamp(1.55rem, 3vw, 2.5rem);
	line-height: 1.1;
}

.tvc-election__county-card {
	padding: 14px;
	border: 1px solid #dce6f4;
	border-radius: 10px;
	background: #f6f9fd;
}

.tvc-election__county-card svg {
	display: block;
	width: 100%;
	max-height: 620px;
}

.tvc-election__county-card path {
	stroke: #fff;
	stroke-width: 1;
}

.tvc-election__county-card a:is(:hover, :focus-visible) path {
	stroke: #18243b;
	stroke-width: 2;
}

.tvc-election__county-results {
	display: none;
}

.tvc-election__county-results:target {
	display: block;
}

.tvc-election__candidate-portrait {
	overflow: hidden;
}

.tvc-election__candidate-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
}

.tvc-election__selected-state + .tvc-election__results-card .tvc-election__candidates {
	display: grid;
	gap: 8px;
}

.tvc-election__selected-state + .tvc-election__results-card .tvc-election__candidate {
	--candidate-color: #64748b;
	padding: 10px;
	border: 1px solid #dce2eb;
	border-radius: 10px;
	background: #fff;
}

.tvc-election__selected-state + .tvc-election__results-card .tvc-election__candidate--rep { --candidate-color: #c81635; }
.tvc-election__selected-state + .tvc-election__results-card .tvc-election__candidate--dem { --candidate-color: #2056ce; }
.tvc-election__selected-state + .tvc-election__results-card .tvc-election__candidate--ind { --candidate-color: #7855bd; }
.tvc-election__selected-state + .tvc-election__results-card .tvc-election__candidate--projected { border-color: var(--candidate-color); }

.tvc-election__selected-state + .tvc-election__results-card .tvc-election__candidate-portrait {
	width: 44px;
	height: 44px;
	border: 2px solid var(--candidate-color);
	background: #f6f8fc;
	color: var(--candidate-color);
}

.tvc-election__selected-state + .tvc-election__results-card .tvc-election__candidate-name h4 {
	font-size: .95rem;
	font-weight: 750;
	line-height: 1.2;
}

.tvc-election__selected-state + .tvc-election__results-card .tvc-election__candidate-name > span {
	color: var(--candidate-color);
	font-size: .75rem;
}

.tvc-election__selected-state + .tvc-election__results-card .tvc-election__candidate-votes strong {
	font-size: clamp(1.3rem, 2.2vw, 2.1rem);
	font-weight: 800;
}

.tvc-election__selected-state + .tvc-election__results-card .tvc-election__candidate-votes > span {
	font-size: .7rem;
}

.tvc-election__projection-badge {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 12px;
	background: #d9f3e5;
	color: #076342;
	font-size: .65rem;
	text-transform: uppercase;
}

.tvc-election__district-picker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.tvc-election__district-picker select,
.tvc-election__district-picker button {
	max-width: 100%;
	padding: 6px 8px;
	font: inherit;
}

.tvc-election__state-rail a {
	padding: 3px 5px;
	border-radius: 5px;
	text-decoration: none;
}

.tvc-election__state-rail a[aria-current="page"] {
	color: #fff;
	background: #172238;
}


.tvc-election__state-rail {
	container-type: inline-size;
}

.tvc-election__state-rail .tvc-election__all-states {
	margin-top: 6px;
	font-weight: 700;
}

.tvc-election__state-rail a {
	white-space: nowrap;
}

@container (max-width: 225px) {
	.tvc-election__state-rail > div {
		grid-template-columns: minmax(0, 1fr);
	}
}

.tvc-senate-scoreboard__bar--no-majority::after { display: none; }

.tvc-election__office-cards [aria-current="page"] .tvc-election__office-icon {
	transform: scale(1.08);
}

.tvc-senate-scoreboard__totals .tvc-election__counting {
	position: relative;
	color: transparent;
	font-variant-numeric: tabular-nums;
}

.tvc-election__counting > span {
	position: absolute;
	inset: 0;
	color: var(--tvc-counter-color, #282828);
}

.tvc-senate-scoreboard__totals > span:first-child { --tvc-counter-color: #164fc0; }
.tvc-senate-scoreboard__totals > span:last-child { --tvc-counter-color: #c81635; }
