/*
 * Public pages: the long-form and utility pages, in the home page's look
 * (direction "Apothecary"; owner 2026-12-03: "alot of the other back pages
 * dont carry the same premium feel of the home page", then "Yes, build it"
 * on the before-and-after mock).
 *
 * Loads last in the public chain (after program.css). Styling only: the words
 * on these pages live in the database (the legal pages' text is
 * owner-approved) and nothing here changes them.
 *
 * 1. Long-form pages (.pwp-page: page.html, page-faq.html, page-plan.html,
 *    404.html): about, medical team, contact, the guides, supported states,
 *    the legal pages, FAQ, plan preview, 404. Not the account and checkout
 *    pages (the account redesign owns those) and not a campaign lander that
 *    sits in page.html (its own hero and sections).
 * 2. FAQ rows.
 * 3. Plan preview: the chooser and the card.
 * 4. The notify form on Supported States.
 * 5. Peptides list and How it works: page hero, bands, cards, steps.
 * 6. Quiz page: the light serif and square corners.
 * 7. Sign-in page and the reset-password form (logged out).
 */

/* 1. Long-form pages ----------------------------------------------------- */

body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) {
	padding-top: clamp(3rem, 7vw, 6.5rem);
	padding-bottom: clamp(4.5rem, 9vw, 8rem);
	background: var(--pwp-ap-paper);
}

/* The title: the light serif over a short brass rule. */
body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) > :is(.wp-block-post-title, .pwp-page__title),
.pwp-page-hero .pwp-page__title {
	margin-top: 0;
	margin-bottom: 2rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 320;
	font-size: clamp(2.6rem, 1.7rem + 3vw, 4.4rem) !important; /* page.html keeps its 4xl class (an !important preset) for the account pages */
	line-height: 1.02;
	letter-spacing: -0.024em;
	color: var(--pwp-ap-night);
	text-wrap: balance;
}

body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) > :is(.wp-block-post-title, .pwp-page__title)::after,
.pwp-page-hero .pwp-page__title::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 2px;
	margin-top: 1.6rem;
	background: var(--pwp-ap-brass);
}

/* A page's opening line, under the title. */
.pwp-page__lede {
	font-size: 1.1875rem;
	line-height: 1.6;
	color: var(--pwp-ap-ash);
	text-wrap: pretty;
}

/* Section headings in the page's text (not a component's own title, such as the plan card's). */
body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) .entry-content h2:not([class*="pwp-"]) {
	margin-top: 3.5rem;
	margin-bottom: 1.1rem;
	padding-top: 1.9rem;
	border-top: 1px solid var(--pwp-ap-bone-2);
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 340;
	font-size: clamp(1.8rem, 1.35rem + 1.4vw, 2.5rem);
	line-height: 1.08;
	letter-spacing: -0.016em;
	color: var(--pwp-ap-night);
	text-wrap: balance;
}

/* A heading that opens the page's text reads as its subtitle (after the
   rule above, which it overrides at equal specificity). */
body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) .entry-content > h2:first-child {
	margin-top: 0;
	margin-bottom: 2.25rem;
	padding: 0;
	border: 0;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-style: italic;
	font-weight: 340;
	font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--pwp-ap-ash);
}

body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) .entry-content :is(h3, h4) {
	margin-top: 2.4rem;
	margin-bottom: 0.7rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--pwp-ap-night);
}

/* Body text; the plan card keeps its own tighter sizes. */
body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) .entry-content :is(p, li):not(.pwp-plan *) {
	font-size: 1.0625rem;
	line-height: 1.72;
	color: #26302A;
}

body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) .entry-content strong {
	font-weight: 600;
	color: var(--pwp-ap-night);
}

body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) .entry-content small {
	font-size: 0.8125rem;
	color: var(--pwp-ap-ash);
}

/* Lists: a short brass dash instead of a dot. */
body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) .entry-content ul:not([class*="pwp-"]),
.pwp-page-band ul,
.pwp-hiw-page .pwp-section ul:not([class*="pwp-"]) {
	padding-left: 0;
	list-style: none;
}

body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) .entry-content ul:not([class*="pwp-"]) > li,
.pwp-page-band ul > li,
.pwp-hiw-page .pwp-section ul:not([class*="pwp-"]) > li {
	position: relative;
	margin: 0.55rem 0;
	padding-left: 1.4rem;
}

