/**
 * Metropolis Process Steps.
 */

.steps {
	display: grid;
	grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	position: relative;
	padding-right: 24px;
}

/* The line joining one step to the next. */
.step::before {
	content: "";
	position: absolute;
	top: 22px;
	left: 44px;
	right: 0;
	height: 1px;
	background: var(--mist-deep);
}

.step:last-child::before {
	display: none;
}

.step__num {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--fascia);
	border-radius: 50%;
	font-family: var(--serif);
	font-size: 1.125rem;
	font-variant-numeric: lining-nums;
	color: var(--fascia);
}

.step__title {
	margin-top: 22px;
	font-family: var(--serif);
	font-weight: 400;
	font-size: 1.375rem;
	line-height: 1.2;
	color: var(--fascia);
}

.step__text {
	margin-top: 10px;
	font-size: 1rem;
	color: var(--ink-soft);
}

.is-fascia .step::before { background: var(--fascia-line); }
.is-fascia .step__num { border-color: var(--on-fascia-soft); color: var(--on-fascia); }
.is-fascia .step__title { color: var(--on-fascia); }
.is-fascia .step__text { color: var(--on-fascia-soft); }

@media (max-width: 960px) {
	.steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.step {
		display: grid;
		grid-template-columns: 44px 1fr;
		column-gap: 20px;
		padding: 0 0 32px;
	}

	.step::before {
		top: 44px;
		bottom: 0;
		left: 22px;
		right: auto;
		width: 1px;
		height: auto;
	}

	.step__num { grid-row: span 2; }
	.step__title { margin-top: 8px; }
	.step__text { grid-column: 2; }
}
