.ppt-project-tracker {
	box-sizing: border-box;
	width: 100%;
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
	container-type: inline-size;
}

.ppt-project-tracker *,
.ppt-project-tracker *::before,
.ppt-project-tracker *::after {
	box-sizing: border-box;
}

.ppt-project-tracker__cover-link {
	display: block;
	width: min(220px, 62vw);
	margin: 0 auto 1rem;
	line-height: 0;
}

.ppt-project-tracker__cover {
	display: block;
	width: 100%;
	height: auto;
	border: 3px solid #7687ab;
	border-radius: 2px;
	box-shadow: 0 0.45rem 1.25rem rgb(0 0 0 / 22%);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.ppt-project-tracker__cover-link:hover .ppt-project-tracker__cover,
.ppt-project-tracker__cover-link:focus-visible .ppt-project-tracker__cover {
	transform: translateY(-2px);
	box-shadow: 0 0.65rem 1.5rem rgb(0 0 0 / 28%);
}

.ppt-project-tracker__title {
	text-align: center;
	margin: 0 0 0.85rem;
	font-size: clamp(1.55rem, 3vw, 2.2rem);
	line-height: 1.15;
	color: inherit;
}

.ppt-project-tracker__title a {
	color: inherit;
	text-decoration: none;
}

.ppt-project-tracker__title a:hover,
.ppt-project-tracker__title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.ppt-project-tracker__track {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: clamp(1.35rem, 3vw, 1.8rem);
	background: #a9bbcc;
	border: 3px solid #7687ab;
	border-radius: 0.3rem;
	box-shadow: inset 0 1px 3px rgb(0 0 0 / 20%);
}

.ppt-project-tracker__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background-image: linear-gradient(
		90deg,
		#85444a 0%,
		#c17b5c 25%,
		#d9c277 50%,
		#9ba14f 75%,
		#596e47 100%
	);
	background-repeat: no-repeat;
	background-size: var(--ppt-gradient-size);
	box-shadow: inset 0 1px 2px rgb(255 255 255 / 20%);
	animation: ppt-project-fill 1.1s cubic-bezier(.2,.75,.25,1) forwards;
}

@keyframes ppt-project-fill {
	to { width: var(--ppt-progress); }
}

.ppt-project-tracker__percentage {
	margin-top: 0.25rem;
	font-size: 0.72em;
	font-variant-numeric: tabular-nums;
	opacity: 0.78;
}

.ppt-project-tracker__current-step {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	margin-top: 0.55rem;
	line-height: 1.3;
}

.ppt-project-tracker__current-step-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.65;
}

.ppt-project-tracker__current-step-value {
	font-size: clamp(1rem, 2vw, 1.2rem);
	font-weight: 600;
}

.ppt-project-tracker__steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(0.45rem, 3cqw, 1rem);
	margin-top: 0.7rem;
	font-size: clamp(0.72rem, 3.6cqw, 0.9rem);
	line-height: 1.35;
}

.ppt-project-tracker__step {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	min-width: 0;
}

.ppt-project-tracker__step--previous {
	text-align: left;
}

.ppt-project-tracker__step--next {
	text-align: right;
}

.ppt-project-tracker__step-label {
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.65;
}

.ppt-project-tracker__step-value {
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: auto;
}

.ppt-project-tracker--empty {
	padding: 1rem;
	border: 1px dashed currentColor;
	opacity: 0.7;
}

@container (max-width: 340px) {
	.ppt-project-tracker__cover-link {
		width: min(185px, 86%);
		margin-bottom: 0.75rem;
	}

	.ppt-project-tracker__title {
		font-size: clamp(1.3rem, 10cqw, 1.75rem);
		margin-bottom: 0.65rem;
	}

	.ppt-project-tracker__track {
		height: 1.25rem;
		border-width: 2px;
	}

	.ppt-project-tracker__percentage {
		font-size: 0.68rem;
	}

	.ppt-project-tracker__current-step-value {
		font-size: 0.95rem;
	}

	.ppt-project-tracker__current-step-label {
		font-size: 0.64rem;
	}

	.ppt-project-tracker__steps {
		gap: 0.5rem;
		font-size: clamp(0.7rem, 4.2cqw, 0.82rem);
	}

	.ppt-project-tracker__step-label {
		font-size: 0.7em;
		letter-spacing: 0.035em;
		white-space: nowrap;
	}
}

@container (max-width: 190px) {
	.ppt-project-tracker__steps {
		grid-template-columns: 1fr;
		gap: 0.55rem;
	}

	.ppt-project-tracker__step--previous,
	.ppt-project-tracker__step--next {
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ppt-project-tracker__fill {
		width: var(--ppt-progress);
		animation: none;
	}

	.ppt-project-tracker__cover {
		transition: none;
	}
}
