/* ==========================================================================
   Certenly theme – Credential & Verification template
   --------------------------------------------------------------------------
   Loaded only on pages using page-templates/credential.php, after main.css,
   whose tokens, primitives and components (hero, why, ticker, cta) it reuses.
   Desktop values match the 1440px Figma frame; they are scoped to ≥1201px
   wherever main.css already provides the tablet and phone layout.
   ========================================================================== */

/* Figma trims these text boxes to cap height / baseline. */
.career__title, .career-step__title, .career-step__text, .career__note-title,
.proof__title, .rec__title, .rec__scope, .answer__title, .answer__label,
.answer__panel p, .answer__statement, .buyin__title {
	text-box: trim-both cap alphabetic;
}

/* 1. Hero ------------------------------------------------------------------ */
.hero--credential .hero__lead { max-width: 448px; line-height: 1.5; letter-spacing: 0; }

@media (min-width: 1201px) {
	.hero--credential .hero__inner { min-height: 783px; }
	.hero--credential .hero__content { max-width: 655px; padding: 227.6px 0 60px 94px; }
	.hero--credential .hero__title { margin-top: 36.4px; }
	.hero--credential .hero__lead { margin-top: 40px; }
}

/* Sample training record card (decorative, scales with the art stage). */
.record {
	position: absolute; left: var(--x); top: var(--y); width: 557px; padding: 25px;
	display: flex; flex-direction: column; gap: 10px;
	background: rgba(255, 255, 255, 0.9); border-radius: 25px; box-shadow: 0 9px 12px rgba(0, 0, 0, 0.12);
	color: var(--navy-900); font-weight: 500;
}
.record__title { padding-bottom: 9.5px; border-bottom: 1px solid rgba(2, 5, 101, 0.1); font-weight: 600; font-size: 10px; line-height: 1.5; }
.record__row {
	display: grid; grid-template-columns: 183.5px 64.5px 75px 84px 66px 1fr;
	height: 32px; border-bottom: 1px solid rgba(2, 5, 101, 0.1);
	font-size: 7px; line-height: 11px; text-transform: uppercase; white-space: nowrap;
}
.record__row--head { font-size: 9px; line-height: 1.2; text-transform: none; }
.record .lb { display: inline; }
.record img { width: 10px; height: 10px; }

/* 2. What you earn (extends the home "why" panel) ---------------------------- */
.why--earn .why__content .h2 { max-width: 465px; }
.why--earn .benefits { margin-top: 59px; }
.benefit__list { list-style: disc; padding-left: 24px; padding-top: 20px; }
.why-node--unit {
	display: flex; flex-direction: column; align-items: center; padding-top: 20px;
	font-weight: 600; font-size: 18px; line-height: 12px; color: var(--navy-950);
}
.why-node--unit img { margin-top: 17px; }
.why-coin {
	position: absolute; left: var(--x); top: var(--y); width: 80.5px; height: 80.5px;
	display: grid; place-items: center; background: var(--cream); border: 1px solid var(--amber); border-radius: 50%;
}

@media (min-width: 1201px) {
	.why--earn .why__art { left: 81px; width: 494px; }
	.why--earn .why__content { padding-top: 155px; }
}

/* Scenes: the open list item picks the illustration (CSS :has(), so no script). With no item
   open, or without :has() support, the first scene shows. */
.earn-scene { position: absolute; inset: 0; transition: opacity 0.3s ease, visibility 0.3s; }
.earn-scene:not([data-scene="1"]),
.why--earn:has(.benefit__toggle[open]:not([data-scene="1"])) .earn-scene[data-scene="1"] { opacity: 0; visibility: hidden; }
.why--earn:has(.benefit__toggle[data-scene="2"][open]) .earn-scene[data-scene="2"],
.why--earn:has(.benefit__toggle[data-scene="3"][open]) .earn-scene[data-scene="3"],
.why--earn:has(.benefit__toggle[data-scene="4"][open]) .earn-scene[data-scene="4"] { opacity: 1; visibility: visible; }

