/**
 * HealthSource theme: inner page templates and content components.
 *
 * Owns: template heroes (.hs-hero), the content + sticky sidebar layout (.hs-layout), sections (.hs-sec),
 * query cards (.hs-qcard), the hub, condition, offer, about, contact, book, legal, search and 404 templates,
 * and every content class the transform adds inside post content (.hs-entry): hs-lead, hs-media,
 * hs-checklist, hs-callout--alert/brand/evidence, hs-inline-cta, hs-faq, hs-qa, tables, quotes and links.
 *
 * Tokens come from theme.json and base.css (CONTRACT "Design tokens"). The --hsp-* aliases below only
 * point at them, with the theme.json values as fallbacks, so this file never hard-codes a colour.
 * Contrast rule: red text only on white; navy links on tinted backgrounds.
 */

:root {
	--hsp-red: var(--wp--preset--color--primary);
	--hsp-red-dark: var(--hs-red-dark, var(--wp--custom--red-dark));
	--hsp-red-tint: var(--wp--custom--red-tint, color-mix(in srgb, var(--wp--preset--color--primary) 8%, var(--wp--preset--color--base)));
	--hsp-navy: var(--wp--preset--color--secondary);
	--hsp-navy-2: var(--wp--preset--color--accent);
	--hsp-navy-deep: var(--hs-navy-deep, var(--wp--custom--navy-deep));
	--hsp-ink: var(--wp--preset--color--contrast);
	--hsp-muted: var(--wp--preset--color--muted);
	--hsp-surface: var(--wp--preset--color--surface);
	--hsp-border: var(--wp--preset--color--border);
	--hsp-white: var(--wp--preset--color--base);
	--hsp-gold: var(--hs-gold, var(--wp--custom--gold));
	--hsp-on-dark: var(--wp--custom--on-dark-muted, color-mix(in srgb, var(--wp--preset--color--base) 82%, transparent));
	--hsp-sh-sm: var(--hs-shadow-sm, var(--wp--preset--shadow--sm));
	--hsp-sh-md: var(--hs-shadow-md, var(--wp--preset--shadow--md));
	--hsp-sh-lg: var(--hs-shadow-lg, var(--wp--preset--shadow--lg));
	--hsp-r-sm: var(--hs-radius-sm, var(--wp--custom--radius--sm, 10px));
	--hsp-r-md: var(--hs-radius-md, var(--wp--custom--radius--md, 16px));
	--hsp-r-lg: var(--hs-radius-lg, var(--wp--custom--radius--lg, 24px));
	--hsp-r-xl: var(--hs-radius-xl, var(--wp--custom--radius--xl, 32px));
	--hsp-header-h: var(--hs-header-h, var(--wp--custom--header-h, 76px));
	--hsp-sticky-top: calc(var(--hsp-header-h) + var(--wp-admin--admin-bar--height, 0px) + 1.25rem);
	--hsp-ease: var(--wp--custom--ease, cubic-bezier(0.22, 1, 0.36, 1));
	--hsp-head: var(--wp--preset--font-family--manrope);
	--hsp-body: var(--wp--preset--font-family--inter);
	--hsp-overlap: clamp(3.5rem, 7vw, 6rem);
	--hsp-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V44C220 10 470 0 735 22s500 54 705 18v40z' fill='black'/%3E%3C/svg%3E");
}

/* ================================================================== frame */
main.hs-main > * {
	margin-block: 0;
}

/* ================================================================== template hero */
.hs-hero {
	--hs-hero-img: url("../img/hero-first-visit.webp");
	--hs-hero-pos: 65% 40%;
	--hs-hero-overlay: linear-gradient(100deg,
		color-mix(in srgb, var(--hsp-navy-deep) 97%, transparent) 0%,
		color-mix(in srgb, var(--hsp-navy-deep) 88%, transparent) 40%,
		color-mix(in srgb, var(--hsp-navy) 52%, transparent) 100%);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: var(--hsp-white);
	background-color: var(--hsp-navy-deep);
	background-image:
		radial-gradient(46rem 26rem at -8% 115%, color-mix(in srgb, var(--hsp-red) 36%, transparent), transparent 62%),
		var(--hs-hero-overlay),
		var(--hs-hero-img);
	background-repeat: no-repeat;
	background-size: auto, auto, cover;
	background-position: 0 0, 0 0, var(--hs-hero-pos);
	padding-top: clamp(2rem, 5vw, 4.25rem);
	padding-bottom: clamp(4.25rem, 8vw, 7rem);
}

/* Concentric rings: quiet depth in the top right corner. */
.hs-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -9rem;
	right: -7rem;
	width: 26rem;
	height: 26rem;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--hsp-white) 16%, transparent);
	box-shadow:
		0 0 0 3.5rem color-mix(in srgb, var(--hsp-white) 3%, transparent),
		0 0 0 7rem color-mix(in srgb, var(--hsp-white) 2%, transparent);
	pointer-events: none;
}

/* Curved divider into the next section. */
.hs-hero::after {
	content: "";
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: -1px;
	height: clamp(26px, 4.5vw, 72px);
	background: var(--hs-hero-next, var(--hsp-white));
	-webkit-mask: var(--hsp-wave) center bottom / 100% 100% no-repeat;
	mask: var(--hsp-wave) center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.hs-hero .hs-hero__inner {
	position: relative;
	z-index: 2;
}

.hs-hero .hs-hero__inner > * {
	max-width: 46rem;
	margin-block: 0;
}

.hs-hero .hs-hero__inner > * + * {
	margin-top: 1rem;
}

/* Breadcrumbs on navy. */
.hs-hero .hs-hero__crumbs,
.hs-hero .ssc-breadcrumbs {
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
	font-size: 0.875rem;
	color: var(--hsp-on-dark);
}

.hs-hero .ssc-breadcrumbs a {
	color: var(--hsp-white);
	text-decoration-color: color-mix(in srgb, var(--hsp-white) 40%, transparent);
}

.hs-hero .ssc-breadcrumbs a:hover {
	text-decoration-color: var(--hsp-white);
}

.hs-hero .hs-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-family: var(--hsp-head);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hsp-white);
}

.hs-hero .hs-hero__eyebrow::before {
	content: "";
	width: 1.9rem;
	height: 3px;
	border-radius: 3px;
	background: var(--hsp-red);
	box-shadow: 0 0 14px color-mix(in srgb, var(--hsp-red) 80%, transparent);
}

.hs-hero h1,
.hs-hero .hs-hero__title {
	color: var(--hsp-white);
	font-family: var(--hsp-head);
	font-weight: 800;
	font-size: clamp(2.2rem, 1.35rem + 3.3vw, 3.85rem);
	line-height: 1.06;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.hs-hero .hs-hero__inner > .hs-hero__title,
.hs-hero .hs-hero__inner > .wp-block-post-title {
	margin-top: 0.85rem;
}

.hs-hero .hs-hero__sub {
	max-width: 40rem;
	font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
	line-height: 1.6;
	color: var(--hsp-on-dark);
}

.hs-hero .hs-hero__sub p {
	margin: 0;
}

.hs-hero .hs-hero__sub--lg {
	font-family: var(--hsp-head);
	font-weight: 600;
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
	color: var(--hsp-white);
}

.hs-hero .hs-hero__sub--address::before {
	content: "";
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin-right: 0.5rem;
	vertical-align: -0.2em;
	background: var(--hsp-red);
	-webkit-mask: url("../icons/pin.svg") center / contain no-repeat;
	mask: url("../icons/pin.svg") center / contain no-repeat;
}

/* Actions: Book, Call and the trust pills (pattern healthsource/hero-actions). */
.hs-hero .hs-hero__actions {
	margin-top: clamp(1.5rem, 3vw, 2rem);
}

.hs-hero__actions > * {
	margin-block: 0;
}

.hs-hero__buttons {
	gap: 0.75rem;
}

.hs-hero__buttons .hs-btn-book .wp-block-button__link {
	box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--hsp-red) 85%, transparent);
	transition: transform 0.25s var(--hsp-ease), box-shadow 0.25s var(--hsp-ease), background-color 0.2s;
}

.hs-hero__buttons .hs-btn-book .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px -12px color-mix(in srgb, var(--hsp-red) 95%, transparent);
}

/* Outline buttons on dark backgrounds: white glass (beats base.css's navy outline). */
.hs-hero .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button,
.hs-claim .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button,
.hs-entry .hs-callout--brand .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
	color: var(--hsp-white);
	background: color-mix(in srgb, var(--hsp-white) 7%, transparent);
	border: 2px solid color-mix(in srgb, var(--hsp-white) 55%, transparent);
	box-shadow: none;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.hs-hero .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:hover,
.hs-hero .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:focus-visible,
.hs-claim .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:hover,
.hs-claim .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:focus-visible,
.hs-entry .hs-callout--brand .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:hover,
.hs-entry .hs-callout--brand .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:focus-visible {
	color: var(--hsp-navy-2);
	background: var(--hsp-white);
	border-color: var(--hsp-white);
}

