/*
 * JOB-1: open positions. One row per opening: title, the facts line and a
 * short summary, with "View and apply" at the end of the row on a wide screen.
 * The list shows open openings only (the content kit leaves closed ones out).
 * With none open, a general "send your resume" form takes the list's place.
 */

.wprk-job-1 .wprk-job-1__list {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	list-style: none;
	margin: 0;
	padding: 0;
}

.wprk-job-1 .wprk-job-1__item {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	position: relative;
}

.wprk-job-1 .wprk-job-1__item > * {
	margin-block: 0;
}

.wprk-job-1 .wprk-job-1__text > * {
	margin-block: 0;
}

.wprk-job-1 .wprk-job-1__text > * + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

.wprk-job-1 :where(.wp-block-post-title a) {
	color: var(--wprk-heading);
	text-decoration: none;
}

/* The whole row opens the job: the title's link is stretched over it. */
.wprk-job-1 .wp-block-post-title a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.wprk-job-1 .wprk-job-1__item:hover :where(.wp-block-post-title a),
.wprk-job-1 .wprk-job-1__item:focus-within :where(.wp-block-post-title a) {
	text-decoration: underline;
}

.wprk-job-1 :where(.wp-block-post-excerpt__excerpt) {
	color: var(--wprk-muted);
	margin: 0;
}

.wprk-job-1 .wprk-job-1__more {
	font-weight: 600;
	white-space: nowrap;
}

.wprk-job-1 .wprk-job-1__item:hover {
	border-color: color-mix(in srgb, var(--wprk-heading) 35%, transparent);
}

@media (min-width: 782px) {
	.wprk-job-1 .wprk-job-1__item {
		align-items: center;
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

/* No opening: a short note and the general form, at a readable width. */
.wprk-job-1 .wprk-job-1__none {
	max-width: 42rem;
}

.wprk-job-1 .wprk-job-1__none > * {
	margin-block: 0;
}

.wprk-job-1 .wprk-job-1__none > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}