/* Scene 2: Carry by Certenly */
.earn-card {
	position: absolute; left: var(--x); top: var(--y); width: 273.51px; height: 172.26px;
	border-radius: 8.9px; overflow: hidden; background: #f2f2f2;
}
.earn-card img { width: 100.94%; height: 100.94%; margin: -0.47% 0 0 -0.47%; max-width: none; object-fit: cover; }

/* Scene 3: the home page phone at 65%, cropped to the card. */
.earn-scene--clip { inset: 0 auto auto 65px; width: 429px; height: 454px; overflow: hidden; border-radius: 12px; }
.earn-phone { position: absolute; left: 72px; top: 25px; width: 556px; height: 890px; transform: scale(0.6499); transform-origin: 0 0; }

/* Scene 4: a verified training record. */
.earn-record { position: absolute; left: 118px; top: var(--y); width: 322px; text-align: center; font-weight: 600; color: var(--navy-900); }
.earn-record--title { --y: 230px; left: 193px; width: 172px; font-size: 22px; line-height: 22px; }
.earn-record--date { --y: 287px; font-size: 18px; line-height: 12px; }
.earn-record--status { --y: 390px; font-weight: 700; font-size: 14px; line-height: 12px; letter-spacing: 1.96px; text-transform: uppercase; color: var(--blue); }

/* 3. Career benefits ------------------------------------------------------- */
.career { background: linear-gradient(180deg, #fff 27.8%, #e9f3f9 100%); overflow: hidden; }
.career__inner {
	max-width: 1440px; margin: 0 auto; padding: 116.6px 139px 199px 198px;
	display: grid; grid-template-columns: minmax(0, 548px) minmax(0, 455px); column-gap: 100px; align-items: start;
}
.career__eyebrow, .career__title { margin-left: 6px; }
.career__title { margin-top: 20.6px; max-width: 534px; line-height: 1.2; }
.career-steps { margin-top: 60.8px; }
.career-step { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 40px; min-height: 116px; }
/* Connector from the circle down to 13px above the next step (55px at desktop). */
.career-step::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 13px; width: 2px; background: var(--blue); }
.career-step__title { margin-top: 16px; font-weight: 400; font-size: 24px; line-height: normal; color: var(--navy-900); }
.career-step__text { margin-top: 20.2px; max-width: 445px; font-size: 16px; line-height: 1.2; color: var(--navy-900); }
.career-step + .career-step .career-step__text { max-width: 404px; }
.career__aside { padding-top: 3.4px; }
.career__media { position: relative; }
.career__photo { position: relative; width: 100%; height: auto; border-radius: 12px; }
.career__note-title { margin-top: 40px; font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--navy-900); }
.career__note-text { margin-top: 16.6px; color: var(--navy-900); }

/* 4. Professional proof ---------------------------------------------------- */
.proof { position: relative; overflow: hidden; }
.proof__deco { position: absolute; left: 50%; top: 0; width: 1440px; height: 100%; margin-left: -720px; pointer-events: none; }
.proof__inner {
	position: relative; max-width: 1440px; margin: 0 auto; padding: 116.6px 0 122px 82px;
	display: grid; grid-template-columns: minmax(0, 569px) minmax(0, 513px); column-gap: 87px; row-gap: 17px; align-items: start;
}
.proof__head { padding-left: 8px; }
.proof__title { margin-top: 26.6px; line-height: 40px; }
.proof__intro { margin-top: 17.4px; color: var(--navy-900); }
.proof__details { margin-top: 65px; max-width: 468px; }
.proof-list li { padding: 14px 0 20px; border-top: 1px solid var(--gray-300); }
.proof-list li:last-child { border-bottom: 1px solid var(--gray-300); }
.proof-list__title { font-weight: 400; font-size: 24px; line-height: 1; color: var(--navy-900); }
.proof-list .lead { margin-top: 14px; }
.proof__details > .btn { margin-top: 40px; }
.proof-cert {
	position: absolute; left: var(--x); top: var(--y); width: 503.63px; height: 389.17px;
	box-shadow: 0 7px 7.5px rgba(0, 0, 0, 0.2), 0 27px 13.5px rgba(0, 0, 0, 0.09), 0 60px 18px rgba(0, 0, 0, 0.05), 0 107px 21.5px rgba(0, 0, 0, 0.01);
}
.proof-cert img { width: 100%; height: 100%; object-fit: cover; }
.proof-card {
	position: absolute; left: var(--x); top: var(--y); width: 154.6px; height: 97.37px;
	border-radius: 8px; overflow: hidden; background: #f2f2f2;
	box-shadow: 0 4px 9px rgba(0, 0, 0, 0.1), 0 16px 16px rgba(0, 0, 0, 0.09), 0 37px 22px rgba(0, 0, 0, 0.05), 0 66px 26px rgba(0, 0, 0, 0.01);
}
.proof-card img { width: 100.94%; height: 100.94%; margin: -0.47% 0 0 -0.47%; max-width: none; object-fit: cover; }

