.toc {
	padding: 4px 0 0;
}

.toc__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding: 24px;
	background: #E9EEF5;
	border-radius: 20px;
}

.toc__title {
	margin: 0;
	font-size: 24px;
	line-height: 140%;
	font-weight: 600;
	color: #131C2E;
}

.toc__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.toc__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.toc__dot {
	width: 6px;
	height: 6px;
	flex-shrink: 0;
	/* Nudged down to sit on the first line of the link. */
	margin-top: 11px;
	border-radius: 50%;
	background: var(--color-primary);
}

.toc__link {
	font-size: 18px;
	line-height: 150%;
	font-weight: 500;
	color: #3B455A;
	text-decoration: none;
	transition: all 0.3s;
}

.toc__link:hover,
.toc__link:focus-visible {
	color: var(--color-primary);
}

.toc__empty {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 150%;
	color: #6D7890;
}

/* Anchored headings should not land right against the top of the viewport. */
h2[id] {
	scroll-margin-top: 32px;
}

.toc__card {
	max-width: 1386px;
	width: 100%;
	margin: 0 auto;
}

/* The jump reads better as a scroll, unless the reader asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media (max-width: 1440px) {
	.toc__card {
		gap: 16px;
		max-width: 926px;
		padding: 20px;
	}

	.toc__title {
		font-size: 20px;
	}

	.toc__link {
		font-size: 16px;
	}
}

@media (max-width: 600px) {
	.toc__card {
		gap: 12px;
		padding: 20px;
	}

	.toc__title {
		font-size: 18px;
	}

	.toc__link {
		font-size: 14px;
	}

	.toc__dot {
		margin-top: 9px;
	}
}