/**
 * Careers page template. The hero is the shared .page-hero in main.css.
 *
 * 1. Layout
 * 2. Grow with us
 * 3. Open positions
 * 4. How to apply
 */

/* 1. Layout --------------------------------------------------------------- */

/* The whole page sits in a narrower column than the rest of the site. */
.site-main--careers .container {
	max-width: calc(1080px + 2 * var(--gutter));
}

.careers-hero {
	padding-block: clamp(80px, 10vw, 140px);
}

.careers-hero .page-hero__inner {
	gap: clamp(24px, 3vw, 32px);
}

.careers-hero .page-hero__lead {
	max-width: 620px;
	line-height: 1.7;
}

.careers-section {
	display: flex;
	flex-direction: column;
	gap: clamp(36px, 4vw, 56px);
}

.careers-section__heading {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Shared by Apply now on each opening. */
.careers-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 28px;
	padding: 6px 0;
	border-bottom: 1px solid var(--c-navy);
	color: var(--c-navy);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: color 0.3s, border-color 0.3s;
}

.careers-link:hover {
	border-bottom-color: var(--c-gold-deep);
	color: var(--c-gold-deep);
}

/* 2. Grow with us --------------------------------------------------------- */

.careers-grow {
	padding: clamp(88px, 10vw, 140px) 0;
	background: var(--c-white);
}

.careers-gains {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--c-navy);
	list-style: none;
}

/* Title and text side by side, stacked once there is no room for both. */
.careers-gains__item {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 12px clamp(24px, 4vw, 64px);
	padding: clamp(24px, 3vw, 36px) 0;
	border-bottom: 1px solid rgba(23, 34, 63, 0.14);
}

.careers-gains__title {
	color: var(--c-navy);
	font-size: clamp(19px, 1.8vw, 23px);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.careers-gains__text {
	color: #4a5165;
	font-size: 15.5px;
	line-height: 1.75;
	text-wrap: pretty;
}

/* 3. Open positions ------------------------------------------------------- */

.careers-openings {
	padding: clamp(88px, 10vw, 140px) 0;
	scroll-margin-top: 70px;
}

.careers-openings__empty {
	padding: clamp(28px, 3vw, 40px);
	background: var(--c-white);
	color: #4a5165;
	font-size: 15.5px;
	line-height: 1.75;
}

.job-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
	gap: clamp(16px, 2vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.job-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	padding: clamp(28px, 3vw, 40px);
	background: var(--c-white);
	transition: box-shadow 0.5s ease;
}

.job-card:hover {
	box-shadow: 0 24px 48px -32px rgba(23, 34, 63, 0.35);
}

.job-card__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.job-card__type {
	align-self: flex-start;
	padding: 5px 10px;
	border: 1px solid rgba(138, 108, 62, 0.4);
	color: var(--c-gold-deep);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.job-card__title {
	color: var(--c-navy);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 400;
	letter-spacing: -0.02em;
}

.job-card__summary {
	color: #4a5165;
	font-size: 15px;
	line-height: 1.75;
	text-wrap: pretty;
}

.job-card__reqs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(23, 34, 63, 0.12);
	list-style: none;
}

/* A small gold square on the first line of each requirement. */
.job-card__reqs li {
	display: grid;
	grid-template-columns: 16px minmax(0, 1fr);
	gap: 10px;
	color: #3f4659;
	font-size: 14.5px;
	line-height: 1.65;
}

.job-card__reqs li::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: 0.65em;
	background: var(--c-gold);
}

/* 4. How to apply --------------------------------------------------------- */

.careers-apply {
	padding: clamp(88px, 10vw, 140px) 0;
	background: var(--c-white);
}

.careers-apply__inner {
	gap: clamp(40px, 5vw, 64px);
}

.careers-apply__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px 48px;
}

.careers-apply__head .careers-section__heading {
	max-width: 560px;
}

.careers-apply__email {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--c-navy);
	color: var(--c-navy);
	transition: color 0.3s, border-color 0.3s;
}

.careers-apply__email:hover {
	border-bottom-color: var(--c-gold-deep);
	color: var(--c-gold-deep);
}

.careers-apply__email-label {
	color: #6b7186;
	font-size: 12px;
}

.careers-apply__email-address {
	display: flex;
	align-items: center;
	gap: 32px;
	font-size: clamp(18px, 1.6vw, 21px);
}

.careers-apply__email-address span {
	color: var(--c-gold);
}

/* One, two or four columns, so the four documents never leave one alone on a row. */
.careers-steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 24px;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--c-navy);
	list-style: none;
}

@media (min-width: 520px) {
	.careers-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.careers-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 0;
	}
}

.careers-steps__item {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 24px 32px 0;
	border-bottom: 1px solid rgba(23, 34, 63, 0.14);
}

.careers-steps__no {
	color: var(--c-gold-deep);
	font-size: 12px;
	font-weight: 600;
}

.careers-steps__title {
	color: var(--c-navy);
	font-size: 18px;
	font-weight: 500;
}

.careers-steps__text {
	color: var(--c-text);
	font-size: 14px;
	line-height: 1.65;
	text-wrap: pretty;
}

.careers-apply__note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding: 24px clamp(20px, 2.6vw, 32px);
	background: var(--c-cream);
	color: #6b7186;
	font-size: 13px;
}

.careers-apply__subject {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.careers-apply__subject code {
	color: var(--c-navy);
	font: 500 14.5px var(--font-mono);
}