.hs-hero__actions .hs-hero__pills {
	gap: 0.5rem 0.6rem;
	margin-top: 1.35rem;
}

.hs-hero__pills .hs-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.42rem 0.85rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--hsp-white) 20%, transparent);
	background: color-mix(in srgb, var(--hsp-white) 9%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--hsp-white);
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.3;
}

.hs-hero__pills .hs-pill a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: inherit;
	text-decoration: none;
}

.hs-hero__pills .hs-pill a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.hs-hero__pills .hs-pill--rating a::before {
	content: "\2605\2605\2605\2605\2605";
	content: "\2605\2605\2605\2605\2605" / "";
	color: var(--hsp-gold);
	letter-spacing: 0.08em;
	font-size: 0.95em;
}

.hs-hero__pills .hs-pill--lang::before {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: url("../icons/language.svg") center / contain no-repeat;
	mask: url("../icons/language.svg") center / contain no-repeat;
}

.hs-hero__pills .hs-pill--hours,
.hs-hero__pills .hsc-hours-today {
	color: var(--hsp-white);
}

.hs-hero__pills .hsc-icon {
	width: 1rem;
	height: 1rem;
}

/* Hero photos (theme assets, never the page's own content image). */
.hs-hero--default { --hs-hero-img: url("../img/hero-first-visit.webp"); --hs-hero-pos: 62% 40%; }
.hs-hero--services { --hs-hero-img: url("../img/hero-table.webp"); --hs-hero-pos: 70% 45%; }
.hs-hero--service { --hs-hero-img: url("../img/hero-rehab.webp"); --hs-hero-pos: 72% 45%; }
.hs-hero--conditions { --hs-hero-img: url("../img/hero-spine-model.webp"); --hs-hero-pos: 85% 35%; }
.hs-hero--condition { --hs-hero-img: url("../img/hero-care.webp"); --hs-hero-pos: 75% 35%; }
.hs-hero--about { --hs-hero-img: url("../img/hero-consult.webp"); --hs-hero-pos: 75% 30%; }
.hs-hero--contact { --hs-hero-img: url("../img/hero-office.webp"); --hs-hero-pos: 70% 50%; }
.hs-hero--offer { --hs-hero-img: url("../img/hero-xray.webp"); --hs-hero-pos: 80% 40%; }
.hs-hero--book { --hs-hero-img: url("../img/hero-calendar.webp"); --hs-hero-pos: 85% 45%; }
.hs-hero--blog { --hs-hero-img: url("../img/hero-reading.webp"); --hs-hero-pos: 30% 35%; }
.hs-hero--search { --hs-hero-img: url("../img/hero-planner.webp"); --hs-hero-pos: 80% 45%; }
.hs-hero--notfound { --hs-hero-img: url("../img/hero-clinic.webp"); --hs-hero-pos: 60% 50%; }

.hs-hero--legal {
	--hs-hero-img: linear-gradient(transparent, transparent);
}

/* Size modifiers. */
.hs-hero--overlap {
	padding-bottom: calc(clamp(4.25rem, 8vw, 7rem) + var(--hsp-overlap));
}

.hs-hero--compact {
	padding-top: clamp(1.75rem, 4vw, 3.25rem);
	padding-bottom: clamp(3.75rem, 7vw, 5.5rem);
}

.hs-hero--compact h1,
.hs-hero--compact .hs-hero__title {
	font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem);
}

.hs-hero--slim {
	padding-top: clamp(1.5rem, 3.5vw, 2.75rem);
	padding-bottom: clamp(3.25rem, 6vw, 4.5rem);
}

.hs-hero--slim h1,
.hs-hero--slim .hs-hero__title {
	font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
}

.hs-hero--landing h1,
.hs-hero--landing .hs-hero__title {
	font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem);
}

.hs-hero .hs-hero__meta {
	gap: 0.4rem;
	align-items: baseline;
	font-size: 0.9rem;
	color: var(--hsp-on-dark);
}

.hs-hero .hs-hero__meta > * {
	margin: 0;
}

/* post-date (modified) prints nothing until a page is edited after publishing: hide the bare label. */
.hs-hero .hs-hero__meta:not(:has(time)) {
	display: none;
}

.hs-hero .hs-hero__meta-label::after {
	content: ":";
}

@media (max-width: 781px) {
	.hs-hero {
		--hs-hero-overlay: linear-gradient(180deg,
			color-mix(in srgb, var(--hsp-navy-deep) 84%, transparent) 0%,
			color-mix(in srgb, var(--hsp-navy-deep) 93%, transparent) 70%);
	}

	.hs-hero::before {
		top: -12rem;
		right: -12rem;
	}

	.hs-hero__buttons > .wp-block-button {
		flex: 1 1 100%;
	}

	.hs-hero__buttons .wp-block-button__link {
		width: 100%;
	}
}

/* ================================================================== sections */
.hs-sec {
	position: relative;
	padding-top: clamp(3rem, 7vw, 6rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

.hs-sec .hs-sec__inner > * {
	margin-block: 0;
}

.hs-sec .hs-sec__inner > * + * {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.hs-sec--tint {
	background: linear-gradient(180deg, color-mix(in srgb, var(--hsp-surface) 45%, var(--hsp-white)) 0%, var(--hsp-surface) 100%);
}

main.hs-main > .hs-sec.hs-sec--overlap {
	z-index: 3;
	margin-top: calc(var(--hsp-overlap) * -1);
	padding-top: 0;
	padding-bottom: clamp(0.5rem, 2vw, 1.5rem);
	background: transparent;
}

.hs-sec__head {
	max-width: 46rem;
}

.hs-sec__head > * {
	margin-block: 0;
}

.hs-sec__head > * + * {
	margin-top: 0.75rem;
}

.hs-sec .hs-sec__eyebrow {
	font-family: var(--hsp-head);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hsp-red);
}

.hs-sec--tint .hs-sec__eyebrow {
	color: var(--hsp-navy);
}

.hs-sec .hs-sec__title {
	font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem);
	line-height: 1.12;
	text-wrap: balance;
}

.hs-sec .hs-sec__intro {
	font-size: 1.075rem;
	color: var(--hsp-muted);
}

/* ================================================================== content + sticky sidebar */
.hs-body {
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

.hs-body--after-cards {
	padding-top: clamp(2rem, 4.5vw, 4rem);
}

.hs-body .hs-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 3.5rem);
}

.hs-body .hs-layout > *,
.hs-body .hs-layout__main > * {
	margin-block: 0;
}

.hs-body .hs-layout__main > * + * {
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Inside the two-column layout, post-content (align full for the gate) stays in its column. */
.hs-layout .wp-block-post-content.alignfull,
.hs-single .wp-block-post-content.alignfull {
	width: auto;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

@media (min-width: 1080px) {
	.hs-body .hs-layout {
		grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 360px);
		column-gap: clamp(2.75rem, 4.5vw, 4.75rem);
		align-items: start;
	}

	.hs-body .hs-layout > .hs-aside {
		align-self: stretch;
	}

	.hs-aside .hs-aside__sticky {
		position: sticky;
		top: var(--hsp-sticky-top);
		max-height: calc(100vh - var(--hsp-sticky-top) - 1.25rem);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--hsp-border) transparent;
		/* Room for card shadows inside the scroll box. */
		margin: -0.5rem -0.75rem;
		padding: 0.5rem 0.75rem 1rem;
	}
}

/* When the sidebar is taller than the screen it scrolls on its own; its bottom edge fades until the end. */
@property --hs-aside-fade {
	syntax: "<length>";
	inherits: false;
	initial-value: 0px;
}

@keyframes hs-aside-fade {
	from {
		--hs-aside-fade: 4rem;
	}

	94% {
		--hs-aside-fade: 4rem;
	}

	to {
		--hs-aside-fade: 0px;
	}
}

@media (min-width: 1080px) {
	.hs-aside .hs-aside__sticky {
		-webkit-mask-image: linear-gradient(180deg, black calc(100% - var(--hs-aside-fade)), transparent);
		mask-image: linear-gradient(180deg, black calc(100% - var(--hs-aside-fade)), transparent);
	}

	@supports (animation-timeline: scroll()) {
		.hs-aside .hs-aside__sticky {
			animation: hs-aside-fade linear both;
			animation-timeline: scroll(self);
		}
	}
}

.hs-aside .hs-aside__sticky > * {
	margin-block: 0;
}

.hs-aside .hs-aside__sticky > * + * {
	margin-top: 1.25rem;
}

/* Single column templates (offer, contact, legal). */
.hs-single .wp-block-post-content.hs-entry {
	max-width: 46rem;
	margin-inline: auto;
}

/* ================================================================== query cards */
.hs-qcards .hs-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 2.2vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-qcards .hs-grid > li {
	margin: 0;
	min-width: 0;
}

@media (min-width: 640px) {
	.hs-qcards .hs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.hs-qcards .hs-grid--3,
	.hs-qcards .hs-grid--4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1240px) {
	.hs-qcards .hs-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.hs-qcard {
	--hs-icon: url("../icons/mark.svg");
	--hs-badge: 3.5rem;
	--hs-glyph: 1.6rem;
	--hs-pad: clamp(1.15rem, 2vw, 1.5rem);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-lg);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-sm);
	transition: transform 0.45s var(--hsp-ease), box-shadow 0.45s var(--hsp-ease), border-color 0.3s;
}

