/* Compact Nest article layout: header, featured images, comparison tables */

/* 1. Logo only in the header — the logo already contains the site name. */
.site-header .site-title-wrap,
.site-header .site-title,
.site-header .site-description {
	display: none !important;
}

/* 2. Featured images at their original 1200×630 ratio, uncropped (Kadence was using 2:3 + object-fit:cover). */
.single-post .post-thumbnail.kadence-thumbnail-ratio-2-3,
.archive .post-thumbnail.kadence-thumbnail-ratio-2-3,
.blog .post-thumbnail.kadence-thumbnail-ratio-2-3,
.search .post-thumbnail.kadence-thumbnail-ratio-2-3,
.home .post-thumbnail.kadence-thumbnail-ratio-2-3 {
	padding-bottom: 0 !important;
	height: auto !important;
	overflow: visible;
}

.single-post .post-thumbnail.kadence-thumbnail-ratio-2-3 .post-thumbnail-inner,
.archive .post-thumbnail.kadence-thumbnail-ratio-2-3 .post-thumbnail-inner,
.blog .post-thumbnail.kadence-thumbnail-ratio-2-3 .post-thumbnail-inner,
.search .post-thumbnail.kadence-thumbnail-ratio-2-3 .post-thumbnail-inner,
.home .post-thumbnail.kadence-thumbnail-ratio-2-3 .post-thumbnail-inner {
	position: static !important;
}

.single-post .post-thumbnail.kadence-thumbnail-ratio-2-3 img,
.archive .post-thumbnail.kadence-thumbnail-ratio-2-3 img,
.blog .post-thumbnail.kadence-thumbnail-ratio-2-3 img,
.search .post-thumbnail.kadence-thumbnail-ratio-2-3 img,
.home .post-thumbnail.kadence-thumbnail-ratio-2-3 img {
	position: static !important;
	width: 100% !important;
	height: auto !important;
	max-width: 100%;
	object-fit: contain !important;
	object-position: center center;
}

/* 3. Comparison tables — readable on desktop, stacked cards on small screens. */
.entry-content .wp-block-table table,
.entry-content table.cn-compare-table {
	table-layout: auto;
	width: 100%;
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: none;
	border-collapse: collapse;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td,
.entry-content table.cn-compare-table th,
.entry-content table.cn-compare-table td {
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: none;
	vertical-align: top;
}

.entry-content .wp-block-table .has-fixed-layout,
.entry-content table.has-fixed-layout {
	table-layout: auto;
}

.entry-content .cn-shop-btn {
	display: inline-block;
	background: #BE7151;
	color: #FEF9F3 !important;
	text-decoration: none !important;
	padding: 0.5rem 0.9rem;
	border-radius: 6px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	text-align: center;
}

.entry-content .cn-shop-btn:hover,
.entry-content .cn-shop-btn:focus {
	background: #333437;
	color: #FEF9F3 !important;
}

.entry-content .cn-lp-stamp,
.entry-content .cn-lp-stamp-inline {
	display: block;
	font-size: 0.75em;
	line-height: 1.3;
	opacity: 0.8;
	font-weight: 400;
	white-space: normal;
	word-break: normal;
}

.entry-content .cn-article-disclosure {
	margin-top: 1.75rem;
	font-size: 0.95em;
	opacity: 0.9;
}

@media (max-width: 700px) {
	.entry-content .wp-block-table,
	.entry-content .wp-block-table table,
	.entry-content table.cn-compare-table {
		display: block;
		width: 100%;
		overflow: visible;
		table-layout: auto;
	}

	.entry-content .wp-block-table thead,
	.entry-content table.cn-compare-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		border: 0;
	}

	.entry-content .wp-block-table tbody,
	.entry-content table.cn-compare-table tbody {
		display: block;
		width: 100%;
	}

	.entry-content .wp-block-table tr,
	.entry-content table.cn-compare-table tr {
		display: block;
		width: 100%;
		box-sizing: border-box;
		margin: 0 0 1rem;
		padding: 0.85rem 1rem 0.7rem;
		background: #FEF9F3;
		border: 1px solid #e4ddd4;
		border-radius: 12px;
	}

	.entry-content .wp-block-table td,
	.entry-content table.cn-compare-table td {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: 0.75rem;
		width: 100%;
		box-sizing: border-box;
		padding: 0.45rem 0;
		border: 0;
		border-bottom: 1px solid #eee8e0;
		word-break: normal;
		overflow-wrap: break-word;
		hyphens: none;
	}

	.entry-content .wp-block-table td:last-child,
	.entry-content table.cn-compare-table td:last-child {
		border-bottom: 0;
	}

	.entry-content .wp-block-table td::before,
	.entry-content table.cn-compare-table td::before {
		content: attr(data-label);
		flex: 0 0 36%;
		max-width: 36%;
		font-weight: 600;
		color: #333437;
		word-break: normal;
		overflow-wrap: break-word;
	}

	.entry-content .wp-block-table td[data-label="Shop"],
	.entry-content table.cn-compare-table td[data-label="Shop"] {
		display: block;
		padding-top: 0.75rem;
	}

	.entry-content .wp-block-table td[data-label="Shop"]::before,
	.entry-content table.cn-compare-table td[data-label="Shop"]::before {
		display: none;
	}

	.entry-content .wp-block-table td[data-label="Shop"] .cn-shop-btn,
	.entry-content table.cn-compare-table td[data-label="Shop"] .cn-shop-btn {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
}


/* Featured image sits above the article, not tucked behind it (Kadence "behind" uses a negative margin that covers the bottom of the 1200×630 cover). */
.single-post .post-thumbnail.kadence-thumbnail-position-behind {
	margin-bottom: var(--global-md-spacing, 2rem) !important;
	z-index: auto;
}
.single-post .kadence-thumbnail-position-behind + .entry,
.single-post .kadence-thumbnail-position-behind + article.entry {
	position: relative;
	z-index: auto;
}
