/* Certificates library v2 (1.99.9) — find-first. Scoped under .pcm2; reads the theme's tokens with
 * hard fallbacks so it never requires the theme. Phone layout to 1024 px, split view from 1025 px. */
.pcm2 {
	--pcm2-pink: var(--pep-primary, #de0076);
	--pcm2-ink: var(--pep-ink, #171419);
	--pcm2-muted: var(--pep-muted, #6a6570);
	--pcm2-line: var(--pep-line, #ece8ec);
	--pcm2-panel: var(--pep-field, #f5f5f7);
	--pcm2-white: #fff;
	--pcm2-green: #0a7d3f;
	--pcm2-green-soft: #e7f8ee;
	--pcm2-gold: #8a6a1c;
	--pcm2-gold-soft: #fbf1d6;
	--pcm2-pink-soft: #fdeaf4;
	--pcm2-radius: 16px;
	color: var(--pcm2-ink);
	font-variant-numeric: tabular-nums;
	margin: 0 0 24px;
}
.pcm2 *, .pcm2 *::before, .pcm2 *::after { box-sizing: border-box; }
.pcm2 [hidden] { display: none !important; }
/* landing targets clear the fixed header and the docked finder (--pcm2-chrome is measured by the script) */
.pcm2-row, .pcm2-row-btn, .pcm2-record, .pcm2 .pcm-dcard[id], .pcm2 [id^="pcm-"] { scroll-margin-top: var(--pcm2-chrome, 190px); }

/* finder, docked under the site header */
.pcm2-finder { position: sticky; top: var(--pep-nav-h, 72px); z-index: 11; background: var(--pcm2-white); padding: 6px 0 4px; margin: 0 0 2px; }
.pcm2-field { display: flex; align-items: center; gap: 10px; height: 48px; border-radius: 14px; background: var(--pcm2-panel); padding: 0 2px 0 14px; border: 1.5px solid transparent; cursor: text; }
.pcm2-field:focus-within { border-color: var(--pcm2-pink); background: var(--pcm2-white); }
.pcm2-field input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; color: var(--pcm2-ink); outline: none; min-width: 0; margin: 0; padding: 0; height: 100%; box-shadow: none; -webkit-appearance: none; appearance: none; border-radius: 0; }
.pcm2-field input::placeholder { color: #9b95a1; }
.pcm2-field input::-webkit-search-decoration, .pcm2-field input::-webkit-search-cancel-button, .pcm2-field input::-webkit-search-results-button { -webkit-appearance: none; display: none; }
.pcm2-clear { flex: none; width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; color: var(--pcm2-muted); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pcm2-clear:hover { color: var(--pcm2-ink); }
.pcm2-mag { width: 16px; height: 16px; border: 2px solid #8d8794; border-radius: 50%; position: relative; flex: none; }
.pcm2-mag::after { content: ""; position: absolute; width: 2px; height: 7px; background: #8d8794; right: -4px; bottom: -6px; transform: rotate(-45deg); }
.pcm2-hint { font-size: .78rem; color: var(--pcm2-muted); margin: 6px 2px 0; line-height: 1.4; }

.pcm2-result { margin: 10px 0 0; border: 1.5px solid var(--pcm2-pink); border-radius: var(--pcm2-radius); padding: 14px; background: var(--pcm2-white); }
.pcm2-result-h { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--pcm2-pink); font-weight: 600; margin-bottom: 6px; }
.pcm2-result-t { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.pcm2-result-m { font-size: .86rem; color: var(--pcm2-muted); margin: 2px 0 12px; max-height: 60vh; overflow-y: auto; }
.pcm2-result-item { display: flex; align-items: center; min-height: 44px; padding: 0 2px; border-bottom: 1px solid var(--pcm2-line); color: var(--pcm2-ink); text-decoration: none; font-weight: 500; }
.pcm2-result-item:last-child { border-bottom: 0; }
.pcm2-result-item::after { content: "\203A"; margin-left: auto; color: #b5b0ba; }
.pcm2-result-more { display: block; padding: 8px 2px 0; }
.pcm2-empty, .pcm2-notice { margin: 10px 0 0; background: var(--pcm2-panel); border-radius: var(--pcm2-radius); padding: 14px; font-size: .9rem; line-height: 1.45; }
.pcm2-empty a, .pcm2-notice a, .pcm2-also a, .pcm2-strip a { color: var(--pcm2-pink); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pcm2-notice-scope { background: var(--pcm2-green-soft); }

/* segments */
.pcm2-segs { display: flex; gap: 6px; padding: 10px 0 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pcm2-segs::-webkit-scrollbar { display: none; }
.pcm2-seg { flex: none; min-height: 44px; padding: 0 14px; border-radius: 22px; background: var(--pcm2-panel); font: inherit; font-size: .84rem; font-weight: 500; display: inline-flex; align-items: center; color: var(--pcm2-ink); border: 0; cursor: pointer; }
.pcm2-seg.is-on { background: var(--pcm2-ink); color: #fff; }
.pcm2-seg:focus-visible, .pcm2-row-btn:focus-visible, .pcm2-lot:focus-visible, .pcm2-btn:focus-visible, .pcm2-more:focus-visible, .pcm2-clear:focus-visible, .pcm2-link:focus-visible, .pcm2-act:focus-visible, .pcm2-sec-btn:focus-visible { outline: 2px solid var(--pcm2-pink); outline-offset: 2px; }

/* strip, sections, chips */
.pcm2-strip { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; background: var(--pcm2-green-soft); border-radius: 14px; padding: 9px 14px; font-size: .86rem; color: var(--pcm2-ink); line-height: 1.4; }
.pcm2-strip > span { flex: 1 1 220px; }
.pcm2-strip b { font-weight: 600; }
.pcm2-strip a { color: var(--pcm2-green); font-weight: 600; white-space: nowrap; margin-left: auto; }
.pcm2-sec { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--pcm2-muted); padding: 22px 0 8px; }
.pcm2-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pcm2-chips::-webkit-scrollbar { display: none; }
.pcm2-chip { flex: none; border: 1px solid var(--pcm2-line); border-radius: 12px; padding: 9px 12px; font-size: .8rem; line-height: 1.35; background: var(--pcm2-white); color: var(--pcm2-ink); text-decoration: none; min-height: 44px; }
.pcm2-chip:hover { border-color: var(--pcm2-ink); color: var(--pcm2-ink); }
.pcm2-chip b { display: block; font-weight: 600; }
.pcm2-new { color: var(--pcm2-green); font-weight: 600; }

/* grouped inset list */
.pcm2-list { background: var(--pcm2-panel); border-radius: var(--pcm2-radius); overflow: hidden; }
.pcm2-row { border-bottom: 1px solid var(--pcm2-white); }
.pcm2-row:last-child { border-bottom: 0; }
.pcm2-row-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; min-height: 56px; background: var(--pcm2-panel); border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pcm2-nm { flex: 1; font-size: .98rem; font-weight: 500; min-width: 0; }
.pcm2-nm small { display: block; font-size: .78rem; color: var(--pcm2-muted); font-weight: 400; margin-top: 1px; }
.pcm2-row-btn::after { content: "\203A"; color: #b5b0ba; font-size: 1.1rem; flex: none; transition: transform .2s; line-height: 1; }
.pcm2-row.is-open .pcm2-row-btn::after { transform: rotate(90deg); }
.pcm2-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font-size: .74rem; font-weight: 600; flex: none; white-space: nowrap; }
.pcm2-pill-t14 { background: var(--pcm2-gold-soft); color: var(--pcm2-gold); }
.pcm2-pill-t7 { background: var(--pcm2-green-soft); color: var(--pcm2-green); }
.pcm2-pill-pur { background: var(--pcm2-green-soft); color: var(--pcm2-green); }
.pcm2-pill-none { background: var(--pcm2-white); color: var(--pcm2-muted); border: 1px solid var(--pcm2-line); font-weight: 500; }
.pcm2-sub { background: var(--pcm2-white); }
.pcm2-sizehead { font-size: .76rem; letter-spacing: .01em; color: var(--pcm2-muted); padding: 12px 14px 4px; font-weight: 600; } /* the PDP's size vocabulary: "60 mg · tested 62.41 mg" */
.pcm2-tested { font-weight: 400; }
.pcm2-pill-ship { background: var(--pcm2-green-soft); color: var(--pcm2-green); }
.pcm2-masshelp { margin: 0; padding: 8px 14px 10px; font-size: .78rem; line-height: 1.4; color: var(--pcm2-muted); border-bottom: 1px solid var(--pcm2-line); }
.pcm2-lot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: 8px; row-gap: 2px; align-items: center; padding: 10px 14px; min-height: 52px; border-bottom: 1px solid var(--pcm2-line); color: inherit; text-decoration: none; }
.pcm2-lot:hover { background: #fafafb; color: inherit; }
.pcm2-lot.is-dim { opacity: .45; }
.pcm2-lot-t { display: contents; }
.pcm2-lot-t b { grid-row: 1; grid-column: 1; min-width: 0; font-weight: 600; font-size: .95rem; }
.pcm2-lot-t small { grid-row: 2; grid-column: 1 / -1; display: block; color: var(--pcm2-muted); font-size: .78rem; line-height: 1.35; margin: 0; }
.pcm2-lot .pcm2-pill { grid-row: 1; }
.pcm2-lot-go { grid-row: 1; color: var(--pcm2-pink); font-size: .78rem; font-weight: 600; white-space: nowrap; }
/* the direct links under a row (owner notes 4/5): the verified site first, then the lab report; hydrated from the fetched history */
.pcm2-lot-w { border-bottom: 0; padding-bottom: 6px; }
.pcm2-lot-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; background: var(--pcm2-white); border-bottom: 1px solid var(--pcm2-line); }
.pcm2-act { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--pcm2-line); background: var(--pcm2-white); color: var(--pcm2-ink); font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pcm2-act::after { content: "\2197"; margin-left: 5px; color: var(--pcm2-muted); font-size: .85em; }
.pcm2-act-page::after { content: "\203A"; }
.pcm2-act-vbv { border-color: var(--pcm2-ink); }
.pcm2-act:hover { border-color: var(--pcm2-ink); color: var(--pcm2-ink); }
.pcm2-lot.is-dim + .pcm2-lot-acts { opacity: .45; }
.pcm2-also { font-size: .8rem; color: var(--pcm2-muted); padding: 2px 14px 6px; border-bottom: 1px solid var(--pcm2-line); }
.pcm2-more { display: block; width: 100%; text-align: left; padding: 12px 14px; min-height: 44px; font: inherit; font-size: .88rem; font-weight: 500; line-height: 1.35; white-space: normal; color: var(--pcm2-pink); background: var(--pcm2-white); border: 0; border-bottom: 1px solid var(--pcm2-line); cursor: pointer; }
.pcm2-full:focus { outline: none; }
.pcm2-acts { display: flex; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
.pcm2-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; font: inherit; font-size: .9rem; font-weight: 600; border: 0; background: var(--pcm2-pink); color: #fff; text-decoration: none; cursor: pointer; }
.pcm2-btn:hover { color: #fff; opacity: .92; }
.pcm2-btn-ghost { background: var(--pcm2-panel); color: var(--pcm2-ink); }
.pcm2-btn-ghost:hover { color: var(--pcm2-ink); }
.pcm2-btn-line { background: var(--pcm2-white); color: var(--pcm2-ink); border: 1px solid var(--pcm2-line); }
.pcm2-btn-line:hover { color: var(--pcm2-ink); border-color: var(--pcm2-ink); }
.pcm2-link { background: none; border: 0; padding: 0; font: inherit; color: var(--pcm2-pink); font-weight: 500; cursor: pointer; min-height: 44px; }
/* the compiled lab reports button: label + a small line saying what the tap does */
.pcm2-btn-print { flex-direction: column; align-items: flex-start; padding: 8px 16px; line-height: 1.25; }
.pcm2-btn-print small { font-weight: 400; font-size: .74rem; color: var(--pcm2-muted); }
.pcm2-print-summary { display: block; padding: 0 14px 12px; font-size: .82rem; color: var(--pcm2-muted); }
.pcm2-none { padding: 14px; color: var(--pcm2-muted); }
.pcm2-block .pcm2-sec-retired { padding: 18px 14px 4px; }
/* "Discontinued sizes · N": a disclosure head when the product also has a size on sale */
.pcm2-sec-btn { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 14px 14px 6px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--pcm2-ink); }
.pcm2-sec-btn::after { content: "\203A"; color: var(--pcm2-pink); font-size: 1.1rem; letter-spacing: 0; line-height: 1; transition: transform .2s; transform: rotate(90deg); }
.pcm2-sec-btn[aria-expanded="false"]::after { transform: none; }
.pcm2-sec-n { font-weight: 500; color: var(--pcm2-muted); }
.pcm2-chart { padding: 12px 14px 4px; }
.pcm2-chart svg { width: 100%; height: auto; }

/* the folded testing record */
.pcm2-record { margin: 32px 0 0; padding-top: 8px; border-top: 1px solid var(--pcm2-line); }
.pcm2-record-title { font-size: 1.35rem; margin: 18px 0 4px; letter-spacing: -.02em; line-height: 1.15; }
.pcm2-record-lede { color: var(--pcm2-muted); margin: 0 0 12px; max-width: 62ch; font-size: .92rem; }
.pcm2-record-body { outline: none; }
.pcm2-record-body .pcm-explainer { margin-top: 12px; }
/* row 16: the plain sub-label sits on its own line under the card title (the head is a nowrap flex row in frontend.css) */
.pcm2 .pcm-dcard-hd { flex-wrap: wrap; }
.pcm2 .pcm-dcard-sub { flex: 1 0 100%; order: 1; display: block; font-size: .82rem; color: var(--pcm2-muted); margin-top: 2px; }
/* D1: on phones each record card folds to its headline until tapped */
.pcm2 .pcm-dcard.pcm2-folded > :not(.pcm-dcard-hd) { display: none; }
.pcm2 .pcm-dcard-hd[role="button"] { cursor: pointer; min-height: 44px; }
.pcm2 .pcm-dcard-hd[role="button"]::after { content: "\203A"; color: #b5b0ba; margin-left: 8px; transition: transform .2s; }
.pcm2 .pcm-dcard:not(.pcm2-folded) > .pcm-dcard-hd[role="button"]::after { transform: rotate(90deg); }
.pcm2-foot { padding: 26px 0 8px; font-size: .78rem; color: var(--pcm2-muted); line-height: 1.5; }

/* desktop split view (ask row 19): the list on the left, the open product's panel on the right.
 * The list and its rows become display:contents so each row button and the one open panel are items
 * of the same grid: buttons fill column 1, the open panel sits in column 2 and sticks under the finder. */
@media (min-width: 1025px) {
	.pcm2-finder { padding-top: 10px; }
	.pcm2-field { max-width: 640px; }
	.pcm2-listwrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); column-gap: 28px; align-items: start; }
	.pcm2-list, .pcm2-row { display: contents; }
	.pcm2-row-btn { grid-column: 1; border-bottom: 1px solid var(--pcm2-white); }
	.pcm2-row:first-child .pcm2-row-btn { border-radius: var(--pcm2-radius) var(--pcm2-radius) 0 0; }
	.pcm2-row:last-child .pcm2-row-btn { border-radius: 0 0 var(--pcm2-radius) var(--pcm2-radius); border-bottom: 0; }
	.pcm2-row.is-open .pcm2-row-btn { background: var(--pcm2-white); box-shadow: inset 3px 0 0 var(--pcm2-pink); }
	.pcm2-sub { grid-column: 2; grid-row: 1 / span 999; position: sticky; top: var(--pcm2-chrome, 190px); align-self: start; border: 1px solid var(--pcm2-line); border-radius: var(--pcm2-radius); overflow: hidden; max-height: calc(100vh - var(--pcm2-chrome, 190px) - 16px); overflow-y: auto; }
	/* a row and its direct links share one line in the wide panel */
	.pcm2-size { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
	.pcm2-size > .pcm2-sizehead, .pcm2-size > .pcm2-also { grid-column: 1 / -1; }
	.pcm2-size > .pcm2-lot { grid-column: 1; }
	.pcm2-size > .pcm2-lot-acts { grid-column: 2; flex-wrap: nowrap; align-items: center; padding: 0 14px 0 0; }
	.pcm2-lot-w { border-bottom: 1px solid var(--pcm2-line); padding-bottom: 10px; }
}

/* print: only the chosen product's certificates, full history included. The script marks the target row's
 * ancestor chain with .pcm2-print-root so every sibling at every level (theme chrome included) is hidden. */
@media print {
	body.pcm2-printing .pcm2-print-root > :not(.pcm2-print-root):not(.pcm2-print-target) { display: none !important; }
	body.pcm2-printing > :not(.pcm2-print-root) { display: none !important; }
	body.pcm2-printing .pcm2-listwrap, body.pcm2-printing .pcm2-list, body.pcm2-printing .pcm2-row.pcm2-print-target { display: block !important; }
	body.pcm2-printing .pcm2-row.pcm2-print-target .pcm2-sub { display: block !important; position: static; max-height: none; overflow: visible; border: 0; }
	body.pcm2-printing .pcm2-acts, body.pcm2-printing .pcm2-more, body.pcm2-printing .pcm2-print-summary, body.pcm2-printing .pcm2-lot-acts, body.pcm2-printing .pcm2-lot-go { display: none !important; }
	body.pcm2-printing .pcm2-size { display: block; }
	body.pcm2-printing .pcm2-retired[hidden] { display: block !important; }
	body.pcm2-printing .pcm2-row-btn::after, body.pcm2-printing .pcm2-sec-btn::after { content: none; }
}

@media (prefers-reduced-motion: reduce) {
	.pcm2 * { transition: none !important; scroll-behavior: auto !important; }
}

/* 1.99.26: the two honest states */
.pcm2-pill-full{background:#fdf0f6;color:#de0076;border:1px solid #de0076}
.pcm2-pill-earlier{background:var(--pcm2-white);color:var(--pcm2-muted);border:1px solid var(--pcm2-line)}
.pcm2-pill-newer{background:var(--pcm2-white);color:#de0076;border:1px solid #de0076}
