/* ==========================================================================
   Botulax — main stylesheet
   Tokens come from theme.json presets so palette edits in the Site Editor
   flow through. Component classes are prefixed .bx-.

   Type roles
   - Jost (display): page and section headings (28px and up), the product
     name lockup and large numerals. Never for small text: its x-height is
     smaller than Libre Franklin's, so small Jost looks undersized.
   - Libre Franklin (body): everything else — text, labels, list items,
     sub-headings, table cells and any number range (Jost's en dash is too wide).
   ========================================================================== */

:root {
	--ink: var(--wp--preset--color--ink, #0d1b33);
	--ink-2: var(--wp--preset--color--ink-2, #222e42);
	--navy: var(--wp--preset--color--navy, #1d2f6f);
	--steel: var(--wp--preset--color--steel, #4a5568);
	--frost: var(--wp--preset--color--frost, #edf2f6);
	--rule: var(--wp--preset--color--rule, #d3dbe4);
	--rule-frost: #c8d2dd;
	--white: #fff;

	--f-display: var(--wp--preset--font-family--display);
	--f-body: var(--wp--preset--font-family--body);

	--gutter: var(--wp--style--root--padding-left, clamp(1.25rem, 4vw, 3rem));
	--wrap: 1280px;
	--measure: 38rem;
	--section: clamp(4rem, 8vw, 7rem);
	--radius: 0;
	--header-h: 76px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Strength colours, taken from the carton artwork of each presentation. */
.bx-strength--50 { --c: var(--wp--preset--color--s-50, #a2c33a); }
.bx-strength--100 { --c: var(--wp--preset--color--s-100, #2f9bd7); }
.bx-strength--150 { --c: var(--wp--preset--color--s-150, #2b3e8f); }
.bx-strength--200 { --c: var(--wp--preset--color--s-200, #a2317b); }
.bx-strength--300 { --c: var(--wp--preset--color--s-300, #ee8a2c); }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
	scroll-padding-top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
	font-variant-numeric: lining-nums;
}

/* Sections butt together; spacing is owned by each section. */
.wp-site-blocks > *,
.bx-main > * {
	margin-block: 0;
}

.bx-grid > * {
	margin-block: 0;
}

.bx-wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

.bx-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.bx-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--navy);
	outline-offset: 3px;
}

:where(.bx-utility, .bx-footer, .bx-formulation, .bx-commitment) :focus-visible {
	outline-color: var(--white);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.wp-block-image {
	margin: 0;
}


/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.bx-h2 {
	max-width: 24ch;
	font-size: clamp(1.875rem, 1.35rem + 1.5vw, 2.75rem);
	font-weight: 480;
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.bx-h3 {
	font-family: var(--f-body);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.005em;
}

.bx-intro {
	max-width: var(--measure);
	margin-top: 1rem;
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	line-height: 1.55;
	color: var(--ink-2);
}

.bx-measure {
	max-width: var(--measure);
}

.bx-label {
	display: block;
	font-family: var(--f-body);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink-2);
}

.bx-arrow-link a {
	font-weight: 600;
	color: var(--navy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.bx-arrow-link a:hover {
	color: var(--ink);
}

/* Registered mark: Libre Franklin's ® is a small raised glyph; Jost's is cap height. */
.bx-mark {
	font-family: var(--f-body);
	font-size: 0.6em;
	font-weight: 500;
	line-height: 0;
	vertical-align: 0.45em;
	margin-left: 0.03em;
}

/* Citation numbers, as in medical literature. */
.bx-ref {
	font-size: 0.7em;
	line-height: 0;
	vertical-align: 0.6em;
	margin-left: 0.1em;
}

.bx-ref a {
	font-weight: 600;
	color: var(--navy);
	text-decoration: none;
}

.bx-ref a:hover {
	text-decoration: underline;
}

p,
li,
.bx-qa__q {
	text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.wp-block-buttons.bx-actions {
	gap: 0.75rem 1.75rem;
}

.wp-block-button .wp-block-button__link {
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
	border: 1px solid var(--navy);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background-color: var(--ink);
	border-color: var(--ink);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--navy);
	border: 0;
	padding: 0.95em 0;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: transparent;
	color: var(--ink);
}

/* --------------------------------------------------------------------------
   Utility bar + header
   -------------------------------------------------------------------------- */

.bx-utility {
	background: var(--ink);
	color: #c3cedc;
	font-family: var(--f-body);
	font-weight: 400;
	font-size: 0.8125rem;
}

.bx-utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 36px;
	padding-block: 0.45rem;
	line-height: 1.5;
}

.bx-utility a {
	color: var(--white);
	text-decoration: none;
}

.bx-utility a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bx-header-part {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease);
}

/* The frosted backdrop lives on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block for the navigation's position:fixed overlay and trap the mobile menu inside 76px. */
.bx-header-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(255 255 255 / 0.94);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	pointer-events: none;
}

/* Logged-in reviewers: sit below the admin bar. */
.admin-bar .bx-header-part {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.bx-header-part.is-scrolled {
	border-bottom-color: var(--rule);
}

.bx-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	min-height: var(--header-h);
}

.bx-wordmark {
	display: inline-flex;
	align-items: baseline;
	font-family: var(--f-display);
	font-size: 1.65rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1;
	color: var(--navy);
	text-decoration: none;
}

.bx-wordmark__tld {
	font-weight: 400;
	color: var(--steel);
	font-size: 0.62em;
	letter-spacing: 0.08em;
	margin-left: 0.4em;
}

.bx-wordmark--light {
	color: var(--white);
}

.bx-wordmark--light .bx-wordmark__tld {
	color: #8e9db2;
}

/* Navigation */

.bx-nav {
	margin-left: auto;
	font-size: 0.98rem;
	font-weight: 500;
	--wp--style--block-gap: clamp(1.25rem, 2.2vw, 2.25rem);
}

.bx-nav .wp-block-navigation-item__content {
	color: var(--ink);
	text-decoration: none;
	padding-block: 0.4rem;
}

.bx-nav .wp-block-navigation-item__content:hover {
	color: var(--navy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
}

.bx-nav .wp-block-navigation__submenu-container {
	min-width: 230px !important;
	padding: 0.5rem !important;
	border: 1px solid var(--rule) !important;
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: 0 18px 40px -12px rgb(13 27 51 / 0.18);
	font-weight: 400;
}

.bx-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex !important;
	align-items: center;
	gap: 0.7rem;
	padding: 0.55rem 0.75rem !important;
	border-radius: 4px;
}

.bx-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--frost);
	text-decoration: none;
}

.bx-nav__product .wp-block-navigation-item__content::before {
	content: "";
	width: 18px;
	height: 3px;
	border-radius: 2px;
	background: var(--c);
}

.bx-nav__product--50 { --c: var(--wp--preset--color--s-50); }
.bx-nav__product--100 { --c: var(--wp--preset--color--s-100); }
.bx-nav__product--150 { --c: var(--wp--preset--color--s-150); }
.bx-nav__product--200 { --c: var(--wp--preset--color--s-200); }
.bx-nav__product--300 { --c: var(--wp--preset--color--s-300); }

.bx-header__cta .wp-block-button__link {
	padding: 0.6em 1.3em;
	font-size: 0.95rem;
}

/* Contact sits in the mobile overlay only; desktop has the button. */
@media (min-width: 960px) {
	.bx-nav .bx-nav__contact {
		display: none !important;
	}
}

/* Core switches to the overlay at 600px; the full menu needs more room, so hold it until 960px. */
@media (min-width: 600px) and (max-width: 959px) {
	.bx-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.bx-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 959px) {
	.bx-header__cta {
		display: none !important;
	}
}

.bx-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem var(--gutter) 2rem;
	background: var(--white);
}

.bx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4rem;
	gap: 0.25rem;
	/* The desktop menu is right-justified; the overlay reads better ranged left. */
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	align-items: flex-start;
}

.bx-nav .is-menu-open .wp-block-navigation__container,
.bx-nav .is-menu-open .wp-block-navigation__submenu-container {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	align-items: flex-start !important;
}

.bx-nav .is-menu-open .wp-block-navigation__submenu-container {
	min-width: 0 !important;
}

.bx-nav .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--f-display);
	font-size: 1.6rem;
	font-weight: 400;
}

.bx-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--f-body);
	font-size: 1.05rem;
	padding-left: 0 !important;
}

.bx-nav .is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none;
	padding: 0.25rem 0 0.75rem !important;
}


/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.bx-hero {
	padding-block: clamp(3rem, 6.5vw, 6rem) clamp(4rem, 7vw, 6.5rem);
	overflow: hidden;
}

.bx-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6.2fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: end;
}

/* The page name (the H1) sits above the tagline as the brand line of the lockup, as on the product pages. */
.bx-hero__name {
	margin: 0 0 0.85rem;
	font-size: clamp(1.375rem, 1.2rem + 0.55vw, 1.75rem);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.005em;
	color: var(--navy);
}

.bx-hero__title {
	max-width: 15ch;
	margin: 0;
	font-family: var(--f-display);
	font-size: clamp(2.4rem, 1.5rem + 2.6vw, 3.75rem);
	font-weight: 450;
	line-height: 1.04;
	letter-spacing: -0.022em;
	text-wrap: balance;
	color: var(--ink);
}

.bx-lede {
	max-width: 34rem;
	margin-top: 1.5rem;
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.55;
	color: var(--ink-2);
}

.bx-hero .bx-actions {
	margin-top: 2rem;
}

/* Units-per-vial figure: each presentation as a block of its carton lines, height to scale. */

.bx-range {
	margin: 0;
}

.bx-range__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: end;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bx-range__item {
	transition: opacity 0.35s var(--ease);
}

.bx-range__link {
	display: flex;
	flex-direction: column;
	color: var(--ink);
	text-decoration: none;
}

.bx-range__bar,
.bx-range__value,
.bx-range__note {
	padding-inline: clamp(0.3rem, 1vw, 0.8rem);
}

.bx-range__bar {
	display: block;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--ink);
	color: var(--c);
}

.bx-range__bar .bx-wave {
	display: block;
	width: 100%;
	height: auto;
	overflow: hidden;
}

.bx-range__value {
	display: flex;
	align-items: baseline;
	margin-top: 0.9rem;
	font-family: var(--f-display);
	font-size: clamp(1.75rem, 0.9rem + 1.9vw, 2.6rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.02em;
}

.bx-range__unit {
	margin-left: 0.1em;
	font-size: max(0.45em, 11px);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--steel);
}

.bx-range__note {
	min-height: 2.7em;
	margin-top: 0.45rem;
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--steel);
}

.bx-range__caption {
	margin-top: 1.25rem;
	padding-inline: clamp(0.3rem, 1vw, 0.8rem);
	font-size: 0.875rem;
	color: var(--steel);
}

.bx-range__list:hover .bx-range__item:not(:hover),
.bx-range__list:focus-within .bx-range__item:not(:focus-within) {
	opacity: 0.3;
}

.bx-range__link:hover .bx-range__value,
.bx-range__link:focus-visible .bx-range__value {
	color: var(--navy);
}

@media (prefers-reduced-motion: no-preference) {
	.bx-range__bar .bx-wave {
		clip-path: inset(100% 0 0 0);
		animation: bx-rise 0.8s var(--ease) forwards;
		animation-delay: calc(var(--i, 0) * 70ms + 100ms);
	}

	@keyframes bx-rise {
		to {
			clip-path: inset(0 0 0 0);
		}
	}
}

/* --------------------------------------------------------------------------
   Overview: a clean photograph, then the text. No type over images.
   -------------------------------------------------------------------------- */

.bx-overview__image img {
	width: 100%;
	max-height: 640px;
	aspect-ratio: 21 / 8;
	object-fit: cover;
	object-position: 72% 45%;
}

.bx-overview__body {
	padding-block: clamp(3rem, 6vw, 5rem) var(--section);
}

.bx-overview__text {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 1.5rem clamp(2rem, 6vw, 6rem);
	align-items: start;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.bx-overview__lead {
	font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
	line-height: 1.5;
	color: var(--ink);
}

.bx-overview__detail {
	max-width: var(--measure);
	color: var(--ink-2);
}

.bx-overview__detail > * + * {
	margin-top: 1em;
}

.bx-overview__detail a {
	color: var(--navy);
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   The range on a shelf: every presentation stands on one ink line, each
   with its own strength colour under it.
   -------------------------------------------------------------------------- */

.bx-products {
	padding-block: 0 var(--section);
}

.bx-products__compare {
	margin-top: 1rem;
}

.bx-products__note {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	color: var(--ink-2);
}

.bx-products__tagline {
	margin-top: 0.75rem;
	color: var(--ink);
}

.bx-shelf {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	margin-inline: calc(-1 * clamp(0.5rem, 1.2vw, 1.25rem));
}

.bx-shelf--four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bx-shelf__item {
	position: relative;
	display: flex;
	flex-direction: column;
	padding-inline: clamp(0.5rem, 1.2vw, 1.25rem);
}

.bx-shelf__item > * {
	margin: 0;
}

.bx-shelf__image {
	position: relative;
	margin-inline: calc(-1 * clamp(0.5rem, 1.2vw, 1.25rem)) !important;
	padding-inline: clamp(0.5rem, 1.2vw, 1.25rem);
	border-bottom: 1px solid var(--ink);
}

/* The ink line runs edge to edge of the text column: the outer items don't extend into the gutter. */
.bx-shelf > .bx-shelf__item:first-child .bx-shelf__image,
.bx-shelf--four > .bx-shelf__item:first-child .bx-shelf__image {
	margin-left: 0 !important;
	padding-left: 0;
}

.bx-shelf > .bx-shelf__item:first-child .bx-shelf__image::after {
	left: 0;
}

.bx-shelf > .bx-shelf__item:last-child .bx-shelf__image {
	margin-right: 0 !important;
	padding-right: 0;
}

.bx-shelf__image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

.bx-shelf__image::after {
	content: "";
	position: absolute;
	left: clamp(0.5rem, 1.2vw, 1.25rem);
	bottom: -4px;
	width: 2.5rem;
	height: 3px;
	background: var(--c);
}

.bx-shelf__name {
	margin-top: 1.5rem !important;
}

.bx-shelf__name a {
	color: inherit;
	text-decoration: none;
}

/* The whole column is the link. */
.bx-shelf__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.bx-shelf__name a:focus-visible {
	outline: none;
}

.bx-shelf__item:focus-within {
	outline: 2px solid var(--navy);
	outline-offset: 4px;
}

.bx-shelf__item:hover .bx-lockup__brand {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.bx-shelf__item:hover .bx-lockup__units {
	color: var(--navy);
}

.bx-shelf__text {
	margin-top: 0.75rem !important;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ink-2);
}

/* Product name lockup, set like the carton: "Botulax" over the strength numeral. */

.bx-lockup {
	font-family: var(--f-display);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-wrap: nowrap;
}

.bx-lockup__brand {
	display: block;
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: -0.005em;
	color: var(--navy);
}

.bx-lockup__units {
	display: inline-flex;
	align-items: baseline;
	margin-top: 0.3rem;
	font-size: clamp(2.25rem, 1.6rem + 1.6vw, 3rem);
	letter-spacing: -0.03em;
	color: var(--ink);
	transition: color 0.25s var(--ease);
}

/* Optical alignment: pull each leading digit back by its left sidebearing so the numeral lines up with "Botulax". */
.bx-lockup__units--d1 { margin-left: -0.07em; }
.bx-lockup__units--d2 { margin-left: -0.015em; }
.bx-lockup__units--d3 { margin-left: -0.05em; }
.bx-lockup__units--d5 { margin-left: -0.025em; }

.bx-lockup__u {
	margin-left: 0.05em;
	font-size: 0.48em;
	font-weight: 500;
	letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Why Botulax
   -------------------------------------------------------------------------- */

.bx-why {
	padding-block: var(--section);
	background: var(--frost);
}

.bx-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}

.bx-why__image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: 50% 45%;
	/* The photo's backdrop is levelled to pure white, so multiply drops it out entirely. */
	mix-blend-mode: multiply;
	/* Let the cast shadow fade out instead of stopping at the photo's edge. */
	-webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 97%);
	mask-image: linear-gradient(90deg, #000 60%, transparent 97%);
}

.bx-why__text {
	max-width: 32rem;
	margin-top: 1.25rem;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--ink-2);
}

.bx-why__features-title {
	margin-top: clamp(3.5rem, 7vw, 5rem);
}

.bx-features {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
	max-width: 56rem;
	border-top: 2px solid var(--ink);
}

.bx-features li {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.45;
	display: grid;
	grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
	gap: 0.25rem 2rem;
	align-items: baseline;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--rule-frost);
}

.bx-features__label {
	display: block;
	margin-bottom: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--steel);
}

