/**
 * Hot House — single post / guide in the home-v4 design language (2026-10-10).
 * Restyles the existing markup only (class-hh-single-post.php + hh-guide-article content),
 * so published and scheduled posts render without edits. Tokens: hh-v2-tokens.css.
 * Loaded last on single posts; rollback: option hh_v2_design_unify = 0.
 */

body.hh-single-post {
	--hh-post-ink: var(--hh4-ink);
	--hh-post-muted: var(--hh4-muted);
	--hh-post-line: var(--hh4-line);
	--hh-post-accent: var(--hh4-red);
	--hh-post-surface: var(--hh4-bg-soft);
	background: var(--hh4-bg);
}

/* ---------- Hero: text + rounded photo, no overlap card ---------- */
body.hh-single-post .hh-post-hero-v2 {
	display: grid !important;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: clamp(1.25rem, 3vw, 2.75rem);
	align-items: center;
	width: min(100% - 2rem, var(--hh4-container));
	min-height: 0 !important;
	margin: clamp(1.25rem, 3vw, 2.5rem) auto 0 !important;
	padding: 0 !important;
	background: transparent !important;
	overflow: visible !important;
}

body.hh-single-post .hh-post-hero-v2__overlay {
	display: none !important;
}

body.hh-single-post .hh-post-hero-v2__backdrop {
	position: relative !important;
	inset: auto !important;
	order: 2;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--hh4-radius);
	background-image: var(--hh-post-hero-bg);
	background-size: cover;
	background-position: center;
	box-shadow: var(--hh4-shadow);
}

/* No featured image (e.g. some installation posts): text only, full width. */
body.hh-single-post .hh-post-hero-v2:not([style*="--hh-post-hero-bg"]) {
	grid-template-columns: 1fr;
}

body.hh-single-post .hh-post-hero-v2:not([style*="--hh-post-hero-bg"]) .hh-post-hero-v2__backdrop {
	display: none !important;
}

body.hh-single-post .hh-post-hero-v2:not([style*="--hh-post-hero-bg"]) .hh-post-hero-v2__inner {
	max-width: 820px !important;
}

body.hh-single-post .hh-post-hero-v2__inner {
	order: 1;
	position: relative;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.hh-single-post .hh-post-hero-bubble.hh-hero-bubble,
body.hh-single-post .hh-post-hero-bubble {
	max-width: none !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	gap: 0.85rem;
}

body.hh-single-post .hh-post-breadcrumbs,
body.hh-single-post .hh-post-breadcrumbs a {
	font-family: var(--hh4-font);
	font-size: 0.8125rem;
	color: var(--hh4-muted);
}

body.hh-single-post .hh-post-breadcrumbs a:hover {
	color: var(--hh4-red);
}

body.hh-single-post .hh-post-breadcrumbs__current {
	color: var(--hh4-text);
}

body.hh-single-post .hh-post-hero-eyebrow {
	align-self: flex-start;
	display: inline-flex;
	padding: 0.3rem 0.8rem;
	border-radius: var(--hh4-radius-pill);
	background: var(--hh4-red-soft);
	color: var(--hh4-red) !important;
	font-family: var(--hh4-font);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
}

body.hh-single-post .hh-post-hero-bubble::before,
body.hh-single-post .hh-post-hero-bubble::after,
body.hh-single-post .hh-post-hero-eyebrow::before,
body.hh-single-post .hh-post-hero-eyebrow::after,
body.hh-single-post .hh-post-title::before,
body.hh-single-post .hh-post-title::after {
	display: none !important;
	content: none !important;
}

body.hh-single-post .hh-post-hero-v2 .hh-post-title,
body.hh-single-post h1.hh-post-title {
	margin: 0 !important;
	font-family: var(--hh4-font) !important;
	font-size: var(--hh4-h1) !important;
	font-weight: 800 !important;
	font-style: normal !important;
	line-height: 1.18 !important;
	letter-spacing: -0.01em !important;
	color: var(--hh4-ink) !important;
	text-decoration: none !important;
	border: 0 !important;
	background: none !important;
	padding: 0 !important;
}

body.hh-single-post .hh-post-meta-row__date {
	font-family: var(--hh4-font);
	font-size: 0.8125rem;
	color: var(--hh4-muted);
}

body.hh-single-post .hh-post-chip {
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--hh4-line);
	border-radius: var(--hh4-radius-pill);
	background: var(--hh4-bg);
	color: var(--hh4-anthracite) !important;
	font-family: var(--hh4-font);
	font-size: 0.78rem;
	font-weight: 600;
}

