/* Multipage TOC — table of contents */

.multipage-toc {
	background: #f9f9f9;
	border: 1px solid #aaa;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
	display: table;
	margin: 0 0 1em;
	max-width: 100%;
	padding: 10px 20px 10px 10px;
	position: relative;
	width: auto;
}

.multipage-toc-theme-light-blue { background: #edf6ff; }
.multipage-toc-theme-white { background: #fff; }
.multipage-toc-theme-black { background: #000; border-color: #000; }
.multipage-toc-theme-transparent { background: none transparent; border-color: transparent; box-shadow: none; }

.multipage-toc-width-full { display: block; width: 100%; }

.multipage-toc-wrap-left { margin: 0 auto 1em 0; }
.multipage-toc-wrap-right { margin: 0 0 1em auto; }
.multipage-toc-wrap-center { margin: 0 auto 1em; }
.multipage-toc-wrap-left.multipage-toc-wrap-text { float: left; margin-right: 1.5em; }
.multipage-toc-wrap-right.multipage-toc-wrap-text { float: right; margin-left: 1.5em; }

.multipage-toc-title-container {
	align-items: center;
	display: flex;
	gap: 0.75em;
	justify-content: space-between;
}

.multipage-toc .multipage-toc-title {
	line-height: 1.45;
	margin: 0;
	padding: 0;
	text-align: left;
}

.multipage-toc-theme-black .multipage-toc-title,
.multipage-toc-theme-black .multipage-toc-toggle { color: #fff; }

.multipage-toc-toggle {
	background: transparent;
	border: 1px solid #999;
	border-radius: 5px;
	color: inherit;
	cursor: pointer;
	flex: none;
	height: 1.7em;
	line-height: 1;
	margin: 0;
	padding: 0;
	width: 2.4em;
}

.multipage-toc-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.multipage-toc-toggle-icon {
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	display: inline-block;
	height: 0.45em;
	transform: translateY(-0.2em) rotate(45deg);
	transition: transform 0.15s ease;
	width: 0.45em;
}

.multipage-toc-toggle[aria-expanded="false"] .multipage-toc-toggle-icon { transform: translateY(0.1em) rotate(-135deg); }

.multipage-toc-nav { display: block; }
.multipage-toc-nav[hidden] { display: none; }
.multipage-toc-title-container + .multipage-toc-nav { margin-top: 0.75em; }

.multipage-toc ul,
.multipage-toc li {
	background: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.multipage-toc li { line-height: 1.6; }
.multipage-toc ul ul { margin-left: 1.5em; }

.multipage-toc .multipage-toc-list a {
	box-shadow: none;
	color: #444;
	display: inline-block;
	text-decoration: none;
	text-shadow: none;
}

.multipage-toc .multipage-toc-list a:visited { color: #9f9f9f; }
.multipage-toc .multipage-toc-list a:hover { text-decoration: underline; }
.multipage-toc-theme-black .multipage-toc-list a,
.multipage-toc-theme-black .multipage-toc-list a:visited { color: #fff; }

/* Numbering: counters, so the numbers follow the nesting on their own. */
.multipage-toc-counter-decimal ul,
.multipage-toc-counter-numeric ul,
.multipage-toc-counter-roman ul { counter-reset: multipage-toc; }

.multipage-toc-counter-decimal li > a::before,
.multipage-toc-counter-numeric li > a::before,
.multipage-toc-counter-roman li > a::before {
	counter-increment: multipage-toc;
	margin-right: 0.5em;
}

.multipage-toc-counter-decimal li > a::before { content: counter(multipage-toc) "."; }
.multipage-toc-counter-numeric li > a::before { content: counters(multipage-toc, ".") "."; }
.multipage-toc-counter-roman li > a::before { content: counter(multipage-toc, upper-roman) "."; }

/* Anchor spans sit at the start of each heading and carry the scroll margin. */
.multipage-toc-anchor { display: inline-block; height: 0; width: 0; }

/* Widget: no box by default, current section highlighted. */
.widget_multipage_toc .multipage-toc { display: block; padding: 0; }
.widget_multipage_toc .multipage-toc-theme-transparent { border: 0; }
.multipage-toc-widget li.multipage-toc-active > a { font-weight: 700; }

@media (max-width: 600px) {
	.multipage-toc-wrap-left.multipage-toc-wrap-text,
	.multipage-toc-wrap-right.multipage-toc-wrap-text { float: none; margin: 0 0 1em; }
	.multipage-toc-width-custom { width: auto; }
}

@media print {
	.multipage-toc-toggle { display: none; }
	.multipage-toc-nav[hidden] { display: block; }
}