body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) .entry-content ul:not([class*="pwp-"]) > li::before,
.pwp-page-band ul > li::before,
.pwp-hiw-page .pwp-section ul:not([class*="pwp-"]) > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.86em;
	width: 0.62rem;
	height: 1px;
	background: var(--pwp-ap-brass-deep);
}

/* Links in the text: forest, with a thin underline. */
body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) .entry-content a:not(.wp-block-button__link),
.pwp-page-band a:not(.wp-block-button__link),
.pwp-hiw-page .pwp-hiw-step__body a {
	color: var(--pwp-ap-forest);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
	transition: text-decoration-color 0.2s var(--pwp-ease);
}

body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(:has(.pwp-lp-campaign)) .entry-content a:not(.wp-block-button__link):hover,
.pwp-page-band a:not(.wp-block-button__link):hover,
.pwp-hiw-page .pwp-hiw-step__body a:hover {
	text-decoration-color: currentColor;
}

/* The 404 page's ways out: one row each. */
.pwp-page__links {
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--pwp-ap-bone-2);
}

.pwp-page__links li {
	margin: 0;
	border-top: 1px solid var(--pwp-ap-bone-2);
}

.pwp-page__links a {
	display: flex;
	align-items: center;
	min-height: 3.75rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 360;
	font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem);
	letter-spacing: -0.01em;
	color: var(--pwp-ap-night);
	text-decoration: none;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s var(--pwp-ease);
}

.pwp-page__links a:hover {
	color: var(--pwp-ap-forest);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.pwp-page__links a:focus-visible {
	outline: 2px solid var(--pwp-ap-forest);
	outline-offset: 2px;
}

/* The named clinician's block on About: square, on paper. */
body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page .pwp-provider {
	border-radius: 0;
	border-color: var(--pwp-ap-bone-2);
	border-top: 2px solid var(--pwp-ap-brass);
	background: #FFFDF9;
}

/* Wide screens: the title on the left (it stays in view), the text on the right. */
@media (min-width: 1024px) {
	body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(.pwp-plan-page):not(:has(.pwp-lp-campaign)) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 44rem);
		column-gap: clamp(3rem, 7vw, 8rem);
		align-items: start;
		padding-inline: max(var(--pwp-gutter), calc((100% - 1200px) / 2));
	}

	body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(.pwp-plan-page):not(:has(.pwp-lp-campaign)) > * {
		max-width: none;
		margin-left: 0 !important; /* beats the constrained layout's auto !important */
		margin-right: 0 !important;
	}

	body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(.pwp-plan-page):not(:has(.pwp-lp-campaign)) > :is(.wp-block-post-title, .pwp-page__title) {
		position: sticky;
		top: 7rem;
	}

	body:not(.woocommerce-account, .woocommerce-checkout, .woocommerce-cart) .pwp-page:not(.pwp-plan-page):not(:has(.pwp-lp-campaign)) > :is(.entry-content, .pwp-page__body) {
		margin-top: 0.5rem;
		padding-inline: 0;
	}
}

/* 2. FAQ rows ------------------------------------------------------------- */

/* Each "Question? Answer." paragraph reads as a row under a thin rule. */
.pwp-page.pwp-faq-page .entry-content > p:has(> strong:first-child) {
	margin-top: 0;
	margin-bottom: 0;
	padding: 1.4rem 0 1.5rem;
	border-top: 1px solid var(--pwp-ap-bone-2);
}

.pwp-page.pwp-faq-page .entry-content > p > strong:first-child {
	display: block;
	margin-bottom: 0.45rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 400;
	font-size: 1.32rem;
	line-height: 1.25;
	letter-spacing: -0.008em;
	color: var(--pwp-ap-night);
}

/* One column of questions at every width (it was two from 782px). */
@media (min-width: 782px) {
	.pwp-page.pwp-faq-page {
		--wp--style--global--content-size: 44rem;
	}

	.pwp-page.pwp-faq-page .wp-block-post-content {
		column-count: 1;
	}
}

/* 3. Plan preview ---------------------------------------------------------- */

.pwp-plan-page .pwp-plan {
	border: 1px solid var(--pwp-ap-bone-2);
	border-top: 2px solid var(--pwp-ap-brass);
	border-radius: 0;
	background: #FFFDF9;
}

.pwp-plan-page .pwp-plan :is(.pwp-plan__billing, .pwp-plan__status) {
	border-radius: 0;
}

