.strh-election-journey {
	--strh-ej-accent: #176b52;
	--strh-ej-accent-dark: #0f513d;
	--strh-ej-ink: #16383d;
	--strh-ej-muted: #607276;
	--strh-ej-surface: #ffffff;
	--strh-ej-soft: #f5f9f7;
	--strh-ej-border: #dbe7e1;
	--strh-ej-focus: #f3c536;

	width: 100%;
	max-width: 780px;
	margin: 28px auto;
	color: var(--strh-ej-ink);
}

/* Match the ballot box to the active subway stop. */
.strh-election-journey[data-active-station="eligibility"] {
	--strh-ej-accent: #176b52;
	--strh-ej-accent-dark: #0f513d;
}

.strh-election-journey[data-active-station="ward"] {
	--strh-ej-accent: #e5ad18;
	--strh-ej-accent-dark: #765a00;
}

.strh-election-journey[data-active-station="ballot"] {
	--strh-ej-accent: #2678c9;
	--strh-ej-accent-dark: #17558f;
}

.strh-election-journey[data-active-station="compare"] {
	--strh-ej-accent: #8a56bd;
	--strh-ej-accent-dark: #653892;
}

.strh-election-journey[data-active-station="plan"] {
	--strh-ej-accent: #e66a3c;
	--strh-ej-accent-dark: #a33e1e;
}

.strh-election-journey,
.strh-election-journey * {
	box-sizing: border-box;
}

.strh-ej-station-label {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
}

.strh-ej-station-label span {
	display: inline-flex;
	padding: 5px 10px;
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--strh-ej-accent-dark);
	border-radius: 999px;
	transition: background-color 180ms ease;
}

.strh-ej-station-label strong {
	font-size: 18px;
}

.strh-ej-ballot-slot {
	display: grid;
	position: relative;
	z-index: 2;
	width: min(88%, 640px);
	min-height: 42px;
	margin: 0 auto -4px;
	place-items: center;
	background: var(--strh-ej-accent-dark);
	border-radius: 22px 22px 5px 5px;
	transition: background-color 180ms ease;
}

.strh-ej-ballot-slot span {
	display: block;
	width: min(62%, 330px);
	height: 8px;
	background: rgba(0, 0, 0, 0.54);
	border-radius: 999px;
}

.strh-ej-ballot-box {
	position: relative;
	padding: clamp(22px, 5vw, 46px);
	background: var(--strh-ej-surface);
	border: 3px solid var(--strh-ej-accent-dark);
	border-radius: 18px 18px 28px 28px;
	box-shadow: 0 18px 45px rgba(18, 55, 49, 0.12);
	transition: border-color 180ms ease;
}

.strh-ej-toolbar {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	align-items: center;
	margin-bottom: 10px;
}

.strh-ej-progress-label {
	color: var(--strh-ej-muted);
	font-size: 14px;
	font-weight: 700;
}

.strh-ej-back {
	padding: 7px 12px;
	color: var(--strh-ej-accent-dark);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	background: transparent;
	border: 1px solid var(--strh-ej-border);
	border-radius: 9px;
	cursor: pointer;
}

.strh-ej-progress {
	width: 100%;
	height: 7px;
	overflow: hidden;
	background: #e8efeb;
	border-radius: 999px;
}

.strh-ej-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--strh-ej-accent);
	transition: width 220ms ease;
}

.strh-ej-card {
	padding-top: clamp(22px, 4vw, 34px);
	outline: 0;
}

.strh-ej-station-set[hidden],
.strh-ej-card[hidden] {
	display: none;
}

.strh-ej-placeholder {
	min-height: 250px;
}

.strh-ej-eyebrow {
	margin: 0 0 7px;
	color: var(--strh-ej-accent-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.strh-ej-card h2 {
	margin: 0 0 15px;
	color: var(--strh-ej-ink);
	font-size: clamp(25px, 4.4vw, 38px);
	line-height: 1.15;
}

.strh-ej-content {
	color: #304f53;
	font-size: 17px;
	line-height: 1.65;
}

.strh-ej-content > :first-child {
	margin-top: 0;
}

.strh-ej-checklist {
	display: grid;
	gap: 10px;
	margin: 22px 0;
}

.strh-ej-checklist label {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 12px;
	align-items: start;
	min-height: 48px;
	padding: 13px 15px;
	background: var(--strh-ej-soft);
	border: 1px solid var(--strh-ej-border);
	border-radius: 12px;
	cursor: pointer;
}

.strh-ej-checklist input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--strh-ej-accent);
}

.strh-ej-checklist span {
	font-size: 16px;
	line-height: 1.45;
}

.strh-ej-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.strh-ej-action {
	display: inline-flex;
	min-height: 46px;
	padding: 11px 18px;
	align-items: center;
	justify-content: center;
	color: var(--strh-ej-accent-dark);
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
	background: #ffffff;
	border: 2px solid var(--strh-ej-accent);
	border-radius: 11px;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.strh-ej-action.is-primary {
	color: #ffffff;
	background: var(--strh-ej-accent-dark);
	border-color: var(--strh-ej-accent-dark);
}

.strh-ej-action:hover:not(:disabled),
.strh-ej-action:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(18, 55, 49, 0.16);
}

.strh-ej-action:focus-visible,
.strh-ej-back:focus-visible,
.strh-ej-checklist input:focus-visible {
	outline: 3px solid var(--strh-ej-focus);
	outline-offset: 3px;
}

.strh-ej-action:disabled {
	color: #687875;
	background: #e6ece9;
	border-color: #cbd7d1;
	cursor: not-allowed;
	opacity: 0.72;
}

@media (max-width: 600px) {
	.strh-election-journey {
		margin: 20px auto;
	}

	.strh-ej-ballot-slot {
		width: 92%;
	}

	.strh-ej-ballot-box {
		padding: 22px 18px 26px;
		border-width: 2px;
		border-radius: 14px 14px 22px 22px;
	}

	.strh-ej-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.strh-ej-action {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.strh-ej-progress span,
	.strh-ej-action {
		transition: none;
	}
}
