/**
 * Clasva public Job Detail — flagship visual system (ARCHITECTURE.md §8).
 * Self-contained: this page does not load the employer token sheet.
 * Hero is LIGHT (a document, not a marketing page). Brand weight is carried
 * by the full-bleed navy closing band and blue data accents.
 */

.cjd {
	--cjd-navy: #0f172a;
	--cjd-blue: #2563eb;
	--cjd-blue-hover: #1d4ed8;
	--cjd-blue-light: #93c5fd;
	--cjd-surface: #ffffff;
	--cjd-surface-2: #f8fafc;
	--cjd-surface-3: #eff6ff;
	--cjd-line: #e2e8f0;
	--cjd-text: #1e293b;
	--cjd-muted: #475569;
	--cjd-disabled: #94a3b8;
	--cjd-header-offset: 107px;

	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 48px;
	box-sizing: border-box;
	overflow-x: clip;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: var(--cjd-text);
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
}

/* The active Breakdance job template keeps the shortcode inside its legacy
 * section wrapper. Own the document surface here so that wrapper's navy
 * marketing background cannot become the background for readable job copy. */
.breakdance .cjd-root {
	background: var(--cjd-surface) !important;
}

/* Template-specific containment: this class belongs only to the published
 * Job Detail template and is gated by the CJD root. No public card/search
 * surface is affected. */
.breakdance .bde-section-7968-100:has(.cjd-root) {
	background: var(--cjd-surface) !important;
	color: var(--cjd-text);
}

.cjd *,
.cjd *::before,
.cjd *::after {
	box-sizing: border-box;
}

.cjd section {
	text-align: left;
}

.cjd h2,
.cjd h3 {
	color: var(--cjd-navy);
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cjd-section > h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.cjd-section > h2::after {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--cjd-blue-light);
	flex: none;
}

.cjd h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 24px 0 10px;
}

.cjd p { margin: 0 0 14px; }
.cjd p.cjd-note { color: var(--cjd-muted); font-size: 15px; }
.cjd .cjd-eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cjd-blue-hover);
	margin-bottom: 6px;
}

.cjd a:not([class]) { color: var(--cjd-blue); text-decoration: underline; }
.cjd a:not([class]):hover { color: var(--cjd-blue-hover); }
.cjd .cjd-link { color: var(--cjd-blue); text-decoration: none; font-weight: 600; }
.cjd .cjd-link:hover { text-decoration: underline; }

.cjd :focus-visible {
	outline: 2px solid var(--cjd-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---- Buttons ---- */
.cjd .cjd-bp,
.cjd .cjd-bo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: inherit;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	padding: 14px 28px;
	border-radius: 10px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cjd .cjd-bp { background: var(--cjd-blue); color: #fff; }
.cjd .cjd-bp:hover { background: var(--cjd-blue-hover); }
.cjd .cjd-bo { background: transparent; color: var(--cjd-blue); border-color: var(--cjd-line); }
.cjd .cjd-bo:hover { border-color: var(--cjd-blue); background: var(--cjd-surface-3); }

/* ---- Hero (light) ---- */
.cjd-hero {
	padding: 40px 0 44px;
	border-bottom: 1px solid var(--cjd-line);
}
.cjd-breadcrumb {
	font-size: 13px;
	color: var(--cjd-muted);
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}
.cjd-breadcrumb a { color: var(--cjd-muted); text-decoration: none; }
.cjd-breadcrumb a:hover { color: var(--cjd-blue); }
.cjd-breadcrumb i { color: var(--cjd-disabled); font-style: normal; }

.cjd-lockup { display: inline-flex; align-items: center; gap: 10px; }
.cjd-logo,
.cjd-monogram {
	width: var(--cjd-tile, 44px);
	height: var(--cjd-tile, 44px);
	border-radius: 10px;
	flex: none;
	object-fit: contain;
	background: var(--cjd-surface-3);
}
.cjd-monogram {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	color: var(--cjd-blue-hover);
}
.cjd-monogram-blank { color: var(--cjd-disabled); }
.cjd-company-name { font-weight: 600; color: var(--cjd-navy); font-size: 15px; }
.cjd-company-name a { color: var(--cjd-navy); text-decoration: none; }
.cjd-company-name a:hover { color: var(--cjd-blue); text-decoration: underline; }
.cjd-verified {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-left: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #0a7a42;
}

.cjd .cjd-title {
	font-family: 'Instrument Serif', Georgia, serif !important;
	font-weight: 400 !important;
	color: var(--cjd-navy) !important;
	font-size: 44px;
	line-height: 1.1;
	margin: 16px 0 20px;
}

.cjd-factstrip {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}
.cjd-factstrip li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	color: var(--cjd-muted);
}
.cjd-factstrip .cjd-i { color: var(--cjd-blue); flex: none; }

.cjd-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.cjd-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
}
.cjd-chip-live { background: #dcfce7; color: #166534; }
.cjd-chip-review { background: var(--cjd-surface-3); color: var(--cjd-blue-hover); }

/* ---- Body grid ---- */
.cjd-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 348px;
	gap: 56px;
	padding-top: 40px;
}
.cjd-main { min-width: 0; }
.cjd-main > .cjd-section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--cjd-line); }
.cjd-main > .cjd-section:last-child { border-bottom: 0; margin-bottom: 0; }

