/* =========================================================================
   Job Details (v2)  —  layered on top of home-v2.css (Uncut Sans, .hv-shell,
   the vertical frame rails on every `main > section`, sticky .hv-header).

   Built from Figma "Job Detail" (8C41…, desktop 169:14522 / mobile 169:14804).
   Desktop: dark hero (title + metadata) over a two-column light body — a 1000px
   content column (rendered WordPress job body) beside a 400px sticky
   "Role Highlights" card, 80px apart, inset to the Figma 220px rail.
   ========================================================================= */

:root {
	--jd-teal: #2ad9c4;
	--jd-ink: #111;
	--jd-ink-70: rgba(17, 17, 17, 0.7);
	--jd-ink-10: rgba(17, 17, 17, 0.1);
	--jd-bullet: #1d2227;
}

/* -------------------------------------------------------------------------
   HERO  (dark, sits on the page frame under the sticky nav)
   ------------------------------------------------------------------------- */
.jd-hero {
	background: #0e0e0e;
	color: #fff;
}
.jd-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding-top: clamp(56px, 6vw, 96px);
	padding-bottom: clamp(40px, 4vw, 56px);
}
.jd-hero__title {
	margin: 0;
	font-weight: 600;
	font-size: 64px;
	line-height: 1.2;
	letter-spacing: -1.28px;
	color: #fff;
}
/* Metadata row: parts separated by teal bullets, 24px gaps throughout. */
.jd-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	font-size: 18px;
	line-height: 1.4;
}
.jd-meta__text {
	color: rgba(255, 255, 255, 0.7);
}
.jd-meta__dot {
	color: var(--jd-teal);
}
/* Apply button lives in the hero on mobile only (Figma 169:14822). */
.jd-hero__apply {
	display: none;
}

/* -------------------------------------------------------------------------
   BODY  (light, two columns)
   ------------------------------------------------------------------------- */
.jd-body {
	background: #fff;
	padding-block: 100px;
}
.jd-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 80px;
	max-width: min(1480px, 100%); /* 1000 + 80 + 400 → 220px inset from the 1720 frame */
	margin-inline: auto;
	align-items: start;
}

/* ---- Left column: the rendered WordPress job body ----------------------- */
.jd-prose {
	min-width: 0;
}
.jd-prose--loading {
	min-height: 60vh;
}
.jd-prose > :first-child {
	margin-top: 0;
}
.jd-prose h2,
.jd-prose h3 {
	margin: 56px 0 20px;
	font-weight: 600;
	font-size: 28px;
	line-height: 1.3;
	letter-spacing: -0.28px;
	color: var(--jd-ink);
}
.jd-prose p {
	margin: 0 0 16px;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	color: var(--jd-ink-70);
}
.jd-prose a {
	color: var(--jd-teal);
	text-decoration: none;
}
.jd-prose a:hover {
	text-decoration: underline;
}
.jd-prose ul,
.jd-prose ol {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.jd-prose li {
	position: relative;
	padding-left: 19px;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	color: var(--jd-ink-70);
}
.jd-prose li::before {
	content: "•";
	position: absolute;
	left: 0;
	top: 0;
	font-size: 18px;
	line-height: 1.5;
	color: var(--jd-bullet);
}
.jd-prose > :last-child {
	margin-bottom: 0;
}

/* ---- Right column: sticky "Role Highlights" card ------------------------ */
.jd-side {
	position: sticky;
	top: 96px;
	align-self: start;
}
.jd-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px;
	background: #fff;
	border: 1px solid var(--jd-ink-10);
	border-radius: 8px;
}
.jd-card__title {
	margin: 0;
	font-weight: 600;
	font-size: 22px;
	line-height: 1.2;
	color: var(--jd-ink);
}
.jd-card__rule {
	display: block;
	height: 1px;
	width: 100%;
	background: var(--jd-ink-10);
}
.jd-facts {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.jd-fact {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.jd-fact__label {
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	color: var(--jd-ink-70);
}
.jd-fact__value {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	color: var(--jd-ink);
}
/* Employment Type is only shown on mobile (Figma 169:14841). */
.jd-fact--mobile {
	display: none;
}
.jd-apply {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 24px;
	background: var(--jd-teal);
	border: none;
	border-radius: 2px;
	font-family: inherit;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.16px;
	color: #0a0a0a;
	text-decoration: none;
	cursor: pointer;
}
.jd-apply:hover {
	filter: brightness(0.96);
}

/* -------------------------------------------------------------------------
   MOBILE  (Figma 169:14804 — 390px frame, 20px rails)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.jd-hero__inner {
		padding-top: 40px;
		padding-bottom: 40px;
		gap: 20px;
	}
	.jd-hero__title {
		font-size: 36px;
		letter-spacing: -0.72px;
	}
	.jd-meta {
		gap: 12px;
		font-size: 14px;
	}
	/* Apply button appears in the hero on mobile. */
	.jd-hero__apply {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		margin-top: 4px;
		padding: 12px 24px;
		background: var(--jd-teal);
		border: none;
		border-radius: 2px;
		font-family: inherit;
		font-weight: 500;
		font-size: 16px;
		line-height: 1.5;
		letter-spacing: -0.16px;
		color: #0a0a0a;
		text-decoration: none;
		cursor: pointer;
	}

	.jd-body {
		padding-block: 32px 48px;
	}
	.jd-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	/* Card sits ahead of the body copy on mobile; not sticky. */
	.jd-side {
		position: static;
		top: auto;
		order: -1;
	}
	.jd-fact--mobile {
		display: flex;
	}
	.jd-prose h2,
	.jd-prose h3 {
		margin-top: 40px;
		font-size: 22px;
		letter-spacing: -0.22px;
	}
}

/* =========================================================================
   FLUID DESKTOP BAND (769-1919) — see the note in blog.css.
   Max = 1920 design value, min = this file's own <=768 value, coefficient =
   design/19.2vw (3.333vw for the 64px title). Body copy stays fixed.
   ========================================================================= */
@media (min-width: 769px) and (max-width: 1919px) {
	.jd-hero__title { font-size: clamp(36px, 3.333vw, 64px); letter-spacing: -0.02em; }
}
