.gh-content, .gh-toc > .toc-list {
	position:relative
}

.toc-list {
	list-style: none;
	overflow:hidden
}

/* Table of Contents positioning for pkj-zenith theme */
@media (min-width: 769px) {
	.gh-toc {
		grid-column: 3 / 4;
		grid-row: 1 / -1;
		align-self: start;
		position: sticky;
		top: 4vmin;
		max-height: calc(100vh - 8vmin);
		overflow-y: auto;
		margin-top: 0;
		padding-left: 20px;
	}
}

@media (max-width: 768px) {
	.gh-toc {
		position: relative;
		margin: 1.5em 0;
		padding: 0;
		max-height: none;
		overflow-y: visible;
	}
}

@media (min-width: 1300px) {
	.gh-sidebar {
		bottom: 0;
		margin-right: 4vmin;
		margin-top: 4vmin;
		position: absolute;
		right: 0;
		top: 0;
		width:260px
	}

	.gh-toc {
		max-height: calc(100vh - 8vmin);
		overflow-y: auto;
		position: sticky;
		top:4vmin
	}
}

.gh-toc .is-active-link:before {
	--tw-bg-opacity: 1;
	background-color:rgb(230 230 230/var(--tw-bg-opacity, 1))
}

.toc {
	overflow-y:auto
}

.toc > .toc-list {
	overflow: hidden;
	position:relative
}

.toc > .toc-list li {
	list-style:none
}

.toc-list {
	margin: 0;
	padding-left:10px
}

a.toc-link {
	color: currentColor;
	height:100%
}

.is-collapsible {
	max-height: 1000px;
	overflow: hidden;
	transition:all .3s ease-in-out
}

.is-collapsed {
	max-height:0
}

.is-position-fixed {
	position: fixed !important;
	top:0
}

.is-active-link {
	font-weight:600
}

.toc-link:before {
	--tw-bg-opacity: 1;
	background-color: rgb(33 33 33/var(--tw-bg-opacity, 1));
	content: " ";
	display: inline-block;
	height: inherit;
	left: 0;
	margin-top: -1px;
	position: absolute;
	width:1px
}

.is-active-link:before {
	--tw-bg-opacity: 1;
	background-color: rgb(255 255 255/var(--tw-bg-opacity, 1))
}

/* Sidebar TOC styling - appears in left navigation */
.sidebar-toc {
	margin-top: calc(3vw * var(--scale));
	padding-top: calc(2vw * var(--scale));
	border-top: 1px solid var(--text-color-lower-opac);
	text-align: center;
	max-height: none;
	overflow-y: visible;
	position: static;
	grid-column: unset;
	grid-row: unset;
}

.sidebar-toc .toc-list {
	padding-left: 0;
	text-align: left;
	display: inline-block;
}

.sidebar-toc .toc-link {
	font-size: calc(18px * var(--scale));
	font-family: var(--font3);
	line-height: 140%;
	display: block;
	padding: calc(0.5vw * var(--scale)) 0;
	text-decoration: none;
}

.sidebar-toc .toc-list .toc-list {
	padding-left: calc(1.5vw * var(--scale));
	margin-top: calc(0.25vw * var(--scale));
}

.sidebar-toc .toc-list .toc-list .toc-link {
	font-size: calc(16px * var(--scale));
}

.sidebar-toc .toc-list .toc-list .toc-list .toc-link {
	font-size: calc(14px * var(--scale));
}

.sidebar-toc .is-active-link {
	font-weight: 700;
	text-decoration: underline;
}

/* Hide sidebar TOC on mobile */
@media (max-width: 768px) {
	.sidebar-toc {
		display: none;
	}
}
