/*
 * Health Utah Clinics — supplemental CSS.
 *
 * Most design tokens live in theme.json. Use this file only for things that
 * are awkward to express there: focus rings, smooth scroll, sticky-header
 * backdrop, prefers-reduced-motion, etc.
 */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Use the blue-gray secondary as the global selection color. */
::selection {
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 45%, transparent);
	color: var(--wp--preset--color--foreground);
}

/*
 * WooCommerce still ships many legacy styles with its own CSS variables.
 * Map those globals back to the theme palette so default plugin UI lands much
 * closer to the active theme before any page-specific overrides kick in.
 */
:root {
	--woocommerce: var(--wp--preset--color--primary);
	--wc-primary: var(--wp--preset--color--primary);
	--wc-primary-text: var(--wp--preset--color--primary-foreground);
	--wc-secondary: var(--wp--preset--color--muted);
	--wc-secondary-text: var(--wp--preset--color--foreground);
	--wc-highlight: var(--wp--preset--color--secondary);
	--wc-highligh-text: var(--wp--preset--color--secondary-foreground);
	--wc-green: var(--wp--preset--color--primary);
	--wc-blue: var(--wp--preset--color--primary);
	--wc-orange: var(--wp--preset--color--accent);
	--wc-red: var(--wp--preset--color--destructive);
	--wc-content-bg: var(--wp--preset--color--card);
	--wc-subtext: var(--wp--preset--color--muted-foreground);
	--wc-form-border-color: var(--wp--preset--color--border);
	--wc-form-border-radius: 14px;
	--wc-form-border-width: 1px;
	/* Sticky site header (~logo + 1rem padding top/bottom); used by .hu-scroll-anchor. */
	--hu-sticky-header-offset: 5rem;
}

/* Visible, accessible focus ring on interactive elements. */
:where(a, button, input, select, textarea, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--ring);
	outline-offset: 2px;
	border-radius: 6px;
}

/* Pill-style outline button: assign the .is-style-outline style in the editor. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 1.5px solid var(--wp--preset--color--primary);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-foreground);
}

/*
 * Site header stays at the top while scrolling (same idea as the Hostinger
 * builder preview). `position: sticky` must live on the template-part wrapper:
 * WordPress renders `<!-- wp:template-part {"tagName":"header"} /-->` as
 * `<header class="wp-block-template-part">` around the part content. Sticky
 * on the inner `.site-header` group never activates — a sticky element cannot
 * move outside its parent’s box, and that parent is only as tall as the bar.
 *
 * Visual bar styles stay on `.site-header` (parts/header.html group).
 */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 10;
	/* Lifted bar like the Hostinger builder preview (content scrolls underneath). */
	box-shadow: var(--wp--preset--shadow--card);
}

/*
 * In-page anchor targets hidden under the sticky header. Add class
 * `hu-scroll-anchor` in the block editor: Advanced → Additional CSS class(es).
 */
.hu-scroll-anchor {
	scroll-margin-top: var(--hu-sticky-header-offset);
}

.site-header {
	position: relative;
	border-bottom: 1px solid var(--wp--preset--color--border);
	background-color: color-mix(in srgb, var(--wp--preset--color--background) 92%, transparent);
}

/*
 * Frosted bar on a ::before layer — not on .site-header itself. backdrop-filter on
 * the header element creates a containing block, so the Navigation block’s
 * position:fixed mobile overlay is clipped to the header strip (only a sliver of
 * the first link is visible).
 */
.site-header::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: color-mix(in srgb, var(--wp--preset--color--background) 92%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
}

.site-header > .wp-block-group {
	position: relative;
	z-index: 1;
}

/*
 * Header navigation: small, light-weight, slightly muted — matches the
 * minimal nav typography of the example clinic site. Hover/active states
 * brighten and pick up the brand sage.
 */
.site-header .wp-block-navigation,
.site-header .wp-block-navigation .wp-block-navigation__container {
	font-size: 0.9rem;
	font-weight: 400;
	letter-spacing: 0;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content,
.site-header .wp-block-navigation a {
	color: var(--wp--preset--color--foreground);
	opacity: 0.72;
	text-decoration: none;
	transition: opacity 0.15s ease, color 0.15s ease;
}
.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation .current-menu-item > a {
	opacity: 1;
	color: var(--wp--preset--color--primary);
}

/*
 * WooCommerce hooks account/cart blocks into the same top-level header flex row
 * as the Navigation block. Using `space-between` there spreads every child
 * across the row, so those utility items drift away from the page links. Keep
 * the brand on the left and let the navigation cluster sit together on the
 * right with a consistent gap.
 */
.site-header > .wp-block-group.is-layout-flex {
	justify-content: flex-start;
	gap: 1.75rem;
}

.site-header > .wp-block-group.is-layout-flex > .wp-block-navigation {
	margin-left: auto;
}

.site-header > .wp-block-group.is-layout-flex > :is(
	.wp-block-navigation,
	.wp-block-woocommerce-customer-account,
	.wp-block-woocommerce-mini-cart,
	.wc-block-mini-cart
) {
	flex: 0 0 auto;
}

.site-header > .wp-block-group.is-layout-flex > :is(
	.wp-block-woocommerce-customer-account,
	.wp-block-woocommerce-mini-cart,
	.wc-block-mini-cart
) {
	margin: 0;
}

/*
 * Mobile nav overlay: left-align items, inset from screen edges, tighter row gap.
 * (Header nav uses justify right and blockGap 1.75rem — both feel wrong in the drawer.)
 */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
	z-index: 100001;
	padding-top: clamp(1rem, var(--wp--style--root--padding-top, 1rem), 3rem);
	padding-bottom: clamp(1rem, var(--wp--style--root--padding-bottom, 1rem), 3rem);
	padding-left: var(--wp--preset--spacing--40, 1.25rem);
	padding-right: var(--wp--preset--spacing--40, 1.25rem);
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.4rem;
	width: 100%;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	width: auto;
	max-width: 100%;
	padding: 0.35rem 0;
}

