/* NM Election Results — front-end */
.nmer-widget {
	--nmer-text: inherit;
	--nmer-muted: #6b6f76;
	--nmer-track: rgba(0, 0, 0, 0.08);
	--nmer-border: rgba(0, 0, 0, 0.12);
	font-size: 15px;
	line-height: 1.35;
	margin: 1.5em 0;
}
.nmer-title {
	margin: 0 0 0.75em;
	font-size: 1.25em;
}
.nmer-races {
	display: grid;
	gap: 1.25em;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) {
	.nmer-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nmer-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.nmer-race {
	border-top: 2px solid currentColor;
	padding-top: 0.6em;
}
.nmer-race-name {
	font-weight: 700;
	font-size: 1.05em;
}
.nmer-race-sub {
	color: var(--nmer-muted);
	font-size: 0.85em;
	margin-top: 0.1em;
}
.nmer-tag {
	display: inline-block;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--nmer-muted);
	margin-top: 0.4em;
}
.nmer-cands {
	list-style: none;
	margin: 0.6em 0 0;
	padding: 0;
}
.nmer-cand {
	margin: 0 0 0.6em;
	padding: 0;
}
.nmer-cand-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75em;
}
.nmer-cand-name {
	font-weight: 600;
	min-width: 0;
	overflow-wrap: anywhere;
}
.nmer-party {
	display: inline-block;
	font-size: 0.72em;
	font-weight: 700;
	color: #fff;
	background: var(--nmer-color);
	border-radius: 3px;
	padding: 0.1em 0.4em;
	vertical-align: middle;
	margin-left: 0.2em;
}
.nmer-check {
	color: var(--nmer-color);
	font-weight: 700;
	margin-left: 0.2em;
}
.nmer-called .nmer-cand-name { text-decoration: underline; text-decoration-color: var(--nmer-color); text-underline-offset: 3px; }
.nmer-cand-nums {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	text-align: right;
}
.nmer-pct {
	font-weight: 700;
	display: inline-block;
	min-width: 3.5em;
}
.nmer-votes {
	color: var(--nmer-muted);
	font-size: 0.85em;
	margin-left: 0.5em;
}
.nmer-bar {
	height: 10px;
	background: var(--nmer-track);
	border-radius: 3px;
	overflow: hidden;
	margin-top: 0.25em;
}
.nmer-bar-fill {
	height: 100%;
	background: var(--nmer-color);
	border-radius: 3px;
	width: 0;
	transition: width 0.6s ease;
}
.nmer-style-compact .nmer-bar { height: 7px; }
.nmer-style-compact .nmer-cand { margin-bottom: 0.4em; }
.nmer-style-compact .nmer-race-name { font-size: 1em; }
.nmer-breakdown {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	font-size: 0.78em;
	color: var(--nmer-muted);
	margin-top: 0.2em;
}
.nmer-race-foot {
	color: var(--nmer-muted);
	font-size: 0.8em;
	margin-top: 0.2em;
}
.nmer-footer {
	color: var(--nmer-muted);
	font-size: 0.78em;
	margin-top: 1em;
	padding-top: 0.5em;
	border-top: 1px solid var(--nmer-border);
}
.nmer-footer a { color: inherit; }
.nmer-empty { color: var(--nmer-muted); font-style: italic; }
.nmer-widget.nmer-refreshing .nmer-footer::after {
	content: " · refreshing…";
}
