/* =========================================================================
   ERP Peptide — P8 content pages, contact page and the COA / Testing library.
   Owned by tuju-pages. Enqueue handle: erp-pages.

   Every declaration in the "SOURCE" blocks is lifted verbatim from the source's
   own compiled theme stylesheet (see RECON §9/§10). The source
   defines ZERO :root custom properties, so the palette is hard-coded:
     #0A1A3B navy · #233044 slate · #F6DB7B gold · #282828 headings ·
     #FFF page + card · #F5F5F5 thumb well
   Container is 1320px with 24px padding.

   The "SELF-CONTAINED" blocks replace Bootstrap row/col + .pagination so these
   pages cannot silently collapse if the Bootstrap bundle is absent.
   ========================================================================= */

/* ---------- shared shell ------------------------------------------------ */

/* ⚠️ MEASURED, not assumed. app.css declares `.page-pages/.page-testing/
   .page-contact { background:#f6f4ee }` — but it also declares
   `body { background-color:#fff !important }`, which wins. Sampling the live
   source at 820px returns rgb(255,255,255) behind the cards, so the cream is
   DEAD CODE on the source.
   ⚠️ It stops being dead the moment those class names sit on a DIV instead of
   BODY: `.page-testing{background:#f6f4ee}` (0,1,0) then beats a plain
   `.erp-page` (0,1,0) on source order. Our wrapper carries both class names, so
   the neutraliser below is deliberately (0,2,0). Do not "simplify" it. */
.erp-page {
	color: #233044;
	font-family: Poppins, Helvetica, Arial, sans-serif;
}

.erp-page.page-pages,
.erp-page.page-testing,
.erp-page.page-contact {
	background: #fff;
}

.erp-container {
	width: 100%;
	max-width: 1320px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* SOURCE app.css: `h1,h2,h3,h4,h5,h6{color:#282828;font-family:Playfair Display,serif;
   font-weight:700}`. The navy #0A1A3B override is scoped to `.factory-page` (the
   homepage) ONLY — content pages, /testing and /contact use #282828. Restated
   here so these pages are right whether or not the global rule has loaded. */
.erp-page.page-pages h1,
.erp-page.page-pages h2,
.erp-page.page-pages h3,
.erp-page.page-pages h4,
.erp-page.page-pages h5,
.erp-page.page-pages h6,
.erp-page.page-testing h1,
.erp-page.page-testing h2,
.erp-page.page-testing h3,
.erp-page.page-testing h4,
.erp-page.page-testing h5,
.erp-page.page-testing h6,
.erp-page.page-contact h1,
.erp-page.page-contact h2,
.erp-page.page-contact h3,
.erp-page.page-contact h4,
.erp-page.page-contact h5,
.erp-page.page-contact h6 {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 700;
	line-height: 1.2;
	color: #282828;
}

/* MEASURED off the source: app.css sets `h1{3.5rem} h2{2.25rem} h3{1.75rem}`
   globally (56 / 36 / 28px). Kept at (0,1,1) on purpose so the page-specific
   (0,2,0) overrides below — .page-title 2.8rem, .testing-title 2.6rem — still
   win. Do not merge these into the colour block above; that one is (0,2,1). */
.erp-page h1 {
	font-size: 3.5rem;
}

.erp-page h2 {
	font-size: 2.25rem;
}

.erp-page h3 {
	font-size: 1.75rem;
}

.erp-page p {
	line-height: 1.7;
}

.erp-page img {
	max-width: 100%;
	height: auto;
}

.erp-page .text-center {
	text-align: center;
}

.erp-page .mb-5 {
	margin-bottom: 3rem;
}

.erp-page .mt-4 {
	margin-top: 1.5rem;
}

.erp-page .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =========================================================================
   SOURCE — .page-pages  (/pages/12,18,26,27,28)
   ========================================================================= */

/* NOTE: the source's `body.page-*{background:#f6f4ee}` rules are intentionally
   NOT reproduced — see the measurement note on .erp-page above. */

.page-pages .page-hero {
	padding: 90px 0 40px;
	text-align: center;
}

