/**
 * RPS Job Listings — jobs page, filter dialog and job pages.
 *
 * Every selector is scoped to .rps-jl (the component root) so nothing leaks
 * into the theme. Rules use two classes to win over the theme's .entry
 * typography (.entry p, .entry ul, .entry h2 …).
 *
 * Layout adapts to the width of the component (container queries), not the
 * viewport, because the theme's content column has fixed widths per
 * breakpoint. The filter dialog adapts to the viewport.
 */

/* ─── Tokens ─────────────────────────────────────────────────────────────── */

.rps-jl {
	/* Figma palette */
	--rps-jl-purple-dark: #440494;
	--rps-jl-purple: #7100ff;
	--rps-jl-lavender: #f9f7fe;
	--rps-jl-grey-light: #d7d7d7;
	--rps-jl-grey: #bebebe;
	/* Figma #777777 is 4.48:1 on white; #767676 reaches the 4.5:1 minimum. */
	--rps-jl-grey-dark: #767676;
	--rps-jl-white: #fff;
	--rps-jl-text: #111;

	/* Not in the Figma palette (see README). The yellow is the site's own
	   accent from the theme customizer; the Figma swatch's hex is mislabelled. */
	--rps-jl-accent: #f7cb4f;
	--rps-jl-danger: #c8102e;
	--rps-jl-card-border: #ebe4fb;
	--rps-jl-chip-bg: #efe8fc;

	--rps-jl-radius: 6px;

	container: rps-jl / inline-size;
	color: var(--rps-jl-text);
	font-size: 16px;
	line-height: 1.4;
}

.rps-jl *,
.rps-jl *::before,
.rps-jl *::after {
	box-sizing: border-box;
}

.rps-jl .rps-jl-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.rps-jl [hidden] {
	display: none !important;
}

/* The theme removes all focus outlines (:focus { outline: 0 }). */
.rps-jl :focus-visible {
	outline: 2px solid var(--rps-jl-purple);
	outline-offset: 2px;
}

.rps-jl .rps-jl-icon {
	display: inline-block;
	flex: none;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
}

.rps-jl button {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	cursor: pointer;
}

/* Lists inside the component are layout, not content. */
.rps-jl .rps-jl-tags,
.rps-jl .rps-jl-active__chips,
.rps-jl .rps-jl-options,
.rps-jl .rps-jl-facts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rps-jl .rps-jl-tags > li,
.rps-jl .rps-jl-active__chips > li,
.rps-jl .rps-jl-options > li,
.rps-jl .rps-jl-facts > li {
	margin: 0;
	padding: 0;
}

/* ─── Search ─────────────────────────────────────────────────────────────── */

.rps-jl .rps-jl-search {
	display: flex;
	gap: 16px;
	margin: 0 0 12px;
}

.rps-jl .rps-jl-search__field {
	display: flex;
	flex: 1;
	align-items: center;
	min-width: 0;
	padding: 3px 3px 3px 12px;
	background: var(--rps-jl-white);
	border: 1px solid var(--rps-jl-purple);
	border-radius: 999px;
}

.rps-jl .rps-jl-search__field:focus-within {
	outline: 2px solid var(--rps-jl-purple);
	outline-offset: 2px;
}

.rps-jl .rps-jl-search__icon {
	width: 18px;
	height: 18px;
	color: var(--rps-jl-grey-dark);
}

.rps-jl .rps-jl-search__input {
	flex: 1;
	min-width: 0;
	height: 36px;
	margin: 0;
	padding: 0 8px;
	color: var(--rps-jl-text);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	background: transparent;
	border: 0;
	border-radius: 0;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
}

/* The theme forces every placeholder to 12px black with !important. */
.rps-jl .rps-jl-search__input::placeholder,
.rps-jl .rps-jl-dialog__search::placeholder {
	color: var(--rps-jl-grey-dark) !important;
	font-size: 16px !important;
	font-weight: 400;
	opacity: 1;
}

.rps-jl .rps-jl-search__input::-webkit-input-placeholder,
.rps-jl .rps-jl-dialog__search::-webkit-input-placeholder {
	color: var(--rps-jl-grey-dark) !important;
	font-size: 16px !important;
}