/* --------------------------------------------------------------------------
   Applications, grouped the way the client lists them
   -------------------------------------------------------------------------- */

.bx-apps {
	padding-block: var(--section);
}

.bx-apps__groups {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 2.5rem clamp(2rem, 6vw, 6rem);
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.bx-apps__group {
	padding-top: 1rem;
	border-top: 2px solid var(--ink);
}

.bx-apps__kind {
	font-family: var(--f-body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--steel);
}

.bx-indications {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.bx-indications li {
	max-width: 30ch;
	margin: 0.9rem 0 0;
	font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem);
	font-weight: 500;
	line-height: 1.32;
	color: var(--ink);
}

/* --------------------------------------------------------------------------
   Formulation (dark, like the reverse of a label)
   -------------------------------------------------------------------------- */

.bx-formulation {
	padding-block: var(--section);
	background: var(--ink);
	color: #dbe3ee;
}

.bx-formulation .bx-h2 {
	color: var(--white);
	font-weight: 450;
	letter-spacing: -0.008em;
}

.bx-formulation .bx-intro,
.bx-formulation__intro {
	color: #b7c4d5;
}

.bx-formulation__intro strong {
	color: var(--white);
	font-weight: 600;
}

.bx-composition {
	margin: clamp(2rem, 4vw, 3rem) 0 0;
}

.bx-composition table {
	width: 100%;
	border-collapse: collapse;
}

.bx-composition thead {
	border-bottom: 0;
}

.bx-composition th,
.bx-composition td {
	border: 0;
	text-align: left;
	vertical-align: baseline;
}

.bx-composition th {
	padding: 0 1rem 0.8rem 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.28);
	font-size: 0.875rem;
	font-weight: 600;
	color: #8fa1b9;
}

