.vpn-hde {
	--vpn-hde-navy: #0c2036;
	--vpn-hde-orange: #dd5926;
	--vpn-hde-orange-dark: #b84419;
	--vpn-hde-electric: #1686b8;
	--vpn-hde-regen: #27845b;
	--vpn-hde-ink: #122033;
	--vpn-hde-muted: #5d6875;
	--vpn-hde-line: #d8dee5;
	--vpn-hde-white: #ffffff;
	box-sizing: border-box;
	position: relative;
	width: 100%;
	margin: 24px 0;
	padding: clamp(12px, 2vw, 20px);
	color: var(--vpn-hde-ink);
	background: #f4f7f9;
	border: 1px solid var(--vpn-hde-line);
	border-radius: 18px;
	overflow: hidden;
	font-family: inherit;
	line-height: 1.45;
}

.vpn-hde *,
.vpn-hde *::before,
.vpn-hde *::after {
	box-sizing: inherit;
}

.vpn-hde button,
.vpn-hde a {
	font: inherit;
}

.vpn-hde__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vpn-hde__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 auto 5px;
}

.vpn-hde__architecture,
.vpn-hde__scenarios {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.vpn-hde__mode,
.vpn-hde__scenario {
	min-height: 34px;
	padding: 6px 11px;
	color: var(--vpn-hde-navy);
	background: var(--vpn-hde-white);
	border: 1px solid var(--vpn-hde-line);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.vpn-hde__mode:hover,
.vpn-hde__scenario:hover {
	border-color: var(--vpn-hde-navy);
	transform: translateY(-1px);
}

.vpn-hde__mode.is-active,
.vpn-hde__mode[aria-pressed="true"] {
	color: var(--vpn-hde-white);
	background: var(--vpn-hde-navy);
	border-color: var(--vpn-hde-navy);
}

.vpn-hde__scenario.is-active,
.vpn-hde__scenario[aria-pressed="true"] {
	color: var(--vpn-hde-white);
	background: var(--vpn-hde-orange);
	border-color: var(--vpn-hde-orange);
}

.vpn-hde__scenario:disabled {
	color: #8b949e;
	background: #edf0f2;
	cursor: not-allowed;
	opacity: 0.65;
	transform: none;
}

.vpn-hde__mode:focus-visible,
.vpn-hde__scenario:focus-visible,
.vpn-hde__component:focus-visible,
.vpn-hde__tooltip-close:focus-visible {
	outline: 3px solid rgba(221, 89, 38, 0.45);
	outline-offset: 2px;
}

.vpn-hde__stage {
	position: relative;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	isolation: isolate;
}

.vpn-hde__illustration {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.vpn-hde__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.vpn-hde__component {
	cursor: pointer;
	pointer-events: all;
}

.vpn-hde__hotspot {
	fill: rgba(255, 255, 255, 0);
	stroke: rgba(255, 255, 255, 0);
	stroke-width: 5;
	vector-effect: non-scaling-stroke;
	transition: fill 160ms ease, stroke 160ms ease, filter 160ms ease;
	pointer-events: all;
}

.vpn-hde__component:hover .vpn-hde__hotspot,
.vpn-hde__component:focus .vpn-hde__hotspot,
.vpn-hde__component.is-inspected .vpn-hde__hotspot {
	fill: rgba(255, 255, 255, 0.08);
	stroke: var(--vpn-hde-orange);
	filter: drop-shadow(0 3px 5px rgba(12, 32, 54, 0.28));
}

.vpn-hde__pin {
	opacity: 0.72;
	pointer-events: none;
	transition: opacity 160ms ease;
}

.vpn-hde__pin circle {
	fill: rgba(255, 255, 255, 0.92);
	stroke: var(--vpn-hde-orange);
	stroke-width: 3;
	vector-effect: non-scaling-stroke;
	transition: fill 160ms ease, transform 160ms ease;
}

.vpn-hde__pin path {
	fill: none;
	stroke: var(--vpn-hde-orange);
	stroke-width: 4;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	transition: stroke 160ms ease;
}

.vpn-hde__component:hover .vpn-hde__pin circle,
.vpn-hde__component:focus .vpn-hde__pin circle,
.vpn-hde__component.is-inspected .vpn-hde__pin circle {
	fill: var(--vpn-hde-orange);
}

.vpn-hde__component:hover .vpn-hde__pin,
.vpn-hde__component:focus .vpn-hde__pin,
.vpn-hde__component.is-inspected .vpn-hde__pin {
	opacity: 1;
}

.vpn-hde__component:hover .vpn-hde__pin path,
.vpn-hde__component:focus .vpn-hde__pin path,
.vpn-hde__component.is-inspected .vpn-hde__pin path {
	stroke: var(--vpn-hde-white);
}

.vpn-hde__flow,
.vpn-hde__flow-halo {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.vpn-hde__flow-halo {
	stroke: rgba(12, 32, 54, 0.78);
	stroke-width: 20;
	filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.95));
}

.vpn-hde__flow {
	stroke-width: 11;
	stroke-dasharray: 18 12;
	filter: drop-shadow(0 1px 1px rgba(12, 32, 54, 0.42));
}

.vpn-hde__flow--diesel {
	stroke: var(--vpn-hde-orange);
}

.vpn-hde__flow--electric,
.vpn-hde__flow--charge {
	stroke: var(--vpn-hde-electric);
}

.vpn-hde__flow--regen {
	stroke: var(--vpn-hde-regen);
}

.vpn-hde__flow-halo.is-active {
	opacity: 0.92;
}

.vpn-hde__flow.is-active {
	opacity: 1;
	animation: vpn-hde-flow 680ms linear infinite;
}

.vpn-hde__arrow {
	stroke: rgba(255, 255, 255, 0.96);
	stroke-width: 0.75;
	paint-order: stroke fill;
}

.vpn-hde__arrow--diesel {
	fill: var(--vpn-hde-orange);
}

.vpn-hde__arrow--electric {
	fill: var(--vpn-hde-electric);
}

.vpn-hde__arrow--regen {
	fill: var(--vpn-hde-regen);
}

@keyframes vpn-hde-flow {
	to {
		stroke-dashoffset: -60;
	}
}

.vpn-hde[data-mode="mhev"] [data-arch]:not([data-arch="mhev"]),
.vpn-hde[data-mode="hev"] [data-arch]:not([data-arch="hev"]),
.vpn-hde[data-mode="phev"] [data-arch]:not([data-arch="phev"]) {
	display: none;
}


.vpn-hde__tooltip {
	position: absolute;
	z-index: 4;
	width: min(330px, calc(100% - 20px));
	padding: 13px 38px 13px 14px;
	color: var(--vpn-hde-ink);
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(12, 32, 54, 0.2);
	border-top: 4px solid var(--vpn-hde-orange);
	border-radius: 11px;
	box-shadow: 0 12px 28px rgba(12, 32, 54, 0.22);
	pointer-events: none;
}

.vpn-hde__tooltip.is-pinned {
	pointer-events: auto;
}

.vpn-hde__tooltip[hidden] {
	display: none;
}

.vpn-hde__tooltip-close {
	position: absolute;
	top: 6px;
	right: 7px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	color: var(--vpn-hde-muted);
	background: transparent;
	border: 0;
	border-radius: 50%;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.vpn-hde__tooltip:not(.is-pinned) .vpn-hde__tooltip-close {
	display: none;
}

.vpn-hde__tooltip-close:hover {
	color: var(--vpn-hde-navy);
	background: #edf2f5;
}

.vpn-hde__tooltip-kicker,
.vpn-hde__tooltip-title {
	display: block;
}

.vpn-hde__tooltip-kicker {
	margin: 0 0 3px;
	color: var(--vpn-hde-orange-dark);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.vpn-hde__tooltip-title {
	margin: 0;
	color: var(--vpn-hde-navy);
	font-size: 1rem;
	line-height: 1.25;
}

.vpn-hde__tooltip-text {
	margin: 6px 0 0;
	color: var(--vpn-hde-muted);
	font-size: 0.86rem;
}

.vpn-hde__legend {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px 16px;
	margin: 2px 0 10px;
	color: var(--vpn-hde-muted);
	font-size: 0.76rem;
}

.vpn-hde__legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vpn-hde__swatch {
	display: inline-block;
	width: 28px;
	height: 6px;
	border-radius: 999px;
	box-shadow: 0 0 0 2px rgba(12, 32, 54, 0.16);
}

.vpn-hde__swatch--diesel {
	background: var(--vpn-hde-orange);
}

.vpn-hde__swatch--electric {
	background: var(--vpn-hde-electric);
}

.vpn-hde__swatch--regen {
	background: var(--vpn-hde-regen);
}

.vpn-hde__disclaimer {
	margin: 7px 0 0;
	color: var(--vpn-hde-muted);
	font-size: 0.72rem;
	text-align: center;
}

@media (max-width: 820px) {
	.vpn-hde__toolbar,
	.vpn-hde__architecture,
	.vpn-hde__scenarios {
		justify-content: center;
	}
}

@media (max-width: 620px) {
	.vpn-hde {
		margin: 18px 0;
		padding: 10px;
		border-radius: 14px;
	}

	.vpn-hde__toolbar {
		gap: 7px;
	}

	.vpn-hde__architecture,
	.vpn-hde__scenarios {
		width: 100%;
	}

	.vpn-hde__mode,
	.vpn-hde__scenario {
		min-height: 32px;
		padding: 5px 9px;
		font-size: 0.76rem;
	}

	.vpn-hde__tooltip {
		padding: 11px 36px 11px 12px;
	}

	.vpn-hde__tooltip-text {
		font-size: 0.82rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vpn-hde *,
	.vpn-hde *::before,
	.vpn-hde *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
