/* BM Careers — built on the existing BM design system.
   Tokens taken from the live theme: navy #050C42, green #25d73e,
   3px button radius, Nunito Sans headings / PT Sans body. */
:root {
	--bm-navy: #050c42;
	--bm-navy-soft: #0d1758;
	--bm-green: #25d73e;
	--bm-green-dark: #1eb833;
	--bm-ink: #3f3f4c;
	--bm-line: #e2e4e9;
	--bm-grey: #f9f9f9;
	--bm-radius: 3px;
}

/* ---------- Careers landing hero ----------
   The UX Builder overlay is a flat wash; a top-weighted gradient keeps the
   headline legible while letting the workplace photography read underneath. */
.bm-careers-page .section-bg-overlay {
	background: linear-gradient(180deg, rgba(5, 12, 66, 0.78) 0%, rgba(5, 12, 66, 0.66) 100%) !important;
}

/* ---------- Shared section furniture ---------- */
.bm-section-head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 34px;
}
.bm-section-head h2 {
	margin-bottom: 12px;
}
.bm-section-head p {
	color: var(--bm-ink);
	margin-bottom: 0;
}
.bm-rule {
	width: 56px;
	height: 3px;
	background: var(--bm-green);
	border: 0;
	margin: 0 auto 18px;
}

/* ---------- Vacancy cards ---------- */
.bm-vacancy-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 26px;
	margin: 0;
	text-align: left;
}
.bm-vacancy-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-radius);
	padding: 30px 30px 28px;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.bm-vacancy-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--bm-green);
	border-radius: var(--bm-radius) var(--bm-radius) 0 0;
}
.bm-vacancy-card:hover {
	box-shadow: 0 10px 30px rgba(5, 12, 66, 0.1);
	border-color: #cdd1da;
}
.bm-vacancy-card__title {
	margin: 0 0 14px;
	font-size: 1.45em;
	line-height: 1.25;
	color: var(--bm-navy);
}
.bm-vacancy-card__title a {
	color: inherit;
}
.bm-vacancy-card__title a:hover {
	color: var(--bm-green-dark);
}
.bm-vacancy-card__meta {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.bm-vacancy-card__meta li {
	display: flex;
	align-items: baseline;
	gap: 9px;
	margin: 0 0 7px;
	font-size: 0.92em;
	color: var(--bm-ink);
	line-height: 1.4;
}
.bm-vacancy-card__meta li::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--bm-green);
	transform: translateY(-2px);
}
.bm-vacancy-card__summary {
	margin: 0 0 24px;
	flex-grow: 1;
	color: var(--bm-ink);
}
.bm-vacancy-card__cta.button {
	margin: 0;
	width: 100%;
	text-align: center;
}

/* Empty state */
.bm-vacancies-empty {
	text-align: center;
	background: #fff;
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-radius);
	padding: 48px 26px;
}
.bm-vacancies-empty h3 {
	margin-top: 0;
	color: var(--bm-navy);
}

/* ---------- Single vacancy: hero ---------- */
.bm-vacancy-hero {
	position: relative;
	background: var(--bm-navy);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 58px 0 54px;
}
.bm-vacancy-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(5, 12, 66, 0.94) 0%, rgba(5, 12, 66, 0.82) 100%);
}
.bm-vacancy-hero > .container {
	position: relative;
	z-index: 1;
}
.bm-breadcrumb {
	font-size: 0.85em;
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: rgba(255, 255, 255, 0.75);
}
.bm-breadcrumb a {
	color: rgba(255, 255, 255, 0.85);
}
.bm-breadcrumb a:hover {
	color: #fff;
}
.bm-vacancy-hero__title {
	color: #fff;
	margin: 0 0 20px;
	max-width: 880px;
}
.bm-vacancy-hero__meta {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	max-width: 900px;
}
.bm-vacancy-hero__meta li {
	display: flex;
	align-items: baseline;
	gap: 9px;
	margin: 0;
	font-size: 0.95em;
	color: rgba(255, 255, 255, 0.92);
}
.bm-vacancy-hero__meta li::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--bm-green);
	transform: translateY(-2px);
}
.bm-vacancy-hero__cta.button {
	margin: 0;
}

/* ---------- Single vacancy: body ---------- */
.bm-vacancy-layout {
	padding-top: 48px;
	padding-bottom: 16px;
}
.bm-vacancy-content {
	max-width: 780px;
}
.bm-vacancy-content h2 {
	position: relative;
	margin-top: 2em;
	margin-bottom: 0.7em;
	padding-bottom: 14px;
	font-size: 1.65em;
	color: var(--bm-navy);
}
.bm-vacancy-content h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 3px;
	background: var(--bm-green);
}
.bm-vacancy-content h2:first-child {
	margin-top: 0;
}
.bm-vacancy-content h3 {
	margin-top: 1.7em;
	margin-bottom: 0.6em;
	font-size: 1.12em;
	color: var(--bm-navy);
}
.bm-vacancy-content ul {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}
.bm-vacancy-content ul li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 9px;
}
.bm-vacancy-content ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bm-green);
}
.bm-callout {
	border-left: 3px solid var(--bm-green);
	background: var(--bm-grey);
	padding: 20px 24px;
	border-radius: 0 var(--bm-radius) var(--bm-radius) 0;
	margin: 1.7em 0;
}
.bm-callout p:last-child {
	margin-bottom: 0;
}

