/*
 * CleanPeptide — comparison entries (Figma node 4860:224).
 *
 * Loaded after cms-base.css on single cp_comparison only, every rule scoped
 * under .cp-compare. Measurements are the design's at 1440px.
 *
 * Section rhythm, as drawn: 86px under the hero, then ~120px between
 * sections, except the two after the tinted band (153px).
 */

.cp-compare .cpc-plain { padding-top: var(--rhythm); }
.cp-compare .cpc-band  { margin-top: var(--rhythm); }
.cp-compare .cpc-center { text-align: center; }

.cp-compare .cpc-wrap--hero { max-width: calc(1254px + 2 * var(--gutter)); }
.cp-compare .cpc-wrap--diff { max-width: calc(1130px + 2 * var(--gutter)); }
.cp-compare .cpc-wrap--refs { max-width: calc(710px + 2 * var(--gutter)); }

/* ================================================================== HERO */

.cp-compare .cpc-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 686px;
	overflow: hidden;
	background: #EEF3F6;
}

.cp-compare .cpc-hero--plain { background: linear-gradient(135deg, #F5F7F7 0%, #E6F0FA 100%); }

.cp-compare .cpc-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

/* The 2% plate the design lays over the photograph. */
.cp-compare .cpc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.02);
	pointer-events: none;
}

.cp-compare .cpc-hero > .cms-wrap { align-self: stretch; display: flex; align-items: center; }

.cp-compare .cpc-hero__in { width: 660px; max-width: 100%; padding-block: 82px; }
.cp-compare .cpc-hero__in .cms-eyebrow { margin-bottom: 16px; }

.cp-compare .cpc-hero__title {
	font-family: var(--body, 'Inter', sans-serif);
	font-weight: 800;
	font-size: 54px;
	line-height: 53px;
	letter-spacing: 0;
	color: var(--c-head);
}

.cp-compare .cpc-hero__title .is-accent { color: var(--c-accent); }

.cp-compare .cpc-hero__body { margin-top: 26px; }

.cp-compare .cpc-hero__body p {
	font-weight: 500;
	font-size: 18px;
	line-height: 26px;
	color: var(--c-ink);
}

.cp-compare .cpc-hero__body p + p { margin-top: 13px; }
.cp-compare .cpc-hero__body strong { font-weight: 700; }

/* ============================================================ AT A GLANCE */

.cp-compare .cpc-glance { padding-top: clamp(56px, 6vw, 86px); }

.cp-compare .cpc-glance__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 913px;
	margin-inline: auto;
	text-align: center;
}

.cp-compare .cpc-glance__note { font-size: 16px; line-height: 25px; color: var(--c-ink); }

.cp-compare .cpc-glance .cpc-scroll { margin-top: 44px; }

.cp-compare .cpc-spec {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
}

/* Long sequence strings must wrap inside their own column, never overlap the
 * other peptide. Keep the exact sequence text intact for copying and screen readers. */
.cp-compare :is(.cpc-spec, .cpc-dtable) :is(th, td) {
	overflow-wrap: anywhere;
	word-break: normal;
	white-space: normal;
}
.cp-compare .cpc-pcard__meta { overflow-wrap: anywhere; }

.cp-compare .cpc-spec thead th {
	height: 56px;
	padding: 0 20px;
	font-family: var(--body, 'Inter', sans-serif);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-align: left;
	vertical-align: middle;
	color: #fff;
}

.cp-compare .cpc-spec thead th:first-child { width: 25.92%; }
.cp-compare .cpc-spec .cpc-spec__corner { padding-left: 25px; background: var(--c-head); border-top-left-radius: 12px; }
.cp-compare .cpc-spec .cpc-spec__a { padding-left: 45px; background: var(--c-accent); }
/* Same size and inset as A and as the values below them, so both names line up with their column. */
.cp-compare .cpc-spec .cpc-spec__b { padding-left: 45px; background: var(--c-head); border-top-right-radius: 12px; }

.cp-compare .cpc-spec tbody th {
	height: 74px;
	padding: 0 20px;
	background: #F1F6FB;
	border: 1px solid #F3F4F6;
	border-top: 0;
	text-align: left;
	vertical-align: middle;
}

.cp-compare .cpc-spec__lab {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
	font-size: 13.5px;
	line-height: 20px;
	color: #0054A6;
}