/*
 * Pull <main> flush with the sticky header. There are TWO rules that try to
 * insert a 1.5rem gap above the hero, both shipped by WordPress core:
 *
 *   1. `:where(.wp-site-blocks) > * { margin-block-start: 1.5rem }` —
 *      adds a gap between <header> and <main> (and between <main> and
 *      <footer>).
 *   2. `:root :where(.is-layout-flow) > * { margin-block-start: 1.5rem }` —
 *      adds a gap between siblings inside any flow-layout group, which
 *      means it also targets <main>'s first child (our hero) because <main>
 *      is a flow group.
 *
 * We have to defeat BOTH. The per-instance class generated for `<main>`'s
 * `blockGap: 0` setting *should* override #2, but in some cache states the
 * load order shuffles enough that the default rule wins anyway. So we just
 * carpet-bomb every potential margin source with `!important`.
 */
:root .wp-site-blocks > main,
.wp-site-blocks > main.alignfull {
	margin-block-start: 0 !important;
	padding-block-start: 0 !important;
}
.wp-site-blocks > main > *,
.wp-site-blocks > main > .alignfull {
	margin-block-start: 0 !important;
}
.hu-hero-cover,
.hu-hero-cover.alignfull {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

/* Card-ish columns / groups that opt in via .has-card-shadow. */
.has-card-shadow {
	box-shadow: var(--wp--preset--shadow--lifted);
}

/* Slight visual rhythm: pull headings closer to the paragraph that follows. */
:where(h1, h2, h3, h4, h5, h6) + p {
	margin-top: 0.5em;
}

/* Underline links inside post content for readability, but not in nav/header/footer. */
.entry-content a:where(:not(.wp-element-button):not(.wp-block-button__link)) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

/*
 * Footer site title — theme.json link color is foreground (deep teal), which
 * matches the footer background. Use the hover sage color for all link states.
 */
footer .wp-block-site-title a:link,
footer .wp-block-site-title a:visited,
footer .wp-block-site-title a:hover,
footer .wp-block-site-title a:active,
footer .wp-block-site-title a:focus {
	color: var(--wp--preset--color--primary);
}

/* Pretty pull-quote-ish styling for .is-style-callout group/columns. */
.wp-block-group.is-style-callout {
	background: var(--wp--preset--color--secondary);
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: 0 12px 12px 0;
	padding: 1.5rem;
}

/*
 * Outcome / "checklist" list style. Add the `hu-checklist` className to a
 * core/list block (e.g., the patient-highlights testimonials) to turn each
 * bullet into a primary (sage) check mark. Plays well with multi-line items.
 */
.wp-block-list.hu-checklist {
	list-style: none;
	padding-left: 0;
}
.wp-block-list.hu-checklist > li {
	position: relative;
	padding-left: 1.75rem;
}
.wp-block-list.hu-checklist > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.85rem;
	height: 0.45rem;
	border-left: 2px solid var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
	transform: rotate(-45deg);
}

/*
 * Site brand (logo) — used in the header pattern. The link wraps a single
 * logo image; the bundled wordmark is sage + navy on a transparent
 * background so it sits cleanly on the cooler site background.
 */
.hu-site-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 1;
}
.hu-site-brand__logo {
	display: block;
	height: 22px;
	width: auto;
	max-width: 160px;
}
@media (min-width: 768px) {
	.hu-site-brand__logo {
		height: 26px;
		max-width: 200px;
	}
}

/*
 * WooCommerce loads `.woocommerce-page img { height: auto; max-width: 100% }`,
 * which overrides the header wordmark height and lets the bundled PNG (1249px wide)
 * expand to fill the header. Reassert compact logo dimensions on all shop pages.
 */
body.woocommerce-page .site-header .hu-site-brand__logo {
	height: 22px !important;
	width: auto !important;
	max-width: 160px !important;
}
@media (min-width: 768px) {
	body.woocommerce-page .site-header .hu-site-brand__logo {
		height: 26px !important;
		max-width: 200px !important;
	}
}

/*
 * Single product gallery — WooCommerce sets product images to width: 100%, which
 * upscales uploads smaller than the gallery column and looks soft/grainy.
 */
body.single-product .woocommerce div.product div.images img,
body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image img,
body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image a img,
body.single-product .wc-block-components-product-image img {
	width: auto !important;
	max-width: 100%;
	height: auto !important;
}
body.single-product .wc-block-product-gallery-large-image .wc-block-components-product-image {
	width: auto !important;
	max-width: 100%;
	height: auto !important;
}
body.single-product .woocommerce div.product div.images,
body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image {
	display: flex;
	justify-content: flex-start;
}
body.single-product .woocommerce div.product div.images img,
body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image a {
	display: block;
}

/*
 * WooCommerce account area: tune the default login/forms/notices/tables to the
 * same calm sage / mist palette used elsewhere in the theme.
 */
body.woocommerce-account .entry-content > .woocommerce {
	display: grid;
	gap: 1.5rem;
	color: var(--wp--preset--color--foreground);
}