.bx-composition td {
	padding: 1.1rem 1rem 1.1rem 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.12);
	font-size: 0.9375rem;
	line-height: 1.45;
	color: #b7c4d5;
}

.bx-composition th:nth-child(1) { width: 40%; }
.bx-composition th:nth-child(2) { width: 18%; }

.bx-composition td:nth-child(1) {
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--white);
}

.bx-composition td:nth-child(2) {
	font-size: 1.0625rem;
	font-weight: 600;
	white-space: nowrap;
	color: var(--white);
}

/* --------------------------------------------------------------------------
   How to use: a left-to-right sequence under a wide photograph
   -------------------------------------------------------------------------- */

.bx-howto {
	padding-block: var(--section);
}

.bx-howto__head {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 2rem clamp(2rem, 6vw, 6rem);
	align-items: start;
}

.bx-howto__head .bx-arrow-link {
	margin-top: 1.5rem;
}

.bx-howto__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: 50% 65%;
	border-radius: var(--radius);
}

.bx-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem clamp(1.25rem, 3vw, 3rem);
	margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
	padding: 0;
	list-style: none;
	counter-reset: bx-step;
	border-top: 1px solid var(--ink);
}

.bx-steps li {
	margin: 0;
	padding-top: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ink-2);
	counter-increment: bx-step;
}