.rps-jl .rps-jl-search__filter {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: var(--rps-jl-white);
	background: var(--rps-jl-purple-dark);
	border: 0;
	border-radius: 50%;
}

.rps-jl .rps-jl-search__filter:hover {
	background: var(--rps-jl-purple);
}

.rps-jl .rps-jl-search__filter .rps-jl-icon {
	width: 22px;
	height: 22px;
}

/* ─── Count and sorting ──────────────────────────────────────────────────── */

.rps-jl .rps-jl-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0 10px;
	border-bottom: 1px solid var(--rps-jl-grey-light);
}

.rps-jl .rps-jl-count {
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.4;
}

.rps-jl .rps-jl-sort {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-width: 9.5em;
	border-bottom: 1px solid var(--rps-jl-accent);
}

.rps-jl .rps-jl-sort__select {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 2px 24px 2px 2px;
	color: var(--rps-jl-grey-dark);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.rps-jl .rps-jl-sort__icon {
	position: absolute;
	right: 2px;
	width: 14px;
	height: 14px;
	color: var(--rps-jl-grey-dark);
	pointer-events: none;
}

/* ─── Active filters ─────────────────────────────────────────────────────── */

.rps-jl .rps-jl-active {
	padding: 10px 0 8px;
	border-bottom: 1px solid var(--rps-jl-grey-light);
}

.rps-jl .rps-jl-active__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rps-jl .rps-jl-active__chips:empty {
	display: none;
}

.rps-jl .rps-jl-active-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 26px;
	padding: 2px 10px;
	color: var(--rps-jl-purple-dark);
	font-size: 14px;
	line-height: 1.2;
	background: var(--rps-jl-chip-bg);
	border: 0;
	border-radius: 999px;
}

.rps-jl .rps-jl-active-chip .rps-jl-icon {
	width: 13px;
	height: 13px;
}

.rps-jl .rps-jl-active-chip:hover {
	background: var(--rps-jl-card-border);
}

.rps-jl .rps-jl-clear-all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 26px;
	margin-top: 4px;
	padding: 2px 0;
	color: var(--rps-jl-danger);
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	background: none;
	border: 0;
}

.rps-jl .rps-jl-clear-all .rps-jl-icon {
	width: 14px;
	height: 14px;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */

.rps-jl .rps-jl-cards {
	display: grid;
	gap: 12px;
	padding-top: 16px;
}

.rps-jl .rps-jl-card {
	display: grid;
	gap: 10px;
	min-width: 0;
	padding: 12px 14px;
	background: var(--rps-jl-white);
	border: 1px solid var(--rps-jl-card-border);
	border-radius: var(--rps-jl-radius);
}

.rps-jl .rps-jl-card__head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "logo title employer";
	gap: 4px 10px;
	align-items: center;
}

.rps-jl .rps-jl-card__logo {
	grid-area: logo;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	overflow: hidden;
	border-radius: 4px;
}

.rps-jl .rps-jl-card__logo__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 0;
}

.rps-jl .rps-jl-card__logo--placeholder,
.rps-jl .rps-jl-job-head__logo--placeholder {
	color: var(--rps-jl-purple-dark);
	font-weight: 700;
	background: var(--rps-jl-lavender);
	border: 1px solid var(--rps-jl-card-border);
}

.rps-jl .rps-jl-card__title {
	grid-area: title;
	margin: 0;
	padding: 0;
	color: var(--rps-jl-text);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.rps-jl .rps-jl-card__employer {
	grid-area: employer;
	align-self: start;
	max-width: 22em;
	padding-top: 2px;
	font-size: 16px;
	text-align: right;
	overflow-wrap: anywhere;
}

.rps-jl .rps-jl-card__sep {
	margin: 0 4px;
}

.rps-jl .rps-jl-card__dates {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	cursor: default;
}

.rps-jl .rps-jl-card__dates strong {
	font-weight: 700;
}

.rps-jl .rps-jl-card__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: flex-end;
	justify-content: space-between;
}

.rps-jl .rps-jl-tags {
	display: flex;
	flex-wrap: wrap;
	row-gap: 4px;
	color: var(--rps-jl-purple-dark);
	font-size: 15px;
	line-height: 1.3;
}

