/* ==========================================================================
   T/K JazzHR Jobs — styling to match the Careers "Job Listing" Figma section.
   Tokens pulled from the design: Montserrat, white on dark, 60px semibold
   titles, 22px numbers, 32px intro, transparent pill "See More" button.

   The component is full width with NO padding or background of its own —
   the Divi row it sits in owns spacing and background. Text is white, so
   place it on a dark row (matching the design). If you ever need it on a
   light row, set  --tkjobs-fg: #000;  in the module's custom CSS.
   ========================================================================== */

.tkjobs {
	--tkjobs-fg: #ffffff;                       /* text + button border/label */
	--tkjobs-rule: #a0a9b3;                      /* divider lines             */
	--tkjobs-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Background + spacing are owned by the Divi row this drops into.        */
	background: transparent;
	color: var(--tkjobs-fg);
	font-family: var(--tkjobs-font);
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scroll-margin-top: 120px;
}

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

/* ----- The list ---------------------------------------------------------- */
.tkjobs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: tkjobs;
}

.tkjobs__row {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 3.5rem);
	padding: clamp(1.25rem, 2.8vw, 2rem) 0;
	border-bottom: 1px solid var(--tkjobs-rule);
}

.tkjobs__num {
	flex: 0 0 auto;
	min-width: 3.25rem;
	font-weight: 400;
	font-size: 22px;
	line-height: 1;
	opacity: 0.9;
}

.tkjobs__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.tkjobs__title {
	font-weight: 600;
	font-size: clamp(1.5rem, 4.2vw, 3.75rem); /* up to 60px */
	line-height: 1.05;
	color: inherit;
	text-decoration: none;
}

/* Turn the title into a link that covers the whole row (number + title +
   whitespace all become clickable). align-self keeps the link box hugging
   the text; the stretched ::after is what makes the whole row clickable.
   The button sits above it (z-index) so it stays independently clickable. */
.tkjobs__title--link {
	align-self: flex-start;
}

.tkjobs__title--link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.tkjobs__meta {
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.3;
	opacity: 0.7;
	letter-spacing: 0.02em;
}

/* ----- "See More" pill button ------------------------------------------- */
.tkjobs__btn {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 25px;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.7;
	white-space: nowrap;
	text-decoration: none;
	color: var(--tkjobs-fg);
	background: transparent;
	border: 1px solid var(--tkjobs-fg);
	border-radius: 50px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tkjobs__btn:hover,
.tkjobs__btn:focus-visible {
	background: var(--tkjobs-fg);
	color: #000000;
}

/* ----- Empty state ------------------------------------------------------- */
.tkjobs__empty {
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--tkjobs-rule);
	font-weight: 400;
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	line-height: 1.4;
}

/* ----- Accessibility helper (visually hidden label) ---------------------- */
.tkjobs .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ----- Mobile: number inline with the title; Apply button below (right) --- */
@media (max-width: 640px) {
	.tkjobs__row {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: baseline;
		column-gap: 1rem;
		row-gap: 0.75rem;
	}

	.tkjobs__num {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
	}

	.tkjobs__body {
		grid-column: 2;
		grid-row: 1;
	}

	.tkjobs__btn {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: end;
	}
}
