/*
 * Elementor integration, not component styling: selectors here target Elementor's widget wrapper, so they
 * start with .elementor-widget instead of [data-de26] (assets/css/ is reserved for [data-de26] rules).
 *
 * The Hero, Feature Row, Gradient Feature, Footer CTA, and Subject Cards roots are size containers
 * (container-type: inline-size), which gives them an intrinsic width of 0. Below 768px Elementor's
 * container is a wrapping column, so the widget wrapper sizes to that zero-width content: it is laid
 * out at 0px wide, wraps the text one word per line, and ends up hundreds of pixels taller than the
 * component, leaving a blank void under it. A full-width wrapper has a real width to size against.
 *
 * Elementor's own Width control stays in charge. Its Custom option writes a (0,3,0) width rule onto the
 * wrapper, which beats this (0,1,0) rule, so an editor Width always wins. The rule is plain `width: 100%`
 * and deliberately does not read --container-widget-width: in an explicit-row container with Align Items
 * set, Elementor resolves that variable to 0%, which collapsed the widget to nothing.
 * The Figure root is not a size container, but its image sizes the wrapper from the file's natural width, so the
 * wrapper is measured at that width and ends up shorter than the image drawn at the column width. Same fix.
 * The HubSpot Form root is empty until HubSpot's script builds the form, so its wrapper would size to 0px. Same fix.
 * Widgets that are not size containers (Button, Card, ...) have an intrinsic width and need no rule.
 */
.elementor-widget-de26-hero,
.elementor-widget-de26-feature-row,
.elementor-widget-de26-gradient-feature,
.elementor-widget-de26-footer-cta,
.elementor-widget-de26-subject-cards,
.elementor-widget-de26-blog-figure,
.elementor-widget-de26-blog-opener,
.elementor-widget-de26-blog-media-text,
.elementor-widget-de26-blog-cards,
.elementor-widget-de26-blog-quote,
.elementor-widget-de26-blog-author,
.elementor-widget-de26-blog-video,
.elementor-widget-de26-hubspot-form {
	width: 100%;
}

/*
 * Elementor's frontend CSS zeroes every figure margin inside a widget
 * (.elementor .elementor-widget:not(...):not(...) figure, specificity 0,4,1), which pulls the figure-rooted
 * blog blocks (Figure, Pull Quote, Video) to the left edge with no space below. This (0,5,1) rule wins
 * regardless of load order and restores the centering and spacing the shared .de26-blog rule sets.
 */
.elementor .elementor-widget.elementor-element figure[data-de26].de26-blog {
	margin-inline: auto;
	margin-block: 0 var(--de26-gap-6x);
}
@media (max-width: 767px) {
	.elementor .elementor-widget.elementor-element figure[data-de26].de26-blog { margin-inline: var(--de26-gap-2x); }
}