body.hh-single-post .hh-post-chip:hover {
	border-color: var(--hh4-red);
	background: var(--hh4-bg);
	color: var(--hh4-red) !important;
}

body.hh-single-post .hh-post-lead {
	margin: 0.25rem 0 0;
	padding-inline-start: 1rem;
	border-inline-start: 3px solid var(--hh4-red);
	font-family: var(--hh4-font);
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--hh4-text);
}

body.hh-single-post .hh-post-hero-v2__trust {
	grid-column: 1 / -1;
	order: 3;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	text-align: start;
}

body.hh-single-post .hh-post-hero-v2__trust p {
	font-family: var(--hh4-font);
	font-size: 0.8125rem !important;
	color: var(--hh4-muted) !important;
}

/* ---------- Article body ---------- */
body.hh-single-post .hh-post-article-wrap {
	background: var(--hh4-bg) !important;
	padding: clamp(1.75rem, 4vw, 2.75rem) 1rem clamp(2rem, 4vw, 3rem) !important;
}

body.hh-single-post .hh-post-article {
	max-width: 760px;
	margin-inline: auto;
	font-family: var(--hh4-font);
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--hh4-text);
}

body.hh-single-post .hh-post-article h2,
body.hh-single-post .hh-post-article h2.wp-block-heading {
	margin: 2.25rem 0 0.85rem !important;
	font-family: var(--hh4-font) !important;
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem) !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	color: var(--hh4-ink) !important;
	letter-spacing: -0.005em;
	border: 0 !important;
	padding: 0 !important;
}

body.hh-single-post .hh-post-article h3,
body.hh-single-post .hh-post-article h3.wp-block-heading {
	margin: 1.6rem 0 0.6rem !important;
	font-family: var(--hh4-font) !important;
	font-size: var(--hh4-h3) !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	color: var(--hh4-ink) !important;
}

body.hh-single-post .hh-post-article p,
body.hh-single-post .hh-post-article li {
	font-family: var(--hh4-font);
	color: var(--hh4-text);
}

body.hh-single-post .hh-post-article a:not(.hh-btn):not([class*="hh-v2-btn"]) {
	color: var(--hh4-red);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* In-content header repeats the hero (same title + category line): keep only its lead. */
body.hh-single-post .hh-guide-article__header {
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
	background: none;
}

body.hh-single-post .hh-post-hero-v2 ~ .hh-post-article-wrap .hh-guide-article__header > h1:first-of-type,
body.hh-single-post .hh-post-hero-v2 ~ .hh-post-article-wrap .hh-guide-article__header > h2:first-of-type,
body.hh-single-post .hh-post-hero-v2 ~ .hh-post-article-wrap .hh-guide-article__header > .hh-guide-article__eyebrow {
	display: none !important;
}

body.hh-single-post .hh-guide-article__eyebrow {
	display: inline-flex;
	padding: 0.25rem 0.75rem;
	border-radius: var(--hh4-radius-pill);
	background: var(--hh4-red-soft);
	color: var(--hh4-red);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
}

body.hh-single-post .hh-guide-article__lead {
	font-size: 1.1rem;
	color: var(--hh4-text);
}

/* Figures: rounded like home cards. Inline sizes (vertical YouTube 9:16, max 360px) stay as authored. */
body.hh-single-post .hh-guide-article__figure,
body.hh-single-post .hh-post-article figure {
	margin-block: 1.5rem 2rem;
}

body.hh-single-post .hh-guide-article__figure img,
body.hh-single-post .hh-post-article figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hh4-radius);
}

body.hh-single-post .hh-guide-article__figure iframe {
	display: block;
	max-width: 100%;
	border: 0;
}

body.hh-single-post .hh-guide-article__figure figcaption,
body.hh-single-post .hh-post-article figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--hh4-muted);
	text-align: center;
}

/* Tables */
body.hh-single-post .hh-post-article table {
	border-radius: var(--hh4-radius-md);
	overflow: hidden;
	border: 1px solid var(--hh4-line);
}

body.hh-single-post .hh-post-article table tbody th,
body.hh-single-post .hh-post-article table tr > th {
	background: var(--hh4-bg-soft) !important;
	color: var(--hh4-ink) !important;
	border-color: var(--hh4-line) !important;
}

body.hh-single-post .hh-post-article table thead th,
body.hh-single-post .hh-post-article table > tbody > tr:first-child > th {
	background: var(--hh4-anthracite) !important;
	color: #fff !important;
}

