/**
 * Single blog post — типографика и вёрстка тела статьи.
 * Область: только body.single-post .wstart-single-blog
 * Подключается после blogitem.css (перекрывает устаревшие !important там и в style.css для ссылок).
 */

body.single-post .wstart-single-blog {
	--wstart-acc: #ff29d0;
	--wstart-acc-hover: #d4149e;
	--wstart-acc-visited: #b01084;
	--wstart-text: #222222;
	--wstart-text-strong: #111111;
	--wstart-heading: #111111;
	--wstart-muted: #6b7280;
	--wstart-hr: #ececec;
	--wstart-quote-bg: #fdf8fc;
	--wstart-toc-bg: #fafafa;
	--wstart-toc-border: #ececec;
}

/* Белая подложка карточки статьи */
body.single-post .wstart-single-blog .blog_item_blck {
	background-color: #ffffff;
}

/* Боковые отступы карточки: tablet 24px, mobile 16px */
@media screen and (max-width: 1199px) {
	body.single-post .wstart-single-blog .blog_item_blck {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media screen and (max-width: 767px) {
	body.single-post .wstart-single-blog .blog_item_blck {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* H1 — заголовок записи (в шаблоне, не в the_content) */
body.single-post .wstart-single-blog h1.article_title {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5rem;
	padding-left: 0;
	padding-right: 0;
	text-align: left;
	color: var(--wstart-heading);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.18;
	text-transform: none;
	font-size: clamp(1.75rem, 2.2vw + 1rem, 3rem);
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.single-post .wstart-single-blog h1.article_title {
		font-size: clamp(2rem, 3.5vw, 2.5rem);
	}
}

@media screen and (min-width: 1200px) {
	body.single-post .wstart-single-blog h1.article_title {
		font-size: 3rem;
	}
}

/* Hero: может быть шире колонки текста */
body.single-post .wstart-single-blog .article_image {
	width: 100%;
	margin-bottom: 0.5rem;
}

body.single-post .wstart-single-blog .article_image img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 20px;
	object-fit: cover;
}

/* Основная колонка текста */
body.single-post .wstart-single-blog .wstart-entry-content {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding-left: 0;
	padding-right: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Копирайт: размеры текста (перекрытие blogitem) */
body.single-post .wstart-single-blog .wstart-entry-content p,
body.single-post .wstart-single-blog .wstart-entry-content ul li,
body.single-post .wstart-single-blog .wstart-entry-content ol li,
body.single-post .wstart-single-blog .wstart-entry-content dd,
body.single-post .wstart-single-blog .wstart-entry-content dt {
	color: var(--wstart-text) !important;
	font-weight: 400 !important;
	line-height: 1.75 !important;
	font-size: 1.125rem !important;
	margin-bottom: 1.25rem !important;
}

body.single-post .wstart-single-blog .wstart-entry-content li > p {
	margin-bottom: 0.5rem !important;
}

@media screen and (max-width: 1199px) {
	body.single-post .wstart-single-blog .wstart-entry-content p,
	body.single-post .wstart-single-blog .wstart-entry-content ul li,
	body.single-post .wstart-single-blog .wstart-entry-content ol li,
	body.single-post .wstart-single-blog .wstart-entry-content dd,
	body.single-post .wstart-single-blog .wstart-entry-content dt {
		font-size: 1.0625rem !important;
	}
}

@media screen and (max-width: 767px) {
	body.single-post .wstart-single-blog .wstart-entry-content p,
	body.single-post .wstart-single-blog .wstart-entry-content ul li,
	body.single-post .wstart-single-blog .wstart-entry-content ol li,
	body.single-post .wstart-single-blog .wstart-entry-content dd,
	body.single-post .wstart-single-blog .wstart-entry-content dt {
		font-size: 1rem !important;
	}
}

body.single-post .wstart-single-blog .wstart-entry-content ul,
body.single-post .wstart-single-blog .wstart-entry-content ol {
	margin-top: 0;
	margin-bottom: 1.5rem !important;
	padding-left: 1.5rem;
}

body.single-post .wstart-single-blog .wstart-entry-content li {
	margin-bottom: 0.5rem !important;
}

body.single-post .wstart-single-blog .wstart-entry-content ul li::marker {
	color: var(--wstart-acc);
}

body.single-post .wstart-single-blog .wstart-entry-content ol li::marker {
	color: var(--wstart-acc);
	font-weight: 600;
}

/* strong / b */
body.single-post .wstart-single-blog .wstart-entry-content strong,
body.single-post .wstart-single-blog .wstart-entry-content b {
	font-weight: 700 !important;
	color: var(--wstart-text-strong) !important;
}

body.single-post .wstart-single-blog .wstart-entry-content em,
body.single-post .wstart-single-blog .wstart-entry-content i {
	font-style: italic;
	color: inherit !important;
}

/* Заголовки внутри контента */
body.single-post .wstart-single-blog .wstart-entry-content h1,
body.single-post .wstart-single-blog .wstart-entry-content h2,
body.single-post .wstart-single-blog .wstart-entry-content h3,
body.single-post .wstart-single-blog .wstart-entry-content h4,
body.single-post .wstart-single-blog .wstart-entry-content h5,
body.single-post .wstart-single-blog .wstart-entry-content h6 {
	color: var(--wstart-heading) !important;
	font-weight: 700 !important;
	text-transform: none;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

body.single-post .wstart-single-blog .wstart-entry-content h1 {
	font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem) !important;
	line-height: 1.2 !important;
	margin-top: 2.5rem !important;
	margin-bottom: 1rem !important;
}

body.single-post .wstart-single-blog .wstart-entry-content h2 {
	font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem) !important;
	line-height: 1.25 !important;
	margin-top: 3.5rem !important;
	margin-bottom: 1.25rem !important;
}

body.single-post .wstart-single-blog .wstart-entry-content h3 {
	font-size: clamp(1.25rem, 1.2vw + 0.85rem, 1.625rem) !important;
	line-height: 1.3 !important;
	margin-top: 2.5rem !important;
	margin-bottom: 1rem !important;
}

body.single-post .wstart-single-blog .wstart-entry-content h4 {
	font-size: clamp(1.125rem, 0.8vw + 0.9rem, 1.375rem) !important;
	line-height: 1.35 !important;
	margin-top: 2rem !important;
	margin-bottom: 0.875rem !important;
}

body.single-post .wstart-single-blog .wstart-entry-content h5 {
	font-size: clamp(1.05rem, 0.5vw + 0.9rem, 1.125rem) !important;
	line-height: 1.4 !important;
	margin-top: 1.75rem !important;
	margin-bottom: 0.75rem !important;
}

body.single-post .wstart-single-blog .wstart-entry-content h6 {
	font-size: 1.0625rem !important;
	line-height: 1.45 !important;
	margin-top: 1.5rem !important;
	margin-bottom: 0.625rem !important;
}

body.single-post .wstart-single-blog .wstart-entry-content h2 + p,
body.single-post .wstart-single-blog .wstart-entry-content h3 + p,
body.single-post .wstart-single-blog .wstart-entry-content h4 + p {
	margin-top: 0 !important;
}

/* Ссылки в теле статьи */
body.single-post .wstart-single-blog .wstart-entry-content a {
	color: var(--wstart-acc) !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
	word-break: break-word;
	overflow-wrap: anywhere;
}

body.single-post .wstart-single-blog .wstart-entry-content a:hover {
	color: var(--wstart-acc-hover) !important;
	text-decoration-thickness: 2px;
}

body.single-post .wstart-single-blog .wstart-entry-content a:visited {
	color: var(--wstart-acc-visited) !important;
}

body.single-post .wstart-single-blog .wstart-entry-content a:focus-visible {
	outline: 2px solid var(--wstart-acc);
	outline-offset: 2px;
}

/* Оглавление (плагины / блоки) */
body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-v2_0_17,
body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-v2_0_16,
body.single-post .wstart-single-blog .wstart-entry-content [id="ez-toc-container"],
body.single-post .wstart-single-blog .wstart-entry-content div.ez-toc-container,
body.single-post .wstart-single-blog .wstart-entry-content nav.ez-toc-container,
body.single-post .wstart-single-blog .wstart-entry-content .lwptoc,
body.single-post .wstart-single-blog .wstart-entry-content .lwptoc_i,
body.single-post .wstart-single-blog .wstart-entry-content .wp-block-rank-math-toc,
body.single-post .wstart-single-blog .wstart-entry-content .rank-math-toc,
body.single-post .wstart-single-blog .wstart-entry-content .table-of-contents,
body.single-post .wstart-single-blog .wstart-entry-content #toc_container {
	background: var(--wstart-toc-bg) !important;
	border: 1px solid var(--wstart-toc-border) !important;
	border-radius: 16px !important;
	padding: 1.375rem 1.5rem !important;
	margin: 2rem 0 !important;
	box-sizing: border-box;
}

body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-title,
body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-title-container,
body.single-post .wstart-single-blog .wstart-entry-content .lwptoc_header,
body.single-post .wstart-single-blog .wstart-entry-content .wp-block-rank-math-toc .wp-block-rank-math-toc-header,
body.single-post .wstart-single-blog .wstart-entry-content .toc-title,
body.single-post .wstart-single-blog .wstart-entry-content #toc_container .toc_title,
body.single-post .wstart-single-blog .wstart-entry-content .table-of-contents > strong,
body.single-post .wstart-single-blog .wstart-entry-content .table-of-contents > p:first-child {
	font-weight: 700 !important;
	font-size: 1.0625rem !important;
	color: var(--wstart-heading) !important;
	margin: 0 0 0.75rem !important;
	line-height: 1.35 !important;
}

body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-list,
body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-list-level-1,
body.single-post .wstart-single-blog .wstart-entry-content .rank-math-toc ul,
body.single-post .wstart-single-blog .wstart-entry-content .wp-block-rank-math-toc ul,
body.single-post .wstart-single-blog .wstart-entry-content #toc_container .toc_list {
	margin: 0 !important;
	padding-left: 1.25rem !important;
	list-style-position: outside !important;
}

body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-list a,
body.single-post .wstart-single-blog .wstart-entry-content .lwptoc a,
body.single-post .wstart-single-blog .wstart-entry-content .rank-math-toc a,
body.single-post .wstart-single-blog .wstart-entry-content .wp-block-rank-math-toc a,
body.single-post .wstart-single-blog .wstart-entry-content #toc_container .toc_list a,
body.single-post .wstart-single-blog .wstart-entry-content .table-of-contents a {
	color: var(--wstart-text) !important;
	text-decoration: none !important;
	text-decoration-thickness: initial !important;
	display: inline;
	padding: 0.125rem 0;
	border-radius: 4px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-list a:hover,
body.single-post .wstart-single-blog .wstart-entry-content .lwptoc a:hover,
body.single-post .wstart-single-blog .wstart-entry-content .rank-math-toc a:hover,
body.single-post .wstart-single-blog .wstart-entry-content .wp-block-rank-math-toc a:hover,
body.single-post .wstart-single-blog .wstart-entry-content #toc_container .toc_list a:hover,
body.single-post .wstart-single-blog .wstart-entry-content .table-of-contents a:hover {
	color: var(--wstart-acc) !important;
	background-color: transparent;
}

body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-list a:visited,
body.single-post .wstart-single-blog .wstart-entry-content .lwptoc a:visited,
body.single-post .wstart-single-blog .wstart-entry-content .rank-math-toc a:visited,
body.single-post .wstart-single-blog .wstart-entry-content .wp-block-rank-math-toc a:visited,
body.single-post .wstart-single-blog .wstart-entry-content #toc_container .toc_list a:visited {
	color: var(--wstart-text) !important;
}

body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-list a.ez-toc-active,
body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-list a.active,
body.single-post .wstart-single-blog .wstart-entry-content .ez-toc-list li.active > a,
body.single-post .wstart-single-blog .wstart-entry-content .lwptoc .lwptoc_item a.active,
body.single-post .wstart-single-blog .wstart-entry-content .lwptoc_itemActive > a,
body.single-post .wstart-single-blog .wstart-entry-content .rank-math-toc a.active,
body.single-post .wstart-single-blog .wstart-entry-content #toc_container .toc_list a.active {
	color: var(--wstart-acc) !important;
	font-weight: 600;
}

