/* Shared responsive refinements for theme pages, forms, profiles and WooCommerce. */
:where(.bhn-site-main, .bhn-footer, .bhn-header) :where(h1, h2, h3, h4, p, a, button, label, span, li, dd) {
	min-width: 0;
	word-wrap: break-word;
	 overflow-wrap: anywhere;
}

:where(.bhn-site-main, .bhn-footer) :where(input, select, textarea, button) {
	max-width: 100%;
}

:where(.bhn-site-main, .bhn-footer) :where(input, select, textarea) {
	font-size: max(16px, 1em);
}

:where(.bhn-site-main, .bhn-footer) :where(button, .button, .bhn-btn, a.button) {
	min-height: 44px;
}

:where(.bhn-site-main, .bhn-footer) :where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--bhn-gold2, #f2d58f);
	outline-offset: 3px;
}

.bhn-site-main :where(.entry-content, .bhn-surface, .bhn-container, .bhn-page) {
	min-width: 0;
}

.bhn-site-main :where(img, video, iframe) {
	max-width: 100%;
}

.ba-service-form,
.ba-customer-dashboard,
.behnood-bmi,
.ba-profile-assessment,
.ba-profile-programs li {
	min-width: 0;
}

.ba-customer-dashboard {
	display: grid;
	gap: clamp(18px, 3vw, 30px);
}

.ba-customer-assessments,
.ba-customer-programs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 14px;
}