body.woocommerce-account main.wp-block-group.alignfull > .wp-block-group.is-layout-constrained,
body.woocommerce-account .entry-content.wp-block-post-content.is-layout-constrained {
	max-width: 1120px !important;
}

body.woocommerce-account .woocommerce .hu-account-shell {
	display: grid;
	grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: start;
}

body.woocommerce-account .woocommerce .hu-account-shell__sidebar {
	position: sticky;
	top: calc(5.5rem + var(--wp-admin--admin-bar--height, 0px));
	padding-right: 1.5rem;
	border-right: 1px solid var(--wp--preset--color--border);
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
	min-width: 0;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

body.woocommerce-account .woocommerce .woocommerce-notices-wrapper:empty {
	display: none;
}

body.woocommerce-account .woocommerce :is(
	.woocommerce-form-login,
	.woocommerce-ResetPassword,
	.woocommerce-EditAccountForm,
	.woocommerce-address-fields,
	.woocommerce-Address
) {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	box-shadow: var(--wp--preset--shadow--card);
}

body.woocommerce-account .woocommerce :is(
	.woocommerce-form-login,
	.woocommerce-ResetPassword,
	.woocommerce-EditAccountForm,
	.woocommerce-address-fields
) {
	padding: clamp(1.25rem, 2vw, 2rem);
}

body.woocommerce-account .woocommerce .woocommerce-Address {
	padding: 1.25rem;
}

body.woocommerce-account .woocommerce :is(h2, h3) {
	margin-top: 0;
}

body.woocommerce-account .woocommerce .hu-account-nav__toggle {
	display: none;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce .hu-account-nav__toggle {
	font-size: 0.9rem;
	font-weight: 400;
	letter-spacing: 0;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation {
	width: 100% !important;
	max-width: none;
	float: none;
	margin: 0;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li {
	margin: 0 !important;
	padding: 0;
	width: 100%;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation a {
	display: inline-flex;
	align-items: center;
	width: 100%;
	padding: 0.16rem 0;
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
	opacity: 0.72;
	transition: opacity 0.15s ease, color 0.15s ease, text-decoration-color 0.15s ease;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation a[aria-current="page"] {
	color: var(--wp--preset--color--primary);
	opacity: 1;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.35em;
}

body.woocommerce-account .woocommerce form .form-row label,
body.woocommerce-account .woocommerce .woocommerce-form-row label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--foreground);
}

body.woocommerce-account .woocommerce :is(
	input.input-text,
	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="tel"],
	select,
	textarea
) {
	width: 100%;
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	background: #ffffff;
	color: var(--wp--preset--color--foreground);
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.woocommerce-account .woocommerce :is(
	input.input-text,
	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="tel"],
	select,
	textarea
):focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent);
	outline: none;
}

body.woocommerce-account .woocommerce input[type="checkbox"] {
	accent-color: var(--wp--preset--color--primary);
}

body.woocommerce-account .woocommerce :is(
	button.button,
	a.button,
	.woocommerce-button,
	.woocommerce-Button,
	.wc-forward
) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.7rem 1.2rem;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-foreground);
	font-weight: 600;
	text-decoration: none;
	box-shadow: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

body.woocommerce-account .woocommerce :is(
	button.button,
	a.button,
	.woocommerce-button,
	.woocommerce-Button,
	.wc-forward
):hover {
	background: var(--wp--preset--color--foreground);
	border-color: var(--wp--preset--color--foreground);
	color: #ffffff;
	transform: translateY(-1px);
}

body.woocommerce-account .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
	margin: 0;
	padding: 1rem 1.25rem 1rem 3rem;
	border: 1px solid var(--wp--preset--color--border);
	border-left-width: 4px;
	border-radius: 16px;
	color: var(--wp--preset--color--foreground);
}

body.woocommerce-account .woocommerce :is(.woocommerce-info, .woocommerce-message) {
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 28%, #ffffff);
	border-left-color: var(--wp--preset--color--primary);
}

body.woocommerce-account .woocommerce .woocommerce-error {
	background: color-mix(in srgb, var(--wp--preset--color--destructive) 10%, #ffffff);
	border-left-color: var(--wp--preset--color--destructive);
	list-style: none;
}

body.woocommerce-account .woocommerce .woocommerce-info::before,
body.woocommerce-account .woocommerce .woocommerce-message::before {
	color: var(--wp--preset--color--primary);
}

body.woocommerce-account .woocommerce .woocommerce-error::before {
	color: var(--wp--preset--color--destructive);
}

body.woocommerce-account .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) a {
	color: var(--wp--preset--color--foreground);
	font-weight: 600;
}

body.woocommerce-account .woocommerce .woocommerce-info {
	display: flex;
	align-items: center;
	gap: 1rem;
}

body.woocommerce-account .woocommerce .woocommerce-info .wc-forward,
body.woocommerce-account .woocommerce .woocommerce-info .button,
body.woocommerce-account .woocommerce .woocommerce-message .button,
body.woocommerce-account .woocommerce .woocommerce-error .button {
	float: none;
	margin: 0 0 0 auto;
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-foreground);
	white-space: nowrap;
	text-decoration: none;
	flex: 0 0 auto;
}

body.woocommerce-account .woocommerce .woocommerce-info .wc-forward:hover,
body.woocommerce-account .woocommerce .woocommerce-info .button:hover,
body.woocommerce-account .woocommerce .woocommerce-message .button:hover,
body.woocommerce-account .woocommerce .woocommerce-error .button:hover {
	background: var(--wp--preset--color--foreground);
	border-color: var(--wp--preset--color--foreground);
	color: #ffffff;
}

