.gs-post-toc {
	display: none;
	background: #fff;
	border: 1px solid #e7e7e7;
	border-radius: 8px;
	padding: 20px;
	margin: 0;
}

.gs-post-toc-toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: #222;
	text-align: left;
	cursor: default;
	font: inherit;
}

.gs-post-toc-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #222;
}

.gs-toc-arrow {
	display: none;
	flex: 0 0 auto;
	font-size: 25px;
	font-weight: 400;
	line-height: 1;
}

.gs-post-toc-content {
	display: block;
	margin-top: 16px;
}

.gs-post-toc-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gs-post-toc-list .gs-toc-item {
	list-style: none !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
	line-height: 1.45;
}

.gs-post-toc-list .gs-toc-item:last-child {
	margin-bottom: 0 !important;
}

.gs-post-toc-list a {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	color: #0066cc;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.45;
}

.gs-post-toc-list a:hover {
	color: #004c99;
	text-decoration: underline;
}

.gs-toc-number {
	flex: 0 0 auto;
	min-width: 24px;
	font-weight: 600;
}

.gs-toc-text {
	flex: 1;
	min-width: 0;
}

.gs-post-toc-list .gs-toc-h3 {
	padding-left: 18px !important;
}

.gs-post-toc-list .gs-toc-h4 {
	padding-left: 36px !important;
}

.gs-post-toc-list .gs-toc-h3 a,
.gs-post-toc-list .gs-toc-h4 a {
	font-size: 14px;
}

.gs-toc-anchor {
	scroll-margin-top: 140px;
}

@media (min-width: 981px) {
	.gs-post-toc {
		position: sticky;
		top: 125px;
		max-height: calc(100vh - 150px);
		overflow-y: auto;
	}
}

/* Mobile: collapsed by default */
@media (max-width: 980px) {
	.gs-post-toc {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.gs-post-toc-toggle {
		cursor: pointer;
	}

	.gs-toc-arrow {
		display: block;
	}

	.gs-post-toc-content {
		display: none;
		margin-top: 16px;
	}

	.gs-post-toc.gs-toc-open .gs-post-toc-content {
		display: block;
	}
}
