/* ==========================================================================
   hospital-01hpx — main stylesheet
   Mobile first (base = 360px). Enhancements at 480 / 768 / 1024 / 1280.
   Calm, refined: DM Sans, weights 400–600, hairlines, soft shadows.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	/* Base tokens (overridden by Hospital Settings via #hpx-vars). */
	--hpx-primary: #1f5f99;
	--hpx-secondary: #13253b;
	--hpx-accent: #c7705f;
	--hpx-emergency: #c8323a;
	--hpx-ink: #1b2532;
	--hpx-bg: #fbfbfa;
	--hpx-surface: #ffffff;
	--hpx-surface-2: #f6f4f0;
	--hpx-footer-bg: #f1f5f9;
	--hpx-tint-1: #f3f1fb;
	--hpx-tint-2: #fbf8ec;
	--hpx-tint-3: #edf5fb;
	--hpx-tint-4: #fcefec;
	--hpx-radius: 14px;
	--hpx-btn-radius: 999px;
	--hpx-heading-weight: 500;
	--hpx-container: 1240px;
	--hpx-space-scale: 1;
	--hpx-mspace-scale: 1;
	--hpx-font-size: 1rem;
	--hpx-line-height: 1.65;
	--hpx-font: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
	--hpx-logo-h: 40px;
	--hpx-hero-overlay: .45;

	/* Spacing (8px grid) */
	--hpx-space-1: .5rem;
	--hpx-space-2: 1rem;
	--hpx-space-3: 1.5rem;
	--hpx-space-4: 2rem;
	--hpx-space-6: 3rem;
	--hpx-space-8: 4rem;
	--hpx-gutter: 16px;
	--hpx-section-y: calc(3.5rem * var(--hpx-mspace-scale));
	--hpx-header-h: 60px;

	/* Motion */
	--hpx-ease: cubic-bezier(.2, .7, .2, 1);
	--hpx-dur: 200ms;
	--hpx-tap: 48px;
}

/* Derived tokens. Re-declared on scopes that change base tokens (footer, bands). */
:root,
.hpx-footer,
.hpx-cta-band,
.hpx-hero--overlay .hpx-hero__content,
.hpx-transparent-header .hpx-header:not(.is-scrolled) {
	--hpx-muted: color-mix(in srgb, var(--hpx-ink) 66%, var(--hpx-bg));
	--hpx-border: color-mix(in srgb, var(--hpx-ink) 9%, transparent);
	--hpx-border-strong: color-mix(in srgb, var(--hpx-ink) 17%, transparent);
	--hpx-link: var(--hpx-primary);
	--hpx-primary-soft: color-mix(in srgb, var(--hpx-primary) 9%, var(--hpx-surface));
	--hpx-primary-softer: color-mix(in srgb, var(--hpx-primary) 4.5%, var(--hpx-surface));
	--hpx-primary-strong: color-mix(in srgb, var(--hpx-primary) 80%, #000);
	--hpx-accent-soft: color-mix(in srgb, var(--hpx-accent) 15%, var(--hpx-surface));
	--hpx-accent-ink: color-mix(in srgb, var(--hpx-accent) 68%, var(--hpx-ink));
	--hpx-emergency-soft: color-mix(in srgb, var(--hpx-emergency) 8%, var(--hpx-surface));
	--hpx-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
	--hpx-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
	--hpx-shadow-lg: 0 2px 6px rgba(15, 23, 42, .04), 0 18px 48px rgba(15, 23, 42, .1);
	--hpx-radius-sm: max(8px, calc(var(--hpx-radius) * .6));
	--hpx-radius-lg: calc(var(--hpx-radius) * 1.45);
}

@media (min-width: 768px) {
	:root { --hpx-gutter: 24px; }
}
@media (min-width: 1024px) {
	:root {
		--hpx-section-y: calc(6rem * var(--hpx-space-scale));
		--hpx-header-h: 72px;
	}
}
@media (min-width: 1280px) {
	:root { --hpx-gutter: 32px; }
}

/* Dark mode (visitor toggle / device preference, see Design settings).
   Specificity sits above the settings tokens (:root:not(#hpx)). */
:root[data-theme="dark"]:not(#hpx) {
	--hpx-bg: #0e131a;
	--hpx-surface: #151b24;
	--hpx-surface-2: #121821;
	--hpx-ink: #e6eaf0;
	--hpx-footer-bg: #0b1016;
	--hpx-tint-1: color-mix(in srgb, #8b7fd6 10%, #151b24);
	--hpx-tint-2: color-mix(in srgb, #d6b85a 9%, #151b24);
	--hpx-tint-3: color-mix(in srgb, #5aa2d6 10%, #151b24);
	--hpx-tint-4: color-mix(in srgb, #d6765a 10%, #151b24);
	color-scheme: dark;
}
:root[data-theme="dark"]:not(#hpx),
[data-theme="dark"] .hpx-footer,
[data-theme="dark"] .hpx-cta-band {
	--hpx-link: color-mix(in srgb, var(--hpx-primary) 55%, #fff);
	--hpx-accent-ink: color-mix(in srgb, var(--hpx-accent) 55%, #fff);
	--hpx-border: rgba(255, 255, 255, .08);
	--hpx-border-strong: rgba(255, 255, 255, .16);
	--hpx-primary-soft: color-mix(in srgb, var(--hpx-primary) 22%, var(--hpx-surface));
	--hpx-primary-softer: color-mix(in srgb, var(--hpx-primary) 10%, var(--hpx-surface));
	--hpx-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
	--hpx-shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .4);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--hpx-header-offset, var(--hpx-header-h)) + 64px);
}
body {
	margin: 0;
	background: var(--hpx-bg);
	color: var(--hpx-ink);
	font-family: var(--hpx-font);
	font-size: max(16px, var(--hpx-font-size));
	line-height: var(--hpx-line-height);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word; /* long emails / URLs / names wrap instead of widening the page */
}
/* Safety net: nothing may widen the page sideways on phones. `clip` (unlike
   `hidden`) creates no scroll container, so the sticky header keeps working. */
.wp-site-blocks { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4, h5, h6 {
	font-weight: var(--hpx-heading-weight);
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--hpx-ink);
	text-wrap: balance;
	margin: 0;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--hpx-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--hpx-primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--hpx-primary-soft); color: var(--hpx-ink); }
[hidden] { display: none !important; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus { z-index: 1000; }

.hpx-icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }

/* 3. Layout ---------------------------------------------------------------- */
.hpx-container {
	width: 100%;
	max-width: calc(var(--hpx-container) + 2 * var(--hpx-gutter));
	margin-inline: auto;
	padding-inline: var(--hpx-gutter);
}
.hpx-narrow {
	width: min(760px, 100% - 2 * var(--hpx-gutter));
	margin-inline: auto;
}
.wp-site-blocks > * + * { margin-block-start: 0; }
.hpx-main { display: block; overflow-x: clip; }
.hpx-main > * + * { margin-block-start: 0; }
.hpx-page-body { padding-block: 2rem 4rem; }
@media (min-width: 1024px) { .hpx-page-body { padding-block: 3rem 6rem; } }

.hpx-section { padding-block: var(--hpx-section-y); }
.hpx-section--tight { padding-block: calc(var(--hpx-section-y) * .5); }
.hpx-bg--alt { background: var(--hpx-surface-2); }
.hpx-bg--tint { background: var(--hpx-primary-softer); }
/* Collapse doubled padding between neighbours that share a background. */
.hpx-bg--default + .hpx-bg--default:not(.hpx-section--tight),
.hpx-bg--alt + .hpx-bg--alt,
.hpx-bg--tint + .hpx-bg--tint { padding-top: 0; }
.hpx-hero + .hpx-bg--default { padding-top: calc(var(--hpx-section-y) * .5); }

@media (max-width: 1023px) { .hpx-only-desktop { display: none !important; } }
@media (min-width: 1024px) { .hpx-only-mobile { display: none !important; } }

/* Post content: prose constrained, hospital sections full width. */
.hpx-content > :where(:not(.alignfull):not(.alignwide):not(section):not(.hpx-section):not(.wp-block-hpx-hero)) {
	width: min(760px, 100% - 2 * var(--hpx-gutter));
	margin-inline: auto;
}
.hpx-content > .alignwide { width: min(var(--hpx-container), 100% - 2 * var(--hpx-gutter)); margin-inline: auto; }
.hpx-content > :where(:not(section)) + :where(:not(section)) { margin-block-start: 1.25rem; }
.hpx-content > :where(:not(section)):first-child { margin-top: 2rem; }
.hpx-content > :where(:not(section)):last-child { margin-bottom: 4rem; }
.hpx-content:empty { display: none; }

/* 4. Typography helpers ---------------------------------------------------- */
.hpx-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .625rem;
	margin: 0 0 .75rem;
	color: var(--hpx-link);
	font-size: .875rem;
	font-weight: 500;
	letter-spacing: .02em;
}
.hpx-eyebrow::before { content: ""; width: 20px; height: 1.5px; background: currentColor; opacity: .6; border-radius: 2px; }
.hpx-section-title { font-size: clamp(1.375rem, 1.2rem + .9vw, 2rem); }
.hpx-section-sub { margin-top: .625rem; color: var(--hpx-muted); max-width: 60ch; }

.hpx-section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.hpx-section-head--center { align-items: center; text-align: center; }
.hpx-section-head__end { display: flex; align-items: center; gap: 1rem; }
@media (min-width: 768px) {
	.hpx-section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 2.25rem; }
	.hpx-section-head__end { flex: none; }
}

.hpx-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	color: var(--hpx-link);
	font-weight: 500;
	font-size: .9375rem;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	text-underline-offset: 5px;
	min-height: 44px;
}
.hpx-link-arrow .hpx-icon { width: 18px; height: 18px; transition: transform var(--hpx-dur) var(--hpx-ease); }
.hpx-link-arrow:hover .hpx-icon { transform: translateX(3px); }

.hpx-prose { color: var(--hpx-ink); }
.hpx-prose > * + *, .hpx-content .wp-block-list li + li { margin-top: .875em; }
.hpx-prose p, .hpx-content p { max-width: 70ch; }
.hpx-prose ul, .hpx-prose ol { padding-left: 1.25em; }
.hpx-content h2 { margin-top: 2.5rem; }
.hpx-content h3 { margin-top: 2rem; }
.hpx-content img { border-radius: var(--hpx-radius-sm); }
.hpx-content blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 2px solid var(--hpx-primary); color: var(--hpx-muted); }

/* 5. Buttons, chips, badges ------------------------------------------------ */
.hpx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: var(--hpx-tap);
	padding: 0 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--hpx-btn-radius);
	font: 500 1rem/1 var(--hpx-font);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background var(--hpx-dur) var(--hpx-ease), border-color var(--hpx-dur) var(--hpx-ease), color var(--hpx-dur) var(--hpx-ease), transform var(--hpx-dur) var(--hpx-ease), box-shadow var(--hpx-dur) var(--hpx-ease);
	-webkit-tap-highlight-color: transparent;
}
.hpx-btn:active { transform: scale(.98); }
.hpx-btn .hpx-icon { width: 18px; height: 18px; }
.hpx-btn--primary { background: var(--hpx-primary); color: #fff; }
.hpx-btn--primary:hover { background: var(--hpx-primary-strong); color: #fff; }
.hpx-btn--soft { background: var(--hpx-accent-soft); color: var(--hpx-accent-ink); }
.hpx-btn--soft:hover { background: color-mix(in srgb, var(--hpx-accent) 24%, var(--hpx-surface)); color: var(--hpx-accent-ink); }
.hpx-btn--outline { background: var(--hpx-surface); border-color: var(--hpx-border-strong); color: var(--hpx-ink); }
.hpx-btn--outline:hover { border-color: var(--hpx-primary); color: var(--hpx-link); }
.hpx-btn--light { background: #fff; color: var(--hpx-primary-strong); }
.hpx-btn--light:hover { background: color-mix(in srgb, #fff 88%, var(--hpx-primary)); color: var(--hpx-primary-strong); }
.hpx-btn--ghost-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hpx-btn--ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hpx-btn--sm { min-height: 44px; padding: 0 1rem; font-size: .9375rem; }
.hpx-btn--lg { min-height: 52px; padding: 0 1.5rem; }
.hpx-btn--block { width: 100%; }
/* Tiny screens: let long button labels wrap rather than overflow their column. */
@media (max-width: 479px) { .hpx-btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: .5rem; max-width: 100%; } }

.hpx-split-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--hpx-tap);
	padding: 0 .75rem;
	font-size: .9375rem;
	font-weight: 500;
	color: var(--hpx-ink);
	text-decoration: none;
	background: var(--hpx-surface);
	transition: background var(--hpx-dur) var(--hpx-ease), color var(--hpx-dur) var(--hpx-ease);
}
.hpx-split-btn:hover { background: var(--hpx-primary-softer); color: var(--hpx-link); }
.hpx-split-btn--accent { background: var(--hpx-accent-soft); color: var(--hpx-accent-ink); }
.hpx-split-btn--accent:hover { background: color-mix(in srgb, var(--hpx-accent) 24%, var(--hpx-surface)); color: var(--hpx-accent-ink); }

.hpx-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hpx-ink);
	cursor: pointer;
	text-decoration: none;
	transition: background var(--hpx-dur) var(--hpx-ease), color var(--hpx-dur) var(--hpx-ease);
}
.hpx-icon-btn:hover { background: var(--hpx-primary-softer); color: var(--hpx-link); }
.hpx-icon-btn--emergency { background: var(--hpx-emergency-soft); color: var(--hpx-emergency); }
.hpx-icon-btn--emergency:hover { background: color-mix(in srgb, var(--hpx-emergency) 14%, var(--hpx-surface)); color: var(--hpx-emergency); }

.hpx-round-btn {
	display: inline-grid;
	place-items: center;
	width: var(--hpx-tap);
	height: var(--hpx-tap);
	border-radius: 50%;
	background: var(--hpx-surface);
	border: 1px solid var(--hpx-border);
	box-shadow: var(--hpx-shadow-sm);
	color: var(--hpx-ink);
	transition: color var(--hpx-dur) var(--hpx-ease), border-color var(--hpx-dur) var(--hpx-ease);
}
.hpx-round-btn:hover { color: var(--hpx-link); border-color: var(--hpx-primary); }

.hpx-pill {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 32px;
	padding: 0 .875rem;
	border-radius: 999px;
	font-size: .875rem;
	text-decoration: none;
}
.hpx-pill .hpx-icon { width: 16px; height: 16px; }
.hpx-pill--emergency { background: var(--hpx-emergency-soft); color: var(--hpx-emergency); }
.hpx-pill--emergency strong { font-weight: 600; }

