/**
 * 1to30 Blog — single posts + blog index, matching homepage ([1to30_content_main]).
 *
 * Shell matches homepage / header:
 *   outer pad 40px (20px ≤860px) → inner wrap max 1240px
 */

body.single-post,
body.blog {
	background: #FBFAF7;
	color: #161513;
}

/* Outer shell = homepage .o30main-pad / header .o30v3-header-pad */
body.single-post .site-main,
body.blog .site-main {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	-webkit-font-smoothing: antialiased;
	width: 100%;
	max-width: none !important;
	margin: 0;
	padding-top: 48px;
	padding-bottom: 64px;
	padding-left: 40px !important;
	padding-right: 40px !important;
	padding-inline-start: 40px !important;
	padding-inline-end: 40px !important;
	box-sizing: border-box;
}

/* Inner wrap = homepage .o30main-wrap / .o30v3-wrap */
body.single-post .page-header,
body.single-post .page-content {
	width: 100%;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
	padding-inline: 0;
	box-sizing: border-box;
}

/* Blog index: same reading column as single posts (~760px). */
body.blog .page-header,
body.blog .page-content {
	width: 100%;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
	padding-inline: 0;
	box-sizing: border-box;
}

body.single-post .page-header,
body.blog .page-header {
	margin-bottom: 32px;
}

body.single-post .page-header .entry-title,
body.blog .page-header .entry-title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 800;
	font-size: 42px;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: #161513;
	margin: 0;
	width: 100%;
	max-width: none;
}

/*
 * Reading column: ~60–75 chars/line → ~760px for body text.
 * Outer shell stays 1240px so images/tables can break out full-bleed.
 */
