/* LR — Caminho (Assessment 02). Valores = layout aprovado.
 * Trilho (::before) e preenchimento (::after) no <ol>; o JS define --lr-path-p (0–1).
 * Horizontal ≥ 900px, vertical abaixo. Estado padrão (sem JS / sem animação): linha cheia,
 * etapas acesas.
 */

.lr-path {
	--lr-path-track: color-mix(in srgb, var(--lr-primary) 18%, transparent);
	--lr-path-fill: var(--lr-teal);
	--lr-path-circle: var(--lr-mint);
	--lr-path-ring: var(--lr-white);
	--lr-path-icon: var(--lr-primary);
	--lr-path-dim: .35;
	position: relative;
	overflow: hidden;
	background-color: var(--lr-white);
}

.lr-path__inner {
	max-width: var(--lr-max);
	margin: 0 auto;
	padding: clamp(90px, 11vw, 160px) var(--lr-gutter);
}

/* ------------------------------------------------------------------ header */

.lr-path__head {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 64px;
	justify-content: space-between;
	align-items: flex-end;
}

.lr-path__lead {
	flex: 1 1 560px;
	min-width: 0;
}

.lr-path__title {
	margin: 20px 0 0;
	font-weight: 800;
	font-size: calc(clamp(38px, 4.8vw, 80px) * var(--lr-ts, 1));
	line-height: 1;
	letter-spacing: -.035em;
	color: var(--lr-primary);
	text-wrap: balance;
}

.lr-path__body {
	flex: 0 1 480px;
	min-width: 0;
	font-size: calc(18px * var(--lr-ts, 1));
	line-height: 1.6;
	color: var(--lr-primary);
	text-wrap: pretty;
}

.lr-path__body p + p {
	margin-top: 1em;
}

/* ------------------------------------------------------------------ path */

.lr-w .lr-path__list {
	list-style: none;
	margin: clamp(56px, 7vw, 110px) 0 0;
	padding: 0;
	position: relative;
	display: flex;
	flex-direction: row;
	gap: 24px;
}

.lr-path__list::before,
.lr-path__list::after {
	content: "";
	position: absolute;
	left: 28px;
	right: 28px;
	top: 27px;
	height: 2px;
	z-index: 0;
	pointer-events: none;
}

.lr-path__list::before {
	background-color: var(--lr-path-track);
}

.lr-path__list::after {
	background-color: var(--lr-path-fill);
	transform-origin: left center;
	transform: scaleX(var(--lr-path-p, 1));
}

.lr-path__node {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-items: flex-start;
	opacity: 1;
	transition: opacity .6s ease;
}

.lr-motion .lr-path:not(.is-static) .lr-path__list {
	--lr-path-p: 0;
}

.lr-motion .lr-path:not(.is-static) .lr-path__node:not(.is-on) {
	opacity: var(--lr-path-dim);
}

.lr-path__circle {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background-color: var(--lr-path-circle);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 8px var(--lr-path-ring);
}

.lr-path__circle .lr-path__icon {
	width: 58%;
	height: 58%;
	max-width: none;
	object-fit: contain;
}

.lr-path__text {
	display: block;
	min-width: 0;
	padding-top: 4px;
}

.lr-path__num {
	display: block;
	font-size: calc(12px * var(--lr-ts, 1));
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .2em;
	color: var(--lr-teal);
}

.lr-path__name {
	display: block;
	margin-top: 8px;
	max-width: 240px;
	font-weight: 700;
	font-size: calc(clamp(18px, 1.5vw, 22px) * var(--lr-ts, 1));
	line-height: 1.3;
	color: var(--lr-primary);
}

/* ------------------------------------------------------------------ narrow (vertical) */

@media (max-width: 899px) {
	.lr-w .lr-path__list {
		flex-direction: column;
		gap: 36px;
	}

	.lr-path__list::before,
	.lr-path__list::after {
		left: 27px;
		right: auto;
		top: 28px;
		bottom: 28px;
		width: 2px;
		height: auto;
	}

	.lr-path__list::after {
		transform-origin: center top;
		transform: scaleY(var(--lr-path-p, 1));
	}

	.lr-path__node {
		flex-direction: row;
	}

	.lr-path__text {
		padding-top: 2px;
	}
}