.page-pages .page-title {
	font-size: 2.8rem;
	margin: 0;
}

.page-pages .page-body {
	padding-bottom: 80px;
}

.page-pages .page-content {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 16px 28px rgba(10, 26, 59, 0.08);
	padding: 32px 36px;
}

.page-pages .page-related {
	padding: 20px 0 90px;
}

.page-pages .page-related .related-title {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	text-align: center;
}

/* SOURCE — the TinyMCE body. The pages carry their own inline styles, so this
   only has to keep tables and images inside the card. */
.rich-text-editor-content table {
	word-wrap: break-word;
	table-layout: fixed;
	width: 100%;
}

.rich-text-editor-content table td,
.rich-text-editor-content table th {
	width: auto !important;
}

.rich-text-editor-content img {
	max-width: 100%;
	height: auto;
}

/* The Promotion table declares min-width:680px inline; keep it scrollable
   rather than letting it blow out the card on a phone (the source wraps it in
   an overflow-x:auto div of its own, this is the belt-and-braces). */
.rich-text-editor-content > div[style*="overflow-x"] {
	-webkit-overflow-scrolling: touch;
}

/* =========================================================================
   SOURCE — .page-testing  (/testing + /certificates/{id})
   ========================================================================= */

.page-testing .testing-hero {
	padding: 90px 0 40px;
}

.page-testing .testing-card {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 16px 28px rgba(10, 26, 59, 0.08);
	margin: 0 auto;
	max-width: 860px;
	padding: 32px 36px;
	text-align: left;
}

.page-testing .testing-title {
	font-size: 2.6rem;
	margin-bottom: 1rem;
	margin-top: 0;
}

.page-testing .testing-intro {
	color: #5c6168;
	margin-bottom: 0;
}

.page-testing .testing-list {
	display: grid;
	gap: 1rem;
	margin-top: 1.6rem;
}

.page-testing .testing-item {
	align-items: flex-start;
	display: flex;
	gap: 0.8rem;
}

.page-testing .testing-item h3 {
	font-size: 1.1rem;
	margin: 0 0 0.3rem;
}

.page-testing .testing-item p {
	color: #5c6168;
	margin: 0;
}