.cp-compare .cpc-spec__lab .cms-ic { flex: none; }

.cp-compare .cpc-spec tbody td {
	height: 74px;
	padding: 0 20px 0 45px;
	background: #fff;
	border-right: 1px solid #F3F4F6;
	border-bottom: 1px solid #F3F4F6;
	vertical-align: middle;
	font-weight: 500;
	font-size: 16px;
	line-height: 19px;
	color: var(--c-ink);
}

.cp-compare .cpc-spec tbody td:last-child { padding-left: 57px; }
.cp-compare .cpc-spec tbody tr:last-child th { border-bottom-left-radius: 12px; }
.cp-compare .cpc-spec tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }

/* ================================================================ WHAT ARE */

.cp-compare .cpc-pcards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	margin-top: 44px;
}

.cp-compare .cpc-pcard {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 14px;
	min-height: 385px;
	padding: 26px 26px 24px;
	border-radius: 16px;
	background: #F4F7FB;
	border: 1px solid var(--c-line);
}

/* Both cards start at the top, and a card's button (when the product is sold)
   sits on its floor, so the two cards read side by side line for line. */
.cp-compare .cpc-pcard__btn { margin-top: auto; }

.cp-compare .cpc-pcard > * { max-width: 421px; }

.cp-compare .cpc-pcard__id { display: flex; flex-direction: column; gap: 2px; }

.cp-compare .cpc-pcard__chip {
	font-family: var(--mono, 'JetBrains Mono', monospace);
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	color: var(--c-accent);
}

.cp-compare .cpc-pcard__name { font-weight: 800; font-size: 26px; line-height: 31px; color: var(--c-head); }

.cp-compare .cpc-pcard__meta { font-weight: 500; font-size: 10px; line-height: 12px; color: var(--c-muted); }

.cp-compare .cpc-pcard__blurb { font-weight: 500; font-size: 14px; line-height: 22px; color: var(--c-ink); }

.cp-compare .cpc-pcard__areas { display: flex; flex-direction: column; gap: 6px; }
.cp-compare .cpc-pcard__areas p { font-size: 14px; line-height: 17px; color: var(--c-ink); }
.cp-compare .cpc-pcard__areas .cpc-pcard__lab { font-weight: 500; font-size: 16px; line-height: 22px; }

.cp-compare .cpc-pcard__note { font-size: 14px; line-height: 24px; color: var(--c-ink); }

.cp-compare .cpc-pcard__btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 179px;
	max-width: 100%;
	min-height: 44px;
	padding: 11px 20px;
	border-radius: 8px;
	background: var(--c-btn);
	font-weight: 600;
	font-size: 13.5px;
	line-height: 1.25;
	text-align: center;
	color: #fff;
	text-decoration: none;
	transition: background-color .15s ease;
}

.cp-compare .cpc-pcard__btn:hover { background: var(--c-head); color: #fff; }

.cp-compare .cpc-rel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	text-align: center;
}

.cp-compare .cpc-rel__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--mono, 'JetBrains Mono', monospace);
	font-weight: 700;
	font-size: 16px;
	line-height: 22px;
	color: var(--c-ink);
}

.cp-compare .cpc-rel__arrow { display: inline-flex; color: var(--c-accent); }
.cp-compare .cpc-rel__note { font-weight: 700; font-size: 16px; line-height: 19px; color: var(--c-ink); }

/* ======================================================= KEY DIFFERENCES */

.cp-compare .cpc-diff {
	padding-block: 167px 164px;
	background: linear-gradient(135deg, #F5F7F7 0%, #E6F0FA 100%);
}

.cp-compare .cpc-dtable-wrap {
	margin-top: 32px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.74);
	border: 0.8px solid rgba(28, 35, 38, 0.18);
	border-radius: 12px;
}

.cp-compare .cpc-dtable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cp-compare .cpc-dtable thead th:first-child { width: 15.85%; }

.cp-compare .cpc-dtable thead th {
	height: 52px;
	padding: 16px 20px;
	background: #fff;
	border-right: 0.8px solid rgba(28, 35, 38, 0.18);
	text-align: left;
	vertical-align: middle;
	font-weight: 600;
	font-size: 13px;
	line-height: 19.5px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #001E33;
}

.cp-compare .cpc-dtable thead th:last-child { border-right: 0; }

