/* =========================================================================
   Jobs Listing (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 "Jobs Listing" (8C41…, desktop 173:15182 / mobile 173:15490).
   Dark hero ("Current Openings") over a light body: section header, a filter
   bar (Department / Experience / Role Type / Office Location) and the openings
   list — one row per job with a department tag, location · experience and an
   Apply Now button. Content is inset to the Figma 160px rail.
   ========================================================================= */

:root {
	--jb-teal: #2ad9c4;
	--jb-ink: #111;
	--jb-ink-70: rgba(17, 17, 17, 0.7);
	--jb-line: rgba(17, 17, 17, 0.1);
}

/* -------------------------------------------------------------------------
   HERO  (dark, centered)
   ------------------------------------------------------------------------- */
.jb-hero {
	background: #0e0e0e;
	color: #fff;
}
.jb-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
	padding-block: clamp(72px, 9vw, 120px);
}
.jb-hero__title {
	margin: 0;
	font-weight: 500;
	font-size: 80px;
	line-height: 1.4;
	letter-spacing: -1.6px;
	color: #fff;
}
.jb-hero__sub {
	margin: 0;
	max-width: min(868px, 100%);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.4;
	letter-spacing: -0.48px;
	color: #fff;
}

/* -------------------------------------------------------------------------
   BODY  (light)
   ------------------------------------------------------------------------- */
.jb-body {
	background: #fff;
	padding-block: 100px;
}
.jb-inner {
	max-width: min(1600px, 100%);
	margin-inline: auto;
}

.jb-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.jb-head__title {
	margin: 0;
	font-weight: 500;
	font-size: 36px;
	line-height: 1.4;
	letter-spacing: -0.72px;
	color: var(--jb-ink);
}
.jb-head__sub {
	margin: 0;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.5;
	color: var(--jb-ink-70);
}

/* ---- Filter bar ---- */
.jb-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}
.jb-filter {
	position: relative;
}
.jb-filter__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid var(--jb-line);
	border-radius: 2px;
	font-family: inherit;
	font-weight: 500;
	font-size: 14px;
	color: var(--jb-ink);
	white-space: nowrap;
	cursor: pointer;
}
.jb-filter[data-active="true"] .jb-filter__btn {
	border-color: var(--jb-teal);
}
.jb-filter__chev {
	transition: transform 0.2s ease;
}
.jb-filter[data-open="true"] .jb-filter__chev {
	transform: rotate(180deg);
}
.jb-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 10;
	min-width: 200px;
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--jb-line);
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.jb-menu__opt {
	display: block;
	width: 100%;
	padding: 8px 12px;
	background: transparent;
	border: none;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
	text-align: left;
	color: var(--jb-ink);
	white-space: nowrap;
	cursor: pointer;
}
.jb-menu__opt:hover {
	background: rgba(17, 17, 17, 0.04);
}
.jb-menu__opt[data-sel="true"] {
	font-weight: 600;
	color: #1d403c;
}

/* ---- Job rows ---- */
.jb-list {
	margin-top: 32px;
}
.jb-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 32px 40px;
	border-bottom: 1px solid var(--jb-line);
}
.jb-row__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.jb-row__title {
	margin: 0;
	font-weight: 500;
	font-size: 24px;
	line-height: 1.4;
	letter-spacing: -0.48px;
	color: var(--jb-ink);
	text-decoration: none;
}
.jb-row__title:hover {
	text-decoration: underline;
}
.jb-row__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
.jb-tag {
	padding: 6px 12px;
	background: rgba(42, 217, 196, 0.1);
	border-radius: 2px;
	font-weight: 500;
	font-size: 14px;
	color: #1d403c;
}
.jb-meta__seg {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 400;
	font-size: 16px;
	color: var(--jb-ink-70);
}
.jb-dot {
	color: var(--jb-ink-70);
}
.jb-apply {
	flex: none;
	padding: 12px 24px;
	background: var(--jb-teal);
	border: none;
	border-radius: 2px;
	font-family: inherit;
	font-weight: 500;
	font-size: 16px;
	letter-spacing: -0.16px;
	color: #0a0a0a;
	white-space: nowrap;
	cursor: pointer;
}
.jb-apply:hover {
	filter: brightness(0.96);
}
.jb-empty {
	padding: 48px 40px;
	text-align: center;
	font-size: 16px;
	color: rgba(17, 17, 17, 0.6);
}

/* -------------------------------------------------------------------------
   MOBILE  (Figma 173:15490 — 390px frame, 20px rails, stacked rows)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.jb-hero__inner {
		align-items: flex-start;
		gap: 16px;
		text-align: left;
		padding-block: 40px;
	}
	.jb-hero__title {
		font-size: 32px;
		letter-spacing: -0.64px;
	}
	.jb-hero__sub {
		font-size: 14px;
		letter-spacing: -0.28px;
	}

	.jb-body {
		padding-block: 32px 40px;
	}
	.jb-head {
		gap: 8px;
	}
	.jb-head__title {
		font-size: 20px;
		letter-spacing: -0.4px;
	}
	.jb-head__sub {
		font-size: 13px;
	}

	.jb-filters {
		gap: 10px;
		margin-top: 24px;
	}
	.jb-filter {
		flex: 1 1 calc(50% - 5px);
	}
	.jb-filter__btn {
		width: 100%;
		justify-content: space-between;
		padding: 11px 14px;
		font-size: 12px;
		/* Already inline-flex + centred, so this only sets the tap height. */
		min-height: 44px;
	}

	.jb-list {
		margin-top: 24px;
	}
	.jb-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 24px 0;
	}
	.jb-row:first-child {
		padding-top: 0;
	}
	.jb-row__main {
		gap: 8px;
	}
	.jb-row__title {
		font-size: 16px;
		letter-spacing: -0.32px;
	}
	.jb-tag {
		padding: 4px 10px;
		font-size: 12px;
	}
	.jb-meta__seg {
		gap: 8px;
		font-size: 12px;
	}
	.jb-apply {
		/* Keeps Figma's smaller mobile label but holds a 44px touch target —
		   the 10px/12px combination alone rendered a 38px primary CTA. */
		padding: 10px 16px;
		font-size: 12px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.jb-empty {
		padding: 40px 0;
	}
}

/* =========================================================================
   FLUID DESKTOP BAND (769-1919)

   Type and section rhythm were frozen at their 1920 values all the way down to
   769px, so on a laptop the copy and spacing stayed full-size while the cards
   and imagery (width-driven) shrank around them.

   Max = the 1920 design value, so 1920 and above is byte-identical. Min = this
   file's own <=768 value, so the 768/769 boundary is continuous. Coefficient is
   design/19.2vw, which resolves to exactly the design value at 1920. Tracking
   is -0.02em at both type anchors, so one em value is correct at every step.
   Body copy and small UI are deliberately left fixed.
   ========================================================================= */
@media (min-width: 769px) and (max-width: 1919px) {
	/* Hero */
	.jb-hero__title {
		font-size: clamp(32px, 4.167vw, 80px);
		letter-spacing: -0.02em;
	}
	.jb-hero__sub {
		font-size: clamp(14px, 1.25vw, 24px);
		letter-spacing: -0.02em;
	}

	/* Section rhythm */
	.jb-body { padding-block: clamp(40px, 5.208vw, 100px); }
	.jb-head__title { font-size: clamp(20px, 1.875vw, 36px); }
	.jb-row__title { font-size: clamp(16px, 1.25vw, 24px); }
}
