/* Keep production-only widgets on the theme-owned Onest stack. */
.rpe-pro-widget-container,
.rpe-pro-related-section-isolated,
.rpe-pro-lead-magnet {
    --rpe-font-family: var(--n9-font-family);
}

.rpe-pro-widget-container,
.rpe-pro-related-section-isolated,
.rpe-pro-lead-magnet,
.rpe-pro-widget-container *,
.rpe-pro-related-section-isolated *,
.rpe-pro-lead-magnet * {
    font-synthesis: none;
}

/* Production-only RPE markup stays on the theme-owned typography contract.
 * This is deliberately scoped to the sidebar widget and the desktop
 * related-section heading; card headings and mobile Related Posts sizing retain
 * their established rhythm. */
.rpe-pro-widget-container .widget-title,
.rpe-pro-widget-container .widgettitle,
.widget_rpe_pro_widget > .widget-title,
.widget_rpe_pro_widget > .widgettitle {
    font-size: var(--n9-type-rpe-widget-heading-size) !important;
    line-height: var(--n9-type-rpe-widget-heading-line) !important;
}

.rpe-pro-widget-container .rpe-pro-widget-excerpt {
    font-size: var(--n9-type-rpe-widget-excerpt-size) !important;
    line-height: var(--n9-type-rpe-widget-excerpt-line) !important;
}

@media (min-width: 768px) {
    body.single-post .rpe-pro-related-section-isolated .rpe-pro-related-title {
        font-size: var(--n9-type-rpe-related-title-size) !important;
        line-height: var(--n9-type-rpe-related-title-line) !important;
    }
}