/* 5. Recognized & verifiable ---------------------------------------------- */
.rec { position: relative; background: var(--grad-navy); color: #fff; overflow: hidden; }
.rec__tex {
	position: absolute; inset: 0; pointer-events: none;
	background: url(../images/cred-texture.webp) center bottom / 100% 100% no-repeat;
	opacity: 0.12; mix-blend-mode: exclusion; transform: scaleY(-1);
}
.rec__inner { position: relative; max-width: 1440px; margin: 0 auto; padding: 65.6px 94px 122px 86px; }
.rec__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-right: -50px; }
.rec__eyebrow { color: var(--gray-300); }
.rec__title { margin-top: 16.4px; max-width: 477px; line-height: 1.02; color: #fff; }
.rec__intro { flex: none; width: 425px; max-width: 100%; margin-top: 50.4px; font-size: 16px; line-height: 22px; letter-spacing: 0.48px; }
.rec-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 45px; }
.rec-card {
	position: relative; min-height: 222px; padding: 29px 29px 18px;
	background: #fff; border: 1px solid var(--gray-300); border-radius: 12px; color: var(--navy-950);
}
.rec-card__px { position: absolute; inset: -1px; border-radius: 12px; overflow: hidden; pointer-events: none; }
.rec-card__title { position: relative; font-weight: 400; font-size: 22px; line-height: 1.2; }
.rec-card__text { position: relative; max-width: 336px; margin-top: 58.6px; font-size: 16px; line-height: 22px; letter-spacing: 0.48px; }
.rec-card:nth-child(2) .rec-card__text { max-width: 317px; } /* clears that card's bottom-corner pixels */
.rec__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-top: 134px; }
.rec__scope { max-width: 916px; margin-left: 11px; font-weight: 500; font-size: 22px; line-height: 1.2; }
.rec__foot > .btn { flex: none; letter-spacing: 0; }

/* 6. Straight answer ------------------------------------------------------- */
.answer { padding: 138.6px var(--gutter) 0; }
.answer__inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.answer__eyebrow { font-weight: 600; }
.answer__title { margin-top: 26.6px; line-height: 1.2; }
.answer__grid { display: grid; grid-template-columns: minmax(0, 485px) minmax(0, 496px); justify-content: center; margin-top: 56.4px; text-align: left; }
.answer__label { font-weight: 600; font-size: 22px; line-height: 1.6; color: var(--navy-900); }
.answer__panel { min-height: 169px; margin-top: 29.6px; padding: 40px 20px 40px 38px; background: #f1f9ff; }
.answer__panel p { max-width: 348px; font-size: 16px; line-height: 1.2; color: var(--navy-900); }
.answer__col--separate .answer__panel { padding: 43px 20px 40px 41px; background: rgba(241, 249, 255, 0.2); border-left: 2px solid var(--blue); }
.answer__col--separate .answer__panel p { max-width: 401px; }
.answer__statement { max-width: 607px; margin: 101px auto 0; font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--navy-900); }
.answer__sub { max-width: 505px; margin: 13.2px auto 0; font-size: 16px; line-height: 22px; letter-spacing: 0.48px; color: var(--navy-900); }
.answer .btn { margin-top: 22px; }