/* ---- Rail ---- */
.cjd-rail { align-self: start; position: sticky; top: calc(var(--cjd-header-offset) + 24px); }
.cjd-rail-card {
	background: var(--cjd-surface-2);
	border: 1px solid var(--cjd-line);
	border-radius: 16px;
	padding: 22px;
}
.cjd-rail-rows { margin: 0 0 18px; }
.cjd-rail-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--cjd-line); }
.cjd-rail-row:last-child { border-bottom: 0; }
.cjd-rail-row dt { color: var(--cjd-muted); font-size: 13px; }
.cjd-rail-row dd { margin: 0; color: var(--cjd-navy); font-size: 13px; font-weight: 600; text-align: right; }
.cjd-rail-comp { font-family: 'Instrument Serif', Georgia, serif; font-size: 24px; color: var(--cjd-navy); margin-bottom: 16px; }
.cjd-rail-actions { display: flex; flex-direction: column; gap: 12px; }
.cjd-rail-actions .cjd-apply { width: 100%; justify-content: center; }

/* ---- Prose (imported job_description) ---- */
.cjd-prose { font-size: 16px; line-height: 1.7; }
.cjd-prose :is(img, video, iframe, table) { max-width: 100%; height: auto; }
.cjd-prose table { display: block; overflow-x: auto; }
.cjd-prose h1, .cjd-prose h2, .cjd-prose h3 { font-family: 'DM Sans', sans-serif; color: var(--cjd-navy); }
.cjd-prose ul, .cjd-prose ol { padding-left: 22px; }

/* ---- Run-in bullets ---- */
.cjd-runin { padding-left: 20px; }
.cjd-runin li { margin-bottom: 10px; }

.cjd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cjd-split ul { padding-left: 20px; margin: 0; }
.cjd-split li { margin-bottom: 8px; }

.cjd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cjd-chip-plain { background: var(--cjd-surface-3); color: var(--cjd-blue-hover); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; }

.cjd-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cjd-card { background: var(--cjd-surface-2); border: 1px solid var(--cjd-line); border-radius: 16px; padding: 18px; }
.cjd-card p { margin: 0; font-size: 14px; }

/* ---- Honest signals ---- */
.cjd-honest { background: var(--cjd-surface-2); border: 1px solid var(--cjd-line); border-radius: 16px; padding: 24px; }
.cjd-honest h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }

/* ---- Compensation ---- */
.cjd .cjd-comp-figure {
	font-family: 'Instrument Serif', Georgia, serif !important;
	color: var(--cjd-navy) !important;
	font-size: 34px;
	line-height: 1.15;
	margin: 0 0 18px;
}
.cjd-range { position: relative; padding: 8px 0 34px; max-width: 460px; }
.cjd-range-track { display: block; height: 6px; border-radius: 999px; background: var(--cjd-surface-3); position: relative; }
.cjd-range-band { position: absolute; inset: 0; border-radius: 999px; background: var(--cjd-blue); }
.cjd-range-band::before,
.cjd-range-band::after { content: ""; position: absolute; top: -3px; width: 3px; height: 12px; border-radius: 2px; background: var(--cjd-blue-hover); }
.cjd-range-band::before { left: 0; }
.cjd-range-band::after { right: 0; }
.cjd-range-min,
.cjd-range-max { position: absolute; top: 20px; font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; color: var(--cjd-navy); }
.cjd-range-min { left: 0; }
.cjd-range-max { right: 0; }
.cjd-comp-caption { color: var(--cjd-muted); font-size: 13px; margin: 0; }
.cjd-comp-derived { color: var(--cjd-muted); font-size: 13px; margin: 6px 0 0; font-style: italic; }

/* ---- Benefits ---- */
.cjd-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cjd-benefit { display: flex; align-items: center; gap: 8px; background: var(--cjd-surface-3); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--cjd-navy); }
.cjd-benefit .cjd-i { color: var(--cjd-blue); flex: none; }

