/*
 * Post TOC. Defaults sit in :where() so the block's Style-tab values always win.
 */
:where(.wb-post-toc__list),
:where(.wb-post-toc__sub) {
	margin: 0;
	padding: 0;
	list-style: none;
}
:where(.wb-post-toc__sub) {
	padding-left: 1rem;
}
:where(.wb-post-toc__item) {
	margin: 0.25rem 0;
}
:where(.wb-post-toc__link) {
	color: var(--wab-color-text, #374151);
	text-decoration: none;
}
:where(.wb-post-toc__link:hover) {
	text-decoration: underline;
}
:where(.wb-post-toc__link.is-active) {
	color: var(--wab-color-accent, #2563eb);
	font-weight: 600;
}
.wb-post-toc__hint {
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px dashed #9ca3af;
	color: #6b7280;
	font-size: 0.875rem;
}

/* Headings stop short of the top of the window when a link jumps to them. */
h2[id],
h3[id],
h4[id],
h5[id],
h6[id] {
	scroll-margin-top: 96px;
}
