/* Single post: цвета как на главной, hero, контент записи, TOC, related materials */

/* Переменные главной для страницы записи */
body.single,
body.single-post-has-hero {
	--fp-bg: #161618;
	--fp-bg-soft: #1e1e21;
	--fp-bg-card: #252529;
	--fp-border: rgba(255, 255, 255, 0.06);
	--fp-text: #e4e4e7;
	--fp-text-muted: #a1a1aa;
	--fp-text-dim: #71717a;
	--fp-link: #e4e4e7;
	--fp-link-hover: #fff;
	--fp-accent: #818cf8;
	--fp-accent-soft: rgba(129, 140, 248, 0.15);
	--fp-btn: #2d2d32;
	--fp-btn-hover: #3f3f46;
	--fp-radius: 10px;
	--fp-radius-sm: 6px;
}
body.single #page,
body.single .site-content {
	background: var(--fp-bg);
	color: var(--fp-text);
}

/* Колонка статьи — та же подложка, что у блоков «Поддержка проекта» (карточки целей и банков) */
.single #primary,
.single-post-with-hero #primary {
	max-width: 910px;
	margin-left: auto;
	margin-right: auto;
	background: var(--fp-bg-card);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	padding: 0 1.5rem 2rem;
	box-shadow: none;
}
@media (max-width: 939px) {
	.single #primary,
	.single-post-with-hero #primary {
		border-radius: 0;
		margin-left: 0;
		margin-right: 0;
	}
}