.hpx-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hpx-chips--scroll {
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	margin-inline: calc(-1 * var(--hpx-gutter));
	padding-inline: var(--hpx-gutter);
	padding-block: 2px;
}
.hpx-chips--scroll::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
	.hpx-chips--scroll { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.hpx-chip {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	min-height: 44px;
	padding: 0 1rem;
	border: 1px solid var(--hpx-border-strong);
	border-radius: 999px;
	background: var(--hpx-surface);
	color: var(--hpx-ink);
	font-size: .9375rem;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	transition: background var(--hpx-dur) var(--hpx-ease), border-color var(--hpx-dur) var(--hpx-ease), color var(--hpx-dur) var(--hpx-ease);
}
.hpx-chip .hpx-icon { width: 16px; height: 16px; color: var(--hpx-link); }
a.hpx-chip:hover { border-color: var(--hpx-primary); color: var(--hpx-link); }
.hpx-chip.is-active { background: var(--hpx-primary); border-color: var(--hpx-primary); color: #fff; }
.hpx-chip--quiet {
	min-height: 28px;
	padding: 0 .625rem;
	border: 0;
	background: var(--hpx-primary-soft);
	color: var(--hpx-link);
	font-size: .875rem;
	border-radius: 6px;
}
.hpx-chip--static { min-height: 36px; border: 0; background: var(--hpx-surface-2); }

.hpx-tag {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	min-height: 26px;
	padding: 0 .625rem;
	border-radius: 6px;
	background: var(--hpx-accent-soft);
	color: var(--hpx-accent-ink);
	font-size: .875rem;
	font-weight: 500;
}

.hpx-icon-badge {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: var(--hpx-radius-sm);
	background: var(--hpx-primary-soft);
	color: var(--hpx-link);
}
.hpx-icon-badge .hpx-icon { width: 22px; height: 22px; }
.hpx-icon-badge--sm { width: 32px; height: 32px; border-radius: 8px; }
.hpx-icon-badge--sm .hpx-icon { width: 18px; height: 18px; }
.hpx-icon-badge--lg { width: 56px; height: 56px; }
.hpx-icon-badge--lg .hpx-icon { width: 26px; height: 26px; }
.hpx-icon-badge--solid { border-radius: 50%; background: var(--hpx-primary); color: #fff; width: 40px; height: 40px; }
.hpx-icon-badge--solid .hpx-icon { width: 20px; height: 20px; }

.hpx-avatar {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--hpx-surface);
	color: var(--hpx-link);
	font-size: 2rem;
	font-weight: 500;
	letter-spacing: .02em;
	box-shadow: var(--hpx-shadow);
}
.hpx-avatar--sm { width: 40px; height: 40px; font-size: .9375rem; box-shadow: none; background: var(--hpx-primary-soft); }
.hpx-avatar--lg { width: 140px; height: 140px; font-size: 2.75rem; }

.hpx-stars { display: inline-flex; gap: 1px; color: #d29b2a; }
.hpx-stars .hpx-icon { width: 15px; height: 15px; fill: currentColor; stroke-width: 1; }
.hpx-stars .is-off { fill: none; color: var(--hpx-border-strong); }

.hpx-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.hpx-ticks li { display: flex; gap: .625rem; align-items: flex-start; }
.hpx-ticks .hpx-icon { width: 18px; height: 18px; margin-top: .2em; color: var(--hpx-link); }
@media (min-width: 640px) { .hpx-ticks--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.5rem; } }

.hpx-meta-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .375rem; color: var(--hpx-muted); font-size: .9375rem; }
.hpx-meta-list li { display: flex; gap: .5rem; align-items: flex-start; }
.hpx-meta-list .hpx-icon { width: 16px; height: 16px; margin-top: .2em; color: var(--hpx-link); }
.hpx-meta-list--stack { gap: .75rem; margin: 1rem 0 0; color: var(--hpx-ink); font-size: 1rem; }
.hpx-meta-list--stack .hpx-icon { width: 20px; height: 20px; }

.hpx-empty {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 1rem auto;
	max-width: var(--hpx-container);
	padding: 1rem 1.25rem;
	border: 1px dashed var(--hpx-border-strong);
	border-radius: var(--hpx-radius);
	color: var(--hpx-muted);
	font-size: .9375rem;
}

/* 6. Cards ----------------------------------------------------------------- */
.hpx-card {
	position: relative;
	background: var(--hpx-surface);
	border: 1px solid var(--hpx-border);
	border-radius: var(--hpx-radius);
	transition: transform var(--hpx-dur) var(--hpx-ease), box-shadow var(--hpx-dur) var(--hpx-ease), border-color var(--hpx-dur) var(--hpx-ease);
}
.hpx-cards--shadow .hpx-card { border-color: color-mix(in srgb, var(--hpx-ink) 4%, transparent); box-shadow: var(--hpx-shadow); }
.hpx-cards--tinted .hpx-card { background: var(--hpx-primary-softer); border-color: transparent; }
.hpx-cards--tinted .hpx-bg--tint .hpx-card,
.hpx-cards--tinted .hpx-bg--alt .hpx-card { background: var(--hpx-surface); }
@media (hover: hover) {
	a.hpx-card:hover,
	.hpx-doctor-card:hover,
	.hpx-package-card:hover,
	.hpx-event-card:hover,
	.hpx-post-card:hover { transform: translateY(-2px); box-shadow: var(--hpx-shadow-lg); border-color: transparent; }
}

/* Tracks: grid, or snap carousel with a peek of the next card. */
.hpx-track { display: grid; gap: 1rem; }
.hpx-track > * { min-width: 0; }
.hpx-track--slider,
.hpx-track--snap-mobile {
	grid-auto-flow: column;
	grid-auto-columns: min(80%, 300px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	margin-inline: calc(-1 * var(--hpx-gutter));
	padding: 4px var(--hpx-gutter) 12px;
	scroll-padding-inline: var(--hpx-gutter);
}
.hpx-track--slider::-webkit-scrollbar,
.hpx-track--snap-mobile::-webkit-scrollbar { display: none; }
.hpx-track--slider > *,
.hpx-track--snap-mobile > * { scroll-snap-align: start; }
@media (min-width: 640px) {
	.hpx-track--grid.hpx-cols-2, .hpx-track--grid.hpx-cols-3, .hpx-track--grid.hpx-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.hpx-track--snap-mobile { grid-auto-flow: row; overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; }
	.hpx-track--slider { grid-auto-columns: calc((100% - 2rem) / 2.4); }
}
@media (min-width: 1024px) {
	.hpx-track { gap: 1.5rem; }
	.hpx-track--grid.hpx-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hpx-track--grid.hpx-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hpx-track--slider { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; grid-auto-columns: calc((100% - 3rem) / 3); }
	.hpx-track--slider.hpx-cols-4 { grid-auto-columns: calc((100% - 4.5rem) / 4); }
}
@media (min-width: 1280px) {
	.hpx-track--grid.hpx-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hpx-track--grid.hpx-cols-dept { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .hpx-track--grid.hpx-cols-dept { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hpx-track--grid.hpx-cols-dept { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.hpx-track--slider.hpx-cols-dept { grid-auto-columns: min(46%, 200px); }
@media (min-width: 1024px) { .hpx-track--slider.hpx-cols-dept { grid-auto-columns: calc((100% - 5rem) / 6); gap: 1rem; } }
.hpx-track--snap-mobile.hpx-cols-dept { grid-auto-columns: min(46%, 200px); }

.hpx-arrows { display: flex; gap: .5rem; }
.hpx-arrow {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--hpx-border-strong);
	border-radius: 50%;
	background: var(--hpx-surface);
	color: var(--hpx-ink);
	cursor: pointer;
	transition: border-color var(--hpx-dur) var(--hpx-ease), color var(--hpx-dur) var(--hpx-ease), opacity var(--hpx-dur);
}
.hpx-arrow:hover:not(:disabled) { border-color: var(--hpx-primary); color: var(--hpx-link); }
.hpx-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 767px) { .hpx-section-head .hpx-arrows { display: none; } }

/* Doctor card */
.hpx-doctor-card { display: flex; flex-direction: column; overflow: hidden; }
.hpx-doctor-card__media {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 5 / 4;
	background: linear-gradient(180deg, var(--hpx-primary-soft), var(--hpx-primary-softer));
	overflow: hidden;
	text-decoration: none;
}
.hpx-doctor-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .4s var(--hpx-ease); }
@media (hover: hover) { .hpx-doctor-card:hover .hpx-doctor-card__media img { transform: scale(1.03); } }
.hpx-doctor-card__exp {
	position: absolute;
	top: .75rem;
	left: .75rem;
	padding: .125rem .625rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--hpx-surface) 92%, transparent);
	backdrop-filter: blur(6px);
	font-size: .875rem;
	font-weight: 500;
	color: var(--hpx-ink);
}
.hpx-doctor-card__body { flex: 1; padding: 1rem 1.125rem 1.125rem; }
.hpx-doctor-card__name { font-size: 1.0625rem; line-height: 1.3; }
.hpx-doctor-card__name a { color: var(--hpx-ink); text-decoration: none; }
.hpx-doctor-card__name a:hover { color: var(--hpx-link); }
.hpx-doctor-card__name a::after { content: ""; position: absolute; inset: 0 0 var(--hpx-tap); }
.hpx-doctor-card__role { margin-top: .25rem; color: var(--hpx-muted); font-size: .9375rem; }
.hpx-doctor-card__meta {
	margin-top: .5rem;
	font-size: .875rem;
	color: var(--hpx-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hpx-doctor-card__actions { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--hpx-border); }
.hpx-doctor-card__actions .hpx-split-btn + .hpx-split-btn { border-left: 1px solid var(--hpx-border); }
.hpx-cards--tinted .hpx-doctor-card .hpx-split-btn:not(.hpx-split-btn--accent) { background: transparent; }

/* Department card */
.hpx-dept-card {
	display: flex;
	flex-direction: column;
	gap: .875rem;
	padding: 1rem;
	min-height: 100%;
	color: var(--hpx-ink);
	text-decoration: none;
}
.hpx-dept-card__text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.hpx-dept-card__name { font-weight: 500; line-height: 1.3; }
.hpx-dept-card__summary { color: var(--hpx-muted); font-size: .9375rem; }
.hpx-dept-card__meta { color: var(--hpx-muted); font-size: .875rem; }
.hpx-dept-card__arrow { position: absolute; top: 1rem; right: 1rem; width: 18px; height: 18px; color: var(--hpx-muted); opacity: 0; transition: opacity var(--hpx-dur), transform var(--hpx-dur) var(--hpx-ease); }
@media (hover: hover) { .hpx-dept-card:hover .hpx-dept-card__arrow { opacity: 1; transform: translateX(2px); color: var(--hpx-link); } }
@media (min-width: 1024px) { .hpx-dept-card { padding: 1.25rem; } }
.hpx-dept-card--list { flex-direction: row; align-items: center; }
.hpx-dept-card--list .hpx-dept-card__arrow { position: static; opacity: 1; margin-left: auto; }
.hpx-dept-list { display: grid; gap: .75rem; }
@media (min-width: 768px) { .hpx-dept-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .hpx-dept-list--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Facilities (client brief style: soft rows with solid icon) */
.hpx-facilities { display: grid; gap: .625rem; }
@media (min-width: 768px) { .hpx-facilities--list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem 1rem; } }
.hpx-facility {
	display: flex;
	align-items: center;
	gap: .875rem;
	padding: .75rem 1rem;
	min-height: 64px;
	border-radius: var(--hpx-radius-sm);
	background: var(--hpx-primary-softer);
	border: 1px solid color-mix(in srgb, var(--hpx-primary) 8%, transparent);
	color: var(--hpx-ink);
	text-decoration: none;
	transition: background var(--hpx-dur) var(--hpx-ease), border-color var(--hpx-dur) var(--hpx-ease);
}
a.hpx-facility:hover { background: var(--hpx-primary-soft); border-color: color-mix(in srgb, var(--hpx-primary) 20%, transparent); }
.hpx-facility__text { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.hpx-facility__text strong { font-weight: 500; }
.hpx-facility__text small { color: var(--hpx-muted); font-size: .9375rem; }
.hpx-facility__arrow { margin-left: auto; width: 18px; height: 18px; color: var(--hpx-muted); }
.hpx-facilities--cards { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 640px) { .hpx-facilities--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hpx-facilities--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.hpx-facility--cards { flex-direction: column; align-items: flex-start; padding: 1.5rem; background: var(--hpx-surface); border-color: var(--hpx-border); border-radius: var(--hpx-radius); }
.hpx-facility--cards .hpx-facility__arrow { display: none; }

/* Package card */
.hpx-package-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }
@media (min-width: 1024px) { .hpx-package-card { padding: 1.5rem; } }
.hpx-package-card__top { display: flex; flex-direction: column; gap: .5rem; }
.hpx-package-card__title { font-size: 1.125rem; }
.hpx-package-card__title a { color: var(--hpx-ink); text-decoration: none; }
.hpx-package-card__title a:hover { color: var(--hpx-link); }
.hpx-package-card__count { color: var(--hpx-muted); font-size: .9375rem; }
.hpx-package-card .hpx-ticks { font-size: .9375rem; gap: .5rem; }
.hpx-package-card .hpx-ticks .hpx-icon { width: 16px; height: 16px; }
.hpx-more { align-self: flex-start; color: var(--hpx-muted); font-size: .875rem; margin-top: -.25rem; }
.hpx-package-card__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--hpx-border); display: grid; gap: .875rem; }
.hpx-package-card__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.hpx-package-card__actions .hpx-btn { padding-inline: .5rem; }

.hpx-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .625rem; }
.hpx-price__now { font-size: 1.375rem; font-weight: 500; letter-spacing: -.01em; color: var(--hpx-ink); }
.hpx-price__old { color: var(--hpx-muted); font-size: .9375rem; }
.hpx-price__off { font-size: .875rem; font-weight: 500; color: var(--hpx-link); background: var(--hpx-primary-soft); padding: 0 .5rem; border-radius: 6px; }
.hpx-price__call { font-weight: 500; color: var(--hpx-link); }
.hpx-price--lg .hpx-price__now { font-size: 2rem; }

/* Accreditations */
.hpx-accr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .hpx-accr { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; } }
.hpx-accr-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1.5rem 1rem; color: var(--hpx-ink); text-decoration: none; }
.hpx-accr-card__logo img { height: 72px; width: auto; object-fit: contain; }
.hpx-accr-card strong { font-weight: 500; font-size: 1.0625rem; margin-top: .25rem; }
.hpx-accr-card small { color: var(--hpx-muted); font-size: .875rem; line-height: 1.45; }

