/* QualityEdge Hotspots — frontend */
.qehs {
	--qehs-ink: #16181d;
	--qehs-muted: #6e7681;
	--qehs-panel: #f7f7f7;
	--qehs-accent: #16181d;
	/* Explicit stack (overridable via --qehs-font): never inherit a monospace
	   or otherwise wrong font from an ancestor such as a pre/code block. */
	font-family: var(--qehs-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif) !important;
	/* Kill white-space:pre from any ancestor: otherwise our markup's
	   newlines render as visible blank space and break alignment. */
	white-space: normal !important;
	font-size: 16px;
	line-height: 1.5;
	width: 100%;
}
.qehs-stage, .qehs-view { line-height: 0 !important; }
.qehs *,
.qehs *::before,
.qehs *::after { box-sizing: border-box; }

/* Theme hardening: Salient/WPBakery globals must not restyle our controls
   or force pre/nowrap formatting onto card text. */
.qehs button,
.qehs a,
.qehs input {
	font-family: inherit !important;
	letter-spacing: inherit;
}
.qehs .qehs-card-title,
.qehs .qehs-card-desc,
.qehs .qehs-card-desc *,
.qehs .qehs-card-footnote,
.qehs .qehs-hint,
.qehs .qehs-card-cta {
	font-family: inherit !important;
	white-space: normal !important;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* ---------- Tabs ---------- */
.qehs-tabs {
	display: flex;
	gap: 34px;
	margin-bottom: 16px;
}
.qehs .qehs-tab {
	appearance: none !important;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 0 10px !important;
	margin: 0 !important;
	cursor: pointer;
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.18em !important;
	text-transform: uppercase;
	color: #6e7681;
	border-bottom: 2px solid transparent !important;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.qehs .qehs-tab:hover { color: var(--qehs-ink); }
.qehs .qehs-tab.is-active {
	color: var(--qehs-ink);
	border-bottom-color: var(--qehs-ink) !important;
}
.qehs .qehs-tab:focus-visible {
	outline: 2px solid var(--qehs-ink);
	outline-offset: 4px;
}

/* ---------- Layout: stage + card ---------- */
.qehs-body {
	display: flex;
	align-items: stretch;
	gap: 0;
}
.qehs-stage {
	position: relative;
	flex: 1 1 100%;
	min-width: 0;
	transition: flex-basis 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.qehs.is-open .qehs-stage { flex: 1 1 64%; }

.qehs-view { display: none; position: relative; line-height: 0; }
.qehs-view.is-active { display: block; }
.qehs-view-img { width: 100%; height: auto; display: block; }

/* ---------- Markers ---------- */
.qehs .qehs-marker {
	appearance: none !important;
	-webkit-appearance: none !important;
	position: absolute;
	width: 36px !important;
	height: 36px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: -18px 0 0 -18px !important;
	padding: 0 !important;
	border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
	border-radius: 50% !important;
	background: rgba(30, 30, 30, 0.10) !important;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18) !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	line-height: 0 !important;
	transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
	z-index: 2;
}
.qehs-marker::before {
	content: "";
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.8);
	opacity: 0;
	animation: qehs-pulse 2.6s ease-out infinite;
}
@keyframes qehs-pulse {
	0%   { transform: scale(0.75); opacity: 0.8; }
	70%  { transform: scale(1.3); opacity: 0; }
	100% { transform: scale(1.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.qehs-marker::before { animation: none; }
	.qehs-stage, .qehs-card { transition: none !important; }
}
.qehs .qehs-marker:hover { transform: scale(1.1); }
.qehs .qehs-marker:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.qehs-marker-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #fff;
	border: none;
	transition: background 0.25s ease;
}
/* Active: white fill, dark dot, large soft translucent halo (Range Rover style) */
.qehs .qehs-marker.is-active {
	background: #fff !important;
	box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.38), 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}
.qehs .qehs-marker.is-active::before { animation: none; opacity: 0; }
.qehs .qehs-marker.is-active .qehs-marker-dot { background: #16181d; }

/* Filled dot style variant (per-display setting) */
.qehs-dots-filled .qehs-marker { background: rgba(255, 255, 255, 0.92) !important; }
.qehs-dots-filled .qehs-marker .qehs-marker-dot { background: #16181d; }

/* ---------- "Tap to explore" hint ---------- */
.qehs-hint {
	position: absolute;
	transform: translate(24px, -50%);
	background: rgba(12, 18, 28, 0.85);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 7px 12px;
	border-radius: 3px;
	white-space: nowrap;
	pointer-events: none;
	z-index: 3;
	line-height: 1.3;
	animation: qehs-hint-in 0.5s ease 1s both;
	transition: opacity 0.3s ease;
}
.qehs-hint::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 50%;
	margin-top: -5px;
	border: 5px solid transparent;
	border-left: none;
	border-right-color: rgba(12, 18, 28, 0.85);
}
.qehs-hint.is-dismissed { opacity: 0; }
@keyframes qehs-hint-in {
	from { opacity: 0; transform: translate(16px, -50%); }
	to   { opacity: 1; transform: translate(24px, -50%); }
}
@media (prefers-reduced-motion: reduce) {
	.qehs-hint { animation: none; }
}

/* ---------- Card ---------- */
.qehs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 0 0 0%;
	max-width: 0;
	min-width: 0;
	overflow: hidden;
	opacity: 0;
	background: var(--qehs-panel);
	transition: flex-basis 0.5s cubic-bezier(0.4, 0, 0.2, 1),
		max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.35s ease 0.15s;
}
.qehs.is-open .qehs-card {
	flex: 0 0 36%;
	max-width: 36%;
	opacity: 1;
	margin-left: 14px;
}

/* Content scrolls if taller than the image; CTA stays pinned at the bottom. */
.qehs-card-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-bottom: 4px;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}
.qehs-card-scroll::-webkit-scrollbar { width: 6px; }
.qehs-card-scroll::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.25);
	border-radius: 3px;
}
.qehs-card-media {
	margin: 24px 24px 14px;
	line-height: 0;
	flex: 0 0 auto;
}
.qehs-card-media img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.15s ease;
}
.qehs-card-media img.is-fading { opacity: 0; }
.qehs-card-media.is-empty { display: none; }