/* Citations */
body.single-post .wstart-single-blog .wstart-entry-content blockquote {
	background: var(--wstart-quote-bg) !important;
	border-left: 4px solid var(--wstart-acc) !important;
	border-radius: 12px !important;
	padding: 1.375rem 1.5rem !important;
	margin: 2rem 0 !important;
	color: var(--wstart-heading) !important;
	font-size: 1.25rem !important;
	line-height: 1.7 !important;
	box-sizing: border-box;
}

@media screen and (max-width: 767px) {
	body.single-post .wstart-single-blog .wstart-entry-content blockquote {
		font-size: 1.125rem !important;
	}
}

body.single-post .wstart-single-blog .wstart-entry-content blockquote p:last-child {
	margin-bottom: 0 !important;
}

body.single-post .wstart-single-blog .wstart-entry-content blockquote p,
body.single-post .wstart-single-blog .wstart-entry-content blockquote li {
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
}

/* Figures & légendes */
body.single-post .wstart-single-blog .wstart-entry-content figure {
	margin: 2rem 0 !important;
	max-width: 100%;
}

body.single-post .wstart-single-blog .wstart-entry-content figure img {
	margin: 0 !important;
	border-radius: 18px;
}

body.single-post .wstart-single-blog .wstart-entry-content figcaption,
body.single-post .wstart-single-blog .wstart-entry-content .wp-caption-text {
	font-size: 0.875rem !important;
	line-height: 1.5 !important;
	color: var(--wstart-muted) !important;
	margin-top: 0.625rem !important;
	text-align: center !important;
	font-weight: 400 !important;
}

