/**
 * HiGuppy UI unification layer.
 *
 * Loaded last so the shared shell, custom pages, professional pages and
 * WooCommerce views use the same rhythm without changing page content.
 */

:root {
	--hg-ui-surface: var(--hg-white);
	--hg-ui-sky: var(--hg-surface);
	--hg-ui-ink: var(--hg-navy);
	--hg-ui-muted: var(--hg-muted);
	--hg-ui-line: var(--hg-border);
	--hg-ui-max: var(--hg-container);
}

body.higuppy-site-shell {
	background: var(--hg-ui-sky) !important;
}

/* XStore footer remnants are hidden in the shared late-loading layer. */
body.higuppy-site-shell footer.footer,
body.higuppy-site-shell .footer-top,
body.higuppy-site-shell .footer-middle,
body.higuppy-site-shell .footer-bottom,
body.higuppy-site-shell .et_b_footer-widget-area,
body.higuppy-site-shell .et_b_footer-copyrights,
body.higuppy-site-shell .et_b_footer-menu {
	display: none !important;
}

/* One shared header rhythm on every page type. */
body.higuppy-site-shell > nav.hg-nav {
	width: min(var(--hg-ui-max), calc(100% - 40px)) !important;
	min-height: 72px !important;
	margin: 18px auto 24px !important;
	padding: 0 22px !important;
	border: 1px solid rgba(220, 235, 246, .95) !important;
	border-radius: 24px !important;
	background: rgba(255, 255, 255, .94) !important;
	box-shadow: 0 14px 34px rgba(8, 39, 71, .09) !important;
}

body.higuppy-site-shell > nav.hg-nav .hg-logo-img {
	height: 38px !important;
	max-width: 150px !important;
}

/* Professional pages: keep breadcrumb in the hero flow, never floating above it. */
body.higuppy-site-shell .hg-pp .page-hero {
	padding: 32px 0 58px !important;
	background: linear-gradient(180deg, var(--hg-aqua-soft) 0%, var(--hg-surface) 64%, var(--hg-white) 100%) !important;
}

body.higuppy-site-shell .hg-pp .page-hero-inner {
	width: min(var(--hg-ui-max), calc(100% - 40px)) !important;
	max-width: var(--hg-ui-max) !important;
}

body.higuppy-site-shell .hg-pp .page-hero-content {
	align-items: flex-start !important;
	text-align: left !important;
}

body.higuppy-site-shell .hg-pp .breadcrumbs {
	justify-content: flex-start !important;
	width: 100% !important;
	margin: 0 0 28px !important;
	color: var(--hg-ui-muted) !important;
}

body.higuppy-site-shell .hg-pp .page-hero h1 {
	max-width: 820px;
	color: var(--hg-ui-ink) !important;
}

body.higuppy-site-shell .hg-pp .hero-summary {
	max-width: 700px !important;
	margin-left: 0 !important;
}

/* The custom About/Contact shell follows the same left edge and top rhythm. */
body.higuppy-site-shell .higuppy-page .hg-container {
	width: min(var(--hg-ui-max), calc(100% - 40px)) !important;
}

body.higuppy-site-shell .higuppy-page .hg-breadcrumb {
	margin-top: 0 !important;
	margin-bottom: 28px !important;
	align-items: center !important;
}

/* Keep XStore's legacy breadcrumb from creating a second, misaligned row. */
body.higuppy-site-shell > .page-wrapper .page-heading,
body.higuppy-site-shell > .page-wrapper > .breadcrumbs {
	display: none !important;
}

@media (max-width: 900px) {
	body.higuppy-site-shell > nav.hg-nav {
		position: sticky !important;
		top: 8px !important;
		z-index: 1001 !important;
		width: calc(100% - 24px) !important;
		min-height: 60px !important;
		margin: 12px auto 18px !important;
		padding: 8px 10px 8px 12px !important;
		border-radius: 18px !important;
	}

	body.higuppy-site-shell > nav.hg-nav .hg-logo-img {
		height: 32px !important;
		max-width: 128px !important;
	}

	body.higuppy-site-shell .hg-pp .page-hero {
		padding: 24px 0 42px !important;
	}

	body.higuppy-site-shell .hg-pp .page-hero-inner,
	body.higuppy-site-shell .higuppy-page .hg-container {
		width: calc(100% - 40px) !important;
	}

	body.higuppy-site-shell .hg-pp .breadcrumbs,
	body.higuppy-site-shell .higuppy-page .hg-breadcrumb {
		margin-bottom: 22px !important;
		font-size: var(--hg-font-size-body);
	}

	body.higuppy-site-shell .hg-pp .page-hero h1 {
		font-size: clamp(36px, 10vw, 48px);
		line-height: 1.08;
	}

	body.higuppy-site-shell .hg-pp .hero-summary {
		font-size: var(--hg-font-size-body);
		line-height: 1.65;
	}
}

@media (max-width: 480px) {
	body.higuppy-site-shell > nav.hg-nav {
		width: calc(100% - 20px) !important;
		margin-top: 10px !important;
	}

	body.higuppy-site-shell .hg-pp .page-hero-inner,
	body.higuppy-site-shell .higuppy-page .hg-container {
		width: calc(100% - 32px) !important;
	}
}