/* The line over the title gets its own row; then the title and the status. */
.pwp-plan-page .pwp-plan__kicker {
	flex-basis: 100%;
	margin: 0;
	color: var(--pwp-ap-ash);
}

.pwp-plan-page .pwp-plan__title {
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 360;
	font-size: clamp(1.6rem, 1.35rem + 0.9vw, 2rem);
	line-height: 1.12;
	letter-spacing: -0.014em;
	color: var(--pwp-ap-night);
	text-wrap: balance;
}

.pwp-plan-page .pwp-plan__lead {
	margin-top: 0;
	color: var(--pwp-ap-ash);
}

/* The chooser: the price wraps under the name on a phone instead of running off. */
.pwp-plan-page .pwp-plan__list-item a {
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 1rem;
	padding: 1rem 0;
	border-bottom-color: var(--pwp-ap-bone-2);
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.pwp-plan-page .pwp-plan__list-name {
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 380;
	font-size: 1.25rem;
	color: var(--pwp-ap-night);
}

.pwp-plan-page .pwp-plan__list-price {
	white-space: normal;
	color: var(--pwp-ap-forest);
}

/* 4. The notify form on Supported States --------------------------------- */

.pwp-waitlist .pwp-waitlist__input {
	box-sizing: border-box;
	max-width: 100%;
	min-height: 48px;
	border-color: #CFC6B6;
	border-radius: 0;
	background-color: #FFFDF9;
	color: var(--pwp-ap-night); /* the state list is a native select */
}

.pwp-waitlist .pwp-waitlist__input:focus-visible {
	outline: 2px solid var(--pwp-ap-forest);
	outline-offset: 1px;
}

/* 5. Peptides list and How it works ------------------------------------- */

.pwp-page-hero {
	padding-top: clamp(3rem, 7vw, 6.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	background: var(--pwp-ap-paper);
}

.pwp-page-hero .pwp-page__lede {
	max-width: 40rem;
	margin-top: 0;
}

/* Wide screens: the title and the opening line share the two columns the
   cards and the steps use, so every left edge lines up. */
@media (min-width: 1024px) {
	:is(.pwp-peptides-index, .pwp-hiw-page) > .pwp-page-hero {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: var(--wp--style--block-gap, 24px); /* the steps' column gap */
		align-items: start;
		/* The band runs edge to edge; % here is main's width inside its gutters. */
		padding-inline: calc(var(--pwp-gutter) + max(0px, (100% - 1200px) / 2));
	}

	:is(.pwp-peptides-index, .pwp-hiw-page) > .pwp-page-hero > * {
		max-width: none;
		margin-left: 0 !important; /* beats the constrained layout's auto !important */
		margin-right: 0 !important;
	}

	:is(.pwp-peptides-index, .pwp-hiw-page) > .pwp-page-hero > .pwp-page__lede {
		max-width: 36rem;
		margin-top: 0.85rem;
	}
}

/* Paper and bone bands, edge to edge, like the home page. */
.pwp-hiw-page > .pwp-section:not(.pwp-page-band) {
	background: var(--pwp-ap-paper);
}

.pwp-page-band {
	background: var(--pwp-ap-bone);
}

/* The program list: paper hero, cards on bone, the guide note on paper, then
   the closing band (bone), so two bone bands never meet. */
.pwp-peptides-index > .pwp-section:not(.pwp-page-band) {
	background: var(--pwp-ap-bone);
}

.pwp-peptides-index > .pwp-page-band {
	background: var(--pwp-ap-paper);
}

.pwp-page-band h2,
.pwp-hiw-page .pwp-section h2 {
	margin-top: 0;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 330;
	font-size: clamp(2rem, 1.4rem + 1.9vw, 3rem);
	line-height: 1.06;
	letter-spacing: -0.018em;
	color: var(--pwp-ap-night);
	text-wrap: balance;
}

:is(.pwp-page-band, .pwp-hiw-page .pwp-section) :is(p, li) {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #26302A;
}

/* Peptide cards: a brass rule over each, square, no box. */
.pwp-peptides-index .pwp-card {
	padding: 1.6rem 0 0;
	border-top: 2px solid var(--pwp-ap-brass);
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.pwp-peptides-index .pwp-card .wp-block-post-title {
	margin: 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 340;
	font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
}

.pwp-peptides-index .pwp-card .wp-block-post-title a {
	color: var(--pwp-ap-night);
	text-decoration: none;
}

.pwp-peptides-index .pwp-card .wp-block-post-title a:hover {
	color: var(--pwp-ap-forest);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

/* Plain text now, not a pill: full width keeps it on the left (the card's
   constrained layout centers anything narrower). */
.pwp-peptides-index .pwp-chip {
	width: auto;
	margin: 0 0 0.9rem;
	padding: 0;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pwp-ap-brass-deep);
}

.pwp-peptides-index .pwp-card .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--pwp-ap-ash);
}

/* How it works: the step label in brass, the closing line in the serif. */
.pwp-hiw-page .pwp-eyebrow {
	margin: 0 0 0.9rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pwp-ap-brass-deep);
}