/* In-article CTA + callouts */
body.hh-single-post .hh-post-article .hh-guide-cta {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--hh4-line);
	border-top: 3px solid var(--hh4-red);
	border-radius: var(--hh4-radius);
	background: var(--hh4-bg-soft) !important;
	color: var(--hh4-text);
	text-align: center;
}

body.hh-single-post .hh-post-article .hh-guide-cta a {
	color: var(--hh4-red) !important;
	border-bottom-color: rgba(217, 31, 31, 0.35) !important;
}

body.hh-single-post .hh-post-article .hh-guide-callout--safety {
	border-radius: var(--hh4-radius-md);
}

/* FAQ */
body.hh-single-post .hh-guide-article__faq {
	margin-top: 2.5rem;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border: 1px solid var(--hh4-line);
	border-top: 3px solid var(--hh4-red);
	border-radius: var(--hh4-radius);
	background: var(--hh4-bg);
	box-shadow: var(--hh4-shadow);
}

body.hh-single-post .hh-guide-article__faq h2 {
	margin-top: 0 !important;
}

body.hh-single-post .hh-guide-article__faq h3 {
	margin: 1.25rem 0 0.35rem !important;
	padding-top: 1.1rem !important;
	border-top: 1px solid var(--hh4-line) !important;
}

body.hh-single-post .hh-guide-article__faq h2 + h3 {
	padding-top: 0 !important;
	border-top: 0 !important;
}

/* ---------- Footer: related, explore, CTA ---------- */
body.hh-single-post .hh-post-footer {
	background: var(--hh4-bg-soft) !important;
	padding: var(--hh4-section) 1rem !important;
}

body.hh-single-post .hh-post-related,
body.hh-single-post .hh-post-hub-links {
	max-width: var(--hh4-container) !important;
	margin: 0 auto var(--hh4-section) !important;
}

body.hh-single-post .hh-post-related__title,
body.hh-single-post .hh-post-hub-links__title {
	display: block !important;
	margin: 0 0 1.25rem !important;
	padding: 0 !important;
	border: 0 !important;
	font-family: var(--hh4-font) !important;
	font-size: var(--hh4-h2) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	color: var(--hh4-ink) !important;
	text-align: start;
}

body.hh-single-post .hh-post-related__title::after,
body.hh-single-post .hh-post-hub-links__title::after,
body.hh-single-post .hh-post-related__title::before,
body.hh-single-post .hh-post-hub-links__title::before {
	display: none !important;
	content: none !important;
}

body.hh-single-post .hh-post-related__grid {
	gap: 1.25rem !important;
}

body.hh-single-post .hh-post-related-card {
	border: 1px solid var(--hh4-line) !important;
	border-top: 3px solid var(--hh4-red) !important;
	border-radius: var(--hh4-radius) !important;
	background: var(--hh4-bg) !important;
	box-shadow: var(--hh4-shadow) !important;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.hh-single-post .hh-post-related-card:hover {
	box-shadow: var(--hh4-shadow-hover) !important;
	transform: translateY(-2px);
}

body.hh-single-post .hh-post-related-card__media img {
	aspect-ratio: 16 / 10 !important;
	height: auto !important;
	border-radius: 0 !important;
}

body.hh-single-post .hh-post-related-card__body {
	padding: 1rem 1.15rem 1.15rem !important;
	gap: 0.6rem !important;
}

body.hh-single-post .hh-post-related-card__title,
body.hh-single-post .hh-post-related-card__title a {
	margin: 0 !important;
	font-family: var(--hh4-font) !important;
	font-size: var(--hh4-h3) !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	color: var(--hh4-ink) !important;
	text-decoration: none !important;
}

body.hh-single-post .hh-post-related-card__title {
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: 2.8em;
}

body.hh-single-post .hh-post-related-card__more {
	align-self: flex-start;
	margin-top: auto !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--hh4-red) !important;
	font-family: var(--hh4-font);
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	min-height: 0 !important;
	width: auto !important;
}

body.hh-single-post .hh-post-related-card__more::after {
	content: " ←";
}

html:lang(en) body.hh-single-post .hh-post-related-card__more::after,
html:lang(ru) body.hh-single-post .hh-post-related-card__more::after {
	content: " →";
}

body.hh-single-post .hh-post-related-card__more:hover {
	color: var(--hh4-red-hover) !important;
	text-decoration: underline !important;
}

/* "המשיכו לחקור" */
body.hh-single-post .hh-post-hub-links .hh-trust-cards {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
	gap: 1rem !important;
}

