/* AG Process */

.ag-process__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

/* Mobile: vertical timeline with the line on the left. */
.ag-process__step {
	position: relative;
	padding: 0 0 40px 56px;
}

.ag-process__step:last-child {
	padding-bottom: 0;
}

.ag-process__step::before {
	position: absolute;
	top: 6px;
	left: 0;
	width: 9px;
	height: 9px;
	border: 1px solid var(--ag-brass-text);
	border-radius: 50%;
	background: var(--ag-brass);
	content: "";
}

.ag-process__step::after {
	position: absolute;
	top: 22px;
	bottom: 0;
	left: 4px;
	width: 1px;
	background: var(--ag-sand);
	content: "";
}

.ag-process__step:last-child::after {
	display: none;
}

.ag-dark .ag-process__step::after {
	background: var(--ag-hairline-light);
}

.ag-process__number {
	display: block;
	margin-bottom: 10px;
	color: var(--ag-brass-text);
	font-size: var(--ag-eyebrow);
	font-weight: 600;
	letter-spacing: 0.18em;
}

.ag-dark .ag-process__number {
	color: var(--ag-brass);
}

.ag-process__title {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 1.2vw + 1.25rem, 2.375rem);
}

.ag-process__text {
	max-width: 26rem;
	margin: 0;
	color: var(--ag-graphite);
}

.ag-dark .ag-process__text {
	color: var(--ag-mist);
}

/* Desktop: horizontal timeline with the line along the top. */
@media (min-width: 900px) {
	.ag-process__list {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		grid-template-columns: none;
	}

	.ag-process__step {
		padding: 44px 40px 0 0;
	}

	.ag-process__step:last-child {
		padding-right: 0;
	}

	.ag-process__step::before {
		top: 0;
	}

	.ag-process__step::after {
		top: 4px;
		right: 0;
		bottom: auto;
		left: 22px;
		width: auto;
		height: 1px;
	}

	.ag-process__step:last-child::after {
		display: block;
		right: 0;
	}
}
