.single-post-wrap.hestia-post-content-layout {
	display: block;
}

.single-post-wrap.hestia-post-content-layout.has-inline-toc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 32px;
	align-items: flex-start;
}

.hestia-post-content-layout__body {
	min-width: 0;
}

.single-post .entry-content h2[id],
.single-post .entry-content h3[id],
.single-post .entry-content h4[id] {
	scroll-margin-top: 120px;
}

.hestia-post-toc {
	min-width: 0;
}

.hestia-post-toc__inner {
	position: sticky;
	top: 108px;
	padding: 20px 18px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(47, 107, 255, 0.1);
	box-shadow: 0 18px 50px rgba(37, 66, 145, 0.12);
}

.hestia-post-toc__head {
	margin-bottom: 16px;
}

.hestia-post-toc__eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(47, 107, 255, 0.1);
	color: #2f6bff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.hestia-post-toc__title {
	margin: 0;
	color: #14213d;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.hestia-post-toc__nav {
	max-height: calc(100vh - 180px);
	overflow: auto;
	padding-right: 4px;
}

.hestia-post-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hestia-post-toc__item + .hestia-post-toc__item {
	margin-top: 10px;
}

.hestia-post-toc__item.level-3 {
	padding-left: 14px;
}

.hestia-post-toc__item.level-4 {
	padding-left: 28px;
}

.hestia-post-toc__link {
	display: block;
	padding: 8px 12px;
	border-radius: 12px;
	color: #475467;
	font-size: 14px;
	line-height: 1.6;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hestia-post-toc__link:hover,
.hestia-post-toc__link.is-active {
	background: rgba(47, 107, 255, 0.1);
	color: #1758f6;
	transform: translateX(2px);
}

.single aside.blog-sidebar .hestia-post-toc {
	margin-bottom: 26px;
}

.single aside.blog-sidebar .hestia-post-toc__inner {
	top: 96px;
}

@media (max-width: 1199px) {
	.single-post-wrap.hestia-post-content-layout.has-inline-toc {
		grid-template-columns: 1fr;
	}

	.hestia-post-toc--inline {
		order: -1;
		margin-bottom: 24px;
	}

	.hestia-post-toc__inner {
		position: static;
	}

	.hestia-post-toc__nav {
		max-height: none;
	}
}

@media (max-width: 767px) {
	.hestia-post-toc {
		display: none;
	}
}