.pwp-hiw-page .pwp-voice-moment {
	margin-top: 2rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-style: italic;
	font-weight: 340;
	font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
	line-height: 1.3;
	color: var(--pwp-ap-night);
}

/* 6. Quiz page ------------------------------------------------------------- */

/* Square corners for anything on the quiz page that still reads the radius
 * tokens. The quiz app's own look (square card, brass rule, light serif
 * titles) lives in the plugin's quiz.css, the single owner of the quiz. */
.pwp-quiz-canvas {
	--pwp-radius-sm: 0;
	--pwp-radius-md: 0;
	--pwp-radius-lg: 0;
	--pwp-radius-pill: 0;
	background: var(--pwp-ap-paper);
}

.pwp-quiz-embed .pwp-quiz-embed__title {
	margin-top: 0.5rem;
	margin-bottom: 1.75rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 330;
	font-size: clamp(2.1rem, 1.6rem + 2vw, 2.9rem);
	line-height: 1.04;
	letter-spacing: -0.022em;
	color: var(--pwp-ap-night);
	text-wrap: balance;
}

/* The display font's upright cut for the quiz's titles and plan name, as
 * on the page title above (a theme font setting quiz.css does not know). */
.pwp-quiz-root .pwp-quiz__title,
.pwp-quiz-root .pwp-quiz__plan-name,
.pwp-quiz-root .pwp-quiz__consent-title {
	font-variation-settings: "SOFT" 0, "WONK" 0;
}

/* 7. Sign-in page (logged out) ------------------------------------------ */

body.woocommerce-account:not(.logged-in) .pwp-page {
	padding-top: clamp(3rem, 7vw, 6rem);
	padding-bottom: clamp(4rem, 8vw, 7rem);
	background: var(--pwp-ap-paper);
}

body.woocommerce-account:not(.logged-in) .pwp-page > .wp-block-post-title {
	margin-top: 0;
	margin-bottom: 1.75rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 320;
	font-size: clamp(2.6rem, 1.7rem + 3vw, 4rem) !important; /* beats the 4xl preset class */
	line-height: 1.02;
	letter-spacing: -0.024em;
	color: var(--pwp-ap-night);
}

body.woocommerce-account:not(.logged-in) .pwp-page .woocommerce > h2 {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 360;
	font-size: 1.6rem;
	letter-spacing: -0.012em;
	color: var(--pwp-ap-night);
}

body.woocommerce-account:not(.logged-in) .pwp-page :is(.woocommerce-form-login, .woocommerce-ResetPassword) {
	padding: clamp(1.5rem, 4vw, 2.25rem);
	border: 1px solid var(--pwp-ap-bone-2);
	border-top: 2px solid var(--pwp-ap-brass);
	border-radius: 0;
	background: #FFFDF9;
}

body.woocommerce-account:not(.logged-in) .pwp-page :is(.woocommerce-form-login, .woocommerce-ResetPassword) .input-text {
	box-sizing: border-box;
	min-height: 48px;
	border: 1px solid #CFC6B6;
	border-radius: 0;
	background: #FFFFFF;
}

body.woocommerce-account:not(.logged-in) .pwp-page :is(.woocommerce-form-login, .woocommerce-ResetPassword) .input-text:focus-visible {
	outline: 2px solid var(--pwp-ap-forest);
	outline-offset: 1px;
}

body.woocommerce-account:not(.logged-in) .pwp-page .woocommerce :is(.woocommerce-form, .woocommerce-ResetPassword) .button {
	border-radius: 0;
}

body.woocommerce-account:not(.logged-in) .pwp-page .woocommerce-LostPassword a {
	color: var(--pwp-ap-forest);
	text-underline-offset: 0.22em;
}
