.uspen-poll-map {
	box-sizing: border-box;
	margin: 28px 0 32px;
	padding: 22px;
	border: 1px solid #cbd5df;
	border-top: 5px solid #244a70;
	border-radius: 4px;
	background: #f7f9fb;
	color: #111827;
}

.uspen-poll-map * {
	box-sizing: border-box;
}

.uspen-poll-map__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.uspen-poll-map__header h2 {
	margin: 3px 0 7px;
	color: #173b5e;
	font-size: 25px;
	line-height: 1.2;
}

.uspen-poll-map__kicker {
	color: #60778c;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
}

.uspen-poll-map__date {
	flex: 0 0 auto;
	padding: 6px 9px;
	border-radius: 3px;
	background: #e7edf2;
	color: #526579;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.uspen-balance {
	margin-bottom: 20px;
}

.uspen-balance__labels {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 10px;
	align-items: end;
	margin-bottom: 7px;
	font-size: 15px;
}

.uspen-balance__dem {
	color: #1d4ed8;
}

.uspen-balance__gop {
	color: #b91c1c;
	text-align: right;
}

.uspen-balance__majority {
	color: #5f6f7f;
	font-size: 12px;
	font-weight: 600;
}

.uspen-balance__bar {
	position: relative;
	display: flex;
	width: 100%;
	height: 28px;
	overflow: hidden;
	border: 1px solid #bdc8d2;
	border-radius: 3px;
	background: #e5e7eb;
}

.uspen-balance__dem-fill {
	background: #2563b8;
}

.uspen-balance__gop-fill {
	background: #c43d3d;
}

.uspen-balance__line {
	position: absolute;
	top: -3px;
	bottom: -3px;
	left: 51%;
	width: 3px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}

.uspen-poll-map__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin: 0 0 12px;
	color: #4b5e70;
	font-size: 12px;
	font-weight: 600;
}

.uspen-poll-map__legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.uspen-poll-map__legend i {
	display: inline-block;
	width: 13px;
	height: 13px;
	border: 1px solid rgba(0, 0, 0, .16);
	border-radius: 2px;
}

.uspen-poll-map__legend .is-dem {
	background: #2563b8;
}

.uspen-poll-map__legend .is-gop {
	background: #c43d3d;
}

.uspen-poll-map__legend .is-flip {
	border: 3px solid #d2a72c;
	background: #fff;
}

.uspen-poll-map__legend .is-untracked {
	background: #dfe5ea;
}

.uspen-poll-map__svg-wrap {
	width: 100%;
	margin: 0 auto 12px;
}

.uspen-poll-map__svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: 470px;
}

.uspen-state rect {
	fill: #dfe5ea;
	stroke: #bdc7d0;
	stroke-width: 1.5;
	transition: filter .15s ease, stroke-width .15s ease;
}

.uspen-state text {
	pointer-events: none;
	fill: #526170;
	font-family: Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
}

.uspen-state.is-dem rect {
	fill: #2563b8;
	stroke: #164b8e;
}

.uspen-state.is-gop rect {
	fill: #c43d3d;
	stroke: #8f2626;
}

.uspen-state.is-tracked text {
	fill: #fff;
}

.uspen-state.is-flip rect {
	stroke: #d2a72c;
	stroke-width: 5;
}

.uspen-state.is-tracked {
	cursor: pointer;
}

.uspen-state.is-tracked:hover rect,
.uspen-state.is-tracked:focus rect {
	filter: brightness(1.12);
	stroke-width: 4;
}

.uspen-state.is-tracked:focus {
	outline: none;
}

.uspen-state .uspen-state__flip-mark {
	fill: #ffe37b;
	font-size: 12px;
}

.uspen-poll-map__detail {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	margin: 0 0 18px;
	padding: 10px 13px;
	border: 1px solid #d2dae2;
	border-radius: 3px;
	background: #fff;
	color: #4b5e70;
	font-size: 13px;
}

.uspen-poll-map__detail strong {
	color: #173b5e;
	font-size: 14px;
}

.uspen-poll-map__detail span {
	text-align: right;
}

.uspen-flips {
	margin: 4px 0 18px;
	padding: 16px;
	border-left: 5px solid #d2a72c;
	background: #fff;
}

.uspen-flips__heading {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 12px;
	color: #173b5e;
}

.uspen-flips__heading span {
	color: #7a5b00;
	font-size: 13px;
	font-weight: 700;
}

.uspen-flips__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.uspen-flips__grid > div {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 8px;
	padding: 8px 10px;
	border: 1px solid #d7dee5;
	border-radius: 3px;
	background: #f7f9fb;
	font-size: 13px;
}

.uspen-flips__grid strong {
	color: #173b5e;
}

.uspen-flips__grid span {
	color: #7a5b00;
	font-weight: 700;
}

.uspen-flips__grid small {
	grid-column: 1 / -1;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 700;
}

.uspen-poll-map__note {
	margin: 0;
	color: #596b7b;
	font-size: 12px;
	line-height: 1.45;
}

.uspen-poll-map-error {
	padding: 12px;
	border-left: 4px solid #b91c1c;
	background: #fff1f1;
	color: #7f1d1d;
}

@media (max-width: 700px) {
	.uspen-poll-map {
		padding: 17px 13px;
	}

	.uspen-poll-map__header {
		display: block;
	}

	.uspen-poll-map__header h2 {
		font-size: 22px;
	}

	.uspen-poll-map__date {
		display: inline-block;
		margin-top: 11px;
		white-space: normal;
	}

	.uspen-balance__labels {
		grid-template-columns: 1fr 1fr;
	}

	.uspen-balance__labels strong span,
	.uspen-balance__majority {
		display: none;
	}

	.uspen-poll-map__legend {
		gap: 8px 12px;
	}

	.uspen-poll-map__svg {
		min-height: 215px;
	}

	.uspen-poll-map__detail {
		display: block;
	}

	.uspen-poll-map__detail strong,
	.uspen-poll-map__detail span {
		display: block;
		text-align: left;
	}

	.uspen-poll-map__detail span {
		margin-top: 3px;
	}

	.uspen-flips__heading {
		display: block;
	}

	.uspen-flips__heading span {
		display: block;
		margin-top: 4px;
	}

	.uspen-flips__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 430px) {
	.uspen-flips__grid {
		grid-template-columns: 1fr;
	}
}
