/**
 * EJ Decide — estilos do Índice (Table of Contents) dos seis tempos.
 * Reaproveita as variáveis de cor definidas em ejd-plano.css (:root).
 */

.ejd-toc {
	font-family: Montserrat, sans-serif;
	color: var(--ejd-tx);
}

.ejd-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ejd-toc-item {
	border-bottom: 1px solid var(--ejd-ln);
}

.ejd-toc-item:last-child {
	border-bottom: 0;
}

.ejd-toc-row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 8px;
	background: transparent;
	border: 0;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s;
}

.ejd-toc-row:hover,
.ejd-toc-row:focus,
.ejd-toc-row:active {
	background-color: #f3f4f6 !important;
	color: inherit !important;
	text-decoration: none;
}

.ejd-toc-tempo-num {
	font-weight: 800;
	font-size: 14px;
	color: var(--ejd-red);
	flex-shrink: 0;
	align-self: flex-start;
}

.ejd-toc-tempo-name {
	font-weight: 700;
	font-size: 14px;
	color: var(--ejd-red);
	flex: 1;
	min-width: 0;
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	line-height: 1.35;
}

.ejd-toc-chevron {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1;
	color: var(--ejd-am);
	transition: transform 0.2s;
	display: inline-block;
	align-self: flex-start;
	margin-top: 2px;
}

.ejd-toc-row[aria-expanded="true"] .ejd-toc-chevron {
	transform: rotate(180deg);
}

.ejd-toc-sub {
	list-style: none;
	margin: 0;
	padding: 2px 0 12px 46px;
}

.ejd-toc-sub li {
	margin-bottom: 4px;
}

.ejd-toc-area-link {
	display: block;
	width: 100%;
	background: transparent;
	border: 0;
	border-radius: 6px;
	padding: 8px 10px;
	text-align: left;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ejd-tx);
	cursor: pointer;
	transition: background 0.2s;
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	line-height: 1.4;
}

.ejd-toc-area-link:hover,
.ejd-toc-area-link:focus,
.ejd-toc-area-link:active {
	background-color: #f3f4f6 !important;
	color: var(--ejd-tx) !important;
	text-decoration: none;
}

.ejd-toc-area-link.is-active {
	color: var(--ejd-az);
	background-color: transparent;
	font-weight: 700;
}

.ejd-toc-area-link.is-active:hover,
.ejd-toc-area-link.is-active:focus,
.ejd-toc-area-link.is-active:active {
	background-color: transparent !important;
	color: var(--ejd-az) !important;
	text-decoration: none;
}

@media (max-width: 640px) {
	.ejd-toc-tempo-name {
		font-size: 13px;
	}

	.ejd-toc-sub {
		padding-left: 30px;
	}
}