.hs-qcard:hover {
	transform: translateY(-6px);
	border-color: color-mix(in srgb, var(--hsp-border) 40%, transparent);
	box-shadow: var(--hsp-sh-lg);
}

.hs-qcard:has(a:focus-visible) {
	outline: 3px solid color-mix(in srgb, var(--hsp-red) 55%, transparent);
	outline-offset: 3px;
}

/* Icon badge: red tile over the photo edge, the glyph masked in white. Pseudo-elements are grid items. */
.hs-qcard::before,
.hs-qcard::after {
	content: "";
	grid-area: 1 / 1;
	align-self: end;
	justify-self: start;
	z-index: 3;
	pointer-events: none;
}

.hs-qcard::before {
	width: var(--hs-badge);
	height: var(--hs-badge);
	margin: 0 0 calc(var(--hs-badge) / -2) var(--hs-pad);
	border: 3px solid var(--hsp-white);
	border-radius: 1rem;
	background: linear-gradient(140deg, var(--hsp-red) 0%, var(--hsp-red-dark) 100%);
	box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--hsp-red) 75%, transparent);
	transition: transform 0.45s var(--hsp-ease);
}

.hs-qcard::after {
	width: var(--hs-glyph);
	height: var(--hs-glyph);
	margin: 0 0 calc(var(--hs-badge) / -2 + (var(--hs-badge) - var(--hs-glyph)) / 2) calc(var(--hs-pad) + (var(--hs-badge) - var(--hs-glyph)) / 2);
	background: var(--hsp-white);
	-webkit-mask: var(--hs-icon) center / contain no-repeat;
	mask: var(--hs-icon) center / contain no-repeat;
	transition: transform 0.45s var(--hsp-ease);
}

.hs-qcard:hover::before,
.hs-qcard:hover::after {
	transform: translateY(-3px) rotate(-4deg);
}

.hs-qcard:not(:has(.hs-qcard__media))::before,
.hs-qcard:not(:has(.hs-qcard__media))::after {
	align-self: start;
}

.hs-qcard:not(:has(.hs-qcard__media))::before {
	margin: var(--hs-pad) 0 0 var(--hs-pad);
}

.hs-qcard:not(:has(.hs-qcard__media))::after {
	margin: calc(var(--hs-pad) + (var(--hs-badge) - var(--hs-glyph)) / 2) 0 0 calc(var(--hs-pad) + (var(--hs-badge) - var(--hs-glyph)) / 2);
}

.hs-qcard .hs-qcard__media {
	grid-area: 1 / 1;
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--hsp-surface);
}

.hs-qcard .hs-qcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--hsp-ease);
}

.hs-qcard .hs-qcard__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--hsp-navy-deep) 38%, transparent) 100%);
	pointer-events: none;
}

.hs-qcard:hover .hs-qcard__media img {
	transform: scale(1.06);
}

.hs-qcard .hs-qcard__body {
	grid-area: 2 / 1;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: calc(var(--hs-badge) / 2 + 1rem) var(--hs-pad) 1.4rem;
}

.hs-qcard:not(:has(.hs-qcard__media)) .hs-qcard__body {
	grid-area: 1 / 1 / 3 / 2;
	padding-top: calc(var(--hs-pad) + var(--hs-badge) + 1rem);
}

.hs-qcard .hs-qcard__body > * {
	margin: 0;
}

.hs-qcard .hs-qcard__title {
	font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem);
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.hs-qcard .hs-qcard__title a {
	color: var(--hsp-navy-2);
	text-decoration: none;
}

/* Whole card is the link; the read-more link sits above it for its own focus ring. */
.hs-qcard .hs-qcard__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hs-qcard:hover .hs-qcard__title a {
	color: var(--hsp-navy);
}

.hs-qcard .hs-qcard__text,
.hs-qcard .hs-qcard__text p {
	margin: 0;
	font-size: 0.975rem;
	line-height: 1.6;
	color: var(--hsp-muted);
}

.hs-qcard .hs-qcard__more {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 0.35rem;
	font-family: var(--hsp-head);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--hsp-red);
	text-decoration: none;
}

.hs-qcard .hs-qcard__more::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: url("../icons/arrow-right.svg") center / contain no-repeat;
	mask: url("../icons/arrow-right.svg") center / contain no-repeat;
	transition: transform 0.3s var(--hsp-ease);
}

.hs-qcard:hover .hs-qcard__more {
	color: var(--hsp-red-dark);
}

.hs-qcard:hover .hs-qcard__more::after {
	transform: translateX(4px);
}

.hs-qcard .hs-qcard__cat {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: 0;
}

.hs-qcard .hs-qcard__cat .wp-block-post-terms__separator {
	display: none;
}

.hs-qcard .hs-qcard__cat a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.32rem 0.7rem;
	border-radius: 999px;
	background: var(--hsp-surface);
	color: var(--hsp-navy);
	font-family: var(--hsp-head);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.hs-qcard .hs-qcard__cat a::before {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--hsp-red);
}

.hs-qcard .hs-qcard__cat a:hover {
	background: var(--hsp-navy);
	color: var(--hsp-white);
}

.hs-qcard .hs-qcard__meta {
	gap: 0.35rem 0.9rem;
	font-size: 0.85rem;
	color: var(--hsp-muted);
}

.hs-qcard .hs-qcard__meta > * {
	margin: 0;
}

.hs-qcard .hs-qcard__meta > * + *::before {
	content: "";
	display: inline-block;
	width: 0.25rem;
	height: 0.25rem;
	margin-right: 0.9rem;
	border-radius: 50%;
	background: var(--hsp-border);
	vertical-align: middle;
}

/* Cards without a badge: blog posts and search results. */
.hs-qcard--post::before,
.hs-qcard--post::after,
.hs-qcard--result::before,
.hs-qcard--result::after {
	display: none;
}

.hs-qcard--post .hs-qcard__body,
.hs-qcard--result .hs-qcard__body {
	padding-top: 1.25rem;
}

.hs-qcard--result:not(:has(.hs-qcard__media)) .hs-qcard__body {
	padding-top: var(--hs-pad);
}

/* Per-item icons, picked from the card's link (no plugin needed). Icons are theme assets. */
.hs-qcard--service { --hs-icon: url("../icons/s-spine.svg"); }
.hs-qcard:has(a[href*="/chiropractic-care/"]) { --hs-icon: url("../icons/s-spine.svg"); }
.hs-qcard:has(a[href*="/progressive-rehab-functional-exercise/"]) { --hs-icon: url("../icons/s-rehab.svg"); }
.hs-qcard:has(a[href*="/laser-therapy/"]) { --hs-icon: url("../icons/s-laser.svg"); }
.hs-qcard:has(a[href*="/spinal-decompression/"]) { --hs-icon: url("../icons/s-decompress.svg"); }
.hs-qcard:has(a[href*="/sleep-optimization/"]) { --hs-icon: url("../icons/s-sleep.svg"); }
.hs-qcard:has(a[href*="/nutritional-counseling/"]) { --hs-icon: url("../icons/s-nutrition.svg"); }
.hs-qcard:has(a[href*="/sciatica-relief/"]) { --hs-icon: url("../icons/c-sciatica.svg"); }
.hs-qcard:has(a[href*="/back-pain-relief/"]) { --hs-icon: url("../icons/c-back.svg"); }
.hs-qcard:has(a[href*="/neck-pain-relief/"]) { --hs-icon: url("../icons/c-neck.svg"); }
.hs-qcard:has(a[href*="/headache-migraine-relief/"]) { --hs-icon: url("../icons/c-head.svg"); }
.hs-qcard:has(a[href*="/sports-injury-treatment/"]) { --hs-icon: url("../icons/c-sports.svg"); }
.hs-qcard:has(a[href*="/personal-injury-chiropractor/"]) { --hs-icon: url("../icons/c-injury.svg"); }
.hs-qcard:has(a[href*="/workplace-injury-treatment/"]) { --hs-icon: url("../icons/c-work.svg"); }
.hs-qcard:has(a[href*="/car-accident-chiropractor/"]) { --hs-icon: url("../icons/c-car.svg"); }
.hs-qcard:has(a[href*="/shoulder-arm-pain/"]) { --hs-icon: url("../icons/c-shoulder.svg"); }
.hs-qcard:has(a[href*="/carpal-tunnel-syndrome/"]) { --hs-icon: url("../icons/c-hand.svg"); }
.hs-qcard:has(a[href*="/foot-ankle-pain/"]) { --hs-icon: url("../icons/c-foot.svg"); }
.hs-qcard:has(a[href*="/hip-knee-pain/"]) { --hs-icon: url("../icons/c-knee.svg"); }

