/**
 * Exact Our Team functional-repair states.
 *
 * The existing Elementor grid, card dimensions and premium visual treatment
 * remain the layout owners. These rules only expose loading/focus/status state
 * for the repaired Dentists pagination control on page 12009.
 */

body.az-premium-site.az-premium-team-repairs.page-id-12009
	.elementor-element-cb0783c
	.e-loop__load-more[hidden] {
	display: none !important;
}

body.az-premium-site.az-premium-team-repairs.page-id-12009
	.elementor-element-cb0783c.az-team-loading
	.e-loop__load-more
	.elementor-button {
	opacity: 0.72;
	pointer-events: none;
}

body.az-premium-site.az-premium-team-repairs.page-id-12009
	.elementor-element-cb0783c.az-team-loading
	.e-load-more-spinner {
	display: inline-flex !important;
}

body.az-premium-site.az-premium-team-repairs.page-id-12009
	.elementor-element-cb0783c
	.e-loop__load-more
	.elementor-button:focus-visible {
	outline: 3px solid var(--az-focus, #f2b7ed);
	outline-offset: 3px;
}

body.az-premium-site.az-premium-team-repairs.page-id-12009
	.elementor-element-cb0783c
	.e-load-more-message[role='status']:empty {
	display: none;
}

/* Keep every dentist card surface and its action aligned to the grid row. */
body.az-premium-site.az-premium-team-repairs.page-id-12009
	.elementor-element-cb0783c
	.e-loop-item {
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
}

body.az-premium-site.az-premium-team-repairs.page-id-12009
	.elementor-element-cb0783c
	.e-loop-item > .elementor-element-107b74f {
	flex: 1 1 auto;
	width: 100%;
	height: auto !important;
	box-sizing: border-box;
}

body.az-premium-site.az-premium-team-repairs.page-id-12009
	.elementor-element-cb0783c
	.e-loop-item
	.elementor-element-107b74f
	.elementor-element-5f1237e {
	margin-top: auto;
}

/*
 * Individual clinician templates begin 24px beneath the high-z-index header.
 * Restore a deliberate gap so the name, portrait and opening biography remain
 * fully visible at desktop and mobile sizes.
 */
body.az-premium-site.az-premium-team-repairs.single-team_members main#content {
	margin-top: clamp(36px, 3vw, 48px) !important;
}

/*
 * Two legacy clinician records use Elementor's full-width document directly
 * under <body> rather than the normal main#content wrapper. Give that exact
 * document root the same clearance so its portrait and name cannot sit behind
 * the site header.
 */
body.az-premium-site.az-premium-team-repairs.single-team_members
	> .elementor:not(.elementor-location-header):not(.elementor-location-footer) {
	margin-top: clamp(36px, 3vw, 48px) !important;
}

/* Oldest clinician entry: its profile HTML is attached directly to <body>. */
body.az-premium-site.az-premium-team-repairs.single-team_members
	> h1:first-of-type {
	margin-top: clamp(36px, 3vw, 48px) !important;
}

/* Three archival staff entries start with a raw paragraph and floated photo. */
body.az-premium-site.az-premium-team-repairs.single-team_members
	> .elementor-location-header + p {
	margin-top: clamp(36px, 3vw, 48px) !important;
}

body.az-premium-site.az-premium-team-repairs.single-team_members
	main#content > :first-child {
	margin-top: 0 !important;
}

@media (max-width: 767px) {
	body.az-premium-site.az-premium-team-repairs.single-team_members main#content {
		margin-top: 56px !important;
	}

	body.az-premium-site.az-premium-team-repairs.single-team_members
		> .elementor:not(.elementor-location-header):not(.elementor-location-footer) {
		margin-top: 56px !important;
	}

	body.az-premium-site.az-premium-team-repairs.single-team_members
		> h1:first-of-type {
		margin-top: 56px !important;
	}

	body.az-premium-site.az-premium-team-repairs.single-team_members
		> .elementor-location-header + p {
		margin-top: 56px !important;
	}
}

@media (max-width: 360px) {
	body.az-premium-site.az-premium-team-repairs.single-team_members main#content {
		margin-top: 64px !important;
	}

	body.az-premium-site.az-premium-team-repairs.single-team_members
		> .elementor:not(.elementor-location-header):not(.elementor-location-footer) {
		margin-top: 64px !important;
	}

	body.az-premium-site.az-premium-team-repairs.single-team_members
		> h1:first-of-type {
		margin-top: 64px !important;
	}

	body.az-premium-site.az-premium-team-repairs.single-team_members
		> .elementor-location-header + p {
		margin-top: 64px !important;
	}

	body.az-premium-site.az-premium-team-repairs.page-id-12009
		footer[data-elementor-id='13883']
		.elementor-element-48d481e7
		a[href^='mailto:'] {
		overflow-wrap: anywhere;
		word-break: break-word;
	}
}