/* Event card */
.hpx-event-card { display: flex; flex-direction: column; overflow: hidden; }
.hpx-event-card__media { aspect-ratio: 16 / 9; overflow: hidden; display: block; }
.hpx-event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hpx-event-card__body { display: flex; gap: 1rem; padding: 1.125rem; flex: 1; }
.hpx-event-card__text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .375rem; }
.hpx-event-card__title { font-size: 1.0625rem; line-height: 1.35; }
.hpx-event-card__title a { color: var(--hpx-ink); text-decoration: none; }
.hpx-event-card__title a:hover { color: var(--hpx-link); }
.hpx-event-card__foot { padding: 0 1.125rem .75rem; }
.hpx-event-card.is-past { opacity: .78; }
.hpx-event-card.is-past img { filter: grayscale(.6); }
.hpx-date-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 60px;
	height: 64px;
	border-radius: var(--hpx-radius-sm);
	background: var(--hpx-primary-soft);
	color: var(--hpx-link);
	line-height: 1.1;
}
.hpx-date-badge span { font-size: 1.5rem; font-weight: 500; }
.hpx-date-badge small { font-size: .875rem; }

/* Patient stories */
.hpx-stories { display: grid; gap: 1.5rem; }
.hpx-stories__intro .hpx-section-head { margin-bottom: 1rem; }
.hpx-stories__intro .hpx-btn { margin-right: .75rem; }
.hpx-stories__intro .hpx-arrows { display: none; }
@media (min-width: 1024px) {
	.hpx-stories { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 3rem; align-items: center; }
	.hpx-stories__intro .hpx-section-head { flex-direction: column; align-items: flex-start; }
	.hpx-stories__intro .hpx-arrows { display: inline-flex; margin-top: 1.5rem; }
	.hpx-stories__intro .hpx-arrows[hidden] { display: none; }
}
.hpx-stories__track.hpx-track--slider { grid-auto-columns: min(88%, 420px); }
@media (min-width: 1024px) { .hpx-stories__track.hpx-track--slider { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
.hpx-quote-card { margin: 0; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; min-height: 100%; }
@media (min-width: 1024px) { .hpx-quote-card { padding: 2rem; } }
.hpx-quote-card__mark { font-size: 4rem; line-height: .6; height: 2rem; color: color-mix(in srgb, var(--hpx-accent) 45%, var(--hpx-surface)); font-family: Georgia, "Times New Roman", serif; }
.hpx-quote-card__text { margin: 0; font-size: 1.0625rem; line-height: 1.7; }
.hpx-quote-card__by { margin-top: auto; display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--hpx-border); }
.hpx-quote-card__by span:not(.hpx-avatar):not(.hpx-stars) { display: flex; flex-direction: column; min-width: 0; }
.hpx-quote-card__by strong { font-weight: 500; font-size: .9375rem; }
.hpx-quote-card__by small { color: var(--hpx-muted); font-size: .875rem; }
.hpx-quote-card__by .hpx-stars { margin-left: auto; }
.hpx-quote-card__photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.hpx-masonry { columns: 1; column-gap: 1rem; }
.hpx-masonry > * { break-inside: avoid; margin-bottom: 1rem; }
@media (min-width: 768px) { .hpx-masonry { columns: 2; } }
@media (min-width: 1024px) { .hpx-masonry { columns: 3; column-gap: 1.5rem; } .hpx-masonry > * { margin-bottom: 1.5rem; } }

/* Post card */
.hpx-post-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.hpx-post-card__media { aspect-ratio: 16 / 10; overflow: hidden; display: block; margin: 0; background: var(--hpx-surface-2); }
.hpx-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hpx-post-card__body { padding: 1.125rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.hpx-post-card__title { font-size: 1.125rem; line-height: 1.35; margin: 0; }
.hpx-post-card__title a { color: var(--hpx-ink); text-decoration: none; }
.hpx-post-card__title a:hover { color: var(--hpx-link); }
.hpx-post-card__meta { color: var(--hpx-muted); font-size: .875rem; margin-top: auto; }
.hpx-post-card__cat, .hpx-post-card__cat a { font-size: .875rem; color: var(--hpx-link); text-decoration: none; font-weight: 500; }
.hpx-post-card__excerpt { color: var(--hpx-muted); font-size: .9375rem; margin: 0; }
.hpx-post-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.hpx-media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--hpx-muted); }
.hpx-media-placeholder .hpx-icon { width: 32px; height: 32px; }
.hpx-post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .hpx-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hpx-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.hpx-post-grid > li { margin: 0; }
.hpx-pagination { margin-top: 2.5rem; gap: .5rem; font-weight: 500; }
.hpx-pagination a, .hpx-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; border-radius: var(--hpx-btn-radius); text-decoration: none; color: var(--hpx-ink); }
.hpx-pagination .current { background: var(--hpx-primary); color: #fff; }
.hpx-empty-text { color: var(--hpx-muted); }

/* 7. Header ---------------------------------------------------------------- */
.hpx-announce { background: var(--hpx-primary-soft); color: var(--hpx-ink); font-size: .9375rem; }
.hpx-announce__inner { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 44px; padding-block: .5rem; text-align: center; }
.hpx-announce a { font-weight: 500; }
.hpx-announce__close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--hpx-muted); }

.hpx-header {
	position: relative;
	z-index: 50;
	background: var(--hpx-surface);
	--hpx-topbar-h: 0px;
}
.hpx-sticky .hpx-header {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--hpx-topbar-h));
}
@media (max-width: 600px) { .admin-bar.hpx-sticky .hpx-header { top: 0; } }
/* WordPress wraps template parts in a div exactly as tall as the header, which
   leaves sticky no room to stick. Remove the wrapper box so the header sticks
   against the whole page. */
.wp-block-template-part:has(> .hpx-header) { display: contents; }
/* --hpx-header-offset = visible sticky header + fixed admin bar, measured by JS. */
.hpx-header__main { border-bottom: 1px solid var(--hpx-border); transition: box-shadow var(--hpx-dur) var(--hpx-ease); }
.hpx-header.is-scrolled .hpx-header__main,
.hpx-header.is-scrolled .hpx-actionbar { box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.hpx-header.is-scrolled:has(.hpx-actionbar) .hpx-header__main { box-shadow: none; }
.hpx-header__inner { position: relative; display: flex; align-items: center; gap: .75rem; min-height: var(--hpx-header-h); }

/* Logo */
/* Shrinkable (0 1 auto) so a long name wraps instead of pushing the page wider. */
.hpx-logo { flex: 0 1 auto; display: inline-flex; align-items: center; gap: .625rem; min-width: 0; max-width: 100%; color: var(--hpx-ink); text-decoration: none; }
.hpx-logo__img { height: min(var(--hpx-logo-h), 36px); width: auto; max-width: 200px; object-fit: contain; }
@media (min-width: 1024px) { .hpx-logo__img { height: var(--hpx-logo-h); max-width: 260px; } }
.hpx-logo--footer .hpx-logo__img { height: var(--hpx-footer-logo-h, var(--hpx-logo-h)); max-width: 280px; }
.hpx-logo__mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--hpx-primary); color: #fff; }
.hpx-logo__mark .hpx-icon { width: 18px; height: 18px; stroke-width: 1.8; }
.hpx-logo__img { flex: none; }
.hpx-logo__text { font-weight: 500; font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.2; max-width: 16ch; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 400px) { .hpx-logo__text { max-width: 12ch; font-size: 1rem; } }
.hpx-logo__short { display: none; }
@media (max-width: 639px) {
	/* Short name stays on one line; truncates rather than overflowing if it is still too long. */
	.hpx-logo__text.has-short { max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.hpx-logo__text.has-short .hpx-logo__full { display: none; }
	.hpx-logo__text.has-short .hpx-logo__short { display: inline; }
}
@media (min-width: 1024px) { .hpx-logo__text { max-width: 17ch; } }
/* Footer and drawer always show the full name, so it must be allowed to wrap. */
.hpx-footer .hpx-logo__short, .hpx-drawer .hpx-logo__short { display: none !important; }
.hpx-footer .hpx-logo__full, .hpx-drawer .hpx-logo__full { display: inline !important; }
.hpx-footer .hpx-logo__text, .hpx-drawer .hpx-logo__text,
.hpx-footer .hpx-logo__text.has-short, .hpx-drawer .hpx-logo__text.has-short { white-space: normal; overflow: visible; text-overflow: clip; }
.hpx-footer .hpx-logo__text { max-width: 22ch; }
.hpx-drawer .hpx-logo__text { max-width: none; }

/* Top bar (desktop) */
.hpx-topbar { display: none; }
@media (min-width: 1024px) {
	.hpx-header:has(> .hpx-topbar) { --hpx-topbar-h: 40px; }
	.hpx-topbar { display: block; height: 40px; border-bottom: 1px solid var(--hpx-border); font-size: .875rem; color: var(--hpx-muted); }
	.hpx-topbar__inner { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
	.hpx-topbar__info { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
	.hpx-topbar__info li { display: inline-flex; align-items: center; gap: .375rem; }
	.hpx-topbar__info .hpx-icon { width: 15px; height: 15px; }
	.hpx-topbar a { color: inherit; text-decoration: none; }
	.hpx-topbar a:hover { color: var(--hpx-link); }
	.hpx-topbar__nav { margin-left: auto; }
	.hpx-topbar__nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
	.hpx-topbar__nav a[aria-current] { color: var(--hpx-ink); }
	.hpx-topbar__end { display: flex; align-items: center; gap: .75rem; }
	.hpx-topbar__end:only-child, .hpx-topbar__info + .hpx-topbar__end { margin-left: auto; }
	.hpx-topbar .hpx-pill--emergency { color: var(--hpx-emergency); }
	.hpx-topbar li, .hpx-topbar a, .hpx-topbar .hpx-pill { white-space: nowrap; }
}
/* Small laptops: the quick-action bar already offers Book, so drop duplicates. */
@media (min-width: 1024px) and (max-width: 1199px) {
	.hpx-header:has(.hpx-actionbar) .hpx-header__cta { display: none; }
	.hpx-topbar__nav { display: none; }
	.hpx-topbar__end { margin-left: auto; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.hpx-topbar__inner { gap: 1rem; }
	.hpx-topbar__info li:nth-child(2) { display: none; }
	.hpx-topbar__nav ul { gap: 1rem; }
}

/* Primary navigation (desktop) */
.hpx-nav { display: none; }
.hpx-header__actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.hpx-header__cta { display: none; }
.hpx-header__sos { margin-left: .25rem; }
@media (min-width: 640px) { .hpx-header__cta { display: inline-flex; margin-left: .5rem; } }
@media (min-width: 1024px) {
	.hpx-nav { display: block; }
	.hpx-nav--main { margin-left: auto; }
	.hpx-nav--main + .hpx-header__actions { margin-left: .5rem; }
	.hpx-header__menu { display: none; }
	.hpx-header:has(> .hpx-topbar) .hpx-header__sos { display: none; }
}
.hpx-nav__list { display: flex; align-items: center; gap: .125rem; list-style: none; margin: 0; padding: 0; }
.hpx-nav__item { position: relative; display: flex; align-items: center; }
.hpx-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 .625rem;
	border-radius: 8px;
	color: var(--hpx-ink);
	font-size: .9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--hpx-dur) var(--hpx-ease);
}
@media (min-width: 1280px) { .hpx-nav__link { padding: 0 .875rem; font-size: 1rem; } }
.hpx-nav__link:hover, .hpx-nav__item.is-current > .hpx-nav__link { color: var(--hpx-link); }
.hpx-nav__item.has-sub > .hpx-nav__link { padding-right: .125rem; }
.hpx-nav__toggle { display: grid; place-items: center; width: 24px; height: 32px; padding: 0; border: 0; background: none; color: var(--hpx-muted); cursor: pointer; border-radius: 6px; }
.hpx-nav__toggle .hpx-icon { width: 16px; height: 16px; transition: transform var(--hpx-dur) var(--hpx-ease); }
.hpx-nav__item.is-open > .hpx-nav__toggle .hpx-icon { transform: rotate(180deg); }
.hpx-nav__panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 20;
	min-width: 240px;
	padding: .5rem;
	background: var(--hpx-surface);
	border: 1px solid var(--hpx-border);
	border-radius: var(--hpx-radius);
	box-shadow: var(--hpx-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--hpx-dur) var(--hpx-ease), transform var(--hpx-dur) var(--hpx-ease), visibility var(--hpx-dur);
}
.hpx-nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.hpx-nav__item.is-open > .hpx-nav__panel,
.hpx-nav__item:focus-within > .hpx-nav__panel { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) {
	.hpx-nav__item:hover > .hpx-nav__panel { opacity: 1; visibility: visible; transform: none; }
	.hpx-nav__item:hover > .hpx-nav__toggle .hpx-icon { transform: rotate(180deg); }
}
.hpx-nav__sub { list-style: none; margin: 0; padding: 0; }
.hpx-nav__sub a { display: flex; align-items: center; min-height: 44px; padding: 0 .75rem; border-radius: 8px; color: var(--hpx-ink); text-decoration: none; font-size: .9375rem; }
.hpx-nav__sub a:hover, .hpx-nav__sub a[aria-current] { background: var(--hpx-primary-softer); color: var(--hpx-link); }
.hpx-nav__sub .hpx-nav__sub { padding-left: .75rem; }

/* Mega menu (departments) */
.hpx-nav__item.is-mega { position: static; }
.hpx-mega { left: var(--hpx-gutter); right: var(--hpx-gutter); padding: 1.5rem; }
.hpx-mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.5rem; }
.hpx-mega__title { font-weight: 500; margin-bottom: .75rem; font-size: .9375rem; color: var(--hpx-muted); }
.hpx-mega__grid { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .125rem .5rem; }
.hpx-mega__grid a { display: flex; align-items: center; gap: .625rem; min-height: 48px; padding: .25rem .5rem; border-radius: 10px; color: var(--hpx-ink); text-decoration: none; font-size: .9375rem; }
.hpx-mega__grid a:hover { background: var(--hpx-primary-softer); color: var(--hpx-link); }
.hpx-mega__aside { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.25rem; border-radius: var(--hpx-radius); background: var(--hpx-surface-2); }
.hpx-mega__aside p:not(.hpx-mega__title) { color: var(--hpx-muted); font-size: .9375rem; }
.hpx-mega__aside .hpx-mega__title { color: var(--hpx-ink); margin: 0; }

