/**
 * STR Greenhouse Jobs
 *
 * Colors inherit from the site's global custom properties
 * (--str-orange, --contrast, --str-blue-gray) with fallbacks
 * so the list still renders correctly in isolation.
 */

.str-jobs {
	--str-jobs-rule: rgba(255, 255, 255, 0.14);
	--str-jobs-accent: var(--str-orange, #f15d22);
	--str-jobs-chip-bg: var(--contrast, #040404);
	--str-jobs-muted: var(--str-blue-gray, #7c8c8c);
	color: #fff;
	font-family: Inter, sans-serif;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.single-location .str-jobs {
    width: 100%;
}

.str-capability-roles {
    width: 100%;
}

/**
 * Filters.
 */

.str-jobs__filters {
	--str-jobs-filter-gap: 16px;

	display: flex;
	flex-wrap: wrap;
	gap: var(--str-jobs-filter-gap);
	margin-bottom: 48px;
}

.str-jobs__filter--search {
	flex: 1 1 300px;
}

.str-jobs__filter--location,
.str-jobs__filter--department {
	flex: 0 1 260px;
}

.str-jobs__search,
.str-jobs__select {
	appearance: none;
	background-color: rgba(255, 255, 255, 0.04);
	border: 1px solid #f15d22;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	padding: 16px 22px;
	text-transform: uppercase;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	width: 100%;
	outline: none;
}

.str-jobs__select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
	background-position: right 22px center;
	background-repeat: no-repeat;
	cursor: pointer;
	padding-right: 52px;
}

.str-jobs__search::placeholder {
	color: #fff;
}

.str-jobs__search:hover,
.str-jobs__select:hover {
	background-color: rgba(255, 255, 255, 0.07);
}

.str-jobs__search:focus-visible,
.str-jobs__select:focus-visible {
	border-color: var(--str-jobs-accent);
	outline: 2px solid var(--str-jobs-accent);
	outline-offset: 2px;
	color: #fff;
}

.str-jobs__filter--search input[type="search"],
.str-jobs__filter--search input[type="search"]:focus-visible {
    padding: 16px 15px;
	border: 1px solid #f15d22;
	color: #fff;
	outline: 0;
}

/* Native option list renders on the OS layer — keep it readable. */
.str-jobs__select option {
	background-color: #0c2931;
	color: #fff;
}


/**
 * Live region. Self-contained rather than relying on the theme's
 * .screen-reader-text so the announcement cannot become visible.
 */

.str-jobs__status {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}


/**
 * Job rows.
 */

.str-job {
	align-items: center;
	border-top: 1px solid #f15d22;
	display: grid;
	gap: 32px;
	grid-template-columns: minmax(220px, 40%) 1fr auto;
	padding: 20px;
	position: relative;
	transition: border-color 0.25s ease;
	transition: all 0.5s;
}

.single-location .str-job {
	grid-template-columns: minmax(220px, 45%) 1fr auto;
}

/*
 * `display: grid` above outranks the UA `[hidden] { display: none }`
 * rule, so filtering/pagination needs this to keep working.
 */
.str-job[hidden] {
	display: none;
}

/*
 * Rows carry tabindex="-1" so Load More can move focus into the new
 * results. That focus is programmatic, so it needs a visible target
 * — :focus-visible is not reliably applied to scripted focus.
 */
.str-job:focus {
	outline: 2px solid var(--str-jobs-accent);
	outline-offset: 4px;
}

.str-job:last-of-type {
	border-bottom: 1px solid var(--str-jobs-accent);
}

/* Accent the rules above and below the active row. */
.str-job:hover,
.str-job:focus-within,
.str-job:hover + .str-job,
.str-job:focus-within + .str-job {
	border-top-color: var(--str-jobs-accent);
}

.str-job:last-of-type:hover,
.str-job:last-of-type:focus-within {
	border-bottom-color: var(--str-jobs-accent);
}

.str-job__title {
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin: 0;
}

.str-job__title a {
	color: inherit;
	text-decoration: none;
}

.str-job:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.str-job:hover .str-job__title a,
.str-job:focus-within .str-job__title a {
    color: #f15d22;
    text-shadow: none;
}

/* Stretch the single real link across the whole row. */
.str-job__title a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.str-job__title a:focus-visible {
	outline: none;
}

.str-job:focus-within .str-job__title {
	color: var(--str-jobs-accent);
}


/**
 * Meta chips.
 */

.str-job__meta {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) 1fr;
    align-items: center;
    column-gap: 40px;
    row-gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-items: start;
}

.str-job__tag {
	align-items: center;
	background-color: var(--str-jobs-chip-bg);
	border: 1px solid transparent;
	border-radius: 40px;
	color: #fff;
	display: inline-flex;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 9px 13px;
	text-transform: uppercase;
}

/*
 * Where the posting is based. Outlined rather than filled so it reads
 * as a different kind of fact from the department chip beside it.
 */
.str-job__tag--location {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}


/**
 * Arrow.
 */

.str-job__arrow {
	align-items: center;
	color: var(--str-moss, #c9d6bd);
	display: inline-flex;
	flex: none;
	transition: color 0.25s ease;
}

.str-job:hover .str-job__arrow,
.str-job:focus-within .str-job__arrow {
	color: var(--str-jobs-accent);
}


/**
 * Empty / no-results states.
 */

.str-jobs__empty,
.str-jobs__no-results {
	color: #fff;
	font-size: 16px;
	padding: 40px 0;
	text-align: center;
}


/**
 * Load more.
 */

.str-jobs__load-more {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

/*
 * As with .str-job, `display: flex` above outranks the UA
 * `[hidden] { display: none }` rule, so the button would stay on
 * screen after the last batch without this.
 */
.str-jobs__load-more[hidden] {
	display: none;
}

.str-jobs__load-more-button {
	background-color: transparent;
	border: 1px solid var(--str-jobs-accent);
	border-radius: 40px;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	padding: 17px 44px;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.str-jobs__load-more-button:hover {
	background-color: var(--str-jobs-accent);
}

.str-jobs__load-more-button:focus-visible {
	outline: 2px solid var(--str-jobs-accent);
	outline-offset: 3px;
}


/**
 * Responsive.
 */

@media (max-width: 930px) {

	.str-jobs__filter--search {
		flex: 1 1 100%;
	}

	/* Half the row each, minus their share of the gap between them. */
	.str-jobs__filter--location,
	.str-jobs__filter--department {
		flex: 1 1 calc(50% - (var(--str-jobs-filter-gap) / 2));
	}
}


@media (max-width: 900px) {

	.str-job {
		gap: 14px 20px;
		grid-template-columns: 1fr auto;
		padding: 24px;
	}

	.str-job__title {
		font-size: 18px;
		grid-column: 1;
		grid-row: 1;
	}

	.str-job__arrow {
		grid-column: 2;
		grid-row: 1;
	}

	.str-job__meta {
		display: flex;
		grid-column: 1 / -1;
		grid-row: 2;
	}
	
	.single-location .str-job {
		padding: 24px;
		grid-template-columns: 1fr auto;
	}	
}

@media (max-width: 600px) {

	.str-jobs__filter--location,
	.str-jobs__filter--department {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {

	.str-job,
	.str-job__arrow,
	.str-jobs__search,
	.str-jobs__select,
	.str-jobs__load-more-button {
		transition: none;
	}
}
