/* ==========================================================================
   Elementor compatibility — loaded only when the plugin is active, after
   main.css. Corrections for rules Elementor ships that fight the design.
   ========================================================================== */

/* The section widgets are full-bleed and carry their own shell: the
   container and widget wrappers around them must add nothing. */
.elementor .ny-section-widget,
.elementor .ny-section-widget > .elementor-widget-container {
	margin: 0 !important;
	padding: 0;
	width: 100%;
	max-width: none;
}
.elementor .e-con:has(> .ny-section-widget),
.elementor .e-con:has(> .e-con-inner > .ny-section-widget) {
	--padding-top: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--padding-right: 0px;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
}

/* `.elementor img { height: auto }` ties a single-class theme rule and wins
   on order, collapsing every cover image. Restore them at a specificity the
   reset cannot match. */
.elementor .ny-bg img,
.elementor .ny-backdrop img,
.elementor .ny-hero__still img,
.elementor .ny-portrait img,
.elementor .ny-signup__bg img,
.elementor .ny-statement__bg img,
.elementor .ny-frame img {
	height: 100%;
	object-fit: cover;
}
.elementor .ny-cards--photo .ny-card__media img,
.elementor .ny-collage__a img,
.elementor .ny-collage__b img,
.elementor .ny-index__photo img,
.elementor .ny-signup__photo img,
.elementor .ny-care__image img {
	object-fit: cover;
}

/* The Style tab's background image: a layer under everything else in the
   section, beneath the Content tab's photograph (-2) and its wash (-1). */
.ny-widget-bg {
	position: absolute;
	inset: 0;
	z-index: -3;
	pointer-events: none;
	background-size: cover;
	background-position: center;
}
.ny-widget-bg::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* A background set in Elementor itself, on the widget's Advanced tab or on
   the container around it, paints behind the section: let it show through
   the section's own ground. */
.elementor .ny-section.ny-section--clear,
.elementor .e-con[data-settings*='"background_background"'] .ny-section {
	--ny-ground: transparent;
	background-color: transparent;
}

/* Elementor's kit sets link and heading colours globally. */
.elementor .ny-section a:not(.ny-btn) { color: inherit; }
.elementor .ny-section :is(.ny-resource--download, .ny-resource--workbook) a { color: var(--ny-ivory); }
.elementor .ny-section h1,
.elementor .ny-section h2,
.elementor .ny-section h3,
.elementor .ny-section h4 {
	font-family: var(--ny-serif);
	font-weight: 400;
	color: var(--ny-head);
}
.elementor .ny-section .ny-btn { color: var(--b-fg); }
.elementor .ny-section .ny-resource__title { color: var(--ny-forest); }
.elementor .ny-section :is(.ny-resource--download, .ny-resource--workbook) .ny-resource__title { color: #FFFFFF; }