/* Quick-action bar (desktop, as on the reference) */
.hpx-actionbar { display: none; }
@media (min-width: 1024px) {
	.hpx-actionbar { display: block; background: var(--hpx-surface-2); border-bottom: 1px solid var(--hpx-border); }
	.hpx-actionbar__list { display: flex; justify-content: center; gap: .5rem; list-style: none; margin: 0; padding: .375rem 0; }
	.hpx-actionbar__link { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 1rem; border-radius: var(--hpx-btn-radius); color: var(--hpx-ink); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: background var(--hpx-dur) var(--hpx-ease), color var(--hpx-dur) var(--hpx-ease); }
	.hpx-actionbar__link .hpx-icon { width: 18px; height: 18px; color: var(--hpx-muted); }
	.hpx-actionbar__link:hover { background: var(--hpx-surface); color: var(--hpx-link); }
	.hpx-actionbar__link.is-highlight { background: var(--hpx-accent-soft); color: var(--hpx-accent-ink); }
	.hpx-actionbar__link.is-highlight .hpx-icon { color: currentColor; }
	.hpx-actionbar__link.is-highlight:hover { background: color-mix(in srgb, var(--hpx-accent) 24%, var(--hpx-surface)); }
}

/* Header layouts (desktop) */
@media (min-width: 1024px) {
	.hpx-header--center .hpx-header__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		grid-template-areas: ". logo actions" "nav nav nav";
		row-gap: 0;
		padding-top: .75rem;
	}
	.hpx-header--center .hpx-logo { grid-area: logo; }
	.hpx-header--center .hpx-header__actions { grid-area: actions; justify-self: end; }
	.hpx-header--center .hpx-nav--main { grid-area: nav; margin: .5rem 0 0; justify-self: center; }
	.hpx-header--center .hpx-nav--main .hpx-nav__list { min-height: 52px; }

	.hpx-header--split .hpx-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 1rem; }
	.hpx-header--split .hpx-nav--left { justify-self: end; }
	.hpx-header--split .hpx-nav--right { justify-self: start; }
	.hpx-header--split .hpx-logo { padding-inline: .75rem; }
	.hpx-header--split .hpx-header__actions { margin-left: 0; }
	.hpx-header--split .hpx-nav__item.is-mega { position: relative; }
	.hpx-header--split .hpx-mega { left: 50%; right: auto; width: min(880px, 90vw); transform: translate(-50%, 6px); }
	.hpx-header--split .hpx-nav__item:is(.is-open, :focus-within) > .hpx-mega { transform: translate(-50%, 0); }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.hpx-header--split .hpx-nav__item:hover > .hpx-mega { transform: translate(-50%, 0); }
}

/* Transparent header over an overlay hero */
.hpx-transparent-header .hpx-header { position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 auto; transition: background var(--hpx-dur) var(--hpx-ease); }
.hpx-transparent-header .hpx-header:not(.is-scrolled) {
	--hpx-ink: #ffffff;
	--hpx-surface: transparent;
	background: transparent;
}
.hpx-transparent-header .hpx-header:not(.is-scrolled) :is(.hpx-header__main, .hpx-topbar, .hpx-actionbar) { background: transparent; border-color: rgba(255, 255, 255, .16); }
.hpx-transparent-header .hpx-header:not(.is-scrolled) .hpx-nav__panel { --hpx-ink: #1b2532; --hpx-surface: #fff; background: #fff; }
.hpx-transparent-header .hpx-header:not(.is-scrolled) .hpx-topbar { color: rgba(255, 255, 255, .85); }
.hpx-transparent-header .hpx-hero--overlay .hpx-hero__content { padding-top: calc(var(--hpx-header-h) + 3rem); }
@media (min-width: 1024px) { .hpx-transparent-header .hpx-hero--overlay .hpx-hero__content { padding-top: 180px; } }

/* Dark-mode toggle icon swap */
.hpx-theme-toggle__sun { display: none; }
[data-theme="dark"] .hpx-theme-toggle__sun { display: block; }
[data-theme="dark"] .hpx-theme-toggle__moon { display: none; }

/* 8. Drawer + search ------------------------------------------------------- */
.hpx-drawer { position: fixed; inset: 0; z-index: 100; }
.hpx-drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 15, 25, .45); opacity: 0; transition: opacity 250ms var(--hpx-ease); }
.hpx-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(88vw, 400px);
	background: var(--hpx-surface);
	box-shadow: var(--hpx-shadow-lg);
	transform: translateX(100%);
	transition: transform 250ms var(--hpx-ease);
}
.hpx-menu--fullscreen .hpx-drawer__panel { width: 100%; }
.hpx-drawer.is-open .hpx-drawer__backdrop { opacity: 1; }
.hpx-drawer.is-open .hpx-drawer__panel { transform: none; }
.hpx-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--hpx-header-h); padding: 0 .5rem 0 1rem; border-bottom: 1px solid var(--hpx-border); }
.hpx-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 1.25rem; }
.hpx-drawer__quick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.hpx-drawer__quick a {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	padding: .875rem;
	min-height: 88px;
	border-radius: var(--hpx-radius-sm);
	background: var(--hpx-primary-softer);
	color: var(--hpx-ink);
	font-size: .9375rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}
.hpx-drawer__quick .hpx-icon { color: var(--hpx-link); width: 22px; height: 22px; }
.hpx-drawer__menu { list-style: none; margin: 0; padding: 0; }
.hpx-drawer__menu > li { border-bottom: 1px solid var(--hpx-border); }
.hpx-drawer__menu > li > a,
.hpx-drawer__menu summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	color: var(--hpx-ink);
	font-size: 1.0625rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	list-style: none;
}
.hpx-drawer__menu summary::-webkit-details-marker { display: none; }
.hpx-drawer__menu .hpx-icon { width: 18px; height: 18px; color: var(--hpx-muted); transition: transform var(--hpx-dur) var(--hpx-ease); }
.hpx-drawer__menu details[open] summary .hpx-icon { transform: rotate(180deg); }
.hpx-drawer__menu details ul { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 .75rem; border-left: 1px solid var(--hpx-border); }
.hpx-drawer__menu details a { display: flex; align-items: center; min-height: 44px; color: var(--hpx-muted); text-decoration: none; }
.hpx-drawer__menu a[aria-current] { color: var(--hpx-link); }
.hpx-drawer__label { font-size: .875rem; font-weight: 500; color: var(--hpx-muted); margin-bottom: .625rem; }
.hpx-drawer__section .hpx-chip { min-height: 40px; font-size: .875rem; }
@media (min-width: 1024px) { .hpx-drawer { display: none !important; } }

.hpx-searchbox {
	display: flex;
	align-items: center;
	gap: .5rem;
	min-height: var(--hpx-tap);
	padding: 0 .375rem 0 .875rem;
	border: 1px solid var(--hpx-border-strong);
	border-radius: var(--hpx-radius-sm);
	background: var(--hpx-surface);
	transition: border-color var(--hpx-dur) var(--hpx-ease), box-shadow var(--hpx-dur) var(--hpx-ease);
}
.hpx-searchbox:focus-within { border-color: var(--hpx-primary); box-shadow: 0 0 0 3px var(--hpx-primary-soft); }
.hpx-searchbox > .hpx-icon { color: var(--hpx-muted); }
.hpx-searchbox input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--hpx-ink); font: 400 1rem var(--hpx-font); outline: none; }
.hpx-searchbox input::placeholder { color: var(--hpx-muted); opacity: .8; }
.hpx-searchbox--lg { min-height: 60px; font-size: 1.125rem; }
.hpx-searchbox--lg input { font-size: 1.125rem; }

.hpx-search { position: fixed; inset: 0; z-index: 110; }
.hpx-search__backdrop { position: absolute; inset: 0; background: rgba(10, 15, 25, .45); }
.hpx-search__panel { position: relative; padding: 1rem var(--hpx-gutter) 1.5rem; background: var(--hpx-surface); box-shadow: var(--hpx-shadow-lg); animation: hpx-drop 200ms var(--hpx-ease); }
@media (min-width: 768px) { .hpx-search__panel { width: min(760px, 92vw); margin: 10vh auto 0; border-radius: var(--hpx-radius-lg); padding: 1.25rem; } }
.hpx-search__label { margin: 1rem 0 .5rem; font-size: .875rem; color: var(--hpx-muted); font-weight: 500; }
@keyframes hpx-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 9. Hero ------------------------------------------------------------------ */
.hpx-hero { --hpx-scrim: var(--hpx-hero-overlay); position: relative; background: var(--hpx-bg); }
/* A carousel shows photos the editor cannot tune one by one: keep a readable floor. */
.hpx-hero--slides { --hpx-scrim: max(var(--hpx-hero-overlay), .35); }
.hpx-hero__title { font-size: clamp(1.875rem, 1.35rem + 2.1vw, 3rem); line-height: 1.12; letter-spacing: -.02em; }
.hpx-hero__eyebrow { margin-bottom: 1rem; }
.hpx-hero__text { margin-top: 1rem; color: var(--hpx-muted); font-size: clamp(1rem, .96rem + .25vw, 1.125rem); max-width: 56ch; }
.hpx-hero__actions { display: grid; gap: .625rem; margin-top: 1.5rem; }
@media (min-width: 480px) { .hpx-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; } }
.hpx-hero__contact { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; margin-top: 1.25rem; }
.hpx-hero__sos {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: var(--hpx-tap);
	padding: 0 1rem;
	border-radius: 999px;
	background: var(--hpx-emergency-soft);
	color: var(--hpx-emergency);
	font-size: .9375rem;
	text-decoration: none;
}
.hpx-hero__sos strong { font-weight: 600; }
.hpx-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
	.hpx-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; animation: hpx-pulse 2.4s ease-out infinite; }
}
@keyframes hpx-pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.hpx-rating {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 40px;
	padding: 0 .875rem;
	border-radius: 999px;
	background: var(--hpx-surface);
	box-shadow: var(--hpx-shadow);
	color: var(--hpx-ink);
	font-size: .9375rem;
	text-decoration: none;
}
.hpx-rating strong { font-weight: 600; }
.hpx-rating small { color: var(--hpx-muted); font-size: .875rem; }
.hpx-rating__g { width: 18px; height: 18px; color: #4a7fe0; }
.hpx-hero__content > .hpx-rating { margin-top: 1.25rem; }

.hpx-hero__media { position: relative; overflow: hidden; background: var(--hpx-surface-2); }
.hpx-hero__media img, .hpx-hero__media picture, .hpx-hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: center var(--hpx-focus, center); }
.hpx-hero__media .hpx-rating { position: absolute; right: var(--hpx-gutter); bottom: 1rem; }

/* Full photo + floating card */
.hpx-hero--full .hpx-hero__media { aspect-ratio: 16 / 10; }
.hpx-mhero--medium .hpx-hero--full .hpx-hero__media { aspect-ratio: 4 / 3; }
.hpx-mhero--tall .hpx-hero--full .hpx-hero__media { aspect-ratio: 1 / 1; }
.hpx-hero--full .hpx-hero__content { padding-block: 1.75rem 1rem; }
@media (min-width: 768px) {
	.hpx-hero--full .hpx-hero__media { aspect-ratio: auto; height: clamp(380px, 46vw, 580px); }
	.hpx-hero--full .hpx-hero__media .hpx-rating { bottom: 6.5rem; right: calc(var(--hpx-gutter) + max(0px, (100vw - var(--hpx-container) - 2 * var(--hpx-gutter)) / 2)); }
	.hpx-hero--full .hpx-hero__content {
		position: relative;
		max-width: 720px;
		margin-top: -5.5rem;
		padding: 2.25rem 2.5rem;
		background: var(--hpx-surface);
		border-radius: var(--hpx-radius-lg);
		box-shadow: var(--hpx-shadow-lg);
	}
}

/* Split: text beside photo */
.hpx-hero--split { background: linear-gradient(180deg, var(--hpx-primary-softer), var(--hpx-bg) 85%); }
.hpx-hero--split .hpx-hero__container { display: flex; flex-direction: column; gap: 1.5rem; padding-block: 1.5rem 2.5rem; }
.hpx-hero--split .hpx-hero__media { order: -1; aspect-ratio: 16 / 11; border-radius: var(--hpx-radius-lg); }
.hpx-mhero--tall .hpx-hero--split .hpx-hero__media { aspect-ratio: 4 / 4; }
@media (min-width: 1024px) {
	.hpx-hero--split .hpx-hero__container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; align-items: center; padding-block: 4.5rem 5rem; }
	.hpx-hero--split .hpx-hero__media { order: 0; aspect-ratio: 5 / 4.4; }
}
.hpx-hero__panel { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--hpx-surface); border: 1px solid var(--hpx-border); border-radius: var(--hpx-radius-lg); box-shadow: var(--hpx-shadow); }
.hpx-hero__panel-title { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.hpx-hero__panel-title .hpx-icon { color: var(--hpx-link); }
.hpx-hero__panel-list { list-style: none; margin: 0; padding: 0; }
.hpx-hero__panel-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .625rem 0; border-bottom: 1px solid var(--hpx-border); font-size: .9375rem; }
.hpx-hero__panel-list span { color: var(--hpx-muted); }
.hpx-hero__panel-list strong { font-weight: 500; text-align: right; }
.hpx-hero--split .hpx-hero__panel { order: 1; }
@media (max-width: 1023px) { .hpx-hero--split .hpx-hero__panel { order: 2; } }

