/**
 * Driffle Blog TOC — Figma card in the existing left sidebar.
 */

body.single-post #secondary .widget_media_image,
body.single-post #secondary .widget_tag_cloud {
	display: none;
}

.dfl-toc {
	box-sizing: border-box;
	width: 100%;
	background: #1f1f1f;
	border-radius: 12px;
	padding: 20px 16px 12px;
	color: #ededed;
	font-family: inherit;
}

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

.dfl-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	margin-bottom: 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dfl-toc__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #ffffff;
}

.dfl-toc__collapse,
.dfl-toc__expand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #cfcfcf;
	cursor: pointer;
	flex-shrink: 0;
}

.dfl-toc__chevron {
	display: block;
	transition: transform 0.15s ease;
}

.dfl-toc.is-collapsed .dfl-toc__collapse .dfl-toc__chevron,
.dfl-toc__item--parent:not(.is-open) .dfl-toc__expand .dfl-toc__chevron {
	transform: rotate(-90deg);
}

.dfl-toc.is-collapsed .dfl-toc__body {
	display: none;
}

.dfl-toc__list,
.dfl-toc__sublist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dfl-toc__item--parent:not(.is-open) .dfl-toc__sublist {
	display: none;
}

.dfl-toc__row {
	display: flex;
	align-items: center;
	min-height: 40px;
}

.dfl-toc__link {
	display: flex;
	align-items: center;
	flex: 1;
	min-height: 40px;
	padding: 8px 8px 8px 13px;
	border-left: 3px solid transparent;
	color: rgba(255, 255, 255, 0.72);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
}

.dfl-toc__link:hover,
.dfl-toc__link:focus-visible {
	color: #ffffff;
}

.dfl-toc__item.is-active > .dfl-toc__row > .dfl-toc__link {
	border-left-color: #e8a317;
	color: #ffffff;
}

.dfl-toc__sublist .dfl-toc__link {
	padding-left: 28px;
	font-size: 14px;
}

.entry-content h2,
.entry-content h3 {
	scroll-margin-top: 112px;
}

@media (max-width: 1019px) {
	.dfl-toc {
		margin: 0 0 24px;
	}
}
