.vw-toc.vw-toc {
	--vw-toc-pad: 20px;
	--vw-toc-gutter: 26px;
	--vw-toc-row: 22px;
	--vw-toc-collapsed: 260px;
	--vw-toc-open-max: none;
	--vw-toc-open-overflow: visible;
	--vw-toc-bg: var(--color-surface-2, #232234);
	--vw-toc-line: rgba(202, 197, 229, 0.16);
	--vw-toc-dot: #4A4664;
	--vw-toc-accent: var(--color-primary, #D2A840);
	--vw-toc-text: var(--color-foreground, #DBD8E9);
	--vw-toc-text-2: #C3BFD2;
	--vw-toc-text-3: #9A96B0;
	--vw-toc-toggle-bg: #191824;
	--vw-toc-toggle-bg-hover: #211E2E;
	--vw-toc-toggle-fg: #8A8599;
	position: relative;
	display: block;
	margin: 0 0 var(--space-32);
	padding: var(--space-16) var(--vw-toc-pad) var(--vw-toc-pad-bottom, 0);
	border: 0;
	border-radius: 12px;
	background-color: var(--vw-toc-bg);
	color: var(--vw-toc-text-2);
	font-size: var(--font-size-sm);
	letter-spacing: 0.02em;
}
.vw-toc.vw-toc .vw-toc__head {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-8);
	margin: 0 0 var(--vw-toc-head-gap, var(--space-8));
	padding: 0;
	border: 0;
	background: none;
}
.vw-toc.vw-toc .vw-toc__head::after {
	content: "";
	display: var(--vw-toc-head-rail, block);
	position: absolute;
	top: calc(50% + 9px);
	bottom: calc(var(--space-8) * -1);
	left: calc(var(--vw-toc-gutter) / 2 - 1px);
	width: 2px;
	background-color: var(--vw-toc-line);
}
.vw-toc.vw-toc .vw-toc__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: var(--vw-toc-gutter);
	height: var(--vw-toc-gutter);
	color: var(--vw-toc-accent);
}
.vw-toc.vw-toc .vw-toc__heading {
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vw-toc-text);
	font-size: var(--font-size-md);
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: 0.06em;
	text-align: left;
}
.vw-toc.vw-toc .vw-toc__switch {
	display: var(--vw-toc-switch-display, none);
	align-items: center;
	gap: var(--space-8);
	margin-left: auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vw-toc-text-3);
	font-family: inherit;
	font-size: var(--font-size-2xs);
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
	transition: color var(--dur-1) var(--ease-out);
}
.vw-toc.vw-toc .vw-toc__switch::before {
	content: "";
	position: absolute;
	inset: calc(var(--space-16) * -1) calc(var(--vw-toc-pad) * -1);
}
.vw-toc.vw-toc .vw-toc__switch:hover,
.vw-toc.vw-toc .vw-toc__switch:focus-visible {
	color: var(--vw-toc-text);
}
.vw-toc.vw-toc .vw-toc__switch:focus-visible {
	outline: 2px solid var(--color-ring);
	outline-offset: 4px;
	border-radius: 6px;
}
.vw-toc.vw-toc .vw-toc__count {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}
.vw-toc.vw-toc .vw-toc__switch-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: var(--radius-full);
	background-color: var(--vw-toc-toggle-bg);
	color: var(--vw-toc-toggle-fg);
	transition: transform var(--dur-3) var(--ease-out);
}
.vw-toc.vw-toc.is-open .vw-toc__switch-icon {
	transform: rotate(180deg);
}
.vw-toc.vw-toc .vw-toc__heading::before,
.vw-toc.vw-toc .vw-toc__heading::after {
	content: none;
	display: none;
}
.vw-toc.vw-toc .vw-toc__body {
	position: relative;
	max-height: var(--vw-toc-collapsed);
	overflow: hidden;
}
.vw-toc.vw-toc .vw-toc__shade {
	position: sticky;
	top: 0;
	z-index: 1;
	display: block;
	height: 40px;
	margin-bottom: -40px;
	background: linear-gradient(to bottom, var(--vw-toc-bg) 12%, transparent);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--dur-2) var(--ease-out);
}
.vw-toc.vw-toc.is-scrolled .vw-toc__shade {
	opacity: 1;
}
.vw-toc.vw-toc .vw-toc__fade {
	position: sticky;
	bottom: 0;
	display: block;
	height: 72px;
	margin-top: -72px;
	background: linear-gradient(to bottom, transparent, var(--vw-toc-bg) 88%);
	pointer-events: none;
	transition: opacity var(--dur-2) var(--ease-out);
}
.vw-toc.vw-toc.is-open .vw-toc__body,
.vw-toc.vw-toc.is-static .vw-toc__body {
	max-height: var(--vw-toc-open-max);
	overflow: var(--vw-toc-open-overflow);
}
.vw-toc.vw-toc.is-open:not(.is-clipped) .vw-toc__fade,
.vw-toc.vw-toc.is-static:not(.is-clipped) .vw-toc__fade {
	opacity: 0;
}
.vw-toc.vw-toc .vw-toc__list {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vw-toc.vw-toc .vw-toc__rail {
	position: absolute;
	top: 0;
	bottom: calc(var(--space-4) + var(--vw-toc-row) / 2);
	left: calc(var(--vw-toc-gutter) / 2 - 1px);
	width: 2px;
	background-color: var(--vw-toc-line);
	pointer-events: none;
}
.vw-toc.vw-toc .vw-toc__rail-fill {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--vw-toc-progress, 0px);
	background-color: var(--vw-toc-accent);
	transition: height var(--dur-2) var(--ease-out);
}
.vw-toc.vw-toc .vw-toc__link {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var(--space-6);
	padding: var(--space-4) 0;
	border: 0;
	background: none;
	color: var(--vw-toc-text-2);
	font-size: var(--font-size-xs);
	line-height: var(--vw-toc-row);
	text-decoration: none;
	transition: color var(--dur-1) var(--ease-out);
}
.vw-toc.vw-toc .vw-toc__link::before,
.vw-toc.vw-toc .vw-toc__link::after {
	content: none;
	display: none;
}
.vw-toc.vw-toc .vw-toc__link:hover,
.vw-toc.vw-toc .vw-toc__link:focus-visible {
	color: var(--color-link-hover, #9AA6E0);
}
.vw-toc.vw-toc .vw-toc__marker {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: var(--vw-toc-gutter);
	height: var(--vw-toc-row);
	color: var(--vw-toc-text-3);
	font-size: var(--font-size-2xs);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
}
.vw-toc.vw-toc .vw-toc__text {
	min-width: 0;
	overflow-wrap: anywhere;
}
.vw-toc.vw-toc .vw-toc__link--h2 {
	color: var(--vw-toc-text);
	font-size: var(--font-size-sm);
	font-weight: 700;
}
.vw-toc.vw-toc .vw-toc__link--h2 .vw-toc__marker {
	border-radius: 5px;
	background-color: var(--vw-toc-bg);
}
.vw-toc.vw-toc .vw-toc__link--h4 {
	color: var(--vw-toc-text-3);
}
.vw-toc.vw-toc .vw-toc__link--h3 .vw-toc__marker:not(.vw-toc__marker--icon)::before,
.vw-toc.vw-toc .vw-toc__link--h4 .vw-toc__marker:not(.vw-toc__marker--icon)::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background-color: var(--vw-toc-dot);
	box-shadow: 0 0 0 3px var(--vw-toc-bg);
	transition: background-color var(--dur-1) var(--ease-out);
}
.vw-toc.vw-toc .vw-toc__link--h4 .vw-toc__marker:not(.vw-toc__marker--icon)::before {
	width: 6px;
	height: 6px;
}
.vw-toc.vw-toc .vw-toc__marker--icon svg {
	width: 18px;
	height: 18px;
	border-radius: 3px;
	background-color: var(--vw-toc-bg);
	box-shadow: 0 0 0 3px var(--vw-toc-bg);
}
.vw-toc.vw-toc .vw-toc__link.is-current {
	color: var(--vw-toc-accent);
}
.vw-toc.vw-toc .vw-toc__link.is-current .vw-toc__marker {
	color: var(--vw-toc-accent);
}
.vw-toc.vw-toc .vw-toc__link.is-current .vw-toc__marker::before {
	width: 10px;
	height: 10px;
	background-color: var(--vw-toc-accent);
}
.vw-toc.vw-toc .vw-toc__toggle {
	position: relative;
	display: var(--vw-toc-toggle-display, flex);
	align-items: center;
	justify-content: center;
	gap: var(--space-6);
	width: calc(100% + var(--vw-toc-pad) * 2);
	margin: 0 calc(var(--vw-toc-pad) * -1);
	padding: var(--space-12) 0;
	border: 0;
	border-radius: 0 0 12px 12px;
	background-color: var(--vw-toc-toggle-bg);
	color: var(--vw-toc-toggle-fg);
	font-family: inherit;
	font-size: var(--font-size-2xs);
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
	transition: color var(--dur-1) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.vw-toc.vw-toc .vw-toc__toggle:hover,
.vw-toc.vw-toc .vw-toc__toggle:focus-visible {
	background-color: var(--vw-toc-toggle-bg-hover);
	color: var(--vw-toc-text);
}
.vw-toc.vw-toc .vw-toc__toggle-icon {
	transition: transform var(--dur-3) var(--ease-out);
}
.vw-toc.vw-toc.is-open .vw-toc__toggle {
	margin-top: var(--space-16);
}
.vw-toc.vw-toc.is-open .vw-toc__toggle-icon {
	transform: rotate(180deg);
}
.vw-toc.vw-toc.is-static .vw-toc__toggle {
	display: none;
}
.vw-toc.vw-toc.is-static {
	padding-bottom: var(--space-16);
}
.vw-toc-dock {
	--vw-toc-top: 72px;
	display: none;
}
body.admin-bar .vw-toc-dock {
	--vw-toc-top: 104px;
}
.vw-toc-dock .vw-toc-dock__panel {
	overflow: hidden;
	border-radius: 12px;
	background-color: var(--color-card, #1C1B29);
}
.vw-toc-dock .vo-readbar {
	--vo-readbar-tone: var(--color-sub, #7C86C4);
	display: flex;
	align-items: center;
	gap: var(--space-10);
	padding: var(--space-12) var(--space-20);
	background-color: var(--color-surface-2, #232234);
	color: #A9A4BC;
	font-size: var(--font-size-2xs);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.08em;
}
.vw-toc-dock .vo-readbar.is-done {
	--vo-readbar-tone: var(--color-primary, #D2A840);
}
.vw-toc-dock .vo-readbar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	color: var(--color-primary, #D2A840);
}
.vw-toc-dock .vo-readbar__label {
	flex: none;
	white-space: nowrap;
}
.vw-toc-dock .vo-readbar__track {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	height: 4px;
	overflow: hidden;
	border-radius: 999px;
	background-color: var(--color-background, #14131E);
}
.vw-toc-dock .vo-readbar__fill {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-image: linear-gradient(90deg, rgba(124, 134, 196, 0.35), var(--vo-readbar-tone));
	transform: scaleX(var(--vo-readbar-ratio, 0));
	transform-origin: 0 50%;
	transition: transform var(--dur-3) var(--ease-out);
}
.vw-toc-dock .vo-readbar__value {
	flex: none;
	min-width: 4ch;
	color: var(--color-primary, #D2A840);
	font-size: var(--font-size-xs);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	text-align: right;
}
.vw-toc--dock.vw-toc.is-open .vw-toc__body,
.vw-toc--dock.vw-toc.is-static .vw-toc__body {
	margin-right: -12px;
	padding-right: 12px;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
	transition: scrollbar-color var(--dur-2) var(--ease-out);
}
.vw-toc--dock.vw-toc.is-open:hover .vw-toc__body,
.vw-toc--dock.vw-toc.is-open:focus-within .vw-toc__body,
.vw-toc--dock.vw-toc.is-static:hover .vw-toc__body,
.vw-toc--dock.vw-toc.is-static:focus-within .vw-toc__body {
	scrollbar-color: var(--vw-toc-dot) transparent;
}
.vw-toc--dock.vw-toc {
	--vw-toc-open-max: calc(100vh - var(--vw-toc-top, 72px) - var(--vw-toc-foot, 260px) - var(--vo-indcard-space, 0px));
	--vw-toc-open-overflow: auto;
	--vw-toc-pad-bottom: var(--space-16);
	--vw-toc-toggle-display: none;
	--vw-toc-bg: var(--color-card, #1C1B29);
	--vw-toc-line: rgba(202, 197, 229, 0.20);
	--vw-toc-dot: #524D6E;
	--vw-toc-toggle-bg: var(--color-surface-2, #232234);
	--vw-toc-toggle-bg-hover: var(--color-surface-3, #2E2C43);
	--vw-toc-toggle-fg: #A9A4BC;
	margin: 0;
}
@media (min-width: 1024px) {
	#secondary:has(> .vw-toc-dock),
	.sidebar:has(> .vw-toc-dock) {
		grid-template-rows: var(--vo-toc-split, auto);
	}
	.vw-toc-dock.is-docked {
		display: block;
		grid-row: 1;
		margin-bottom: var(--vo-toc-gap, 0px);
	}
	.vw-toc-dock.is-docked .vw-toc-dock__inner {
		position: sticky;
		top: var(--vw-toc-top);
	}
	.content-grid:has(.vw-toc-dock) .entry-content.vw-content .vw-toc {
		display: none;
	}
}
@media (max-width: 1023px) {
	.vw-toc.vw-toc {
		--vw-toc-collapsed: 0px;
		--vw-toc-pad-bottom: var(--space-16);
		--vw-toc-switch-display: inline-flex;
		--vw-toc-toggle-display: none;
	}
	.vw-toc.vw-toc:not(.is-open) {
		--vw-toc-head-gap: 0px;
		--vw-toc-head-rail: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.vw-toc.vw-toc .vw-toc__fade,
	.vw-toc.vw-toc .vw-toc__shade,
	.vw-toc.vw-toc .vw-toc__rail-fill,
	.vw-toc.vw-toc .vw-toc__toggle-icon,
	.vw-toc.vw-toc .vw-toc__switch,
	.vw-toc.vw-toc .vw-toc__switch-icon,
	.vw-toc--dock.vw-toc .vw-toc__body,
	.vw-toc-dock .vo-readbar__fill {
		transition: none;
	}
}
