/**
 * St Peters — site-wide CSS overrides for the BB Theme + custom modules.
 * Scoped narrowly so it never affects non-BB pages.
 */

/* Remove BB Theme's default padding around the BB-built content area.
   Our pages drive their own section spacing — the theme's outer padding creates
   a gap (top/bottom AND left/right) between the viewport edge and the first row. */
body.fl-builder #fl-main-content.fl-page-content,
body.fl-builder .fl-page-content {
	padding: 0;
	margin: 0;
}

/* BB Plugin defaults add 20px padding to every .fl-row-content-wrap and 20px
   margin to every .fl-module-content. Our custom modules already manage their
   own internal spacing and expect to bleed edge-to-edge inside full-width rows.
   Zero these out so STP modules butt up against the viewport. */
body.fl-builder .fl-row-content-wrap {
	padding-left: 0;
	padding-right: 0;
}
body.fl-builder .fl-row-full-width .fl-row-content-wrap {
	padding-top: 0;
	padding-bottom: 0;
}
body.fl-builder .fl-col-content {
	padding: 0;
}
body.fl-builder .fl-module > .fl-module-content {
	margin: 0;
}

/* Full-width gold rule above the Themer footer, visually separating it from
   the page content above. Targets the Themer footer wrapper so the line spans
   the viewport edge to edge regardless of inner row width. */
body.fl-builder footer.fl-builder-content[data-type="footer"] {
	border-top: 1px solid var(--stp-gold-500, #c4a676);
}

/* Header should always show the maroon background, never transparent-over-hero.
   The header module ships with `is-transparent` as the default class. The
   module's own CSS scopes its transparent rule with the `.fl-node-XXX` prefix
   (specificity 0,3,1), so we need !important here to win — alternatively the
   transparent_over_hero setting on the header module instance could be flipped
   to "No (always solid)", but every page already has the saved Themer header. */
.stp-header-nav,
.stp-header-nav.is-transparent,
.stp-header-nav.is-transparent:not(.is-scrolled) {
	background: var(--stp-maroon-700, #730D28) !important;
}
