/* Mobile source: rcZHsdnMGk0JrHv5oIGD31, verified 2026-10-28. */
@media (width <= 700px) {
	/* Native cover keeps the same source photo proportional at intermediate widths. */
	.nh-page-partners .nh-hero-mobile-image img[src*="deaa11482a6ee855204d8c38"] {
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: 23.92% center;
	}

	/* Wrapped property names need separate readable lines with the retained font. */
	.nh-price-card h2 {
		line-height: 1.05;
	}

	/* 687:17739: preserve the original 16:9 facade and its left crop. */
	.nh-page-malysheva .nh-hero-mobile-image.wp-block-image img {
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: 20.32% center;
	}

	/* Keep the native team track available, without a mobile control row. */
	.nh-company-team .nh-strip-controls {
		display: none;
	}

	/* 720:22327 ends at 2264; the first benefit 720:22355 begins at 2274. */
	.nh-partner-mail {
		row-gap: 10px;
	}

	/* 1329:3677 ends at 3194; directory eyebrow 742:22542 starts at 3274. */
	.nh-partner-events {
		padding-bottom: 0;
	}

	.nh-partner-events + .nh-partner-directory {
		padding-top: 80px;
	}
}

/* Let cards cross the viewport edges; padding belongs inside the moving track.
 * The explicit families exclude hidden directory and full-frame property galleries. */
@media (width <= 700px) {
	.nh-page-content :is(
		.nh-section-benefits .nh-strip-track,
		.nh-section-services .nh-strip-track,
		.nh-home-property-grid,
		.nh-home-activities .nh-strip-track,
		.nh-testimonial-collection,
		.nh-home-admission-grid,
		.nh-company-admission-grid,
		.nh-shared-contacts,
		.nh-company-team .nh-strip-track,
		.nh-weekdays-track,
		.nh-media-source-collection,
		.nh-partner-proposal-grid,
		.nh-partner-event-gallery,
		.nh-service-benefit-track
	) {
		width: calc(100% + 20px);
		margin-inline: -10px;
		padding-inline: 10px;
	}

	/* Preserve proposal proportions until an inset icon needs more preview space. */
	.nh-page-content .nh-partner-proposal-grid > .nh-card {
		flex-basis: min(302.5px, calc(100% - 54px));
	}

	/* 340px cards retain the 380px source: 25px peek with gap5, 20px with gap10.
 * The percentage resolves against the track's content box, excluding its insets. */
	.nh-page-content .nh-section-benefits .nh-strip-track > .nh-card,
	.nh-page-content .nh-home-property-grid > *,
	.nh-page-content .nh-home-activities .nh-strip-track > .nh-home-activity-card,
	.nh-page-content .nh-home-admission-grid > *,
	.nh-page-content .nh-service-benefit-track > .nh-service-benefit {
		flex-basis: min(340px, calc(100% - 20px));
	}

	.nh-page-content .nh-media-source-collection > :is(.nh-media-photo, .nh-tour-video, .nh-media-portrait),
	.nh-page-content .nh-partner-events .nh-partner-event-gallery.has-nested-images > .wp-block-image {
		flex-basis: min(340px, calc(100% - 20px));
		width: min(340px, calc(100% - 20px));
	}

	.nh-page-content .nh-company-admission-grid > * {
		flex-basis: min(340px, calc(88 * var(--nh-canvas-vw, 1vw)), calc(100% - 20px));
	}

	/* Include the next image's inset, not just its surrounding card border. */
	.nh-page-content .nh-shared-contacts > .nh-contact-card {
		flex-basis: min(340px, calc(100% - 32px));
	}

	.nh-page-content .nh-company-weekly-menu .nh-weekdays-track > .nh-company-menu-panel {
		flex-basis: min(340px, calc(100% - 30px));
	}

	/* White cards need room for their inset icons to provide a recognizable cue. */
	.nh-page-content .nh-section-services .nh-strip-track > .nh-card {
		flex-basis: min(340px, calc(100% - 52px));
	}
}

@media (701px <= width <= 1000px) {
	.nh-section-services .nh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nh-section-services .nh-grid > .nh-card:last-child {
		grid-column: auto;
	}

	.nh-section-services .nh-section-heading,
	.nh-page-home .nh-home-activities .nh-section-heading,
	.nh-home-network-intro {
		grid-template-columns: minmax(0, 1fr);
	}

	.nh-section-services .nh-section-heading h2,
	.nh-page-home .nh-home-activities .nh-section-heading h2,
	.nh-home-network-intro .nh-home-title {
		grid-column: 1;
		max-width: none;
		overflow-wrap: normal;
	}
}

@media (width < 380px) {
	.nh-section-services .nh-section-heading h2,
	.nh-home-network-intro .nh-home-title {
		font-size: clamp(32px, calc(13.333vw - 10.667px), 40px);
		overflow-wrap: normal;
	}
}

@media (701px <= width <= 1199px) {
	.nh-section-benefits .nh-strip-controls,
	.nh-testimonial-strip .nh-strip-controls,
	.nh-page-service .nh-service-benefits .nh-strip-controls,
	.nh-page-home .nh-home-activities .nh-strip-controls {
		position: static;
		margin: 0 0 20px;
	}
}
