/* CertPrep+ cert pages — [certprep_page]
 * The theme's style.css styles everything that shares a class with the
 * course pages (product-hero, product-stats-band, curr-*, career-*, faq-*,
 * track-card). This file only adds the category colour (--odr-cert, set on
 * .odr-cp) and the blocks course pages don't have. */

.odr-cp { --odr-cert: var(--accent, #ff6b1a); }

/* Category colour where the course pages hard-code one per track */
.odr-cp .odr-cp-accent,
.odr-cp .odr-cp-kicker,
.odr-cp .career-list li.odr-cp-accent { color: var(--odr-cert); }
.odr-cp .career-list li.odr-cp-accent { --marker-color: var(--odr-cert); }
.odr-cp .odr-cp-features { border-top-color: var(--odr-cert); }
.odr-cp .odr-cp-features .feature-icon,
.odr-cp .odr-cp-stats .product-stat-num { color: var(--odr-cert); }
.odr-cp .btn-primary.odr-cp-btn { background: var(--odr-cert); }
.odr-cp .btn-primary.odr-cp-btn:hover { background: var(--odr-cert); filter: brightness(1.12); }
.odr-cp .btn-secondary.odr-cp-btn2:hover { border-color: var(--odr-cert); color: var(--odr-cert); }

/* Hero */
.odr-cp-hero { position: relative; overflow: hidden; }
/* Less room above the category label than the theme's .product-hero (80px):
   48px on desktop, 24px on phones. Only the top padding changes. */
.odr-cp .odr-cp-hero { padding-top: 48px; }
@media (max-width: 760px) {
	.odr-cp .odr-cp-hero { padding-top: 24px; }
}
.odr-cp-hero > .wrap { position: relative; z-index: 1; }
.odr-cp-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.odr-cp .odr-cp-hero .product-hero-title { margin-bottom: 8px; }
.odr-cp-code {
	font-family: var(--font-mono, monospace);
	font-size: 13px;
	letter-spacing: .05em;
	color: var(--text-dim, #888);
	margin-bottom: 20px;
}

.odr-cp h2 + .odr-cp-sub, .odr-cp h2 + .odr-cp-lead { margin-top: 10px; }
.odr-cp-sub, .odr-cp-lead { color: var(--text-dim, #888); margin-bottom: 32px; max-width: 760px; line-height: 1.7; }

/* "What you'll study": the mascot (assets/drill-mascot.css) beside the heading
 * and intro. cert-page.js mounts the animated one and waves when he scrolls
 * into view. Phones: smaller, top-aligned with the heading. */
.odr-cp-hello-head { display: flex; align-items: center; gap: 28px; margin-bottom: 32px; }
.odr-cp-hello-text { flex: 1; min-width: 0; }
.odr-cp-hello-head h2 { margin-bottom: 0; }
.odr-cp-hello-head .odr-cp-sub { margin-bottom: 0; }
@media (max-width: 700px) {
	/* Mascot beside the heading only; the intro runs full width below. */
	.odr-cp-hello-head { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; }
	.odr-cp-hello-text { display: contents; }
	.odr-cp-hello-head .odr-mascot { grid-column: 1; grid-row: 1; }
	.odr-cp-hello-head h2 { grid-column: 2; grid-row: 1; }
	.odr-cp-hello-head h2 + .odr-cp-sub { grid-column: 1 / -1; grid-row: 2; margin-top: 14px; }
}

/* "What to expect": exam at a glance */
.odr-cp-glance {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}
.odr-cp-glance-item {
	background: var(--bg-card, #131313);
	border: 1px solid var(--border, #222);
	border-radius: var(--radius-lg, 10px);
	padding: 22px 20px;
	position: relative;
}
/* Icon in the top-right corner, in the cert's colour; the label keeps clear of it. */
.odr-cp-glance-icon {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #1c1c1c;
	color: var(--odr-cert);
	display: flex;
	align-items: center;
	justify-content: center;
}
.odr-cp-glance-icon svg { width: 20px; height: 20px; }
.odr-cp-glance-icon + .odr-cp-glance-label { padding-right: 44px; }
/* Passing score: border and a top-down wash in the cert's colour, only while the
   cards are 5 across; at 1100px and below it looks like the others. */
@media (min-width: 1101px) {
	.odr-cp .odr-cp-glance-item.is-pass {
		border-color: color-mix(in srgb, var(--odr-cert) 32%, var(--bg-card, #131313));
		background: linear-gradient(180deg, color-mix(in srgb, var(--odr-cert) 12%, var(--bg-card, #131313)), var(--bg-card, #131313) 75%);
	}
	.odr-cp .odr-cp-glance-item.is-pass .odr-cp-glance-value { color: var(--odr-cert); }
}
.odr-cp-glance-label {
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--odr-cert);
	margin-bottom: 8px;
}
.odr-cp-glance-value {
	font-family: var(--font-heading, sans-serif);
	font-size: 26px;
	font-weight: 700;
	color: var(--white, #e8e8e8);
	line-height: 1.15;
}
.odr-cp-glance-note { font-size: 13px; color: var(--text-muted, #555); margin-top: 6px; line-height: 1.45; }
.odr-cp-source { font-size: 13px; color: var(--text-muted, #555); margin-top: 20px; }
.odr-cp-source a { color: var(--text-dim, #888); text-decoration: underline; text-underline-offset: 3px; }
.odr-cp-source a:hover { color: var(--odr-cert); }

/* Domains accordion: free tag + question count */
.odr-cp-free {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 7px;
	font-family: var(--font-mono, monospace);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--green, #22c55e);
	border: 1px solid color-mix(in srgb, var(--green, #22c55e) 45%, transparent);
	border-radius: 4px;
	vertical-align: 2px;
}
.odr-cp .curr-tutorial-num { min-width: 40px; }
.odr-cp .curr-tutorial-cmds { padding-left: 52px; }

/* Study, Quiz, Exam: three cards, each with a preview panel filling the rest
 * of the card. The quiz preview is a live question (cert-page.js); the study
 * and exam previews are static. Phones: stacked. */
.odr-cp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.odr-cp-step {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--bg-card, #131313);
	border: 1px solid var(--border, #222);
	border-top: 2px solid var(--odr-cert);
	border-radius: var(--radius-lg, 10px);
	padding: 24px;
}
.odr-cp-step-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--odr-cert);
	margin-bottom: 10px;
}
.odr-cp-step-tag {
	padding: 1px 7px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .1em;
	color: var(--odr-cert);
	border: 1px solid color-mix(in srgb, var(--odr-cert) 50%, transparent);
	border-radius: 4px;
}
.odr-cp .odr-cp-step-title { font-size: 20px; line-height: 1.25; color: var(--white, #e8e8e8); margin: 0 0 8px; }
.odr-cp-step-text { font-size: 14px; line-height: 1.6; color: var(--text-dim, #888); margin: 0 0 18px; }
.odr-cp-pv {
	flex: 1;
	min-width: 0;
	background: var(--bg, #0a0a0a);
	border: 1px solid var(--border, #222);
	border-radius: var(--radius-lg, 10px);
	padding: 18px;
}
.odr-cp-pv-kicker, .odr-cp-pv-label {
	font-family: var(--font-mono, monospace);
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-muted, #555);
	margin-bottom: 8px;
}
.odr-cp-pv-kicker { color: var(--odr-cert); }

/* Study preview: the app's study card, scaled down */
.odr-cp-pv-title { font-family: var(--font-heading, sans-serif); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--white, #e8e8e8); margin-bottom: 8px; }
.odr-cp-pv-body { font-size: 13.5px; line-height: 1.6; color: var(--text, #d4d4d4); margin: 0 0 12px; }
.odr-cp ul.odr-cp-pv-list { list-style: none; margin: 0 0 12px; padding: 0; }
.odr-cp ul.odr-cp-pv-list li { position: relative; padding: 7px 0 7px 16px; margin: 0; border-top: 1px solid var(--border, #222); font-size: 13px; line-height: 1.45; color: var(--text, #d4d4d4); }
.odr-cp ul.odr-cp-pv-list li::before { content: '\203A'; position: absolute; left: 2px; top: 6px; color: var(--odr-cert); font-weight: 700; }
.odr-cp-pv-tscroll { max-width: 100%; margin: 0 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--border-hover, #333) transparent; }
.odr-cp-pv-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 13px; }
.odr-cp-pv-table th { font-family: var(--font-mono, monospace); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim, #888); text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border-hover, #333); }
.odr-cp-pv-table td { padding: 7px 8px; border-bottom: 1px solid var(--border, #222); color: var(--text, #d4d4d4); vertical-align: top; }
.odr-cp-pv-table td:first-child { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--odr-cert); }
.odr-cp-pv-tip {
	padding: 10px 13px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--text, #d4d4d4);
	background: rgba(255, 255, 255, .025);
	border: 1px solid var(--border, #222);
	border-left: 2px solid color-mix(in srgb, var(--odr-cert) 45%, var(--border, #222));
	border-radius: 8px;
}
.odr-cp-pv-tip-label { font-family: var(--font-mono, monospace); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted, #555); margin-bottom: 4px; }

/* Exam preview: a sample results summary */
.odr-cp-pv-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; margin-bottom: 12px; }
.odr-cp-pv-num { font-family: var(--font-heading, sans-serif); font-size: 34px; font-weight: 700; line-height: 1; color: var(--white, #e8e8e8); }
.odr-cp-pv-of { font-family: var(--font-mono, monospace); font-size: 14px; color: var(--text-dim, #888); }
.odr-cp-pv-pass {
	margin-left: auto;
	align-self: center;
	padding: 3px 8px;
	font-family: var(--font-mono, monospace);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--green, #22c55e);
	background: color-mix(in srgb, var(--green, #22c55e) 12%, transparent);
	border-radius: 4px;
}
.odr-cp-pv-bar { position: relative; height: 8px; border-radius: 999px; background: #1f1f1f; }
.odr-cp-pv-fill { position: absolute; inset: 0 auto 0 0; width: var(--fill); border-radius: inherit; background: var(--green, #22c55e); }
.odr-cp-pv-line { position: absolute; top: -4px; bottom: -4px; left: var(--line); width: 2px; margin-left: -1px; background: var(--white, #e8e8e8); border-radius: 1px; }
.odr-cp-pv-passnote { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--text-muted, #555); margin: 8px 0 16px; }
.odr-cp-pv-tile {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--text, #d4d4d4);
	background: color-mix(in srgb, var(--red, #ef4444) 9%, transparent);
	border: 1px solid color-mix(in srgb, var(--red, #ef4444) 40%, transparent);
	border-radius: 8px;
}
.odr-cp-pv-tile-n { font-family: var(--font-heading, sans-serif); font-size: 22px; font-weight: 700; color: var(--red, #ef4444); line-height: 1; }
.odr-cp-pv-next { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border, #222); font-size: 13px; line-height: 1.4; color: var(--text, #d4d4d4); }
.odr-cp-pv-sid { flex-shrink: 0; min-width: 34px; font-family: var(--font-mono, monospace); font-size: 12px; color: var(--odr-cert); }
.odr-cp-pv-sname { flex: 1; min-width: 0; }
.odr-cp-pv-chip {
	flex-shrink: 0;
	padding: 3px 9px;
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	font-weight: 700;
	color: var(--odr-cert);
	border: 1px solid color-mix(in srgb, var(--odr-cert) 55%, transparent);
	border-radius: 6px;
}
.odr-cp-pv-sample {
	display: inline-block;
	margin-top: 14px;
	padding: 2px 7px;
	font-family: var(--font-mono, monospace);
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-muted, #555);
	border: 1px solid var(--border, #222);
	border-radius: 4px;
}

/* Quiz preview: the live sample question */
.odr-cp-sample-scenario { font-size: 13.5px; color: var(--text-dim, #888); line-height: 1.65; margin-bottom: 12px; }
.odr-cp-sample-q { font-size: 14.5px; font-weight: 600; color: var(--white, #e8e8e8); line-height: 1.5; margin-bottom: 14px; }
.odr-cp-choices { display: flex; flex-direction: column; gap: 8px; }
.odr-cp .odr-cp-choice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	width: 100%;
	min-height: 44px;
	padding: 11px 14px;
	background: var(--bg-card, #131313);
	border: 1px solid var(--border, #222);
	border-radius: var(--radius, 6px);
	color: var(--text, #d4d4d4);
	font-family: var(--font-body, sans-serif);
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.odr-cp .odr-cp-choice:hover:not(:disabled) { border-color: var(--border-hover, #333); background: rgba(255,255,255,.02); }
.odr-cp .odr-cp-choice:focus-visible { outline: 2px solid var(--odr-cert); outline-offset: 2px; }
.odr-cp .odr-cp-choice:disabled { cursor: default; }
.odr-cp-letter { font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 600; color: var(--text-muted, #555); padding-top: 1px; flex-shrink: 0; }
.odr-cp .odr-cp-choice.is-right { border-color: var(--green, #22c55e); background: color-mix(in srgb, var(--green, #22c55e) 10%, transparent); }
.odr-cp .odr-cp-choice.is-right .odr-cp-letter { color: var(--green, #22c55e); }
.odr-cp .odr-cp-choice.is-wrong { border-color: var(--red, #ef4444); background: color-mix(in srgb, var(--red, #ef4444) 10%, transparent); }
.odr-cp .odr-cp-choice.is-wrong .odr-cp-letter { color: var(--red, #ef4444); }
.odr-cp .odr-cp-choice.is-dim { opacity: .55; }
.odr-cp-explain { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border, #222); }
.odr-cp-explain p { font-size: 14px; color: var(--text-dim, #888); line-height: 1.65; margin: 0; }
.odr-cp-verdict { font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.odr-cp-verdict.is-right { color: var(--green, #22c55e); }
.odr-cp-verdict.is-wrong { color: var(--red, #ef4444); }

/* FAQ: two columns like the homepage */
.odr-cp-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
.odr-cp .faq-q:hover { color: var(--odr-cert); }

/* Related cert cards (homepage track cards, coloured by category) */
.odr-cp .odr-cp-tcard { border-top: 2px solid var(--odr-cert); color: inherit; text-decoration: none; }
.odr-cp .odr-cp-tcard .track-label { color: var(--odr-cert); }
.odr-cp .odr-cp-tcard .track-title { margin-bottom: 4px; color: var(--white, #e8e8e8); }
.odr-cp-tcode { font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .05em; color: var(--text-dim, #888); margin-bottom: 14px; }
.odr-cp .odr-cp-tcard:hover .track-cta { border-color: var(--odr-cert); color: var(--odr-cert); }

/* Final CTA + trademark line */
.odr-cp-tm { max-width: 720px; margin: 48px auto 0; font-size: 12px; line-height: 1.6; color: var(--text-muted, #555); }

.odr-cp-error { padding: 12px 16px; border: 1px solid var(--red, #ef4444); border-radius: 6px; color: var(--red, #ef4444); }

@media (max-width: 1100px) {
	.odr-cp-glance { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
	.odr-cp-steps { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
}
@media (max-width: 760px) {
	.odr-cp-glance { grid-template-columns: 1fr 1fr; gap: 12px; }
	.odr-cp-glance-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.odr-cp-glance-icon { top: 14px; right: 14px; width: 32px; height: 32px; }
	.odr-cp-glance-icon svg { width: 17px; height: 17px; }
	.odr-cp-glance-icon + .odr-cp-glance-label { padding-right: 36px; }
}
@media (max-width: 768px) {
	.odr-cp-faq { grid-template-columns: 1fr; }
	/* The theme hides track-meta on phones; keep the counts on cert cards. */
	.odr-cp .odr-cp-tcard .track-meta { display: block; }
}
@media (max-width: 600px) {
	.odr-cp-glance-item { padding: 18px 16px; }
	.odr-cp-glance-value { font-size: 22px; }
	.odr-cp-step { padding: 20px 16px; }
	.odr-cp-pv { padding: 16px 14px; }
	.odr-cp .odr-cp-stats .product-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; }
	/* Keep the chevron on the title row instead of wrapping under the meta line */
	.odr-cp .curr-q { position: relative; padding-right: 28px; }
	.odr-cp .curr-chevron { position: absolute; right: 0; top: 24px; }
	.odr-cp .curr-meta { width: 100%; }
}

/* Narrow screens: long tokens (URLs, paths, commands) wrap instead of
 * widening the card; a wide preview table scrolls in its own box. */
.odr-cp-step > *, .odr-cp-pv > *, .odr-cp-choice > span { min-width: 0; }
.odr-cp-step-title, .odr-cp-step-text, .odr-cp-pv-title, .odr-cp-pv-body, .odr-cp ul.odr-cp-pv-list li, .odr-cp-pv-tip,
.odr-cp-sample-scenario, .odr-cp-sample-q, .odr-cp-choice, .odr-cp-explain, .odr-cp-pv-sname { overflow-wrap: anywhere; }
.odr-cp-pv-table th, .odr-cp-pv-table td { overflow-wrap: break-word; }