/* Photo overlay */
.hpx-hero--overlay { display: flex; align-items: flex-end; min-height: 76svh; overflow: hidden; background: var(--hpx-secondary); }
.hpx-mhero--short .hpx-hero--overlay { min-height: 64svh; }
.hpx-mhero--tall .hpx-hero--overlay { min-height: 88svh; }
.hpx-hero--overlay .hpx-hero__media { position: absolute; inset: 0; background: var(--hpx-secondary); }
.hpx-hero--overlay .hpx-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	/* Phones: text fills the whole hero (title near the top), so the scrim is strong from the top down. */
	background: linear-gradient(180deg, rgb(8 14 24 / calc(var(--hpx-scrim) + .12)) 0%, rgb(8 14 24 / calc(var(--hpx-scrim) + .2)) 40%, rgb(8 14 24 / calc(var(--hpx-scrim) + .3)) 100%);
}
.hpx-hero--overlay .hpx-hero__container { position: relative; }
.hpx-hero--overlay .hpx-hero__content { --hpx-ink: #ffffff; --hpx-surface: #ffffff; color: #fff; padding-block: 3rem 2.5rem; max-width: 680px; }
.hpx-hero--overlay .hpx-hero__title { color: #fff; }
.hpx-hero--overlay .hpx-hero__text { color: rgba(255, 255, 255, .86); }
.hpx-hero--overlay .hpx-eyebrow { color: rgba(255, 255, 255, .9); }
.hpx-hero--overlay .hpx-btn--outline { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); color: #fff; }
.hpx-hero--overlay .hpx-btn--outline:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hpx-hero--overlay .hpx-round-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; box-shadow: none; backdrop-filter: blur(6px); }
.hpx-hero--overlay .hpx-hero__sos { background: rgba(255, 255, 255, .94); }
.hpx-hero--overlay .hpx-rating { color: #1b2532; --hpx-muted: #5d6776; }
@media (min-width: 1024px) {
	.hpx-hero--overlay { align-items: center; min-height: clamp(560px, 74vh, 760px); }
	/* Desktop: text column reaches ~55% of the width, so hold the scrim past it before fading out. */
	.hpx-hero--overlay .hpx-hero__media::after { background: linear-gradient(90deg, rgb(8 14 24 / calc(var(--hpx-scrim) + .3)) 0%, rgb(8 14 24 / calc(var(--hpx-scrim) + .18)) 40%, rgb(8 14 24 / calc(var(--hpx-scrim) * .7)) 60%, rgb(8 14 24 / calc(var(--hpx-scrim) * .25)) 100%); }
	.hpx-hero--overlay .hpx-hero__content { padding-block: 5rem; }
}

/* Text contrast over photo / video (overlay style) */
.hpx-hero--overlay .hpx-hero__title,
.hpx-hero--overlay .hpx-hero__text,
.hpx-hero--overlay .hpx-hero__eyebrow { text-shadow: 0 1px 2px rgb(8 14 24 / .55), 0 2px 18px rgb(8 14 24 / .45); }.hpx-hero--overlay.hpx-hero--contrast-solid .hpx-hero__media::after { background: rgb(8 14 24 / calc(var(--hpx-scrim) + .12)); }
.hpx-hero--overlay.hpx-hero--contrast-panel .hpx-hero__media::after { background: linear-gradient(180deg, rgb(8 14 24 / .08) 0%, rgb(8 14 24 / calc(var(--hpx-scrim) * .6)) 100%); }
.hpx-hero--overlay.hpx-hero--contrast-panel .hpx-hero__content {
	margin-block: 2rem 1.5rem;
	padding: 1.5rem;
	background: rgb(8 14 24 / .58);
	border: 1px solid rgb(255 255 255 / .14);
	border-radius: var(--hpx-radius-lg);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	backdrop-filter: blur(14px) saturate(1.3);
}
.hpx-transparent-header .hpx-hero--overlay.hpx-hero--contrast-panel .hpx-hero__content { padding-top: 1.5rem; margin-top: calc(var(--hpx-header-h) + 2rem); }
@media (min-width: 1024px) {
	.hpx-hero--overlay.hpx-hero--contrast-panel .hpx-hero__content { margin-block: 4rem; padding: 2.5rem; }
	.hpx-transparent-header .hpx-hero--overlay.hpx-hero--contrast-panel .hpx-hero__content { padding-top: 2.5rem; margin-top: 150px; }
}

/* Background carousel. Incoming slide fades in on top of the outgoing one (no dip to the backdrop). */
.hpx-hero__slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--hpx-secondary); }
.hpx-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.hpx-hero__slide.is-prev { opacity: 1; visibility: visible; z-index: 1; }
.hpx-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity 1.2s var(--hpx-ease); }
.hpx-hero__slides--slide .hpx-hero__slide { opacity: 1; transform: translateX(100%); }
.hpx-hero__slides--slide .hpx-hero__slide.is-active { transform: none; transition: transform .9s var(--hpx-ease); }
.hpx-hero__slides--slide .hpx-hero__slide.is-prev { transform: translateX(-100%); transition: transform .9s var(--hpx-ease); }
.hpx-hero__slides--zoom .is-active img.hpx-hero__img,
.hpx-hero__slides--zoom .is-prev img.hpx-hero__img { animation: hpx-kenburns calc(var(--hpx-slide-ms, 6000ms) + 1.2s) linear both; }
@keyframes hpx-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
	.hpx-hero__slide.is-active, .hpx-hero__slides--slide .hpx-hero__slide.is-active, .hpx-hero__slides--slide .hpx-hero__slide.is-prev { transition: none; }
	.hpx-hero__slides--zoom img.hpx-hero__img { animation: none !important; }
}

.hpx-hero__slider-ui {
	position: absolute;
	z-index: 3;
	top: 1rem;
	left: 1rem;
	display: flex;
	align-items: center;
	gap: .25rem;
	padding: .25rem;
	border-radius: 999px;
	background: rgb(8 14 24 / .52);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
}
.hpx-hero__slider-ui[hidden] { display: none; }
.hpx-hero__dots { display: flex; align-items: center; }
.hpx-hero__dot { display: grid; place-items: center; width: 24px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: none; color: inherit; cursor: pointer; transition: width var(--hpx-dur) var(--hpx-ease); }
.hpx-hero__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgb(255 255 255 / .5); transition: width var(--hpx-dur) var(--hpx-ease), background var(--hpx-dur) var(--hpx-ease); }
.hpx-hero__dot:hover::before { background: rgb(255 255 255 / .8); }
.hpx-hero__dot[aria-current="true"] { width: 34px; }
.hpx-hero__dot[aria-current="true"]::before { width: 20px; background: #fff; }
.hpx-hero__pause { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; cursor: pointer; }
.hpx-hero__pause:hover { background: rgb(255 255 255 / .28); }
.hpx-hero__pause .hpx-icon { width: 14px; height: 14px; fill: currentColor; }
.hpx-hero__play-icon, .hpx-hero__pause[aria-pressed="true"] .hpx-hero__pause-icon { display: none; }
.hpx-hero__pause[aria-pressed="true"] .hpx-hero__play-icon { display: block; }
.hpx-hero__dot:focus-visible, .hpx-hero__pause:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* Overlay: controls bottom-right, clear of the text */
.hpx-hero--overlay .hpx-hero__slider-ui { top: auto; left: auto; right: var(--hpx-gutter); bottom: .875rem; }
.hpx-hero--overlay.hpx-hero--slides .hpx-hero__content { padding-bottom: 4rem; }
.hpx-hero--overlay.hpx-hero--slides.hpx-hero--contrast-panel .hpx-hero__content { padding-bottom: 1.5rem; margin-bottom: 3.75rem; }
@media (min-width: 768px) {
	.hpx-hero--full .hpx-hero__slider-ui,
	.hpx-hero--overlay .hpx-hero__slider-ui { top: auto; left: auto; bottom: 1.5rem; right: calc(var(--hpx-gutter) + max(0px, (100% - var(--hpx-container) - 2 * var(--hpx-gutter)) / 2)); }
	.hpx-hero--split .hpx-hero__slider-ui { top: auto; bottom: 1rem; }
}
@media (min-width: 1024px) {
	.hpx-hero--overlay.hpx-hero--slides .hpx-hero__content { padding-bottom: 5rem; }
	.hpx-hero--overlay.hpx-hero--slides.hpx-hero--contrast-panel .hpx-hero__content { padding-bottom: 2.5rem; margin-bottom: 4rem; }
}

/* Minimal text hero */
.hpx-hero--minimal {
	background:
		radial-gradient(900px 380px at 85% -10%, var(--hpx-primary-soft), transparent 65%),
		radial-gradient(600px 260px at 0% 70%, color-mix(in srgb, var(--hpx-accent-soft) 70%, transparent), transparent 70%),
		linear-gradient(180deg, transparent 70%, var(--hpx-bg));
	background-color: var(--hpx-bg);
}
.hpx-hero--minimal .hpx-hero__container { padding-block: 3rem 3.5rem; }
.hpx-hero--minimal .hpx-hero__content { max-width: 800px; }
@media (min-width: 1024px) {
	.hpx-hero--minimal .hpx-hero__container { padding-block: 6.5rem 6rem; }
	.hpx-hero--minimal .hpx-hero__content { margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
	.hpx-hero--minimal .hpx-hero__text { margin-inline: auto; }
	.hpx-hero--minimal .hpx-hero__actions, .hpx-hero--minimal .hpx-hero__contact { justify-content: center; }
	.hpx-hero--minimal .hpx-hero__title { font-size: clamp(2.25rem, 1.5rem + 2.2vw, 3.375rem); }
}

/* 10. Quick actions + stats ------------------------------------------------ */
.hpx-quick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .625rem; }
.hpx-quick__item {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: 1rem;
	color: var(--hpx-ink);
	text-decoration: none;
}
.hpx-quick__text { display: flex; flex-direction: column; gap: .125rem; }
.hpx-quick__text strong { font-weight: 500; line-height: 1.3; }
.hpx-quick__text small { color: var(--hpx-muted); font-size: .875rem; line-height: 1.4; }
.hpx-quick__arrow { display: none; }
.hpx-quick__item.is-emergency { background: var(--hpx-emergency-soft); border-color: color-mix(in srgb, var(--hpx-emergency) 16%, transparent); }
.hpx-quick__item.is-emergency .hpx-icon-badge { background: var(--hpx-surface); color: var(--hpx-emergency); }
.hpx-quick__item.is-emergency strong { color: var(--hpx-emergency); }
@media (min-width: 1024px) {
	.hpx-quick { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1rem; }
	.hpx-quick__item { flex-direction: row; align-items: center; gap: 1rem; padding: 1.125rem 1.25rem; }
	.hpx-quick__arrow { display: block; margin-left: auto; width: 18px; height: 18px; color: var(--hpx-muted); transition: transform var(--hpx-dur) var(--hpx-ease); }
	.hpx-quick__item:hover .hpx-quick__arrow { transform: translateX(3px); color: var(--hpx-link); }
}

.hpx-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .625rem; }
.hpx-stat {
	--t: var(--hpx-tint-1);
	display: flex;
	flex-direction: column;
	gap: .25rem;
	padding: 1.125rem;
	border-radius: var(--hpx-radius);
	background: var(--t);
	border: 1px solid color-mix(in srgb, var(--t) 90%, var(--hpx-ink));
}
.hpx-stat:nth-child(4n + 2) { --t: var(--hpx-tint-2); }
.hpx-stat:nth-child(4n + 3) { --t: var(--hpx-tint-3); }
.hpx-stat:nth-child(4n + 4) { --t: var(--hpx-tint-4); }
.hpx-stat__value { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.hpx-stat__label { font-size: .9375rem; }
.hpx-stat__note { color: var(--hpx-muted); font-size: .875rem; }
/* Odd count on phones: let the first card span the row so none is orphaned. */
@media (max-width: 767px) { .hpx-stats:has(> .hpx-stat:last-child:nth-child(odd)) > .hpx-stat:first-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
	.hpx-stats { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 1rem; }
	.hpx-stats:not(:has(.hpx-stat:nth-child(4))) { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
	.hpx-stats:has(.hpx-stat:nth-child(5)) { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
	.hpx-stat { padding: 1.5rem; }
}

/* 11. About, timeline, leadership ----------------------------------------- */
.hpx-about { display: grid; gap: 2rem; }
.hpx-about__media { position: relative; }
.hpx-about__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--hpx-radius-lg); }
.hpx-about__badge {
	position: absolute;
	left: 1rem;
	bottom: -1rem;
	display: flex;
	flex-direction: column;
	padding: .875rem 1.25rem;
	background: var(--hpx-surface);
	border-radius: var(--hpx-radius);
	box-shadow: var(--hpx-shadow-lg);
}
.hpx-about__badge small { color: var(--hpx-muted); font-size: .875rem; }
.hpx-about__badge strong { font-size: 1.75rem; font-weight: 500; color: var(--hpx-link); line-height: 1.1; }
.hpx-about__body { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.hpx-about__body .hpx-section-head { margin-bottom: 0; }
@media (min-width: 1024px) {
	.hpx-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
	.hpx-about--noimg { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
}

.hpx-timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.5rem; }
.hpx-timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 1px; background: var(--hpx-border-strong); }
.hpx-timeline__item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; }
.hpx-timeline__year { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 32px; border-radius: 999px; background: var(--hpx-primary-soft); color: var(--hpx-link); font-weight: 500; font-size: .875rem; }
.hpx-timeline__body h3 { font-size: 1.0625rem; margin: .25rem 0 .25rem; }
.hpx-timeline__body p { color: var(--hpx-muted); }
.hpx-timeline__img img { border-radius: var(--hpx-radius-sm); margin-bottom: .75rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; max-width: 420px; }
@media (min-width: 1024px) {
	.hpx-timeline { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1.5rem; }
	.hpx-timeline::before { left: 0; right: 0; top: 16px; bottom: auto; width: auto; height: 1px; }
	.hpx-timeline__item { grid-template-columns: minmax(0, 1fr); }
}

.hpx-leaders { display: grid; gap: 1.5rem; }
.hpx-leader { display: grid; gap: 1.25rem; padding: 1.5rem; background: var(--hpx-surface); border: 1px solid var(--hpx-border); border-radius: var(--hpx-radius-lg); }
.hpx-leader__media { display: grid; place-items: center; }
.hpx-leader__media img { width: 100%; max-width: 280px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--hpx-radius); }
.hpx-leader__body { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.hpx-leader__mark { font-family: Georgia, serif; font-size: 4.5rem; line-height: .5; height: 1.75rem; color: color-mix(in srgb, var(--hpx-accent) 40%, var(--hpx-surface)); }
.hpx-leader__message { font-size: 1.0625rem; line-height: 1.75; color: var(--hpx-ink); }
.hpx-leader__message p + p { margin-top: .875em; }
.hpx-leader__by { display: flex; flex-direction: column; gap: .125rem; padding-top: 1rem; border-top: 1px solid var(--hpx-border); }
.hpx-leader__by strong { font-weight: 500; font-size: 1.0625rem; }
.hpx-leader__by span { color: var(--hpx-muted); font-size: .9375rem; }
.hpx-leader__by em { color: var(--hpx-muted); font-size: .9375rem; }
@media (min-width: 768px) {
	.hpx-leader { grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; padding: 2rem; align-items: center; }
	.hpx-leader--reverse { grid-template-columns: minmax(0, 1fr) 240px; }
	.hpx-leader--reverse .hpx-leader__media { order: 2; }
}
@media (min-width: 1024px) { .hpx-leader { grid-template-columns: 300px minmax(0, 1fr); padding: 2.5rem; gap: 3rem; } .hpx-leader--reverse { grid-template-columns: minmax(0, 1fr) 300px; } }

/* Managing committee */
.hpx-committee { display: grid; gap: 2.5rem; }
.hpx-committee__group { display: grid; gap: 1rem; }
.hpx-committee__label { display: flex; align-items: center; gap: 1rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hpx-muted); }
.hpx-committee__label::after { content: ""; flex: 1; height: 1px; background: var(--hpx-border); }
.hpx-committee__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hpx-committee__grid > li { display: flex; min-width: 0; }
.hpx-committee__grid--office { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; }
.hpx-committee__grid--member { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.hpx-committee__grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .75rem; }