/* Область записи под героем — в тон светлой колонке */
.single .site-main .post,
.single-post-with-hero .post-content {
	background: transparent;
	color: var(--fp-text);
}
.single .post-content,
.single-post-with-hero .post-content {
	padding: 1.5rem 0 0;
	margin: 0;
}
.single .entry-header,
.single-post-with-hero .entry-header {
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--fp-border);
}
.single .entry-title,
.single-post-with-hero .entry-title {
	margin: 0 0 0.35em;
	font-size: 1.75rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--fp-text);
}
.single .entry-header__meta-row,
.single-post-with-hero .entry-header__meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 0.35rem;
}
.single .entry-meta.post-details,
.single-post-with-hero .entry-meta.post-details {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	font-size: 0.8rem;
	color: var(--fp-text-muted);
	margin: 0;
}
.single .entry-meta .posted-on,
.single .entry-meta .posted-by,
.single-post-with-hero .entry-meta .posted-on,
.single-post-with-hero .entry-meta .posted-by,
.single .entry-header__meta-row .entry-categories,
.single-post-with-hero .entry-header__meta-row .entry-categories,
.single .entry-footer.post-details .entry-categories,
.single-post-with-hero .entry-footer.post-details .entry-categories {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: var(--fp-bg-soft);
	border: 1px solid var(--fp-border);
	color: var(--fp-text-muted);
	font-size: 0.8rem;
	font-weight: 400;
}
.single .entry-header__meta-row .entry-categories,
.single-post-with-hero .entry-header__meta-row .entry-categories {
	margin: 0;
	line-height: 1.2;
	white-space: nowrap;
}
.single .entry-header__meta-row .entry-categories::before,
.single-post-with-hero .entry-header__meta-row .entry-categories::before {
	content: "Рубрика: ";
	color: var(--fp-text-muted);
	font-weight: 400;
}
.single .entry-header__meta-row .entry-categories svg,
.single-post-with-hero .entry-header__meta-row .entry-categories svg { display: none; }
.single .entry-meta .meta-date,
.single .entry-meta .meta-author,
.single-post-with-hero .entry-meta .meta-date,
.single-post-with-hero .entry-meta .meta-author {
	color: inherit;
}
.single .entry-meta .posted-on time,
.single .entry-meta .posted-by .fn,
.single-post-with-hero .entry-meta .posted-on time,
.single-post-with-hero .entry-meta .posted-by .fn,
.single .entry-header__meta-row .entry-categories a,
.single-post-with-hero .entry-header__meta-row .entry-categories a,
.single .entry-footer.post-details .entry-categories a,
.single-post-with-hero .entry-footer.post-details .entry-categories a {
	color: var(--fp-accent);
	font-weight: 600;
}
.single .entry-meta a,
.single-post-with-hero .entry-meta a,
.single .entry-footer.post-details a,
.single-post-with-hero .entry-footer.post-details a {
	color: inherit;
	text-decoration: none;
	pointer-events: none; /* баблики даты и автора некликабельные */
}
.single .entry-header__meta-row .entry-categories a,
.single-post-with-hero .entry-header__meta-row .entry-categories a {
	pointer-events: auto;
	text-decoration: none;
}
.single .entry-header__meta-row .entry-categories a:hover,
.single-post-with-hero .entry-header__meta-row .entry-categories a:hover {
	color: var(--fp-link-hover);
	text-decoration: underline;
}
.single .entry-content,
.single-post-with-hero .entry-content {
	margin: 1.25rem 0 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--fp-text);
}
.single .entry-content p,
.single-post-with-hero .entry-content p {
	margin: 0 0 1em;
}
.single .entry-content p:last-child,
.single-post-with-hero .entry-content p:last-child {
	margin-bottom: 0;
}
.single .entry-content a,
.single-post-with-hero .entry-content a {
	color: var(--fp-accent);
	text-decoration: none;
}
.single .entry-content a:hover,
.single-post-with-hero .entry-content a:hover {
	color: var(--fp-link-hover);
	text-decoration: underline;
}
.single .entry-content h2,
.single-post-with-hero .entry-content h2 {
	margin: 1.75em 0 0.5em;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--fp-text);
}
.single .entry-content h3,
.single-post-with-hero .entry-content h3 {
	margin: 1.5em 0 0.4em;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--fp-text);
}
.single .entry-content ul,
.single .entry-content ol,
.single-post-with-hero .entry-content ul,
.single-post-with-hero .entry-content ol {
	margin: 1em 0;
	padding-left: 1.5em;
}
.single blockquote,
.single-post-with-hero blockquote {
	margin: 1.25em 0;
	padding: 0.75em 1em 0.75em 1.25em;
	border-left: 2px solid var(--fp-accent); /* фиолетовая полоска у блоков цитат на single */
	background: transparent;
	color: var(--fp-text);
	font-style: italic;
}
.single .entry-footer.post-details,
.single-post-with-hero .entry-footer.post-details {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--fp-border);
	font-size: 0.875rem;
	color: var(--fp-text-muted);
}
.single .entry-footer a,
.single-post-with-hero .entry-footer a {
	color: var(--fp-accent);
	text-decoration: none;
}
.single .entry-footer a:hover,
.single-post-with-hero .entry-footer a:hover {
	color: var(--fp-link-hover);
	text-decoration: underline;
}
.single .entry-categories,
.single-post-with-hero .entry-categories {
	margin: 0 0 0.5em;
}
.single .post-navigation,
.single-post-with-hero .post-navigation {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--fp-border);
}
.single .post-navigation .nav-links,
.single-post-with-hero .post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
}
.single .post-navigation a,
.single-post-with-hero .post-navigation a {
	color: var(--fp-text);
	text-decoration: none;
}
.single .post-navigation a:hover,
.single-post-with-hero .post-navigation a:hover {
	color: var(--fp-accent);
	text-decoration: underline;
}
.single .page-links,
.single-post-with-hero .page-links {
	margin: 1em 0;
	font-size: 0.9375rem;
	color: var(--fp-text-muted);
}

.single .entry-meta-badges,
.single-post-with-hero .entry-meta-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	margin: 0.5em 0 1em;
	font-size: 0.9em;
	color: var(--fp-text-muted);
}
.single .entry-meta-badge a,
.single-post-with-hero .entry-meta-badge a {
	color: var(--fp-accent);
	text-decoration: none;
}
.single .entry-meta-badge a:hover,
.single-post-with-hero .entry-meta-badge a:hover {
	color: var(--fp-link-hover);
	text-decoration: underline;
}

