.opx-insight-single .opx-insight-toc {
	margin: 0 auto var(--wp--preset--spacing--gap-20);
	padding: 0;
}

.opx-insight-toc .opx-insight-toc__label {
	box-sizing: border-box;
	margin: 0;
	padding: 13px;
	border-bottom: 1px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--headline-m);
	line-height: calc(35 / 24);
	font-weight: 500;
}

.opx-insight-toc .opx-insight-toc__nav {
	margin: 0;
	padding: 13px;
}

.opx-insight-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: item;
}

.opx-insight-toc__list li {
	display: flex;
	align-items: flex-start;
	counter-increment: item;
	margin: 0 0 7px;
	color: var(--wp--preset--color--ink);
	font-size: 14px;
	line-height: 29px;
	font-weight: 500;
}

.opx-insight-toc__list li::before {
	content: counter(item) ". ";
	flex: none;
	margin-right: 8px;
}

.opx-insight-toc__list a {
	display: block;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.opx-insight-toc__list a:hover,
.opx-insight-toc__list a:focus-visible {
	color: var(--wp--preset--color--accent);
}

@media (max-width: 767px) {
	.opx-insight-toc .opx-insight-toc__label {
		line-height: 1.4;
	}
}

/* Native fragment animation preserves the existing heading/header offset. */
html:has(.opx-insight-toc) {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html:has(.opx-insight-toc) {
		scroll-behavior: auto;
	}
}