.hpx-member { flex: 1; display: flex; gap: 1rem; min-width: 0; padding: 1rem; }
.hpx-member__photo { flex: none; }
.hpx-member__photo img, .hpx-member__photo .hpx-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.hpx-member__photo .hpx-avatar { font-size: 1.375rem; box-shadow: none; background: var(--hpx-primary-soft); }
.hpx-member__body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.hpx-member__name { font-size: 1.0625rem; font-weight: 500; line-height: 1.3; margin: 0; }
/* Beat .hpx-content h3/h4 heading spacing when the block sits in page content (About page). */
.hpx-member .hpx-member__name { margin: 0; }
.hpx-member__role { align-self: flex-start; padding: .125rem .625rem; border-radius: 999px; background: var(--hpx-primary-soft); color: var(--hpx-link); font-size: .8125rem; font-weight: 500; }
.hpx-member__meta { color: var(--hpx-muted); font-size: .875rem; }
.hpx-member__bio { margin-top: .375rem; color: var(--hpx-ink); font-size: .9375rem; line-height: 1.6; }
.hpx-member__contact { display: flex; flex-direction: column; gap: .25rem; margin-top: auto; padding-top: .5rem; font-size: .875rem; }
.hpx-member__contact a { display: inline-flex; align-items: center; gap: .375rem; min-width: 0; color: var(--hpx-link); text-decoration: none; overflow-wrap: anywhere; }
.hpx-member__contact a:hover { text-decoration: underline; }
.hpx-member__contact .hpx-icon { flex: none; width: 16px; height: 16px; }

/* Office bearers: portrait photo on top */
.hpx-member--office { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
/* Photo shape (Homepage Builder > Managing committee > Photo shape). Fixed shapes crop every photo the same, faces kept near the top. */
.hpx-committee { --hpx-member-ratio: 3 / 4; }
.hpx-committee--r-4-5 { --hpx-member-ratio: 4 / 5; }
.hpx-committee--r-2-3 { --hpx-member-ratio: 2 / 3; }
.hpx-committee--r-1-1 { --hpx-member-ratio: 1 / 1; }
.hpx-committee--r-4-3 { --hpx-member-ratio: 4 / 3; }
.hpx-member--office .hpx-member__photo { position: relative; display: grid; place-items: center; aspect-ratio: var(--hpx-member-ratio); overflow: hidden; background: var(--hpx-primary-softer); }
.hpx-member--office .hpx-member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: 50% 20%; }
/* Adaptive: each photo at its natural shape, nothing cropped. */
.hpx-committee--r-auto .hpx-member--office .hpx-member__photo { aspect-ratio: auto; }
.hpx-committee--r-auto .hpx-member--office .hpx-member__photo img { position: static; height: auto; }
.hpx-committee--r-auto .hpx-member--office .hpx-member__photo:has(.hpx-avatar) { aspect-ratio: 1 / 1; }
.hpx-member--office .hpx-member__photo .hpx-avatar { width: 96px; height: 96px; font-size: 2rem; }
.hpx-member--office .hpx-member__body { flex: 1; padding: 1.125rem 1.25rem 1.25rem; }
.hpx-member--office .hpx-member__role { order: -1; margin-bottom: .375rem; }
.hpx-member--office .hpx-member__name { font-size: 1.125rem; }

/* Compact: name + position only */
.hpx-member--compact { align-items: center; gap: .75rem; padding: .75rem; }
.hpx-member--compact .hpx-member__photo img, .hpx-member--compact .hpx-member__photo .hpx-avatar { width: 48px; height: 48px; font-size: 1rem; }
.hpx-member--compact .hpx-member__name { font-size: 1rem; }
.hpx-member--compact .hpx-member__role { padding: 0; background: none; color: var(--hpx-muted); font-weight: 400; }

/* Photos per row (Homepage Builder > Managing committee). Counts come in as --hpx-cols-d / -t / -m. */
@media (max-width: 639px) {
	.hpx-committee--cols-m .hpx-committee__grid { grid-template-columns: repeat(var(--hpx-cols-m), minmax(0, 1fr)); gap: .625rem; }
}
@media (min-width: 640px) and (max-width: 1023px) {
	.hpx-committee--cols-t .hpx-committee__grid { grid-template-columns: repeat(var(--hpx-cols-t), minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.hpx-committee--cols-d .hpx-committee__grid { grid-template-columns: repeat(var(--hpx-cols-d), minmax(0, 1fr)); }
	.hpx-committee--single .hpx-committee__grid--office { grid-template-columns: minmax(0, 26rem); justify-content: center; }
}

/* Cards size their text, padding and avatars to their own width, so any number per row stays readable. */
.hpx-committee__grid > li { container-type: inline-size; }
@supports (container-type: inline-size) {
	.hpx-member--office .hpx-member__body { padding: clamp(.625rem, 6cqi, 1.125rem) clamp(.625rem, 6.5cqi, 1.25rem) clamp(.75rem, 6.5cqi, 1.25rem); }
	.hpx-member--office .hpx-member__name { font-size: clamp(.875rem, 6.5cqi, 1.125rem); }
	.hpx-member--office .hpx-member__role { font-size: clamp(.6875rem, 5cqi, .8125rem); padding: .125rem clamp(.375rem, 3.5cqi, .625rem); }
	.hpx-member--office .hpx-member__meta { font-size: clamp(.75rem, 5.5cqi, .875rem); }
	.hpx-member--office .hpx-member__bio { font-size: clamp(.8125rem, 6cqi, .9375rem); }
	.hpx-member--office .hpx-member__photo .hpx-avatar { width: clamp(48px, 38cqi, 96px); height: clamp(48px, 38cqi, 96px); font-size: clamp(1rem, 13cqi, 2rem); }
	.hpx-member__contact { font-size: clamp(.75rem, 5.5cqi, .875rem); }
}
/* Narrow cards (several per row on a phone): stack photo over text, hide long bios. */
@container (max-width: 220px) {
	.hpx-member--member { flex-direction: column; align-items: center; gap: .5rem; padding: .75rem .5rem; text-align: center; }
	.hpx-member--member .hpx-member__body { align-items: center; }
	.hpx-member--member .hpx-member__role { align-self: center; }
	.hpx-member--member .hpx-member__photo img, .hpx-member--member .hpx-member__photo .hpx-avatar { width: 56px; height: 56px; font-size: 1.125rem; }
	.hpx-member--compact { flex-direction: column; text-align: center; padding: .625rem .5rem; }
	.hpx-member__name { font-size: .9375rem; }
	.hpx-member__bio { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
	.hpx-member__contact a span { font-size: .75rem; }
}

/* 12. Gallery ------------------------------------------------------------- */
.hpx-gallery-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 768px) {
	.hpx-gallery-preview { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
	.hpx-gallery-preview .hpx-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
}
.hpx-gallery__item { display: block; overflow: hidden; border-radius: var(--hpx-radius-sm); background: var(--hpx-surface-2); aspect-ratio: 1; }
.hpx-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--hpx-ease); }
@media (hover: hover) { .hpx-gallery__item:hover img { transform: scale(1.04); } }
.hpx-gallery--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 768px) { .hpx-gallery--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; } }
@media (min-width: 1280px) { .hpx-gallery--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hpx-gallery--masonry { columns: 2; column-gap: .5rem; }
.hpx-gallery--masonry .hpx-gallery__item { aspect-ratio: auto; margin-bottom: .5rem; break-inside: avoid; }
.hpx-gallery--masonry .hpx-gallery__item img { height: auto; }
@media (min-width: 768px) { .hpx-gallery--masonry { columns: 3; column-gap: .75rem; } .hpx-gallery--masonry .hpx-gallery__item { margin-bottom: .75rem; } }
@media (min-width: 1280px) { .hpx-gallery--masonry { columns: 4; } }

.hpx-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 3.5rem 1rem; background: rgba(8, 12, 18, .94); animation: hpx-fade 200ms var(--hpx-ease); }
.hpx-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.hpx-lightbox img { max-width: min(92vw, 1400px); max-height: 80vh; width: auto; border-radius: 8px; }
.hpx-lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: .9375rem; }
.hpx-lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.hpx-lightbox button:hover { background: rgba(255, 255, 255, .2); }
.hpx-lightbox__close { top: 12px; right: 12px; }
.hpx-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.hpx-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@keyframes hpx-fade { from { opacity: 0; } to { opacity: 1; } }

/* 13. CTA ------------------------------------------------------------------ */
.hpx-cta-band {
	--hpx-ink: #ffffff;
	display: grid;
	gap: 1.5rem;
	padding: 1.75rem 1.5rem;
	border-radius: var(--hpx-radius-lg);
	color: #fff;
	background:
		radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .12) 0 140px, transparent 141px),
		radial-gradient(circle at 88% 130%, rgba(255, 255, 255, .08) 0 220px, transparent 221px),
		var(--hpx-primary);
	overflow: hidden;
}
.hpx-cta-band h2 { color: #fff; font-size: clamp(1.375rem, 1.15rem + 1vw, 2rem); }
.hpx-cta-band p { margin-top: .5rem; color: rgba(255, 255, 255, .86); max-width: 56ch; }
.hpx-cta-band__actions { display: grid; gap: .625rem; }
@media (min-width: 640px) { .hpx-cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; } }
@media (min-width: 1024px) {
	.hpx-cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2.5rem; padding: 3rem 3.5rem; }
	.hpx-cta-band__actions { justify-content: flex-end; }
}

.hpx-cta-wrap { padding-block: 0 var(--hpx-section-y); }
/* After a full-width section (e.g. "Other health packages") there is no layout padding above, so add a gap. */
.hpx-section + .hpx-cta-wrap { padding-top: calc(var(--hpx-section-y) * .75); }
.hpx-cta-box {
	display: grid;
	gap: 1.25rem;
	padding: 1.5rem;
	border-radius: var(--hpx-radius-lg);
	background: var(--hpx-surface-2);
	border: 1px solid var(--hpx-border);
}
.hpx-cta-box h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); }
.hpx-cta-box p { color: var(--hpx-muted); margin-top: .375rem; }
.hpx-cta-box__actions { display: grid; gap: .625rem; }
@media (min-width: 640px) { .hpx-cta-box__actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 1024px) { .hpx-cta-box { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 2rem 2.5rem; } }

/* 14. FAQ ------------------------------------------------------------------ */
.hpx-faq-split { display: grid; gap: 2rem; }
.hpx-faq-split__intro .hpx-section-head { margin-bottom: 1.5rem; }
.hpx-faq-split__list .hpx-link-arrow { margin-top: .75rem; }
@media (min-width: 1024px) {
	.hpx-faq-split { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 4rem; align-items: start; }
	.hpx-faq-split__intro { position: sticky; top: calc(var(--hpx-header-offset, 120px) + 1.5rem); }
	.hpx-faq-split__intro .hpx-section-head { flex-direction: column; align-items: flex-start; }
}
.hpx-ask { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.5rem; }
.hpx-ask__title { font-weight: 500; font-size: 1.125rem; }
.hpx-ask__text { color: var(--hpx-muted); font-size: .9375rem; }
.hpx-ask__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }

.hpx-faq-list { display: grid; gap: .625rem; }
.hpx-faq {
	background: var(--hpx-surface);
	border: 1px solid var(--hpx-border);
	border-radius: var(--hpx-radius-sm);
	transition: border-color var(--hpx-dur) var(--hpx-ease), box-shadow var(--hpx-dur) var(--hpx-ease);
}
.hpx-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 56px;
	padding: .875rem 1rem .875rem 1.125rem;
	cursor: pointer;
	list-style: none;
	font-weight: 500;
	line-height: 1.45;
	border-radius: inherit;
}
.hpx-faq summary::-webkit-details-marker { display: none; }
.hpx-faq summary:hover { color: var(--hpx-link); }
.hpx-faq__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--hpx-primary-softer); color: var(--hpx-link); transition: transform var(--hpx-dur) var(--hpx-ease), background var(--hpx-dur); }
.hpx-faq__icon .hpx-icon { width: 18px; height: 18px; }
.hpx-faq[open] { border-color: color-mix(in srgb, var(--hpx-primary) 28%, transparent); box-shadow: inset 3px 0 0 var(--hpx-primary); }
.hpx-faq[open] .hpx-faq__icon { transform: rotate(45deg); background: var(--hpx-primary-soft); }
.hpx-faq__answer { padding: 0 1.125rem 1.125rem; color: var(--hpx-muted); }
.hpx-faq__answer p + p { margin-top: .75em; }
.hpx-faq-group + .hpx-faq-group { margin-top: 2.5rem; }
.hpx-faq-group__title { display: flex; align-items: center; gap: .625rem; font-size: 1.125rem; margin-bottom: 1rem; }
.hpx-faq-group__title span { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 .5rem; border-radius: 999px; background: var(--hpx-surface-2); color: var(--hpx-muted); font-size: .875rem; font-weight: 500; }
@media (min-width: 1024px) {
	.hpx-faq-centre--two [data-hpx-items] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 2rem; align-items: start; }
	.hpx-faq-centre--two .hpx-faq-group + .hpx-faq-group { margin-top: 0; }
}

/* 15. Contact, map, emergency --------------------------------------------- */
.hpx-contact-split { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .hpx-contact-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem; } .hpx-contact-split--nomap { grid-template-columns: minmax(0, 720px); } }
.hpx-contact-card { padding: 1.25rem 1.5rem; }
.hpx-contact-card .hpx-emergency-cards { margin-top: 1rem; }
.hpx-contact-list { list-style: none; margin: 0; padding: 0; }
.hpx-contact-list li { display: flex; gap: .875rem; padding: .875rem 0; border-bottom: 1px solid var(--hpx-border); }
.hpx-contact-list li:last-child { border-bottom: 0; }
.hpx-contact-list small { display: block; color: var(--hpx-muted); font-size: .875rem; }
.hpx-contact-list p { margin-top: .125rem; line-height: 1.55; }
.hpx-contact-list a { color: var(--hpx-ink); text-decoration: none; }
.hpx-contact-list p > a:not(.hpx-link-arrow) { display: inline-block; min-height: 24px; line-height: 24px; } /* 24px tap targets (WCAG 2.5.8) */
.hpx-contact-list a:hover { color: var(--hpx-link); }
.hpx-contact-list .hpx-link-arrow { color: var(--hpx-link); min-height: 36px; }
.hpx-contact-list .hpx-icon-badge { width: 40px; height: 40px; }

