/*
Theme Name: Millers Pharmacy
Template: hello-elementor
Description: Child theme of Hello Elementor for Millers Pharmacy. Global tokens, typography and a few behaviors Elementor atomic styles can't express (marquee animation, form skin).
Version: 1.5.0
Text Domain: millers
*/

:root {
	--m-background: #faf7e4;
	--m-foreground: #1c2826;
	--m-primary: #073332;
	--m-primary-foreground: #f7f3ec;
	--m-secondary: #e3ecd1;
	--m-muted: #e6ded1;
	--m-muted-foreground: #4e5c59;
	--m-gold: #f2c063;
	--m-teal: #1f5a55;
	--m-border: #e6ded1;
	--m-shadow-soft: 0 20px 50px -25px #07333259;
	--m-serif: "Fraunces", Georgia, serif;
	--m-sans: "Figtree", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

/* Atomic containers are width:100% + padding; keep padding inside the width */
.e-con, .e-con *, .e-con *::before, .e-con *::after { box-sizing: border-box; }

body {
	background: var(--m-background);
	color: var(--m-foreground);
	font-family: var(--m-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--m-serif);
	font-weight: 500;
	font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0;
	letter-spacing: 0;
	margin: 0;
}

/* <em> inside headings is a color accent only, never italic */
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em { font-style: normal; font-weight: inherit; }

/* Fraunces display axes. Atomic widgets reset with `all: unset`, so this has
   to win over Elementor's base styles. Figtree ignores the unknown axes. */
.elementor * { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0 !important; }

/* v3 design: italic accent words in headings, colored per section */
.v-em-gold em, .v-em-teal em, .v-em-clay em { font-style: italic; }
.elementor .v-em-gold em { color: var(--m-gold); }
.elementor .v-em-teal em { color: var(--m-teal); }
.elementor .v-em-clay em { color: #c9724f; }

/* v3 skincare chips: roman numeral prefix */
.v-chip b { margin-right: 8px; font-family: var(--m-serif); font-weight: 400; color: #c9724f; }

/* v3 icons: uploaded line SVGs inherit the text color of their wrapper */
.v-icon svg, .v-icon-box svg { width: 100%; height: 100%; }
.v-icon-box .v-icon { width: 22px; height: 22px; }
.v-icon svg, .v-icon svg * {
	fill: none !important;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* v3: accent words in page headings are italic — teal on light, gold on dark */
.m-h1 em, .m-h2 em, .m-h3 em { font-style: italic; color: var(--m-teal); }
.m-on-dark em, .m-bg-primary .m-h2 em, .m-bg-primary .m-h3 em { color: var(--m-gold); }

/* v3 page hero: add the "m-hero" class to a page's first section */
.m-hero {
	background-color: var(--m-primary);
	background-image: radial-gradient(120% 90% at 0% 0%, #0d4643 0%, #073332 45%, #04201f 100%);
}
.m-hero .m-h1, .m-hero .m-h2, .m-hero .m-h3 { color: #fffdf5; }
.m-hero em { color: var(--m-gold); }
.m-hero .m-eyebrow { color: var(--m-gold); }
.m-hero .m-lede, .m-hero .m-body, .m-hero .m-small { color: rgba(255, 253, 245, .8); }
.m-hero .m-link, .m-hero a.m-link { color: var(--m-gold); }
.m-hero .m-btn { background-color: #fffdf5; border-color: #fffdf5; color: var(--m-primary); }
.m-hero .m-btn.m-btn-gold { background-color: var(--m-gold); border-color: var(--m-gold); }
.m-hero .m-btn.m-btn-outline { background-color: transparent; border-color: rgba(255, 253, 245, .45); color: #fffdf5; }
.m-hero .m-btn.m-btn-outline:hover { background-color: rgba(255, 253, 245, .08); }
.m-hero .m-img { outline: 1.5px solid rgba(242, 192, 99, .6); outline-offset: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }

a { color: inherit; }

/* Sticky global header (Elementor Pro theme-builder header) */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

/* Header items keep their natural width instead of shrinking and wrapping */
.elementor-location-header header a,
.elementor-location-header header span { white-space: nowrap; }
.elementor-location-header header > div > * { flex-shrink: 0; }

/* Trust bar icons (Lucide, ISC license), tinted with the text color via mask */
[class*="m-trust-"]::before {
	content: "";
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: var(--m-icon) center / contain no-repeat;
	mask: var(--m-icon) center / contain no-repeat;
}
.m-trust-shield { --m-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.m-trust-award { --m-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526'/%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3C/svg%3E"); }
.m-trust-badge { --m-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.m-trust-star { --m-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z'/%3E%3C/svg%3E"); }
.m-trust-monitor { --m-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8'/%3E%3Cpath d='M10 19v-3.96 3.15'/%3E%3Cpath d='M7 19h5'/%3E%3Crect width='6' height='10' x='16' y='12' rx='2'/%3E%3C/svg%3E"); }

/* Trust bar phone line: icon centered on the text */
[data-id="1fbaa85b"] { align-items: center !important; }
[data-id="1fbaa85b"] .v-icon { display: flex; align-self: center; }
[data-id="1fbaa85b"] > span { display: inline-flex; align-items: center; line-height: 1; }

/* Frosted header bar, as on the original site */
.elementor-location-header header { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Mobile menu (below 1025px): a burger in the header bar (assets/menu.js) opens the
   "Mobile Menu" panel built in the header template; it pushes the trust bar down. */
.m-menu-toggle { display: none; }
.elementor-location-header .m-mobile-menu { display: none; }
@media (max-width: 1024px) {
	.m-menu-toggle {
		display: inline-flex;
		margin-inline-start: auto;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--m-primary);
		cursor: pointer;
	}
	.m-menu-toggle:hover, .m-menu-toggle:focus { background: transparent; color: var(--m-primary); }
	.m-menu-toggle svg { width: 24px; height: 24px; }
	.m-menu-toggle .m-icon-close,
	.m-menu-open .m-menu-toggle .m-icon-open { display: none; }
	.m-menu-open .m-menu-toggle .m-icon-close { display: block; }
	.m-menu-open .elementor-location-header .m-mobile-menu { display: flex; }
}

/* Infinite marquee strip on the home page */
.m-marquee { overflow: hidden; }
.m-marquee-track {
	display: flex;
	width: max-content;
	animation: m-marquee 40s linear infinite;
}
@keyframes m-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.m-marquee-track { animation: none; }
}

/* Lists typed into an Elementor paragraph: browsers close the <p> before a
   <ul>/<ol>, so the list ends up as the paragraph's next sibling. */

/* "Find your state" grid on Coverage & Delivery (row-wise, like the original) */
.m-state-list:empty, .m-state-list + ul + p:empty,
.m-steps-list:empty, .m-steps-list + ol + p:empty { display: none; }
.m-state-list ul, .m-state-list + ul {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 8px;
	font-family: var(--m-sans);
	color: var(--m-primary-foreground);
}
.m-state-list li, .m-state-list + ul li { opacity: .9; }
@media (max-width: 1024px) { .m-state-list ul, .m-state-list + ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .m-state-list ul, .m-state-list + ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Numbered technique steps on Injection Instructions */
.m-steps-list ol, .m-steps-list + ol {
	margin: 0;
	padding-left: 1.5rem;
	max-width: 48rem;
	font-family: var(--m-sans);
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--m-primary-foreground);
}
.m-steps-list li, .m-steps-list + ol li { margin-bottom: 1rem; padding-left: .5rem; }
.m-steps-list li::marker, .m-steps-list + ol li::marker { color: var(--m-gold); font-family: var(--m-serif); }

/* Accordion summary cursor + spacing for the compounding FAQ */
.e-accordion-item summary { cursor: pointer; list-style: none; }
.e-accordion-item summary::-webkit-details-marker { display: none; }

/* Elementor Pro form skin (home contact + peptide waitlist). !important is
   needed to beat the kit's per-widget defaults (green accent button, small text). */
.elementor-widget-form .elementor-form-fields-wrapper { row-gap: 16px; margin: 0; }
.elementor-widget-form .elementor-field-group { margin-bottom: 0 !important; padding: 0 !important; }
/* Half-width fields side by side keep a 12px gutter. */
.elementor-widget-form .elementor-field-group.elementor-col-50:nth-child(odd) { padding-right: 6px !important; }
.elementor-widget-form .elementor-field-group.elementor-col-50:nth-child(even) { padding-left: 6px !important; }
@media (max-width: 767px) {
	.elementor-widget-form .elementor-field-group.elementor-col-50 { padding: 0 !important; }
}
.elementor-widget-form .elementor-field-group .elementor-field {
	border: 1px solid rgba(7, 51, 50, .25) !important;
	background: #fff !important;
	color: var(--m-primary) !important;
	border-radius: .75rem !important;
	padding: .75rem 1rem !important;
	font-family: var(--m-sans) !important;
	font-size: 1rem !important;
	line-height: 1.5 !important;
	min-height: 0;
}
.elementor-widget-form .elementor-field::placeholder { color: var(--m-muted-foreground); opacity: 1; }
.elementor-widget-form .elementor-field:focus { outline: none; box-shadow: 0 0 0 2px rgba(7, 51, 50, .4); }
.elementor-widget-form .elementor-field-type-submit { margin-top: 4px; }
.elementor-widget-form .elementor-button {
	background: var(--m-primary) !important;
	color: var(--m-primary-foreground) !important;
	border-radius: 999px !important;
	font-family: var(--m-sans) !important;
	font-size: .875rem !important;
	font-weight: 600 !important;
	line-height: 1.25rem !important;
	padding: .875rem 1.5rem !important;
	box-shadow: var(--m-shadow-soft);
}
.elementor-widget-form .elementor-button:hover { background: var(--m-teal) !important; }
.elementor-widget-form .elementor-field-type-acceptance label { color: var(--m-muted-foreground); font-family: var(--m-sans); font-size: .875rem; font-weight: 600; line-height: 1.25rem; }

/* Peptide waitlist uses a larger, non-full-width button on the original */
.elementor-element-25fe3e3 .elementor-button {
	font-size: 1rem !important;
	line-height: 1.65 !important;
	padding: .75rem 1.5rem !important;
}

/* Patient Counseling form (inert until a HIPAA-safe delivery method exists) */
.m-counsel { font-family: var(--m-sans); color: var(--m-primary); }
.m-counsel__notice {
	margin-bottom: 32px;
	padding: 18px 22px;
	border-radius: 14px;
	background: #fbeceb;
	border-left: 3px solid #8c1d18;
	font-size: .875rem;
	line-height: 1.65;
	color: #8c1d18;
}
.m-counsel__notice p { margin: 0 0 8px; }
.m-counsel__notice a { display: inline-block; padding: 8px 0; color: #8c1d18; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.m-counsel__form { display: grid; gap: 24px; }
.m-counsel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 639px) { .m-counsel__grid { grid-template-columns: 1fr; } }
.m-counsel__field { display: grid; gap: 8px; }
.m-counsel label, .m-counsel legend { font-size: .875rem; font-weight: 500; line-height: 1.25rem; color: var(--m-primary); }
.m-counsel__notice p:first-child { font-weight: 600; }
.m-counsel input[type="text"],
.m-counsel input[type="email"],
.m-counsel input[type="tel"],
.m-counsel input[type="date"],
.m-counsel textarea {
	width: 100%;
	box-sizing: border-box;
	height: 48px;
	padding: 4px 12px;
	border: 1px solid rgba(7, 51, 50, .2);
	border-radius: 6px;
	background: #fff;
	color: var(--m-primary);
	font: inherit;
	font-size: 1rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.m-counsel textarea { height: auto; min-height: 12rem; padding: 8px 12px; resize: vertical; }
.m-counsel input::placeholder, .m-counsel textarea::placeholder { color: var(--m-muted-foreground); }
.m-counsel input:focus, .m-counsel textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--m-teal); }
.m-counsel__choices { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; }
.m-counsel__choices legend { width: 100%; margin-bottom: 12px; }
.m-counsel__choices label { display: flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; }
.m-counsel__choices input { width: 16px; height: 16px; margin: 0; accent-color: var(--m-primary); }
.m-counsel__help { margin: 0; font-size: .875rem; line-height: 1.6; color: rgba(7, 51, 50, .8); }
.m-counsel__submit { display: grid; gap: 12px; }
.m-counsel__submit button {
	height: 48px;
	border: 0;
	border-radius: 10px;
	background: var(--m-primary);
	color: var(--m-primary-foreground);
	font: inherit;
	font-weight: 500;
	opacity: .5;
	cursor: not-allowed;
	box-shadow: var(--m-shadow-soft);
}
.m-counsel__submit p { margin: 0; text-align: center; font-size: .875rem; line-height: 1.65; color: #8c1d18; }

/* Simple form skin for the HTML forms (contact, waitlist, counseling) */
.m-form { display: grid; gap: 1rem; }
.m-form input[type="text"],
.m-form input[type="email"],
.m-form input[type="tel"],
.m-form input[type="date"],
.m-form textarea {
	width: 100%;
	border: 1px solid rgba(7, 51, 50, .25);
	background: #fff;
	color: var(--m-primary);
	border-radius: .75rem;
	padding: .75rem 1rem;
	font: inherit;
}
.m-form input:focus,
.m-form textarea:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(7, 51, 50, .4);
}
.m-form label { font-size: .875rem; color: var(--m-primary); font-weight: 500; }
.m-form .m-check { display: flex; gap: .75rem; font-weight: 400; color: var(--m-muted-foreground); }
.m-form button {
	background: var(--m-primary);
	color: var(--m-primary-foreground);
	border: 0;
	border-radius: 999px;
	padding: .875rem 1.5rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--m-shadow-soft);
}
.m-form button:hover { background: var(--m-teal); }
.m-form button:disabled { opacity: .5; cursor: not-allowed; }

/* Brochure card on Home, under the StandBy / Peptide cards (inc/brochure.php).
   It sits in their grid spanning both columns; 28px radius, 44px padding (28px mobile). */
.elementor-widget-shortcode:has(.m-brochure) { grid-column: 1 / -1; width: 100%; min-width: 0; }
.m-brochure {
	padding: 44px 64px 44px 56px;
	border-radius: 28px;
	background: #d3e2b6;
	background-image: radial-gradient(90% 120% at 100% 0%, #e3ecd1 0%, rgba(227, 236, 209, 0) 60%);
	color: var(--m-primary);
	font-family: var(--m-sans);
	overflow: hidden;
}
.m-brochure__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
	align-items: center;
	gap: 64px;
}
.m-brochure__art { display: block; position: relative; margin: 12px 20px 20px 0; transform: rotate(3deg); transition: transform .3s ease; }
.m-brochure__art::before {
	content: "";
	position: absolute;
	inset: 14px -14px -14px 14px;
	border-radius: 6px;
	background: var(--m-gold);
	transform: rotate(-6deg);
	z-index: 0;
}
.m-brochure__art:hover { transform: rotate(1deg) translateY(-4px); }
.m-brochure__cover {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 30px 60px -28px rgba(7, 51, 50, .55);
}
.m-brochure__eyebrow {
	margin: 0 0 14px;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--m-teal);
}
.m-brochure__title {
	margin: 0;
	font-size: clamp(2.3rem, 4.3vw, 3.75rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.005em;
	color: var(--m-primary);
}
/* Crisper, wider Fraunces cut than the site's soft display headings (beats the .elementor * rule) */
.elementor .m-brochure__title, .elementor .m-brochure__title em { font-variation-settings: "opsz" 48, "SOFT" 0, "WONK" 0 !important; }
.m-brochure__title em { display: block; font-style: italic; color: var(--m-teal); }
.m-brochure__text { margin: 20px 0 0; max-width: 34rem; font-size: 1.0625rem; line-height: 1.65; color: #2d4a45; }
.m-brochure__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.m-brochure__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 26px;
	border: 1.5px solid var(--m-primary);
	border-radius: 999px;
	font-size: .95rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, color .15s, transform .15s;
}
.m-brochure .m-brochure__btn--primary { background: var(--m-primary); color: var(--m-primary-foreground); box-shadow: var(--m-shadow-soft); }
.m-brochure .m-brochure__btn--primary:hover { background: var(--m-teal); border-color: var(--m-teal); color: var(--m-primary-foreground); transform: translateY(-1px); }
.m-brochure .m-brochure__btn--ghost { background: transparent; color: var(--m-primary); }
.m-brochure .m-brochure__btn--ghost:hover { background: rgba(7, 51, 50, .08); color: var(--m-primary); }
@media (max-width: 767px) {
	.m-brochure { padding: 28px; }
	.m-brochure__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
	.m-brochure__art { order: -1; width: 58%; max-width: 220px; margin: 16px auto 8px; }
	.m-brochure__text { margin-inline: auto; }
	.m-brochure__actions { justify-content: center; }
	.m-brochure__btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.m-brochure__art, .m-brochure__btn { transition: none; }
}

/* Brochure viewer on /brochure/ ([millers_brochure_viewer], assets/brochure.js) */
.elementor-widget-shortcode:has(.mb-viewer) { width: 100%; padding-inline: 24px; box-sizing: border-box; align-self: stretch; }
.mb-viewer {
	max-width: 1264px;
	margin-inline: auto;
	scroll-margin-top: 150px;
	/* Resolved on .mb-page, so cqw is the viewer's width (stage padding + arrows ≈ 220px). */
	/* Stage + toolbar fit under the sticky header (~300px of chrome) on a laptop screen. */
	--mb-page-h: clamp(380px, calc(100vh - 300px), calc((100cqw - 220px) / 2 / 0.7074));
	container-type: inline-size;
	width: 100%;
	font-family: var(--m-sans);
	color: var(--m-primary);
	outline: none;
}
.mb-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 48px 24px 40px;
	border-radius: 28px 28px 0 0;
	background-color: var(--m-primary);
	background-image: radial-gradient(80% 90% at 50% 0%, #0d4643 0%, #073332 55%, #04201f 100%);
	overflow: hidden;
}
/* The book: two page slots; a single cover / back page slides to the middle */
.mb-spread {
	position: relative;
	display: flex;
	justify-content: center;
	perspective: 4200px;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: transform .85s cubic-bezier(.45, .05, .35, 1);
}
.mb-spread.is-cover { transform: translateX(-25%); }
.mb-spread.is-back { transform: translateX(25%); }
.mb-page {
	position: relative;
	margin: 0;
	height: var(--mb-page-h);
	aspect-ratio: var(--mb-ratio);
	background: #f3efdf;
	overflow: hidden;
	box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .6);
}
.mb-page.is-empty { visibility: hidden; }
.mb-page--left { border-radius: 4px 0 0 4px; }
.mb-page--right { border-radius: 0 4px 4px 0; }
.mb-page img, .mb-face img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Gutter shading at the spine, on the pages and on both sides of a turning leaf */
.mb-page--left::after, .mb-page--right::after, .mb-face::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 40px;
	pointer-events: none;
	z-index: 1;
}
.mb-page--left::after, .mb-face--back::before { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0)); }
.mb-page--right::after, .mb-face--front::before { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)); }
.mb-spread.is-cover .mb-page--right::after, .mb-spread.is-back .mb-page--left::after { width: 10px; opacity: .6; }

/* The turning page: hinged on its left edge (the spine), 3D, two faces */
.mb-leaf {
	position: absolute;
	z-index: 5;
	transform-origin: left center;
	transform-style: preserve-3d;
	will-change: transform;
	pointer-events: none;
}
.mb-face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #f3efdf;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
.mb-face--front { border-radius: 0 4px 4px 0; }
.mb-face--back { transform: rotateY(180deg); border-radius: 4px 0 0 4px; }
.mb-face.is-empty { background: transparent; }
.mb-face.is-empty::before { content: none; }
.mb-shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12) 45%, rgba(255, 255, 255, .08));
}
.mb-face--back .mb-shade { background: linear-gradient(270deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12) 45%, rgba(255, 255, 255, .08)); }
.mb-face.is-empty .mb-shade { display: none; }

