/* Table of Contents for single news */

.news-detail h2 {
	scroll-margin-top: 110px;
}

.news-posts__row {
	display: flex;
}

.news-toc {
	margin-top: 30px;
	position: sticky;
	top: 110px;
}

.news-toc__title {
	margin: 0 0 14px;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
}

.news-toc__list {
	list-style: none;
	margin: 0;
	margin-left: 0 !important;
	padding: 0;
	border-left: 2px solid #e6e9ee;
}

.news-toc__item {
	margin: 0;
	padding: 0;
}

.news-toc__link {
	display: block;
	padding: 8px 14px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	color: #2b2b2b;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.news-toc__link:hover,
.news-toc__link:focus {
	color: #f190a4;
	text-decoration: none;
}

.news-toc__item.is-active > .news-toc__link {
	color: #f190a4;
	border-left-color: #f190a4;
	font-weight: 600;
	background-color: #fff1f4;
}

html {
	scroll-behavior: smooth;
}

/* Related news block on single-news */
.related-news {
	padding: 30px 0 10px;
}

.related-news__title {
	margin: 0 0 24px;
}

.news-posts .news-grid.news-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
	.news-posts .news-grid.news-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.news-posts .news-grid.news-grid--3 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 991px) {
	.news-posts__row {
		flex-direction: column;
	}

	.news-toc {
		display: none;
	}
}