@media (max-width: 640px) {
	body.woocommerce-account .woocommerce .woocommerce-info {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	body.woocommerce-account .woocommerce .woocommerce-info .wc-forward,
	body.woocommerce-account .woocommerce .woocommerce-info .button,
	body.woocommerce-account .woocommerce .woocommerce-message .button,
	body.woocommerce-account .woocommerce .woocommerce-error .button {
		margin-left: 0;
	}
}

body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info {
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 20%, #ffffff) !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-top: 1px solid var(--wp--preset--color--border) !important;
	border-left: 4px solid var(--wp--preset--color--primary) !important;
	border-radius: 16px !important;
	color: var(--wp--preset--color--foreground) !important;
	box-shadow: none;
}

body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info::before {
	color: var(--wp--preset--color--primary) !important;
}

body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info :is(
	a.button,
	.button,
	.wc-forward,
	.woocommerce-Button
) {
	float: none !important;
	margin: 0 0 0 auto !important;
	border: 1px solid var(--wp--preset--color--primary) !important;
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--primary-foreground) !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info :is(
	a.button,
	.button,
	.wc-forward,
	.woocommerce-Button
):hover {
	border-color: var(--wp--preset--color--foreground) !important;
	background: var(--wp--preset--color--foreground) !important;
	color: #ffffff !important;
}

body.woocommerce-account:is(.woocommerce-orders, .woocommerce-downloads) .woocommerce-MyAccount-content .hu-account-empty-state {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--border);
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 16px;
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 20%, #ffffff);
	color: var(--wp--preset--color--foreground);
}

body.woocommerce-account:is(.woocommerce-orders, .woocommerce-downloads) .woocommerce-MyAccount-content .hu-account-empty-state__message {
	margin: 0;
	font-weight: 500;
}

body.woocommerce-account:is(.woocommerce-orders, .woocommerce-downloads) .woocommerce-MyAccount-content .hu-account-empty-state__cta {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 2.75rem;
	padding: 0.7rem 1.2rem;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-foreground);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

body.woocommerce-account:is(.woocommerce-orders, .woocommerce-downloads) .woocommerce-MyAccount-content .hu-account-empty-state__cta:hover {
	border-color: var(--wp--preset--color--foreground);
	background: var(--wp--preset--color--foreground);
	color: #ffffff;
	transform: translateY(-1px);
}

@media (max-width: 640px) {
	body.woocommerce-account:is(.woocommerce-orders, .woocommerce-downloads) .woocommerce-MyAccount-content .hu-account-empty-state {
		flex-wrap: wrap;
	}

	body.woocommerce-account:is(.woocommerce-orders, .woocommerce-downloads) .woocommerce-MyAccount-content .hu-account-empty-state__cta {
		margin-left: 0;
	}
}

body.woocommerce-account .woocommerce table.shop_table {
	width: 100%;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--wp--preset--color--card);
	box-shadow: var(--wp--preset--shadow--card);
	overflow: hidden;
}

body.woocommerce-account .woocommerce table.shop_table th,
body.woocommerce-account .woocommerce table.shop_table td {
	padding: 0.95rem 1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
}

body.woocommerce-account .woocommerce table.shop_table th {
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 32%, #ffffff);
	color: var(--wp--preset--color--foreground);
	font-weight: 600;
}

body.woocommerce-account .woocommerce table.shop_table tr:last-child :is(th, td) {
	border-bottom: 0;
}

body.woocommerce-account .woocommerce .woocommerce-Addresses.col2-set,
body.woocommerce-account .woocommerce .addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1rem 1.5rem;
	align-items: stretch;
}

body.woocommerce-account .woocommerce .woocommerce-Addresses.col2-set::before,
body.woocommerce-account .woocommerce .woocommerce-Addresses.col2-set::after {
	content: none;
	display: none;
}

body.woocommerce-account .woocommerce .woocommerce-Addresses.col2-set .col-1,
body.woocommerce-account .woocommerce .woocommerce-Addresses.col2-set .col-2 {
	float: none !important;
	width: auto !important;
	clear: none !important;
	margin: 0;
}

body.woocommerce-account .woocommerce .woocommerce-Address {
	min-width: 0;
	height: auto;
}

