/* Numbered Steps */
.hwd.hwd-steps { container: hwd-steps / inline-size; }

.hwd-steps .hwd-steps__list { list-style: none; margin: 0; padding: 0; }
.hwd-steps .hwd-steps__item {
	counter-increment: hwd-step;
	position: relative;
	margin: 0;
	padding: 0 0 var(--hwd-step-space, 26px) 62px;
}
.hwd-steps .hwd-steps__item:last-child { padding-bottom: 0; }
.hwd-steps .hwd-steps__item::before {
	content: counter(hwd-step);
	position: absolute;
	inset-inline-start: 0;
	top: -2px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--hwd-step-bg, var(--hwd-ink));
	color: var(--hwd-step-text, #fff);
	font-size: 1.05rem;
	font-stretch: 115%;
	font-weight: 750;
	line-height: 1;
}
.hwd-steps .hwd-steps__item:not(:last-child)::after {
	content: "";
	position: absolute;
	inset-inline-start: 20px;
	top: 44px;
	bottom: 4px;
	width: 2px;
	background: var(--hwd-step-line, var(--hwd-line));
}

.hwd-steps .hwd-steps__title {
	margin: 6px 0;
	color: var(--hwd-step-title, var(--hwd-ink));
	font-family: inherit;
	font-size: 1.2rem;
	font-stretch: 108%;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}
.hwd-steps .hwd-steps__body > * { margin: 0 0 10px; max-width: var(--hwd-measure); }
.hwd-steps .hwd-steps__body > :last-child { margin-bottom: 0; }
.hwd-steps .hwd-steps__body :is(ul, ol) { padding-inline-start: 1.25em; }
.hwd-steps .hwd-steps__body li::marker { color: var(--hwd-amber); }

@container hwd-steps (max-width: 480px) {
	.hwd-steps .hwd-steps__item { padding-inline-start: 54px; }
	.hwd-steps .hwd-steps__item::before { width: 38px; height: 38px; }
	.hwd-steps .hwd-steps__item:not(:last-child)::after { inset-inline-start: 18px; }
}