/* Conditions on phones: compact rows (thumbnail, icon, title) instead of twelve tall cards. */
@media (max-width: 639px) {
	.hs-qcards--conditions .hs-qcard {
		--hs-badge: 2.5rem;
		--hs-glyph: 1.15rem;
		grid-template-columns: 6.25rem minmax(0, 1fr);
		grid-template-rows: minmax(6.25rem, auto);
	}

	/* The photo fills its cell without setting the row height (the text does). */
	.hs-qcards--conditions .hs-qcard .hs-qcard__media {
		grid-area: 1 / 1;
		align-self: stretch;
		min-height: 6.25rem;
	}

	.hs-qcards--conditions .hs-qcard .hs-qcard__media img {
		position: absolute;
		inset: 0;
		aspect-ratio: auto !important;
	}

	.hs-qcards--conditions .hs-qcard::before,
	.hs-qcards--conditions .hs-qcard::after {
		grid-area: 1 / 1;
		align-self: center;
		justify-self: end;
	}

	.hs-qcards--conditions .hs-qcard::before {
		margin: 0 calc(var(--hs-badge) / -2) 0 0;
	}

	.hs-qcards--conditions .hs-qcard::after {
		margin: 0 calc(var(--hs-badge) / -2 + (var(--hs-badge) - var(--hs-glyph)) / 2) 0 0;
	}

	.hs-qcards--conditions .hs-qcard .hs-qcard__body {
		grid-area: 1 / 2;
		justify-content: center;
		padding: 0.9rem 1rem 0.9rem calc(var(--hs-badge) / 2 + 0.9rem);
	}

	.hs-qcards--conditions .hs-qcard .hs-qcard__text {
		display: none;
	}

	.hs-qcards--conditions .hs-qcard .hs-qcard__title {
		font-size: 1.05rem;
	}

	.hs-qcards--conditions .hs-qcard .hs-qcard__more {
		margin-top: 0;
		padding-top: 0;
		font-size: 0.875rem;
	}

	.hs-qcards--conditions .hs-grid {
		gap: 0.75rem;
	}
}

/* ================================================================== post content (.hs-entry) */
.wp-block-post-content.hs-entry {
	--hs-measure: 68ch;
	font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
	line-height: 1.75;
	color: var(--hsp-ink);
}

.wp-block-post-content.hs-entry > * {
	max-width: var(--hs-measure);
	margin-block: 0;
}

.wp-block-post-content.hs-entry > * + * {
	margin-block-start: 1.15em;
}

/* Full column width: data, widgets and the bands that should read as their own block. */
.wp-block-post-content.hs-entry > :is(.hs-inline-cta, .hs-faq, .wp-block-table, .alignwide, .alignfull, .wp-block-columns, .wp-block-samaroo-booking, .wp-block-healthsource-map, .wp-block-embed) {
	max-width: none;
}

.wp-block-post-content.hs-entry::after {
	content: "";
	display: table;
	clear: both;
}

.hs-entry :is(h2, h3) {
	scroll-margin-top: var(--hsp-sticky-top);
}

/* Section headings of the content only (widgets such as the booking calendar keep their own). */
.hs-entry > h2 {
	position: relative;
	padding-top: 1.1rem;
	font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.15rem);
	line-height: 1.15;
	text-wrap: balance;
}

.hs-entry > h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3rem;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--hsp-red) 0 62%, color-mix(in srgb, var(--hsp-red) 28%, transparent) 62% 100%);
}

.wp-block-post-content.hs-entry > h2 {
	margin-block-start: 2.4em;
}

.hs-entry > h3,
.hs-entry .hs-callout > h3 {
	font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
	line-height: 1.25;
}

.wp-block-post-content.hs-entry > h3 {
	margin-block-start: 1.9em;
}

.wp-block-post-content.hs-entry > :is(h2, h3) + * {
	margin-block-start: 0.65em;
}

.hs-entry a:where(:not(.wp-element-button):not(.wp-block-button__link)) {
	color: var(--hsp-navy);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--hsp-red) 65%, transparent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.22em;
	transition: color 0.2s, text-decoration-color 0.2s;
}

.hs-entry a:where(:not(.wp-element-button):not(.wp-block-button__link)):hover {
	color: var(--hsp-red-dark);
	text-decoration-color: currentColor;
}

.hs-entry strong {
	color: var(--hsp-navy-2);
	font-weight: 700;
}

.hs-entry > ul:not(.hs-checklist) > li::marker,
.hs-entry > ol > li::marker,
.hs-entry .hs-callout > :is(ul, ol):not(.hs-checklist) > li::marker {
	color: var(--hsp-red);
	font-weight: 700;
}

.hs-entry > :is(ul, ol) > li + li,
.hs-entry .hs-callout > :is(ul, ol) > li + li {
	margin-top: 0.35em;
}

.hs-entry hr,
.hs-entry .wp-block-separator {
	clear: both;
	border: 0;
	height: 1px;
	background: var(--hsp-border);
	margin-block: 2.5em;
}

/* Lead paragraph. */
.hs-entry .hs-lead {
	font-size: clamp(1.18rem, 1.05rem + 0.55vw, 1.42rem);
	line-height: 1.6;
	font-weight: 500;
	color: var(--hsp-navy-2);
	letter-spacing: -0.005em;
}

/* First image in content. */
.hs-entry .hs-media {
	position: relative;
	isolation: isolate;
	margin-block: 2em;
}

.hs-entry .hs-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hsp-r-lg);
	box-shadow: var(--hsp-sh-md);
}

.hs-entry .hs-media::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0.9rem -0.9rem -0.9rem 0.9rem;
	border-radius: var(--hsp-r-lg);
	background: linear-gradient(135deg, color-mix(in srgb, var(--hsp-red) 16%, transparent), color-mix(in srgb, var(--hsp-navy) 14%, transparent));
}

.hs-entry .hs-media figcaption {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: var(--hsp-muted);
}

@media (min-width: 1080px) {
	.wp-block-post-content.hs-entry--page > .hs-media {
		float: right;
		clear: right;
		width: 42%;
		max-width: 42%;
		/* Top margin matches the paragraph gap, so the photo lines up with the text that wraps it. */
		margin: 1.15em 0.9rem 1.5em clamp(1.75rem, 3vw, 2.75rem);
	}
}

.hs-entry figure:not(.hs-media) img {
	border-radius: var(--hsp-r-md);
}

/* Check list (lists with 3+ items). */
.hs-entry .hs-checklist {
	display: grid;
	gap: 0.65rem;
	padding-left: 0;
	list-style: none;
}

.hs-entry .hs-checklist > li {
	position: relative;
	margin: 0;
	padding-left: 2.15rem;
}

.hs-entry .hs-checklist > li::before,
.hs-entry .hs-checklist > li::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0.22em;
}

.hs-entry .hs-checklist > li::before {
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 50%;
	background: var(--hsp-red-tint);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hsp-red) 18%, transparent);
}

.hs-entry .hs-checklist > li::after {
	left: 0.28rem;
	top: calc(0.22em + 0.28rem);
	width: 0.9rem;
	height: 0.9rem;
	background: var(--hsp-red);
	-webkit-mask: url("../icons/check.svg") center / contain no-repeat;
	mask: url("../icons/check.svg") center / contain no-repeat;
}

@media (min-width: 782px) {
	.hs-entry .hs-checklist:has(> li:nth-child(6)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 2rem;
		clear: both;
	}
}

/* Callouts. */
.wp-block-post-content.hs-entry > .hs-callout {
	margin-block: 2.5em;
}

.hs-entry .hs-callout {
	--hs-callout-pad: clamp(1.35rem, 3vw, 2.15rem);
	--hs-callout-icon: url("../icons/doc.svg");
	clear: both;
	position: relative;
	overflow: hidden;
	padding: var(--hs-callout-pad);
	border-radius: var(--hsp-r-lg);
}

.hs-entry .hs-callout > * {
	margin-block: 0;
}

.hs-entry .hs-callout > * + * {
	margin-top: 0.9em;
}

/* First child (normally the section's H2) sits beside the icon tile. Block, not flex: inline text stays intact. */
.hs-entry .hs-callout > :first-child {
	min-height: 2.75rem;
	padding-top: 0.45rem;
	padding-left: 3.6rem;
}

.hs-entry .hs-callout::before,
.hs-entry .hs-callout::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.hs-entry .hs-callout::before {
	top: var(--hs-callout-pad);
	left: var(--hs-callout-pad);
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.85rem;
}

.hs-entry .hs-callout::after {
	top: calc(var(--hs-callout-pad) + 0.65rem);
	left: calc(var(--hs-callout-pad) + 0.65rem);
	width: 1.45rem;
	height: 1.45rem;
	background: var(--hsp-white);
	-webkit-mask: var(--hs-callout-icon) center / contain no-repeat;
	mask: var(--hs-callout-icon) center / contain no-repeat;
}

.hs-entry .hs-callout > h2 {
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
	line-height: 1.2;
}

.hs-entry .hs-callout > h3 {
	font-size: 1.15rem;
}