.cp-compare .cpc-dtable tbody th {
	padding: 20.6px 20px;
	background: #fff;
	border-top: 0.8px solid #C0C1C2;
	border-right: 0.8px solid #C0C1C2;
	text-align: left;
	vertical-align: top;
	font-weight: 600;
	font-size: 15px;
	line-height: 20.63px;
	color: #001E33;
}

.cp-compare .cpc-dtable tbody td {
	padding: 20.4px;
	border-top: 0.8px solid rgba(28, 35, 38, 0.18);
	border-right: 0.8px solid rgba(28, 35, 38, 0.18);
	vertical-align: top;
	font-size: 15px;
	line-height: 24.75px;
	color: var(--c-ink);
}

.cp-compare .cpc-dtable tbody td:last-child { border-right: 0; }
.cp-compare .cpc-dtable td strong { font-weight: 600; }

.cp-compare .cpc-flow {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	margin-top: 44px;
}

.cp-compare .cpc-flow__box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 789px;
	max-width: 100%;
	min-height: 230px;
	padding: 32px 25px 32px 6px;
	border-radius: 12px;
	background: #fff;
}

.cp-compare .cpc-flow__col {
	display: grid;
	justify-items: center;
	gap: 7px;
	width: 321px;
	text-align: center;
}

.cp-compare .cpc-flow__col li {
	font-family: var(--mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	line-height: 14.4px;
	color: var(--c-accent);
}

/* The ↓ between steps, drawn as in the design (none under the heading). */
.cp-compare .cpc-flow__col li:not(.cpc-flow__head) + li::before {
	content: "↓";
	display: block;
	margin-bottom: 7px;
	font-family: var(--body, 'Inter', sans-serif);
	font-size: 18px;
	line-height: 29.7px;
	color: var(--c-head);
}

.cp-compare .cpc-flow__col .cpc-flow__head {
	font-family: var(--body, 'Inter', sans-serif);
	font-weight: 700;
	font-size: 18px;
	line-height: 28.05px;
	color: var(--c-head);
}

.cp-compare .cpc-flow__vs {
	flex: none;
	width: 58px;
	font-family: var(--mono, 'JetBrains Mono', monospace);
	font-size: 14px;
	line-height: 18px;
	text-align: center;
	color: var(--c-head);
}

/* ======================================== WHICH IS BETTER / STUDIED TOGETHER */

.cp-compare .cpc-better { padding-top: clamp(72px, 10.6vw, 153px); }

.cp-compare .cpc-copy p { font-size: 15px; line-height: 24.75px; color: var(--c-ink); }
.cp-compare .cpc-copy p:first-child { margin-top: 34px; }
.cp-compare .cpc-copy p + p { margin-top: 15px; }
.cp-compare .cpc-copy strong { font-weight: 500; }

.cp-compare .cpc-copy--tight p:first-child { margin-top: 29px; }
.cp-compare .cpc-copy--tight p + p { margin-top: 10px; }

.cp-compare .cpc-q {
	position: relative;
	overflow: hidden;
	min-height: 163.68px;
	margin: 34px 0 0;
	padding: 32px 40px;
	border-radius: 16px;
	background: var(--c-deep);
}

.cp-compare .cpc-q__mark {
	position: absolute;
	top: 19.68px;
	right: -7px;
	font-weight: 700;
	font-size: 170px;
	line-height: 170px;
	color: rgba(255, 255, 255, 0.07);
	pointer-events: none;
}

.cp-compare .cpc-q__label {
	position: relative;
	font-family: var(--mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	line-height: 15px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #D9D9D9;
}

.cp-compare .cpc-q__text {
	position: relative;
	max-width: 900px;
	margin-top: 13px;
	font-weight: 500;
	font-size: 27px;
	line-height: 35.64px;
	letter-spacing: -0.02em;
	color: #fff;
}

.cp-compare .cpc-together {
	margin-top: 35px;
	padding-top: 30px;
	border-top: 0.8px solid rgba(28, 35, 38, 0.18);
}

.cp-compare .cpc-verdict {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	min-height: 273px;
	margin-top: 39px;
	padding: 35px 43.73px;
	border-radius: 16px;
	background: var(--c-deep);
}

.cp-compare .cpc-verdict__h {
	font-weight: 800;
	font-size: clamp(22px, 2.25vw, 32px);
	line-height: 1.01;
	letter-spacing: -0.0375em;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
}

.cp-compare .cpc-verdict__cols { display: flex; justify-content: space-between; gap: 32px; }
.cp-compare .cpc-verdict__col { min-width: 0; }

.cp-compare .cpc-verdict__t { font-weight: 700; font-size: 20px; line-height: 33px; color: #fff; }

.cp-compare .cpc-verdict__s {
	padding-top: 7px;
	font-family: var(--mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	line-height: 11px;
	color: #D9D9D9;
}

.cp-compare .cpc-verdict__d { padding-top: 6px; font-size: 13px; line-height: 21.45px; color: #D9D9D9; }

.cp-compare .cpc-verdict__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding-top: 20px;
	border-top: 0.8px solid rgba(255, 255, 255, 0.2);
}

.cp-compare .cpc-verdict__fl,
.cp-compare .cpc-verdict__link {
	font-family: var(--mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	line-height: 15px;
	color: #D9D9D9;
}

.cp-compare .cpc-verdict__fl { text-transform: uppercase; }
.cp-compare .cpc-verdict__ft { font-weight: 700; font-size: 15px; line-height: 24.75px; color: #fff; }
.cp-compare .cpc-verdict__link { margin-left: auto; text-decoration: none; }
.cp-compare .cpc-verdict__link:hover { color: #fff; text-decoration: underline; }

/* ==================================================== VERIFY THE MATERIAL */

.cp-compare .cpc-verify { padding-top: clamp(72px, 10.6vw, 152px); }

.cp-compare .cpc-verify__p { max-width: 974px; font-size: 16px; line-height: 26.8px; color: var(--c-ink); }
.cp-compare .cpc-verify .cms-h2 + .cpc-verify__p { margin-top: 22px; }
.cp-compare .cpc-verify__p + .cpc-verify__p { margin-top: 20px; }
.cp-compare .cpc-verify .cmsc-grid { margin-top: 47px; }

/* The comparison card: one full-width button. Size and spacing come from
   cms-base.css (the 14px / 0.0186em here were set for the old mono face and
   pushed long labels onto two lines). */
.cp-compare .cmsc--solo .cmsc__go {
	flex: 1 1 auto;
	max-width: none;
}

/* ===================================================================== FAQ */

.cp-compare .cms-faq__list { gap: 8px; }

/* ============================================================ CLOSING BAND */

.cp-compare .cpc-cta { min-height: 216px; padding-block: 31px; }
.cp-compare .cpc-cta .cms-cta__p { margin: 20px 0 15px; }
.cp-compare .cpc-cta .cms-btn { font-size: 14px; }

/* ============================================================== REFERENCES */

.cp-compare .cpc-refs { padding-bottom: var(--rhythm); }

.cp-compare .cpc-refs__h { font-weight: 800; font-size: 18px; line-height: 27px; color: var(--c-head); }

.cp-compare .cpc-refs__intro { margin-top: 8px; font-size: 13px; line-height: 19.5px; color: #6A7282; }

.cp-compare .cpc-refs__list {
	margin-top: 24px;
	padding-left: 20px;
	list-style: decimal;
}

.cp-compare .cpc-refs__list li { font-size: 13px; line-height: 19.5px; }
.cp-compare .cpc-refs__list li + li { margin-top: 16px; }
.cp-compare .cpc-refs__list li::marker { color: #364153; font-weight: 400; }

.cp-compare .cpc-refs__t { font-weight: 600; color: #0054A6; }
.cp-compare .cpc-refs__t a { color: inherit; text-decoration: none; }
.cp-compare .cpc-refs__t a:hover { text-decoration: underline; }
.cp-compare .cpc-refs__t em { font-style: italic; font-weight: 400; color: #4A5565; }
.cp-compare .cpc-refs__d { display: block; color: #6A7282; }

/* ============================================================== RESPONSIVE */

@media (max-width: 1100px) {
	.cp-compare .cpc-hero { min-height: 0; }
	.cp-compare .cpc-hero::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background: linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.75) 55%, rgba(255,255,255,.2) 100%);
	}
	.cp-compare .cpc-hero__bg { object-position: 75% center; }
	.cp-compare .cpc-hero__title { font-size: 44px; line-height: 46px; }

	.cp-compare .cpc-diff { padding-block: 96px; }
	.cp-compare .cpc-flow__box { padding: 28px 20px; }
	.cp-compare .cpc-flow__col { width: auto; flex: 1 1 0; }
}

@media (max-width: 900px) {
	.cp-compare .cpc-pcards { grid-template-columns: minmax(0, 1fr); }
	.cp-compare .cpc-pcard { min-height: 0; }
	.cp-compare .cpc-verdict__cols { flex-direction: column; gap: 18px; }
	.cp-compare .cpc-verdict__col,
	.cp-compare .cpc-verdict__col:first-child { width: auto; }
	.cp-compare .cpc-verdict__link { margin-left: 0; }
}

/*
 * Phones. Both tables are the substance of the page, and a three-column table
 * on a phone either scrolls sideways (so the two peptides are never on screen
 * together) or crushes to two words a column. So each row becomes a card: the
 * row label is its heading and the two values stack beneath it, each named by
 * its peptide from the data-label attribute.
 */
@media (max-width: 767px) {
	.cp-compare .cpc-hero__in { padding-block: 44px; }
	.cp-compare .cpc-hero__title { font-size: 34px; line-height: 38px; }
	.cp-compare .cpc-hero__body { margin-top: 18px; }
	.cp-compare .cpc-hero__body p { font-size: 16px; line-height: 24px; }
	.cp-compare .cpc-hero::before { background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.84) 100%); }

	.cp-compare .cpc-glance .cpc-scroll { margin-top: 28px; }

	.cp-compare :is(.cpc-spec, .cpc-dtable),
	.cp-compare :is(.cpc-spec, .cpc-dtable) :is(tbody, tr, th, td) { display: block; width: auto; height: auto; }
	.cp-compare :is(.cpc-spec, .cpc-dtable) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

	.cp-compare .cpc-dtable-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }

	.cp-compare :is(.cpc-spec, .cpc-dtable) tbody tr {
		margin-bottom: 12px;
		overflow: hidden;
		border: 1px solid #E1E9F1;
		border-radius: 12px;
		background: #fff;
	}

	.cp-compare .cpc-spec tbody th,
	.cp-compare .cpc-dtable tbody th {
		height: auto;
		padding: 12px 16px;
		border: 0;
		border-radius: 0 !important;
		background: #F1F6FB;
	}

	.cp-compare .cpc-spec tbody td,
	.cp-compare .cpc-spec tbody td:last-child,
	.cp-compare .cpc-dtable tbody td {
		height: auto;
		padding: 12px 16px;
		border: 0;
		border-radius: 0 !important;
		font-size: 15px;
		line-height: 22px;
	}

	.cp-compare :is(.cpc-spec, .cpc-dtable) tbody td + td { border-top: 1px solid #EEF2F3; }

	.cp-compare :is(.cpc-spec, .cpc-dtable) tbody td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 3px;
		font-family: var(--mono, 'JetBrains Mono', monospace);
		font-weight: 700;
		font-size: 10px;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: #0054A6;
	}

	.cp-compare .cpc-rel__line { font-size: 13px; line-height: 20px; gap: 6px; }

	.cp-compare .cpc-diff { padding-block: 64px; }
	.cp-compare .cpc-flow__box { flex-direction: column; gap: 18px; padding: 24px 16px; }

	.cp-compare .cpc-q { padding: 26px 22px; }
	.cp-compare .cpc-q__text { font-size: 21px; line-height: 28px; }
	.cp-compare .cpc-q__mark { font-size: 120px; line-height: 120px; top: auto; bottom: -18px; right: -4px; }

	.cp-compare .cpc-verdict { padding: 28px 22px; }

	.cp-compare .cpc-cta { min-height: 0; }
}

/* Words never break mid-word (the article wrapper allows breaking anywhere,
   which squeezed single-word cells). */
.cp-compare :is(.cpc-spec, .cpc-dtable) { overflow-wrap: break-word; word-break: normal; }
.cp-compare .cpc-hero__title { text-wrap: balance; }
.cp-compare .cms-h2 { text-wrap: balance; }
/* Some entries store a reference as a bare URL; let it wrap on a phone
   instead of running off the screen. */
.cp-compare :is(.cpc-refs__t, .cpc-refs__d) { overflow-wrap: anywhere; }