body.single-post .wstart-single-blog .wstart-entry-content img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 18px;
	margin: 1.75rem 0;
}

body.single-post .wstart-single-blog .wstart-entry-content p img,
body.single-post .wstart-single-blog .wstart-entry-content a img {
	display: inline-block;
	vertical-align: middle;
}

/* HR */
body.single-post .wstart-single-blog .wstart-entry-content hr {
	border: none;
	border-top: 1px solid var(--wstart-hr);
	margin: 2.5rem 0;
	height: 0;
	background: transparent;
	opacity: 1;
}

/* Tableaux */
body.single-post .wstart-single-blog .wstart-entry-content .wp-block-table {
	margin: 1.75rem 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

body.single-post .wstart-single-blog .wstart-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.75rem 0;
	font-size: 1rem !important;
	line-height: 1.6 !important;
	background: #fff;
}

@media screen and (max-width: 767px) {
	body.single-post .wstart-single-blog .wstart-entry-content table {
		font-size: 0.875rem !important;
	}
}

body.single-post .wstart-single-blog .wstart-entry-content thead th,
body.single-post .wstart-single-blog .wstart-entry-content th {
	background: #f9fafb !important;
	font-weight: 700 !important;
	color: var(--wstart-heading) !important;
	padding: 0.875rem 1rem !important;
	border-bottom: 1px solid #e5e7eb !important;
	text-align: left;
	vertical-align: top;
}

