/* =========================================================
   JOB LISTINGS
   ========================================================= */

.c-jobs {
	width: 100%;
}


/* ---------------------------------------------------------
   Filters
   --------------------------------------------------------- */

.c-jobs__filters {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	margin-bottom: 60px;
}

.c-jobs .filter-container {
	flex: 1 1 0;
}

.c-jobs .filter-container label {
	display: block;
	margin-bottom: 8px;
}

.c-jobs .filter-container select {
	width: 100%;
}

#getJobs {
	flex: 0 0 auto;
}


/* ---------------------------------------------------------
   Results
   --------------------------------------------------------- */

.c-jobs__results {
	width: 100%;
}

.job-results-empty {
	margin: 40px 0;
	text-align: center;
}


/* ---------------------------------------------------------
   Department accordion
   --------------------------------------------------------- */

.job-section {
	border-bottom: 1px solid var(--color-gray-light-bg);
}

.job-section:first-child {
	border-top: 1px solid var(--color-gray-light-bg);
}

.job-section__title {
	margin: 0;
	font-weight:600;
	line-height:150%;
	letter-spacing:-0.72px;
}

.job-section__toggle {
	width: 100%;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	padding: 24px 0;

	border: 0;
	background: transparent;
	font-family:var(--font-primary);
	font-size: 24px;
	font-weight:600;
	color: inherit;
	text-align: left;
	letter-spacing:-0.72px;

	cursor: pointer;
}

.job-section__toggle:hover,
.job-section__toggle:focus {
	background: transparent;
}

.job-section__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}


/* ---------------------------------------------------------
   Accordion icon
   --------------------------------------------------------- */

.job-section__icon {
	position: relative;

	flex: 0 0 20px;

	width: 20px;
	height: 20px;
}

.job-section__icon::before,
.job-section__icon::after {
	content: '';

	position: absolute;
	top: 50%;
	left: 50%;

	width: 14px;
	height: 2px;

	background: currentColor;

	transform: translate(-50%, -50%);
}

.job-section__icon::after {
	transform:
		translate(-50%, -50%)
		rotate(90deg);

	transition: transform 0.2s ease;
}

.job-section__toggle[aria-expanded="true"]
.job-section__icon::after {
	transform:
		translate(-50%, -50%)
		rotate(0);
}


/* ---------------------------------------------------------
   Jobs container
   --------------------------------------------------------- */

.job-section__jobs {
	display: grid;
	gap: 30px;

	padding: 0 0 30px;
}
.job-section__jobs[hidden] {
	display: none;
}


/* ---------------------------------------------------------
   Job card
   --------------------------------------------------------- */

.job-card {
	padding:0;
}

.job-card__title {
	margin: 0;
	font-size:16px;
	font-weight:500;
	line-height:180%;
	text-decoration: underline;
	font-family:var(--font-primary);
	letter-spacing:0;
}

.job-card__title a {
	color: var(--color-black);
	text-decoration: underline;
	font-size:16px;
	font-weight:500;
	line-height:180%;
}

.job-card__title a:hover,
.job-card__title a:focus {
	text-decoration: underline;
	color: var(--color-black);
}

.job-card__meta {
	margin: 0;
	font-family:var(--font-primary);
	font-size:16px;
	font-weight:500;
	line-height:180%;
	letter-spacing:0;
}

.job-card__separator {
	margin: 0 8px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

	.c-jobs__filters {
		flex-wrap: wrap;
	}

	.c-jobs .filter-container {
		flex: 1 1 calc(50% - 10px);
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.c-jobs__filters {
		flex-direction: column;
		align-items: stretch;

		gap: 16px;

		margin-bottom: 40px;
	}

	.c-jobs .filter-container {
		width: 100%;
		flex: none;
	}

	#getJobs {
		width: 100%;
	}

	.job-section__toggle {
		padding: 20px 0;
	}

	.job-section__jobs {
		gap: 16px;
		padding-bottom: 24px;
	}

	.job-card {
		padding: 20px;
	}

}