/* Full-bleed reset — one copy, for any page whose content is a designed, edge-to-edge
 * codeblock rather than ordinary post content.
 *
 * Enfold wraps page content in .container, which is max-width ~1310px with 50px side
 * padding on desktop and max-width:85% on mobile. That is right for a blog post and wrong
 * for a designed landing page: the design ends up as a box floating inside the theme's
 * gutters with the site background showing all around it.
 *
 * The geo templates each carried their own copy of this rule inline, so every NEW
 * hand-built page had to remember to paste the same boilerplate — and the contact page
 * didn't, which is exactly how it shipped inset inside a white box. This is that rule,
 * once, enqueued by VP_Full_Bleed for any page marked `_vp_full_bleed`.
 *
 * Scoped to .vp-fullbleed on <body> so it can NEVER leak onto a normal page. An earlier
 * unscoped version of this rule was briefly loaded site-wide and stripped the layout off
 * every page on the site.
 */
body.vp-fullbleed.html_stretched #main,
body.vp-fullbleed #main,
body.vp-fullbleed .entry-content-wrapper,
body.vp-fullbleed .avia_codeblock_section,
body.vp-fullbleed .avia_codeblock,
body.vp-fullbleed .container_wrap,
body.vp-fullbleed .container,
body.vp-fullbleed .content,
body.vp-fullbleed main,
body.vp-fullbleed .template-page,
body.vp-fullbleed .flex_column {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	float: none !important;
}

/* Enfold gives every .avia-section a min-height of 100px and a 1px border. On a page whose
 * real content lives in a codeblock, the wrapper section is EMPTY — so that becomes a blank
 * strip between the header and the design. (Two of them, in fact: wpautop also wraps
 * Enfold's own auto-generated <style> tag in a <p> with 15px margins.) */
body.vp-fullbleed .avia-section:not(:has(.avia_codeblock)) { min-height: 0 !important; }
body.vp-fullbleed .entry-content-wrapper > p:empty,
body.vp-fullbleed .entry-content-wrapper > p:has(> style) {
	display: none !important;
	margin: 0 !important;
}
