/**
 * Hot House — single blog post (Theme Builder shortcodes)
 * body.hh-single-post · .hh-post-hero-v2 · .hh-post-article
 */

body.hh-single-post {
	--hh-post-ink: #0d1117;
	--hh-post-muted: #66707c;
	--hh-post-line: #e2e6ea;
	--hh-post-accent: #061d33;
	--hh-post-surface: #f4f6f8;
}

body.hh-single-post .elementor-location-single {
	overflow-x: clip;
}

.hh-e-post-hero-root,
.hh-e-post-body-root,
.hh-e-post-footer-root {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Hero — full bleed featured image */
.hh-post-hero-v2 {
	position: relative;
	min-height: min(52vh, 520px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: var(--hh-post-accent);
	overflow: hidden;
}

.hh-post-hero-v2__backdrop {
	position: absolute;
	inset: 0;
	background-image: var(--hh-post-hero-bg);
	background-size: cover;
	background-position: center;
}

.hh-post-hero-v2__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		115deg,
		rgba(255, 255, 255, 0.1) 0%,
		rgba(6, 29, 51, 0.4) 50%,
		rgba(6, 29, 51, 0.78) 100%
	);
}

.hh-post-hero-v2__inner {
	position: relative;
	z-index: 2;
	width: min(100% - 2rem, 1200px);
	margin-inline: auto;
	padding: 4rem 0 2rem;
}

.hh-post-hero-bubble.hh-hero-bubble {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(244, 246, 248, 0.9));
	backdrop-filter: blur(18px) saturate(1.1);
	-webkit-backdrop-filter: blur(18px) saturate(1.1);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-inline-start: 4px solid var(--hh-post-accent);
	box-shadow: 0 28px 72px rgba(6, 29, 51, 0.2);
	border-radius: 4px;
	padding: 1.75rem 1.65rem 1.5rem;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hh-post-breadcrumbs {
	font-size: 0.8rem;
	color: var(--hh-post-muted);
	line-height: 1.5;
}

.hh-post-breadcrumbs a {
	color: var(--hh-post-muted);
	text-decoration: none;
}

.hh-post-breadcrumbs a:hover {
	color: var(--hh-post-accent);
}

.hh-post-breadcrumbs__current {
	color: var(--hh-post-ink);
	font-weight: 500;
}

.hh-post-hero-eyebrow {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hh-post-muted);
}

.hh-post-title {
	margin: 0;
	font-size: clamp(1.65rem, 3.5vw, 2.25rem);
	font-weight: 600;
	line-height: 1.2;
	color: var(--hh-post-ink);
}

.hh-post-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.hh-post-meta-row__date {
	font-size: 0.82rem;
	color: var(--hh-post-muted);
}

.hh-post-meta-row__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.hh-post-chip {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.2rem 0.55rem;
	border: 1px solid var(--hh-post-line);
	border-radius: 2px;
	color: var(--hh-post-accent);
	text-decoration: none;
	background: #fff;
}

.hh-post-chip:hover {
	border-color: var(--hh-post-accent);
	background: var(--hh-post-surface);
}

.hh-post-lead {
	font-size: 1.08rem;
	line-height: 1.65;
	color: var(--hh-post-muted);
	border-inline-start: 3px solid var(--hh-post-accent);
	padding-inline-start: 1rem;
	margin-block: 0.25rem 0;
}

.hh-post-lead p {
	margin: 0;
}

.hh-post-hero-v2__trust {
	position: relative;
	z-index: 2;
	background: #171a1f;
	border-block: 1px solid #2a3038;
	text-align: center;
	padding: 0.8rem 1rem;
}

.hh-post-hero-v2__trust p {
	margin: 0;
	font-size: 0.8rem;
	color: #c5cad0;
}

/* Article body — SEO typography */
.hh-post-article-wrap {
	background: #fff;
	padding: 3rem 1.5rem 2rem;
}

.hh-post-article {
	max-width: 720px;
	margin-inline: auto;
	color: var(--hh-post-ink);
	font-size: 1.02rem;
	line-height: 1.75;
}

.hh-post-article > .hh-guide-intro {
	font-size: 1.05rem;
	color: var(--hh-post-muted);
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--hh-post-line);
}

.hh-post-article h2,
.hh-post-article h2.wp-block-heading {
	font-size: 1.45rem;
	font-weight: 600;
	color: var(--hh-post-accent);
	margin: 2.25rem 0 1rem;
	line-height: 1.3;
}

.hh-post-article h3,
.hh-post-article h3.wp-block-heading {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--hh-post-ink);
	margin: 1.75rem 0 0.75rem;
}

.hh-post-article p {
	margin: 0 0 1rem;
}

.hh-post-article ul,
.hh-post-article ol {
	margin: 0 0 1.25rem;
	padding-inline-start: 1.35rem;
}

.hh-post-article li {
	margin-bottom: 0.4rem;
}

.hh-post-article .wp-block-table,
.hh-post-article figure.wp-block-table {
	margin: 1.5rem 0;
	overflow-x: auto;
}

.hh-post-article table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	background: #fff;
	border: 1px solid var(--hh-post-line);
	border-radius: 4px;
	overflow: hidden;
}