/* 7. Employer buy-in ------------------------------------------------------- */
.buyin { padding-top: 121.6px; }
.buyin__inner {
	max-width: 1440px; margin: 0 auto; padding: 0 90px;
	display: grid; grid-template-columns: minmax(0, 504px) minmax(0, 612px); column-gap: 144px;
}
.buyin__main { display: flex; flex-direction: column; }
.buyin__title { margin: 20.6px 0 40px; max-width: 469px; line-height: 1.02; }
.buyin__media { position: relative; margin-top: auto; }
.buyin__photo { position: relative; width: 100%; height: auto; }
.buyin__aside { padding-top: 43.1px; }
.buyin-list li { padding: 38.5px 0; border-bottom: 1px solid var(--gray-300); font-size: 22px; line-height: 1.2; color: var(--navy-900); }
.buyin-list li:first-child { padding-top: 0; }
.buyin__aside > .btn { margin-top: 44px; }

/* 8. Closing CTA ----------------------------------------------------------- */
.cta--credential { padding-top: 72px; }
.cta--credential .cta__text { gap: 0; }
.cta--credential .cta__lead { max-width: 520px; margin-top: 17px; padding-left: 5px; }
.cta--credential .cta__text > .btn { margin: 20px 0 0 5px; letter-spacing: 0; }

@media (min-width: 1201px) {
	.cta--credential .cta__text { left: 89px; width: 629px; transform: translateY(-50%); }
}

/* 9. Responsive ------------------------------------------------------------ */
@media (max-width: 1200px) {
	.hero--credential .hero__content { padding-bottom: 88px; }

	.why--earn .why__art { max-width: 494px; }

	.career__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); column-gap: 56px; padding: 88px var(--gutter); }
	.career__eyebrow, .career__title { margin-left: 0; }
	.career__title { font-size: 40px; }

	.proof__deco { display: none; }
	.proof__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; padding: 88px var(--gutter); }
	.proof__head { padding-left: 0; }
	.proof__details { margin-top: 0; }

	.rec__inner { padding: 72px var(--gutter) 88px; }
	.rec__head { margin-right: 0; }
	.rec-card__text { padding-right: 32px; } /* keep clear of the corner pixels as cards narrow */
	.rec__scope .lb, .proof-list .lb { display: none; } /* design line breaks only fit the full-width layout */
	.rec__foot { margin-top: 72px; }
	.rec__scope { margin-left: 0; }

	.answer { padding-top: 96px; }
	.answer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

	.buyin { padding-top: 96px; }
	.buyin__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; padding: 0 var(--gutter); }
	.buyin__aside { padding-top: 0; }

	.cta--credential { padding-top: 88px; }
}

@media (max-width: 900px) {
	.career__inner { grid-template-columns: 1fr; row-gap: 48px; padding: 56px var(--gutter) 72px; }
	.career__title { font-size: 36px; }
	.career__aside { max-width: 455px; padding-top: 0; }
	.career-step { column-gap: 20px; min-height: 0; padding-bottom: 40px; }
	.career-step__title { font-size: 22px; }

	.proof__inner { grid-template-columns: 1fr; row-gap: 32px; padding: 56px var(--gutter); }
	.proof__intro { margin-top: 0; }
	.proof__art { max-width: 569px; }

	.rec__inner { padding: 56px var(--gutter) 64px; }
	.rec__head { flex-direction: column; gap: 20px; }
	.rec__title { max-width: none; }
	.rec__intro { width: auto; margin-top: 0; }
	.rec-cards { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
	.rec-card { min-height: 0; padding-bottom: 29px; }
	.rec-card__text, .rec-card:nth-child(2) .rec-card__text { max-width: none; margin-top: 24px; }
	.rec__foot { flex-direction: column; margin-top: 48px; }

	.answer { padding-top: 72px; }
	.answer__grid { grid-template-columns: 1fr; row-gap: 32px; margin-top: 40px; }
	.answer__panel { min-height: 0; padding: 28px 24px; }
	.answer__col--separate .answer__panel { padding: 28px 24px; }
	.answer__statement { margin-top: 56px; }

	.buyin { padding-top: 72px; }
	.buyin__inner { grid-template-columns: 1fr; row-gap: 40px; }
	.buyin__media { margin-top: 0; }
	.buyin-list li { padding: 24px 0; font-size: 20px; }
}

@media (max-width: 600px) {
	.career__title { font-size: 32px; }
	.rec-card { padding: 24px 20px; }
}
