/**
 * Post Navigation Block (TOC) Styles
 */

.custom-post-navigation-target {
	scroll-margin-top: 120px;
}

.custom-post-navigation-block {
	margin-bottom: 2em;
}

.custom-post-navigation-block__container {
	padding: 1.5em 1.75em;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: transparent;
}

.custom-post-navigation-block__title {
	margin: 0 0 1em;
	font-size: 1.125em;
	font-weight: 700;
	color: #000;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.custom-post-navigation-block__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.custom-post-navigation-block__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	text-decoration: none;
	color: #0087ea;
	transition: color 0.2s ease, transform 0.2s ease;
	font-size: 0.95em;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.custom-post-navigation-block__link::before {
	content: '\f345';
	font: normal 12px/1 'Dashicons';
	color: #0087ea;
	transition: color 0.2s ease;
}

.custom-post-navigation-block__link:hover {
	color: #006bb8;
	transform: translateX(4px);
}

.custom-post-navigation-block__link:hover::before,
.custom-post-navigation-block__link:focus-visible::before {
	color: #006bb8;
}

.custom-post-navigation-block__link:focus-visible {
	outline: 2px solid #0087ea;
	outline-offset: 2px;
	color: #006bb8;
}

.custom-post-navigation-block__item--empty {
	color: #999;
	font-style: italic;
}

.custom-post-navigation-block__item--level-3,
.custom-post-navigation-block__item--level-4,
.custom-post-navigation-block__item--level-5,
.custom-post-navigation-block__item--level-6 {
	padding-left: 1.25em;
	font-size: 0.9em;
}

/* News-style pages */
.news-content .custom-post-navigation-block__container,
.single-news .custom-post-navigation-block__container {
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.news-content .custom-post-navigation-block__title,
.single-news .custom-post-navigation-block__title {
	color: #000;
}

.news-content .custom-post-navigation-block__link,
.single-news .custom-post-navigation-block__link {
	color: #0087ea;
}

.news-content .custom-post-navigation-block__link::before,
.single-news .custom-post-navigation-block__link::before {
	color: #0087ea;
}

.news-content .custom-post-navigation-block__link:hover,
.news-content .custom-post-navigation-block__link:focus-visible,
.single-news .custom-post-navigation-block__link:hover,
.single-news .custom-post-navigation-block__link:focus-visible {
	color: #006bb8;
}

.news-content .custom-post-navigation-block__link:hover::before,
.news-content .custom-post-navigation-block__link:focus-visible::before,
.single-news .custom-post-navigation-block__link:hover::before,
.single-news .custom-post-navigation-block__link:focus-visible::before {
	color: #006bb8;
}

/* Editor preview */
.custom-post-navigation-block-editor {
	padding: 1em;
	border: 1px dashed #ccc;
	background: #f9f9f9;
	border-radius: 4px;
}

.custom-post-navigation-block-preview {
	text-align: center;
	padding: 1.5em;
}

.custom-post-navigation-block-preview__icon {
	font-size: 2em;
	margin-bottom: 0.5em;
}

.custom-post-navigation-block-preview__text {
	margin: 0 0 0.25em;
	font-weight: 600;
	color: #333;
}

.custom-post-navigation-block-preview__hint {
	margin: 0;
	font-size: 0.85em;
	color: #666;
}