/* ---- Hiring stepper ---- */
.cjd-stepper { list-style: none; margin: 0; padding: 0; }
.cjd-stepper li { position: relative; padding: 0 0 22px 34px; }
.cjd-stepper li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--cjd-blue-light); }
.cjd-stepper li:last-child::before { display: none; }
.cjd-step-node { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 999px; background: var(--cjd-navy); }
.cjd-step-body { font-size: 14px; }

/* ---- Disclosure ---- */
.cjd-disclosure { background: var(--cjd-surface-2); border: 1px solid var(--cjd-line); border-radius: 16px; padding: 24px; }
.cjd-disc-list { list-style: none; margin: 12px 0 0; padding: 0; }
.cjd-disc-list li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; font-size: 14px; }
.cjd-disc-mark { flex: none; font-weight: 700; }
.cjd-disc-yes .cjd-disc-mark { color: var(--cjd-blue); }
.cjd-disc-no .cjd-disc-mark { color: var(--cjd-disabled); }
.cjd-disc-label { color: var(--cjd-muted); }
.cjd-disc-val { color: var(--cjd-navy); font-weight: 600; }
.cjd-disc-no .cjd-disc-val { color: var(--cjd-disabled); font-weight: 400; }
.cjd-disc-more { margin-top: 10px; }
.cjd-disc-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--cjd-muted); }

/* ---- Company ---- */
.cjd-company-card { background: var(--cjd-surface-2); border: 1px solid var(--cjd-line); border-radius: 16px; padding: 24px; }
.cjd-company-card > .cjd-lockup { margin-bottom: 14px; }
.cjd-fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 16px 0; }
.cjd-fact-grid dt { color: var(--cjd-muted); font-size: 12px; }
.cjd-fact-grid dd { margin: 2px 0 0; color: var(--cjd-navy); font-size: 14px; font-weight: 600; }

/* ---- Similar roles ---- */
.cjd-similar { padding: 56px 0; }
.cjd-similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cjd-similar-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: var(--cjd-surface);
	border: 1px solid var(--cjd-line);
	border-top: 3px solid var(--cjd-blue);
	border-radius: 16px;
	padding: 20px;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.cjd-similar-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, .1); }
.cjd-similar-title { font-weight: 700; color: var(--cjd-navy); font-size: 15px; }
.cjd-similar-company { color: var(--cjd-muted); font-size: 13px; }
.cjd-similar-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--cjd-muted); margin-top: 4px; align-items: center; }

/* ---- Closing navy band (full-bleed) ---- */
.cjd .cjd-close {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: var(--cjd-navy);
	color: #fff;
	text-align: center;
	padding: 96px 48px;
}
.cjd .cjd-close-lead {
	font-family: 'Instrument Serif', Georgia, serif;
	font-size: 32px;
	color: #fff;
	margin: 0 0 14px;
}
.cjd .cjd-close-copy { color: #cbd5e1; font-size: 15px; max-width: 560px; margin: 0 auto 22px; }
.cjd .cjd-close .cjd-apply { margin: 0 auto; }

/* ---- Mobile apply bar ---- */
.cjd-mobilebar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid var(--cjd-line);
	box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
}
.cjd-mobilebar-lead { font-weight: 700; color: var(--cjd-navy); font-size: 14px; }
.cjd-mobilebar .cjd-apply { flex: none; }

/* The bar is a mobile affordance. A desktop fixed bar can bisect the CJD
 * document and compete with the rail CTA, so keep it out of desktop layout
 * regardless of the JS observer state. */
@media (min-width: 961px) {
	.cjd-mobilebar { display: none !important; }
}

/* Retained native BD popup source — hidden only once JS confirms binding. */
.cjd-js .bde-div-7968-134 {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
	.cjd { padding: 0 22px; }
	.cjd-body { display: flex; flex-direction: column; gap: 40px; }
	.cjd-rail { position: static; order: -1; }
	.cjd-rail-card { padding: 18px; }
	.cjd .cjd-title { font-size: 32px; }
	.cjd-split { grid-template-columns: 1fr; gap: 20px; }
	.cjd-cards-3,
	.cjd-similar-grid { grid-template-columns: 1fr; }
	.cjd-benefits { grid-template-columns: repeat(2, 1fr); }
	.cjd-fact-grid { grid-template-columns: 1fr; }
	.cjd .cjd-close { padding: 56px 22px; }
	.cjd .cjd-close .cjd-apply { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
	.cjd-benefits { grid-template-columns: 1fr; }
	.cjd-mobilebar { gap: 8px; padding-left: 10px; padding-right: 10px; }
	.cjd-mobilebar-lead { min-width: 0; flex: 0 1 auto; font-size: 12px; }
	.cjd-mobilebar .cjd-apply { min-width: 0; width: auto; flex: 1 1 auto; padding: 12px 14px; text-align: center; }
}