.hpx-map { position: relative; min-height: 320px; border-radius: var(--hpx-radius-lg); overflow: hidden; background: var(--hpx-surface-2); border: 1px solid var(--hpx-border); }
.hpx-map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hpx-map__pattern {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--hpx-border) 1px, transparent 1px),
		linear-gradient(90deg, var(--hpx-border) 1px, transparent 1px),
		radial-gradient(circle at 60% 45%, var(--hpx-primary-soft), transparent 45%);
	background-size: 36px 36px, 36px 36px, 100% 100%;
}
.hpx-map__overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem; padding: 1.5rem; text-align: center; }
.hpx-map__overlay strong { font-weight: 500; font-size: 1.0625rem; }
.hpx-map__overlay small { color: var(--hpx-muted); }
.hpx-map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .5rem; }
.hpx-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hpx-emergency-cards { display: grid; gap: .625rem; }
@media (min-width: 480px) { .hpx-emergency-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.hpx-emergency-card {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-height: 64px;
	padding: .625rem .875rem;
	border-radius: var(--hpx-radius-sm);
	background: var(--hpx-emergency-soft);
	border: 1px solid color-mix(in srgb, var(--hpx-emergency) 16%, transparent);
	color: var(--hpx-ink);
	text-decoration: none;
	transition: border-color var(--hpx-dur) var(--hpx-ease);
}
.hpx-emergency-card:hover { border-color: var(--hpx-emergency); }
.hpx-emergency-card__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--hpx-surface); color: var(--hpx-emergency); }
.hpx-emergency-card small { display: block; color: var(--hpx-emergency); font-size: .875rem; font-weight: 500; }
.hpx-emergency-card strong { display: block; font-size: 1.0625rem; font-weight: 500; letter-spacing: .01em; }

.hpx-emergency-strip { background: var(--hpx-surface); border-top: 1px solid var(--hpx-border); }
.hpx-emergency-strip__inner { display: grid; gap: 1rem; padding-block: 1.25rem; }
.hpx-emergency-strip__text strong { display: block; font-weight: 500; }
.hpx-emergency-strip__text span { color: var(--hpx-muted); font-size: .9375rem; }
@media (min-width: 1024px) {
	.hpx-emergency-strip__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; }
	.hpx-emergency-cards--strip { grid-template-columns: repeat(2, 260px); }
}

/* Contact page */
.hpx-contact-page { display: grid; gap: 1.25rem; }
.hpx-contact-page__info { display: grid; gap: 1rem; align-content: start; }
.hpx-contact-page__map { margin-top: 1.5rem; }
.hpx-contact-page__map .hpx-map { min-height: 380px; }
@media (min-width: 1024px) { .hpx-contact-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; } }
.hpx-branches { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .875rem; }
.hpx-branches li { display: flex; flex-direction: column; gap: .125rem; }
.hpx-branches strong { font-weight: 500; }
.hpx-branches span { color: var(--hpx-muted); font-size: .9375rem; }
.hpx-branches__links { display: flex; gap: 1rem; }

/* 16. Forms ---------------------------------------------------------------- */
.hpx-form-card { padding: 1.5rem; }
@media (min-width: 768px) { .hpx-form-card { padding: 2rem; } }
.hpx-form-card__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); }
.hpx-form-card__lead { color: var(--hpx-muted); margin: .375rem 0 1.25rem; }
.hpx-form { display: grid; gap: 1rem; }
.hpx-form__row { display: flex; flex-direction: column; gap: .375rem; }
.hpx-form__grid { display: grid; gap: 1rem; }
@media (min-width: 480px) { .hpx-form__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hpx-form label { font-size: .9375rem; font-weight: 500; }
.hpx-form input[type="text"],
.hpx-form input[type="tel"],
.hpx-form input[type="email"],
.hpx-form input[type="date"],
.hpx-form select,
.hpx-form textarea {
	width: 100%;
	min-height: var(--hpx-tap);
	padding: 0 .875rem;
	border: 1px solid var(--hpx-border-strong);
	border-radius: var(--hpx-radius-sm);
	background: var(--hpx-surface);
	color: var(--hpx-ink);
	font: 400 1rem var(--hpx-font);
	transition: border-color var(--hpx-dur) var(--hpx-ease), box-shadow var(--hpx-dur) var(--hpx-ease);
	-webkit-appearance: none;
	appearance: none;
}
.hpx-form select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .75rem center;
}
.hpx-form :is(input, select, textarea):focus { outline: none; border-color: var(--hpx-primary); box-shadow: 0 0 0 3px var(--hpx-primary-soft); }
.hpx-form .is-invalid { border-color: var(--hpx-emergency) !important; }
.hpx-form__error { color: var(--hpx-emergency); font-size: .875rem; }
.hpx-form__note { display: flex; align-items: center; gap: .5rem; padding: .625rem .875rem; border-radius: var(--hpx-radius-sm); background: var(--hpx-primary-softer); font-size: .9375rem; }
.hpx-form__note .hpx-icon { color: var(--hpx-link); width: 18px; height: 18px; }
.hpx-form__privacy { display: flex; gap: .5rem; align-items: flex-start; color: var(--hpx-muted); font-size: .875rem; }
.hpx-form__privacy .hpx-icon { width: 16px; height: 16px; margin-top: .2em; }
.hpx-form__done { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border-radius: var(--hpx-radius-sm); background: color-mix(in srgb, #1e7a45 10%, var(--hpx-surface)); color: var(--hpx-ink); }
.hpx-form__done .hpx-icon { color: #1e7a45; }
.hpx-form.is-sent > :not(.hpx-form__done) { display: none; }
.hpx-form.is-busy button[type="submit"] { opacity: .7; pointer-events: none; }
.hpx-check { display: flex; gap: .625rem; align-items: flex-start; font-weight: 400 !important; color: var(--hpx-muted); font-size: .9375rem !important; line-height: 1.5; cursor: pointer; }
.hpx-check input { flex: none; width: 20px; height: 20px; margin: .1em 0 0; accent-color: var(--hpx-primary); }
.hpx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hpx-alert { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; margin-bottom: 1rem; border-radius: var(--hpx-radius-sm); }
.hpx-alert--success { background: color-mix(in srgb, #1e7a45 10%, var(--hpx-surface)); }
.hpx-alert--success .hpx-icon { color: #1e7a45; }
.hpx-alert--error { background: var(--hpx-emergency-soft); }
.hpx-alert--error .hpx-icon { color: var(--hpx-emergency); }

/* Core search block */
.hpx-core-search { margin-bottom: 2rem; max-width: 640px; }
.hpx-core-search .wp-block-search__inside-wrapper { gap: .5rem; }
.hpx-core-search .wp-block-search__input { min-height: var(--hpx-tap); padding: 0 1rem; border: 1px solid var(--hpx-border-strong); border-radius: var(--hpx-radius-sm); background: var(--hpx-surface); color: var(--hpx-ink); font: 400 1rem var(--hpx-font); }
.hpx-core-search .wp-block-search__button { margin: 0; min-height: var(--hpx-tap); padding: 0 1.25rem; border: 0; border-radius: var(--hpx-btn-radius); background: var(--hpx-primary); color: #fff; font-weight: 500; }

/* 17. Page header + breadcrumbs ------------------------------------------- */
.hpx-page-header { padding-block: 1.25rem 2rem; }
.hpx-page-header--tinted { background: linear-gradient(180deg, var(--hpx-primary-softer), var(--hpx-bg)); }
.hpx-page-header--plain { border-bottom: 1px solid var(--hpx-border); }
.hpx-page-header__title { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.15; }
.hpx-page-header__intro { margin-top: .75rem; color: var(--hpx-muted); font-size: clamp(1rem, .96rem + .25vw, 1.125rem); max-width: 62ch; }
@media (min-width: 1024px) { .hpx-page-header { padding-block: 2rem 3rem; } }
.hpx-crumbs { margin-bottom: 1rem; font-size: .875rem; color: var(--hpx-muted); }
.hpx-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.hpx-crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.hpx-crumbs a { color: var(--hpx-muted); text-decoration: none; }
.hpx-crumbs a:hover { color: var(--hpx-link); text-decoration: underline; }
.hpx-crumbs [aria-current] { color: var(--hpx-ink); max-width: 28ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpx-crumbs__sep { opacity: .5; }

/* 18. Single templates ---------------------------------------------------- */
.hpx-profile__hero { padding-block: 1.25rem 2rem; background: linear-gradient(180deg, var(--hpx-primary-softer), var(--hpx-bg)); }
.hpx-profile__head { display: grid; gap: 1.25rem; }
.hpx-profile__photo {
	display: grid;
	place-items: center;
	width: 140px;
	aspect-ratio: 4 / 5;
	border-radius: var(--hpx-radius-lg);
	overflow: hidden;
	background: linear-gradient(180deg, var(--hpx-primary-soft), var(--hpx-surface));
	border: 1px solid var(--hpx-border);
}
.hpx-profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hpx-profile__photo .hpx-avatar { width: 88px; height: 88px; font-size: 1.75rem; }
.hpx-profile__intro { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.hpx-profile__intro .hpx-chips { margin-bottom: .25rem; }
.hpx-profile__intro .hpx-chip { min-height: 36px; font-size: .875rem; padding: 0 .75rem; }
.hpx-profile__name { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.15; }
.hpx-profile__role { font-size: 1.0625rem; }
.hpx-profile__qual { color: var(--hpx-muted); }
.hpx-profile__actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1rem; }
.hpx-profile__actions .hpx-btn { flex: 1 1 auto; }
@media (min-width: 768px) {
	.hpx-profile__head { grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; align-items: center; }
	.hpx-profile__photo { width: 100%; }
	.hpx-profile__photo .hpx-avatar { width: 128px; height: 128px; font-size: 2.5rem; }
	.hpx-profile__actions .hpx-btn { flex: 0 0 auto; }
}
@media (min-width: 1024px) { .hpx-profile__hero { padding-block: 2rem 3.5rem; } .hpx-profile__head { grid-template-columns: 300px minmax(0, 1fr); gap: 3.5rem; } }

.hpx-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: .5rem 0 0; padding: 0; }
.hpx-facts li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem; }
.hpx-facts .hpx-icon { width: 18px; height: 18px; color: var(--hpx-link); }
.hpx-facts strong { font-weight: 600; }
.hpx-facts--boxed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .625rem; margin: 0 0 1.5rem; }
.hpx-facts--boxed li { padding: .875rem 1rem; border-radius: var(--hpx-radius-sm); background: var(--hpx-surface); border: 1px solid var(--hpx-border); }
@media (min-width: 768px) { .hpx-facts--boxed { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.hpx-jump {
	position: sticky;
	top: var(--hpx-header-offset, var(--hpx-header-h));
	z-index: 30;
	background: color-mix(in srgb, var(--hpx-bg) 92%, transparent);
	backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid var(--hpx-border);
}
/* Tabs line up with the content edge; on phones a soft fade hints that the row scrolls. */
.hpx-jump ul { display: flex; gap: .25rem; list-style: none; margin: 0 -.875rem; padding: 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
@media (max-width: 767px) {
	.hpx-jump ul { margin-right: calc(-1 * var(--hpx-gutter)); padding-right: 2rem; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
}
.hpx-jump ul::-webkit-scrollbar { display: none; }
.hpx-jump a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .875rem; color: var(--hpx-muted); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.hpx-jump a:hover, .hpx-jump a.is-active { color: var(--hpx-link); border-bottom-color: var(--hpx-primary); }

.hpx-layout { display: grid; gap: 2rem; padding-block: 1.5rem 3.5rem; }
@media (min-width: 1024px) {
	.hpx-layout { padding-block: 3rem 5rem; }
	.hpx-layout--sidebar { grid-template-columns: minmax(0, 1fr) 360px; gap: 3.5rem; align-items: start; }
	.hpx-layout__side { position: sticky; top: calc(var(--hpx-header-offset, 120px) + 72px); }
}
.hpx-layout__side { display: grid; gap: 1rem; }
.hpx-block { padding-block: 1.75rem; border-bottom: 1px solid var(--hpx-border); }
.hpx-block:first-child { padding-top: 0; }
.hpx-block:last-child { border-bottom: 0; }
.hpx-block__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); margin-bottom: 1.25rem; }
.hpx-block--past { margin-top: 1rem; }
.hpx-page-body > .hpx-block { border-bottom: 0; }

.hpx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.hpx-steps li { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem 0; }
.hpx-steps__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--hpx-primary-soft); color: var(--hpx-link); }
.hpx-steps strong { display: block; font-weight: 500; }
.hpx-steps div > span { display: block; color: var(--hpx-muted); font-size: .9375rem; }

.hpx-timings { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--hpx-surface); border: 1px solid var(--hpx-border); border-radius: var(--hpx-radius-sm); overflow: hidden; }
.hpx-timings th, .hpx-timings td { padding: .875rem 1rem; border-bottom: 1px solid var(--hpx-border); font-size: .9375rem; }
.hpx-timings tr:last-child :is(th, td) { border-bottom: 0; }
.hpx-timings th { text-align: left; font-weight: 500; }
.hpx-timings td { text-align: right; color: var(--hpx-muted); }
.hpx-timings--compact { margin-top: 1rem; border: 0; background: var(--hpx-primary-softer); }
.hpx-timings--compact :is(th, td) { padding: .625rem .875rem; }

.hpx-side-card { padding: 1.5rem; }
.hpx-side-card__title { font-weight: 500; font-size: 1.125rem; }
.hpx-side-card__text { margin-top: .375rem; color: var(--hpx-muted); font-size: .9375rem; }
.hpx-side-card__actions { display: grid; gap: .625rem; margin-top: 1.25rem; }
.hpx-side-card .hpx-tag { margin-bottom: .75rem; }
.hpx-price-card .hpx-price { margin-top: .75rem; }
.hpx-side-list { padding: 1.25rem 1.5rem; }
.hpx-side-list ul { list-style: none; margin: .75rem 0 0; padding: 0; }
.hpx-side-list a { display: flex; align-items: center; gap: .625rem; min-height: 44px; border-bottom: 1px solid var(--hpx-border); color: var(--hpx-ink); text-decoration: none; font-size: .9375rem; }
.hpx-side-list li:last-child a { border-bottom: 0; }
.hpx-side-list a:hover { color: var(--hpx-link); }
.hpx-side-list .hpx-icon { width: 18px; height: 18px; color: var(--hpx-link); }

.hpx-dept__hero { padding-block: 1.25rem 2rem; background: linear-gradient(180deg, var(--hpx-primary-softer), var(--hpx-bg)); }
.hpx-dept__hero-inner { display: grid; gap: 1.5rem; }
.hpx-dept__intro { display: flex; flex-direction: column; align-items: flex-start; gap: .875rem; }
.hpx-dept__intro .hpx-crumbs { margin-bottom: .25rem; }
.hpx-dept__title { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.15; }
.hpx-dept__summary { color: var(--hpx-muted); font-size: clamp(1rem, .96rem + .25vw, 1.125rem); max-width: 58ch; }
.hpx-dept__actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: .5rem; }
.hpx-dept__banner img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hpx-radius-lg); }
@media (min-width: 1024px) {
	.hpx-dept__hero { padding-block: 2rem 3.5rem; }
	.hpx-dept__hero.has-banner .hpx-dept__hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3.5rem; align-items: center; }
}