/* Red flags: tinted warning box, navy links (red text is for white only). */
.hs-entry .hs-callout--alert {
	--hs-callout-icon: url("../icons/alert.svg");
	background: linear-gradient(135deg, var(--hsp-red-tint) 0%, var(--hsp-white) 100%);
	border: 1px solid color-mix(in srgb, var(--hsp-red) 24%, transparent);
	border-left: 6px solid var(--hsp-red);
	box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--hsp-red) 55%, transparent);
}

.hs-entry .hs-callout--alert::before {
	background: var(--hsp-red);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--hsp-red) 14%, transparent);
}

.hs-entry .hs-callout--alert h2,
.hs-entry .hs-callout--alert h3 {
	color: var(--hsp-ink);
}

.hs-entry .hs-callout--alert a:where(:not(.wp-element-button)):hover {
	color: var(--hsp-navy-2);
}

.hs-entry .hs-callout--alert .hs-checklist > li::before {
	background: var(--hsp-white);
}

.hs-entry .hs-callout--alert .hs-checklist > li::after {
	-webkit-mask-image: url("../icons/alert.svg");
	mask-image: url("../icons/alert.svg");
}

/* HealthSource / our approach: navy card. */
.hs-entry .hs-callout--brand {
	--hs-callout-icon: url("../icons/mark.svg");
	color: var(--hsp-white);
	background:
		radial-gradient(30rem 18rem at 105% -10%, color-mix(in srgb, var(--hsp-red) 32%, transparent), transparent 60%),
		linear-gradient(135deg, var(--hsp-navy-deep) 0%, var(--hsp-navy-2) 45%, var(--hsp-navy) 100%);
	box-shadow: var(--hsp-sh-lg);
}

.hs-entry .hs-callout--brand::before {
	background: var(--hsp-red);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--hsp-white) 10%, transparent);
}

.hs-entry .hs-callout--brand :is(h2, h3, h4, strong) {
	color: var(--hsp-white);
}

.hs-entry .hs-callout--brand p,
.hs-entry .hs-callout--brand li {
	color: var(--hsp-on-dark);
}

.hs-entry .hs-callout--brand a:where(:not(.wp-element-button):not(.wp-block-button__link)) {
	color: var(--hsp-white);
	font-weight: 600;
	text-decoration-color: var(--hsp-red);
}

.hs-entry .hs-callout--brand a:where(:not(.wp-element-button):not(.wp-block-button__link)):hover {
	color: var(--hsp-white);
	text-decoration-color: var(--hsp-white);
}

.hs-entry .hs-callout--brand .hs-checklist > li::before {
	background: color-mix(in srgb, var(--hsp-white) 12%, transparent);
	box-shadow: none;
}

.hs-entry .hs-callout--brand .hs-checklist > li::after {
	background: var(--hsp-white);
}

/* Research / evidence: light card with a document icon. */
.hs-entry .hs-callout--evidence {
	--hs-callout-icon: url("../icons/doc.svg");
	background: var(--hsp-surface);
	border: 1px solid var(--hsp-border);
}

.hs-entry .hs-callout--evidence::before {
	background: var(--hsp-navy);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--hsp-navy) 10%, transparent);
}

.hs-entry .hs-callout--evidence a:where(:not(.wp-element-button)):hover {
	color: var(--hsp-navy-2);
}

.hs-entry .hs-callout--evidence .hs-checklist > li::before {
	background: var(--hsp-white);
	box-shadow: inset 0 0 0 1px var(--hsp-border);
}

.hs-entry .hs-callout--evidence .hs-checklist > li::after {
	background: var(--hsp-navy);
}

/* Mid-content Book / Call band. */
.wp-block-post-content.hs-entry > .hs-inline-cta {
	margin-block: 2.75em;
}

.hs-entry .hs-inline-cta {
	clear: both;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-lg);
	background:
		radial-gradient(22rem 12rem at 100% 0%, color-mix(in srgb, var(--hsp-red) 10%, transparent), transparent 70%),
		linear-gradient(120deg, var(--hsp-surface) 0%, color-mix(in srgb, var(--hsp-surface) 35%, var(--hsp-white)) 100%);
	box-shadow: var(--hsp-sh-sm);
}

.hs-entry .hs-inline-cta::before {
	content: "";
	order: 0;
	flex: none;
	width: 3rem;
	height: 3rem;
	border-radius: 0.9rem;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M9 15l2 2 4-4'/%3E%3C/svg%3E") center / 1.4rem no-repeat,
		linear-gradient(140deg, var(--hsp-red) 0%, var(--hsp-red-dark) 100%);
	box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--hsp-red) 75%, transparent);
}

.hs-entry .hs-inline-cta > * {
	order: 2;
	margin: 0;
}

/* The band holds only the Book and Call buttons, so it gets a short visual label (hidden from screen readers:
   the buttons speak for themselves). Constrained layout centres children with !important auto margins. */
.hs-entry .hs-inline-cta > .wp-block-buttons {
	margin-inline: 0 !important;
}

.hs-entry .hs-inline-cta::after {
	content: "Ready to get your pain checked?";
	content: "Ready to get your pain checked?" / "";
	order: 1;
	flex: 1 1 14rem;
	font-family: var(--hsp-head);
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--hsp-navy-2);
}

.hs-entry .hs-inline-cta p {
	flex: 1 1 15rem;
	font-family: var(--hsp-head);
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1.4;
	color: var(--hsp-navy-2);
}

.hs-entry .hs-inline-cta a:where(:not(.wp-element-button):not(.wp-block-button__link)):hover {
	color: var(--hsp-navy-2);
}

.hs-entry .hs-inline-cta .wp-block-buttons {
	gap: 0.6rem;
}

/* FAQ accordion. */
.wp-block-post-content.hs-entry > .hs-faq {
	margin-block: 2em;
}

.hs-entry .hs-faq {
	clear: both;
	display: grid;
	gap: 0.75rem;
}

.hs-entry .hs-faq > * {
	margin: 0;
}

.hs-entry .hs-faq .wp-block-details {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-md);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-sm);
	transition: box-shadow 0.3s var(--hsp-ease), border-color 0.3s;
}

.hs-entry .hs-faq .wp-block-details:hover {
	border-color: color-mix(in srgb, var(--hsp-navy) 30%, transparent);
}

.hs-entry .hs-faq .wp-block-details[open] {
	border-color: color-mix(in srgb, var(--hsp-red) 35%, transparent);
	box-shadow: var(--hsp-sh-md);
}

.hs-entry .hs-faq summary {
	position: relative;
	display: block;
	cursor: pointer;
	list-style: none;
	padding: 1.1rem 4rem 1.1rem 1.35rem;
	font-family: var(--hsp-head);
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--hsp-navy-2);
}

.hs-entry .hs-faq summary::-webkit-details-marker {
	display: none;
}

.hs-entry .hs-faq summary::before,
.hs-entry .hs-faq summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.1rem;
	transform: translateY(-50%);
}

.hs-entry .hs-faq summary::before {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--hsp-red-tint);
	transition: background-color 0.25s;
}

.hs-entry .hs-faq summary::after {
	right: 1.6rem;
	width: 1rem;
	height: 1rem;
	background: var(--hsp-red);
	-webkit-mask: url("../icons/plus.svg") center / contain no-repeat;
	mask: url("../icons/plus.svg") center / contain no-repeat;
	transition: transform 0.3s var(--hsp-ease);
}

.hs-entry .hs-faq details[open] > summary::before {
	background: var(--hsp-red);
}

.hs-entry .hs-faq details[open] > summary::after {
	background: var(--hsp-white);
	-webkit-mask-image: url("../icons/minus.svg");
	mask-image: url("../icons/minus.svg");
	transform: translateY(-50%) rotate(180deg);
}

.hs-entry .hs-faq summary:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--hsp-red) 55%, transparent);
	outline-offset: -3px;
	border-radius: var(--hsp-r-md);
}

.hs-entry .hs-faq details > :not(summary) {
	margin: 0;
	padding: 0 1.35rem;
	color: var(--hsp-ink);
}

.hs-entry .hs-faq details > :not(summary) + :not(summary) {
	padding-top: 0.75rem;
}

.hs-entry .hs-faq details > :last-child {
	padding-bottom: 1.25rem;
}

@supports selector(::details-content) {
	.hs-entry .hs-faq details::details-content {
		block-size: 0;
		overflow-y: clip;
		transition: block-size 0.35s var(--hsp-ease), content-visibility 0.35s allow-discrete;
	}

	.hs-entry .hs-faq details[open]::details-content {
		block-size: auto;
		block-size: calc-size(auto, size);
	}
}

/* Question headings kept as H3 (where an accordion would cost Yoast). */
.hs-entry .hs-qa {
	clear: both;
	position: relative;
	padding: 0.95rem 1.25rem 0.95rem 3.6rem;
	border-radius: var(--hsp-r-md);
	background: var(--hsp-surface);
	border-left: 4px solid var(--hsp-navy);
	font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.25rem);
	color: var(--hsp-navy-2);
}

.hs-entry .hs-qa::before {
	content: "Q";
	content: "Q" / "";
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 0.55rem;
	background: var(--hsp-navy);
	color: var(--hsp-white);
	font-family: var(--hsp-head);
	font-size: 0.9rem;
	font-weight: 800;
}