.qehs-card-close {
	appearance: none;
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	margin: 0;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--qehs-ink);
	z-index: 3;
}
.qehs-card-close:hover { background: #fff; }

.qehs-card-dots {
	display: flex;
	gap: 14px;
	margin: 0 24px 14px;
}
.qehs-card-dots:empty { display: none; }
.qehs .qehs-dot {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: block !important;
	width: 10px !important;
	height: 10px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	border: 1.5px solid var(--qehs-ink) !important;
	background: transparent !important;
	box-shadow: none !important;
	line-height: 0 !important;
	font-size: 0 !important;
	cursor: pointer;
	transition: background 0.2s ease;
}
.qehs .qehs-dot.is-active { background: var(--qehs-ink) !important; }
.qehs .qehs-dot:focus-visible { outline: 2px solid var(--qehs-ink); outline-offset: 3px; }

.qehs .qehs-card-title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--qehs-ink);
	margin: 0 24px 10px !important;
	padding: 0 !important;
	line-height: 1.4 !important;
}
.qehs .qehs-card-desc {
	font-size: 15px;
	line-height: 1.6 !important;
	color: #3c4148;
	margin: 0 24px 16px !important;
}
.qehs .qehs-card-desc p {
	margin: 0 0 0.8em !important;
	padding: 0 !important;
	font-size: inherit !important;
	line-height: inherit !important;
}
.qehs .qehs-card-desc p:last-child { margin-bottom: 0 !important; }
.qehs .qehs-card-desc a { color: var(--qehs-accent); text-decoration: underline; }
.qehs .qehs-card-footnote {
	font-size: 12px;
	color: #8a9098;
	margin: 0 24px 20px !important;
	line-height: 1.5 !important;
}
.qehs .qehs-card-footnote:empty { display: none; }

.qehs .qehs-card-cta {
	flex: 0 0 auto;
	align-self: flex-start;
	display: inline-block;
	margin: 14px 24px 24px;
	padding: 12px 26px !important;
	background: var(--qehs-accent) !important;
	color: #fff !important;
	font-size: 12.5px !important;
	font-weight: 600;
	letter-spacing: 0.12em !important;
	text-transform: uppercase;
	text-decoration: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transition: opacity 0.2s ease;
}
.qehs .qehs-card-cta:hover { opacity: 0.85; color: #fff !important; }
.qehs .qehs-card-cta:focus-visible { outline: 2px solid var(--qehs-ink); outline-offset: 3px; }

/* ---------- Mobile: card drops below ---------- */
@media (max-width: 900px) {
	.qehs-body { flex-direction: column; }
	.qehs.is-open .qehs-stage { flex: 1 1 auto; }
	.qehs-card,
	.qehs.is-open .qehs-card {
		flex: 1 1 auto;
		max-width: 100%;
		margin-left: 0;
	}
	.qehs-card {
		max-height: 0;
		transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease 0.1s;
	}
	.qehs.is-open .qehs-card {
		max-height: 1200px !important; /* overrides desktop JS height cap */
		margin-top: 14px;
	}
	.qehs-card-scroll { overflow-y: visible; }
	.qehs .qehs-marker {
		width: 30px !important;
		height: 30px !important;
		margin: -15px 0 0 -15px !important;
	}
}
