/*!
 * ParaGenix Batch Verify - frontend styles
 * Palette locked to the live paragenixlab.com Elementor kit:
 *   primary gold  #A98E5B   accent cream #F2EADF
 *   section cream #E9DFD7   ink #333333   secondary #54595F
 *   headings: Cormorant Garamond 600 | body: Inter
 *
 * Every component selector is scoped under .pgx-scope (the section carries
 * that class too). The site's Elementor kit styles bare elements through
 * `.elementor-kit-6 h2`, `.elementor-kit-6 h3` and `.elementor-kit-6 button`
 * (specificity 0,1,1), which used to beat our single-class rules and blew the
 * headings up to 42-55px. Two classes (0,2,0) always win.
 *
 * Sizing: the stage is a size container. The frame and the verify panel are
 * measured in "frame units" (--fu, 1% of the frame's width) and "panel units"
 * (--pu, 1% of the panel's width), so the whole composition keeps exactly the
 * same proportions at every width instead of reflowing piece by piece.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

.pgx-verified-section,
.pgx-scope {
	--pgx-cream: #e9dfd7;
	--pgx-cream-soft: #f2eadf;
	--pgx-paper: #f8f3ea;
	--pgx-paper-edge: #eee5d7;

	--pgx-gold: #a98e5b;
	--pgx-gold-lt: #dcc08a;
	--pgx-gold-hi: #efdcb4;
	--pgx-gold-dk: #8b7345;

	--pgx-bronze: #b07a3e;
	--pgx-bronze-dk: #8a6234;

	--pgx-ink: #333;
	--pgx-ink-strong: #2b2b2b;
	--pgx-ink-mute: #54595f;

	--pgx-black: #0a0a0a;
	--pgx-black-lt: #1a1a1a;

	--pgx-ok: #3f7d55;
	--pgx-warn: #b07b28;
	--pgx-danger: #a8453a;

	--pgx-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--pgx-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--pgx-gold-grad: linear-gradient(135deg, #b8985f 0%, #e2ca92 24%, #c0a267 52%, #a98e5b 78%, #c3a76d 100%);
	--pgx-bronze-grad: linear-gradient(180deg, #c08a4b 0%, #b07a3e 55%, #a06d35 100%);
	--pgx-amber-grad: linear-gradient(180deg, #e8ad5f 0%, #d59649 52%, #bf803b 100%);
	--pgx-bezel-grad: linear-gradient(150deg, #5d4527 0%, #caa56b 16%, #6f5431 34%, #e2c28c 52%, #5b4426 72%, #b9945b 88%, #6a4f2d 100%);
	--pgx-ease: cubic-bezier(.22, .61, .36, 1);

	/* fallbacks for components rendered outside the section's stage */
	--fu: 4.4px;
	--pu: 3.6px;
}

.pgx-verified-section *,
.pgx-verified-section *::before,
.pgx-verified-section *::after,
.pgx-scope *,
.pgx-scope *::before,
.pgx-scope *::after { box-sizing: border-box; }

/* ==========================================================================
   2. Section shell
   --------------------------------------------------------------------------
   The dark "Independently Verified. Every Batch." design: a centred heading
   on top, the display group and the verify panel underneath, all on one
   flat near-black.
   ========================================================================== */

.pgx-verified-section {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 7vw, 110px) clamp(16px, 4vw, 64px) clamp(56px, 7vw, 110px);
	font-family: var(--pgx-sans);
	color: #efe7da;
	/* one flat colour, overridable from Settings */
	background: var(--pgx-section-bg, #0a0a0a);
	-webkit-font-smoothing: antialiased;
}

.pgx-scope .pgx-verified-section__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(40px, 5.5vw, 84px);
	max-width: 1180px;
	margin: 0 auto;
}

/* ==========================================================================
   3. Heading
   ========================================================================== */

.pgx-scope .pgx-copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 760px;
	text-align: center;
}

.pgx-scope .pgx-title {
	margin: 0;
	padding: 0;
	font-family: var(--pgx-serif);
	font-weight: 500;
	font-size: clamp(38px, 5.4vw, 82px);
	line-height: 1.08;
	letter-spacing: -.005em;
	text-transform: none;
	color: #efe7da;
}
.pgx-scope .pgx-title__line { display: block; }
.pgx-scope .pgx-title__line--gold {
	background: linear-gradient(180deg, #e6c486 0%, #c99a52 60%, #a97c3c 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pgx-scope .pgx-rule {
	display: flex;
	align-items: center;
	width: clamp(220px, 28vw, 360px);
	margin: clamp(18px, 2vw, 28px) 0 clamp(20px, 2.2vw, 30px);
}
.pgx-scope .pgx-rule::before,
.pgx-scope .pgx-rule::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(201, 164, 106, 0), rgba(201, 164, 106, .85));
}
.pgx-scope .pgx-rule::after { background: linear-gradient(90deg, rgba(201, 164, 106, .85), rgba(201, 164, 106, 0)); }
.pgx-scope .pgx-rule i {
	width: 8px;
	height: 8px;
	margin: 0 14px;
	background: #d6ae6a;
	transform: rotate(45deg);
}

.pgx-scope .pgx-lead {
	margin: 0;
	max-width: 420px;
	font: 400 clamp(17px, 1.55vw, 23px)/1.5 var(--pgx-serif);
	color: #ddd4c6;
}

/* ==========================================================================
   5. Stage - the display group + verify panel
   ========================================================================== */

.pgx-scope .pgx-stage {
	position: relative;
	width: 100%;
	container: pgx-stage / inline-size;
	display: flex;
	align-items: flex-start;
	/* 58% + 39% leaves the 3% gap between the group and the panel; wrap lets
	   the narrow-stage query below stack them (a container can't restyle
	   itself, only its children) */
	flex-wrap: wrap;
	justify-content: space-between;
}

/* --- 5a. The display group ------------------------------------------------
   A black folio standing behind a gold-trimmed frame that holds the paper
   certificate, the frame standing on a stepped pedestal.
   ------------------------------------------------------------------------ */

.pgx-scope .pgx-display {
	/* the frame is 66% of this group, the group 58% of the stage */
	--fu: .3828cqw;
	--pgx-pedestal-h: calc(var(--fu) * 9);

	position: relative;
	z-index: 1;
	flex: 0 0 58%;
	display: flex;
	justify-content: flex-end;
	padding: calc(var(--fu) * 5) 0 var(--pgx-pedestal-h);
}

/* --- 5b. The stepped pedestal -------------------------------------------- */