.wp-block-post-content.hs-entry > .hs-qa {
	margin-block-start: 2em;
}

.wp-block-post-content.hs-entry > .hs-qa + * {
	margin-block-start: 0.85em;
}

/* Tables. */
.hs-entry .wp-block-table {
	clear: both;
	overflow-x: auto;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-md);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-sm);
}

.hs-entry .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.975rem;
	line-height: 1.55;
}

.hs-entry .wp-block-table :is(th, td) {
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--hsp-border);
	text-align: left;
	vertical-align: top;
}

.hs-entry .wp-block-table thead th,
.hs-entry .wp-block-table thead td {
	background: var(--hsp-navy-2);
	color: var(--hsp-white);
	font-family: var(--hsp-head);
	font-weight: 700;
	border-bottom: 0;
}

.hs-entry .wp-block-table tbody tr:nth-child(even) {
	background: color-mix(in srgb, var(--hsp-surface) 55%, var(--hsp-white));
}

.hs-entry .wp-block-table tbody tr:last-child :is(th, td) {
	border-bottom: 0;
}

.hs-entry .wp-block-table tbody th {
	color: var(--hsp-navy-2);
	font-weight: 700;
}

.hs-entry .wp-block-table figcaption {
	padding: 0.75rem 1rem;
	font-size: 0.85rem;
	color: var(--hsp-muted);
}

/* Quotes. */
.hs-entry .wp-block-quote,
.hs-entry .wp-block-pullquote {
	position: relative;
	margin-inline: 0;
	padding: 1.5rem 1.75rem 1.5rem 4.25rem;
	border: 1px solid var(--hsp-border);
	border-left: 0;
	border-radius: var(--hsp-r-lg);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-sm);
	font-family: var(--hsp-head);
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	font-weight: 600;
	line-height: 1.5;
	color: var(--hsp-navy-2);
	text-align: left;
}

.hs-entry .wp-block-quote::before,
.hs-entry .wp-block-pullquote::before {
	content: "";
	position: absolute;
	left: 1.35rem;
	top: 1.5rem;
	width: 1.9rem;
	height: 1.9rem;
	background: var(--hsp-red);
	-webkit-mask: url("../icons/quote.svg") center / contain no-repeat;
	mask: url("../icons/quote.svg") center / contain no-repeat;
}

.hs-entry .wp-block-quote cite,
.hs-entry .wp-block-pullquote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--hsp-body);
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 500;
	color: var(--hsp-muted);
}

/* Widgets that can sit in content. */
.hs-entry .wp-block-samaroo-business-info,
.hs-entry .ssc-business-info {
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-md);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-sm);
}

.hs-entry .wp-block-buttons {
	gap: 0.65rem;
}

/* ================================================================== offer */
.hs-includes > * {
	margin-block: 0;
}

.hs-includes .hs-includes__grid {
	display: grid;
	gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 782px) {
	.hs-includes .hs-includes__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.hs-includes .hs-include {
	--hs-icon: url("../icons/user.svg");
	position: relative;
	margin: 0;
	padding: 1.75rem 1.5rem 1.6rem;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-lg);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-md);
	transition: transform 0.45s var(--hsp-ease), box-shadow 0.45s var(--hsp-ease);
}

.hs-includes .hs-include:hover {
	transform: translateY(-5px);
	box-shadow: var(--hsp-sh-lg);
}

.hs-includes .hs-include--exam { --hs-icon: url("../icons/stethoscope.svg"); }
.hs-includes .hs-include--xray { --hs-icon: url("../icons/xray.svg"); }

.hs-includes .hs-include::before {
	content: "";
	display: block;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1.1rem;
	border-radius: 1rem;
	background: linear-gradient(140deg, var(--hsp-red) 0%, var(--hsp-red-dark) 100%);
	box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--hsp-red) 75%, transparent);
}

.hs-includes .hs-include::after {
	content: "";
	position: absolute;
	top: calc(1.75rem + 0.8rem);
	left: calc(1.5rem + 0.8rem);
	width: 1.65rem;
	height: 1.65rem;
	background: var(--hsp-white);
	-webkit-mask: var(--hs-icon) center / contain no-repeat;
	mask: var(--hs-icon) center / contain no-repeat;
}

.hs-include > * {
	margin: 0;
}

.hs-include > * + * {
	margin-top: 0.45rem;
}

.hs-include .hs-include__step {
	font-family: var(--hsp-head);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hsp-red);
}

.hs-include .hs-include__title {
	font-family: var(--hsp-head);
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--hsp-navy-2);
}

.hs-include .hs-include__text {
	color: var(--hsp-muted);
	line-height: 1.6;
}

.hs-disclosure {
	position: relative;
	margin-top: clamp(1rem, 2vw, 1.5rem);
	padding: 1.1rem 1.35rem 1.1rem 3.75rem;
	border: 1px dashed color-mix(in srgb, var(--hsp-navy) 35%, transparent);
	border-radius: var(--hsp-r-md);
	background: var(--hsp-surface);
	font-size: 0.925rem;
	line-height: 1.55;
	color: var(--hsp-ink);
}

.hs-disclosure::before {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 1.15rem;
	width: 1.5rem;
	height: 1.5rem;
	background: var(--hsp-navy);
	-webkit-mask: url("../icons/shield.svg") center / contain no-repeat;
	mask: url("../icons/shield.svg") center / contain no-repeat;
}

.hs-disclosure > * {
	margin: 0;
}

.hs-disclosure .hs-disclosure__title {
	font-family: var(--hsp-head);
	font-weight: 800;
	color: var(--hsp-navy-2);
}

.hs-disclosure .hs-disclosure__title + * {
	margin-top: 0.2rem;
}

.hs-body--offer {
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Big Book / Call block. */
.hs-claim {
	padding-top: clamp(1rem, 3vw, 2rem);
	padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.hs-claim .hs-claim__panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	padding: clamp(1.75rem, 5vw, 4rem);
	border-radius: var(--hsp-r-xl);
	color: var(--hsp-white);
	background:
		radial-gradient(36rem 22rem at 100% 0%, color-mix(in srgb, var(--hsp-red) 40%, transparent), transparent 62%),
		radial-gradient(28rem 18rem at 0% 110%, color-mix(in srgb, var(--hsp-navy) 90%, transparent), transparent 70%),
		linear-gradient(135deg, var(--hsp-navy-deep) 0%, var(--hsp-navy-2) 100%);
	box-shadow: var(--hsp-sh-lg);
}

.hs-claim .hs-claim__panel::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -5rem;
	bottom: -7rem;
	width: 20rem;
	height: 20rem;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--hsp-white) 14%, transparent);
	box-shadow: 0 0 0 2.5rem color-mix(in srgb, var(--hsp-white) 3%, transparent);
}

@media (min-width: 900px) {
	.hs-claim .hs-claim__panel {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: center;
	}
}

.hs-claim__panel > *,
.hs-claim__text > *,
.hs-claim__action > * {
	margin-block: 0;
}

.hs-claim__text > * + *,
.hs-claim__action > * + * {
	margin-top: 1rem;
}

.hs-claim .hs-claim__eyebrow {
	font-family: var(--hsp-head);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hsp-on-dark);
}

.hs-claim .hs-claim__title {
	color: var(--hsp-white);
	font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
	line-height: 1.08;
	text-wrap: balance;
}

.hs-claim .hs-claim__steps {
	display: grid;
	gap: 0.85rem;
	margin-top: 1.5rem;
	padding: 0;
	list-style: none;
	counter-reset: hs-claim;
}

.hs-claim .hs-claim__steps > li {
	position: relative;
	margin: 0;
	padding-left: 3rem;
	min-height: 2.1rem;
	display: flex;
	align-items: center;
	color: var(--hsp-on-dark);
	counter-increment: hs-claim;
}

.hs-claim .hs-claim__steps > li::before {
	content: counter(hs-claim);
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	background: var(--hsp-red);
	color: var(--hsp-white);
	font-family: var(--hsp-head);
	font-weight: 800;
	font-size: 0.95rem;
}

.hs-claim .hs-claim__action {
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--hsp-r-lg);
	border: 1px solid color-mix(in srgb, var(--hsp-white) 14%, transparent);
	background: color-mix(in srgb, var(--hsp-white) 7%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.hs-claim .hs-claim__buttons {
	display: grid;
	gap: 0.7rem;
}

.hs-claim .hs-claim__buttons .wp-block-button,
.hs-claim .hs-claim__buttons .wp-block-button__link {
	width: 100%;
	text-align: center;
}

.hs-claim .hs-btn-book .wp-block-button__link {
	padding-block: 1.1rem;
	font-size: 1.075rem;
	box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--hsp-red) 90%, transparent);
}

.hs-claim .hs-claim__hours,
.hs-claim .hsc-hours-today {
	color: var(--hsp-white);
	font-weight: 600;
	font-size: 0.95rem;
}

.hs-claim .hs-claim__fine {
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--hsp-on-dark);
}

