/*
 * Public pages: program pages (single pwp_peptide), styled to match the home
 * page (direction "Apothecary", owner 2026-12-03): the crisp light serif for the title and the
 * section headings, the opening paragraph as a lead, the closing quiz link as
 * a button, the rail and the plan box as quiet cards, and the certificate
 * table set as a table. Loads after sections.css; every rule is scoped to the
 * program article or the certificate library.
 */

/* Title block: a little less air above the label, the soft serif title. */
.pwp-section.pwp-peptide-article {
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.pwp-peptide-article :is(h1, h2, h3):not(.has-body-font-family),
.pwp-coa-library :is(h2, h3) {
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 360;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

.pwp-peptide-article .wp-block-post-title {
	margin-top: 0.75rem;
	font-weight: 340;
	line-height: 1.02;
	letter-spacing: -0.02em;
}

/* The article: a lead, roomy section headings, links in the brand green. */
.pwp-peptide-article .wp-block-post-content > p:first-child {
	font-size: 1.1875rem;
	color: var(--pwp-color-neutral-700);
}

.pwp-peptide-article .wp-block-post-content h2 {
	margin-top: 2.75rem;
	font-weight: 460;
	font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
	line-height: 1.15;
}

.pwp-peptide-article .wp-block-post-content h2 + * {
	margin-top: 0.875rem;
}

.pwp-peptide-article .wp-block-post-content a:not(.wp-element-button) {
	color: var(--pwp-color-brand-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* The page's own "Start your online visit" link, set as the brand button. */
.pwp-peptide-article .wp-block-post-content p > strong:only-child > a[href$="/quiz/"]:only-child {
	display: inline-flex;
	align-items: center;
	padding: 0.8rem 1.5rem;
	border-radius: 0;
	background: var(--pwp-color-brand-primary);
	color: var(--pwp-color-neutral-50);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--pwp-color-brand-primary-deep) 55%, transparent);
	transition: background-color 0.2s var(--pwp-ease), transform 0.2s var(--pwp-ease);
}

.pwp-peptide-article .wp-block-post-content p > strong:only-child > a[href$="/quiz/"]:only-child:hover {
	background: var(--pwp-color-brand-primary-deep);
}

.pwp-peptide-article .wp-block-post-content p > strong:only-child > a[href$="/quiz/"]:only-child:active {
	transform: translateY(1px) scale(0.985);
}

/* Quiet cards: the plan box, the storage note and the qualify rail. */
.pwp-peptide-article .pwp-plan-box {
	padding: 1.25rem 1.5rem;
	border: 0;
	border-radius: 0;
	background: var(--pwp-color-neutral-100);
}

.pwp-peptide-article .pwp-callout--storage {
	border-radius: 0 !important;
}

.pwp-peptide-article .pwp-article-rail {
	border-color: transparent !important;
	border-radius: 0 !important;
	box-shadow: var(--pwp-shadow-warm);
}

.pwp-peptide-article .pwp-article-rail .wp-block-button__link {
	width: 100%;
}

/* Certificate library: the sample or lookup table as a white table card. */
table.pwp-coa-library {
	margin-top: 1.5rem;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 0;
	background: var(--pwp-color-surface-card);
	box-shadow: var(--pwp-shadow-warm);
	font-size: 0.9375rem;
}

table.pwp-coa-library caption {
	caption-side: top;
	padding: 0 0 0.75rem;
	text-align: left;
	font-size: 0.875rem;
	color: var(--pwp-color-neutral-600);
}

table.pwp-coa-library th,
table.pwp-coa-library td {
	padding: 0.85rem 1.1rem;
	text-align: left;
	vertical-align: top;
	white-space: nowrap;
	border-bottom: 1px solid var(--pwp-color-neutral-100);
}

table.pwp-coa-library th {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--pwp-color-neutral-700);
}

table.pwp-coa-library tr:last-child td {
	border-bottom: 0;
}

/* Wide screens: the table spans its column; phones keep the scroll box. */
@media (min-width: 782px) {
	table.pwp-coa-library {
		display: table;
		width: 100%;
	}
}

/* The program list (archive-pwp_peptide.html) is styled in pages.css. */
