/*
 * assets/css/toc.css: the table of contents in the site's colours (3.0.1).
 * WP TOC's own stylesheet (inc/wp-toc/assets/css/wp-toc.css) loads first;
 * this sets its custom properties from the colour scheme, so the box
 * follows whichever scheme Theme Options has chosen.
 */

.wp-toc {
	--wp-toc-bg: var(--bm-surface, #f7f5f0);
	--wp-toc-border: var(--bm-border, #d9d4c7);
	--wp-toc-indent: 1.1em;
	--wp-toc-scroll-offset: 5.5rem;
	display: block;
	border-left: 3px solid var(--bm-accent, #b5893b);
	border-radius: var(--bm-r-card, 6px);
	font-family: var(--bm-sans, system-ui, sans-serif);
	font-size: .95em;
	margin: 1.6em 0 2em;
	padding: 1.1em 1.3em;
	text-align: start;
}

.wp-toc-title {
	color: var(--bm-navy, #14284b);
	font-size: .78em;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.wp-toc-list > li {
	counter-increment: bismika-toc;
}
.wp-toc-list > li > a::before {
	color: var(--bm-accent, #b5893b);
	content: counter(bismika-toc) ".";
	display: inline-block;
	font-variant-numeric: tabular-nums;
	margin-inline-end: .5em;
	min-width: 1.4em;
}
.wp-toc-list {
	counter-reset: bismika-toc;
}

.wp-toc-list a {
	color: var(--bm-text, inherit);
}
.wp-toc-list a:hover,
.wp-toc-list a:focus-visible {
	border-bottom-color: var(--bm-accent, currentColor);
	color: var(--bm-link, inherit);
}

.wp-toc-list ul {
	padding-inline-start: 1.9em; /* under the section titles, past their numbers */
}
.wp-toc-list ul a {
	color: var(--bm-meta, inherit);
}

@media print {
	.wp-toc { display: none; }
}