.hpx-reviewed { display: flex; align-items: center; gap: .875rem; margin-top: 2rem; padding: 1rem 1.25rem; border-radius: var(--hpx-radius); background: var(--hpx-primary-softer); border: 1px solid var(--hpx-border); }
.hpx-reviewed__photo { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--hpx-surface); }
.hpx-reviewed__photo img { width: 100%; height: 100%; object-fit: cover; }
.hpx-reviewed__photo .hpx-avatar { width: 48px; height: 48px; font-size: 1rem; box-shadow: none; }
.hpx-reviewed div { display: flex; flex-direction: column; min-width: 0; }
.hpx-reviewed small { color: var(--hpx-muted); font-size: .875rem; }
.hpx-reviewed a { color: var(--hpx-ink); font-weight: 500; text-decoration: none; }
.hpx-reviewed a:hover { color: var(--hpx-link); }
.hpx-reviewed span { color: var(--hpx-muted); font-size: .875rem; }
.hpx-reviewed__badge { margin-left: auto; width: 24px; height: 24px; color: var(--hpx-link); }

.hpx-note { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.125rem; border-radius: var(--hpx-radius-sm); background: var(--hpx-surface-2); font-size: .9375rem; border-bottom: 0; }
.hpx-note .hpx-icon { color: var(--hpx-link); margin-top: .15em; }
.hpx-poster { margin: 0 0 1.5rem; }
.hpx-poster img { width: 100%; border-radius: var(--hpx-radius-lg); }

.hpx-article__meta { gap: .75rem; color: var(--hpx-muted); font-size: .9375rem; margin-bottom: 1.25rem; }
.hpx-article__meta a { color: var(--hpx-link); text-decoration: none; }
.hpx-featured { margin: 0 0 2rem; }
.hpx-featured img { border-radius: var(--hpx-radius-lg); }
.hpx-article .hpx-content > * { width: auto; }
.hpx-article .hpx-content > :where(:not(section)):first-child { margin-top: 0; }
.hpx-article .hpx-content > :where(:not(section)):last-child { margin-bottom: 0; }
.hpx-article__nav { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hpx-border); font-weight: 500; }
.hpx-article__nav a { text-decoration: none; }

/* Directory */
.hpx-directory__tools { display: grid; gap: .875rem; margin-bottom: 1.25rem; }
@media (min-width: 1024px) { .hpx-directory__tools { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); align-items: start; gap: 1.5rem; margin-bottom: 1.75rem; } }
.hpx-directory__count { color: var(--hpx-muted); font-size: .9375rem; margin-bottom: 1rem; }
.hpx-directory__empty { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 3rem 1.5rem; margin-top: 1rem; text-align: center; color: var(--hpx-muted); background: var(--hpx-surface-2); border-radius: var(--hpx-radius-lg); }
.hpx-directory__empty .hpx-icon { width: 32px; height: 32px; }
.hpx-directory__empty p { max-width: 46ch; }
[data-hpx-items] > .is-filtered { display: none !important; }

/* 19. Footer --------------------------------------------------------------- */
.hpx-footer { background: var(--hpx-footer-bg); color: var(--hpx-ink); padding-top: 3rem; border-top: 1px solid var(--hpx-border); }
.hpx-footer--dark .hpx-footer {
	--hpx-ink: #e6ebf1;
	--hpx-bg: var(--hpx-footer-bg);
	--hpx-surface: color-mix(in srgb, #fff 7%, var(--hpx-footer-bg));
	--hpx-link: color-mix(in srgb, var(--hpx-accent) 70%, #fff);
	border-top: 0;
}
.hpx-footer--dark .hpx-footer .hpx-logo__mark { background: color-mix(in srgb, #fff 12%, var(--hpx-footer-bg)); }
.hpx-footer__grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hpx-footer__brand, .hpx-footer__contact { grid-column: 1 / -1; }
.hpx-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hpx-footer__about { color: var(--hpx-muted); font-size: .9375rem; max-width: 42ch; }
.hpx-footer__title { font-weight: 500; margin-bottom: .875rem; }
.hpx-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.hpx-footer__col:not(.hpx-footer__contact) a { display: inline-flex; align-items: center; min-height: 36px; color: var(--hpx-muted); text-decoration: none; font-size: .9375rem; }
.hpx-footer__col a:hover { color: var(--hpx-link); }
.hpx-footer__contact .hpx-contact-list li { padding: .625rem 0; border: 0; }
.hpx-footer__contact .hpx-contact-list .hpx-icon-badge { width: 36px; height: 36px; background: var(--hpx-surface); }
.hpx-footer__contact .hpx-contact-list p { font-size: .9375rem; }
.hpx-footer__accr { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.hpx-footer__accr li { display: grid; place-items: center; min-height: 36px; padding: 0 .75rem; border-radius: 8px; background: var(--hpx-surface); border: 1px solid var(--hpx-border); font-size: .875rem; font-weight: 500; }
.hpx-footer__accr span { display: inline-flex; align-items: center; gap: .375rem; }
.hpx-footer__accr .hpx-icon { width: 16px; height: 16px; color: var(--hpx-link); }
.hpx-footer__accr img { height: 40px; width: auto; }
.hpx-footer__bottom { display: flex; flex-direction: column; gap: .5rem; margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid var(--hpx-border); color: var(--hpx-muted); font-size: .875rem; }
.hpx-footer__sitemap a { color: inherit; text-underline-offset: 3px; }
.hpx-footer__sitemap a:hover { color: var(--hpx-link); }
.hpx-credit { font-size: .875rem; font-weight: 400; color: var(--hpx-muted); }
.hpx-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) {
	.hpx-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hpx-footer__brand { grid-column: 1 / -1; }
	.hpx-footer__contact { grid-column: auto; }
	.hpx-footer__bottom { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; }
	.hpx-footer__bottom .hpx-credit { margin-left: auto; }
}
@media (min-width: 1024px) {
	.hpx-footer { padding-top: 4.5rem; }
	.hpx-footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(var(--cols, 3), minmax(0, 1fr)) minmax(0, 1.3fr); gap: 2.5rem; }
	.hpx-footer__brand { grid-column: auto; }
}

.hpx-socials { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.hpx-socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--hpx-ink); border: 1px solid var(--hpx-border); background: var(--hpx-surface); transition: color var(--hpx-dur), border-color var(--hpx-dur); }
.hpx-socials a:hover { color: var(--hpx-link); border-color: var(--hpx-primary); }
.hpx-socials .hpx-icon { width: 18px; height: 18px; }
.hpx-socials--round a { box-shadow: var(--hpx-shadow-sm); }
.hpx-socials--mini a { width: 28px; height: 28px; border: 0; background: transparent; color: var(--hpx-muted); }
.hpx-socials--mini .hpx-icon { width: 15px; height: 15px; }

/* 20. Floating elements --------------------------------------------------- */
.hpx-mbar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 60;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: color-mix(in srgb, var(--hpx-surface) 94%, transparent);
	border-top: 1px solid var(--hpx-border);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	backdrop-filter: saturate(1.2) blur(10px);
	transition: transform 250ms var(--hpx-ease);
}
.hpx-mbar.is-hidden { transform: translateY(110%); }
.hpx-mbar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 56px;
	color: var(--hpx-ink);
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.1;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.hpx-mbar__item:active { background: var(--hpx-primary-softer); }
.hpx-mbar__item .hpx-icon { width: 22px; height: 22px; }
.hpx-mbar__item--book { color: var(--hpx-link); }
.hpx-mbar__item--emergency, .hpx-mbar__item--ambulance { color: var(--hpx-emergency); }
.hpx-has-bottombar { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
	.hpx-mbar { display: none; }
	.hpx-has-bottombar { padding-bottom: 0; }
}

.hpx-float-wa {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 55;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #1fa855;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	transition: transform var(--hpx-dur) var(--hpx-ease);
}
.hpx-float-wa:hover { transform: scale(1.05); color: #fff; }
.hpx-float-wa .hpx-icon { width: 28px; height: 28px; }
.hpx-float-wa--left { right: auto; left: 16px; }
@media (max-width: 1023px) {
	.hpx-float-wa.hpx-hide-mobile { display: none; }
	.hpx-has-bottombar .hpx-float-wa { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1024px) { .hpx-float-wa { right: 24px; bottom: 24px; } .hpx-float-wa--left { left: 24px; right: auto; } }

.hpx-totop {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 54;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--hpx-border);
	border-radius: 50%;
	background: var(--hpx-surface);
	color: var(--hpx-ink);
	box-shadow: var(--hpx-shadow);
	cursor: pointer;
}
.hpx-has-bottombar .hpx-totop { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
body:has(.hpx-float-wa:not(.hpx-hide-mobile)) .hpx-totop { bottom: calc(144px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
	.hpx-totop, .hpx-has-bottombar .hpx-totop { right: 30px; bottom: 24px; }
	body:has(.hpx-float-wa--right) .hpx-totop { bottom: 92px; }
}

.hpx-dialog { width: min(92vw, 460px); max-height: 90vh; padding: 0; border: 0; border-radius: var(--hpx-radius-lg); background: transparent; color: var(--hpx-ink); overflow: visible; }
.hpx-dialog::backdrop { background: rgba(10, 15, 25, .5); backdrop-filter: blur(2px); }
.hpx-dialog[open] { animation: hpx-drop 200ms var(--hpx-ease); }
.hpx-dialog__box { position: relative; display: flex; flex-direction: column; gap: .75rem; max-height: 90vh; overflow-y: auto; padding: 1.75rem 1.5rem 1.5rem; background: var(--hpx-surface); border-radius: var(--hpx-radius-lg); box-shadow: var(--hpx-shadow-lg); }
.hpx-dialog__box h2 { font-size: 1.375rem; }
.hpx-dialog__lead { color: var(--hpx-muted); margin-bottom: .5rem; }
.hpx-dialog__close { position: absolute; top: .5rem; right: .5rem; }
.hpx-popup__media { margin: -1.75rem -1.5rem .5rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--hpx-radius-lg) var(--hpx-radius-lg) 0 0; }
.hpx-popup__media img { width: 100%; height: 100%; object-fit: cover; }

/* 20b. Sitemap page (hpx/sitemap) ----------------------------------------- */
.hpx-sitemap { padding-block-start: 1rem; }
.hpx-sitemap__intro { margin: 0 0 1rem; color: var(--hpx-muted); }
.hpx-sitemap__toc { padding-bottom: 1.25rem; border-bottom: 1px solid var(--hpx-border); }
.hpx-sitemap__toc ul { list-style: none; margin: 0; padding: 0; }
.hpx-sitemap__toc .hpx-chip { min-height: 40px; font-size: .875rem; }
.hpx-sitemap__n { display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 999px; background: var(--hpx-primary-soft); color: var(--hpx-ink); font-size: .75rem; font-weight: 600; line-height: 1.5; text-align: center; vertical-align: middle; }
.hpx-sitemap__sec { padding-block: 1.75rem .5rem; border-top: 1px solid var(--hpx-border); scroll-margin-top: calc(var(--hpx-header-h) + 1.5rem); }
.hpx-sitemap__toc + .hpx-sitemap__sec { border-top: 0; }
.hpx-sitemap__sec h2 { display: flex; align-items: center; gap: .625rem; margin: 0 0 1rem; font-size: 1.375rem; }
.hpx-sitemap__sec h2 a { color: inherit; text-decoration: none; }
.hpx-sitemap__sec h2 a:hover { color: var(--hpx-link); text-decoration: underline; text-underline-offset: 3px; }
.hpx-sitemap__sub { margin: 1.25rem 0 .75rem; color: var(--hpx-muted); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hpx-sitemap__list, .hpx-sitemap__list ul { list-style: none; margin: 0; padding: 0; }
.hpx-sitemap__list ul { margin-top: .375rem; padding-left: .875rem; border-left: 1px solid var(--hpx-border); }
.hpx-sitemap__list li { margin: 0 0 .5rem; line-height: 1.45; }
.hpx-sitemap__list a { color: var(--hpx-ink); text-decoration: none; }
.hpx-sitemap__list a:hover { color: var(--hpx-link); text-decoration: underline; text-underline-offset: 3px; }
.hpx-sitemap__cols { columns: 3 240px; column-gap: 2.5rem; }
.hpx-sitemap__cols > li { break-inside: avoid; }
.hpx-sitemap__meta { color: var(--hpx-muted); font-size: .8125rem; white-space: nowrap; }
.hpx-sitemap__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hpx-sitemap__chips li { margin: 0; }
.hpx-sitemap__chips a { display: inline-block; padding: .3125rem .75rem; border-radius: 999px; background: var(--hpx-primary-soft); font-size: .875rem; font-weight: 500; }
.hpx-sitemap__chips .hpx-sitemap__meta { display: none; }
.hpx-sitemap__more { margin: .25rem 0 0; font-weight: 600; }
.hpx-sitemap__xml { display: flex; align-items: center; gap: .375rem; margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hpx-border); color: var(--hpx-muted); font-size: .875rem; }
.hpx-sitemap__xml .hpx-icon { width: 16px; height: 16px; }

/* 21. Editor --------------------------------------------------------------- */
.hpx-editor-block { pointer-events: none; }
.hpx-editor-block .hpx-drawer, .hpx-editor-block .hpx-search, .hpx-editor-block .hpx-dialog { display: none !important; }
.editor-styles-wrapper .hpx-mbar, .editor-styles-wrapper .hpx-float-wa, .editor-styles-wrapper .hpx-totop { position: static; display: none; }

/* 22. Motion & accessibility ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
	.hpx-card, .hpx-btn, .hpx-chip, .hpx-faq { border: 1px solid CanvasText; }
}
@media print {
	.hpx-header, .hpx-footer, .hpx-mbar, .hpx-float-wa, .hpx-totop, .hpx-jump, .hpx-emergency-strip { display: none !important; }
	body { background: #fff; padding: 0; }
}
