/* ==========================================================================
   Themify Builder / Builder Pro harmonisation (loaded only when Builder is active)
   ========================================================================== */

:root {
	--theme_accent: var(--k4-gold);
	--theme_accent_hover: var(--k4-navy);
	--theme_heading_color: var(--k4-heading);
	--theme_rounded: 0;
	--theme_rounded_sm: 0;
	--theme_btn_rounded: 0;
	--theme_input_rounded: 0;
	--tb_rounded_corner: 0;
}

/* Builder rows follow the theme container width. */
.themify_builder_content .module_row > .row_inner,
.themify_builder_content .module_row .row_inner { max-width: var(--k4-container); }
.full_width .themify_builder_content .module_row.fullwidth > .row_inner,
.entry-content--full .themify_builder_content .module_row.fullwidth > .row_inner { max-width: none; }
.entry-content .themify_builder_content { grid-column: full; }

/* Typography inside Builder modules — zero specificity so 4K block colours (white on navy) win. */
:where(.themify_builder_content) { font-family: var(--k4-font-body); color: var(--k4-text); }
:where(.themify_builder_content) :where(h1, h2, h3, h4, h5, h6) { font-family: var(--k4-font-heading); color: var(--k4-heading); }
.themify_builder_content .module-fancy-heading .main-head::after { content: ""; display: block; width: 35px; height: 6px; margin: .75rem auto 0; background: var(--k4-gold); }

/* Buttons: square, navy → gold (same as the theme) */
.themify_builder_content .module-buttons .ui.builder_button,
.themify_builder_content .builder_button { border-radius: 0; background: var(--k4-navy); color: #fff; font-family: var(--k4-font-heading); font-weight: 700; }
.themify_builder_content .module-buttons .ui.builder_button:hover,
.themify_builder_content .builder_button:hover { background: var(--k4-gold); color: var(--k4-navy); }

/* Builder Pro header / footer templates sit where the theme header/footer would. */
#tbp_header { position: sticky; top: 0; z-index: 100; }
.tbp_template.footer, #tbp_footer { margin-top: auto; }

/* 4K blocks rendered inside Builder (via [k4] shortcode) keep their own spacing. */
.themify_builder_content .k4-hero,
.themify_builder_content .k4-quick,
.themify_builder_content .k4-cta { margin-inline: 0; }