body.woocommerce-account .woocommerce .woocommerce-Address-title {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

body.woocommerce-account .woocommerce .woocommerce-Address-title h2 {
	margin: 0;
}

body.woocommerce-account .woocommerce .woocommerce-Address-title .edit {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: none;
}

body.woocommerce-account .woocommerce address {
	font-style: normal;
	line-height: 1.7;
	color: var(--wp--preset--color--muted-foreground);
}

@media (max-width: 781px) {
	body.woocommerce-account .woocommerce .hu-account-shell {
		grid-template-columns: 1fr;
	}

	body.woocommerce-account .woocommerce .hu-account-shell__sidebar {
		position: static;
		padding-right: 0;
		border-right: 0;
	}

	body.woocommerce-account .woocommerce .hu-account-nav__toggle {
		width: 100%;
		display: inline-flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.9rem;
		padding: 0.85rem 1rem;
		border: 1px solid var(--wp--preset--color--border);
		border-radius: 14px;
		background: var(--wp--preset--color--card);
		color: var(--wp--preset--color--foreground);
		font: inherit;
	}

	body.woocommerce-account .woocommerce .hu-account-nav__icon {
		display: inline-flex;
		flex-direction: column;
		gap: 0.22rem;
	}

	body.woocommerce-account .woocommerce .hu-account-nav__icon span {
		display: block;
		width: 1rem;
		height: 2px;
		border-radius: 999px;
		background: currentColor;
		transition: transform 0.15s ease, opacity 0.15s ease;
	}

	body.woocommerce-account .woocommerce .hu-account-shell__sidebar.is-open .hu-account-nav__icon span:nth-child(1) {
		transform: translateY(0.38rem) rotate(45deg);
	}

	body.woocommerce-account .woocommerce .hu-account-shell__sidebar.is-open .hu-account-nav__icon span:nth-child(2) {
		opacity: 0;
	}

	body.woocommerce-account .woocommerce .hu-account-shell__sidebar.is-open .hu-account-nav__icon span:nth-child(3) {
		transform: translateY(-0.38rem) rotate(-45deg);
	}

	body.woocommerce-account .woocommerce .hu-account-nav__panel {
		margin-top: 0.75rem;
		padding: 0.9rem 1rem;
		border: 1px solid var(--wp--preset--color--border);
		border-radius: 16px;
		background: var(--wp--preset--color--card);
		box-shadow: var(--wp--preset--shadow--card);
	}

	body.woocommerce-account .woocommerce .hu-account-shell__sidebar.is-enhanced .hu-account-nav__panel {
		display: none;
	}

	body.woocommerce-account .woocommerce .hu-account-shell__sidebar.is-open .hu-account-nav__panel {
		display: block;
	}

	body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation a {
		padding: 0.45rem 0;
	}

	body.woocommerce-account .woocommerce table.shop_table {
		display: block;
		overflow-x: auto;
	}
}

/*
 * Hero cover. A full-bleed section with an autoplaying muted background
 * video (poster image fallback) and a left-aligned content block sitting
 * over a horizontally-graded overlay (heavier on the left where the text
 * lives, lighter on the right so the subject stays visible).
 */
.hu-hero-cover {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(58vh, 540px);
	display: flex;
	align-items: center;
	background-color: var(--wp--preset--color--foreground);
	color: #ffffff;
}

/*
 * Kill the inherited flow-layout block-gap on the hero's direct children.
 * The hero is a wp:group with default flow layout, so WordPress adds
 * `is-layout-flow` to the section and `:where(.is-layout-flow) > *`
 * applies a 1.5rem `margin-block-start` to every non-first sibling — which
 * for our hero means the absolutely-positioned overlay and the container.
 *
 * Setting `blockGap: 0` in the block JSON also generates a per-instance
 * override class, but we add this CSS as belt-and-suspenders so the rule
 * doesn't depend on whichever -is-layout-* hash WordPress emits for the
 * section in any given render.
 */
.hu-hero-cover > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

.hu-hero-cover__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.hu-hero-cover__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		90deg,
		rgba(42, 64, 61, 0.72) 0%,
		rgba(42, 64, 61, 0.55) 30%,
		rgba(42, 64, 61, 0.20) 60%,
		rgba(42, 64, 61, 0.05) 100%
	);
}

/* On narrow viewports the content stacks over the whole frame, so darken
 * the overlay uniformly there for legibility. */
@media (max-width: 767px) {
	.hu-hero-cover__overlay {
		background: linear-gradient(
			180deg,
			rgba(42, 64, 61, 0.45) 0%,
			rgba(42, 64, 61, 0.65) 100%
		);
	}
}

/*
 * Outer hero container. We deliberately don't use the WordPress
 * "constrained" layout (which would max-width to 1200px and centre) because
 * we want the content to hug the LEFT viewport edge, well clear of the
 * subject in the video. Instead we pad from the edge directly.
 */
.hu-hero-cover__container {
	width: 100%;
	padding: 2.75rem clamp(1.5rem, 5vw, 4.5rem);
}

.hu-hero-cover__content {
	max-width: 420px;
	margin-inline: 0 auto;
	text-align: left;
	color: #ffffff;
}

.hu-hero-cover__content > * {
	margin-block-start: 0;
}

.hu-hero-cover__headline {
	color: #ffffff;
	font-size: clamp(1.375rem, 1.0rem + 1.0vw, 1.875rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.005em;
	margin: 0;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.30);
}

/* Compact CTA pills in the hero — slightly smaller than the body buttons
 * so they don't visually outweigh the now-smaller headline. */
.hu-hero-cover__buttons .wp-block-button > .wp-block-button__link {
	padding: 0.55rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.hu-hero-cover__buttons .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.7);
	background: transparent;
}
.hu-hero-cover__buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #ffffff;
	color: var(--wp--preset--color--foreground);
	border-color: #ffffff;
}

/* Reduced-motion: drop the autoplaying video, fall back to the still poster. */
@media (prefers-reduced-motion: reduce) {
	.hu-hero-cover__video {
		display: none;
	}
	.hu-hero-cover {
		background-image: url("../images/hero-banner.jpg");
		background-size: cover;
		background-position: center;
	}
}

/* On large screens, give the hero a touch more height and the headline a
 * bit more breathing room — but keep it narrow so it stays clear of the
 * subject visible on the right side of the video. */
@media (min-width: 1024px) {
	.hu-hero-cover {
		min-height: min(60vh, 560px);
	}
	.hu-hero-cover__content {
		max-width: 460px;
	}
	.hu-hero-cover__container {
		padding-block: 3rem;
	}
}

