/* Job detail page. */

body.job-detail-page {
	background: #ffffff;
}

body.job-detail-page .site {
	padding-top: var(--hero-inset);
}

body.job-detail-page .site-main--job-detail {
	padding-block: 0;
}

body.job-detail-page .site-header {
	background-color: transparent;
}

body.job-detail-page .site-header.is-scrolled {
	background-color: rgb(1 19 37 / 0.92);
	backdrop-filter: blur(12px);
}

body.job-detail-page.has-mobile-nav-open .site-header {
	background-color: var(--color-navy);
}

body.job-detail-page .home-cta__title {
	max-width: 39.5rem;
}

body.job-detail-page .home-cta__copy {
	max-width: 36rem;
	color: #ffffff;
	font-size: 1rem;
	line-height: 1.5;
}

.job-detail-hero {
	position: relative;
	width: calc(100% - (var(--hero-inset) * 2));
	margin-top: calc(var(--header-height) * -1);
	margin-inline: auto;
	min-height: 30.75rem;
	overflow: hidden;
	border-radius: 1.5rem;
	color: #f5f5f5;
	background: #011325;
}

.job-detail-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.job-detail-hero__image {
	position: absolute;
	top: -3.9%;
	left: 0;
	width: 100%;
	height: 106%;
	object-fit: cover;
	object-position: center center;
}

.job-detail-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(0 0 0 / 0.8) 18.8%, rgb(0 0 0 / 0.16) 65.4%);
}

.job-detail-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	min-height: 30.75rem;
	padding-top: calc(var(--header-height) + 3.5rem);
	padding-bottom: 3rem;
}

.job-detail-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.5rem;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15125rem;
	line-height: 1.375;
	text-decoration: none;
	text-transform: uppercase;
}

.job-detail-hero__back img {
	width: 1rem;
	height: 1rem;
	transform: rotate(135deg);
}

.job-detail-hero__title {
	margin: 0;
	max-width: 40rem;
	color: #f5f5f5;
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 4.5vw, 4.0625rem);
	font-weight: 600;
	line-height: 1.06;
}

.job-detail {
	padding: 4.5rem 0 2rem;
	color: #1c1b1b;
}

.job-detail__layout {
	display: grid;
	gap: 2.5rem;
}

.job-detail__intro h2,
.job-detail__body h2,
.job-detail__overview h2,
.job-detail__promo-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
}

.job-detail__intro h2 {
	font-size: clamp(2rem, 3.5vw, 3.375rem);
	line-height: 1.35;
}

.job-detail__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2.5rem;
	margin: 1.25rem 0 1.75rem;
	padding: 0;
	list-style: none;
}

.job-detail__meta li {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	color: #1c1b1b;
	font-family: var(--font-display);
	font-size: 1.275rem;
	font-weight: 300;
	letter-spacing: -0.037rem;
}

.job-detail__meta img,
.job-detail__overview img {
	width: 1.7rem;
	height: 1.7rem;
	flex: none;
}

.job-detail__apply {
	box-shadow: 0 0.7rem 1rem rgb(0 0 0 / 0.25);
}

.job-detail__intro {
	padding-bottom: 2rem;
	border-bottom: 3px solid #e6e6e6;
}

.job-detail__aside {
	display: grid;
	gap: 2rem;
	align-content: start;
}

.job-detail__promo,
.job-detail__overview {
	padding: 1.875rem;
	border-radius: 0.75rem;
	background: #011325;
	color: #ffffff;
}

.job-detail__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
	margin-bottom: 0.75rem;
}

.job-detail__brand img:first-child {
	width: 7.43rem;
	height: auto;
}

.job-detail__word {
	width: 8.75rem;
	height: auto;
	filter: brightness(0) invert(1);
}

.job-detail__promo-title {
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
	line-height: 1.25;
}

.job-detail__promo-copy {
	margin: 0;
	max-width: 23.3rem;
	color: #bebebe;
	font-size: 0.875rem;
	line-height: 1.714;
}

.job-detail__overview h2 {
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
	line-height: 1.25;
}

.job-detail__overview ul {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.job-detail__overview li {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.job-detail__overview li span {
	display: flex;
	flex-direction: column;
	color: #ffffff;
	font-size: 0.875rem;
	line-height: 1.5;
}

.job-detail__overview strong {
	color: #bebebe;
	font-size: 1rem;
	font-weight: 400;
}

.job-detail__body {
	display: grid;
	gap: 2.25rem;
}

.job-detail__body h2 {
	margin-bottom: 0.75rem;
	font-size: clamp(1.75rem, 2.5vw, 2.375rem);
	line-height: 1.7;
}

.job-detail__body p,
.job-detail__body li {
	margin: 0;
	color: #646464;
	font-size: 1.25rem;
	line-height: 1.625;
}

.job-detail__body ul {
	margin: 0;
	padding-left: 1.35rem;
}

.job-detail__body li {
	line-height: 2.1;
}

@media (min-width: 64rem) {
	.job-detail__layout {
		grid-template-columns: minmax(0, 1fr) 27.0625rem;
		column-gap: 4.375rem;
		row-gap: 2.5rem;
	}

	.job-detail__aside {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.job-detail__intro,
	.job-detail__body {
		grid-column: 1;
	}

	.job-detail__body {
		max-width: 50rem;
	}
}

@media (max-width: 40rem) {
	.job-detail-hero,
	.job-detail-hero__inner {
		min-height: 24rem;
	}

	.job-detail__meta li,
	.job-detail__body p,
	.job-detail__body li {
		font-size: 1rem;
	}
}