.rps-jl .rps-jl-tags > li + li {
	margin-left: 9px;
	padding-left: 9px;
	border-left: 1px solid var(--rps-jl-grey-light);
}

/* A card's filter values add that filter; they look exactly like plain text. */
.rps-jl .rps-jl-tags__link,
.rps-jl .rps-jl-tags__link:hover,
.rps-jl .rps-jl-tags__link:visited {
	color: inherit;
	text-decoration: none;
	background: none;
	box-shadow: none;
}

.rps-jl .rps-jl-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 24px;
	margin-left: auto;
	color: var(--rps-jl-purple);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.rps-jl .rps-jl-card__cta:hover {
	text-decoration: underline;
}

.rps-jl .rps-jl-card__cta .rps-jl-icon {
	width: 12px;
	height: 12px;
}

/* ─── Empty state ────────────────────────────────────────────────────────── */

.rps-jl .rps-jl-empty {
	padding: 24px 0 8px;
}

.rps-jl .rps-jl-empty__text {
	margin: 0 0 12px;
	padding: 0;
	font-size: 16px;
}

.rps-jl .rps-jl-empty__clear {
	min-height: 36px;
	padding: 6px 18px;
	color: var(--rps-jl-purple-dark);
	font-size: 15px;
	background: var(--rps-jl-white);
	border: 1px solid var(--rps-jl-purple-dark);
	border-radius: 999px;
}

/* ─── Narrow component (mobile layout) ───────────────────────────────────── */

@container rps-jl (max-width: 599px) {
	.rps-jl .rps-jl-count,
	.rps-jl .rps-jl-empty__text {
		font-size: 12px;
	}

	.rps-jl .rps-jl-sort__select {
		font-size: 12px;
	}

	.rps-jl .rps-jl-sort {
		min-width: 0;
		width: 50%;
		max-width: 11em;
	}

	.rps-jl .rps-jl-active-chip {
		font-size: 12px;
	}

	.rps-jl .rps-jl-card {
		gap: 8px;
		padding: 12px;
		border-color: #dccff9;
	}

	.rps-jl .rps-jl-card__head {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"logo title"
			"logo employer";
		align-items: start;
	}

	.rps-jl .rps-jl-card__logo {
		width: 30px;
		height: 30px;
		margin-top: 2px;
	}

	.rps-jl .rps-jl-card__title {
		font-size: 16px;
	}

	.rps-jl .rps-jl-card__employer {
		max-width: none;
		padding: 0;
		font-size: 12px;
		text-align: left;
	}

	.rps-jl .rps-jl-card__dates {
		font-size: 12px;
	}

	/* Figma: 10px. 11px is the smallest size kept for legibility. */
	.rps-jl .rps-jl-tags {
		font-size: 11px;
	}

	.rps-jl .rps-jl-tags > li + li {
		margin-left: 7px;
		padding-left: 7px;
	}

	.rps-jl .rps-jl-card__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.rps-jl .rps-jl-card__cta {
		align-self: flex-end;
		font-size: 14px;
	}
}

/* ─── Filter dialog ──────────────────────────────────────────────────────── */

html.rps-jl-modal-open {
	overflow: hidden;
}

