/* ============================================================
   Page-level tweaks for Elementor pages (not plugin, not header).
   ============================================================ */

/* About Us (EN 37 / DE 1504): team rows = photo column + text column. (The photo is a container
   background image, lazy-loaded by WP Rocket, hence the data-settings match.)
   The first text line's half-leading put the capitals ~8.5px below the
   top of the photo. Trim the space above the first line so the cap
   height sits flush with the photo's top edge.
   `text-box` trims to the real cap height of the rendered font
   (Chrome 133+, Safari 18.2+); older browsers get the measured equivalent
   (0.53em at 16px / 27px line height). */
:is(.page-id-37, .page-id-1504) :is(.e-con, .e-con-inner):has(> .e-con [data-settings*='background_background'])
	> .e-con:not(:has([data-settings*='background_background']))
	> .elementor-widget-text-editor:first-child p:first-of-type{
	margin-top: -0.53em;
}
@supports (text-box: trim-start cap alphabetic){
	:is(.page-id-37, .page-id-1504) :is(.e-con, .e-con-inner):has(> .e-con [data-settings*='background_background'])
		> .e-con:not(:has([data-settings*='background_background']))
		> .elementor-widget-text-editor:first-child p:first-of-type{
		margin-top: 0;
		text-box: trim-start cap alphabetic;
	}
}