/*
 * Image utilities. Applied as className on core/image so the saved block
 * markup stays minimal (and validates cleanly) while CSS handles the visual
 * treatment.
 */

/* Banner image inside a card — fills the column, rounded, fixed aspect. */
.wp-block-image.hu-banner {
	margin: 0 0 1.5rem 0;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}
.wp-block-image.hu-banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hero side-image: portrait crop, soft rounded corners. */
.wp-block-image.hu-hero-image {
	margin: 0;
	border-radius: 24px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	box-shadow: var(--wp--preset--shadow--lifted);
}
.wp-block-image.hu-hero-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Circular avatar — used for testimonials and the Tony Robbins block. */
.wp-block-image.hu-avatar {
	margin: 0 auto 1rem auto;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--secondary);
}
.wp-block-image.hu-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Larger pull-quote avatar for the Tony Robbins band. */
.wp-block-image.hu-avatar-lg {
	margin: 0 auto 1.5rem auto;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid var(--wp--preset--color--accent);
	box-shadow: var(--wp--preset--shadow--lifted);
}
.wp-block-image.hu-avatar-lg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Program page gallery tiles (matches builder rounding). */
.wp-block-image.hu-program-gallery-photo {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	box-shadow: var(--wp--preset--shadow--lifted);
}
.wp-block-image.hu-program-gallery-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * Program pillar grid (page content): two columns from ~782px up (core columns),
 * single column stacked below. Prevents flex children from refusing to shrink.
 */
main .wp-block-post-content[class*="layout"] {
	min-width: 0;
}
.entry-content .hu-program-pillar-row {
	column-gap: 1.75rem;
	row-gap: 1.75rem;
	align-items: stretch;
}
.entry-content .hu-program-pillar-row .wp-block-column {
	min-width: 0;
}
.entry-content .hu-program-pillar-row .wp-block-column > .wp-block-group {
	box-sizing: border-box;
	width: 100%;
}

@media (max-width: 781px) {
	/*
	 * alignfull/root-padding breakout inside constrained post content sometimes
	 * leaves content shifted with empty gutter; pin to symmetric viewport inset.
	 */
	main .wp-block-post-content.entry-content > .wp-block-group.alignfull,
	main .wp-block-post-content.entry-content > .wp-block-health-utah-clinics-hero-cover.alignfull,
	main .wp-block-post-content.entry-content > .wp-block-health-utah-clinics-full-width-section.alignfull {
		margin-inline-start: calc(50% - 50vw + var(--wp--style--root--padding-left, var(--wp--preset--spacing--40)));
		margin-inline-end: calc(50% - 50vw + var(--wp--style--root--padding-right, var(--wp--preset--spacing--40)));
		width: unset;
		max-width: unset;
	}
	main .wp-block-post-content.entry-content > .wp-block-cover.alignfull {
		margin-inline-start: calc(50% - 50vw + var(--wp--style--root--padding-left, var(--wp--preset--spacing--40)));
		margin-inline-end: calc(50% - 50vw + var(--wp--style--root--padding-right, var(--wp--preset--spacing--40)));
		width: unset;
		max-width: unset;
	}
}

/* Homepage post content — flush gaps only between top-level bands, not inside sections. */
main .wp-block-post-content.entry-content.hu-front-page-content {
	--wp--style--block-gap: 0;
}
main .wp-block-post-content.entry-content.hu-front-page-content > * + * {
	margin-block-start: 0;
}

/* Full-width section — vertical spacing between inner blocks (front end only). */
.wp-block-health-utah-clinics-full-width-section .hu-full-width-section__inner {
	display: flex;
	flex-direction: column;
	gap: var(--hu-section-gap, 1.5rem);
	width: 100%;
	margin-inline: auto;
}

/* -------------------------------------------------------------------------
 * Program page — wide split sections, pillar motion, gallery carousel,
 * contact cover (no horizontal overflow on narrow viewports).
 * ------------------------------------------------------------------------- */

/*
 * Program page canvas = Gallery band color (preset `secondary`). Default
 * theme body uses `background` (a lighter cool mist), so full-width sections that
 * still use `background` read as “broken” stripes next to the Gallery.
 */
body.page-program {
	background-color: var(--wp--preset--color--secondary);
}
body.page-program .wp-site-blocks {
	background-color: var(--wp--preset--color--secondary);
}
body.page-program .wp-site-blocks > main,
body.page-program main.wp-block-group.alignfull {
	background-color: var(--wp--preset--color--secondary);
}
body.page-program .entry-content {
	background-color: var(--wp--preset--color--secondary);
}
body.page-program .entry-content > .wp-block-group.alignfull.has-background-background-color,
body.page-program .entry-content .hu-problem-band.has-background-background-color {
	background-color: var(--wp--preset--color--secondary) !important;
}

.entry-content .hu-animate-in {
	transition: opacity 0.5s ease, transform 0.45s ease;
}
@media (prefers-reduced-motion: no-preference) {
	.entry-content .hu-animate-in.hu-reveal {
		opacity: 0;
		transform: translateY(14px);
	}
	.entry-content .hu-animate-in.hu-reveal.hu-is-visible {
		opacity: 1;
		transform: none;
	}
}

.entry-content .hu-media-split {
	flex-wrap: wrap !important;
	gap: clamp(1.25rem, 3vw, 2.5rem) !important;
}
.entry-content .hu-media-split .wp-block-column {
	min-width: min(100%, 280px);
}
@media (min-width: 782px) {
	.entry-content .hu-media-split {
		flex-wrap: nowrap !important;
	}
}

