/**
 * 101 Church: keep fullwidth header titles centered from the first paint.
 *
 * Cause: pages use a transparent fixed nav (et_fixed_nav + et_transparent_nav).
 * After JS runs, Divi sets data-fix-page-container="on" and writes an inline
 * padding-top equal to the module padding plus the overlapping nav height
 * (114px on desktop, 131px at max-width 980px). That attribute is not in the
 * initial HTML, so it cannot be used as a first-paint hook. Until JS runs, the
 * title sits high in the banner, then jumps down.
 *
 * Fix: apply that same nav offset as margin-top on the inner container immediately.
 * When Divi later writes the inline padding-top, the margin is removed so the title
 * is not offset twice. Each page has a single fullwidth header (the top banner);
 * the homepage slider is a different module and is not affected.
 */

@media (min-width: 981px) {
	body.et_fixed_nav.et_transparent_nav .et_pb_fullwidth_header:not([style*="padding-top"]) .et_pb_fullwidth_header_container {
		margin-top: 114px;
	}
}

@media (max-width: 980px) {
	body.et_fixed_nav.et_transparent_nav .et_pb_fullwidth_header:not([style*="padding-top"]) .et_pb_fullwidth_header_container {
		margin-top: 131px;
	}
}