/* Оглавление: в контенте (цвета главной) */
.single .entry-toc,
.single-post-with-hero .entry-toc {
	margin-bottom: 1.5em;
	padding: 1.25rem 1.5rem;
	background: var(--fp-bg-soft);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
}
.single .entry-toc__title,
.single-post-with-hero .entry-toc__title {
	margin: 0.75em 0 0.5em;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--fp-text-muted);
	border-bottom: 1px solid var(--fp-border);
	padding-bottom: 0.5rem;
}
.single .entry-toc__list,
.single-post-with-hero .entry-toc__list {
	margin: 0;
	padding-left: 1.5rem;
}
.single .entry-toc__item,
.single-post-with-hero .entry-toc__item { margin: 0.4em 0; }
.single .entry-toc__item--h2,
.single-post-with-hero .entry-toc__item--h2 { font-weight: 600; }
.single .entry-toc__item--h3,
.single-post-with-hero .entry-toc__item--h3 { padding-left: 1rem; font-size: 0.9375em; }
.single .entry-toc__link,
.single-post-with-hero .entry-toc__link {
	text-decoration: none;
	color: var(--fp-text);
	transition: color 0.2s;
}
.single .entry-toc__link:hover,
.single-post-with-hero .entry-toc__link:hover { color: var(--fp-accent); }

/* Оглавление в сайдбаре: компактно, липкое */
.sidebar__toc {
	margin-bottom: 1.5rem;
}
.sidebar__toc .entry-toc {
	margin-bottom: 0;
	padding: 1rem 1.25rem;
}
@media (min-width: 992px) {
	.sidebar__toc { position: sticky; top: 1.5rem; }
}

/* Hero статьи по макету: в ширину основной области контента, не на весь экран */
.single-post-has-hero .article-hero,
.single .article-hero {
	position: relative;
	margin-bottom: 2rem;
	margin-left: auto;
	margin-right: auto;
	max-width: 910px;
	min-height: 380px;
	overflow: hidden;
	background: #0f0f0f;
	border-radius: var(--fp-radius, 10px);
}
.single-post-has-hero .article-hero__bg,
.single .article-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: none;
	transform: none;
	opacity: 1;
}
.single-post-has-hero .article-hero__overlay,
.single .article-hero__overlay {
	position: relative;
	background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.35) 100%);
	color: #fff;
	padding: 2.5rem 1.5rem;
	min-height: 380px;
	display: flex;
	align-items: center;
}

