/**
 * Native editorial Page body styling.
 *
 * Scope content selectors to `.sav-editorial-page .fl-post-content` or the
 * Classic editor iframe body class; shell corrections stay inside the main body. Header, footer, Beaver Builder,
 * Themer hero/title Parts, Services and plugin utility screens stay outside
 * this body-only component.
 */
/* A legacy inline `.container { margin: 1rem auto 0; }` leaks into the
 * native Page shell. Its collapsing top margin exposes the grey body above
 * the white content area. Reset only this shell, retaining .fl-content's
 * normal inner spacing and leaving Builder/plugin/header/footer containers alone. */
.sav-editorial-page #fl-main-content > .fl-content-full.container {
	margin-top: 0;
}

/* Native duplicate-title handling now belongs to content-page.php and the
 * shared hero's actual-render signal, including disabled/missing-hero fallback. */
.sav-editorial-page .fl-post-content,
body.sav-editorial-page-editor {
	/* Shared Page copy controls: adjust here for both the frontend and Classic editor. */
	--sav-editorial-text-size: 18px;
	--sav-editorial-text-leading: 1.65;
	font-family: var(--sav-editorial-body-font-family, inherit);
	font-size: var(--sav-editorial-text-size);
	/* Keep the existing leading ratio as copy grows; headings retain their own theme scale. */
	line-height: var(--sav-editorial-text-leading);
	color: var(--sav-editorial-body-color, inherit);
}

.sav-editorial-page .fl-post-content > :first-child,
body.sav-editorial-page-editor > :first-child {
	margin-top: 0;
}

.sav-editorial-page .fl-post-content > :last-child,
body.sav-editorial-page-editor > :last-child {
	margin-bottom: 0;
}

.sav-editorial-page .fl-post-content p,
body.sav-editorial-page-editor p {
	margin-top: 0;
	margin-bottom: 1.15em;
}

.sav-editorial-page .fl-post-content h2,
.sav-editorial-page .fl-post-content h3,
body.sav-editorial-page-editor h2,
body.sav-editorial-page-editor h3 {
	font-family: var(--sav-editorial-heading-font-family, inherit);
	color: var(--sav-editorial-heading-color, inherit);
	font-weight: 700;
	margin-bottom: 0.45em;
}

.sav-editorial-page .fl-post-content h2,
body.sav-editorial-page-editor h2 {
	margin-top: 1.65em;
}

.sav-editorial-page .fl-post-content h3,
body.sav-editorial-page-editor h3 {
	margin-top: 1.25em;
}

.sav-editorial-page .fl-post-content ul,
.sav-editorial-page .fl-post-content ol,
body.sav-editorial-page-editor ul,
body.sav-editorial-page-editor ol {
	margin-top: 0;
	margin-bottom: 1.35em;
	padding-left: var(--sav-content-list-indent, 40px);
}

.sav-editorial-page .fl-post-content li + li,
body.sav-editorial-page-editor li + li {
	margin-top: 0.45em;
}

.sav-editorial-page .fl-post-content a,
.sav-editorial-page .fl-post-content a:visited,
body.sav-editorial-page-editor a,
body.sav-editorial-page-editor a:visited {
	color: var(--sav-editorial-link-color, #c11515);
	font-weight: 700;
	/* Beat the inherited child-theme `a { text-decoration: none !important; }` only inside editorial body copy. */
	text-decoration-line: underline !important;
	text-decoration-thickness: auto;
	text-underline-offset: 0.16em;
}

.sav-editorial-page .fl-post-content a:hover,
.sav-editorial-page .fl-post-content a:focus,
body.sav-editorial-page-editor a:hover,
body.sav-editorial-page-editor a:focus {
	color: var(--sav-editorial-link-hover-color, var(--sav-editorial-link-color, #c11515));
	text-decoration-line: underline !important;
}

.sav-editorial-page .fl-post-content hr,
body.sav-editorial-page-editor hr {
	clear: both;
	border: 0;
	border-top: 1px solid #d9dce3;
	margin: 2.5em 0;
}

.sav-editorial-page .fl-post-content img,
.sav-editorial-page .fl-post-content .wp-caption,
body.sav-editorial-page-editor img,
body.sav-editorial-page-editor .wp-caption {
	max-width: 100%;
}

.sav-editorial-page .fl-post-content img,
body.sav-editorial-page-editor img {
	height: auto;
	border-top-right-radius: 44px;
}

.sav-editorial-page .fl-post-content img.alignnone,
.sav-editorial-page .fl-post-content .alignnone img,
.sav-editorial-page .fl-post-content .wp-caption.alignnone,
body.sav-editorial-page-editor img.alignnone,
body.sav-editorial-page-editor .alignnone img,
body.sav-editorial-page-editor .wp-caption.alignnone {
	/* Keep native alignnone media flush with the editorial text column; leave alignleft/alignright wrap margins untouched. */
	margin-right: 0;
	margin-left: 0;
}

.sav-editorial-page .fl-post-content blockquote,
body.sav-editorial-page-editor blockquote {
	font-family: inherit;
}

body.sav-editorial-page-editor {
	max-width: 800px;
	box-sizing: border-box;
	margin-right: auto;
	margin-left: auto;
	padding: 24px 20px;
}