.bx-steps li::before {
	content: counter(bx-step);
	display: block;
	margin-bottom: 0.9rem;
	font-family: var(--f-display);
	font-size: 2.25rem;
	font-weight: 400;
	line-height: 1;
	color: var(--navy);
}

.bx-steps strong {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
}

.bx-steps a {
	color: var(--navy);
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Questions: an open index, every answer visible
   -------------------------------------------------------------------------- */

.bx-faq {
	padding-block: var(--section);
	background: var(--frost);
}

.bx-qa {
	display: block;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--rule-frost);
}

.bx-qa__item > * {
	margin: 0;
}

.bx-qa__q {
	max-width: 32ch;
	font-family: var(--f-body);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.005em;
}

.bx-qa__item {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 0.75rem clamp(2rem, 6vw, 6rem);
	padding: 1.5rem 0 1.75rem;
	border-top: 1px solid var(--rule-frost);
}

.bx-qa__a > * + * {
	margin-top: 0.8rem;
}

.bx-qa__item p {
	max-width: 62ch;
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--ink-2);
}

.bx-qa__item strong {
	font-weight: 600;
	color: var(--ink);
}

.bx-qa__item a {
	color: var(--navy);
}

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */

.bx-closing {
	padding-block: var(--section);
}

.bx-closing__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}