.pgx-scope .pgx-pedestal {
	position: absolute;
	z-index: 2;
	left: 20%;
	right: -1.5%;
	bottom: 0;
	height: var(--pgx-pedestal-h);
	filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .8));
}
.pgx-scope .pgx-pedestal::before,
.pgx-scope .pgx-pedestal::after {
	content: "";
	position: absolute;
	border-radius: 2px;
	background: linear-gradient(180deg, #1e1e1e 0%, #101010 45%, #050505 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -3px 5px rgba(0, 0, 0, .6), 0 0 0 1px rgba(201, 164, 106, .22);
}
/* the top step the frame stands on */
.pgx-scope .pgx-pedestal::before {
	top: 0;
	left: 6%;
	right: 4%;
	height: 42%;
	border-top: 1px solid rgba(214, 174, 106, .9);
}
/* the wide base */
.pgx-scope .pgx-pedestal::after {
	bottom: 0;
	left: 0;
	right: 0;
	height: 58%;
	border-top: 1px solid rgba(214, 174, 106, .7);
}

/* --- 5c. The folio - standing behind the frame --------------------------- */

.pgx-scope .pgx-box {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	bottom: calc(var(--pgx-pedestal-h) * .3);
	width: 69%;
	/* content sits in the strip the frame leaves uncovered */
	padding-right: 50%;
	border-radius: 3px;
	background:
		linear-gradient(100deg, rgba(255, 255, 255, .06) 0%, transparent 20%),
		linear-gradient(118deg, #1c1c1c 0%, #111 46%, #080808 100%);
	box-shadow:
		0 30px 50px -22px rgba(0, 0, 0, .9),
		inset 0 0 0 1px rgba(201, 164, 106, .3),
		inset -6px 0 10px -6px rgba(255, 255, 255, .08);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: calc(var(--fu) * 2.4);
}
.pgx-scope .pgx-box__mono {
	display: block;
	width: calc(var(--fu) * 15);
	color: #d6ae6a;
}
.pgx-scope .pgx-box__mono svg { display: block; width: 100%; height: auto; }
.pgx-scope .pgx-box__name {
	font-family: var(--pgx-serif);
	font-weight: 500;
	font-size: calc(var(--fu) * 6.6);
	line-height: 1;
	color: var(--pgx-gold-lt);
}
.pgx-scope .pgx-box__sub {
	margin-top: calc(var(--fu) * -1);
	font: 500 calc(var(--fu) * 2.6)/1 var(--pgx-sans);
	letter-spacing: .34em;
	text-indent: .34em;
	text-transform: uppercase;
	color: rgba(220, 192, 138, .85);
}

/* --- 5d. The frame - black, gold-trimmed, holding the certificate -------- */

.pgx-scope .pgx-coa-wrap {
	position: relative;
	z-index: 3;
	flex: 0 0 66%;
	padding: calc(var(--fu) * 4.5) calc(var(--fu) * 9) calc(var(--fu) * 16);
	border-radius: calc(var(--fu) * 7);
	background:
		linear-gradient(115deg, rgba(255, 255, 255, .08) 0%, transparent 30%),
		linear-gradient(150deg, #1d1d1d 0%, #0b0b0b 50%, #040404 100%);
	box-shadow:
		0 40px 60px -26px rgba(0, 0, 0, .85),
		0 6px 14px -4px rgba(20, 14, 4, .35),
		inset 0 0 0 1px rgba(201, 164, 106, .35),
		inset 0 1px 0 rgba(255, 255, 255, .08);
}
/* the gold trim line, set in from the black edge */
.pgx-scope .pgx-coa-wrap::before {
	content: "";
	position: absolute;
	inset: calc(var(--fu) * 1.6);
	border: 1px solid rgba(201, 164, 106, .7);
	border-radius: calc(var(--fu) * 5.6);
	pointer-events: none;
}

/* brand mark printed on the frame above the paper */
.pgx-scope .pgx-coa-wrap__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: calc(var(--fu) * 4);
	text-align: center;
	color: var(--pgx-gold-lt);
}
.pgx-scope .pgx-coa-wrap__crest {
	font: 500 calc(var(--fu) * 3.6)/1 var(--pgx-serif);
	color: var(--pgx-gold-lt);
}
.pgx-scope .pgx-coa-wrap__name {
	margin-top: calc(var(--fu) * .8);
	font: 500 calc(var(--fu) * 8)/1 var(--pgx-serif);
	background: linear-gradient(180deg, #f2ddb0 0%, #cfac72 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.pgx-scope .pgx-coa-wrap__sub {
	margin-top: calc(var(--fu) * 1.4);
	font: 500 calc(var(--fu) * 2.3)/1 var(--pgx-sans);
	letter-spacing: .32em;
	text-indent: .32em;
	text-transform: uppercase;
	color: rgba(220, 192, 138, .9);
}

/* --- 5e. The paper certificate ------------------------------------------- */

.pgx-scope .pgx-coa {
	--pgx-notch: calc(var(--fu) * 4);
	--pgx-line: rgba(169, 142, 91, .62);

	position: relative;
	padding: calc(var(--fu) * 1.8);
	background: linear-gradient(165deg, #fbf8f2 0%, var(--pgx-paper) 40%, var(--pgx-paper-edge) 100%);
	/* concave notches at the four corners */
	-webkit-mask:
		radial-gradient(circle at 0 0, transparent var(--pgx-notch), #000 calc(var(--pgx-notch) + .5px)) 0 0 / 51% 51% no-repeat,
		radial-gradient(circle at 100% 0, transparent var(--pgx-notch), #000 calc(var(--pgx-notch) + .5px)) 100% 0 / 51% 51% no-repeat,
		radial-gradient(circle at 0 100%, transparent var(--pgx-notch), #000 calc(var(--pgx-notch) + .5px)) 0 100% / 51% 51% no-repeat,
		radial-gradient(circle at 100% 100%, transparent var(--pgx-notch), #000 calc(var(--pgx-notch) + .5px)) 100% 100% / 51% 51% no-repeat;
	mask:
		radial-gradient(circle at 0 0, transparent var(--pgx-notch), #000 calc(var(--pgx-notch) + .5px)) 0 0 / 51% 51% no-repeat,
		radial-gradient(circle at 100% 0, transparent var(--pgx-notch), #000 calc(var(--pgx-notch) + .5px)) 100% 0 / 51% 51% no-repeat,
		radial-gradient(circle at 0 100%, transparent var(--pgx-notch), #000 calc(var(--pgx-notch) + .5px)) 0 100% / 51% 51% no-repeat,
		radial-gradient(circle at 100% 100%, transparent var(--pgx-notch), #000 calc(var(--pgx-notch) + .5px)) 100% 100% / 51% 51% no-repeat;
	transition: opacity .4s var(--pgx-ease), transform .4s var(--pgx-ease);
}

.pgx-scope .pgx-coa__frame {
	position: relative;
	padding: calc(var(--fu) * 5) calc(var(--fu) * 5.5) calc(var(--fu) * 4);
}
/* double hairline with concave corners, drawn from gradients so the corner
   arcs follow the paper's notches */
.pgx-scope .pgx-coa__frame::before,
.pgx-scope .pgx-coa__frame::after {
	content: "";
	position: absolute;
	pointer-events: none;
	--r: calc(var(--fu) * 2.6);
	--c: var(--pgx-line);
	background:
		linear-gradient(var(--c), var(--c)) var(--r) 0 / calc(100% - 2 * var(--r)) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) var(--r) 100% / calc(100% - 2 * var(--r)) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) 0 var(--r) / 1px calc(100% - 2 * var(--r)) no-repeat,
		linear-gradient(var(--c), var(--c)) 100% var(--r) / 1px calc(100% - 2 * var(--r)) no-repeat,
		radial-gradient(circle at 0 0, transparent calc(var(--r) - 1px), var(--c) calc(var(--r) - 1px), var(--c) var(--r), transparent calc(var(--r) + .6px)) 0 0 / calc(var(--r) + 1px) calc(var(--r) + 1px) no-repeat,
		radial-gradient(circle at 100% 0, transparent calc(var(--r) - 1px), var(--c) calc(var(--r) - 1px), var(--c) var(--r), transparent calc(var(--r) + .6px)) 100% 0 / calc(var(--r) + 1px) calc(var(--r) + 1px) no-repeat,
		radial-gradient(circle at 0 100%, transparent calc(var(--r) - 1px), var(--c) calc(var(--r) - 1px), var(--c) var(--r), transparent calc(var(--r) + .6px)) 0 100% / calc(var(--r) + 1px) calc(var(--r) + 1px) no-repeat,
		radial-gradient(circle at 100% 100%, transparent calc(var(--r) - 1px), var(--c) calc(var(--r) - 1px), var(--c) var(--r), transparent calc(var(--r) + .6px)) 100% 100% / calc(var(--r) + 1px) calc(var(--r) + 1px) no-repeat;
}
.pgx-scope .pgx-coa__frame::before { inset: 0; }
.pgx-scope .pgx-coa__frame::after {
	inset: calc(var(--fu) * 1.1);
	--r: calc(var(--fu) * 1.8);
	--c: rgba(169, 142, 91, .32);
}

/* letterhead: P / PARAGENIX / LABORATORIES */
.pgx-scope .pgx-coa__crest {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto calc(var(--fu) * 3.4);
	text-align: center;
	line-height: 1;
}
.pgx-scope .pgx-coa__mono {
	font: 500 calc(var(--fu) * 7.6)/1 var(--pgx-serif);
	color: var(--pgx-gold);
}
.pgx-scope .pgx-coa__brand {
	margin-top: calc(var(--fu) * .8);
	font: 600 calc(var(--fu) * 5.4)/1 var(--pgx-serif);
	letter-spacing: .05em;
	text-indent: .05em;
	color: var(--pgx-ink-strong);
}
.pgx-scope .pgx-coa__brandsub {
	margin-top: calc(var(--fu) * 1.2);
	font: 500 calc(var(--fu) * 1.9)/1 var(--pgx-sans);
	letter-spacing: .3em;
	text-indent: .3em;
	text-transform: uppercase;
	color: #4a4a4a;
}

.pgx-scope .pgx-coa__doctype {
	margin: 0;
	padding: 0;
	font-family: var(--pgx-serif);
	font-weight: 600;
	font-size: calc(var(--fu) * 4.9);
	line-height: 1.1;
	letter-spacing: .015em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--pgx-ink-strong);
}

.pgx-scope .pgx-coa__rule {
	display: flex;
	align-items: center;
	width: 52%;
	margin: calc(var(--fu) * 2) auto calc(var(--fu) * 2.6);
}
.pgx-scope .pgx-coa__rule::before,
.pgx-scope .pgx-coa__rule::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(169, 142, 91, 0), rgba(169, 142, 91, .7));
}
.pgx-scope .pgx-coa__rule::after { background: linear-gradient(90deg, rgba(169, 142, 91, .7), rgba(169, 142, 91, 0)); }
.pgx-scope .pgx-coa__rule i {
	width: calc(var(--fu) * 1.4);
	height: calc(var(--fu) * 1.4);
	margin: 0 calc(var(--fu) * 1.4);
	background: var(--pgx-gold);
	transform: rotate(45deg);
}

.pgx-scope .pgx-coa__hr {
	height: 1px;
	margin: calc(var(--fu) * 1.6) 0;
	background: linear-gradient(90deg, transparent, rgba(169, 142, 91, .55) 18%, rgba(169, 142, 91, .55) 82%, transparent);
}

.pgx-scope .pgx-coa__batch {
	display: table;
	margin: 0 auto calc(var(--fu) * 3);
	padding: calc(var(--fu) * 1.5) calc(var(--fu) * 4);
	border: 1px solid rgba(110, 100, 86, .45);
	border-radius: 999px;
	font: 500 calc(var(--fu) * 3.2)/1.2 var(--pgx-sans);
	letter-spacing: .01em;
	text-align: center;
	white-space: nowrap;
	color: #3f3f3f;
	background: rgba(255, 255, 255, .55);
}
.pgx-scope .pgx-coa__batch b { font-weight: 600; color: var(--pgx-ink-strong); letter-spacing: .02em; }

/* result rows */
.pgx-scope .pgx-coa__rows { margin: 0 0 calc(var(--fu) * 2.4); }

.pgx-scope .pgx-row {
	display: flex;
	align-items: center;
	gap: calc(var(--fu) * 2.4);
	padding: calc(var(--fu) * 2.2) calc(var(--fu) * .6);
	border-bottom: 1px solid rgba(110, 100, 86, .22);
}
.pgx-scope .pgx-row:last-child { border-bottom: 0; }
.pgx-scope .pgx-row--meta .pgx-row__label { color: var(--pgx-ink-mute); }
.pgx-scope .pgx-row__ico { flex: none; width: calc(var(--fu) * 4.4); height: auto; color: #6b6255; }
.pgx-scope .pgx-row__label {
	flex: 1;
	min-width: 0;
	font: 400 calc(var(--fu) * 3.5)/1.3 var(--pgx-sans);
	color: #2f2f2f;
}
.pgx-scope .pgx-row__val {
	font: 500 calc(var(--fu) * 2.8)/1 var(--pgx-sans);
	color: var(--pgx-ink-mute);
	white-space: nowrap;
}
.pgx-scope .pgx-row__res {
	display: inline-flex;
	align-items: center;
	gap: calc(var(--fu) * 2.2);
	flex: none;
	min-width: 30%;
	font: 500 calc(var(--fu) * 3.4)/1 var(--pgx-sans);
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--pgx-ink-strong);
}
.pgx-scope .pgx-row__res svg { width: calc(var(--fu) * 4.6); height: auto; color: #3c3c3c; }
.pgx-scope .pgx-row--fail .pgx-row__res,
.pgx-scope .pgx-row--fail .pgx-row__res svg { color: var(--pgx-danger); }
.pgx-scope .pgx-row--pending .pgx-row__res,
.pgx-scope .pgx-row--pending .pgx-row__res svg { color: var(--pgx-warn); }
.pgx-scope .pgx-row--none .pgx-row__label,
.pgx-scope .pgx-row--none .pgx-row__res,
.pgx-scope .pgx-row--none .pgx-row__res svg { color: #9b948b; }
.pgx-scope .pgx-row--none .pgx-row__ico { color: #c3bcb2; }

/* signature + stamp - ONLY rendered for verified batches */
.pgx-scope .pgx-coa__attest {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: end;
	gap: calc(var(--fu) * 2.4);
	min-height: calc(var(--fu) * 22);
	padding-top: calc(var(--fu) * 1.2);
}
.pgx-scope .pgx-sign { min-width: 0; padding-bottom: calc(var(--fu) * 1.4); }
.pgx-scope .pgx-sign__mark { display: block; width: calc(var(--fu) * 22); height: auto; color: #2a2a2a; }
.pgx-scope .pgx-sign__mark img { display: block; width: 100%; height: auto; }
.pgx-scope .pgx-sign__line {
	display: block;
	width: calc(var(--fu) * 24);
	height: 1px;
	margin: calc(var(--fu) * .6) 0 calc(var(--fu) * 1.2);
	background: rgba(60, 60, 60, .55);
}
.pgx-scope .pgx-sign__who {
	display: block;
	font: 400 calc(var(--fu) * 2.6)/1.35 var(--pgx-sans);
	color: #3f3f3f;
}
.pgx-scope .pgx-sign__who span { display: block; }
.pgx-scope .pgx-sign__who b { display: block; font-weight: 600; color: #2f2f2f; }

.pgx-scope .pgx-stamp {
	flex: none;
	width: calc(var(--fu) * 25);
	height: auto;
	color: #8f7a57;
	transform: rotate(-11deg);
	opacity: .92;
}

/* certificate states */
.pgx-scope .pgx-coa--unverified { --pgx-line: rgba(168, 69, 58, .45); background: linear-gradient(160deg, #f8f4ef 0%, #efe7dd 100%); }
.pgx-scope .pgx-coa--unverified .pgx-coa__doctype { color: var(--pgx-danger); }
.pgx-scope .pgx-coa--unverified .pgx-coa__batch { border-color: rgba(168, 69, 58, .4); }

.pgx-scope .pgx-coa--flagged { --pgx-line: rgba(176, 123, 40, .55); }
.pgx-scope .pgx-coa--flagged .pgx-coa__doctype { color: var(--pgx-warn); }

/* diagonal watermark for the unverified state */
.pgx-scope .pgx-coa__watermark {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	overflow: hidden;
}
.pgx-scope .pgx-coa__watermark span {
	font: 700 calc(var(--fu) * 5.6)/1 var(--pgx-sans);
	letter-spacing: .22em;
	text-transform: uppercase;
	color: rgba(168, 69, 58, .13);
	border: 2px solid rgba(168, 69, 58, .13);
	padding: calc(var(--fu) * 1.6) calc(var(--fu) * 3.2);
	transform: rotate(-16deg);
	white-space: nowrap;
}

.pgx-scope .pgx-coa__note {
	margin: calc(var(--fu) * 2.4) 0 0;
	font: 400 calc(var(--fu) * 2.6)/1.5 var(--pgx-sans);
	text-align: center;
	color: #6b6b6b;
}
.pgx-scope .pgx-coa__note a { color: var(--pgx-gold); }

/* --- 5f. Dark verification panel - the phone ----------------------------- */

.pgx-scope .pgx-panel {
	position: relative;
	z-index: 2;
	flex: 0 0 39%;
	margin: 0;
	padding: calc(var(--pu) * 14) calc(var(--pu) * 7.5) calc(var(--pu) * 10);
	/* metallic bezel: the gradient shows through the transparent border */
	border: calc(var(--pu) * 1.8) solid transparent;
	border-radius: calc(var(--pu) * 13);
	background:
		linear-gradient(160deg, #181818 0%, #0a0a0a 45%, #030303 100%) padding-box,
		var(--pgx-bezel-grad) border-box;
	box-shadow:
		0 0 0 1px #17120b,
		0 40px 64px -26px rgba(0, 0, 0, .85),
		inset 0 0 0 1px rgba(0, 0, 0, .9);
	color: #fff;
}
/* the stage's own panel: 39% of the stage */
.pgx-scope .pgx-verified-section__inner .pgx-panel { --pu: .39cqw; }

.pgx-scope .pgx-panel__title {
	margin: 0;
	padding: 0;
	font-family: var(--pgx-serif);
	font-weight: 600;
	font-size: calc(var(--pu) * 6.6);
	line-height: 1.15;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	color: #efe2c6;
}

.pgx-scope .pgx-panel__rule {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58%;
	margin: calc(var(--pu) * 4.4) auto calc(var(--pu) * 6.4);
}
.pgx-scope .pgx-panel__rule::before,
.pgx-scope .pgx-panel__rule::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(201, 164, 106, .8);
}
.pgx-scope .pgx-panel__rule i {
	width: calc(var(--pu) * 2);
	height: calc(var(--pu) * 2);
	margin: 0 calc(var(--pu) * 1.6);
	background: #d3b47c;
	transform: rotate(45deg);
}

.pgx-scope .pgx-panel__intro {
	margin: 0 0 calc(var(--pu) * 6);
	font: 400 calc(var(--pu) * 4.6)/1.55 var(--pgx-sans);
	text-align: left;
	color: rgba(255, 255, 255, .92);
}

.pgx-scope .pgx-form { display: block; margin: 0; }
.pgx-scope .pgx-form__field { position: relative; margin: 0 0 calc(var(--pu) * 4.4); }

.pgx-scope .pgx-input {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: calc(var(--pu) * 4) calc(var(--pu) * 4.4);
	border: 1px solid rgba(255, 255, 255, .38);
	border-radius: calc(var(--pu) * 1.2);
	background: rgba(255, 255, 255, .02);
	font: 400 calc(var(--pu) * 4.9)/1.2 var(--pgx-sans);
	letter-spacing: .02em;
	color: #fff;
	box-shadow: none;
	transition: border-color .25s var(--pgx-ease), background-color .25s var(--pgx-ease), box-shadow .25s var(--pgx-ease);
	-webkit-appearance: none;
	appearance: none;
}
.pgx-scope .pgx-input::placeholder { color: rgba(255, 255, 255, .62); letter-spacing: .01em; opacity: 1; }
.pgx-scope .pgx-input:focus {
	outline: 0;
	border-color: #d39448;
	background: rgba(255, 255, 255, .05);
	box-shadow: 0 0 0 3px rgba(211, 148, 72, .2);
}
.pgx-scope .pgx-input[aria-invalid="true"] { border-color: rgba(168, 69, 58, .8); }

.pgx-scope .pgx-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(var(--pu) * 3);
	width: 100%;
	margin: 0;
	padding: calc(var(--pu) * 4.2) calc(var(--pu) * 4);
	border: 0;
	border-radius: calc(var(--pu) * 1.4);
	background: var(--pgx-amber-grad);
	font: 500 calc(var(--pu) * 6.6)/1 var(--pgx-sans);
	letter-spacing: .04em;
	text-indent: .04em;
	text-transform: uppercase;
	text-decoration: none;
	color: #1a130a;
	cursor: pointer;
	transition: filter .3s var(--pgx-ease), transform .3s var(--pgx-ease), box-shadow .3s var(--pgx-ease);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 22px -14px rgba(211, 148, 72, .8);
}
.pgx-scope .pgx-submit svg { flex: none; width: calc(var(--pu) * 6); height: auto; stroke-width: 1.6; }
.pgx-scope .pgx-submit:hover:not(:disabled),
.pgx-scope .pgx-submit:focus-visible {
	color: #1a130a;
	background: var(--pgx-amber-grad);
	filter: brightness(1.07);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -10px rgba(211, 148, 72, .9), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.pgx-scope .pgx-submit:focus-visible { outline: 2px solid var(--pgx-gold-hi); outline-offset: 2px; }
.pgx-scope .pgx-submit:disabled { cursor: progress; opacity: .72; }
.pgx-scope .pgx-submit.is-busy .pgx-submit__label { opacity: .55; }

.pgx-scope .pgx-spinner {
	width: 13px;
	height: 13px;
	border: 2px solid rgba(32, 22, 7, .3);
	border-top-color: #201607;
	border-radius: 50%;
	animation: pgx-spin .7s linear infinite;
}
@keyframes pgx-spin { to { transform: rotate(360deg); } }

.pgx-scope .pgx-form__error {
	margin: calc(var(--pu) * 2.6) 0 0;
	font: 500 calc(var(--pu) * 3.8)/1.4 var(--pgx-sans);
	color: #e0a49c;
	text-align: center;
}
.pgx-scope .pgx-form__error:empty { display: none; }

.pgx-scope .pgx-panel__links {
	margin: calc(var(--pu) * 11) 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: calc(var(--pu) * 8);
}
.pgx-scope .pgx-panel__links li { margin: 0; padding: 0; }
.pgx-scope .pgx-panel__links a {
	display: inline-flex;
	align-items: center;
	gap: calc(var(--pu) * 3);
	font: 400 calc(var(--pu) * 4.3)/1.3 var(--pgx-sans);
	white-space: nowrap;
	color: #e9d0a1;
	text-decoration: underline;
	text-underline-offset: calc(var(--pu) * 1.2);
	text-decoration-thickness: 1px;
	transition: color .25s var(--pgx-ease);
}
.pgx-scope .pgx-panel__links a:hover { color: var(--pgx-gold-hi); }
.pgx-scope .pgx-panel__links svg { flex: none; width: calc(var(--pu) * 6.6); height: auto; }
.pgx-scope .pgx-panel__links .pgx-arrow { margin-left: calc(var(--pu) * .6); width: calc(var(--pu) * 5); height: auto; }

.pgx-scope .pgx-panel__foot {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: calc(var(--pu) * 2.4);
	margin-top: calc(var(--pu) * 10);
	padding-top: calc(var(--pu) * 8);
	border-top: 1px solid rgba(255, 255, 255, .22);
	font: 400 calc(var(--pu) * 4.3)/1.3 var(--pgx-sans);
	white-space: nowrap;
	color: #fff;
}
.pgx-scope .pgx-panel__foot span { display: inline-flex; align-items: center; gap: calc(var(--pu) * 2.4); }
.pgx-scope .pgx-panel__foot span::before {
	content: "";
	width: calc(var(--pu) * 1.1);
	height: calc(var(--pu) * 1.1);
	border-radius: 50%;
	background: #fff;
}
.pgx-scope .pgx-panel__foot span:first-child::before { display: none; }

/* result status pill inside the panel */
.pgx-scope .pgx-panel__status {
	display: none;
	align-items: center;
	gap: calc(var(--pu) * 2.4);
	margin: calc(var(--pu) * 4) 0 0;
	padding: calc(var(--pu) * 2.8) calc(var(--pu) * 3.4);
	border-radius: calc(var(--pu) * 1.2);
	font: 500 calc(var(--pu) * 3.8)/1.4 var(--pgx-sans);
}
.pgx-scope .pgx-panel__status.is-on { display: flex; }
.pgx-scope .pgx-panel__status svg { flex: none; width: calc(var(--pu) * 5); height: auto; }
.pgx-scope .pgx-panel__status--ok {
	border: 1px solid rgba(63, 125, 85, .5);
	background: rgba(63, 125, 85, .13);
	color: #a9d6b8;
}
.pgx-scope .pgx-panel__status--bad {
	border: 1px solid rgba(168, 69, 58, .55);
	background: rgba(168, 69, 58, .14);
	color: #e4aca4;
}
.pgx-scope .pgx-panel__status--warn {
	border: 1px solid rgba(176, 123, 40, .55);
	background: rgba(176, 123, 40, .14);
	color: #e6c88a;
}

/* ==========================================================================
   6. Result transitions
   ========================================================================== */

.pgx-scope .pgx-result { position: relative; }
.pgx-scope .pgx-result.is-loading .pgx-coa { opacity: .38; transform: scale(.985); }
.pgx-scope .pgx-result[data-state] .pgx-coa {
	/* entry first, then the float takes over - both touch transform, so the
	   float is listed second and delayed to match the entry's duration */
	animation: pgx-in .5s var(--pgx-ease) both, pgx-float 7s ease-in-out infinite .5s;
}
@keyframes pgx-in {
	from { opacity: 0; transform: translateY(10px) scale(.985); }
	to { opacity: 1; transform: none; }
}

.pgx-scope .pgx-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   7. Standalone COA and form (shortcodes outside the section)
   ========================================================================== */

.pgx-scope .pgx-coa--standalone {
	--fu: 5.4px;
	max-width: 460px;
	margin-inline: auto;
}

.pgx-scope .pgx-panel--standalone {
	--pu: 3.8px;
	flex: none;
	width: 100%;
	max-width: 380px;
	margin: 0 auto;
}

/* ==========================================================================
   7b. QR codes
   ========================================================================== */

.pgx-scope .pgx-coa__qr {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(var(--fu) * .8);
	padding-bottom: calc(var(--fu) * 1.4);
}
.pgx-scope .pgx-coa__qr svg {
	display: block;
	width: calc(var(--fu) * 13);
	height: auto;
	background: #fff;
}
.pgx-scope .pgx-coa__qr span {
	font: 400 calc(var(--fu) * 2)/1.3 var(--pgx-sans);
	letter-spacing: .02em;
	color: #7a7369;
	white-space: nowrap;
}

.pgx-scope .pgx-qr-figure {
	margin: 0;
	display: inline-block;
	text-align: center;
}
.pgx-scope .pgx-qr-figure svg {
	display: block;
	max-width: 100%;
	height: auto;
	background: #fff;
}
.pgx-scope .pgx-qr-figure figcaption {
	margin-top: 8px;
	font: 600 12px/1.4 var(--pgx-sans);
	letter-spacing: .1em;
	color: var(--pgx-ink);
}

/* ==========================================================================
   7d. Motion
   --------------------------------------------------------------------------
   The card is meant to feel like a living document rather than a screenshot.
   Everything here animates transform, opacity or filter only, so none of it
   forces layout. The whole block is switched off under prefers-reduced-motion
   at the foot of this file.
   ========================================================================== */

/* --- the card breathes -------------------------------------------------- */
@keyframes pgx-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-4px); }
}

/* --- a light sweeps across the paper ------------------------------------ */
@keyframes pgx-sheen {
	0%       { transform: translateX(-150%) rotate(10deg); opacity: 0; }
	8%       { opacity: 1; }
	42%      { opacity: 1; }
	60%,100% { transform: translateX(260%) rotate(10deg); opacity: 0; }
}

/* --- the seal's outer ring turns forever -------------------------------- */
@keyframes pgx-ring { to { transform: rotate(360deg); } }

/* --- gold details glimmer ----------------------------------------------- */
@keyframes pgx-glimmer {
	0%, 100% { opacity: .55; }
	50%      { opacity: 1; }
}

/* --- ticks give a slow heartbeat ---------------------------------------- */
@keyframes pgx-tick {
	0%, 100% { transform: scale(1); opacity: .85; }
	50%      { transform: scale(1.14); opacity: 1; }
}

/* --- the QR glows so it reads as scannable ------------------------------ */
@keyframes pgx-qr-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(169, 142, 91, 0); }
	50%      { box-shadow: 0 0 10px 1px rgba(169, 142, 91, .55); }
}

/* --- entrances ----------------------------------------------------------- */
@keyframes pgx-draw      { to { stroke-dashoffset: 0; } }
@keyframes pgx-seal-in {
	0%   { opacity: 0; transform: scale(1.75) rotate(-34deg); }
	55%  { opacity: 1; transform: scale(.93) rotate(-4deg); }
	100% { opacity: .92; transform: scale(1) rotate(-11deg); }
}
@keyframes pgx-row-in {
	from { opacity: 0; transform: translateX(-8px); }
	to   { opacity: 1; transform: none; }
}
@keyframes pgx-rise {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}

/* --- wiring -------------------------------------------------------------- */

.pgx-scope .pgx-coa {
	overflow: hidden;
	will-change: transform;
}

/* the travelling sheen */
.pgx-scope .pgx-coa::after {
	content: "";
	position: absolute;
	top: -45%;
	left: 0;
	width: 38%;
	height: 190%;
	z-index: 4;
	pointer-events: none;
	background: linear-gradient(90deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, .7) 50%,
		rgba(255, 255, 255, 0) 100%);
	transform: translateX(-150%) rotate(10deg);
	animation: pgx-sheen 6.5s ease-in-out infinite 1.2s;
}

/* the hairlines glimmer out of step with each other */
.pgx-scope .pgx-coa__frame::before { animation: pgx-glimmer 5.5s ease-in-out infinite; }
.pgx-scope .pgx-coa__frame::after  { animation: pgx-glimmer 4.2s ease-in-out infinite .8s; }

.pgx-scope .pgx-coa__mono { animation: pgx-glimmer 4.8s ease-in-out infinite; }

/* the seal: stamped on arrival, ring turning ever after */
.pgx-scope .pgx-stamp { animation: pgx-seal-in 1s cubic-bezier(.2, .8, .3, 1) both .35s; }
.pgx-scope .pgx-stamp__ring {
	transform-box: view-box;
	transform-origin: 50px 50px;
	animation: pgx-ring 26s linear infinite;
}

/* the signature writes itself */
.pgx-scope .pgx-sign__mark path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: pgx-draw 1.1s ease-out forwards;
}
.pgx-scope .pgx-sign__mark path:nth-child(1) { animation-delay: .25s; }
.pgx-scope .pgx-sign__mark path:nth-child(2) { animation-delay: .85s; animation-duration: .5s; }
.pgx-scope .pgx-sign__mark path:nth-child(3) { animation-delay: 1.05s; animation-duration: .7s; }
.pgx-scope .pgx-sign__mark path:nth-child(4) { animation-delay: 1.5s; animation-duration: .5s; }

/* rows deal themselves in, then the passed ticks keep a slow pulse */
.pgx-scope .pgx-coa__rows .pgx-row { animation: pgx-row-in .45s ease both; }
.pgx-scope .pgx-coa__rows .pgx-row:nth-child(1) { animation-delay: .06s; }
.pgx-scope .pgx-coa__rows .pgx-row:nth-child(2) { animation-delay: .13s; }
.pgx-scope .pgx-coa__rows .pgx-row:nth-child(3) { animation-delay: .20s; }
.pgx-scope .pgx-coa__rows .pgx-row:nth-child(4) { animation-delay: .27s; }
.pgx-scope .pgx-coa__rows .pgx-row:nth-child(5) { animation-delay: .34s; }

.pgx-scope .pgx-row--pass .pgx-row__res svg { animation: pgx-tick 3.4s ease-in-out infinite; }
.pgx-scope .pgx-row:nth-child(2) .pgx-row__res svg { animation-delay: .35s; }
.pgx-scope .pgx-row:nth-child(3) .pgx-row__res svg { animation-delay: .7s; }
.pgx-scope .pgx-row:nth-child(4) .pgx-row__res svg { animation-delay: 1.05s; }

.pgx-scope .pgx-coa__doctype,
.pgx-scope .pgx-coa__batch { animation: pgx-rise .5s ease both; }
.pgx-scope .pgx-coa__batch { animation-delay: .08s; }

.pgx-scope .pgx-coa__qr svg { animation: pgx-qr-glow 3.8s ease-in-out infinite 1.4s; }

/* the unverified watermark drifts rather than sitting dead still */
.pgx-scope .pgx-coa__watermark span { animation: pgx-glimmer 6s ease-in-out infinite; }

/* ==========================================================================
   7e. Verification portal - [paragenix_batch_portal]
   --------------------------------------------------------------------------
   The black two-column card: 1. Enter batch details / 2. Verification result,
   with the three-item strip underneath. Stacks below 720px of its own width.
   ========================================================================== */

.pgx-scope .pgx-portal {
	--pgx-p-gold: #dda33a;
	--pgx-p-gold-dk: #b88a2c;
	--pgx-p-line: rgba(205, 160, 82, .62);
	--pgx-p-ok: #5cbf4a;
	--pgx-p-warn: #e0a645;
	--pgx-p-bad: #e06a5c;

	container: pgx-portal / inline-size;
	font-family: var(--pgx-sans);
	color: #e9e5de;
	-webkit-font-smoothing: antialiased;
}

.pgx-scope .pgx-portal__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	border: 1px solid var(--pgx-p-line);
	border-radius: 8px;
	background: #0d0d0d;
	overflow: hidden;
}

.pgx-scope .pgx-portal__col { padding: 32px 30px 30px; min-width: 0; }
.pgx-scope .pgx-portal__col--result { border-left: 1px solid var(--pgx-p-line); }

.pgx-scope .pgx-portal__heading {
	margin: 0 0 22px;
	padding: 0;
	font: 700 17px/1.25 var(--pgx-sans);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pgx-p-gold);
}
.pgx-scope .pgx-portal__heading span { margin-right: .15em; }

/* fields */
.pgx-scope .pgx-portal__form { margin: 0; }
.pgx-scope .pgx-pfield { margin: 0 0 16px; }
.pgx-scope .pgx-pfield__label {
	display: block;
	margin: 0 0 8px;
	font: 400 15px/1.3 var(--pgx-sans);
	color: #e9e5de;
}
.pgx-scope .pgx-pfield__req { color: #e05a4e; }
.pgx-scope .pgx-pfield__wrap { position: relative; }
.pgx-scope .pgx-pfield__input {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 14px 46px 14px 16px;
	border: 1px solid var(--pgx-p-line);
	border-radius: 4px;
	background: #101010;
	font: 400 16px/1.25 var(--pgx-sans);
	color: #fff;
	box-shadow: none;
	transition: border-color .25s var(--pgx-ease), box-shadow .25s var(--pgx-ease);
	-webkit-appearance: none;
	appearance: none;
}
.pgx-scope .pgx-pfield__input::placeholder { color: #7d7870; opacity: 1; }
.pgx-scope .pgx-pfield__input:focus {
	outline: 0;
	border-color: var(--pgx-p-gold);
	background: #1b1b1b;
	box-shadow: 0 0 0 3px rgba(212, 164, 60, .18);
}
.pgx-scope .pgx-pfield.is-invalid .pgx-pfield__input { border-color: rgba(224, 90, 78, .85); }

/* green tick inside a completed field */
.pgx-scope .pgx-pfield__ok {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	color: var(--pgx-p-ok);
	opacity: 0;
	transform: scale(.6);
	transition: opacity .25s var(--pgx-ease), transform .25s var(--pgx-ease);
	pointer-events: none;
}
.pgx-scope .pgx-pfield__ok svg { display: block; width: 100%; height: 100%; }
.pgx-scope .pgx-pfield.is-valid .pgx-pfield__ok { opacity: 1; transform: none; }

.pgx-scope .pgx-portal__hint {
	margin: -4px 0 8px;
	font: 400 13.5px/1.5 var(--pgx-sans);
	color: #b9b3aa;
}
.pgx-scope .pgx-portal__lock {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 20px;
	font: 400 13.5px/1.4 var(--pgx-sans);
	color: #b9b3aa;
}
.pgx-scope .pgx-portal__lock svg { flex: none; width: 15px; height: 15px; color: var(--pgx-p-gold); }

.pgx-scope .pgx-portal__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 15px 20px;
	border: 0;
	border-radius: 6px;
	background: linear-gradient(180deg, #e8ae48 0%, #d69a36 55%, #c48a2a 100%);
	font: 700 15px/1 var(--pgx-sans);
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: #1c1407;
	cursor: pointer;
	transition: filter .25s var(--pgx-ease), transform .25s var(--pgx-ease);
}
.pgx-scope .pgx-portal__submit svg { flex: none; width: 20px; height: 10px; }
.pgx-scope .pgx-portal__submit:hover:not(:disabled),
.pgx-scope .pgx-portal__submit:focus-visible {
	color: #1c1407;
	background: var(--pgx-p-gold);
	filter: brightness(1.08);
	transform: translateY(-1px);
}
.pgx-scope .pgx-portal__submit:focus-visible { outline: 2px solid #f1d58f; outline-offset: 2px; }
.pgx-scope .pgx-portal__submit:disabled { cursor: progress; opacity: .75; }

.pgx-scope .pgx-portal__error {
	margin: 10px 0 0;
	font: 500 13.5px/1.4 var(--pgx-sans);
	color: #f0a79d;
}
.pgx-scope .pgx-portal__error:empty { display: none; }

/* sample links */
.pgx-scope .pgx-portal__links {
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, .16);
}
.pgx-scope .pgx-portal__links li { margin: 0; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.pgx-scope .pgx-portal__links a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 2px;
	font: 400 15px/1.3 var(--pgx-sans);
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
	color: #f1ede6;
	transition: color .25s var(--pgx-ease);
}
.pgx-scope .pgx-portal__links a:hover { color: var(--pgx-p-gold); }
.pgx-scope .pgx-portal__links a > svg:first-child { flex: none; width: 20px; height: 20px; color: var(--pgx-p-gold); }
.pgx-scope .pgx-portal__links a span { flex: 1; }
.pgx-scope .pgx-portal__links .pgx-arrow { flex: none; width: 20px; height: 10px; color: var(--pgx-p-gold); }

/* result column */
.pgx-scope .pgx-portal__result { position: relative; transition: opacity .3s var(--pgx-ease); }
.pgx-scope .pgx-portal__result.is-loading { opacity: .45; }

.pgx-scope .pgx-portal__empty {
	padding: 34px 26px;
	border: 1.5px dashed rgba(201, 164, 106, .5);
	border-radius: 8px;
	font: 400 16px/1.6 var(--pgx-sans);
	text-align: center;
	color: #c9c3ba;
}
.pgx-scope .pgx-portal__empty b { color: #fff; font-weight: 600; }

.pgx-scope .pgx-pres {
	--pgx-tone: var(--pgx-p-ok);
	padding: 24px 24px 20px;
	border: 1px solid var(--pgx-p-line);
	border-radius: 8px;
	background: #0c0c0c;
	animation: pgx-rise .45s ease both;
}
.pgx-scope .pgx-pres--warn { --pgx-tone: var(--pgx-p-warn); }
.pgx-scope .pgx-pres--bad  { --pgx-tone: var(--pgx-p-bad); }

.pgx-scope .pgx-pres__head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 22px;
}
.pgx-scope .pgx-pres__shield { flex: none; width: 60px; height: 66px; color: var(--pgx-tone); }
.pgx-scope .pgx-pres__shield svg { display: block; width: 100%; height: 100%; stroke-width: 1.3; }
.pgx-scope .pgx-pres__title {
	margin: 0;
	font: 700 clamp(20px, 2vw, 26px)/1.1 var(--pgx-sans);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--pgx-tone);
}
.pgx-scope .pgx-pres__sub {
	margin: 4px 0 0;
	font: 400 16px/1.4 var(--pgx-sans);
	color: #ece8e1;
}

.pgx-scope .pgx-pres__rows { margin: 0 0 22px; padding: 0; }
.pgx-scope .pgx-pres__rows > div {
	display: grid;
	grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
	gap: 12px;
	padding: 9px 0;
}
.pgx-scope .pgx-pres__rows dt,
.pgx-scope .pgx-pres__rows dd {
	margin: 0;
	font: 400 16px/1.4 var(--pgx-sans);
}
.pgx-scope .pgx-pres__rows dt { color: #d8d3cb; }
.pgx-scope .pgx-pres__rows dd { color: #fff; overflow-wrap: anywhere; }
.pgx-scope .pgx-pres__rows .pgx-pres__status { color: var(--pgx-tone); font-weight: 600; letter-spacing: .03em; }

.pgx-scope .pgx-pres__actions {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	margin: 0 0 16px;
}
.pgx-scope .pgx-pres__actions > :only-child { grid-column: 1 / -1; }
.pgx-scope .pgx-pres__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid var(--pgx-p-gold);
	border-radius: 4px;
	font: 600 14px/1.1 var(--pgx-sans);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: filter .25s var(--pgx-ease), background-color .25s var(--pgx-ease), color .25s var(--pgx-ease);
}
.pgx-scope .pgx-pres__btn svg { flex: none; width: 20px; height: 20px; }
.pgx-scope .pgx-pres__btn--ghost { color: var(--pgx-p-gold); background: transparent; }
.pgx-scope .pgx-pres__btn--ghost:hover { color: #1c1407; background: var(--pgx-p-gold); }
.pgx-scope .pgx-pres__btn--gold { justify-content: space-between; color: #1c1407; background: var(--pgx-p-gold); }
.pgx-scope .pgx-pres__btn--gold:hover { color: #1c1407; filter: brightness(1.08); }

.pgx-scope .pgx-pres__note {
	margin: 0;
	font: 400 14px/1.5 var(--pgx-sans);
	text-align: center;
	color: #b9b3aa;
	overflow-wrap: anywhere;
}
.pgx-scope .pgx-pres__note--warn { color: #e6c88a; }

/* the three-item strip under the card */
.pgx-scope .pgx-portal__strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}
.pgx-scope .pgx-portal__strip li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0;
	padding: 4px 12px;
	font: 500 13px/1.45 var(--pgx-sans);
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #e9e5de;
}
.pgx-scope .pgx-portal__strip li + li { border-left: 1px solid var(--pgx-p-line); }
.pgx-scope .pgx-portal__badge {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: var(--pgx-p-gold);
}
.pgx-scope .pgx-portal__badge svg { width: 100%; height: 100%; stroke-width: 1.2; }

@container pgx-portal (max-width: 720px) {
	.pgx-scope .pgx-portal__card { grid-template-columns: minmax(0, 1fr); }
	.pgx-scope .pgx-portal__col { padding: 28px 22px 26px; }
	.pgx-scope .pgx-portal__col--result { border-left: 0; border-top: 1px solid var(--pgx-p-line); }
	.pgx-scope .pgx-portal__strip li { flex-direction: column; text-align: center; gap: 10px; padding: 4px 6px; font-size: 11.5px; }
}

@container pgx-portal (max-width: 380px) {
	.pgx-scope .pgx-pres { padding: 20px 16px 16px; }
	.pgx-scope .pgx-pres__actions { grid-template-columns: minmax(0, 1fr); }
	.pgx-scope .pgx-pres__shield { width: 48px; height: 54px; }
}

/* ==========================================================================
   7f. Certificates of Analysis library - [paragenix_coa_library]
   ========================================================================== */

.pgx-scope .pgx-lib {
	--pgx-l-gold: #d9a84e;
	--pgx-l-line: rgba(214, 168, 92, .7);
	--pgx-l-ivory: #efe9df;

	container: pgx-lib / inline-size;
	max-width: 1000px;
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) clamp(16px, 3vw, 32px);
	font-family: var(--pgx-sans);
	color: var(--pgx-l-ivory);
	background: var(--pgx-lib-bg, #0a0a0a);
	-webkit-font-smoothing: antialiased;
}

/* heading block */
.pgx-scope .pgx-lib__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.pgx-scope .pgx-lib__kicker {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 22px;
	font: 600 clamp(15px, 1.6vw, 20px)/1 var(--pgx-serif);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--pgx-l-gold);
}
.pgx-scope .pgx-lib__kicker::before,
.pgx-scope .pgx-lib__kicker::after { content: ""; width: clamp(36px, 6vw, 58px); height: 1px; background: var(--pgx-l-gold); }

.pgx-scope .pgx-lib__title {
	margin: 0;
	padding: 0;
	font: 600 clamp(38px, 7.4vw, 82px)/1.04 var(--pgx-serif);
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--pgx-l-ivory);
}
.pgx-scope .pgx-lib__title span { display: block; }
.pgx-scope .pgx-lib__gold {
	background: linear-gradient(180deg, #f0c060 0%, #dc9f3c 55%, #b9812c 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pgx-scope .pgx-lib__rule {
	display: flex;
	align-items: center;
	width: min(460px, 80%);
	margin: 18px 0 22px;
	color: #f0c060;
}
.pgx-scope .pgx-lib__rule::before,
.pgx-scope .pgx-lib__rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(214, 168, 92, 0), var(--pgx-l-line)); }
.pgx-scope .pgx-lib__rule::after { background: linear-gradient(90deg, var(--pgx-l-line), rgba(214, 168, 92, 0)); }
.pgx-scope .pgx-lib__rule svg { flex: none; width: 22px; height: 22px; margin: 0 6px; }

.pgx-scope .pgx-lib__sub {
	margin: 0 0 14px;
	font: 500 clamp(19px, 2.4vw, 28px)/1.3 var(--pgx-serif);
	color: var(--pgx-l-ivory);
}
.pgx-scope .pgx-lib__note {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font: 400 clamp(14px, 1.4vw, 17px)/1.4 var(--pgx-sans);
	color: var(--pgx-l-gold);
}
.pgx-scope .pgx-lib__note svg { flex: none; width: 28px; height: 28px; }
.pgx-scope .pgx-lib__intro {
	width: min(600px, 100%);
	margin: 22px 0 0;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, .22);
	font: 400 clamp(14.5px, 1.5vw, 17px)/1.7 var(--pgx-sans);
	color: #ddd6cb;
}

/* product picker */
.pgx-scope .pgx-lib__select {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: clamp(48px, 7vw, 80px) 0 22px;
	padding: 0;
	font: 600 clamp(16px, 1.8vw, 21px)/1 var(--pgx-serif);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pgx-l-gold);
}
.pgx-scope .pgx-lib__select::before,
.pgx-scope .pgx-lib__select::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(214, 168, 92, 0), var(--pgx-l-line)); }
.pgx-scope .pgx-lib__select::after { background: linear-gradient(90deg, var(--pgx-l-line), rgba(214, 168, 92, 0)); }

.pgx-scope .pgx-lib__tabs {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin: 0 0 30px;
}
.pgx-scope .pgx-lib__tab {
	position: relative;
	margin: 0;
	padding: 8px 10px 34px;
	border: 0;
	border-radius: 0;
	background: none;
	font: 600 clamp(17px, 2.4vw, 25px)/1 var(--pgx-serif);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pgx-l-ivory);
	cursor: pointer;
	transition: color .25s var(--pgx-ease);
}
.pgx-scope .pgx-lib__tab + .pgx-lib__tab { border-left: 1px solid rgba(214, 168, 92, .45); }
.pgx-scope .pgx-lib__tab sup { font-size: .5em; vertical-align: .9em; }
/* coloured underline under every product */
.pgx-scope .pgx-lib__tab::before {
	content: "";
	position: absolute;
	left: 15%;
	right: 15%;
	bottom: 20px;
	height: 2px;
	background: var(--pgx-tab, var(--pgx-l-gold));
	opacity: .85;
}
/* chevron under the selected one */
.pgx-scope .pgx-lib__tab::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 9px;
	height: 9px;
	margin-left: -5px;
	border-right: 1.5px solid var(--pgx-l-gold);
	border-bottom: 1.5px solid var(--pgx-l-gold);
	transform: rotate(45deg);
	opacity: 0;
	transition: opacity .25s var(--pgx-ease);
}
.pgx-scope .pgx-lib__tab[aria-selected="true"]::after { opacity: 1; }
.pgx-scope .pgx-lib__tab[aria-selected="true"]::before { opacity: 1; height: 3px; }
.pgx-scope .pgx-lib__tab:hover,
.pgx-scope .pgx-lib__tab:focus-visible { color: #fff; background: none; }
.pgx-scope .pgx-lib__tab:focus-visible { outline: 2px solid var(--pgx-l-gold); outline-offset: -2px; }

/* documents card */
.pgx-scope .pgx-lib__card {
	padding: clamp(22px, 3.4vw, 36px) clamp(18px, 3.4vw, 34px) clamp(14px, 2vw, 22px);
	border: 1.5px solid var(--pgx-l-line);
	border-radius: 8px;
	background: #0b0b0b;
}
.pgx-scope .pgx-lib__product {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0 0 24px;
	padding: 0;
}
.pgx-scope .pgx-lib__pname {
	font: 600 clamp(32px, 4.6vw, 48px)/1 var(--pgx-serif);
	letter-spacing: .03em;
	color: var(--pgx-l-gold);
}
.pgx-scope .pgx-lib__pname sup { font-size: .45em; vertical-align: 1.1em; }
.pgx-scope .pgx-lib__dash {
	font: 400 clamp(15px, 1.8vw, 20px)/1.2 var(--pgx-sans);
	text-transform: uppercase;
	color: var(--pgx-l-ivory);
}

.pgx-scope .pgx-lib__ico {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	border: 1.5px solid var(--pgx-l-gold);
	border-radius: 50%;
	color: var(--pgx-l-gold);
}
.pgx-scope .pgx-lib__ico svg { width: 30px; height: 30px; }

.pgx-scope .pgx-lib__meta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	padding: 0 0 24px;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.pgx-scope .pgx-lib__metaitem {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
}
.pgx-scope .pgx-lib__metaitem + .pgx-lib__metaitem { padding-left: clamp(16px, 4vw, 54px); border-left: 1px solid rgba(255, 255, 255, .18); }
.pgx-scope .pgx-lib__label { display: block; margin: 0 0 6px; font: 400 15px/1.3 var(--pgx-sans); color: var(--pgx-l-ivory); }
.pgx-scope .pgx-lib__value { display: block; font: 400 clamp(16px, 1.9vw, 19px)/1.3 var(--pgx-sans); color: #fff; overflow-wrap: anywhere; }

.pgx-scope .pgx-lib__doc {
	display: grid;
	grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 24px 0;
}
.pgx-scope .pgx-lib__doc + .pgx-lib__doc { border-top: 1px solid rgba(255, 255, 255, .18); }
.pgx-scope .pgx-lib__doctitle { display: block; margin: 0 0 6px; font: 500 14.5px/1.35 var(--pgx-sans); text-transform: uppercase; color: var(--pgx-l-ivory); }
.pgx-scope .pgx-lib__docdesc { display: block; font: 400 14px/1.55 var(--pgx-sans); color: #d6d0c6; }

.pgx-scope .pgx-lib__selectwrap { position: relative; min-width: 0; }
.pgx-scope .pgx-lib__selectwrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 7px;
	height: 7px;
	margin-top: -6px;
	border-right: 1.5px solid #d6d0c6;
	border-bottom: 1.5px solid #d6d0c6;
	transform: rotate(45deg);
	pointer-events: none;
}
.pgx-scope .pgx-lib__picker {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 15px 40px 15px 16px;
	border: 1px solid var(--pgx-l-line);
	border-radius: 4px;
	background: #0b0b0b;
	font: 400 13.5px/1.2 var(--pgx-sans);
	color: var(--pgx-l-ivory);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.pgx-scope .pgx-lib__picker:focus { outline: 0; border-color: var(--pgx-l-gold); box-shadow: 0 0 0 3px rgba(217, 168, 78, .2); }

.pgx-scope .pgx-lib__view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid var(--pgx-l-line);
	border-radius: 4px;
	font: 500 13.5px/1 var(--pgx-sans);
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: var(--pgx-l-gold);
	transition: background-color .25s var(--pgx-ease), color .25s var(--pgx-ease);
}
.pgx-scope .pgx-lib__view svg:first-child { width: 22px; height: 22px; }
.pgx-scope .pgx-lib__view svg:last-child { width: 18px; height: 10px; }
.pgx-scope .pgx-lib__view:hover { color: #140e05; background: var(--pgx-l-gold); }
.pgx-scope .pgx-lib__view.is-off { opacity: .4; pointer-events: none; }

.pgx-scope .pgx-lib__empty { margin: 40px 0 0; text-align: center; color: #b9b3aa; }

/* narrower: icon + text on top, then picker and button side by side */
@container pgx-lib (max-width: 760px) {
	.pgx-scope .pgx-lib__doc { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 12px; }
	.pgx-scope .pgx-lib__doctext { grid-column: 2 / 4; }
	.pgx-scope .pgx-lib__selectwrap { grid-column: 1 / 3; }
	.pgx-scope .pgx-lib__view { grid-column: 3 / 4; }
}
/* phones: keep batch number and test date side by side, just smaller */
@container pgx-lib (max-width: 480px) {
	.pgx-scope .pgx-lib__ico { width: 46px; height: 46px; }
	.pgx-scope .pgx-lib__ico svg { width: 22px; height: 22px; }
	.pgx-scope .pgx-lib__metaitem { gap: 10px; }
	.pgx-scope .pgx-lib__metaitem + .pgx-lib__metaitem { padding-left: 12px; }
	.pgx-scope .pgx-lib__label { font-size: 12.5px; }
	.pgx-scope .pgx-lib__value { font-size: 14.5px; }
	.pgx-scope .pgx-lib__picker { padding: 12px 30px 12px 10px; font-size: 12px; }
	.pgx-scope .pgx-lib__selectwrap::after { right: 11px; }
	.pgx-scope .pgx-lib__view { gap: 7px; padding: 12px 10px; font-size: 11.5px; }
	.pgx-scope .pgx-lib__view svg:first-child { width: 17px; height: 17px; }
	.pgx-scope .pgx-lib__view svg:last-child { width: 13px; }
	.pgx-scope .pgx-lib__tab { padding-left: 4px; padding-right: 4px; }
}


/* ==========================================================================
   8. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.pgx-scope .pgx-verified-section__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: clamp(34px, 6vw, 54px);
	}
	.pgx-scope .pgx-copy { max-width: 620px; }
	.pgx-scope .pgx-lead { max-width: 560px; }
	.pgx-scope .pgx-actions { flex-direction: row; flex-wrap: wrap; }
}

/*
 * Narrow stage (phones): the composition stops being a group of objects and
 * becomes a simple stack - the panel, then the certificate in its frame. The
 * folio, pedestal and hero photo only make sense side by side with the panel.
 */
@container pgx-stage (max-width: 620px) {
	.pgx-scope .pgx-verified-section__inner .pgx-panel {
		--pu: calc(min(100cqw, 400px) / 100);
		order: 1;
		flex: none;
		width: 100%;
		max-width: 400px;
		margin: 0 auto;
	}
	.pgx-scope .pgx-display {
		--fu: calc(min(100cqw, 420px) / 100);
		order: 2;
		flex: none;
		width: 100%;
		max-width: 420px;
		margin: 28px auto 0;
		padding: 0;
	}
	.pgx-scope .pgx-box,
	.pgx-scope .pgx-pedestal,
	.pgx-scope .pgx-hero { display: none; }
	.pgx-scope .pgx-display .pgx-coa-wrap {
		flex: 1 1 auto;
		visibility: visible;
		padding-bottom: calc(var(--fu) * 9);
	}
}

@media (max-width: 560px) {
	.pgx-scope .pgx-actions { flex-direction: column; align-self: stretch; width: 100%; }
	.pgx-scope .pgx-btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.pgx-verified-section *,
	.pgx-verified-section *::before,
	.pgx-verified-section *::after,
	.pgx-scope *,
	.pgx-scope *::before,
	.pgx-scope *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* ==========================================================================
   9. Print - a clean COA on paper
   ========================================================================== */

@media print {
	.pgx-verified-section { background: #fff; padding: 0; }
	.pgx-verified-section::before,
	.pgx-scope .pgx-copy, .pgx-scope .pgx-box, .pgx-scope .pgx-pedestal, .pgx-scope .pgx-panel, .pgx-scope .pgx-hero, .pgx-scope .pgx-coa-wrap__brand { display: none !important; }
	.pgx-scope .pgx-verified-section__inner { display: block; }
	.pgx-scope .pgx-display { --fu: 6px; display: block; padding: 0; }
	/* the black gold-trimmed frame is chrome for the screen; paper gets the
	   plain certificate on its own, nothing to print in expensive black ink */
	.pgx-scope .pgx-coa-wrap {
		flex: none; width: 100%; max-width: 620px; margin: 0 auto;
		background: none; padding: 0; box-shadow: none; visibility: visible !important;
	}
	.pgx-scope .pgx-coa-wrap::before { display: none; }
	.pgx-scope .pgx-coa, .pgx-scope .pgx-coa *, .pgx-scope .pgx-coa *::before, .pgx-scope .pgx-coa *::after { animation: none !important; }
	.pgx-scope .pgx-coa::after { display: none !important; }
	.pgx-scope .pgx-sign__mark path { stroke-dashoffset: 0 !important; }
}
