html {
	scroll-behavior: smooth;
}

.ms-toc {
	box-sizing: border-box;
	display: inline-block;
	width: auto;
	min-width: 260px;
	max-width: 100%;
	margin: 1em 0 1.5em;
	padding: 10px 12px;
	direction: ltr;
	background: #f9f9f9;
	border: 1px solid #e0dad0;
	border-radius: 8px;
	color: inherit;
	font: inherit;
	text-align: left;
}

.ms-toc *,
.ms-toc *::before,
.ms-toc *::after {
	box-sizing: border-box;
}

.ms-toc .ms-toc__toggle,
.ms-toc .ms-toc__toggle:hover,
.ms-toc .ms-toc__toggle:focus,
.ms-toc .ms-toc__toggle:active,
.ms-toc .ms-toc__toggle[aria-expanded="true"] {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	width: 100%;
	margin: 0;
	padding: 0 !important;
	background: #f9f9f9 !important;
	background-color: #f9f9f9 !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	cursor: pointer;
	font: inherit;
	line-height: inherit;
	text-decoration: none !important;
	text-shadow: none !important;
	text-align: left;
	text-transform: none;
}

.ms-toc .ms-toc__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

.ms-toc__title {
	display: block;
	color: inherit !important;
	margin: 0;
	font-size: 120%;
	font-weight: 500;
	line-height: 1.3;
}

.ms-toc__caret {
	flex: 0 0 auto;
	color: inherit !important;
	font-size: 1.15rem;
	line-height: 1;
}

.ms-toc .ms-toc__list {
	margin: 0.65em 0 0 !important;
	margin-left: 0 !important;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0 !important;
	list-style: none !important;
	list-style-position: outside;
	font-size: 95%;
	line-height: 1.45;
	transition:
		max-height 180ms ease,
		opacity 180ms ease;
	will-change: max-height;
}

.ms-toc .ms-toc__item {
	margin: 0.25em 0 !important;
	margin-left: 0 !important;
	padding: 0 !important;
	padding-left: 0 !important;
	list-style: none !important;
}

.ms-toc__link {
	color: inherit;
	text-decoration: none;
}

.ms-toc__link:hover,
.ms-toc__link:focus {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.ms-toc .ms-toc__list {
		transition-duration: 1ms;
	}
}

@media (max-width: 480px) {
	.ms-toc {
		display: block;
		min-width: 0;
		width: 100%;
	}
}