.page-testing .testing-icon {
	align-items: center;
	background: rgba(244, 196, 48, 0.2);
	border-radius: 50%;
	color: #0a1a3b;
	display: inline-flex;
	flex: 0 0 32px;
	font-weight: 700;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.page-testing .testing-results {
	padding: 20px 0 90px;
}

.page-testing .results-title {
	margin-bottom: 2rem;
	text-align: center;
}

.page-testing .coa-card {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 12px 22px rgba(10, 26, 59, 0.08);
	color: inherit;
	display: block;
	padding: 18px;
	text-decoration: none;
}

.page-testing .coa-thumb {
	align-items: center;
	background: #f5f5f5;
	border-radius: 16px;
	display: flex;
	justify-content: center;
	min-height: 180px;
	padding: 16px;
	text-align: center;
}

.page-testing .coa-placeholder {
	color: #a1a6ad;
	font-weight: 700;
}

.page-testing .coa-info {
	margin-top: 1rem;
}

.page-testing .coa-info h3 {
	font-size: 1rem;
	margin: 0 0 0.4rem;
}

.page-testing .coa-info p {
	color: #5c6168;
	font-size: 0.9rem;
	margin: 0;
}

.page-testing .coa-detail {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 16px 28px rgba(10, 26, 59, 0.08);
	padding: 28px;
	text-align: center;
}

.page-testing .coa-detail .coa-meta {
	color: #5c6168;
	margin-top: 1.5rem;
}

/* SELF-CONTAINED — the source serves a 100x100 letterboxed rendition of a
   portrait 1600x2360 certificate (measured). We serve the real upload and box
   it to the identical 100x100 white square so the card matches pixel for pixel
   while staying crisp on retina. */
.page-testing .coa-thumb .coa-thumb-image {
	width: 100px;
	height: 100px;
	object-fit: contain;
	background: #fff;
}

.page-testing .coa-detail-image {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.page-testing .coa-back {
	margin: 1.5rem 0 0;
	text-align: center;
}

.page-testing .coa-back-link {
	color: #0a1a3b;
	font-weight: 600;
	text-decoration: none;
}

.page-testing .coa-back-link:hover {
	text-decoration: underline;
}

.page-testing .coa-empty {
	background: #fff;
	border-radius: 20px;
	color: #5c6168;
	padding: 28px;
	text-align: center;
}

/* SELF-CONTAINED — replaces `row g-4 / col-12 col-md-6 col-lg-4`. */
.page-testing .coa-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.page-testing .coa-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.page-testing .coa-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* SELF-CONTAINED — pagination (source uses Bootstrap's .pagination). */
.page-testing .coa-pagination {
	display: flex;
	justify-content: center;
}

.page-testing .coa-pagination .pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.page-testing .coa-pagination .page-link {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(10, 26, 59, 0.12);
	border-radius: 10px;
	color: #0a1a3b;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 600;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	text-decoration: none;
}

.page-testing .coa-pagination .page-item.active .page-link {
	background: #0a1a3b;
	border-color: #0a1a3b;
	color: #fff;
}

.page-testing .coa-pagination .page-item.disabled .page-link {
	color: #a1a6ad;
	opacity: 0.65;
}

.page-testing .coa-pagination a.page-link:hover {
	background: #0a1a3b;
	border-color: #0a1a3b;
	color: #fff;
}

/* =========================================================================
   SOURCE — .page-contact  (/contact)
   ========================================================================= */

.page-contact .contact-hero {
	padding: 90px 0 60px;
}

.page-contact .contact-card {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 16px 28px rgba(10, 26, 59, 0.08);
	display: grid;
	gap: 32px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	padding: 36px;
}

.page-contact .contact-info h1 {
	font-size: 2.6rem;
	margin-bottom: 1rem;
}

.page-contact .contact-info p {
	color: #5c6168;
	line-height: 1.7;
}

.page-contact .contact-details {
	color: #1f2328;
	font-weight: 600;
	margin-top: 1.5rem;
}

.page-contact .contact-form {
	display: grid;
	gap: 0.8rem;
	align-content: start;
}

.page-contact .contact-form .form-control,
.page-contact .contact-form .form-select {
	border: 1px solid #e3dfd6;
	border-radius: 12px;
	padding: 0.7rem 0.9rem;
}

/* ⚠️ KNOWN 1-PROPERTY DEVIATION FROM THE RENDERED SOURCE — see OPEN QUESTIONS.
   The source's own stylesheet declares `color:#0a1a3b` on exactly this selector
   (0,3,0), but Bootstrap's `.btn-primary{color:#fff}` wins at runtime, so the
   live button renders WHITE text on #F6DB7B gold — about 1.6:1 contrast, well
   under WCAG AA. We honour the colour the source AUTHOR wrote rather than the
   colour their specificity accident produced. Flip to #fff for pixel parity. */
.page-contact .contact-form .btn-primary {
	background: #f6db7b;
	border-color: #f6db7b;
	border-radius: 999px;
	color: #0a1a3b;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.7rem 1.6rem;
	width: 140px;
}

.page-contact .contact-featured {
	padding-bottom: 90px;
}

.page-contact .contact-featured h2 {
	margin-bottom: 2rem;
	text-align: center;
}

.page-contact .contact-featured .product-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 12px 22px rgba(10, 26, 59, 0.08);
	padding: 16px;
	text-align: center;
}

.page-contact .contact-featured .product-image {
	background: #f5f5f5;
	border-radius: 14px;
	margin-bottom: 12px;
	padding: 14px;
}

.page-contact .contact-featured .product-name {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.page-contact .contact-featured .product-price {
	color: #0a1a3b;
	font-weight: 700;
}

@media (max-width: 992px) {
	.page-contact .contact-card {
		grid-template-columns: 1fr;
	}
}

/* SELF-CONTAINED — contact page additions.
   The source's h1 sits in .contact-header, so its own `.contact-info h1` rule
   never matches and the heading falls through to the global `h1{3.5rem}`.
   MEASURED on the live source at 1440: font-size 56px, margin-bottom 8px. */
.page-contact .contact-header h1 {
	font-size: 3.5rem;
	margin: 0 0 8px;
}

/* MEASURED: 12.8px (inherits the theme's 0.8rem body), rgb(33,37,41), mb 16px. */
.page-contact .contact-subtitle {
	color: #212529;
	margin: 0 0 16px;
}

.page-contact .contact-info h2 {
	margin-top: 0;
	margin-bottom: 1rem;
}

/* MEASURED: the featured card's product name is an h3 — Playfair, 15.2px, 600,
   #282828 — so the link must not repaint it. */
.page-contact .contact-featured .product-name a {
	color: inherit;
	text-decoration: none;
}

.page-contact .contact-featured .product-name a:hover {
	text-decoration: underline;
}

/* MEASURED: the source's inputs are filled #f8f9fa (Bootstrap's --bs-secondary-bg
   showing through), 13.6px, full column width. */
.page-contact .contact-form .form-control {
	background: #f8f9fa;
	color: #233044;
	font-family: inherit;
	font-size: 0.85rem;
	width: 100%;
}

.page-contact .contact-form textarea.form-control {
	resize: vertical;
	min-height: 110px;
}

.page-contact .contact-form .form-control:focus {
	border-color: #0a1a3b;
	outline: 2px solid rgba(10, 26, 59, 0.15);
	outline-offset: 1px;
}

.page-contact .contact-form .btn-primary {
	border-style: solid;
	border-width: 1px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	justify-content: center;
	font-size: 1rem;
}

.page-contact .contact-form .btn-primary:hover {
	background: #f0cf58;
	border-color: #f0cf58;
}

.page-contact .contact-form .form-group {
	margin: 0;
}

/* Honeypot — hidden from people, visible to bots. */
.erp-page .erp-hp {
	position: absolute !important;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

.page-contact .contact-detail-row {
	margin-bottom: 6px;
}

.page-contact .contact-detail-label {
	color: #5c6168;
	display: inline-block;
	font-weight: 600;
	margin-right: 8px;
	min-width: 78px;
}

/* An unfilled `support@{{SITE_DOMAIN}}` is meant to look unfinished. */
.page-contact .contact-detail-placeholder {
	color: #8a8f96;
	font-weight: 500;
}

.page-contact .contact-notice {
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.5;
	padding: 0.8rem 1rem;
}

.page-contact .contact-notice--ok {
	background: rgba(246, 219, 123, 0.28);
	border: 1px solid rgba(10, 26, 59, 0.12);
	color: #0a1a3b;
}

.page-contact .contact-notice--error {
	background: #fdeced;
	border: 1px solid #f2c2c5;
	color: #8a1c25;
}

/* SELF-CONTAINED — replaces `row g-4 / col-6 col-md-3`. */
.page-contact .contact-featured-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.page-contact .contact-featured-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* =========================================================================
   Responsive — the source's own breakpoints, plus the phone padding the
   90px/36px desktop rhythm needs at 390px.
   ========================================================================= */

@media (max-width: 768px) {
	.page-pages .page-hero,
	.page-testing .testing-hero,
	.page-contact .contact-hero {
		padding-top: 48px;
	}

	.page-pages .page-title {
		font-size: 2rem;
	}

	.page-testing .testing-title {
		font-size: 2rem;
	}

	.page-contact .contact-header h1 {
		font-size: 2rem;
	}

	.erp-page h2 {
		font-size: 1.6rem;
	}

	.page-pages .page-content,
	.page-testing .testing-card {
		padding: 22px 18px;
	}

	.page-contact .contact-card {
		padding: 22px 18px;
	}

	.page-testing .testing-results {
		padding-bottom: 56px;
	}

	.page-pages .page-body {
		padding-bottom: 56px;
	}

	.page-contact .contact-featured {
		padding-bottom: 56px;
	}

	.page-contact .contact-form .btn-primary {
		width: 100%;
	}
}