/* ================================================================== about: profile card */
main.hs-main > .hs-sec--profile {
	padding-bottom: 0;
}

.hs-profile {
	position: relative;
	display: grid;
	gap: clamp(1.25rem, 3vw, 2.25rem);
	padding: clamp(1.5rem, 4vw, 2.75rem);
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-xl);
	background:
		radial-gradient(30rem 16rem at 100% 0%, color-mix(in srgb, var(--hsp-surface) 90%, transparent), transparent 70%),
		var(--hsp-white);
	box-shadow: var(--hsp-sh-lg);
}

/* Monogram until the approved portrait arrives. */
.hs-profile::before {
	content: "JP";
	content: "JP" / "";
	display: grid;
	place-items: center;
	width: clamp(7rem, 16vw, 11rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--hsp-white) 18%, transparent), transparent 55%),
		linear-gradient(140deg, var(--hsp-navy) 0%, var(--hsp-navy-deep) 100%);
	box-shadow:
		0 0 0 6px var(--hsp-white),
		0 0 0 9px var(--hsp-red),
		var(--hsp-sh-md);
	color: var(--hsp-white);
	font-family: var(--hsp-head);
	font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.75rem);
	font-weight: 800;
	letter-spacing: 0.02em;
}

@media (min-width: 900px) {
	.hs-profile {
		grid-template-columns: auto minmax(0, 1fr) minmax(14rem, 18rem);
		align-items: center;
	}
}

.hs-profile > *,
.hs-profile__info > *,
.hs-profile__side > * {
	margin-block: 0;
}

.hs-profile__info > * + * {
	margin-top: 0.5rem;
}

.hs-profile .hs-profile__role {
	font-family: var(--hsp-head);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hsp-red);
}

.hs-profile .hs-profile__name {
	font-family: var(--hsp-head);
	font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--hsp-navy-2);
}

.hs-profile .hs-profile__school {
	color: var(--hsp-muted);
}

.hs-profile .hs-profile__chips {
	gap: 0.5rem;
	margin-top: 1rem;
}

.hs-profile__chips .hs-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--hsp-border);
	background: var(--hsp-surface);
	color: var(--hsp-navy-2);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.3;
}

.hs-profile__chips .hs-chip::before {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background: var(--hsp-red);
	-webkit-mask: url("../icons/award.svg") center / contain no-repeat;
	mask: url("../icons/award.svg") center / contain no-repeat;
}

.hs-profile__chips .hs-chip--license::before { -webkit-mask-image: url("../icons/shield.svg"); mask-image: url("../icons/shield.svg"); }
.hs-profile__chips .hs-chip--nutrition::before { -webkit-mask-image: url("../icons/graduation.svg"); mask-image: url("../icons/graduation.svg"); }
.hs-profile__chips .hs-chip--sports::before { -webkit-mask-image: url("../icons/c-sports.svg"); mask-image: url("../icons/c-sports.svg"); }

.hs-profile .hs-profile__side {
	padding: 1.25rem;
	border-radius: var(--hsp-r-lg);
	background: var(--hsp-surface);
}

.hs-profile__side > * + * {
	margin-top: 0.85rem;
}

.hs-profile .hs-profile__label {
	font-family: var(--hsp-head);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hsp-navy);
}

.hs-profile .hs-langs {
	gap: 0.5rem;
}

.hs-langs .hs-lang {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.3rem 0.8rem 0.3rem 0.3rem;
	border-radius: 999px;
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-sm);
	color: var(--hsp-navy-2);
	font-weight: 600;
	font-size: 0.9rem;
}

.hs-langs .hs-lang::before {
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: var(--hsp-navy);
	color: var(--hsp-white);
	font-family: var(--hsp-head);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.hs-langs .hs-lang--en::before { content: "EN"; content: "EN" / ""; }
.hs-langs .hs-lang--hi::before { content: "HI"; content: "HI" / ""; }
.hs-langs .hs-lang--gu::before { content: "GU"; content: "GU" / ""; }

.hs-profile .hs-profile__buttons .wp-block-button,
.hs-profile .hs-profile__buttons .wp-block-button__link {
	width: 100%;
	text-align: center;
}

/* ================================================================== contact */
.hs-contact-grid {
	display: grid;
	gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 782px) {
	.hs-contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hs-contact-grid .hs-ccard--map {
		grid-column: 1 / -1;
	}
}

.hs-contact-grid > * {
	margin: 0;
}

.hs-ccard {
	--hs-icon: url("../icons/pin.svg");
	position: relative;
	padding: clamp(1.4rem, 3vw, 1.85rem);
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-lg);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-md);
}

.hs-ccard--hours { --hs-icon: url("../icons/clock.svg"); }

.hs-ccard:not(.hs-ccard--map)::before {
	content: "";
	display: block;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1rem;
	border-radius: 0.9rem;
	background: linear-gradient(140deg, var(--hsp-red) 0%, var(--hsp-red-dark) 100%);
	box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--hsp-red) 75%, transparent);
}

.hs-ccard:not(.hs-ccard--map)::after {
	content: "";
	position: absolute;
	top: calc(clamp(1.4rem, 3vw, 1.85rem) + 0.75rem);
	left: calc(clamp(1.4rem, 3vw, 1.85rem) + 0.75rem);
	width: 1.5rem;
	height: 1.5rem;
	background: var(--hsp-white);
	-webkit-mask: var(--hs-icon) center / contain no-repeat;
	mask: var(--hs-icon) center / contain no-repeat;
}

.hs-ccard > * {
	margin-block: 0;
}

.hs-ccard > * + * {
	margin-top: 0.75rem;
}

.hs-ccard .hs-ccard__eyebrow {
	font-family: var(--hsp-head);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hsp-red);
}

.hs-ccard .hs-ccard__eyebrow + * {
	margin-top: 0.3rem;
}

.hs-ccard .hs-ccard__title {
	font-family: var(--hsp-head);
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--hsp-navy-2);
}

.hs-ccard .hs-ccard__note {
	font-size: 0.9rem;
	color: var(--hsp-muted);
}

/* Business Info (address, phone, email) with icons. */
.hs-ccard .hs-nap {
	display: grid;
	gap: 0.6rem;
	font-style: normal;
}

.hs-ccard .hs-nap p {
	position: relative;
	margin: 0;
	padding-left: 1.85rem;
	line-height: 1.5;
}

.hs-ccard .hs-nap p::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.15rem;
	height: 1.15rem;
	background: var(--hsp-navy);
	-webkit-mask: url("../icons/pin.svg") center / contain no-repeat;
	mask: url("../icons/pin.svg") center / contain no-repeat;
}

.hs-ccard .hs-nap .ssc-business-info__email {
	font-size: 0.9rem;
}

.hs-ccard .hs-nap .ssc-business-info__phone::before { -webkit-mask-image: url("../icons/phone.svg"); mask-image: url("../icons/phone.svg"); }
.hs-ccard .hs-nap .ssc-business-info__email::before { -webkit-mask-image: url("../icons/mail.svg"); mask-image: url("../icons/mail.svg"); }

.hs-ccard .hs-nap a {
	color: var(--hsp-navy-2);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--hsp-red) 60%, transparent);
	text-underline-offset: 0.2em;
	word-break: break-word;
}

.hs-ccard .hs-nap a:hover {
	color: var(--hsp-red-dark);
}

.hs-ccard .hs-ccard__buttons {
	gap: 0.6rem;
	margin-top: 1.25rem;
}

/* Week hours (healthsource/hours-today layout week). chrome.css makes every hours block inline-flex. */
.hs-ccard .hs-week.wp-block-healthsource-hours-today {
	display: grid;
	gap: 0.75rem;
	font-weight: 400;
}

.hs-ccard .hs-week .hsc-hours-week {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.hs-ccard .hs-week :is(th, td) {
	padding: 0.55rem 0.6rem;
	border: 0;
	border-bottom: 1px solid var(--hsp-border);
	text-align: left;
	font-weight: 500;
}

.hs-ccard .hs-week th {
	color: var(--hsp-navy-2);
	font-weight: 700;
	white-space: nowrap;
}

.hs-ccard .hs-week td {
	color: var(--hsp-ink);
	text-align: right;
}

.hs-ccard .hs-week tr:last-child :is(th, td) {
	border-bottom: 0;
}

.hs-ccard .hs-week tr.is-today :is(th, td) {
	background: var(--hsp-surface);
	color: var(--hsp-navy-2);
	font-weight: 700;
}

.hs-ccard .hs-week tr.is-today th {
	border-radius: 0.6rem 0 0 0.6rem;
	box-shadow: inset 4px 0 0 var(--hsp-red);
}

.hs-ccard .hs-week tr.is-today td {
	border-radius: 0 0.6rem 0.6rem 0;
}

.hs-ccard .hs-week .hsc-hours-today__status {
	margin: 0 0 0.6rem;
	font-weight: 700;
	color: var(--hsp-navy-2);
}

.hs-ccard--map {
	padding: 0;
	overflow: hidden;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.hs-ccard--map .hsc-map,
.hs-ccard--map .hsc-map__frame {
	height: 100%;
}

.hs-body--contact {
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* ================================================================== book */
.hs-body--book .hs-entry {
	--hs-measure: 72ch;
}

.hs-steps-card {
	position: relative;
	overflow: hidden;
	padding: clamp(1.4rem, 3vw, 1.85rem);
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-lg);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-md);
}

.hs-steps-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: linear-gradient(90deg, var(--hsp-red), var(--hsp-red-dark) 55%, var(--hsp-navy));
}