@media (max-width: 781px) {
	.entry-content .hu-media-split--flip-sm .wp-block-column:first-child {
		order: 2;
	}
	.entry-content .hu-media-split--flip-sm .wp-block-column:last-child {
		order: 1;
	}
}

.entry-content .hu-media-split__figure {
	margin-block: 0;
}

/* Problem band: full-bleed background (no side gutter on the tinted strip). */
.entry-content .hu-problem-band.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
	box-sizing: border-box;
}
.entry-content .hu-problem-band .wp-block-columns.alignwide {
	max-width: min(1200px, 100%);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--40);
	box-sizing: border-box;
}

/* Truth split: image column stretches with copy; portrait shows more vertical subject. */
@media (min-width: 782px) {
	.entry-content .hu-media-split--truth {
		align-items: stretch !important;
	}
	.entry-content .hu-media-split--truth .wp-block-column:first-child {
		display: flex;
		flex-direction: column;
	}
	.entry-content .hu-media-split--truth .hu-truth-portrait {
		flex: 1 1 auto;
		min-height: 100%;
		aspect-ratio: unset;
		height: 100%;
	}
	.entry-content .hu-media-split--truth .hu-truth-portrait img {
		width: 100%;
		height: 100%;
		min-height: 22rem;
		object-fit: cover;
		object-position: center 22%;
	}
}
@media (max-width: 781px) {
	.entry-content .hu-media-split--truth .hu-truth-portrait {
		aspect-ratio: 3 / 4;
		max-height: 70vh;
	}
	.entry-content .hu-media-split--truth .hu-truth-portrait img {
		object-position: center 15%;
	}
}

/* “The Program” intro — headline + copy left, visual right (stacks on small screens). */
.entry-content .hu-program-intro .hu-program-intro__columns {
	align-items: center !important;
}
.entry-content .hu-program-intro .hu-program-intro__visual {
	margin: 0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--lifted);
	transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.entry-content .hu-program-intro .hu-program-intro__visual:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--card);
}
.entry-content .hu-program-intro .hu-program-intro__visual img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.entry-content .hu-program-pillar-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.entry-content .hu-program-pillar-card:hover {
		transform: translateY(-4px);
		box-shadow: var(--wp--preset--shadow--lifted);
	}
}

/* Gallery: horizontal scroll / snap; show ~2 tiles on tablet, ~3 on desktop. */
.entry-content .hu-program-gallery-wrap {
	position: relative;
	max-width: 100%;
}
.entry-content .hu-program-gallery-carousel {
	position: relative;
}
.entry-content .hu-program-gallery-carousel__controls {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}
.entry-content .hu-program-gallery-carousel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--card);
	color: var(--wp--preset--color--foreground);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.entry-content .hu-program-gallery-carousel__btn:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-foreground);
	border-color: var(--wp--preset--color--primary);
}
.entry-content .hu-program-gallery-carousel__track {
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 0.35rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.entry-content .hu-program-gallery-carousel__slide {
	flex: 0 0 min(82vw, 320px);
	scroll-snap-align: start;
	min-width: 0;
	transition: transform 0.25s ease;
}
@media (min-width: 640px) {
	.entry-content .hu-program-gallery-carousel__slide {
		flex: 0 0 calc((100% - 1.25rem) / 2);
		max-width: calc((100% - 1.25rem) / 2);
	}
}
@media (min-width: 1000px) {
	.entry-content .hu-program-gallery-carousel__slide {
		flex: 0 0 calc((100% - 2.5rem) / 3);
		max-width: calc((100% - 2.5rem) / 3);
	}
}

/* Contact / “Reach out” cover — clip overflow, strong overlay, high-contrast type. */
.entry-content .wp-block-cover.hu-program-contact-cover {
	overflow: hidden;
	max-width: 100%;
	width: 100%;
}
.entry-content .wp-block-cover.hu-program-contact-cover .wp-block-cover__image-background {
	width: 100%;
	height: 100%;
	min-height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}
.entry-content .hu-program-contact-cover__title,
.entry-content .hu-program-contact-cover__lede {
	color: #ffffff !important;
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
.entry-content .hu-program-contact-cover .wp-block-button__link {
	transition: transform 0.2s ease, filter 0.2s ease;
}
.entry-content .hu-program-contact-cover .wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Simple contact form (Program page markup) — light fields on dark band. */
.entry-content .hu-program-contact-cover__form {
	max-width: 420px;
	margin: 1.25rem auto 0 auto;
	display: grid;
	gap: 0.75rem;
	text-align: left;
}
.entry-content .hu-program-contact-cover__form label {
	display: grid;
	gap: 0.35rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}
.entry-content .hu-program-contact-cover__form input {
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	padding: 0.65rem 0.85rem;
	font-size: 1rem;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.entry-content .hu-program-contact-cover__form input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}
.entry-content .hu-program-contact-cover__form input:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-color: rgba(255, 255, 255, 0.65);
	background: rgba(255, 255, 255, 0.18);
}
.entry-content .hu-program-contact-cover__form button[type="submit"] {
	margin-top: 0.25rem;
	border: none;
	border-radius: 999px;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	cursor: pointer;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-foreground);
	transition: filter 0.2s ease, transform 0.15s ease;
}
.entry-content .hu-program-contact-cover__form button[type="submit"]:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

