/**
 * Base styles for the Dynamic Table of Contents block.
 * These are deliberately plain — on the Elementor widget, the Style tab
 * controls generate scoped overrides (colors, padding, typography) per
 * instance, so a site's brand colors never require editing this file.
 * The [toc] shortcode uses these defaults as-is.
 *
 * Every rule is scoped under .toc-wrap (not just bare class names) so it
 * reliably outranks a theme's own content-area list/link typography
 * (e.g. ".pa-content ol { margin-top: ... }"), which is common across
 * WordPress themes and otherwise wins on specificity.
 */
.toc-wrap {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px 22px;
	margin: 24px 0 32px;
	background: #fafafa;
}

.toc-wrap .toc-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-size: 15px;
	cursor: pointer;
	user-select: none;
	color: #1a1a1a;
}

.toc-wrap .toc-icon {
	line-height: 1;
}

.toc-wrap .toc-toggle-label {
	margin-left: auto;
	color: #0056b3;
}

.toc-wrap .toc-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 22px 0 0;
	padding: 0;
}

.toc-wrap .toc-list li {
	margin: 0 0 8px;
}

.toc-wrap .toc-list li:not(:last-child)::after {
	content: "|";
	margin: 0 12px;
	color: #cccccc;
}

.toc-wrap .toc-list.is-collapsed {
	display: none;
}

.toc-wrap .scrollToElements {
	color: #0056b3;
	text-decoration: underline;
	cursor: pointer;
}

.toc-wrap .scrollToElements:hover {
	color: #00306e;
}