.hh-post-article table th,
.hh-post-article table td {
	padding: 0.75rem 1rem;
	border: 1px solid var(--hh-post-line);
	text-align: start;
	vertical-align: top;
}

/* Header row — navy + white */
.hh-post-article table thead th {
	background: var(--hh-post-accent) !important;
	color: #fff !important;
	font-weight: 600;
}

/* First column labels — light bg + dark text (never white on grey) */
.hh-post-article table tbody th {
	background: var(--hh-post-surface) !important;
	color: var(--hh-post-accent) !important;
	font-weight: 600;
	white-space: nowrap;
}

.hh-post-article table tbody td {
	background: #fff;
	color: var(--hh-post-ink) !important;
}

.hh-post-article table tbody tr:nth-child(even) td {
	background: #f9fafb;
}

/* Legacy: table without thead */
.hh-post-article table > tbody > tr:first-child > th {
	background: var(--hh-post-accent) !important;
	color: #fff !important;
}

.hh-post-article table > tbody > tr:not(:first-child) > th {
	background: var(--hh-post-surface) !important;
	color: var(--hh-post-accent) !important;
}

.hh-post-article .hh-guide-callout,
.hh-post-article .hh-guide-callout--safety {
	background: var(--hh-post-surface);
	border-inline-start: 3px solid var(--hh-post-accent);
	padding: 1rem 1.25rem;
	margin: 2rem 0;
	border-radius: 2px;
}

.hh-post-article .hh-guide-links {
	list-style: none;
	padding: 0;
	margin: 1rem 0 2rem;
}

.hh-post-article .hh-guide-links a {
	color: var(--hh-post-accent);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid var(--hh-post-line);
}

/* Footer — related + CTA */
.hh-post-footer {
	background: var(--hh-post-surface);
	padding: 3rem 1.5rem 4rem;
}

.hh-post-related {
	max-width: 1140px;
	margin: 0 auto 3rem;
}

.hh-post-related__title {
	font-size: 1.35rem;
	color: var(--hh-post-accent);
	margin: 0 0 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--hh-post-accent);
	display: inline-block;
}

.hh-post-related__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 64rem) {
	.hh-post-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 40rem) {
	.hh-post-related__grid {
		grid-template-columns: 1fr;
	}
}

.hh-post-related-card {
	background: #fff;
	border: 1px solid var(--hh-post-line);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(13, 17, 23, 0.05);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.hh-post-related-card__media {
	display: block;
	line-height: 0;
}

.hh-post-related-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.hh-post-related-card__body {
	padding: 1.15rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
}

.hh-post-related-card__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.hh-post-related-card__title a {
	color: var(--hh-post-ink);
	text-decoration: none;
}

.hh-post-related-card__more {
	margin-top: auto;
	display: inline-flex;
	justify-content: center;
	padding: 0.6rem 1rem;
	background: var(--hh-post-accent);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
}

.hh-post-end-cta {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	background: var(--hh-post-accent);
	color: #fff !important;
	padding: 2.5rem 2rem;
	border-radius: 6px;
}

.hh-post-end-cta__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	color: #fff !important;
}

.hh-post-end-cta__text {
	margin: 0 0 1.5rem;
	color: rgba(255, 255, 255, 0.92) !important;
	line-height: 1.6;
}

.hh-post-article .hh-guide-cta {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	background: var(--hh-post-accent);
	border-radius: 6px;
	text-align: center;
}

.hh-post-article .hh-guide-cta a {
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.hh-post-article .hh-guide-cta a:hover {
	border-bottom-color: #fff;
}

.hh-post-end-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.hh-post-end-cta .hh-btn--navy {
	background: #fff;
	color: var(--hh-post-accent) !important;
	border-color: #fff;
}

.hh-post-end-cta .hh-btn--secondary {
	background: transparent;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.5);
}

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

.hh-post-hub-links {
	max-width: 1140px;
	margin: 0 auto 3rem;
	padding: 0;
}

.hh-post-hub-links__title {
	font-size: 1.35rem;
	color: var(--hh-post-accent);
	margin: 0 0 1.25rem;
}

.hh-post-hub-links .hh-trust-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

@media (max-width: 64rem) {
	.hh-post-hub-links .hh-trust-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.hh-guide-visual-blocks .hh-compare-col--link,
.hh-guide-visual-blocks .hh-icon-card--link {
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hh-guide-visual-blocks .hh-compare-col--link:hover,
.hh-guide-visual-blocks .hh-icon-card--link:hover {
	border-color: var(--hh-post-accent);
	box-shadow: 0 8px 24px rgba(6, 29, 51, 0.1);
	transform: translateY(-2px);
}

.hh-compare-col__cta,
.hh-icon-card__cta {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hh-post-accent);
}

.hh-callout--link .hh-callout__link {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	text-decoration: none;
	color: inherit;
}

.hh-callout__cta {
	display: inline-block;
	margin-top: 0.5rem;
	font-weight: 600;
	color: var(--hh-post-accent);
}

/* Hide duplicate theme title when using our template */
body.hh-single-post .elementor-location-single .page-header,
body.hh-single-post .elementor-location-single .entry-header:not(.hh-post-hero-bubble) {
	display: none !important;
}