/* Outline CTAs sitting on dark cover overlays. */
.wp-block-cover .wp-block-button.hu-cover-outline > .wp-block-button__link,
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link {
	color: rgba(255, 255, 255, 0.95);
	border-color: rgba(255, 255, 255, 0.75);
	background: transparent;
}
.wp-block-cover .wp-block-button.hu-cover-outline > .wp-block-button__link:hover,
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #ffffff;
	color: #ffffff;
}

/* Report thumbnail — preserves the screenshot's content (object-fit: contain). */
.wp-block-image.hu-report {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	background: #ffffff;
	aspect-ratio: 4 / 3;
}
.wp-block-image.hu-report img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.5rem;
	background: #ffffff;
}

/* -------------------------------------------------------------------------
 * Testimonials hub (CPT + category sidebar + stacked cards)
 * ------------------------------------------------------------------------- */

body.hu-page-testimonials-hub {
	background-color: var(--wp--preset--color--secondary);
}
body.hu-page-testimonials-hub .wp-site-blocks {
	background-color: var(--wp--preset--color--secondary);
}
body.hu-page-testimonials-hub .wp-site-blocks > main,
body.hu-page-testimonials-hub main.wp-block-group.alignfull {
	background-color: var(--wp--preset--color--secondary);
}

.hu-testimonials-hub {
	margin-top: 1.75rem;
	max-width: 760px;
	margin-inline: auto;
}

body.hu-page-testimonials-hub .hu-testimonials-intro-row {
	margin-top: 0.75rem;
}

body.hu-page-testimonials-hub .hu-testimonials-intro-row > p {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.5;
	text-align: center;
}

body.hu-page-testimonials-hub .hu-testimonials-intro-row .hu-testimonials-hub__filter {
	display: inline-flex;
	vertical-align: middle;
	align-items: center;
	margin-inline-start: 0.35rem;
}

body.hu-page-testimonials-hub .hu-testimonials-intro-row .hu-testimonials-hub__category-select {
	font-size: inherit;
	font-weight: 600;
	line-height: 1.25;
	min-height: 0;
	height: auto;
	padding: 0.2rem 2rem 0.2rem 0.6rem;
	margin: 0;
	vertical-align: middle;
}

.hu-testimonials-hub__filter {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.hu-testimonials-hub__intro {
	text-align: center;
	max-width: 42rem;
	margin-inline: auto;
	margin-bottom: 1.5rem;
	color: var(--wp--preset--color--muted-foreground);
	font-size: 1.05rem;
	line-height: 1.65;
}

.hu-testimonials-hub--empty {
	padding: 2rem;
	text-align: center;
	border-radius: 16px;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--border);
}

.hu-testimonials-hub__empty-msg {
	margin: 0;
	color: var(--wp--preset--color--muted-foreground);
}

.hu-testimonials-hub__cards {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
	min-width: 0;
}

.hu-testimonials-hub__card {
	width: 100%;
	max-width: 100%;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: var(--wp--preset--shadow--card);
	min-width: 0;
}

.hu-testimonials-hub__empty-category {
	margin: 0;
	width: 100%;
	max-width: 100%;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	text-align: center;
	color: var(--wp--preset--color--muted-foreground);
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
}

.hu-testimonials-hub__figure {
	margin: 0 0 1.25rem 0;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--wp--preset--color--secondary);
}

.hu-testimonials-hub__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hu-testimonials-hub__image[hidden],
.hu-testimonials-hub__video[hidden] {
	display: none;
}

/* Video: contain + visible controls (cover + overflow:hidden clips the control bar). */
.hu-testimonials-hub__figure--video {
	aspect-ratio: auto;
	overflow: visible;
	background: #000;
}

.hu-testimonials-hub__figure--video .hu-testimonials-hub__video {
	display: block;
	width: 100%;
	height: auto;
	max-height: min( 55vh, 375px );
	object-fit: contain;
	vertical-align: middle;
}

.hu-testimonials-hub__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	margin: 0 0 1rem 0;
	line-height: 1.2;
	color: var(--wp--preset--color--foreground);
}

.hu-testimonials-hub__story {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--wp--preset--color--card-foreground);
}

.hu-testimonials-hub__story > *:first-child {
	margin-top: 0;
}

.hu-testimonials-hub__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.hu-testimonials-hub__chip {
	display: inline-block;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--secondary-foreground);
	border: 1px solid var(--wp--preset--color--border);
}

/*
 * Native <select> (condition picker): UA styles add uneven internal padding;
 * reset appearance and draw our own chevron so the label sits visually centered.
 */
.hu-testimonials-hub__category-select {
	-webkit-appearance: none;
	appearance: none;
	width: auto;
	min-width: min(100%, 14rem);
	max-width: 100%;
	margin: 0;
	padding: 0.5rem 2.25rem 0.5rem 0.85rem;
	font-size: 1rem;
	line-height: 1.25;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
	color: var(--wp--preset--color--foreground);
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--border);
	background-color: var(--wp--preset--color--card);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%234a6352' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.65rem center;
	background-size: 1.1rem 1.1rem;
	box-sizing: border-box;
	min-height: 2.75rem;
	vertical-align: middle;
}

.hu-testimonials-hub__category-select::-ms-expand {
	display: none;
}

@media (max-width: 639px) {
	body.hu-page-testimonials-hub .hu-testimonials-intro-row .hu-testimonials-hub__filter {
		display: block;
		width: 100%;
		margin-top: 0.5rem;
		margin-inline-start: 0;
	}

	body.hu-page-testimonials-hub .hu-testimonials-intro-row .hu-testimonials-hub__category-select {
		width: 100%;
		min-width: 0;
	}
}
