html {
	scroll-behavior: smooth;
}

/* Table of Contents Container */
.toc-container {
	background-color: #f5f5f5;
	border-radius: 12px;
	padding: 20px 30px;
	margin-bottom: 40px;
}

/* Header */
.toc-header, .toc-header:hover, .toc-header:focus {
	position: relative;
	width: 100%;
	text-align: left;
	padding: 0px;
	background: transparent;
	color: black;
	cursor: pointer;
}

.toc-title {
	font-size: 2em;
	font-weight: bold;
	user-select: none;
}

/* ToC List */
#toc-list {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease-out;
}

.toc-list-items {
	list-style: none;
	padding-left: 0;
	margin: 1em 0 0;
}

.toc-item,
.toc-subitem {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 10px 0;
}

.toc-subitem {margin-left: 40px}

.toc-list-items a:hover {text-decoration: none}

.toc-sublist {
	list-style: none;
	margin-bottom: 0;
}

/* Numbering and Label */
.toc-item-number {
	width: 30px;
	height: 30px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	color: #212b33;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	border: 2px solid #d4dbde;
	border-radius: 15px;
	margin-right: 12px;
}

.toc-item-label {
	color: #3776ff;
	font-size: 20px;
	font-weight: 500;
}


.toc-header::after,
.toc-header::before {
	content: "";
	background: #000;
	width: 20px;
	height: 3px;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s;
}

.toc-header::before {
	transform: translateY(-50%) rotate(90deg);
}

.toc-header.open::before {
	transform: translateY(-50%) rotate(0deg);
}

@media only screen and (max-width: 767px) {
	.toc-container {padding: 10px 20px}
	.toc-title {font-size: 1.5em}
	.toc-item-number {
		width: 25px;
		height: 25px;
		font-size: 10px;
	}
	.toc-item-label {font-size: 18px}
}