/* Article and works detail prose only. Fixed pages, archives and shared chrome
 * retain their existing presentation. Keep the root selector in sync with the
 * editor-canvas replacement in inc/yomowebb-single-reading.php. */
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) {
	max-width: 760px;
	margin-inline: auto;
	font-family: var(--e-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.9;
	letter-spacing: .015em;
	line-break: strict;
}
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) > :is(p, ul, ol, dl, figure, blockquote, pre),
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) .ai-rewrite-article > :is(p, ul, ol, dl, figure, blockquote, pre),
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) .ai-rewrite-article > .wp-block-group__inner-container > :is(p, ul, ol, dl, figure, blockquote, pre) { margin-block: 1.35em; }
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) > p:first-child,
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) .ai-rewrite-article > p:first-child,
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) .ai-rewrite-article > .wp-block-group__inner-container > p:first-child { margin-top: 0; }
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) p:not(:where(.apb-wrap *, .yi-cta *, .p-toc *, .ai-rewrite-flow *, .ai-rewrite-faq-item *, .yomo-article-faq-item *, [style*="line-height"])) { line-height: 1.9; }
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) :is(li, dt, dd):not(:where(.apb-wrap *, .yi-cta *, .p-toc *)) { line-height: 1.85; }
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) li + li:not(:where(.apb-wrap *, .yi-cta *, .p-toc *)) { margin-top: .55em; }

/* Preserve explicitly decorated blocks and the dedicated FAQ/profile/card UI. */
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) h2:not(:where(.llmo-faq-section *, .apb-wrap *, .yi-cta *, .has-background *)):not([class*="is-style-"]):not([class*="swell-block-"]):not([style*="background"]):not([style*="color"]):not([style*="font-size"]):not(.has-background):not(.has-text-color):not([class*="-font-size"]):not(.p-postList__title) {
	margin-block: 2.6em 1.1em;
	padding: 17px 22px;
	border: 0;
	border-radius: 6px;
	background: linear-gradient(110deg, #263a31 0%, #3d5847 100%);
	color: #fffdf7;
	box-shadow: none;
	font-family: var(--e-serif);
	font-size: clamp(24px, 2.1vw, 27px);
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: .015em;
	text-wrap: balance;
}
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) h3:not(:where(.llmo-faq-section *, .apb-wrap *, .yi-cta *, .has-background *)):not([class*="is-style-"]):not([class*="swell-block-"]):not([style*="background"]):not([style*="color"]):not([style*="font-size"]):not(.has-background):not(.has-text-color):not([class*="-font-size"]):not(.p-postList__title) {
	margin-block: 2.2em 1em;
	padding: .1em 0 .1em .75em;
	border: 0;
	border-left: 5px solid #263a31;
	font-family: var(--e-serif);
	font-size: clamp(21px, 1.8vw, 24px);
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: .015em;
	text-wrap: balance;
}
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) h4:not(:where(.llmo-faq-section *, .apb-wrap *, .yi-cta *, .has-background *)):not([class*="is-style-"]):not([class*="swell-block-"]):not([style*="background"]):not([style*="color"]):not([style*="font-size"]):not(.has-background):not(.has-text-color):not([class*="-font-size"]) {
	font-family: var(--e-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.65;
}

/* The existing author card keeps its own typography inside the reading column. */
body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) .apb-wrap { font-family: var(--e-serif); font-size: 16px; font-weight: 500; line-height: 2.15; letter-spacing: .025em; }

/* Portfolio metadata is a definition list outside the editable prose. */
body.yomo-inner.single-works #main_content .yi-works-details dl { font-family: var(--e-sans); }
body.yomo-inner.single-works #main_content .yi-works-details dl > div { padding-block: 14px; font-size: 16px; line-height: 1.85; }
body.yomo-inner.single-works #main_content .yi-works-details dt { font-weight: 500; }

@media (max-width: 760px) {
	body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) { font-size: 16px; font-weight: 400; }
	body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) .apb-wrap { font-weight: 600; }
}
@media (max-width: 599px) {
	body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) h2:not(:where(.llmo-faq-section *, .apb-wrap *, .yi-cta *, .has-background *)):not([class*="is-style-"]):not([class*="swell-block-"]):not([style*="background"]):not([style*="color"]):not([style*="font-size"]):not(.has-background):not(.has-text-color):not([class*="-font-size"]):not(.p-postList__title) { padding: 15px 17px; font-size: 22px; margin-top: 2.5em; }
	body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) h3:not(:where(.llmo-faq-section *, .apb-wrap *, .yi-cta *, .has-background *)):not([class*="is-style-"]):not([class*="swell-block-"]):not([style*="background"]):not([style*="color"]):not([style*="font-size"]):not(.has-background):not(.has-text-color):not([class*="-font-size"]):not(.p-postList__title) { font-size: 20px; }
	body.yomo-inner:is(.single-post, .single-works) #main_content .post_content:not(.yi-works-password) .apb-wrap { font-size: 15px; letter-spacing: .015em; }
	body.yomo-inner.single-works #main_content .yi-works-details dl > div { font-size: 15px; }
}
