.ctoc {
	--ctoc-accent: #5b4bdb;
	--ctoc-border: #e3e5ea;
	--ctoc-muted: #616773;
	--ctoc-surface: #fff;
	background: var(--ctoc-surface);
	border: 1px solid var(--ctoc-border);
	border-radius: 10px;
	box-sizing: border-box;
	color: inherit;
	margin-block: 1.5rem;
	padding: 1.25rem;
}

.ctoc__toggle {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 650;
	justify-content: space-between;
	padding: 0;
	text-align: left;
	width: 100%;
}

.ctoc__title {
	font-size: 1.0625em;
	font-weight: 650;
	line-height: 1.35;
}

.ctoc__title--static {
	margin-bottom: 0.9rem;
}

.ctoc__chevron {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	display: block;
	height: 0.45rem;
	margin-left: 1rem;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 160ms ease;
	width: 0.45rem;
}

.ctoc.is-collapsed .ctoc__chevron {
	transform: rotate(-45deg);
}

.ctoc__body {
	margin-top: 0.9rem;
}

.ctoc__body[hidden] {
	display: none;
}

.ctoc__list {
	margin: 0;
	padding-left: 1.2rem;
}

.ctoc__list .ctoc__list {
	margin-top: 0.35rem;
}

.ctoc__item {
	line-height: 1.45;
	margin: 0.42rem 0;
	padding-left: 0.15rem;
}

.ctoc__link {
	color: inherit;
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.ctoc__link:hover,
.ctoc__link:focus-visible {
	color: var(--ctoc-accent);
	text-decoration: underline;
}

.ctoc__link.is-active {
	color: var(--ctoc-accent);
	font-weight: 650;
}

.ctoc-target {
	scroll-margin-top: var(--ctoc-scroll-offset, 80px);
}

@media (prefers-reduced-motion: reduce) {
	.ctoc__chevron {
		transition: none;
	}
}

