/* ==========================================================================
   CONTENT AREA DEFAULTS (APPLY TO ALL BUILDERS)
   ========================================================================== */

/* Generic WordPress content wrapper */
.entry-content,
.siu-main,
.siu-page-content {
    font-family: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: rgb(var(--theme-text-color));
}

/* Headings inside content area fall back to theme heading color */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.siu-main h1,
.siu-main h2,
.siu-main h3,
.siu-main h4,
.siu-main h5,
.siu-main h6 {
    color: rgb(var(--theme-heading-color));
}

/* ==========================================================================
   DIVI DEFAULTS – INHERIT THE THEME TOKENS
   ========================================================================== */

/* Core Divi layout wrapper */
.et-db #et-boc .et-l,
.et-db #et-boc .et-l .et_pb_section,
.et-db #et-boc .et-l .et_pb_row,
.et-db #et-boc .et-l .et_pb_module {
    font-family: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: rgb(var(--theme-text-color));
}

/* Divi text module inner wrapper */
.et_pb_text_inner,
.et_pb_module p {
    font-family: inherit;
    color: inherit;
}

/* Headings inside Divi builder follow theme heading color */
.et-db #et-boc .et-l h1,
.et-db #et-boc .et-l h2,
.et-db #et-boc .et-l h3,
.et-db #et-boc .et-l h4,
.et-db #et-boc .et-l h5,
.et-db #et-boc .et-l h6 {
    color: rgb(var(--theme-heading-color));
}

/* ==========================================================================
   Fix Divi's extra bottom padding on buttons
   ========================================================================== */

/* Target button links specifically, not every link in modules */
.et-db #et-boc .et-l .et_pb_module a.et_pb_button,
.et-db #et-boc .et-l .et_pb_button_module_wrapper a.et_pb_button {
    padding-bottom: .3em !important;
    /* remove Divi's 10px */
    line-height: 1.2;
    /* re-center the text vertically */
}



/* ==========================================================================
   UTILITIES / FRAMEWORK OVERRIDES
   ========================================================================== */

/* Divi section top spacing override */
.et-db #et-boc .et-l .et_pb_section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   ELEMENTOR DEFAULTS – INHERIT THE THEME TOKENS
   ========================================================================== */

.elementor {
    font-family: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Base text inside widgets */
.elementor p,
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
    color: rgb(var(--theme-text-color));
}

/* Headings inside Elementor widgets */
.elementor h1,
.elementor h2,
.elementor h3,
.elementor h4,
.elementor h5,
.elementor h6,
.elementor-heading-title {
    color: rgb(var(--theme-heading-color));
}