body.single-post .page-header .entry-title {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

body.single-post .elementor-widget-text-editor .elementor-widget-container > :not(figure):not(.wp-block-image):not(.cta):not(.tldr):not(.answer):not(.stats):not(.pair):not(.calc),
body.single-post .elementor-widget-text-editor > :not(figure):not(.wp-block-image):not(.cta):not(.tldr):not(.answer):not(.stats):not(.pair):not(.calc):not(.elementor-widget-container) {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

/* Inline margin on .note / .answer zeros left/right — keep centered in the reading column. */
body.single-post .elementor-widget-text-editor .note,
body.single-post .elementor-widget-text-editor .answer {
	display: block;
	width: 100%;
	max-width: 760px;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

body.single-post .elementor-widget-text-editor .stats {
	display: grid;
	width: 100%;
	max-width: 760px;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

body.single-post .elementor-widget-text-editor .pair {
	width: 100%;
	max-width: 1240px;
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 720px) {
	body.single-post .elementor-widget-text-editor .pair {
		grid-template-columns: 1fr !important;
	}

	body.single-post .elementor-widget-text-editor .stats {
		grid-template-columns: 1fr !important;
	}
}

/* CTA breaks out to full content width (same as images/tables). */
body.single-post .elementor-widget-text-editor .cta {
	display: block;
	width: 100%;
	max-width: 1240px;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
	text-align: center;
}

body.single-post .elementor-widget-text-editor .cta h2,
body.single-post .elementor-widget-text-editor .cta p {
	max-width: none;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

body.single-post .elementor-widget-text-editor .cta a.btn {
	display: inline-block;
	text-align: center;
}

/* TL;DR / summary box — block centered in reading column; content stays left-aligned. */
body.single-post .elementor-widget-text-editor .tldr {
	display: block;
	width: 100%;
	max-width: 760px;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

body.single-post .elementor-widget-text-editor .tldr ol {
	margin: 0 !important;
	padding-left: 22px !important;
}

/* Interactive checklist (a6 and similar). */
body.single-post .elementor-widget-text-editor ul.cl {
	list-style: none;
	padding: 0;
	margin: 0 0 8px;
}

body.single-post .elementor-widget-text-editor ul.cl li {
	margin: 0;
	border: 2px solid #161513;
	border-bottom: 0;
	background: #fff;
}

body.single-post .elementor-widget-text-editor ul.cl li:last-child {
	border-bottom: 2px solid #161513;
}

body.single-post .elementor-widget-text-editor ul.cl label {
	display: flex;
	gap: 14px;
	padding: 14px 16px;
	cursor: pointer;
	align-items: flex-start;
}

body.single-post .elementor-widget-text-editor ul.cl input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	min-width: 24px;
	border: 2.5px solid #161513;
	background: #fff;
	margin: 2px 0 0;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
}

body.single-post .elementor-widget-text-editor ul.cl input[type="checkbox"]:checked {
	background: #161513;
}

body.single-post .elementor-widget-text-editor ul.cl input[type="checkbox"]:checked::after {
	content: "✓";
	color: #fff;
	position: absolute;
	left: 3px;
	top: -3px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

body.single-post .elementor-widget-text-editor ul.cl input[type="checkbox"]:checked + span {
	color: #8a857c;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

/* Cost calculator (a7). */
body.single-post .elementor-widget-text-editor .calc {
	display: block;
	width: 100%;
	max-width: 760px;
	margin-left: auto !important;
	margin-right: auto !important;
	border: 2px solid #161513;
	padding: 28px;
	box-sizing: border-box;
}

body.single-post .elementor-widget-text-editor .calc .t {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 18px;
	color: #8a857c;
}

body.single-post .elementor-widget-text-editor .calc label {
	display: block;
	font-weight: 700;
	font-size: 16px;
	margin: 16px 0 6px;
	color: #161513;
}

body.single-post .elementor-widget-text-editor .calc select,
body.single-post .elementor-widget-text-editor .calc input[type='number'] {
	font: inherit;
	padding: 10px 12px;
	border: 2px solid #161513;
	border-radius: 0;
	width: 100%;
	max-width: 280px;
	background: #fff;
	color: #161513;
}

body.single-post .elementor-widget-text-editor .calc .chk {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 400;
}

body.single-post .elementor-widget-text-editor .calc .chk input {
	width: 18px;
	height: 18px;
	accent-color: #161513;
}

body.single-post .elementor-widget-text-editor .calc .result {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 2px dashed #d2cdc4;
	font-size: 17px;
	color: #4a463f;
}

body.single-post .elementor-widget-text-editor .calc .result strong {
	font-size: 26px;
	display: block;
	margin: 4px 0;
	color: #161513;
}

body.single-post .elementor-widget-text-editor .calc .note {
	font-size: 14px;
	color: #8a857c;
	margin-top: 10px;
}

body.single-post .elementor-widget-text-editor figure:not(.wp-block-table),
body.single-post .elementor-widget-text-editor .wp-block-image {
	width: 100%;
	max-width: 1240px;
	margin-left: 0;
	margin-right: 0;
}

/* Tables stay in the reading column (not full-bleed). */
body.single-post .elementor-widget-text-editor .wp-block-table,
body.single-post .elementor-widget-text-editor figure.wp-block-table {
	width: 100%;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	overflow-x: auto;
}

body.single-post .elementor-widget-text-editor figure img,
body.single-post .elementor-widget-text-editor .wp-block-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
}

body.single-post .elementor-widget-text-editor figcaption {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	font-size: 14px;
	color: #8a857c;
	margin-top: 10px;
}

/* Kill Hello Elementor's 10px / stepped caps on inner pieces only — not the outer pad. */
body.blog .page-header,
body.blog .page-header .entry-title,
body.blog .page-content,
body.single-post .page-header,
body.single-post .page-header .entry-title,
body.single-post .page-content,
body.single-post .e-con-inner {
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-inline-start: 0 !important;
	padding-inline-end: 0 !important;
}


/* Blog index — post list */
body.blog .page-content .post {
	padding-bottom: 32px;
	margin-bottom: 32px;
	border-bottom: 1px solid #ece8e0;
}

body.blog .page-content .post:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}

body.blog .page-content .post .entry-title {
	font-weight: 800;
	font-size: 22px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

body.blog .page-content .post .entry-title a {
	color: #161513;
	text-decoration: none;
}

body.blog .page-content .post .entry-title a:hover {
	opacity: 0.7;
}

body.blog .page-content .post p {
	font-size: 15px;
	line-height: 1.6;
	color: #5c574e;
	margin: 0;
}

body.blog .page-content .post .wp-post-image {
	width: 100%;
	height: auto;
	max-height: none;
	display: block;
	border-radius: 12px;
	margin: 0 0 14px;
	object-fit: cover;
}

/* Elementor text editor / Gutenberg block content */
body.single-post .elementor-widget-text-editor,
body.single-post .elementor-widget-text-editor .elementor-widget-container {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #161513;
}

body.single-post .elementor-widget-text-editor p {
	font-size: 16px;
	line-height: 1.6;
	color: #4a463f;
	margin-top: 0;
	margin-bottom: 1.25em;
}

body.single-post .elementor-widget-text-editor h2,
body.single-post .elementor-widget-text-editor h2.wp-block-heading {
	font-weight: 800;
	font-size: 32px;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: #161513;
	margin: 2.5em 0 0.5em;
}

body.single-post .elementor-widget-text-editor h3,
body.single-post .elementor-widget-text-editor h3.wp-block-heading {
	font-weight: 800;
	font-size: 22px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #161513;
	margin: 2em 0 0.5em;
}

body.single-post .elementor-widget-text-editor h4,
body.single-post .elementor-widget-text-editor h4.wp-block-heading {
	font-weight: 800;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: #161513;
	margin: 1.5em 0 0.5em;
}

body.single-post .elementor-widget-text-editor a {
	color: #161513;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.single-post .elementor-widget-text-editor a:hover {
	opacity: 0.7;
}

body.single-post .elementor-widget-text-editor strong,
body.single-post .elementor-widget-text-editor b {
	font-weight: 700;
	color: #161513;
}

body.single-post .elementor-widget-text-editor ul,
body.single-post .elementor-widget-text-editor ol {
	font-size: 15px;
	line-height: 1.6;
	color: #5c574e;
	margin: 0 0 1.25em;
	padding-left: 1.4em;
}

body.single-post .elementor-widget-text-editor li {
	margin-bottom: 0.5em;
}

body.single-post .elementor-widget-text-editor li:last-child {
	margin-bottom: 0;
}

body.single-post .elementor-widget-text-editor table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin: 1.5em 0;
}

body.single-post .elementor-widget-text-editor th,
body.single-post .elementor-widget-text-editor td {
	border: 1px solid #ece8e0;
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
}

body.single-post .elementor-widget-text-editor th {
	background: #fff;
	font-weight: 700;
	color: #161513;
}

body.single-post .elementor-widget-text-editor td {
	color: #5c574e;
}

body.single-post .elementor-widget-text-editor .wp-block-table {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	overflow-x: auto;
}

@media (max-width: 860px) {
	/*
	 * Match ad-creatives / header mobile layout (landing-v3.css ≤860px):
	 * .o30v3-header-pad + section side pad = 20px.
	 */
	body.single-post .site-main,
	body.blog .site-main {
		padding-top: 32px;
		padding-bottom: 48px;
		padding-left: 20px !important;
		padding-right: 20px !important;
		padding-inline-start: 20px !important;
		padding-inline-end: 20px !important;
	}

	body.single-post .page-header,
	body.single-post .page-content,
	body.blog .page-header,
	body.blog .page-content {
		max-width: none;
	}

	body.single-post .elementor-widget-text-editor .cta {
		padding: 28px 20px !important;
	}

	body.single-post .elementor-widget-text-editor .tldr {
		padding: 24px 20px !important;
	}

	body.single-post .elementor-widget-text-editor .note {
		padding: 18px 20px !important;
	}

	body.single-post .elementor-widget-text-editor figure img,
	body.single-post .elementor-widget-text-editor .wp-block-image img,
	body.blog .page-content .post .wp-post-image {
		max-width: 100%;
		border-radius: 12px;
	}

	body.single-post .page-header .entry-title,
	body.blog .page-header .entry-title {
		font-size: 32px;
	}

	body.single-post .elementor-widget-text-editor h2,
	body.single-post .elementor-widget-text-editor h2.wp-block-heading {
		font-size: 26px;
	}

	body.blog .page-content .post .entry-title {
		font-size: 20px;
	}

	body.single-post .elementor-widget-text-editor h3,
	body.single-post .elementor-widget-text-editor h3.wp-block-heading {
		font-size: 20px;
	}

	body.single-post .elementor-widget-text-editor h4,
	body.single-post .elementor-widget-text-editor h4.wp-block-heading {
		font-size: 17px;
	}
}

@media (max-width: 575px) {
	body.single-post .page-header .entry-title,
	body.blog .page-header .entry-title {
		font-size: 28px;
	}

	body.single-post .elementor-widget-text-editor h2,
	body.single-post .elementor-widget-text-editor h2.wp-block-heading {
		font-size: 24px;
	}

	body.blog .page-content .post .entry-title {
		font-size: 18px;
	}

	body.single-post .elementor-widget-text-editor h3,
	body.single-post .elementor-widget-text-editor h3.wp-block-heading {
		font-size: 18px;
	}

	body.single-post .elementor-widget-text-editor h4,
	body.single-post .elementor-widget-text-editor h4.wp-block-heading {
		font-size: 16px;
	}
}