/* Final shared rail/header sizing, loaded after the legacy header overrides. */
@media (min-width: 901px) {
	body.higuppy-site-shell > nav#hgSiteNav.hg-nav {
		width: min(1160px, calc(100% - 72px)) !important;
		height: 62px !important;
		min-height: 62px !important;
		max-height: 62px !important;
		margin: 12px auto 20px !important;
		padding: 0 24px !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-logo,
	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu {
		height: 62px !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-logo-img {
		height: 40px !important;
		max-height: 40px !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu a {
		padding: 13px 0 !important;
		font-size: 16px;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-action-btn,
	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu-toggle {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		min-height: 40px !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-action-btn svg,
	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu-toggle svg {
		width: 24px !important;
		height: 24px !important;
	}
}

@media (min-width: 901px) {
	body.higuppy-site-shell > nav#hgSiteNav.hg-nav {
		display: grid !important;
		grid-template-columns: 72px minmax(0, 1fr) auto !important;
		flex-wrap: nowrap !important;
		position: sticky !important;
		top: 10px !important;
		z-index: 1001 !important;
		overflow: visible !important;
		height: 62px !important;
		min-height: 62px !important;
		max-height: 62px !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-logo,
	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu {
		height: 62px !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu {
		position: static !important;
		display: flex !important;
		width: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: center !important;
		gap: clamp(10px, 1.4vw, 22px) !important;
		overflow: visible !important;
		background: transparent !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu-links {
		display: contents !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu-spotlight,
	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu > a.hg-menu-note,
	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu-toggle {
		display: none !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu-links > a {
		display: inline-flex !important;
		width: auto !important;
		min-width: 0 !important;
		min-height: 0 !important;
		padding: 13px 0 !important;
		white-space: nowrap !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-actions {
		margin-left: 0 !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-logo-img {
		height: 40px !important;
		max-height: 40px !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu a {
		padding: 13px 0 !important;
		font-size: 16px;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-action-btn,
	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu-toggle {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		min-height: 40px !important;
	}

	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-action-btn svg,
	body.higuppy-site-shell > nav#hgSiteNav.hg-nav .hg-menu-toggle svg {
		width: 24px !important;
		height: 24px !important;
	}
}

/* Collections hero sky — must beat the global shell sky above. */
html:has(.hg-collections),
body.higuppy-site-shell:has(.hg-collections),
body.page-id-2262.higuppy-site-shell {
	background: #eaf6ff !important;
}

body.higuppy-site-shell:has(.hg-collections)::before,
body.page-id-2262.higuppy-site-shell::before {
	background: #eaf6ff !important;
}

/*
 * Typography contract for the CONTENT/SHELL batch.
 * This stylesheet is enqueued after the route layers, so it is the final
 * owner for visible type while preserving each component's layout rules.
 */
html body.higuppy-site-shell :is(p, li, small, label, summary, td, th, figcaption, blockquote, cite),
html body.higuppy-site-shell :is(a, button, input, select, textarea, [role="button"]):not(h1 a):not(h2 a):not(h3 a):not(h4 a):not(h5 a):not(h6 a),
html body.higuppy-site-shell :is(span, strong, b):not([aria-hidden="true"]):not(.screen-reader-text):not(.sr-only):not([class*="icon"]):not([class^="fa"]):not([class^="ri-"]):not([class^="bi-"]):not(h1 span):not(h2 span):not(h3 span):not(h4 span):not(h5 span):not(h6 span) {
	font-family: var(--hg-font-family);
	font-size: var(--hg-font-size-body);
	line-height: var(--hg-line-height-body);
}

html body.higuppy-site-shell :is(h1, h2, h3, h4, h5, h6),
html body.higuppy-site-shell :is(h1, h2, h3, h4, h5, h6) a,
html body.higuppy-site-shell :is(h1, h2, h3, h4, h5, h6) span {
	font-family: var(--hg-font-family);
	line-height: var(--hg-line-height-heading);
}

html body.higuppy-site-shell h1,
html body.higuppy-site-shell h1 a { font-size: var(--hg-font-size-h1); font-weight: var(--hg-font-weight-h1); }
html body.higuppy-site-shell h2,
html body.higuppy-site-shell h2 a { font-size: var(--hg-font-size-h2); font-weight: var(--hg-font-weight-h2); }
html body.higuppy-site-shell h3,
html body.higuppy-site-shell h3 a { font-size: var(--hg-font-size-h3); font-weight: var(--hg-font-weight-h3); }
html body.higuppy-site-shell h4,
html body.higuppy-site-shell h4 a { font-size: var(--hg-font-size-h4); font-weight: var(--hg-font-weight-h3); }
html body.higuppy-site-shell h5,
html body.higuppy-site-shell h5 a { font-size: var(--hg-font-size-h5); font-weight: var(--hg-font-weight-h3); }
html body.higuppy-site-shell h6,
html body.higuppy-site-shell h6 a { font-size: var(--hg-font-size-h6); font-weight: var(--hg-font-weight-h3); }

/* Hero display headings intentionally use the display token. */
html body.higuppy-site-shell .hg-wow-hero h1,
html body.higuppy-site-shell .hg-hero-copy h1,
html body.higuppy-site-shell .hg-home-hero h1 {
	font-size: var(--hg-font-size-display);
}

html body.higuppy-site-shell :is(button, [role="button"], input[type="submit"], input[type="button"]),
html body.higuppy-site-shell :is(.hg-btn, .hg-wow-btn, .hg-blog-card__read-more, .hg-bl__read) {
	font-family: var(--hg-font-family);
	font-size: var(--hg-font-size-body);
	font-weight: var(--hg-font-weight-ui);
}

/* Keep every rendered HTML image on the site visually consistent. */
html body img {
	border-radius: 10px !important;
}
