
/* End basic CSS override */

:root {
	--c-primary: #003a60;
	--c-secondary: #c5ecfb;
	--c-stepper-bg: #fff;
}

.stepper {
	display: flex;
	flex-direction: column;
	counter-reset: stepper;
	gap: 8px;
    padding-top: 2em;
}

.stepper-item {
	display: grid;
	grid-template-rows: [text-row] auto [line-row] 20px;
	grid-template-columns: [counter-column] 28px [text-column] auto;
	column-gap: 16px;
	row-gap: 8px;
	position: relative;
}

.stepper-item.complete .stepper-counter {
	background-color: var(--c-secondary);
	color: var(--c-primary);
	position: relative;
}

.stepper-item.complete .stepper-counter:after {
	position: absolute;
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: var(--c-stepper-bg);
	right: -6px;
	bottom: -6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath fill='%231d4ed8' d='M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z'/%3E%3C/svg%3E");
	background-size: 12px;
	background-repeat: no-repeat;
	background-position: center center;
}

.stepper-item:last-child {
	grid-template-rows: [text-row] auto;
}

.stepper-line {
	display: block;
	width: 2px;
	background-color: #8f8f8f;
	height: 100%;
	justify-self: center;
}

.stepper-item:last-child .stepper-line {
	display: none;
}

.stepper-counter {
	flex-shrink: 0;
	counter-increment: stepper;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background-color: var(--c-primary);
	color: #fff;
	border-radius: 50%;
	line-height: 1;
}

.stepper-counter:before {
	content: counter(stepper);
}

.stepper-link {
	display: flex;
	gap: 12px;
	text-decoration: none;
	color: var(--c-primary);
	position: relative;
}

.stepper-link span {
	padding-top: calc((28px - 1.5em) / 2);
	font-weight: 600;
	border-bottom: 2px solid transparent;
}

.stepper-link:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.stepper-link:focus {
	outline-offset: 4px;
	outline-color: var(--c-primary);
	outline-width: 2px;
	border-radius: 4px;
}
