.dik-toc {
	box-sizing: border-box;
	width: min(100%, 720px);
	margin: 20px 0;
	padding: 15px;
	clear: both;
	border: 1px solid #e3e6e8;
	border-radius: 4px;
	background: #f7f8f9;
	color: #2c3e50;
	font-size: 14px;
	line-height: 1.6;
	text-align: left;
}

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

.dik-toc__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 8px;
	padding: 0 0 8px;
	border-bottom: 1px solid #e3e6e8;
}

.dik-toc__title {
	font-size: 16px;
	font-weight: 700;
}

.dik-toc__toggle {
	display: none;
	margin: 0;
	padding: 2px 8px;
	border: 1px solid #ccd1d5;
	border-radius: 3px;
	background: transparent;
	color: #5f6b73;
	font: inherit;
	cursor: pointer;
}

.dik-toc--ready .dik-toc__toggle {
	display: inline-block;
}

.dik-toc__list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.dik-toc__item {
	margin: 2px 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.dik-toc__item--h3 { padding-left: 1.25em !important; }
.dik-toc__item--h4 { padding-left: 2.5em !important; }
.dik-toc__item--h5 { padding-left: 3.75em !important; }
.dik-toc__item--h6 { padding-left: 5em !important; }

.dik-toc__link {
	display: block;
	padding: 2px 0;
	color: #2879b9;
	text-decoration: none !important;
}

.dik-toc__link:hover,
.dik-toc__link:focus {
	color: #175a8d;
	text-decoration: underline !important;
}

.dik-toc__link.is-active {
	color: #c0392b;
	font-weight: 700;
}

@media (max-width: 600px) {
	.dik-toc {
		width: 100%;
		padding: 12px;
	}

	.dik-toc__item--h5,
	.dik-toc__item--h6 {
		padding-left: 3.75em !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dik-toc__link {
		scroll-behavior: auto;
	}
}
