/**
 * Theme Name: marlab Child
 * Description: Child theme for the marlab
 * Author: Dmytro K.
 * Template: marlab
 * Version: 1.0.0
 */
/* Reserve space for the HubSpot form (injected by JS) so the page does not jump when it renders. */
.elementor-shortcode .hbspt-form {
	min-height: 586px;
}
@media (max-width: 767px) {
	.elementor-shortcode .hbspt-form {
		min-height: 750px;
	}
}

/* ElementsKit client logo slider: lay slides out like Swiper does before it initialises, so the section does not
   collapse from ~600px to ~130px after load (CLS). --ekit-n / --ekit-gap are refined per slider by a footer script. */
.elementskit-clients-slider {
	--ekit-n: 2;
	--ekit-gap: 10px;
}
@media (min-width: 768px) {
	.elementskit-clients-slider {
		--ekit-n: 4;
		--ekit-gap: 50px;
	}
}
@media (min-width: 1024px) {
	.elementskit-clients-slider {
		--ekit-n: 6;
	}
}
.elementskit-clients-slider :not(.swiper-initialized) > .swiper-wrapper {
	display: flex;
	width: 100% !important;
	max-width: 100%;
	overflow: hidden;
}
.elementskit-clients-slider :not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
	flex: 0 0 calc((100% - (var(--ekit-n) - 1) * var(--ekit-gap)) / var(--ekit-n)) !important;
	width: calc((100% - (var(--ekit-n) - 1) * var(--ekit-gap)) / var(--ekit-n)) !important;
	max-width: none !important;
	margin-right: var(--ekit-gap);
}

/* HubSpot form widget (Elementor): reserve the rendered height until the form iframe is inserted. The form uses one
   column below ~400px of width (746px tall) and two columns above (500px). */
.elementor-widget-hubspot-form .elementor-widget-container {
	container-type: inline-size;
}
.elementor-widget-hubspot-form .hbspt-form:not(:has(iframe)) {
	min-height: 746px;
}
@container (min-width: 400px) {
	.elementor-widget-hubspot-form .hbspt-form:not(:has(iframe)) {
		min-height: 500px;
	}
}
/* Salesforce Platform Assessment: HubSpot briefly re-renders the form iframe at 0px, keep its space at all times. */
.page-id-46942 .elementor-widget-hubspot-form .hbspt-form {
	min-height: 746px;
}
@container (min-width: 400px) {
	.page-id-46942 .elementor-widget-hubspot-form .hbspt-form {
		min-height: 500px;
	}
}

/* Post template (Elementor): give the featured image widget a definite width so the image reserves its height
   (from width/height attributes) before it loads; without it the flex column sizes the widget to ~0 and the post jumps. */
.elementor-widget-theme-post-featured-image {
	width: 100%;
}
/* Gravatar avatars have no width/height attributes; reserve a square box. */
.elementor-widget-image img[src*="gravatar.com/avatar"] {
	width: 100%;
	aspect-ratio: 1 / 1;
}

/* Headings: H1s typed in post bodies are output as H2 (one H1 per post); keep their previous H1 look. */
.elementor-widget-theme-post-content .marlab-demoted-h1 {
	font-family: inherit;
	font-size: 48px;
	font-weight: 500;
	line-height: 27px;
	letter-spacing: normal;
	text-transform: none;
	color: #000000;
	margin-top: 0;
	margin-bottom: 0;
}
/* Mirrors the Customizer rule "h1.wp-block-heading { line-height: 1.2 !important }" (block editor H1s). */
.elementor-widget-theme-post-content .marlab-demoted-h1.wp-block-heading {
	line-height: 1.2 !important;
}
/* Comment form title is H2 now (was H3); keep its previous look. */
#reply-title.comment-reply-title {
	font-family: "Poppins", sans-serif;
	font-size: 19px;
	font-weight: 500;
	line-height: 28.5px;
	letter-spacing: -0.19px;
	text-transform: none;
	color: #000000;
	margin-top: 0;
	margin-bottom: 10px;
}

/* JetWidgets Headline split into label + heading (inc/headings.php): the inner heading must not add a box. */
.jw-headline .marlab-headline-title {
	display: contents;
}

/* Keep the heading font weight the parts inherited before the outer heading became a div. */
.jw-headline.marlab-headline-split,
.jw-testimonials__title {
	font-weight: 500;
}

/* ElementsKit Icon Box statistics printed as div instead of H3 (inc/migrations.php): keep the theme's heading gap. */
div.elementskit-info-box-title {
	margin-bottom: 20px;
}

/* Visually hidden H1 added to pages that had none (inc/headings.php). */
.marlab-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* Heading level skips fixed in inc/migrations.php (marlab_child_heading_skips): keep the look of the old tags
   (iPaaS page 46221: labels were H6, whose theme rule beat the widget's own letter-spacing). */
.elementor-element-854ec9f .elementor-heading-title,
.elementor-element-c48a568 .elementor-heading-title,
.elementor-element-2dafbb2 .elementor-heading-title {
	font-size: 18px;
	line-height: 18px;
}

.elementor-element-357d0df h3.vc_custom_heading {
	font-size: 18px;
}

body h2[data-marlab-was="h3"] {
	font-size: 19px;
}

.elementor-46221 .elementor-element.elementor-element-6361587 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-fc1d855 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-c0c169d h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-b782fd7 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-feb6deb h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-746890c h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-d117e84 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-f2ae010 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-f59d5ee h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-dd99fd0 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-97313dd h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-73608b3 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-efdddff h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-7f18f0b h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-74ac7d6 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-783b6fc h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-6d487c6 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-b6e51ea h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-1e17fcd h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-1aa636b h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-00b57c3 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-8a36a11 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-4b185b5 h3.elementor-heading-title,
.elementor-46221 .elementor-element.elementor-element-4382a24 h3.elementor-heading-title {
	margin-bottom: 10px;
	letter-spacing: 1.5px;
}

/* Post/Edge body headings moved up a level to remove skips (inc/headings.php): keep the computed look of the old
   tag inside the post body (Kit sizes for h2/h3/h5, legacy Tailwind preflight "font-size: inherit" for h4/h6,
   theme h6 uppercase, Edge template h3 margin). */
.elementor-widget-theme-post-content .marlab-was-h3 {
	font-size: 19px;
	color: #000;
	text-transform: none;
}

.elementor-widget-theme-post-content .marlab-was-h4 {
	font-size: 15px;
	color: #000;
	text-transform: none;
}

.elementor-widget-theme-post-content .marlab-was-h5 {
	font-size: 18px;
	color: rgb(17, 26, 69);
	text-transform: none;
}

.elementor-widget-theme-post-content .marlab-was-h6 {
	font-size: 15px;
	color: #000;
	text-transform: uppercase;
}

body.single-edge .marlab-was-h3 {
	margin-bottom: 15px !important;
}

body.single-edge h3.marlab-was-h4,
body.single-edge h3.marlab-was-h5,
body.single-edge h3.marlab-was-h6 {
	margin-bottom: 20px !important;
}

/* "CONNECTED BY DESIGN" label (Salesforce Agentforce Implementation) printed as div instead of H2: keep the weight. */
.elementor-element-42f4243 .elementor-heading-title {
	font-weight: 500;
}
