/**
 * Hand-maintained COA page (page-coa.php). Header banner + readable content
 * typography for whatever the human writes in the block editor, plus the
 * spec-pill grid (see altitude-aminos.css) for per-lot data and the
 * alphabetized quicknav that page-coa.php auto-builds from the content's
 * own <h2> product headings — no code change needed when a lot or product
 * is added, only new content.
 */

.coa-page-head {
	background: var(--navy-950);
	color: #fff;
	padding: 64px 32px 44px;
}
.coa-page-head .eyebrow { margin-bottom: 14px; }
.coa-page-head h1 { font-size: clamp(30px,4vw,46px); max-width: 600px; margin-bottom: 16px; }
.coa-page-head p { color: var(--ice-200); max-width: 560px; font-size: 15.5px; }

.coa-quicknav {
	background: var(--navy-800);
	border-bottom: 1px solid rgba(255,255,255,.08);
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--altitude-header-h, 0px));
	z-index: 90;
}
.coa-quicknav-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 32px;
}
.coa-quicknav a {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--ice-200);
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 999px;
	padding: 5px 14px;
	text-decoration: none;
}
.coa-quicknav a:hover { color: var(--cyan-400); border-color: var(--cyan-400); }

.coa-content {
	padding: 56px 32px;
	max-width: 760px;
	font-size: 15.5px;
	color: var(--slate-700);
}
.coa-content h2 {
	font-size: 24px;
	margin: 48px 0 16px;
	padding-top: 32px;
	border-top: 1px solid rgba(255,255,255,.1);
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--altitude-header-h, 0px) + var(--altitude-quicknav-h, 0px));
	background: var(--navy-950);
	z-index: 80;
}
.coa-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.coa-content h3 { font-size: 17px; margin: 24px 0 10px; }
.coa-content p { margin-bottom: 14px; line-height: 1.6; }
.coa-content ul,
.coa-content ol { margin: 0 0 14px 20px; }
.coa-content li { margin-bottom: 6px; }
.coa-content strong { color: var(--ice-100); }
.coa-content code {
	font-family: var(--font-mono);
	background: rgba(255,255,255,.08);
	color: var(--ice-100);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 13.5px;
}
.coa-content a {
	color: var(--cyan-400);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(79,209,255,.35);
}
.coa-content a:hover { text-decoration-color: var(--cyan-400); }
.coa-content hr {
	border: none;
	border-top: 1px solid rgba(255,255,255,.1);
	margin: 40px 0;
}

/* Boxed lot cards — used when a product has more than one lot/size on
   file, so each lot reads as its own record instead of running together. */
.coa-lot-box {
	background: var(--navy-800);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 10px;
}
.coa-lot-box:last-child { margin-bottom: 0; }
.coa-lot-sku {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--slate-500);
	margin-bottom: 8px;
}

@media (max-width: 620px) {
	.coa-page-head { padding: 48px 20px 32px; }
	.coa-quicknav-inner { padding: 12px 20px; }
	.coa-content { padding: 40px 20px; }
	.spec-pill-grid { grid-template-columns: 1fr; }

	/* Site nav stays sticky, but the quicknav + per-product sticky heading
	   are dropped on small screens — three stacked sticky bars would eat
	   too much of the viewport to leave room for actually reading a lot. */
	.coa-quicknav,
	.coa-content h2 {
		position: static;
	}
}