body.single-post .wstart-single-blog .wstart-entry-content td {
	padding: 0.875rem 1rem !important;
	border-bottom: 1px solid var(--wstart-toc-border) !important;
	color: var(--wstart-text) !important;
	vertical-align: top;
}

body.single-post .wstart-single-blog .wstart-entry-content tbody tr:hover {
	background-color: rgba(17, 17, 17, 0.02);
}

/* Boutons Gutenberg dans l’article */
body.single-post .wstart-single-blog .wstart-entry-content .wp-block-button__link {
	background-color: var(--wstart-acc) !important;
	color: #ffffff !important;
	border-radius: 999px;
	padding: 0.65rem 1.4rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

body.single-post .wstart-single-blog .wstart-entry-content .wp-block-button__link:hover,
body.single-post .wstart-single-blog .wstart-entry-content .wp-block-button__link:focus-visible {
	background-color: var(--wstart-acc-hover) !important;
	color: #ffffff !important;
	filter: none;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wstart-acc);
}

/* Partage & navigation article (single.php) */
body.single-post .wstart-single-blog .article_content_button:hover,
body.single-post .wstart-single-blog .article_content_button:focus-visible {
	border-color: var(--wstart-acc) !important;
	background-color: var(--wstart-acc) !important;
}

body.single-post .wstart-single-blog .arrow_buttons:hover > span {
	color: var(--wstart-acc) !important;
}

body.single-post .wstart-single-blog .arrow_buttons:hover svg circle {
	fill: var(--wstart-acc) !important;
	stroke: var(--wstart-acc) !important;
}

body.single-post .wstart-single-blog .arrow_buttons:hover svg path {
	stroke: #ffffff !important;
}

body.single-post .wstart-single-blog .arrow_buttons:focus-visible {
	outline: 2px solid var(--wstart-acc);
	outline-offset: 3px;
	border-radius: 4px;
}

body.single-post .wstart-single-blog .soc_svgs:hover svg path,
body.single-post .wstart-single-blog .soacial_black_links:hover svg path {
	fill: var(--wstart-acc) !important;
	transition: fill 0.2s ease;
}

body.single-post .wstart-single-blog .soacial_black_links:focus-visible {
	outline: 2px solid var(--wstart-acc);
	outline-offset: 2px;
	border-radius: 4px;
}

body.single-post .wstart-single-blog .pink_button.share_button:hover,
body.single-post .wstart-single-blog .share_button:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wstart-acc);
}

/* Colonne sticky lecture / progression — accents */
body.single-post .wstart-single-blog .fill_circle:focus-within,
body.single-post .wstart-single-blog .share_read_new_block .share_svg:focus-visible {
	outline: 2px solid var(--wstart-acc);
	outline-offset: 2px;
	border-radius: 50%;
}

/* Embeds */
body.single-post .wstart-single-blog .wstart-entry-content .wp-block-embed {
	max-width: 100%;
	margin: 1.75rem 0;
}

body.single-post .wstart-single-blog .wstart-entry-content iframe {
	max-width: 100%;
}
