/* Use the active kit's font families only for roles the site has assigned.
   With a theme-managed role the native body, heading and control styles apply. */
.wpdst-font-text :is(.wpdst-most-active, .wpdst-offerings, .wpdst-discovery, .wpdst-single-page,
    .wpdst-share-breadcrumb, .wpdst-share-toc, .wpdst-quote-field, .wpdst-quote-summary, .wpdst-history,
    .wpdst-sheet-table-wrap, .wpdst-enxt-section, .wpdst-about, .wpdst-faqs, .wpdst-assessment,
    .wpdst-assessment-pair, .wpdst-field, .wpdst-terms, .wpdst-valuation, .wpdst-trend,
    .wpdst-resource, .ds-share-template),
.wpdst-font-text .elementor-shortcode:has(> :is([data-wpdst-price], [data-wpdst-name], [data-wpdst-updated])) {
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.wpdst-font-primary :is(.wpdst-most-active, .wpdst-discovery, .wpdst-single-page, .wpdst-history,
    .wpdst-enxt-section, .wpdst-about, .wpdst-faqs, .wpdst-assessment-pair, .wpdst-resource,
    .ds-share-template) :is(h1, h2, h3, h4, h5, h6):not(.ma-card-heading, .wd-company),
.wpdst-font-primary .wpdst-share-toc .wpdst-toc-title,
.wpdst-font-primary .elementor-widget-heading:has(+ .elementor-widget-shortcode .wpdst-offerings) .elementor-heading-title {
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.wpdst-font-secondary :is(.wpdst-discovery, .wpdst-single-page, .wpdst-enxt-section,
    .wpdst-about, .wpdst-faqs, .wpdst-assessment-pair, .wpdst-resource, .ds-share-template)
    :is(h3, h4, h5, h6):not(.ma-card-heading, .wd-company) {
    font-family: var(--e-global-typography-secondary-font-family, inherit);
}

.wpdst-font-accent :is(.wpdst-most-active, .wpdst-offerings, .wpdst-discovery, .wpdst-history,
    .wpdst-about, .wpdst-assessment-pair, .wpdst-resource, .ds-share-template)
    :is(button, .ma-browse, .wpdst-chat-trigger, .wpdst-download-btn, .paginate_button, .wd-button,
        .wd-text-link, .wpdst-about-btn, .wpdst-assess-disclosure, .elementor-button) {
    font-family: var(--e-global-typography-accent-font-family, inherit);
}

/* The homepage hero sets the measure for public section content. */
:root {
    --wpdst-page-content-width: 1260px;
    --wpdst-page-gutter: 10px;
}
@media (max-width: 767px) {
    :root { --wpdst-page-gutter: 20px; }
}

/* Top-level Elementor documents only. Keep inner columns, carousels and popups sized by their widgets. */
body .elementor[data-elementor-type]:is([data-elementor-type="wp-page"], [data-elementor-type="single-page"],
    [data-elementor-type="single-post"], [data-elementor-type="single"], [data-elementor-type="archive"],
    [data-elementor-type="header"], [data-elementor-type="footer"]) {
    --wpdst-outer-padding: max(var(--wpdst-page-gutter), calc((100% - var(--wpdst-page-content-width)) / 2));
}
body .elementor[data-elementor-type]:is([data-elementor-type="wp-page"], [data-elementor-type="single-page"],
    [data-elementor-type="single-post"], [data-elementor-type="single"], [data-elementor-type="archive"],
    [data-elementor-type="header"], [data-elementor-type="footer"]) > :is(.e-con.e-parent, .elementor-top-section) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--wpdst-outer-padding);
}
body .elementor[data-elementor-type]:is([data-elementor-type="wp-page"], [data-elementor-type="single-page"],
    [data-elementor-type="single-post"], [data-elementor-type="single"], [data-elementor-type="archive"],
    [data-elementor-type="header"], [data-elementor-type="footer"]) >
    :is(.e-con.e-parent, .elementor-top-section) > :is(.e-con-inner, .elementor-container) {
    width: 100%;
    max-width: var(--wpdst-page-content-width);
    margin-inline: auto;
    padding-inline: 0;
}

body.ast-page-builder-template #content > .ast-container,
body #content > .ast-container:has(> .elementor-location-single, > .elementor-location-archive) {
    width: 100%; max-width: none; padding-inline: 0;
}
body:not(.ast-page-builder-template) #content > .ast-container:not(:has(> .elementor-location-single, > .elementor-location-archive)) {
    box-sizing: border-box;
    width: min(var(--wpdst-page-content-width), calc(100% - 2 * var(--wpdst-page-gutter)));
    max-width: none; margin-inline: auto; padding-inline: 0;
}

/* Embedded plugin listings already sit inside the page measure. Only their internal cards need their own insets. */
.elementor .e-parent > :is(.elementor-widget-shortcode, .elementor-widget-wpdst-price-band) :is(.wpdst-most-active, .wpdst-offerings, .wd-arrivals .wd-shell, .wd-browser .wd-shell, .wpdst-single-page .sp-shell),
.elementor .e-parent > .e-con-inner > :is(.elementor-widget-shortcode, .elementor-widget-wpdst-price-band) :is(.wpdst-most-active, .wpdst-offerings, .wd-arrivals .wd-shell, .wd-browser .wd-shell, .wpdst-single-page .sp-shell),
.wpdst-discovery.wd-directory .wd-directory-body .wpdst-offerings { padding-inline: 0; }

@media (max-width: 1024px) {
    .elementor .elementor-widget-theme-post-content .wp-block-paragraph a,
    .elementor .elementor-widget-icon-list .elementor-icon-list-text { overflow-wrap: anywhere; }
    .elementor .elementor-widget-post-info .elementor-inline-items.elementor-post-info {
        margin-inline: 0; max-width: 100%; flex-wrap: wrap;
    }
}
@media (max-width: 767px) {
    .elementor-location-single .e-con.tab:has(.wpdst-sheet-table-wrap) { max-width: 100%; }
}
