/* =============================================
   SINGLE BLOG POST
   ============================================= */

/* Воздух между контентом поста и блоком Related articles */
.single-post .ts-blog {
	padding-top: 60px;
}

/* Hero модификатор для поста */
.ts-hero--post .ts-hero__inner {
	min-height: 380px;
	background: linear-gradient(104deg, #e4f6fb 4%, #a1c861 143%);
}

.ts-hero--post .ts-hero__content {
	width: 55%;
	gap: 22px;
}

.ts-hero--post .ts-hero__title {
	font-size: 38px;
	line-height: 1.2;
}

.ts-hero--post .ts-hero__visual {
	display: flex;
	align-items: stretch;
	padding: 20px 20px 20px 0;
}

.ts-hero--post .ts-hero__visual picture {
	display: flex;
	width: 100%;
	border-radius: 20px;
	overflow: hidden;
}

.ts-hero--post .ts-hero__photo {
	width: 100%;
	height: 100%;
	max-height: 360px;
	object-fit: cover;
	border-radius: 20px;
	margin-right: 0;
}

/* Мета-блок (категория + дата + reading time + автор) */
.ts-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
	color: var(--ts-dark);
}

.ts-post-meta__cat {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	background: #fff;
	color: var(--ts-cyan);
	border-radius: 70px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: -0.1px;
	transition: box-shadow .2s, transform .15s;
}

.ts-post-meta__cat:hover {
	box-shadow: 0 4px 12px rgba(25,156,213,.2);
	transform: translateY(-1px);
}

.ts-post-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ts-dark);
	opacity: .8;
	letter-spacing: -0.1px;
}

.ts-post-meta__item svg {
	flex-shrink: 0;
	opacity: .85;
}

/* =============================================
   POST CONTENT — Gutenberg-блоки
   ============================================= */
.ts-post-content {
	font-size: 17px;
	line-height: 1.7;
}

.ts-post-content > * + * {
	margin-top: 18px;
}

.ts-post-content h2 {
	font-size: 28px;
	font-weight: 600;
	color: var(--ts-dark);
	line-height: 1.25;
	margin: 0 0 20px;
	padding-top: 30px;
	scroll-margin-top: 100px;
}

.ts-post-content h2 strong,
.ts-post-content h3 strong,
.ts-post-content h4 strong {
	font-weight: 600;
}

.ts-post-content > h2:first-child {
	padding-top: 0;
}

.ts-post-content h3 {
	font-size: 22px;
	font-weight: 600;
	color: var(--ts-dark);
	line-height: 1.3;
	margin-top: 30px;
	margin-bottom: 12px;
}

.ts-post-content h4 {
	font-size: 19px;
	font-weight: 600;
	color: var(--ts-dark);
	margin-top: 24px;
	margin-bottom: 10px;
}

.ts-post-content p {
	color: #344956;
	margin: 0;
	padding: 8px 0;
}

.ts-post-content a {
	color: var(--ts-cyan);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color .15s;
}

.ts-post-content a:hover {
	color: var(--ts-dark);
}

.ts-post-content strong {
	color: var(--ts-dark);
	font-weight: 600;
}

.ts-post-content ul,
.ts-post-content ol {
	margin: 0;
	padding-left: 22px;
	color: #344956;
}

.ts-post-content li {
	margin-bottom: 8px;
}

.ts-post-content li::marker {
	color: var(--ts-cyan);
}

.ts-post-content blockquote {
	margin: 28px 0;
	padding: 22px 28px;
	background: #f5fafc;
	border-left: 4px solid var(--ts-cyan);
	border-radius: 0 14px 14px 0;
	font-size: 18px;
	font-weight: 500;
	color: var(--ts-dark);
	font-style: italic;
}

.ts-post-content blockquote p {
	color: var(--ts-dark);
}

.ts-post-content figure {
	margin: 28px 0;
}

.ts-post-content img,
.ts-post-content figure img,
.ts-post-content .wp-block-image img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	display: block;
}

.ts-post-content figcaption,
.ts-post-content .wp-block-image figcaption {
	margin-top: 10px;
	font-size: 14px;
	color: #6c7d86;
	text-align: center;
	font-style: italic;
}

.ts-post-content hr,
.ts-post-content .wp-block-separator {
	border: 0;
	height: 1px;
	background: #e6eef2;
	margin: 36px 0;
}

.ts-post-content code {
	background: #f5fafc;
	padding: 2px 7px;
	border-radius: 5px;
	font-size: 14px;
	color: var(--ts-dark);
}

.ts-post-content pre {
	background: var(--ts-dark);
	color: #fff;
	padding: 20px;
	border-radius: 12px;
	overflow-x: auto;
	font-size: 14px;
	line-height: 1.6;
}

.ts-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 15px;
}

.ts-post-content table th,
.ts-post-content table td {
	padding: 12px 14px;
	border-bottom: 1px solid #e6eef2;
	text-align: left;
}

.ts-post-content table th {
	font-weight: 700;
	color: var(--ts-dark);
	background: #f5fafc;
}

.ts-post-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	padding: 12px 24px;
	background: var(--ts-cyan);
	color: #fff;
	border-radius: 70px;
	font-weight: 600;
	text-decoration: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
	.ts-hero--post .ts-hero__content {
		width: 100%;
		max-width: 100%;
	}

	.ts-hero--post .ts-hero__title {
		font-size: 30px;
	}

	.ts-hero--post .ts-hero__visual {
		display: none;
	}

	.ts-post-content {
		font-size: 16px;
	}

	.ts-post-content h2 {
		font-size: 24px;
	}

	.ts-post-content h3 {
		font-size: 19px;
	}
}

@media (max-width: 640px) {
	.ts-hero--post .ts-hero__title {
		font-size: 26px;
	}

	.ts-post-meta {
		font-size: 13px;
		gap: 6px 12px;
	}

	.ts-post-meta__cat {
		font-size: 12px;
		padding: 5px 12px;
	}
}