/* Sticky sidebar */
.bm-vacancy-aside {
	position: sticky;
	top: 100px;
}
.bm-vacancy-aside__card {
	background: var(--bm-navy);
	color: #fff;
	border-radius: var(--bm-radius);
	padding: 30px 28px;
}
.bm-vacancy-aside__card h3 {
	margin: 0 0 20px;
	color: #fff;
	font-size: 1.15em;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.bm-vacancy-aside__card dl {
	margin: 0 0 24px;
}
.bm-vacancy-aside__card dt {
	display: block;
	font-weight: 700;
	font-size: 0.72em;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--bm-green);
	margin-top: 16px;
}
.bm-vacancy-aside__card dt:first-child {
	margin-top: 0;
}
.bm-vacancy-aside__card dd {
	display: block;
	margin: 4px 0 0;
	color: rgba(255, 255, 255, 0.94);
	line-height: 1.45;
}
.bm-vacancy-aside__card .button {
	margin: 0;
}

/* Share row */
.bm-share {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	font-size: 0.85em;
}
.bm-share__label {
	font-weight: 700;
	color: rgba(255, 255, 255, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.9em;
}
.bm-share a,
.bm-share__copy {
	color: rgba(255, 255, 255, 0.92);
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font: inherit;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	min-height: 0;
	line-height: inherit;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.bm-share a:hover,
.bm-share__copy:hover {
	color: var(--bm-green);
	border-bottom-color: var(--bm-green);
	background: none;
}

/* ---------- Application form ---------- */
.bm-vacancy-apply-section {
	background: var(--bm-grey);
	border-top: 1px solid var(--bm-line);
	padding: 56px 0 64px;
	margin-top: 48px;
}
.bm-vacancy-apply-section__inner {
	max-width: 760px;
	margin: 0 auto;
}
.bm-vacancy-apply-section h2 {
	color: var(--bm-navy);
	margin-bottom: 8px;
}
.bm-apply {
	margin-top: 6px;
}
.bm-apply__form {
	background: #fff;
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-radius);
	padding: 32px 32px 26px;
	margin-top: 22px;
}
.bm-apply__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 22px;
}
.bm-apply__field {
	margin-bottom: 18px;
}
.bm-apply__field label {
	font-weight: 700;
	display: block;
	margin-bottom: 6px;
	color: var(--bm-navy);
	font-size: 0.95em;
}
.bm-apply__field .req {
	color: #d63638;
}
.bm-apply__field input[type="text"],
.bm-apply__field input[type="email"],
.bm-apply__field input[type="tel"],
.bm-apply__field textarea {
	width: 100%;
	background: #fff;
	border-radius: var(--bm-radius);
	margin-bottom: 0;
}
.bm-apply__field input[type="file"] {
	width: 100%;
	padding: 14px;
	border: 1px dashed #c3c8d2;
	border-radius: var(--bm-radius);
	background: #fcfcfd;
	font-size: 0.9em;
}
.bm-apply__field small {
	display: block;
	margin-top: 6px;
	color: #7a7a87;
}
.bm-apply__submit.button {
	margin: 0;
	min-width: 220px;
}
.bm-apply__privacy {
	margin: 0 0 18px;
	color: #7a7a87;
}
.bm-apply__success {
	background: #fff;
	border: 1px solid var(--bm-line);
	border-top: 3px solid var(--bm-green);
	border-radius: var(--bm-radius);
	padding: 34px;
	text-align: center;
}
.bm-apply__success h3 {
	margin-top: 0;
	color: var(--bm-navy);
}
.bm-apply__success p:last-child {
	margin-bottom: 0;
}
.bm-apply__error {
	border: 1px solid #d63638;
	border-left-width: 3px;
	background: #fff;
	color: #8a1f21;
	border-radius: var(--bm-radius);
	padding: 14px 18px;
	margin-bottom: 20px;
}
.bm-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 0;
	overflow: hidden;
}

/* Focus states */
.bm-apply__form input:focus,
.bm-apply__form textarea:focus,
.bm-share__copy:focus-visible,
.bm-vacancy-card a:focus-visible,
.bm-vacancy-hero__cta:focus-visible {
	outline: 2px solid var(--bm-green);
	outline-offset: 2px;
}

/* ---------- Mobile ---------- */
@media (max-width: 849px) {
	.bm-vacancy-hero {
		padding: 38px 0 36px;
	}
	.bm-vacancy-hero__meta {
		gap: 8px 0;
		flex-direction: column;
	}
	.bm-vacancy-hero__cta.button {
		width: 100%;
		text-align: center;
	}
	.bm-vacancy-layout {
		padding-top: 34px;
	}
	.bm-vacancy-aside {
		position: static;
		margin-top: 26px;
	}
	.bm-vacancy-content h2 {
		font-size: 1.42em;
		margin-top: 1.7em;
	}
	.bm-apply__row {
		grid-template-columns: 1fr;
	}
	.bm-apply__form {
		padding: 24px 20px 18px;
	}
	.bm-apply__submit.button {
		width: 100%;
	}
	.bm-vacancy-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.bm-vacancy-card {
		padding: 26px 24px 24px;
	}
	.bm-vacancy-apply-section {
		padding: 40px 0 46px;
		margin-top: 34px;
	}
}