.hs-steps-card > * {
	margin-block: 0;
}

.hs-steps-card > * + * {
	margin-top: 0.85rem;
}

.hs-steps-card .hs-steps-card__eyebrow {
	font-family: var(--hsp-head);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hsp-red);
}

.hs-steps-card .hs-steps-card__title {
	font-size: 1.4rem;
	line-height: 1.2;
}

.hs-steps-card .hs-steplist {
	position: relative;
	display: grid;
	gap: 1rem;
	margin-top: 1.25rem;
	padding: 0;
	list-style: none;
	counter-reset: hs-step;
}

/* Timeline line behind the numbers. */
.hs-steps-card .hs-steplist::before {
	content: "";
	position: absolute;
	left: calc(1rem - 1px);
	top: 1rem;
	bottom: 1rem;
	width: 2px;
	background: linear-gradient(180deg, var(--hsp-red), var(--hsp-border));
}

.hs-steps-card .hs-steplist > li {
	position: relative;
	margin: 0;
	padding-left: 2.85rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--hsp-muted);
	counter-increment: hs-step;
}

.hs-steps-card .hs-steplist > li::before {
	content: counter(hs-step);
	position: absolute;
	left: 0;
	top: -0.1rem;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--hsp-white);
	box-shadow: inset 0 0 0 2px var(--hsp-red);
	color: var(--hsp-red);
	font-family: var(--hsp-head);
	font-weight: 800;
	font-size: 0.85rem;
}

.hs-steps-card .hs-steplist > li:first-child::before {
	background: var(--hsp-red);
	color: var(--hsp-white);
}

.hs-steps-card .hs-steplist strong {
	display: block;
	color: var(--hsp-navy-2);
	font-family: var(--hsp-head);
	font-size: 1rem;
}

.hs-steps-card .hs-steps-card__call {
	margin-top: 1.5rem;
	padding: 1.1rem;
	border-radius: var(--hsp-r-md);
	background: var(--hsp-surface);
}

.hs-steps-card__call > * {
	margin-block: 0;
}

.hs-steps-card__call > * + * {
	margin-top: 0.7rem;
}

.hs-steps-card .hs-steps-card__ask {
	font-weight: 600;
	color: var(--hsp-navy-2);
}

.hs-steps-card .hs-steps-card__buttons .wp-block-button,
.hs-steps-card .hs-steps-card__buttons .wp-block-button__link {
	width: 100%;
	text-align: center;
}

.hs-steps-card .hsc-hours-today {
	font-size: 0.9rem;
	color: var(--hsp-navy-2);
}

/* ================================================================== legal */
.hs-body--legal {
	padding-top: clamp(2rem, 4vw, 3.5rem);
}

.hs-entry--legal {
	font-size: 1.0625rem;
}

.hs-entry--legal > h2 {
	font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
}

main.hs-main > .hs-sec--strip {
	padding-top: 0;
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hs-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	max-width: 46rem;
	margin-inline: auto;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-lg);
	background: var(--hsp-surface);
}

.hs-strip > * {
	margin: 0;
}

.hs-strip .hs-strip__text {
	font-family: var(--hsp-head);
	font-weight: 700;
	color: var(--hsp-navy-2);
}

/* ================================================================== search + 404 */
.hs-hero .hs-search {
	max-width: 36rem;
	margin-top: 1.5rem;
}

.hs-search .wp-block-search__inside-wrapper {
	gap: 0.4rem;
	padding: 0.35rem;
	border: 0;
	border-radius: 999px;
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-lg);
}

.hs-search .wp-block-search__input {
	min-width: 0;
	padding: 0.7rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--hsp-ink);
	font-size: 1rem;
}

.hs-search .wp-block-search__input:focus-visible {
	outline: 2px solid var(--hsp-navy);
	outline-offset: 0;
}

.hs-search .wp-block-search__button {
	margin: 0;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	font-family: var(--hsp-head);
	font-weight: 700;
}

.hs-quicklinks {
	display: grid;
	gap: clamp(0.85rem, 2vw, 1.25rem);
}

@media (min-width: 640px) {
	.hs-quicklinks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.hs-quicklinks {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.hs-quicklinks > * {
	margin: 0;
}

.hs-qlink {
	--hs-icon: url("../icons/s-spine.svg");
	position: relative;
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	column-gap: 1rem;
	align-items: start;
	padding: 1.25rem;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-lg);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-sm);
	transition: transform 0.4s var(--hsp-ease), box-shadow 0.4s var(--hsp-ease);
}

.hs-qlink:hover {
	transform: translateY(-4px);
	box-shadow: var(--hsp-sh-md);
}

.hs-qlink--conditions { --hs-icon: url("../icons/c-back.svg"); }
.hs-qlink--offer { --hs-icon: url("../icons/gift.svg"); }
.hs-qlink--contact { --hs-icon: url("../icons/pin.svg"); }
.hs-qlink--blog { --hs-icon: url("../icons/doc.svg"); }
.hs-qlink--faq { --hs-icon: url("../icons/clipboard.svg"); }

.hs-qlink::before {
	content: "";
	grid-row: 1 / span 2;
	width: 3rem;
	height: 3rem;
	border-radius: 0.9rem;
	background: var(--hsp-surface);
	box-shadow: inset 0 0 0 1px var(--hsp-border);
}

.hs-qlink::after {
	content: "";
	position: absolute;
	top: calc(1.25rem + 0.75rem);
	left: calc(1.25rem + 0.75rem);
	width: 1.5rem;
	height: 1.5rem;
	background: var(--hsp-red);
	-webkit-mask: var(--hs-icon) center / contain no-repeat;
	mask: var(--hs-icon) center / contain no-repeat;
}

.hs-qlink > * {
	grid-column: 2;
	margin: 0;
}

.hs-qlink .hs-qlink__title {
	font-family: var(--hsp-head);
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.3;
}

.hs-qlink .hs-qlink__title a {
	color: var(--hsp-navy-2);
	text-decoration: none;
}

.hs-qlink .hs-qlink__title a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.hs-qlink:hover .hs-qlink__title a {
	color: var(--hsp-red-dark);
}

.hs-qlink:has(a:focus-visible) {
	outline: 3px solid color-mix(in srgb, var(--hsp-red) 55%, transparent);
	outline-offset: 3px;
}

.hs-qlink .hs-qlink__text {
	margin-top: 0.25rem;
	font-size: 0.925rem;
	line-height: 1.5;
	color: var(--hsp-muted);
}

.hs-noresults {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--hsp-r-xl);
	background: var(--hsp-surface);
}

.hs-noresults > * {
	margin-block: 0;
}

.hs-noresults > * + * {
	margin-top: 1.25rem;
}

.hs-noresults .hs-noresults__title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.hs-noresults .hs-noresults__text {
	max-width: 46rem;
	color: var(--hsp-ink);
}

/* ================================================================== motion */
@keyframes hs-fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hs-rise {
	from {
		opacity: 0;
		transform: translateY(28px) scale(0.985);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hs-hero .hs-hero__eyebrow,
	.hs-hero .hs-hero__sub,
	.hs-hero .hs-hero__actions,
	.hs-hero .hs-search {
		animation: hs-fade-up 0.7s var(--hsp-ease) both;
	}

	.hs-hero .hs-hero__sub {
		animation-delay: 0.08s;
	}

	.hs-hero .hs-hero__actions,
	.hs-hero .hs-search {
		animation-delay: 0.16s;
	}

	.hs-sec--overlap .hs-sec__inner > * {
		animation: hs-rise 0.8s var(--hsp-ease) 0.12s both;
	}
}

/* Scroll reveal uses site.js (classes hs-reveal / hs-card-grid in the templates and patterns). The sticky
   sidebar is always in view, so its cards skip the reveal (inside its scroll box they would wait forever). */
.js.hs-reveal-on .hs-aside :is(.hs-reveal, [data-reveal], .is-style-reveal):not(.is-revealed) {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.hs-qcard,
	.hs-qcard::before,
	.hs-qcard::after,
	.hs-qcard .hs-qcard__media img,
	.hs-include,
	.hs-qlink {
		transition: none;
	}

	.hs-qcard:hover,
	.hs-include:hover,
	.hs-qlink:hover {
		transform: none;
	}
}

/* ================================================================== print */
@media print {
	.hs-hero {
		color: var(--hsp-ink);
		background: none;
	}

	.hs-hero::before,
	.hs-hero::after,
	.hs-aside,
	.hs-hero__actions {
		display: none;
	}

	.hs-hero h1,
	.hs-hero .hs-hero__title,
	.hs-hero .hs-hero__sub {
		color: var(--hsp-ink);
	}
}
