.tdt-indice {
	background: #fff;
	border: 1px solid #e7ebf0;
	border-radius: 6px;
	padding: 18px 18px 14px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	position: sticky;
	top: 20px;
	font-size: 14px;
	line-height: 1.5;
}

.tdt-indice__titulo {
	color: #172033;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 12px;
}

.tdt-indice__lista {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tdt-indice__lista li {
	margin: 0 0 8px;
	padding: 0;
}

.tdt-indice__lista li.tdt-indice__subitem {
	margin-left: 14px;
	font-size: 13px;
}

.tdt-indice__lista a {
	color: #1769aa;
	text-decoration: none;
}

.tdt-indice__lista a:hover,
.tdt-indice__lista a:focus {
	color: #0b4778;
	text-decoration: underline;
}

.tdt-indice__lista a.is-active {
	color: #172033;
	font-weight: 700;
	border-left: 3px solid #2785d8;
	padding-left: 8px;
}

@media (max-width: 768px) {
	.tdt-indice {
		position: static;
		max-height: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}
}

/* Hide the complete GeneratePress widget when the shortcode has no index to show.
   The placeholder is returned on pages, taxonomy archives and short posts. */
.widget:has(.tdt-indice-placeholder),
.widget_block:has(.tdt-indice-placeholder),
.elementor-widget:has(.tdt-indice-placeholder) {
	display: none !important;
}