.rps-jl .rps-jl-dialog {
	width: min(640px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	color: var(--rps-jl-text);
	background: var(--rps-jl-white);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 8px 32px rgb(0 0 0 / 18%);
}

.rps-jl .rps-jl-dialog[open] {
	display: flex;
	flex-direction: column;
}

.rps-jl .rps-jl-dialog::backdrop {
	background: rgb(17 17 17 / 45%);
}

.rps-jl .rps-jl-dialog__form {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.rps-jl .rps-jl-dialog__header {
	display: flex;
	flex: none;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 4px 24px;
}

.rps-jl .rps-jl-dialog__title {
	margin: 0;
	padding: 0;
	color: var(--rps-jl-text);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

.rps-jl .rps-jl-dialog__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--rps-jl-text);
	background: none;
	border: 0;
	border-radius: 50%;
}

.rps-jl .rps-jl-dialog__close .rps-jl-icon {
	width: 22px;
	height: 22px;
}

.rps-jl .rps-jl-dialog__body {
	flex: 1;
	min-height: 0;
	padding: 0 24px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.rps-jl .rps-jl-dialog__intro,
.rps-jl .rps-jl-dialog__help {
	display: block;
	margin: 0 0 10px;
	padding: 0;
	font-size: 16px;
	line-height: 1.4;
}

.rps-jl .rps-jl-dialog__search {
	display: block;
	width: 100%;
	height: 40px;
	margin: 0 0 20px;
	padding: 0 16px;
	color: var(--rps-jl-text);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	background: var(--rps-jl-white);
	border: 1px solid var(--rps-jl-grey-light);
	border-radius: 999px;
	-webkit-appearance: none;
	appearance: none;
}

.rps-jl .rps-jl-dialog__search:focus-visible {
	border-color: var(--rps-jl-purple);
}

.rps-jl .rps-jl-dialog__subtitle {
	margin: 0 0 8px;
	padding: 0;
	color: var(--rps-jl-text);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.rps-jl .rps-jl-group {
	border-bottom: 1px solid var(--rps-jl-purple);
}

.rps-jl .rps-jl-group__heading {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

.rps-jl .rps-jl-group__toggle {
	display: flex;
	gap: 8px;
	align-items: center;
	width: 100%;
	min-height: 44px;
	padding: 12px 8px 4px;
	color: var(--rps-jl-purple-dark);
	font-size: 16px;
	font-weight: 500;
	text-align: left;
	background: none;
	border: 0;
}

.rps-jl .rps-jl-group__name {
	flex: 1;
}

.rps-jl .rps-jl-group__count {
	font-size: 12px;
	font-weight: 500;
}

.rps-jl .rps-jl-group__icon {
	width: 18px;
	height: 18px;
}

.rps-jl .rps-jl-group__toggle[aria-expanded="true"] .rps-jl-group__icon {
	transform: rotate(180deg);
}

.rps-jl .rps-jl-group__panel {
	padding: 12px 0 14px;
}

.rps-jl .rps-jl-group__none {
	margin: 0;
	padding: 0;
	color: var(--rps-jl-grey-dark);
	font-size: 14px;
}

.rps-jl .rps-jl-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rps-jl .rps-jl-options > li {
	position: relative;
}

.rps-jl .rps-jl-option__input {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.rps-jl .rps-jl-option {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	margin: 0;
	padding: 3px 12px;
	color: var(--rps-jl-purple-dark);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	background: var(--rps-jl-white);
	border: 1px solid var(--rps-jl-purple-dark);
	border-radius: 999px;
	cursor: pointer;
	user-select: none;
}

.rps-jl .rps-jl-option:hover {
	background: var(--rps-jl-lavender);
}

.rps-jl .rps-jl-option__input:checked + .rps-jl-option,
.rps-jl .rps-jl-option--all[aria-pressed="true"] {
	color: var(--rps-jl-white);
	background: var(--rps-jl-purple-dark);
}

.rps-jl .rps-jl-option__input:focus-visible + .rps-jl-option {
	outline: 2px solid var(--rps-jl-purple);
	outline-offset: 2px;
}

.rps-jl .rps-jl-dialog__footer {
	display: flex;
	flex: none;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px 20px;
	border-top: 1px solid transparent;
}

.rps-jl .rps-jl-dialog__reset {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 4px 8px;
	color: var(--rps-jl-purple-dark);
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	background: none;
	border: 0;
}

.rps-jl .rps-jl-dialog__reset .rps-jl-icon {
	width: 14px;
	height: 14px;
}

.rps-jl .rps-jl-dialog__apply {
	min-width: 200px;
	min-height: 44px;
	padding: 10px 32px;
	color: var(--rps-jl-white);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: var(--rps-jl-purple-dark);
	border: 0;
	border-radius: var(--rps-jl-radius);
}

.rps-jl .rps-jl-dialog__apply:hover {
	background: var(--rps-jl-purple);
}

/* Full-screen dialog on phones. */
@media (max-width: 599px) {
	.rps-jl .rps-jl-dialog {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		margin: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.rps-jl .rps-jl-dialog__header {
		padding: calc(10px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left));
	}

	.rps-jl .rps-jl-dialog__title {
		font-size: 16px;
	}

	.rps-jl .rps-jl-dialog__body {
		padding: 0 calc(16px + env(safe-area-inset-right)) 12px calc(16px + env(safe-area-inset-left));
	}

	.rps-jl .rps-jl-dialog__intro,
	.rps-jl .rps-jl-dialog__help {
		font-size: 14px;
	}

	.rps-jl .rps-jl-dialog__subtitle {
		font-size: 14px;
	}

	.rps-jl .rps-jl-group__toggle {
		font-size: 14px;
	}

	.rps-jl .rps-jl-option {
		font-size: 12px;
	}

	.rps-jl .rps-jl-dialog__footer {
		flex-direction: column;
		align-items: stretch;
		padding: 12px calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
		border-top-color: var(--rps-jl-grey-light);
	}

	.rps-jl .rps-jl-dialog__reset {
		align-self: center;
	}

	.rps-jl .rps-jl-dialog__apply {
		width: 100%;
	}
}

/* ─── Job page ───────────────────────────────────────────────────────────── */

.rps-jl .rps-jl-single__kicker {
	margin: 0 0 8px;
	padding: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.rps-jl .rps-jl-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 32px;
	margin-bottom: 16px;
	color: var(--rps-jl-text);
	font-size: 13px;
	text-decoration: none;
	text-transform: uppercase;
}

.rps-jl .rps-jl-back .rps-jl-icon {
	width: 16px;
	height: 16px;
	color: var(--rps-jl-purple);
}

.rps-jl .rps-jl-back:hover {
	color: var(--rps-jl-purple);
}

.rps-jl .rps-jl-job-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "logo main published";
	gap: 8px 20px;
	align-items: start;
}

.rps-jl .rps-jl-job-head__logo {
	grid-area: logo;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	overflow: hidden;
	font-size: 36px;
	border: 1px solid #f0f0f0;
	border-radius: 12px;
}

.rps-jl .rps-jl-job-head__logo__img {
	width: 100%;
	height: 100%;
	padding: 6px;
	object-fit: contain;
	border-radius: 0;
}

.rps-jl .rps-jl-job-head__main {
	grid-area: main;
	min-width: 0;
}

.rps-jl .rps-jl-job-head__company {
	color: var(--rps-jl-grey-dark);
	font-size: 16px;
}

.rps-jl .rps-jl-job-head__company a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: inherit;
	text-decoration: none;
}

.rps-jl .rps-jl-job-head__company a:hover {
	color: var(--rps-jl-purple);
	text-decoration: underline;
}

.rps-jl .rps-jl-job-head__company .rps-jl-icon {
	width: 13px;
	height: 13px;
}

.rps-jl .rps-jl-job-head__title {
	margin: 2px 0 6px;
	padding: 0;
	color: var(--rps-jl-text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.rps-jl .rps-jl-job-head__published {
	grid-area: published;
	font-size: 14px;
	white-space: nowrap;
}

.rps-jl .rps-jl-job-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
	gap: 16px 24px;
	align-items: start;
	margin: 20px 0 8px;
}

.rps-jl .rps-jl-facts {
	display: flex;
	flex-wrap: wrap;
	row-gap: 12px;
}

.rps-jl .rps-jl-fact {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-areas:
		"icon main"
		". sub";
	column-gap: 6px;
	align-items: center;
	align-content: start;
}

.rps-jl .rps-jl-facts > li + li {
	margin-left: 20px;
	padding-left: 20px;
	border-left: 1px solid var(--rps-jl-purple);
}

/* Salary: its own row under the other facts, aligned with the first one, in regular weight. */
.rps-jl .rps-jl-facts > .rps-jl-fact--salary {
	flex-basis: 100%;
	justify-content: start;
	margin-left: 0;
	padding-left: 0;
	border-left: 0;
}

.rps-jl .rps-jl-fact__icon {
	grid-area: icon;
	width: 20px;
	height: 20px;
}

.rps-jl .rps-jl-fact__main {
	grid-area: main;
	font-size: 18px;
	font-weight: 700;
}

.rps-jl .rps-jl-fact--salary .rps-jl-fact__main {
	font-weight: 400;
}

.rps-jl .rps-jl-fact__sub {
	grid-area: sub;
	font-size: 14px;
}

.rps-jl .rps-jl-apply {
	display: grid;
	gap: 8px;
}

.rps-jl .rps-jl-apply__button {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 24px;
	color: var(--rps-jl-white);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	background: var(--rps-jl-purple-dark);
	border-radius: 999px;
}

.rps-jl .rps-jl-apply__button:hover {
	color: var(--rps-jl-white);
	background: var(--rps-jl-purple);
}

.rps-jl .rps-jl-apply__button .rps-jl-icon {
	width: 14px;
	height: 14px;
}

.rps-jl .rps-jl-deadline {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 6px 16px 6px 8px;
	background: var(--rps-jl-white);
	border: 1px solid var(--rps-jl-card-border);
	border-radius: 999px;
}

.rps-jl .rps-jl-deadline__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--rps-jl-white);
	background: var(--rps-jl-purple-dark);
	border-radius: 50%;
}

/* The exported calendar has padding inside its 38×38 frame. */
.rps-jl .rps-jl-deadline__icon .rps-jl-icon {
	width: 24px;
	height: 24px;
}

.rps-jl .rps-jl-deadline--expired .rps-jl-deadline__icon,
.rps-jl .rps-jl-deadline--closed .rps-jl-deadline__icon {
	background: var(--rps-jl-grey-dark);
}

.rps-jl .rps-jl-deadline__text {
	display: grid;
}

.rps-jl .rps-jl-deadline__label {
	color: var(--rps-jl-purple-dark);
	font-size: 14px;
	font-weight: 500;
}

.rps-jl .rps-jl-deadline__date {
	color: var(--rps-jl-grey-dark);
	font-size: 16px;
}

/* Job description: readable defaults for editor content. */
.rps-jl .rps-jl-job-content {
	margin-top: 24px;
	font-size: 16px;
	line-height: 1.5;
}

.rps-jl .rps-jl-job-content p {
	margin: 0 0 12px;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

.rps-jl .rps-jl-job-content h2,
.rps-jl .rps-jl-job-content h3,
.rps-jl .rps-jl-job-content h4 {
	margin: 28px 0 10px;
	padding: 0;
	color: var(--rps-jl-text);
	font-weight: 700;
	line-height: 1.3;
}

.rps-jl .rps-jl-job-content h2 {
	font-size: 20px;
}

.rps-jl .rps-jl-job-content h3,
.rps-jl .rps-jl-job-content h4 {
	font-size: 18px;
}

.rps-jl .rps-jl-job-content > :first-child {
	margin-top: 0;
}

.rps-jl .rps-jl-job-content ul,
.rps-jl .rps-jl-job-content ol {
	margin: 0 0 12px;
	padding-left: 1.5em;
}

.rps-jl .rps-jl-job-content ul {
	list-style: disc;
}

.rps-jl .rps-jl-job-content ol {
	list-style: decimal;
}

.rps-jl .rps-jl-job-content li {
	padding: 0 0 2px;
}

.rps-jl .rps-jl-employer-cta {
	position: relative;
	margin: 32px 0;
	padding: 16px 20px;
	color: var(--rps-jl-white);
	background: var(--rps-jl-purple-dark);
}

.rps-jl .rps-jl-employer-cta:hover {
	background: #52119f;
}

.rps-jl .rps-jl-employer-cta:focus-within {
	outline: 2px solid var(--rps-jl-purple);
	outline-offset: 2px;
}

.rps-jl .rps-jl-employer-cta__title {
	margin: 0 0 6px;
	padding: 0;
	color: var(--rps-jl-white);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.rps-jl .rps-jl-employer-cta__link {
	color: var(--rps-jl-white);
	font-size: 16px;
	text-decoration: none;
}

/* The whole box is the link. */
.rps-jl .rps-jl-employer-cta__link::after {
	position: absolute;
	inset: 0;
	content: "";
}

.rps-jl .rps-jl-employer-cta__link:focus-visible {
	outline: 0;
}

.rps-jl .rps-jl-related {
	margin-top: 32px;
}

.rps-jl .rps-jl-related__title {
	margin: 0;
	padding: 0;
	color: var(--rps-jl-text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.rps-jl .rps-jl-related .rps-jl-cards {
	padding-top: 12px;
}

@container rps-jl (max-width: 599px) {
	.rps-jl .rps-jl-single__kicker {
		font-size: 20px;
	}

	.rps-jl .rps-jl-back {
		font-size: 12px;
	}

	.rps-jl .rps-jl-job-head {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"logo main"
			"published published";
		gap: 6px 12px;
		align-items: center;
	}

	.rps-jl .rps-jl-job-head__logo {
		width: 64px;
		height: 64px;
		font-size: 26px;
		border-radius: 10px;
	}

	.rps-jl .rps-jl-job-head__company {
		font-size: 14px;
	}

	.rps-jl .rps-jl-job-head__title {
		font-size: 16px;
		margin-bottom: 0;
	}

	.rps-jl .rps-jl-job-head__tags {
		margin-top: 6px;
	}

	.rps-jl .rps-jl-job-head__published {
		font-size: 12px;
	}

	.rps-jl .rps-jl-job-summary {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 12px;
	}

	.rps-jl .rps-jl-facts > li + li {
		margin-left: 12px;
		padding-left: 12px;
	}

	.rps-jl .rps-jl-fact__main {
		font-size: 16px;
	}

	.rps-jl .rps-jl-fact__sub {
		font-size: 12px;
	}

	.rps-jl .rps-jl-apply__button {
		font-size: 16px;
	}

	.rps-jl .rps-jl-deadline__label {
		font-size: 12px;
	}

	.rps-jl .rps-jl-deadline__date {
		font-size: 14px;
	}

	/* Figma: 12px. Long descriptions use 14px for legibility. */
	.rps-jl .rps-jl-job-content {
		font-size: 14px;
	}

	.rps-jl .rps-jl-job-content h2 {
		font-size: 16px;
	}

	.rps-jl .rps-jl-job-content h3,
	.rps-jl .rps-jl-job-content h4 {
		font-size: 15px;
	}

	.rps-jl .rps-jl-employer-cta {
		padding: 14px 16px;
	}

	.rps-jl .rps-jl-employer-cta__title,
	.rps-jl .rps-jl-related__title {
		font-size: 16px;
	}

	.rps-jl .rps-jl-employer-cta__link {
		font-size: 14px;
	}
}

/* ─── Hakuvahti ──────────────────────────────────────────────────────────── */

.rps-jl .rps-jl-hv-open {
	display: inline-flex;
	flex: none;
	gap: 6px;
	align-items: center;
	min-height: 44px;
	padding: 4px 18px;
	color: var(--rps-jl-purple);
	font-size: 16px;
	line-height: 1.2;
	background: var(--rps-jl-white);
	border: 1px solid var(--rps-jl-purple);
	border-radius: 999px;
}

.rps-jl .rps-jl-hv-open:hover {
	background: var(--rps-jl-lavender);
}

.rps-jl .rps-jl-hv-open .rps-jl-icon {
	width: 20px;
	height: 20px;
}

@container rps-jl (max-width: 599px) {
	/* Mobile: the button sits above the search field. */
	.rps-jl .rps-jl-search {
		flex-wrap: wrap;
		gap: 12px;
	}

	.rps-jl .rps-jl-search__field {
		flex-basis: 100%;
	}

	.rps-jl .rps-jl-hv-open {
		order: -1;
	}
}

.rps-jl .rps-jl-hv-dialog {
	width: min(620px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 16px 20px 20px;
	overflow-y: auto;
	color: var(--rps-jl-text);
	background: var(--rps-jl-white);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 8px 32px rgb(0 0 0 / 18%);
}

.rps-jl .rps-jl-hv-dialog::backdrop {
	background: rgb(17 17 17 / 45%);
}

.rps-jl .rps-jl-hv-dialog__header {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

.rps-jl .rps-jl-hv-dialog__title {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	padding: 0;
	color: var(--rps-jl-purple);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
}

.rps-jl .rps-jl-hv-dialog__title .rps-jl-icon {
	width: 22px;
	height: 22px;
}

.rps-jl .rps-jl-hv-dialog__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-right: -8px;
	padding: 0;
	color: var(--rps-jl-text);
	background: none;
	border: 0;
	border-radius: 50%;
}

.rps-jl .rps-jl-hv-dialog__close .rps-jl-icon {
	width: 22px;
	height: 22px;
}

.rps-jl .rps-jl-hv-dialog__text,
.rps-jl .rps-jl-hv-message__title {
	margin: 12px 0 8px;
	padding: 0;
	color: var(--rps-jl-text);
	font-size: 16px;
	line-height: 1.4;
}

.rps-jl .rps-jl-hv-message__title {
	font-weight: 700;
}

.rps-jl .rps-jl-hv-message__title:focus {
	outline: 0;
}

.rps-jl .rps-jl-hv-message__text {
	margin: 0 0 4px;
	padding: 0;
	color: var(--rps-jl-grey-dark);
	font-size: 16px;
	line-height: 1.4;
}

.rps-jl .rps-jl-hv-criteria {
	margin: 0 0 12px;
	padding: 0;
	color: var(--rps-jl-grey-dark);
	font-size: 13px;
	line-height: 1.4;
}

.rps-jl .rps-jl-hv-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	align-items: center;
}

.rps-jl .rps-jl-hv-form__email {
	flex: 1 1 180px;
	min-width: 0;
	height: 36px;
	margin: 0;
	padding: 0 16px;
	color: var(--rps-jl-text);
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	background: var(--rps-jl-white);
	border: 1px solid var(--rps-jl-grey);
	border-radius: 999px;
	-webkit-appearance: none;
	appearance: none;
}

.rps-jl .rps-jl-hv-form__email::placeholder {
	color: var(--rps-jl-grey-dark) !important;
	font-size: 14px !important;
	opacity: 1;
}

.rps-jl .rps-jl-hv-form__email::-webkit-input-placeholder {
	color: var(--rps-jl-grey-dark) !important;
	font-size: 14px !important;
}

.rps-jl .rps-jl-hv-form__email[aria-invalid="true"] {
	border-color: var(--rps-jl-danger);
}

.rps-jl .rps-jl-hv-button-primary,
.rps-jl .rps-jl-hv-button-secondary {
	flex: none;
	min-height: 36px;
	margin: 0;
	padding: 4px 20px;
	font-size: 16px;
	line-height: 1.2;
	border-radius: 999px;
}

.rps-jl .rps-jl-hv-button-primary {
	color: var(--rps-jl-white);
	background: var(--rps-jl-purple-dark);
	border: 0;
}

.rps-jl .rps-jl-hv-button-primary:hover {
	background: var(--rps-jl-purple);
}

.rps-jl .rps-jl-hv-button-primary:disabled {
	cursor: progress;
	opacity: 0.7;
}

.rps-jl .rps-jl-hv-button-secondary {
	margin-top: 12px;
	color: var(--rps-jl-purple-dark);
	background: var(--rps-jl-white);
	border: 1px solid var(--rps-jl-purple-dark);
}

.rps-jl .rps-jl-hv-message .rps-jl-hv-button-primary {
	margin-top: 12px;
}

.rps-jl .rps-jl-hv-form__error {
	margin: 8px 0 0;
	padding: 0;
	color: var(--rps-jl-danger);
	font-size: 14px;
}

.rps-jl .rps-jl-hv-form__error:empty {
	margin: 0;
}

.rps-jl .rps-jl-hv-form__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rps-jl .rps-jl-hv-privacy {
	margin-top: 14px;
	color: var(--rps-jl-grey-dark);
	font-size: 12px;
	line-height: 1.5;
}

.rps-jl .rps-jl-hv-privacy a {
	color: var(--rps-jl-purple-dark);
}

@media (max-width: 599px) {
	.rps-jl .rps-jl-hv-dialog {
		padding: 14px 16px 16px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.rps-jl .rps-jl-group__icon {
		transition: transform 0.15s ease;
	}
}
