/* Most selectors are scoped under .optithera-root (added only on the /optithera/ page via
   the_content filter in alexdesigns-optithera.php). The .optithera-site-header/-footer rules
   below are the exception: those elements live outside the_content, in the two standalone
   template parts (parts/optithera-header.html, parts/optithera-footer.html) that only
   templates/page-optithera.html ever references, so they are inherently scoped to this one
   page by template resolution alone, with nothing to nest them under.

   OptiThera brand palette (2026-10-11 redesign): a dedicated set of tokens for this one
   fictional-company page, scoped entirely under .optithera-root / .optithera-site-header /
   .optithera-site-footer. Deliberately NOT drawn from theme.json's AlexDesigns palette — this
   page represents a different, fictional brand (a pharmaceutical marketing site), not an
   AlexDesigns surface, so it earns its own identity. Sampled from the OptiThera case-study
   reference: deep forest green, warm off-white, restrained electric blue, charcoal text, with
   orange-red reserved for the safety panel only (never for general accents). Core
   wp-block-media-text and wp-block-image CSS (wp-block-library, always enqueued on the front
   end) provides the base stacking/layout behavior; everything below only refines spacing,
   color and typography. */

.optithera-root,
.optithera-site-header,
.optithera-site-footer {
	--ot-green-deep: #14352b;
	--ot-green-deep-ink: #0e2620;
	--ot-offwhite: #f6f5f1;
	--ot-paper: #fbfaf7;
	--ot-sage: #e7ece6;
	--ot-blue: #1645ff;
	--ot-blue-hover: #0f33cc;
	--ot-charcoal: #1b1f1c;
	--ot-slate: #4b5650;
	--ot-muted: #6b7570;
	--ot-line: #e3dfd4;
	--ot-warn: #c8521f;
}

.optithera-site-header {
	display: flex;
	align-items: center;
	background: var(--ot-paper);
}
.optithera-site-header__inner {
	align-items: baseline;
	column-gap: 0.85rem;
}
.optithera-site-header__mark {
	margin: 0;
	line-height: 0;
}
.optithera-site-header__mark a {
	display: inline-flex;
	text-decoration: none;
}
.optithera-site-header__mark img {
	display: block;
	height: 25px;
	width: auto;
}
.optithera-site-header__eyebrow {
	margin: 0;
	padding-left: 0.85rem;
	border-left: 1px solid var(--ot-line);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--ot-muted);
}

/* The hero's own eyebrow line now lives in the header lockup instead; hidden here rather than
   removed from the post content, so the marketer's saved copy in the editor is untouched. */
.optithera-root .optithera-eyebrow-wrap {
	display: none;
}

.optithera-site-footer {
	background: var(--ot-green-deep);
	text-align: center;
	padding: 2.5rem 1.25rem;
}
.optithera-site-footer__mark {
	font-family: var(--wp--preset--font-family--display, inherit);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: -0.01em;
	color: var(--ot-offwhite);
	margin: 0 0 0.6rem;
}
.optithera-site-footer__line {
	font-size: 0.82rem;
	color: #aab8ae; /* muted sage-tinted, AA on deep green */
	margin: 0;
}

.optithera-root {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 1.25rem 5rem;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ot-slate);
	background: var(--ot-offwhite);
}

/* ---- Eyebrow ---- */
.optithera-root .optithera-eyebrow-wrap {
	max-width: 46rem;
	margin: 0 auto;
	padding-top: 3rem;
}

.optithera-root .optithera-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ot-green-deep);
	margin-bottom: 0;
}

/* ---- Hero (media-text, image on the right, imageFill) ---- */
.optithera-root .optithera-hero {
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	min-height: 460px;
}
.optithera-root .optithera-hero .wp-block-media-text__media {
	min-height: 460px;
}
.optithera-root .optithera-hero .wp-block-media-text__media img {
	object-fit: cover;
	object-position: 75% center; /* source photo's subject sits in the right third */
	height: 100%;
	width: 100%;
}
.optithera-root .optithera-hero .wp-block-media-text__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2.75rem 3.25rem;
	background: var(--ot-paper);
}

.optithera-root h1 {
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: clamp(2.1rem, 4.4vw, 2.9rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--ot-charcoal);
	margin-bottom: 1.25rem;
}

.optithera-root .optithera-lede {
	font-size: 1.2rem;
	line-height: 1.55;
	color: var(--ot-slate);
	margin-bottom: 1.85rem;
}

.optithera-root .wp-block-buttons {
	margin-top: 0.5rem;
}

.optithera-root .wp-block-button__link {
	background: var(--ot-blue);
	color: #fff;
	border-radius: 8px;
	padding: 0.85rem 1.85rem;
	font-weight: 600;
	font-size: 1rem;
	transition: background-color 0.15s ease;
}
.optithera-root .wp-block-button__link:hover,
.optithera-root .wp-block-button__link:focus-visible {
	background: var(--ot-blue-hover);
}
.optithera-root .wp-block-button__link:focus-visible {
	outline: 2px solid var(--ot-blue);
	outline-offset: 3px;
}

