/* ============================================================================
   divi-reset — Divi wrapper neutralization for MIGRATED pages.

   MANDATORY SCOPING: every rule is prefixed body.lo-skin. Unscoped, the
   section reset would destroy every legacy Divi page (privacy, terms, blog
   posts) the moment the theme activates.

   Kept deliberately tiny: blz fullwidth modules already ride in neutral
   .blz-host section shells handled by the plugin's blz-core.css. This file
   only covers what remains on a migrated page:
   - hybrid native bands (an et_pb_section carrying .blz-band via the section
     preset, e.g. around the native blog module),
   - classic rows hosting REG modules (blz_section_head, blz_price_card…).
   ========================================================================== */

/* Hybrid band: Divi's default section padding (4% top/bottom) must not add to
   the band rhythm the .blz-band class already provides. */
body.lo-skin .et_pb_section.blz-band {
	padding-top: var(--blz-band-pad, 116px) !important;
	padding-bottom: var(--blz-band-pad, 82px) !important;
}
@media (max-width: 640px) {
	body.lo-skin .et_pb_section.blz-band {
		padding-top: var(--blz-band-pad-m, 82px) !important;
		padding-bottom: var(--blz-band-pad-m, 82px) !important;
	}
}

/* Flush-edge utilities must win over the hybrid band rule above at ANY width
   (the plugin's .blz-band--pt0 alone loses this specificity fight). */
body.lo-skin .et_pb_section.blz-band.blz-band--pt0 { padding-top: 0 !important; }
body.lo-skin .et_pb_section.blz-band.blz-band--pb0 { padding-bottom: 0 !important; }

/* Rows inside hybrid bands: the .blz-wrap-row preset centers content at the
   design width; Divi's 80%-width default would double-constrain it. */
body.lo-skin .et_pb_row.blz-wrap-row {
	width: 100%;
	max-width: var(--blz-wrap-max, 1220px);
	padding: 0 var(--blz-wrap-pad, 40px);
}
@media (max-width: 640px) {
	body.lo-skin .et_pb_row.blz-wrap-row { padding: 0 var(--blz-wrap-pad-m, 22px); }
}

/* --------------------------------------------------------------------------
   divi-compat (TEMPORARY): overrides ported from the builders' DIVI_CSS that
   existed to beat the old Anthem child theme. Anthem is gone; delete each
   rule once the pilot page's computed-style probes prove it unnecessary.
-------------------------------------------------------------------------- */
/* et_pb_text paragraphs got Divi's padding-bottom that collided with design
   rhythm — only matters if a migrated page ever hosts a native Text module. */
body.lo-skin .et_pb_text_inner p:last-child { padding-bottom: 0; }