body.hh-single-post .hh-post-hub-links .hh-trust-card {
	padding: 1.1rem 1.15rem !important;
	border: 1px solid var(--hh4-line) !important;
	border-top: 3px solid var(--hh4-red) !important;
	border-radius: var(--hh4-radius) !important;
	background: var(--hh4-bg) !important;
	box-shadow: var(--hh4-shadow) !important;
}

body.hh-single-post .hh-post-hub-links .hh-trust-card:hover {
	border-color: var(--hh4-line) !important;
	border-top-color: var(--hh4-red) !important;
	box-shadow: var(--hh4-shadow-hover) !important;
}

body.hh-single-post .hh-post-hub-links .hh-trust-card__title {
	font-family: var(--hh4-font);
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: var(--hh4-ink) !important;
}

body.hh-single-post .hh-post-hub-links .hh-trust-card__label {
	font-family: var(--hh4-font);
	color: var(--hh4-muted) !important;
}

body.hh-single-post .hh-post-hub-links .hh-trust-card__cta {
	color: var(--hh4-red) !important;
	font-weight: 700;
}

/* End CTA: brand dark, WhatsApp green, phone */
body.hh-single-post .hh-post-end-cta {
	max-width: var(--hh4-container) !important;
	margin: 0 auto !important;
	padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem) !important;
	border-radius: var(--hh4-radius) !important;
	border-top: 3px solid var(--hh4-red);
	background: var(--hh4-anthracite) !important;
	color: #fff !important;
}

body.hh-single-post .hh-post-end-cta__title {
	font-family: var(--hh4-font) !important;
	font-size: var(--hh4-h2) !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	color: #fff !important;
}

body.hh-single-post .hh-post-end-cta__text {
	font-family: var(--hh4-font);
	color: rgba(255, 255, 255, 0.82) !important;
}

body.hh-single-post .hh-post-end-cta .hh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.7rem 1.35rem !important;
	border-radius: var(--hh4-radius-md) !important;
	font-family: var(--hh4-font);
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

body.hh-single-post .hh-post-end-cta .hh-btn--navy {
	border: 1px solid var(--hh4-wa) !important;
	background: var(--hh4-wa) !important;
	color: var(--hh4-wa-ink) !important;
}

body.hh-single-post .hh-post-end-cta .hh-btn--phone {
	border: 1px solid var(--hh4-red) !important;
	background: var(--hh4-red) !important;
	color: #fff !important;
	direction: ltr;
	unicode-bidi: isolate;
}

body.hh-single-post .hh-post-end-cta .hh-btn--secondary,
body.hh-single-post .hh-post-end-cta .hh-btn--ghost {
	border: 1px solid rgba(255, 255, 255, 0.4) !important;
	background: transparent !important;
	color: #fff !important;
}

body.hh-single-post .hh-post-end-cta .hh-btn--secondary:hover,
body.hh-single-post .hh-post-end-cta .hh-btn--ghost:hover {
	border-color: #fff !important;
}

/* EN/RU: the template hard-codes dir="rtl" on hero/footer wrappers. */
html:lang(en) body.hh-single-post .hh-post-hero-v2,
html:lang(ru) body.hh-single-post .hh-post-hero-v2,
html:lang(en) body.hh-single-post .hh-post-footer,
html:lang(ru) body.hh-single-post .hh-post-footer,
html:lang(en) body.hh-single-post .hh-post-article-wrap,
html:lang(ru) body.hh-single-post .hh-post-article-wrap {
	direction: ltr;
	text-align: left;
}

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
	body.hh-single-post .hh-post-hero-v2 {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	body.hh-single-post .hh-post-hero-v2__backdrop {
		aspect-ratio: 16 / 10;
	}

	body.hh-single-post .hh-post-hero-v2__trust {
		display: none;
	}
}

@media (max-width: 40rem) {
	body.hh-single-post .hh-post-end-cta__actions {
		flex-direction: column;
		align-items: stretch;
	}
}

/* Comparison tables (.hh-compare-table, its own legacy navy header rule). */
html body.hh-single-post .hh-post-article table.hh-compare-table thead th,
html body.hh-single-post .hh-post-article table.hh-compare-table th[scope="col"],
html body.hh-single-post.hh-guide-v4-active .hh-post-article table.hh-guide-v4__table thead th,
html body.hh-single-post .hh-post-article .hh-guide-v4__table-wrap table thead th {
	background: var(--hh4-anthracite) !important;
	color: #fff !important;
}

html body.hh-single-post .hh-post-article table.hh-compare-table th[scope="row"],
html body.hh-single-post.hh-guide-v4-active .hh-post-article table.hh-guide-v4__table tbody th {
	background: var(--hh4-bg-soft) !important;
	color: var(--hh4-ink) !important;
}