.mb-viewer .mb-nav {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1.5px solid rgba(255, 253, 245, .35);
	border-radius: 50%;
	background: rgba(255, 253, 245, .06);
	color: #fffdf5;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.mb-viewer .mb-nav:hover, .mb-viewer .mb-nav:focus-visible { background: var(--m-gold); border-color: var(--m-gold); color: var(--m-primary); }
.mb-viewer .mb-nav:disabled { opacity: .25; cursor: default; background: transparent; border-color: rgba(255, 253, 245, .35); color: #fffdf5; }
.mb-nav svg, .mb-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mb-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 16px 24px;
	border-radius: 0 0 28px 28px;
	background: #04201f;
	color: rgba(255, 253, 245, .8);
	font-size: .9rem;
}
.mb-count b { color: var(--m-gold); font-weight: 600; }
.mb-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.mb-viewer .mb-tool {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border: 1.5px solid rgba(255, 253, 245, .35);
	border-radius: 999px;
	background: transparent;
	color: #fffdf5;
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.mb-viewer .mb-tool:hover, .mb-viewer .mb-tool:focus-visible { background: rgba(255, 253, 245, .1); color: #fffdf5; }
.mb-viewer .mb-tool--solid { background: var(--m-gold); border-color: var(--m-gold); color: var(--m-primary); }
.mb-viewer .mb-tool--solid:hover, .mb-viewer .mb-tool--solid:focus-visible { background: #f6cf85; border-color: #f6cf85; color: var(--m-primary); }
.mb-tool svg { width: 18px; height: 18px; }
.mb-tool[hidden] { display: none; }

/* Full screen: the stage fills the screen */
.mb-viewer.is-fullscreen { --mb-page-h: min(calc(100vh - 170px), calc((100cqw - 220px) / 2 / 0.7074)); display: flex; flex-direction: column; background: #04201f; }
.mb-viewer.is-fullscreen .mb-stage { flex: 1; border-radius: 0; }
.mb-viewer.is-fullscreen .mb-bar { border-radius: 0; }

@media (max-width: 799px) {
	.mb-viewer { --mb-page-h: min(calc(100vh - 290px), calc((100cqw - 32px) / 0.7074)); }
	.mb-viewer.is-fullscreen { --mb-page-h: min(calc(100vh - 170px), calc((100cqw - 32px) / 0.7074)); }
	.mb-stage { padding: 24px 16px 76px; border-radius: 20px 20px 0 0; }
	/* One page at a time: it turns away to the left. */
	.mb-page--left { display: none; }
	.mb-spread.is-cover, .mb-spread.is-back { transform: none; }
	.mb-page--right { border-radius: 4px; }
	.mb-page--right::after { width: 10px; opacity: .6; }
	.mb-viewer .mb-nav { position: absolute; bottom: 16px; width: 44px; height: 44px; }
	.mb-nav--prev { left: calc(50% - 56px); }
	.mb-nav--next { right: calc(50% - 56px); }
	.mb-bar { justify-content: center; text-align: center; padding: 14px 16px; border-radius: 0 0 20px 20px; }
	.mb-tool span { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
	.mb-spread { transition: none; }
}

/* Connect page contact section is light: accent words teal instead of gold, icons teal */
[data-id="2d2cb1c7"] em { color: var(--m-teal) !important; }
[data-id="49088b9b"] svg, [data-id="49088b9b"] svg * { color: var(--m-teal); stroke: var(--m-teal); }

/* Native <details> FAQ on the compounding page */
.m-faq details { border-bottom: 1px solid var(--m-border); padding: 1.25rem 0; }
.m-faq summary {
	cursor: pointer;
	font-family: var(--m-serif);
	font-size: 1.25rem;
	color: var(--m-primary);
	list-style: none;
}
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq summary::after { content: "+"; float: right; }
.m-faq details[open] summary::after { content: "–"; }
.m-faq details p { margin: .75rem 0 0; color: var(--m-muted-foreground); }