.ba-customer-assessments > article,
.ba-customer-programs > article {
	min-width: 0;
	padding: clamp(14px, 2.2vw, 20px);
	border: 1px solid var(--bhn-border, rgba(255,255,255,.1));
	border-radius: 16px;
	background: var(--bhn-surface, #10151d);
	color: var(--bhn-text, #f5f6f8);
}

.ba-customer-assessment-results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 12px 0;
}

.ba-customer-assessment-results > div {
	min-width: 0;
	padding: 9px 11px;
	border: 1px solid var(--bhn-border, rgba(255,255,255,.1));
	border-radius: 10px;
	background: rgba(255,255,255,.025);
}

.ba-customer-assessment-results dt {
	color: var(--bhn-muted, #9ca6b3);
	font-size: 12px;
}

.ba-customer-assessment-results dd {
	margin: 3px 0 0;
	font-weight: 800;
}

.ba-customer-assessments > article > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 4px;
	padding: 7px 12px;
	border: 1px solid var(--bhn-border-gold, rgba(226,189,105,.34));
	border-radius: 10px;
	color: var(--bhn-gold2, #f2d58f);
	font-weight: 800;
}

.ba-dashboard-section {
	min-width: 0;
}

.ba-profile-assessments {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 14px;
}

.ba-profile-assessment {
	padding: clamp(14px, 2.2vw, 20px);
	border: 1px solid var(--bhn-border, rgba(255,255,255,.1));
	border-radius: 16px;
	background: var(--bhn-surface, #10151d);
	color: var(--bhn-text, #f5f6f8);
}

.ba-profile-assessment__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.ba-profile-assessment__status {
	flex: 0 0 auto;
	padding: 3px 9px;
	border: 1px solid var(--bhn-border-gold, rgba(226,189,105,.34));
	border-radius: 999px;
	color: var(--bhn-gold2, #f2d58f);
	font-size: 12px;
}

.ba-profile-assessment__date {
	margin: 8px 0 12px;
	color: var(--bhn-muted, #9ca6b3);
	font-size: 13px;
}

.ba-profile-assessment__results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 14px;
}

.ba-profile-assessment__results > div {
	min-width: 0;
	padding: 9px 11px;
	border: 1px solid var(--bhn-border, rgba(255,255,255,.1));
	border-radius: 10px;
	background: rgba(255,255,255,.025);
}

.ba-profile-assessment__results dt {
	color: var(--bhn-muted, #9ca6b3);
	font-size: 12px;
}

.ba-profile-assessment__results dd {
	margin: 3px 0 0;
	font-weight: 800;
}

.ba-profile-assessment .bhn-btn {
	width: 100%;
}

.ba-profile-programs {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ba-profile-programs > li {
	padding: 16px;
	border: 1px solid var(--bhn-border, rgba(255,255,255,.1));
	border-radius: 14px;
	background: var(--bhn-surface, #10151d);
}

.ba-profile-programs > li > strong,
.ba-profile-programs > li > span {
	display: block;
}

.ba-profile-programs > li > span {
	margin-top: 4px;
	color: var(--bhn-muted, #9ca6b3);
	font-size: 13px;
}

.ba-profile-programs > li > div {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--bhn-border, rgba(255,255,255,.1));
}

.behnood-bmi-card {
	padding: clamp(16px, 3vw, 30px) !important;
}

.bmi-intro {
	margin-bottom: 20px;
}

.bmi-eyebrow {
	display: inline-flex;
	margin-bottom: 8px;
	padding: 4px 10px;
	border: 1px solid var(--bhn-border-gold, rgba(226,189,105,.34));
	border-radius: 999px;
	color: var(--bhn-gold2, #f2d58f);
	font-size: 12px;
	font-weight: 800;
}

.behnood-bmi .bmi-form {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.behnood-bmi .bmi-form label {
	min-width: 0;
}

.behnood-bmi .bmi-form input,
.behnood-bmi .bmi-form select {
	min-height: 48px;
}

.behnood-bmi .bmi-form .bmi-calculate {
	grid-column: 1 / -1;
	min-height: 50px;
}

.bmi-result {
	scroll-margin-top: 90px;
}

.bmi-result__heading {
	margin: 0 0 14px;
}

.bmi-result__heading h3 {
	margin: 0 0 4px;
}

.bmi-result__heading p,
.bmi-chart__summary,
.bmi-save-hint {
	margin: 0;
	color: var(--bhn-muted, #9ca6b3);
	font-size: 13px;
	line-height: 1.85;
}

.behnood-bmi .bmi-stats {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
}

.behnood-bmi .bmi-stats > div {
	min-width: 0;
}

.behnood-bmi .bmi-stats strong {
	font-size: clamp(1.15rem, 4vw, 1.55rem);
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.behnood-bmi .bmi-stats span {
	display: block;
	line-height: 1.7;
}

.bmi-chart {
	min-width: 0;
	overflow: hidden;
}

.bmi-chart canvas {
	width: 100% !important;
	max-width: 100%;
}

.bmi-chart__summary {
	margin-top: 8px;
	text-align: center;
}

.bmi-chart__legend {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 10px;
	color: var(--bhn-text, #18202a);
	font-size: 12px;
}

.bmi-chart__legend > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 0;
	line-height: 1.6;
}

.bmi-chart__swatch {
	width: 10px;
	height: 10px;
	flex: 0 0 10px;
	border: 1px solid rgba(15, 23, 42, .22);
	border-radius: 50%;
}

.bmi-chart__swatch--under { background: #facc15; }
.bmi-chart__swatch--healthy { background: #22c55e; }
.bmi-chart__swatch--over { background: #f97316; }
.bmi-chart__swatch--obesity { background: #ef4444; }

html .behnood-bmi .certificate {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: clamp(18px, 3vw, 30px) 0 18px;
	padding: clamp(24px, 4vw, 42px);
	border: 1px solid rgba(226, 189, 105, .72) !important;
	border-radius: 24px;
	background:
		radial-gradient(circle at 50% 35%, rgba(226, 189, 105, .12), transparent 34%),
		radial-gradient(circle at 0% 100%, rgba(27, 70, 84, .28), transparent 38%),
		linear-gradient(145deg, #121a24 0%, #080c13 58%, #17140e 100%) !important;
	box-shadow: 0 22px 60px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .06);
	color: #f4f7fb !important;
	text-align: center;
}

html .behnood-bmi .certificate::before {
	position: absolute;
	z-index: 0;
	inset: 9px;
	border: 1px solid rgba(240, 211, 148, .28);
	border-radius: 17px;
	content: "";
	pointer-events: none;
}

html .behnood-bmi .certificate > * {
	position: relative;
	z-index: 1;
}

.certificate__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0 2px 15px;
	border-bottom: 1px solid rgba(226, 189, 105, .24);
}

.certificate-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #f0d394;
	font-size: 16px;
	font-weight: 850;
}

.certificate-brand::before {
	width: 26px;
	height: 26px;
	border: 1px solid rgba(240, 211, 148, .72);
	border-radius: 9px;
	background: linear-gradient(145deg, rgba(226, 189, 105, .24), rgba(255, 255, 255, .025));
	content: "✦";
	color: #f0d394;
	font-size: 14px;
	line-height: 24px;
}

.certificate__eyebrow,
.certificate__recipient-label,
.certificate__bmi-label {
	color: #aeb8c6;
	font-size: 12px;
}

.certificate__title {
	margin: 0 0 18px !important;
	color: #f8fafc !important;
	font-size: clamp(20px, 3vw, 27px);
	line-height: 1.6;
}

.certificate__hero {
	display: grid;
	justify-items: center;
	gap: 5px;
	margin: 0 auto 20px;
	padding: 18px 14px 20px;
	border: 1px solid rgba(226, 189, 105, .2);
	border-radius: 20px;
	background: radial-gradient(circle at 50% 42%, rgba(226, 189, 105, .1), rgba(255, 255, 255, .018) 58%);
}

.certificate__recipient {
	max-width: 100%;
	color: #fff;
	font-size: clamp(19px, 3vw, 25px);
	line-height: 1.8;
	overflow-wrap: anywhere;
}

.certificate__bmi {
	margin-top: 2px;
	color: #f0d394;
	font-size: clamp(42px, 8vw, 62px);
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.certificate__category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	margin-top: 7px;
	padding: 4px 15px;
	border: 1px solid var(--certificate-category, #f0d394);
	border-radius: 999px;
	background: color-mix(in srgb, var(--certificate-category, #f0d394) 12%, transparent);
	color: var(--certificate-category, #f0d394);
	font-size: 13px;
	font-weight: 800;
}

.certificate__metrics,
.certificate__details {
	display: grid;
	gap: 10px;
	margin: 12px 0;
}

.certificate__metrics {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.certificate__details {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certificate__metrics > div,
.certificate__details > div {
	display: grid;
	align-content: center;
	gap: 4px;
	min-width: 0;
	min-height: 80px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 14px;
	background: rgba(255, 255, 255, .035);
}

.certificate__metrics > div > span,
.certificate__details > div > span {
	color: #aeb8c6;
	font-size: 11px;
}

.certificate__metrics > div > strong,
.certificate__details > div > strong {
	color: #f8fafc;
	font-size: clamp(13px, 2vw, 16px);
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.certificate__details > div > strong {
	color: #f0d394;
}

.certificate__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 18px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(226, 189, 105, .24);
	color: #cbd5e1;
	font-size: 11px;
}

.certificate__footer b {
	color: #f0d394;
	font-weight: 800;
}

html .behnood-bmi .certificate .certificate-disclaimer {
	max-width: 760px;
	margin: 14px auto 0;
	color: #cbd5e1 !important;
	font-size: 11px;
	line-height: 1.9;
}

.bmi-save-card {
	margin-top: 18px;
	padding: clamp(14px, 2.4vw, 22px);
	border: 1px solid var(--bhn-border-gold, rgba(226,189,105,.34));
	border-radius: 16px;
	background: var(--bhn-surface2, rgba(226,189,105,.055));
}

.bmi-save-card[hidden] {
	display: none !important;
}

.bmi-save-card h3 {
	margin: 0 0 7px;
	color: var(--bhn-gold2, #f2d58f);
	font-size: clamp(17px, 2.5vw, 21px);
}

.bmi-save-card > p:not(.bmi-save-hint) {
	margin: 0 0 12px;
	color: var(--bhn-muted, #9ca6b3);
	line-height: 1.9;
}

.bmi-save-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 12px 0;
	font-size: 13px;
	line-height: 1.8;
}

.bmi-save-consent input {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin: 2px 0 0;
	accent-color: var(--bhn-gold, #e2bd69);
}

.bmi-save-consent a {
	color: var(--bhn-gold2, #f2d58f);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bmi-save-button {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--bhn-gold, #e2bd69);
	border-radius: 11px;
	background: var(--bhn-gold, #e2bd69);
	color: #17130a;
	font: inherit;
	font-weight: 850;
}

.bmi-save-button:disabled {
	cursor: default;
	opacity: .75;
}

.bmi-save-hint {
	margin-top: 9px;
}

.bmi-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bmi-actions > * {
	min-width: 0;
}

.bmi-download-fallback {
	grid-column: 1 / -1;
	text-align: center;
}

.bmi-message.is-error {
	border: 1px solid rgba(239,68,68,.3);
	background: rgba(239,68,68,.1);
	color: #fecaca;
}

.bmi-message.is-success {
	border: 1px solid rgba(34,197,94,.28);
	background: rgba(34,197,94,.09);
	color: #bbf7d0;
}

:root[data-theme="light"] .bmi-message.is-error {
	color: #991b1b;
}

:root[data-theme="light"] .bmi-message.is-success {
	color: #166534;
}

.bhn-woo .woocommerce-checkout .col2-set,
.bhn-woo .woocommerce-checkout #order_review,
.bhn-woo .woocommerce-checkout .woocommerce-billing-fields,
.bhn-woo .woocommerce-checkout .woocommerce-shipping-fields {
	min-width: 0;
}

.bhn-woo .woocommerce-checkout .form-row,
.bhn-woo .woocommerce-checkout .form-row-first,
.bhn-woo .woocommerce-checkout .form-row-last {
	width: 100%;
	float: none;
}

.bhn-woo .woocommerce-cart-form,
.bhn-woo .woocommerce-orders-table__cell,
.bhn-woo .woocommerce-table--order-details {
	max-width: 100%;
}

.bhn-woo :where(table.shop_table, .woocommerce-orders-table, .woocommerce-table--order-details) {
	width: 100%;	
}

.bhn-woo .woocommerce-error,
.bhn-woo .woocommerce-info,
.bhn-woo .woocommerce-message {
	line-height: 1.8;
	word-break: normal;
}

@media (max-width: 840px) {
	.bhn-header__inner {
		gap: 10px;
	}

	.bhn-brand__copy strong {
		font-size: 13px;
	}

	.bhn-woo .woocommerce-checkout .col2-set,
	.bhn-woo .woocommerce-checkout #order_review {
		width: 100%;
		float: none;
	}
}

@media (max-width: 600px) {
	.bhn-header__inner {
		min-height: 62px;
		gap: 6px;
	}

	.bhn-header__actions {
		gap: 4px;
	}

	.bhn-brand {
		gap: 6px;
	}

	.bhn-brand__copy small {
		font-size: 8px;
	}

	.bhn-brand .custom-logo,
	.bhn-brand__logo-image {
		max-width: 82px;
		max-height: 40px;
	}

	.bhn-menu-toggle,
	.bhn-theme-toggle,
	.bhn-cart-link,
	.bhn-install-app {
		width: 36px;
		min-width: 36px;
		min-height: 36px;
	}

	.bhn-account {
		min-height: 36px;
	}

	.bhn-mobile-nav a {
		min-height: 48px;
		font-size: 14px;
	}

	.bhn-hero__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.bhn-hero__actions .bhn-btn {
		width: 100%;
	}

	.bhn-section {
		padding-bottom: 48px;
	}

	.bhn-services-grid {
		grid-template-columns: 1fr;
	}

	.bhn-surface {
		padding: 12px;
	}

	.ba-service-form {
		padding: 16px;
	}

	.ba-service-form form,
	.behnood-bmi .bmi-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.behnood-bmi .bmi-form .bmi-calculate {
		grid-column: auto;
	}

	.behnood-bmi-card {
		padding: 15px !important;
		border-radius: 16px !important;
	}

	.behnood-bmi h2 {
		font-size: clamp(22px, 7vw, 30px);
		line-height: 1.45;
	}

	.behnood-bmi .bmi-stats {
		grid-template-columns: 1fr;
	}

	.bmi-chart__legend {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		font-size: 11px;
	}

	.certificate__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.certificate__metrics,
	.certificate__details {
		grid-template-columns: 1fr;
	}

	.certificate__metrics > div,
	.certificate__details > div {
		min-height: 68px;
	}

	.certificate__footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.behnood-bmi .bmi-details,
	.ba-profile-assessment__results {
		grid-template-columns: 1fr;
	}

	.ba-customer-assessment-results {
		grid-template-columns: 1fr;
	}

	.bmi-actions {
		grid-template-columns: 1fr;
	}

	.bmi-actions > * {
		width: 100%;
	}

	.ba-profile-assessment__head {
		flex-direction: column;
	}

	.ba-profile-assessment__status {
		align-self: flex-start;
	}

	.bhn-woo .woocommerce-cart-form {
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
	}

	.bhn-woo table.shop_table {
		min-width: 620px;
	}

	.bhn-woo .woocommerce-checkout #payment,
	.bhn-woo .woocommerce-checkout .place-order,
	.bhn-woo .woocommerce-checkout #place_order {
		width: 100%;
	}

	.bhn-services-actions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 360px) {
	.bhn-container {
		width: calc(100% - 20px);
	}

	.bhn-brand__copy strong {
		font-size: 11px;
	}

	.bhn-brand__copy small {
		font-size: 7px;
	}

	.bhn-header__actions {
		gap: 3px;
	}

	.bhn-menu-toggle,
	.bhn-theme-toggle,
	.bhn-cart-link,
	.bhn-install-app {
		width: 32px;
		min-width: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	:where(.bhn-site-main, .bhn-header, .bhn-footer) *,
	:where(.bhn-site-main, .bhn-header, .bhn-footer) *::before,
	:where(.bhn-site-main, .bhn-header, .bhn-footer) *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* Legibility scale: modestly larger copy without changing the page layouts. */
body {
	font-size: 16px;
}

.bhn-site-main p,
.bhn-site-main li,
.bhn-site-main label,
.bhn-site-main dt,
.bhn-site-main dd {
	font-size: clamp(15px, calc(12px + 1vw), 16px);
	line-height: 1.85;
}

.bhn-site-main :where(input, select, textarea) {
	font-size: 16px;
}

.bhn-site-main :where(button, .bhn-btn, a.button) {
	font-size: 14px;
}

.bhn-nav a {
	font-size: 13px;
}

.bhn-account__text strong {
	font-size: 11px;
}

.bhn-account__text small,
.bhn-brand__copy small {
	font-size: 10px;
}

.bhn-theme-toggle,
.bhn-cart-link {
	font-size: 12px;
}

.bhn-kicker {
	font-size: 12px;
}

.bhn-service-card__meta,
.bhn-services-card__tag,
.bhn-services-product__tag {
	font-size: 12px;
}

.bhn-footer p,
.bhn-footer a,
.bhn-footer li {
	font-size: 14px;
}

.ba-profile-assessment__date,
.ba-profile-assessment__results dt,
.ba-customer-assessment-results dt,
.ba-profile-programs > li > span {
	font-size: 14px;
}

.behnood-bmi .bmi-stats span,
.behnood-bmi .bmi-details b,
.behnood-bmi .bmi-details span,
.behnood-bmi .bmi-chart__summary,
.behnood-bmi .note {
	font-size: 15px;
}

.bmi-chart__legend {
	font-size: 13px;
}

.certificate__eyebrow,
.certificate__recipient-label,
.certificate__bmi-label {
	font-size: 14px;
}

.certificate__metrics > div > span,
.certificate__details > div > span {
	font-size: 13px;
}

.certificate__metrics > div > strong,
.certificate__details > div > strong {
	font-size: clamp(15px, 2vw, 17px);
}

.certificate__footer {
	font-size: 13px;
}

html .behnood-bmi .certificate .certificate-disclaimer {
	font-size: 13px;
}

html .behnood-bmi .certificate__metrics > div > span,
html .behnood-bmi .certificate__details > div > span {
	font-size: 14px;
}

html .behnood-bmi .certificate__footer {
	font-size: 14px;
}

@media (max-width: 600px) {
	.bhn-site-main p,
	.bhn-site-main li,
	.bhn-site-main label,
	.bhn-site-main dt,
	.bhn-site-main dd {
		font-size: 15px;
	}

	.bhn-footer p,
	.bhn-footer a,
	.bhn-footer li {
		font-size: 14px;
	}

	.bmi-chart__legend {
		font-size: 12px;
	}
}