.bx-closing__text {
	max-width: 32rem;
	margin-top: 1rem;
	font-size: 1.125rem;
	color: var(--ink-2);
}

.bx-closing .bx-actions {
	margin-top: 2rem;
}

.bx-notice {
	padding-top: 1.25rem;
	border-top: 1px solid var(--ink);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ink-2);
}

.bx-notice > * + * {
	margin-top: 0.75rem;
}

.bx-notice__label {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.bx-footer {
	background: var(--ink);
	color: #a9b6c8;
	font-size: 0.95rem;
}

.bx-footer > * {
	margin-block: 0;
}

.bx-footer__strip {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	height: 3px;
}

.bx-footer__strip span {
	background: var(--c);
}

.bx-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
	gap: 2.5rem clamp(2rem, 4vw, 4rem);
	padding-block: clamp(3.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
}

.bx-footer__brand p {
	margin-top: 1.25rem;
	max-width: 22rem;
}

.bx-footer__heading {
	font-family: var(--f-body);
	font-size: 0.875rem;
	font-weight: 600;
	color: #c9d4e2;
}

.bx-footer__col .bx-footer__heading + * {
	margin-top: 1.1rem;
}

.bx-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bx-footer__links li + li {
	margin-top: 0.55rem;
}

.bx-footer a {
	color: #e3e9f1;
	text-decoration: none;
}

.bx-footer a:hover {
	color: var(--white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bx-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding-block: 1.5rem 2rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
	font-size: 0.85rem;
	color: #7f90a8;
}

.bx-footer__legal {
	display: flex;
	gap: 1.5rem;
}

.bx-footer__legal a {
	color: #a9b6c8;
}


/* --------------------------------------------------------------------------
   Basic page template (fallback until inner pages are designed)
   -------------------------------------------------------------------------- */

.bx-page {
	padding-block: var(--section);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.bx-shelf {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 3rem;
	}

	.bx-shelf:not(.bx-shelf--four) > .bx-shelf__item:nth-child(3n + 1) .bx-shelf__image {
		margin-left: 0 !important;
		padding-left: 0;
	}

	.bx-shelf:not(.bx-shelf--four) > .bx-shelf__item:nth-child(3n + 1) .bx-shelf__image::after,
	.bx-shelf--four > .bx-shelf__item:nth-child(odd) .bx-shelf__image::after {
		left: 0;
	}

	.bx-shelf:not(.bx-shelf--four) > .bx-shelf__item:nth-child(3n) .bx-shelf__image {
		margin-right: 0 !important;
		padding-right: 0;
	}

	.bx-shelf--four > .bx-shelf__item:nth-child(odd) .bx-shelf__image {
		margin-left: 0 !important;
		padding-left: 0;
	}

	.bx-shelf--four > .bx-shelf__item:nth-child(even) .bx-shelf__image {
		margin-right: 0 !important;
		padding-right: 0;
	}

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

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

@media (max-width: 960px) {
	.bx-hero__grid,
	.bx-why__grid,
	.bx-howto__head,
	.bx-closing__grid,
	.bx-overview__text,
	.bx-apps__groups {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-hero__title {
		max-width: 16ch;
	}

	/* Bars scale with width; cap the figure so the hero stays near one screen. */
	.bx-hero__grid > .bx-range {
		max-width: 540px;
	}

	.bx-why__image {
		order: 2;
	}

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

	.bx-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 820px) {
	.bx-overview__image img {
		aspect-ratio: 4 / 3;
		object-position: 82% 50%;
	}

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

	.bx-qa__item {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.bx-utility__link {
		display: none;
	}

	.bx-utility__inner {
		justify-content: center;
	}

	.bx-range__note {
		display: none;
	}

	.bx-features li {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-steps li {
		position: relative;
		padding-left: 3.25rem;
	}

	.bx-steps li::before {
		position: absolute;
		left: 0;
		top: 1.25rem;
		margin: 0;
		font-size: 1.75rem;
	}

	/* Composition table becomes stacked records. */
	.bx-composition thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.bx-composition tr {
		display: block;
		padding: 1.1rem 0;
		border-bottom: 1px solid rgb(255 255 255 / 0.14);
	}

	.bx-composition tr:first-child {
		border-top: 1px solid rgb(255 255 255 / 0.28);
	}

	.bx-composition td {
		display: block;
		width: auto;
		padding: 0.15rem 0;
		border: 0;
	}

	.bx-composition td:nth-child(2)::before {
		content: "Per vial · " / "";
		font-weight: 400;
		color: #8fa1b9;
	}
}

@media (max-width: 520px) {
	.bx-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-footer__base {
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	.bx-shelf,
	.bx-shelf--four {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-shelf__item {
		display: grid;
		grid-template-columns: 7.5rem minmax(0, 1fr);
		column-gap: 1rem;
		align-items: end;
	}

	.bx-shelf__image {
		grid-row: span 2;
		margin-inline: 0 !important;
		padding-inline: 0;
	}

	.bx-shelf__image::after {
		left: 0;
	}

	.bx-shelf__name {
		margin-top: 0 !important;
	}

	.bx-shelf__text {
		grid-column: 1 / -1;
	}
}
