/* REBUILD-0083 STORE LOCATOR VISUAL 90-TO-95 PAGE LAYER
 * Page 278 keeps the native editable directory and recovery links. This layer
 * only restores the source-observed quiet locator field, endpoint rhythm and
 * H1/prompt hierarchy. It adds no map, search, geolocation or data behavior. */

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) {
	--dscr-locator-field: #f1f3f4;
	--dscr-locator-field-line: rgb(40 40 40 / 8%);
	--dscr-locator-panel: rgb(248 248 248 / 96%);
	--dscr-locator-card: rgb(255 255 255 / 94%);
	--dscr-locator-warm: rgb(255 135 20 / 16%);
	--dscr-locator-radius: clamp(1rem, 2.4vw, 1.5rem);
}

body.page-id-278 main.dscr-page {
	position: relative;
	isolation: isolate;
	padding-inline: 0 !important;
	background:
		radial-gradient(circle at 8% 12%, rgb(255 135 20 / 9%) 0 5rem, transparent 16rem),
		linear-gradient(180deg, var(--wp--preset--color--base) 0, #fbfaf8 60%, var(--wp--preset--color--base) 100%);
	overflow: clip;
}

body.page-id-278 main.dscr-page::before {
	position: absolute;
	top: clamp(14rem, 30vw, 30rem);
	right: clamp(-10rem, -8vw, -5rem);
	z-index: -1;
	width: clamp(18rem, 34vw, 34rem);
	aspect-ratio: 1;
	border: 1px solid rgb(255 135 20 / 10%);
	border-radius: 50%;
	background: radial-gradient(circle, rgb(255 135 20 / 7%) 0 37%, transparent 38% 100%);
	content: "";
	pointer-events: none;
}

body.page-id-278 .dscr-page__heading,
body.page-id-278 .dscr-page__content {
	width: min(calc(100% - 30px), 1280px);
	max-width: 1280px !important;
	margin-inline: auto !important;
	background: var(--dscr-locator-panel) !important;
	box-sizing: border-box;
}

body.page-id-278 .dscr-page__heading {
	padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(0.75rem, 2vw, 1.25rem) !important;
	border-radius: var(--dscr-locator-radius) var(--dscr-locator-radius) 0 0 !important;
}

body.page-id-278 .dscr-page__heading .wp-block-post-title {
	max-width: 18ch;
	margin: 0 auto !important;
	font-size: clamp(2.25rem, 4vw, 3.5rem) !important;
	font-weight: 800;
	line-height: 1.02 !important;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

body.page-id-278 .dscr-page__content {
	margin-block-start: 0 !important;
	padding: 0 clamp(1.25rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem) !important;
	border-radius: 0 0 var(--dscr-locator-radius) var(--dscr-locator-radius) !important;
	box-shadow: 0 1.75rem 4.5rem rgb(40 40 40 / 8%) !important;
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator {
	position: relative;
	width: 100%;
	max-width: none !important;
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator__eyebrow {
	margin-block-end: clamp(0.55rem, 1.5vw, 0.85rem) !important;
	color: var(--wp--preset--color--accent-contrast);
	font-size: 0.72rem;
	line-height: 1.25;
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator > h2 {
	max-width: 23ch;
	margin-block-end: clamp(0.75rem, 2vw, 1.15rem) !important;
	font-size: clamp(2rem, 3.2vw, 2.85rem) !important;
	font-weight: 800;
	line-height: 1.04 !important;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator__intro {
	max-width: 58ch;
	margin-block-end: clamp(1.5rem, 3.5vw, 2.5rem) !important;
	font-size: clamp(1rem, 0.25vw + 1rem, 1.125rem);
	line-height: 1.62;
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator__directory {
	position: relative;
	isolation: isolate;
	min-height: 29rem;
	align-items: end;
	gap: clamp(0.75rem, 1.5vw, 1rem) !important;
	margin-block: 0 clamp(1rem, 2.5vw, 1.5rem) !important;
	padding: 12rem clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem) !important;
	border: 1px solid rgb(40 40 40 / 10%);
	border-radius: var(--dscr-locator-radius);
	background:
		radial-gradient(circle at 14% 22%, rgb(255 135 20 / 68%) 0 0.28rem, rgb(255 255 255 / 96%) 0.3rem 0.58rem, transparent 0.62rem),
		radial-gradient(circle at 76% 16%, rgb(255 135 20 / 52%) 0 0.22rem, rgb(255 255 255 / 94%) 0.24rem 0.5rem, transparent 0.54rem),
		linear-gradient(124deg, transparent 0 22%, var(--dscr-locator-field-line) 22.2% 22.8%, transparent 23% 60%, var(--dscr-locator-field-line) 60.2% 60.8%, transparent 61%),
		linear-gradient(36deg, transparent 0 36%, var(--dscr-locator-field-line) 36.2% 36.8%, transparent 37% 74%, var(--dscr-locator-field-line) 74.2% 74.8%, transparent 75%),
		var(--dscr-locator-field);
	overflow: hidden;
	box-sizing: border-box;
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator__directory::before {
	position: absolute;
	top: 12%;
	left: 10%;
	z-index: -1;
	width: 54%;
	height: 42%;
	border: 2px dashed rgb(255 135 20 / 22%);
	border-radius: 48% 52% 60% 40% / 54% 42% 58% 46%;
	content: "";
	pointer-events: none;
	transform: rotate(-5deg);
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator__directory::after {
	position: absolute;
	top: clamp(2rem, 8%, 3.5rem);
	right: clamp(1.75rem, 8%, 5rem);
	z-index: -1;
	width: clamp(2.75rem, 5vw, 4.25rem);
	aspect-ratio: 1;
	border: 1px solid rgb(255 135 20 / 42%);
	border-radius: 50% 50% 50% 0;
	background: radial-gradient(circle at 56% 44%, var(--dscr-locator-field) 0 24%, var(--wp--preset--color--accent) 26% 45%, #fff 47% 100%);
	box-shadow: 0 0.75rem 1.5rem rgb(40 40 40 / 10%);
	content: "";
	pointer-events: none;
	transform: rotate(-45deg);
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator__directory > .dscr-store-locator__card {
	position: relative;
	z-index: 1;
	min-height: 13.25rem;
	padding: clamp(1rem, 2vw, 1.35rem) !important;
	border-color: rgb(40 40 40 / 13%);
	background: var(--dscr-locator-card);
	box-shadow: 0 0.75rem 2rem rgb(40 40 40 / 7%);
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator__card h3 {
	font-size: clamp(1.12rem, 1.3vw, 1.3rem);
	letter-spacing: -0.015em;
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator__visit-note,
:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator__recovery {
	position: relative;
	padding: clamp(1.25rem, 3vw, 2rem) !important;
	border: 1px solid rgb(40 40 40 / 10%);
	border-inline-start: 4px solid var(--wp--preset--color--accent);
	border-radius: clamp(0.8rem, 1.8vw, 1rem);
	box-shadow: 0 0.65rem 1.75rem rgb(40 40 40 / 5%);
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator__visit-note {
	margin-block-end: clamp(0.75rem, 1.8vw, 1rem) !important;
	background: linear-gradient(135deg, rgb(232 243 239 / 96%), rgb(248 248 248 / 96%));
}

:where(body.page-id-278, .editor-styles-wrapper:has(.dscr-store-locator)) .dscr-store-locator__recovery {
	background: linear-gradient(135deg, rgb(255 242 228 / 96%), rgb(248 248 248 / 96%));
}

@media (max-width: 767px) {
	body.page-id-278 main.dscr-page {
		padding-block: 1.25rem 3.5rem !important;
		background: var(--wp--preset--color--base);
		overflow: visible;
	}

	body.page-id-278 main.dscr-page::before {
		display: none;
	}

	body.page-id-278 .dscr-page__heading,
	body.page-id-278 .dscr-page__content {
		width: calc(100% - 30px);
	}

	body.page-id-278 .dscr-page__heading {
		padding: 1.35rem 1rem 0.8rem !important;
	}

	body.page-id-278 .dscr-page__heading .wp-block-post-title {
		margin-inline: 0 !important;
		font-size: clamp(2.15rem, 9.5vw, 2.4rem) !important;
	}

	body.page-id-278 .dscr-page__content {
		padding: 0 0.75rem 0.75rem !important;
	}

	body.page-id-278 .dscr-store-locator__eyebrow,
	body.page-id-278 .dscr-store-locator > h2,
	body.page-id-278 .dscr-store-locator__intro {
		margin-inline: 0 !important;
		text-align: start;
	}

	body.page-id-278 .dscr-store-locator > h2 {
		max-width: 18ch;
		font-size: clamp(1.9rem, 8vw, 2.15rem) !important;
		line-height: 1.06 !important;
	}

	body.page-id-278 .dscr-store-locator__directory {
		grid-template-columns: 1fr;
		min-height: 61rem;
		padding: 20rem 0.75rem 0.75rem !important;
	}

	body.page-id-278 .dscr-store-locator__directory > .dscr-store-locator__card {
		min-height: 13.25rem;
	}

	body.page-id-278 .dscr-store-locator__visit-note,
	body.page-id-278 .dscr-store-locator__recovery {
		padding: 1.1rem !important;
	}
}

/* At the narrowest supported endpoint, preserve the full intro at its current
 * type size while reserving a quiet band for the fixed 70px App Utility. The
 * wider mobile/tablet compositions already place the Utility over the locator
 * field and therefore remain unchanged. */
@media (max-width: 359px) {
	body.page-id-278 .dscr-store-locator__intro {
		margin-block-start: 7rem !important;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	body.page-id-278 main.dscr-page {
		padding-block-start: 2rem !important;
	}

	body.page-id-278 .dscr-page__heading {
		padding-inline: 2rem !important;
	}

	body.page-id-278 .dscr-page__content {
		padding-inline: 2rem !important;
	}

	body.page-id-278 .dscr-store-locator__eyebrow,
	body.page-id-278 .dscr-store-locator > h2,
	body.page-id-278 .dscr-store-locator__intro {
		margin-inline: auto !important;
		text-align: center;
	}

	body.page-id-278 .dscr-store-locator__directory {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-height: 56rem;
		padding: 27rem 1rem 1rem !important;
	}
}

@media (min-width: 1024px) {
	body.page-id-278 .dscr-store-locator__eyebrow,
	body.page-id-278 .dscr-store-locator > h2,
	body.page-id-278 .dscr-store-locator__intro {
		margin-inline: auto !important;
		text-align: center;
	}

	body.page-id-278 .dscr-store-locator__directory {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.page-id-278 .dscr-store-locator__visit-note,
	body.page-id-278 .dscr-store-locator__recovery {
		width: 100%;
		max-width: none !important;
		margin-inline: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.page-id-278 main.dscr-page,
	body.page-id-278 main.dscr-page::before,
	body.page-id-278 .dscr-store-locator__directory,
	body.page-id-278 .dscr-store-locator__directory::before,
	body.page-id-278 .dscr-store-locator__directory::after {
		animation: none !important;
	}
}
