/* ─── AV Table of Contents Stylesheet ─── */

.av-toc-card {
	background: var(--av-bg, #faf7f2);
	border-radius: var(--av-r-lg, 14px);
	border: 1px solid var(--av-line, #e7e1d6);
	box-sizing: border-box;
	transition: all 0.3s ease;
	max-height: 350px;
	overflow: auto;
	display: flex;
	flex-direction: column;
}

.av-toc-title {
	font-family: var(--av-font-display, inherit);
	font-size: 14px;
	font-weight: 800;
	color: var(--av-navy, #1a1a1f);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--av-rust, #c4202e);
	padding: 24px 24px 10px 24px;
}

.av-toc-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 24px 24px 24px;
	flex: 1;
	overflow: auto;
}

.av-toc-item {
	border-radius: var(--av-r, 10px);
	font-size: 13px;
	font-family: var(--av-font, inherit);
	color: var(--av-ink-2, #3a3a40);
	transition: all 0.2s ease-in-out;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.45;
	text-decoration: none;
	font-weight: 500;
	box-sizing: border-box;
}

.av-toc-item:hover {
	background: var(--av-paper, #ffffff);
	color: var(--av-navy, #1a1a1f);
	transform: translateX(4px);
}

.av-toc-item.av-active {
	background: var(--av-paper, #ffffff);
	color: var(--av-rust, #c4202e);
	font-weight: 700;
	box-shadow: var(--av-shadow-1, 0 4px 12px rgba(15, 30, 61, 0.06));
}

/* ── Modifier: disable hover slide ── */
.av-toc-no-translate .av-toc-item:hover {
	transform: none;
}

/* ── Editor placeholder items ── */
.av-toc-placeholder {
	opacity: 0.4;
	pointer-events: none;
	font-style: italic;
}
