/* In This Article — Elementor TOC */
.ita-toc {
	--ita-bg: #E9EAEC;
	--ita-title: #3A3A3A;
	--ita-link: #2F2F2F;
	--ita-link-hover: #000;
	--ita-toggle: #1A3A8F;
	background: var(--ita-bg);
	padding: 24px 26px;
	border-radius: 10px;
	box-sizing: border-box;
}

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

.ita-toc .ita-toc__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.ita-toc__title {
	font-size: 15px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--ita-title);
	line-height: 1.3;
}

.ita-toc__toggle {
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ita-toggle);
	text-decoration: underline;
	text-underline-offset: 4px;
	padding: 0;
	white-space: nowrap;
}

/* Collapsible body */
.ita-toc__body {
	margin-top: 12px;
	overflow: hidden;
	max-height: 4000px;
	opacity: 1;
	transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}
.ita-toc--collapsed .ita-toc__body {
	max-height: 0;
	opacity: 0;
	margin: 0;
}

.ita-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ita-toc__item { margin: 0; }

.ita-toc__link {
	display: flex;
	gap: 8px;
	align-items: baseline;
	padding: 10px 0;
	color: var(--ita-link);
	text-decoration: none;
	font-size: 19px;
	line-height: 1.35;
	transition: color 0.15s ease;
}
.ita-toc__link:hover,
.ita-toc__link:focus-visible { color: var(--ita-link-hover); }

.ita-toc__item--h3 .ita-toc__link { padding-left: 18px; font-size: 17px; }
.ita-toc__item--h4 .ita-toc__link { padding-left: 36px; font-size: 16px; }
.ita-toc__item--h5 .ita-toc__link { padding-left: 54px; font-size: 15px; }
.ita-toc__item--h6 .ita-toc__link { padding-left: 72px; font-size: 14px; }

.ita-toc__num {
	opacity: 0.55;
	min-width: 1.5em;
	flex: 0 0 auto;
}

.ita-toc__editor-note {
	margin: 14px 0 0;
	font-size: 12px;
	font-style: italic;
	color: #8a8a8a;
}

/* Hidden when there are not enough headings */
.ita-toc--empty { display: none !important; }
