/**
 * Careers directory and role detail pages.
 *
 * @package Skavend
 */
.careers-page,
.career-detail-page {
	--cr-green: #0b4232;
	--cr-green-deep: #072f24;
	--cr-gold: #c49558;
	--cr-ink: #12231d;
	--cr-muted: #65716c;
	--cr-line: rgba(41, 71, 59, .16);
	--cr-cream: #f7f0e6;
	--cr-paper: #fffdf9;
	background: var(--cr-paper);
	color: var(--cr-ink);
	font-family: var(--font-sans, 'DM Sans', sans-serif);
}

body.page-template-templates-careers-php .site-main,
body.single-career .site-main,
.careers-page,
.career-detail-page {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow-x: hidden;
}

.cr-shell {
	width: var(--shell-width, 90%) !important;
	max-width: none !important;
	margin-inline: auto;
}

.cr-kicker {
	margin: 0 0 15px;
	color: #9a6934;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .17em;
	line-height: 1.3;
	text-transform: uppercase;
}

.cr-kicker--light { color: #e3bd80; }

.cr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 23px;
	border: 1px solid var(--cr-gold);
	border-radius: 999px;
	background: var(--cr-gold);
	color: #10281f;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.cr-btn:hover,
.cr-btn:focus-visible {
	transform: translateY(-2px);
	background: #d9ad70;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
	color: #10281f;
}

.cr-btn--outline {
	border-color: rgba(255, 255, 255, .42);
	background: transparent;
	color: #fff;
}

.cr-btn--ghost {
	border-color: var(--cr-line);
	background: transparent;
	box-shadow: none;
	color: var(--cr-green);
}

/* Careers index hero */
.cr-hero {
	position: relative;
	padding: calc(var(--header-offset, 108px) + 52px) 0 50px;
	overflow: hidden;
	background:
		radial-gradient(circle at 82% 20%, rgba(196, 149, 88, .17), transparent 32%),
		linear-gradient(110deg, #edf5f1 0%, #f8f1e7 54%, #e9f3ef 100%);
	border-bottom: 1px solid var(--cr-line);
}

.cr-hero--has-background {
	background-image:
		linear-gradient(100deg, rgba(237, 245, 241, .91) 0%, rgba(248, 241, 231, .58) 50%, rgba(233, 243, 239, .12) 100%),
		radial-gradient(circle at 82% 20%, rgba(196, 149, 88, .2), transparent 32%),
		var(--cr-hero-image);
	background-position: center, center, center;
	background-repeat: no-repeat;
	background-size: cover, cover, cover;
}

.cr-hero--has-background::after {
	display: none;
}

.cr-hero::after {
	position: absolute;
	top: -170px;
	right: 4%;
	width: 430px;
	height: 430px;
	border: 1px solid rgba(11, 66, 50, .09);
	border-radius: 50%;
	content: '';
}

.cr-hero__content {
	position: relative;
	z-index: 1;
}

.cr-hero h1 {
	margin: 0;
	font-family: var(--font-serif, 'Playfair Display', serif);
	font-size: clamp(42px, 5vw, 66px);
	font-weight: 600;
	letter-spacing: -.04em;
	line-height: 1.02;
}

.cr-hero h1 em {
	color: var(--cr-green);
	font-style: normal;
}

.cr-hero__content > p:last-child {
	margin: 18px 0 0;
	color: var(--cr-muted);
	font-size: 14px;
}

/* Search and jobs directory */
.cr-directory {
	background: #fff;
}

.cr-directory__inner {
	padding-block: 2px;
}

.cr-search-panel {
	display: grid;
	grid-template-columns: 1.65fr .92fr .92fr;
	gap: 14px;
	padding: 17px;
	border: 1px solid var(--cr-line);
	border-radius: 18px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 9px 26px rgba(24, 54, 43, .06), inset 0 1px #fff;
}

.cr-field {
	display: grid;
	gap: 8px;
}

.cr-field > span:first-child {
	color: #6d5a45;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.cr-input-wrap {
	position: relative;
	display: block;
}

.cr-input-wrap svg {
	position: absolute;
	top: 50%;
	left: 15px;
	z-index: 2;
	width: 17px;
	height: 17px;
	color: var(--cr-green);
	pointer-events: none;
	transform: translateY(-50%);
}

.cr-field input,
.cr-field select {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid rgba(55, 82, 71, .18);
	border-radius: 10px;
	outline: 0;
	background: #fff;
	color: var(--cr-ink);
	font: 14px var(--font-sans, 'DM Sans', sans-serif);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.cr-field .cr-input-wrap input[type="search"] {
	padding-right: 14px !important;
	padding-left: 44px !important;
}

.cr-field .cr-input-wrap input[type="search"]::placeholder {
	color: #7d8782;
	opacity: 1;
}

.cr-field input:focus,
.cr-field select:focus {
	border-color: var(--cr-gold);
	box-shadow: 0 0 0 3px rgba(196, 149, 88, .13);
}

.cr-results {
	margin: 22px 0 15px;
	color: var(--cr-muted);
	font-size: 12px;
}

.cr-job-list {
	border-top: 1px solid var(--cr-line);
}

.cr-job {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	min-height: 108px;
	border-bottom: 1px solid var(--cr-line);
	transition: background .2s ease, padding .2s ease;
}

.cr-job:hover {
	padding-inline: 14px;
	background: #faf6ef;
}

.cr-job[hidden] { display: none; }

.cr-job__number {
	color: rgba(11, 66, 50, .35);
	font-size: 12px;
	font-weight: 700;
}

.cr-job__main h3 {
	margin: 0;
	font-family: var(--font-sans, 'DM Sans', sans-serif);
	font-size: clamp(18px, 2vw, 23px);
	font-weight: 700;
}

.cr-job__main h3 a {
	color: var(--cr-ink);
	text-decoration: none;
}

.cr-job__meta {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-top: 9px;
	color: var(--cr-muted);
	font-size: 12px;
}

.cr-job__meta i {
	color: rgba(11, 66, 50, .26);
	font-style: normal;
}

.cr-job__view {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--cr-ink);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.cr-job__view i {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--cr-line);
	border-radius: 50%;
	color: var(--cr-green);
	font-style: normal;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.cr-job__view:hover i {
	transform: translateX(3px);
	background: var(--cr-green);
	color: #fff;
}

.cr-empty {
	padding: 46px 20px;
	text-align: center;
}

.cr-empty h3 { margin: 0 0 8px; font: 600 25px var(--font-serif, 'Playfair Display', serif); }
.cr-empty p { margin: 0; color: var(--cr-muted); }

/* Index closing CTA */
.cr-cta {
	position: relative;
	overflow: hidden;
	background: var(--cr-green-deep);
	color: #fff;
}

.cr-cta::before {
	position: absolute;
	top: -44px;
	left: -2%;
	width: 104%;
	height: 66px;
	border-radius: 50%;
	background: #fff;
	content: '';
}

.cr-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 50px;
}

.cr-cta h2 {
	max-width: 650px;
	margin: 0;
	font: 500 clamp(34px, 4vw, 54px)/1.07 var(--font-serif, 'Playfair Display', serif);
	letter-spacing: -.035em;
}

.cr-cta h2 em { color: #e3bd80; font-style: normal; }
.cr-cta__inner > div > p:last-child { margin: 17px 0 0; color: rgba(255, 255, 255, .7); }
.cr-cta__actions { display: flex; gap: 12px; flex: 0 0 auto; }

/* Single role hero */
.crd-hero {
	position: relative;
	padding: calc(var(--header-offset, 108px) + 36px) 0 46px;
	overflow: hidden;
	border-bottom: 1px solid var(--cr-line);
	background: linear-gradient(110deg, #eff6f2, #f8f1e7);
}

.crd-hero--has-background {
	background-image:
		linear-gradient(100deg, rgba(237, 245, 241, .96) 0%, rgba(248, 241, 231, .85) 55%, rgba(233, 243, 239, .72) 100%),
		var(--crd-hero-image);
	background-position: center, center;
	background-repeat: no-repeat;
	background-size: cover, cover;
}

.crd-hero__inner {
	position: relative;
	z-index: 1;
}

.crd-crumbs {
	display: flex;
	gap: 9px;
	margin-bottom: 28px;
	color: var(--cr-muted);
	font-size: 12px;
}

.crd-crumbs a { color: var(--cr-green); text-decoration: none; }

.crd-hero h1 {
	max-width: 840px;
	margin: 0;
	font: 600 clamp(40px, 5vw, 66px)/1.04 var(--font-serif, 'Playfair Display', serif);
	letter-spacing: -.04em;
}

.crd-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin-top: 23px;
	color: var(--cr-muted);
	font-size: 14px;
}

.crd-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.crd-hero__meta svg { color: var(--cr-green); }

/* Single role content */
.crd-body { background: #fff; }

.crd-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
	align-items: start;
	gap: clamp(54px, 9vw, 120px);
}

.crd-content { min-width: 0; }

.crd-section {
	padding-bottom: 34px;
	margin-bottom: 34px;
	border-bottom: 1px solid var(--cr-line);
}

.crd-section h2,
.crd-how h2 {
	margin: 0 0 15px;
	font: 600 22px/1.25 var(--font-serif, 'Playfair Display', serif);
}

.crd-facts {
	display: grid;
	gap: 5px;
	margin: 0 0 28px;
}

.crd-facts div { display: flex; gap: 7px; font-size: 14px; }
.crd-facts dt { font-weight: 700; }
.crd-facts dt::after { content: ':'; }
.crd-facts dd { margin: 0; color: var(--cr-muted); }

.crd-prose,
.crd-prose p {
	color: var(--cr-muted);
	font-size: 15px;
	line-height: 1.8;
}

.crd-prose p:first-child { margin-top: 0; }

.crd-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.crd-list li {
	position: relative;
	padding-left: 20px;
	color: var(--cr-muted);
	font-size: 15px;
	line-height: 1.6;
}

.crd-list li::before {
	position: absolute;
	top: .7em;
	left: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--cr-gold);
	content: '';
}

.crd-skills__list { display: flex; flex-wrap: wrap; gap: 9px; }
.crd-skills__list span {
	padding: 9px 13px;
	border: 1px solid rgba(11, 66, 50, .16);
	border-radius: 999px;
	background: #f3f7f4;
	color: var(--cr-green);
	font-size: 13px;
	font-weight: 600;
}

.crd-how {
	padding: 25px;
	border: 1px solid var(--cr-line);
	border-radius: 16px;
	background: #f5f8f6;
}

.crd-how ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.crd-how li { display: flex; gap: 11px; color: var(--cr-muted); font-size: 14px; }
.crd-how li span { color: var(--cr-gold); font-weight: 700; }

.crd-apply {
	position: sticky;
	top: 112px;
}

.crd-apply__card {
	padding: 27px;
	border: 1px solid var(--cr-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(26, 53, 43, .1);
}

.crd-apply__card h2 {
	margin: 0;
	font: 600 24px/1.2 var(--font-serif, 'Playfair Display', serif);
}

.crd-apply__meta { margin: 12px 0 22px; color: var(--cr-muted); font-size: 12px; }
.crd-apply__card .cr-btn { width: 100%; margin-top: 10px; }
.crd-apply__card small { display: block; margin-top: 19px; color: #7b8581; font-size: 11px; line-height: 1.6; }

[data-cr-reveal] {
	opacity: 0;
	transform: translateY(17px);
	transition: opacity .55s ease, transform .55s ease;
}
[data-cr-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
	.cr-search-panel { grid-template-columns: 1fr 1fr; }
	.cr-field--search { grid-column: 1 / -1; }
	.cr-cta__inner { align-items: flex-start; flex-direction: column; }
	.crd-layout { grid-template-columns: 1fr; }
	.crd-apply { position: static; grid-row: 1; }
	.crd-apply__card { max-width: 560px; }
}

@media (max-width: 620px) {
	.cr-hero { padding-top: calc(var(--header-offset, 96px) + 28px); }
	.cr-search-panel { grid-template-columns: 1fr; padding: 14px; }
	.cr-field--search { grid-column: auto; }
	.cr-job { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; min-height: 98px; }
	.cr-job:hover { padding-inline: 6px; }
	.cr-job__view { font-size: 0; gap: 0; }
	.cr-job__view i { font-size: 13px; }
	.cr-job__meta { align-items: flex-start; flex-direction: column; gap: 3px; }
	.cr-job__meta i { display: none; }
	.cr-cta__actions { align-items: stretch; flex-direction: column; width: 100%; }
	.crd-facts div { align-items: flex-start; flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
	[data-cr-reveal] { opacity: 1; transform: none; transition: none; }
}