/* ---- Media-text body sections (Understanding Example Condition, Talking to your doctor) ---- */
.optithera-root .wp-block-media-text:not(.optithera-hero) {
	margin-top: 3.5rem;
	margin-bottom: 3.5rem;
	border-top: 1px solid var(--ot-line);
	padding-top: 3.5rem;
}
.optithera-root .wp-block-media-text:not(.optithera-hero) .wp-block-media-text__media img {
	border-radius: 4px;
	object-fit: cover;
	width: 100%;
	height: 100%;
	min-height: 280px;
}
.optithera-root .wp-block-media-text:not(.optithera-hero) .wp-block-media-text__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1.5rem 2.75rem;
}
.optithera-root .wp-block-media-text h2 {
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 1.4rem;
	color: var(--ot-charcoal);
	margin-bottom: 0.9rem;
}

/* ---- Text-only sections (About Lumetria) ---- */
.optithera-root .optithera-section {
	max-width: 42rem;
	margin: 3.5rem auto;
	padding-top: 3.5rem;
	border-top: 1px solid var(--ot-line);
}
.optithera-root .optithera-section h2 {
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 1.4rem;
	color: var(--ot-charcoal);
	margin-bottom: 0.9rem;
}

.optithera-root p {
	margin-bottom: 1.1rem;
}
.optithera-root p:last-child {
	margin-bottom: 0;
}

/* ---- Safety panel: visually distinct, but calm, not alarming ---- */
.optithera-root .optithera-safety-panel {
	max-width: 42rem;
	margin: 1.5rem auto 0;
	padding: 1.6rem 1.85rem;
	background: var(--ot-sage);
	border: 1px solid var(--ot-line);
	border-radius: 4px;
}

.optithera-root .optithera-safety-panel h3 {
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 1rem;
	font-weight: 700;
	color: var(--ot-charcoal);
	margin-bottom: 0.6rem;
}

.optithera-root .optithera-safety-panel p {
	font-size: 0.95rem;
	color: var(--ot-slate);
	margin-bottom: 0;
}

/* ---- Lifestyle band: restrained, full-width, height-capped, no overlaid text ---- */
.optithera-root .optithera-lifestyle-band {
	margin: 3.5rem 0 2.5rem;
}
.optithera-root .optithera-lifestyle-band img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 4px;
}

/* ---- Fictional-demo disclosure: present, legible, not dominant ---- */
.optithera-root .optithera-disclosure {
	max-width: 42rem;
	margin: 2.5rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ot-line);
	font-size: 0.82rem;
	color: var(--ot-slate); /* --ot-muted failed 4.5:1 on the page background (axe, 2026-11-08) */
	line-height: 1.5;
}

@media (max-width: 749px) {
	.optithera-root .optithera-hero,
	.optithera-root .optithera-hero .wp-block-media-text__media {
		min-height: 280px;
	}
	.optithera-root .optithera-hero .wp-block-media-text__content {
		padding: 2rem 1.5rem;
	}
	.optithera-root .wp-block-media-text:not(.optithera-hero) .wp-block-media-text__content {
		padding: 1.5rem 0.25rem;
	}
	.optithera-root .optithera-lifestyle-band img {
		max-height: 260px;
	}
}

@media (max-width: 600px) {
	.optithera-root {
		padding: 0 1rem 3rem;
	}
	.optithera-root .optithera-safety-panel {
		padding: 1.25rem 1.25rem;
	}
	.optithera-site-footer {
		padding: 2rem 1.25rem;
	}
	.optithera-site-header__eyebrow {
		display: none;
	}
}


/* AlexDesigns frame around the fictional OptiThera demo (2026-11-08): says what the page is, who made it
   and what Alex's role was. Neutral colors on purpose so it reads as AlexDesigns, not as the fictional brand. */
.optithera-frame { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #1b1f1c; }
.optithera-frame--top { background: #0e2620; color: #f6f5f1; padding: 0.6rem 1.25rem; font-size: 0.9rem; line-height: 1.45; }
.optithera-frame--top p { margin: 0 auto; max-width: 1240px; }
.optithera-frame--top a { color: #ffffff; text-decoration: underline; text-underline-offset: 2px; }
.optithera-frame--about { background: #f1f2f4; border-top: 1px solid #d6d9de; padding: 3rem 1.25rem; }
.optithera-frame__inner { max-width: 760px; margin: 0 auto; }
.optithera-frame--about h2 { margin: 0 0 1rem; font-size: 1.5rem; line-height: 1.25; }
.optithera-frame--about p { margin: 0 0 0.9rem; font-size: 1rem; line-height: 1.6; }
.optithera-frame--about a { color: #0f33cc; text-underline-offset: 2px; }
.optithera-frame__fine { font-size: 0.875rem !important; color: #3a4048; }