/* Если в герое ничего не заполнено — показываем только изображение без затемнения */
.single-post-has-hero .article-hero--image-only .article-hero__overlay,
.single .article-hero--image-only .article-hero__overlay {
	display: none;
}
.single-post-has-hero .article-hero__inner,
.single .article-hero__inner {
	width: 100%;
	max-width: 910px;
	margin: 0 auto;
}
.single-post-has-hero .article-hero__title,
.single .article-hero__title {
	margin: 0 0 1.25rem;
	font-size: 2.5rem;
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
}
.single-post-has-hero .article-hero__content-row,
.single .article-hero__content-row {
	display: grid;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
	.single-post-has-hero .article-hero__content-row,
	.single .article-hero__content-row {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}
.single-post-has-hero .article-hero__definition-col,
.single .article-hero__definition-col { min-width: 0; }
.single-post-has-hero .article-hero__definition,
.single .article-hero__definition {
	margin: 0;
	line-height: 1.65;
	font-size: 1rem;
	color: rgba(255,255,255,0.95);
}
.single-post-has-hero .article-hero__definition p,
.single .article-hero__definition p { margin: 0 0 0.5em; }
.single-post-has-hero .article-hero__definition p:last-child,
.single .article-hero__definition p:last-child { margin-bottom: 0; }
.single-post-has-hero .article-hero__quote-col,
.single .article-hero__quote-col {
	border-left: none; /* без разделяющей полоски у колонки цитаты */
	padding-left: 1.25rem;
	min-height: 3em;
}
.single-post-has-hero .article-hero__quote,
.single .article-hero__quote {
	margin: 0;
	font-size: 0.9375rem;
	font-style: italic;
	color: rgba(255,255,255,0.92);
	line-height: 1.55;
}

.single-post-has-hero .article-hero__tabs,
.single .article-hero__tabs { margin-top: 1.25rem; }
.single-post-has-hero .article-hero__tab-headers,
.single .article-hero__tab-headers { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.single-post-has-hero .article-hero__tab-radio,
.single .article-hero__tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.single-post-has-hero .article-hero__tab-label,
.single .article-hero__tab-label {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	cursor: pointer;
	background: linear-gradient(180deg, var(--fp-btn-hover, #3f3f46) 0%, var(--fp-btn, #2d2d32) 100%);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: var(--fp-radius-sm, 6px);
	font-size: 0.875rem;
	font-weight: 500;
	transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
	box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.single-post-has-hero .article-hero__tab-label:hover,
.single .article-hero__tab-label:hover {
	background: linear-gradient(180deg, #4a4a52 0%, #3f3f46 100%);
	border-color: rgba(255,255,255,0.35);
	box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.single-post-has-hero .article-hero__tab-radio:checked + .article-hero__tab-label,
.single .article-hero__tab-radio:checked + .article-hero__tab-label,
.single-post-has-hero .article-hero__tabs .article-hero__tab-radio:focus-visible + .article-hero__tab-label,
.single .article-hero__tabs .article-hero__tab-radio:focus-visible + .article-hero__tab-label {
	background: var(--fp-accent, #818cf8);
	border-color: var(--fp-accent, #818cf8);
	box-shadow: 0 2px 6px rgba(129, 140, 248, 0.35);
}
.single-post-has-hero .article-hero__tab-panel,
.single .article-hero__tab-panel { display: none; margin-top: 1rem; color: rgba(255,255,255,0.95); }
.single-post-has-hero .article-hero__tabs:has(#article-hero-tab-0:checked) #article-hero-panel-0,
.single .article-hero__tabs:has(#article-hero-tab-0:checked) #article-hero-panel-0,
.single-post-has-hero .article-hero__tabs:has(#article-hero-tab-1:checked) #article-hero-panel-1,
.single .article-hero__tabs:has(#article-hero-tab-1:checked) #article-hero-panel-1,
.single-post-has-hero .article-hero__tabs:has(#article-hero-tab-2:checked) #article-hero-panel-2,
.single .article-hero__tabs:has(#article-hero-tab-2:checked) #article-hero-panel-2,
.single-post-has-hero .article-hero__tabs:has(#article-hero-tab-3:checked) #article-hero-panel-3,
.single .article-hero__tabs:has(#article-hero-tab-3:checked) #article-hero-panel-3 { display: block; }

.single-post-has-hero .article-hero__layout,
.single .article-hero__layout { display: grid; gap: 1.5rem; }
@media (min-width: 768px) {
	.single-post-has-hero .article-hero__layout--columns,
	.single .article-hero__layout--columns,
	.single-post-has-hero .article-hero__layout--video,
	.single .article-hero__layout--video { grid-template-columns: 1fr 1fr; }
	.single-post-has-hero .article-hero__layout--research,
	.single .article-hero__layout--research { grid-template-columns: 1fr 280px; }
}
.single-post-has-hero .article-hero__col-title,
.single .article-hero__col-title { margin: 0 0 0.5rem; font-size: 0.9375rem; color: rgba(255,255,255,0.9); }
.single-post-has-hero .article-hero__content,
.single .article-hero__content { margin: 0; color: rgba(255,255,255,0.95); font-size: 0.9375rem; line-height: 1.55; }
.single-post-has-hero .article-hero__research-list,
.single .article-hero__research-list { list-style: none; margin: 0; padding: 0; }
.single-post-has-hero .article-hero__research-link,
.single .article-hero__research-link { display: inline-block; margin-bottom: 0.5rem; color: rgba(255,255,255,0.85); text-decoration: underline; }
.single-post-has-hero .article-hero__research-link:hover,
.single .article-hero__research-link:hover { color: #fff; }
.single-post-has-hero .article-hero__video-wrap,
.single .article-hero__video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 6px; }
.single-post-has-hero .article-hero__video,
.single .article-hero__video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.single-post-has-hero .article-hero__nav,
.single .article-hero__nav {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255,255,255,0.25);
}
.single-post-has-hero .article-hero__nav-list,
.single .article-hero__nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.single-post-has-hero .article-hero__nav-link,
.single .article-hero__nav-link {
	text-decoration: none;
	color: rgba(255,255,255,0.9);
	padding: 0.4rem 0.75rem;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,0.35);
	transition: background 0.2s, color 0.2s;
	font-size: 0.875rem;
}
.single-post-has-hero .article-hero__nav-link:hover,
.single .article-hero__nav-link:hover { background: rgba(255,255,255,0.15); color: #fff; }
.single-post-has-hero .article-hero__nav-link--parent::before,
.single .article-hero__nav-link--parent::before { content: "← "; opacity: 0.8; }
.single-post-has-hero .article-hero__nav-link--child::after,
.single .article-hero__nav-link--child::after { content: " →"; opacity: 0.8; }

/* Блок доната после статьи — отступ сверху */
.single .site-main > .front-donate,
.single-post-with-hero .site-main > .front-donate {
	margin-top: 20px;
	padding-top: 0;
	background: transparent;
	border: none;
}

.single .site-main > .front-donate .front-donate__inner,
.single-post-with-hero .site-main > .front-donate .front-donate__inner {
	padding-top: 1.75rem;
}

.single .related-materials,
.single-post-with-hero .related-materials {
	margin-top: 2em;
	margin-left: 20px;
	margin-right: 20px;
	padding-top: 1.5em;
	border-top: 1px solid var(--fp-border);
}
.single .related-materials,
.single-post-with-hero .related-materials {
	margin-top: 2em;
	margin-left: 20px;
	color: var(--fp-text);
}
.single .related-materials__list,
.single-post-with-hero .related-materials__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1em;
}
@media (min-width: 600px) {
	.single .related-materials__list,
	.single-post-with-hero .related-materials__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.single .related-materials__list,
	.single-post-with-hero .related-materials__list { grid-template-columns: repeat(3, 1fr); }
}
.single .related-materials__item,
.single-post-with-hero .related-materials__item { margin: 0; }
.single .related-materials__link,
.single-post-with-hero .related-materials__link {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--fp-text);
}
.single .related-materials__link:hover,
.single-post-with-hero .related-materials__link:hover { color: var(--fp-accent); }
.single .related-materials__thumb,
.single-post-with-hero .related-materials__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	min-height: 100px;
	background: var(--fp-bg-card) center/cover no-repeat;
	border-radius: var(--fp-radius-sm);
}
.single .related-materials__thumb--placeholder,
.single-post-with-hero .related-materials__thumb--placeholder { background: var(--fp-btn); }
.single .related-materials__content,
.single-post-with-hero .related-materials__content { flex: 1; min-width: 0; }
.single .related-materials__heading,
.single-post-with-hero .related-materials__heading { font-weight: 600; display: block; line-height: 1.3; font-size: 1rem; }
.single .related-materials__meta,
.single-post-with-hero .related-materials__meta {
	font-size: 0.85em;
	color: var(--fp-text-muted);
	margin-top: 0.25em;
}
@media (max-width: 767px) {
	.single .related-materials__meta,
	.single-post-with-hero .related-materials__meta { display: none; }
}

/* --- Сквозной блок внутри статьи (1 запись, 30% миниатюра + 70% контент, две кнопки) --- */
.single .related-material-inline,
.single-post-with-hero .related-material-inline {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	align-items: stretch;
	margin: 1.5em 0;
	padding: 1.25rem 0;
	border-top: 1px solid var(--fp-border);
	border-bottom: 1px solid var(--fp-border);
}
.single .related-material-inline__thumb-wrap,
.single-post-with-hero .related-material-inline__thumb-wrap {
	flex: 0 0 30%;
	min-width: 0;
}
.single .related-material-inline__thumb,
.single-post-with-hero .related-material-inline__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	min-height: 100px;
	background: var(--fp-bg-card) center/cover no-repeat;
	border-radius: var(--fp-radius-sm);
}
.single .related-material-inline__thumb--placeholder,
.single-post-with-hero .related-material-inline__thumb--placeholder { background: var(--fp-btn); }
.single .related-material-inline__content,
.single-post-with-hero .related-material-inline__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.single .related-material-inline__heading,
.single-post-with-hero .related-material-inline__heading {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}
.single .related-material-inline__heading a,
.single-post-with-hero .related-material-inline__heading a {
	color: var(--fp-text);
	text-decoration: none;
}
.single .related-material-inline__heading a:hover,
.single-post-with-hero .related-material-inline__heading a:hover { color: var(--fp-accent); }
.single .related-material-inline__excerpt,
.single-post-with-hero .related-material-inline__excerpt {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--fp-text-muted);
}
.single .related-material-inline__excerpt--desktop,
.single-post-with-hero .related-material-inline__excerpt--desktop { display: none; }
@media (min-width: 768px) {
	.single .related-material-inline__excerpt--mobile,
	.single-post-with-hero .related-material-inline__excerpt--mobile { display: none; }
	.single .related-material-inline__excerpt--desktop,
	.single-post-with-hero .related-material-inline__excerpt--desktop { display: inline; }
}
.single .related-material-inline__actions,
.single-post-with-hero .related-material-inline__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.25rem;
}
.single .related-material-inline__btn,
.single-post-with-hero .related-material-inline__btn {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: var(--fp-radius-sm);
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.single .related-material-inline__btn--primary,
.single-post-with-hero .related-material-inline__btn--primary {
	color: #fff !important;
	background: var(--fp-accent);
	border: 1px solid var(--fp-accent);
}
.single .related-material-inline__btn--primary:hover,
.single-post-with-hero .related-material-inline__btn--primary:hover {
	background: #6366f1;
	border-color: #6366f1;
	color: #fff !important;
}
.single .related-material-inline__btn--secondary,
.single-post-with-hero .related-material-inline__btn--secondary {
	color: var(--fp-text);
	background: var(--fp-btn);
	border: 1px solid var(--fp-border);
}
.single .related-material-inline__btn--secondary:hover,
.single-post-with-hero .related-material-inline__btn--secondary:hover {
	background: var(--fp-btn-hover);
	border-color: var(--fp-border);
	color: var(--fp-text);
}
@media (max-width: 767px) {
	.single .related-material-inline,
	.single-post-with-hero .related-material-inline { flex-direction: column; }
	.single .related-material-inline__thumb-wrap,
	.single-post-with-hero .related-material-inline__thumb-wrap { flex: 0 0 auto; width: 100%; max-width: 100%; }
	.single .related-material-inline__thumb,
	.single-post-with-hero .related-material-inline__thumb { aspect-ratio: 16 / 10; }
	.single .related-material-inline__actions,
	.single-post-with-hero .related-material-inline__actions {
		flex-wrap: nowrap;
		flex-direction: row;
	}
	.single .related-material-inline__btn,
	.single-post-with-hero .related-material-inline__btn {
		flex: 1;
		min-width: 0;
		text-align: center;
		font-size: 0.8rem;
		padding: 0.4rem 0.5rem;
	}
}

/* --- Форма комментариев: в тон светлой колонке, компактное поле --- */
.single #comments.comments-area,
.single-post-with-hero #comments.comments-area {
	margin-top: 2.5rem;
	margin-bottom: 2rem;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	border-top: 1px solid var(--fp-border);
	color: var(--fp-text);
	background: transparent;
}
.single #comments .comments-title,
.single-post-with-hero #comments .comments-title {
	font-size: 1.25rem;
	margin: 0 0 1rem;
	color: var(--fp-text);
	background: transparent !important;
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--fp-border);
}
.single #comments .comment-notes,
.single #comments .logged-in-as,
.single-post-with-hero #comments .comment-notes,
.single-post-with-hero #comments .logged-in-as {
	font-size: 0.875rem;
	color: var(--fp-text-muted);
	margin-bottom: 1rem;
}
.single #comments .comment-form a,
.single-post-with-hero #comments .comment-form a {
	color: var(--fp-accent);
}
.single #comments .comment-form a:hover,
.single-post-with-hero #comments .comment-form a:hover {
	color: var(--fp-link-hover);
}
.single .comment-form label,
.single-post-with-hero .comment-form label {
	display: block;
	font-size: 0.875rem;
	color: var(--fp-text-muted);
	margin-bottom: 0.35rem;
}
.single .comment-form input[type="text"],
.single .comment-form input[type="email"],
.single .comment-form input[type="url"],
.single .comment-form textarea,
.single-post-with-hero .comment-form input[type="text"],
.single-post-with-hero .comment-form input[type="email"],
.single-post-with-hero .comment-form input[type="url"],
.single-post-with-hero .comment-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--fp-text);
	background: var(--fp-bg-card);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius-sm);
}
.single .comment-form textarea,
.single-post-with-hero .comment-form textarea {
	min-height: 100px;
	height: 100px;
	resize: vertical;
	max-height: 280px;
}
.single .comment-form p,
.single-post-with-hero .comment-form p {
	margin-bottom: 1rem;
}
.single .comment-form .form-submit,
.single-post-with-hero .comment-form .form-submit {
	margin-bottom: 0;
}
.single .comment-form .submit,
.single-post-with-hero .comment-form .submit {
	display: inline-block;
	padding: 0.6rem 1.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #fff;
	background: var(--fp-accent);
	border: none;
	border-radius: var(--fp-radius-sm);
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
}
.single .comment-form .submit:hover,
.single-post-with-hero .comment-form .submit:hover {
	background: #6366f1;
	opacity: 0.95;
}
.single #comments .comment-list,
.single-post-with-hero #comments .comment-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}
.single #comments .comment,
.single #comments .comment-respond,
.single #comments .comment-navigation,
.single-post-with-hero #comments .comment,
.single-post-with-hero #comments .comment-respond,
.single-post-with-hero #comments .comment-navigation {
	background: transparent !important;
	padding-left: 0;
	padding-right: 0;
	border: none;
}
.single #comments .comment-body,
.single-post-with-hero #comments .comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid var(--fp-border);
	color: var(--fp-text);
}
.single #comments .comment-meta,
.single-post-with-hero #comments .comment-meta {
	font-size: 0.875rem;
	color: var(--fp-text-muted);
	margin-bottom: 0.35rem;
}
.single #comments .comment-meta a,
.single-post-with-hero #comments .comment-meta a {
	color: var(--fp-accent);
}
.single #comments .comment-content,
.single-post-with-hero #comments .comment-content {
	font-size: 0.9375rem;
	line-height: 1.5;
}
.single #comments .no-comments,
.single-post-with-hero #comments .no-comments {
	color: var(--fp-text-muted);
	font-size: 0.9375rem;
}
.single #comments .comment-navigation a,
.single-post-with-hero #comments .comment-navigation a {
	color: var(--fp-accent);
}
.single #comments .comment-navigation a:hover,
.single-post-with-hero #comments .comment-navigation a:hover {
	color: var(--fp-link-hover);
}
