:root {

	--vemlo-header-offset: 96px;

}



.post-body h2,

.post-body h3 {

	scroll-margin-top: calc(var(--vemlo-header-offset) + 16px);

}



html {

	scroll-behavior: smooth;

}



@media (prefers-reduced-motion: reduce) {

	html {

		scroll-behavior: auto;

	}

}



.post-layout {

	display: grid;

	grid-template-columns: minmax(0, 1fr);

	gap: 32px;

}



.post-toc__box {

	border: 1px solid rgba(0, 0, 0, 0.1);

	border-radius: 10px;

	padding: 16px 20px;

	background: #fff;

}



.post-toc__title {

	cursor: pointer;

	font-size: 0.8rem;

	font-weight: 700;

	letter-spacing: 0.12em;

	text-transform: uppercase;

	color: #1f5e4b;

}



.post-toc__list {

	list-style: none;

	margin: 12px 0 0;

	padding: 0;

}



.post-toc__item {

	margin: 0;

}



.post-toc__item a {

	display: block;

	padding: 6px 0 6px 12px;

	border-left: 2px solid transparent;

	color: inherit;

	opacity: 0.75;

	font-size: 0.95rem;

	line-height: 1.35;

	text-decoration: none;

	transition: opacity 0.15s, border-color 0.15s, color 0.15s;

}



.post-toc__item--h3 a {

	padding-left: 26px;

	font-size: 0.88rem;

}



.post-toc__item a:hover,

.post-toc__item a.is-active {

	opacity: 1;

	color: #1f5e4b;

	border-left-color: #1f5e4b;

}



@media (min-width: 1024px) {

	.post-layout {

		grid-template-columns: minmax(0, 1fr) 260px;

		grid-template-areas: "body toc";

		gap: 64px;

		align-items: start;

	}



	.post-layout .post-body {

		grid-area: body;

	}



	.post-layout .post-toc {

		grid-area: toc;

		position: sticky;

		top: calc(var(--vemlo-header-offset) + 24px);

		max-height: calc(100vh - var(--vemlo-header-offset) - 48px);

		overflow-y: auto;

	}



	.post-toc__box {

		border: 0;

		padding: 0;

		background: none;

	}



	.post-toc__title {

		cursor: default;

		list-style: none;

		pointer-events: none;

	}



	.post-toc__title::-webkit-details-marker {

		display: none;

	}

}
