/**
 * Careers — desktop + mobile (figma)
 */

.cr-page-shell,
.cr-page {
	width: 100%;
	background-color: #fff;
	background-image: url('../img/page-bg.png');
	background-repeat: no-repeat;
	background-position: right top;
	background-size: 50% auto;
}

@media (max-width: 1024px) {
	.cr-page-shell,
	.cr-page {
		background-size: 60% auto;
	}
}

@media (max-width: 768px) {
	.cr-page-shell,
	.cr-page {
		background-size: 80% auto;
	}
}

body.page-template-page-careers .cr-page-shell,
body.page-template-page-careers .cr-page {
	padding-bottom: 0;
	margin-bottom: 0;
}

.cr-wrap {
	width: 100%;
	max-width: var(--ssdc-page-max, none);
	margin: 0 auto;
	padding: 0 var(--ssdc-gutter, 112px);
	box-sizing: border-box;
}

/* —— Hero —— */
.cr-hero {
	position: relative;
	padding: 64px 0 0;
	overflow: hidden;
}

.cr-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 32px 48px;
	align-items: center;
	position: relative;
	z-index: 2;
	padding-bottom: 48px;
}

.cr-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 24px;
	font-family: 'Inter', 'Open Sans', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: #64748B;
}

.cr-crumbs__home,
.cr-crumbs__link,
.cr-crumbs a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #64748B;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	transition: color 0.15s ease;
}

.cr-crumbs__home:hover,
.cr-crumbs__link:hover,
.cr-crumbs a:hover {
	color: #03287C;
	text-decoration: none;
}

.cr-crumbs__sep {
	color: #CBD5E1;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.cr-crumbs__current {
	color: #03287C;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
}

.cr-hero__title {
	margin: 0 0 16px;
	font-family: 'Hanken Grotesk', 'Inter', sans-serif;
	font-weight: 800;
	font-size: clamp(28px, 3.6vw, 44px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #0a1f57;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.cr-hero__copy {
	min-width: 0;
	max-width: 100%;
}

.cr-hero__desc {
	margin: 0 0 24px;
	max-width: 480px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: #1E293B;
}

.cr-hero__media {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-height: 280px;
}

.cr-hero__img {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	object-fit: contain;
}

.cr-hero__decor {
	display: none;
}

.cr-hero__bar {
	display: none;
}

/* —— Buttons —— */
.cr-btn {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: auto;
	height: 52px;
	min-height: 52px;
	padding: 12px 18px;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: #0f172a;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	box-shadow:
		0px 1px 2px rgba(0, 0, 0, 0.05),
		inset 0px 0px 0px 1px rgba(0, 0, 0, 0.18),
		inset 0px -2px 0px rgba(0, 0, 0, 0.05);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
	flex: none;
	flex-grow: 0;
}

.cr-btn:hover {
	transform: translateY(-1px);
	background: #f8fafc;
	color: #0f172a;
}

.cr-btn--wa,
.cr-btn--wa-outline {
	width: 185px;
	height: 52px;
	padding: 12px 18px;
	gap: 6px;
	background: #ffffff;
	color: #0f172a;
	border: 1px solid #cbd5e1;
	border-radius: 9999px;
	box-shadow:
		0px 1px 2px rgba(0, 0, 0, 0.05),
		inset 0px 0px 0px 1px rgba(0, 0, 0, 0.18),
		inset 0px -2px 0px rgba(0, 0, 0, 0.05);
}

.cr-btn--wa:hover,
.cr-btn--wa-outline:hover {
	background: #f8fafc;
	color: #0f172a;
}

.cr-btn--wa .cr-wa-icon,
.cr-btn--wa-outline .cr-wa-icon {
	color: #25d366;
	fill: #25d366;
}

.cr-btn--email {
	width: auto;
	min-width: 185px;
	color: #0f172a;
	background: #ffffff;
}

.cr-btn--email:hover {
	background: #f8fafc;
	color: #0f172a;
}

.cr-wa-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* —— Jobs —— */
.cr-jobs {
	padding: 24px 0 56px;
	position: relative;
	z-index: 2;
}

.cr-jobs__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cr-jobs__empty {
	margin: 0;
	padding: 32px;
	text-align: center;
	color: #6b7280;
	font-family: 'Inter', sans-serif;
}

.cr-job {
	background: #fff;
	border: 1px solid #e8ecf2;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(10, 31, 87, 0.06);
	overflow: hidden;
}

.cr-job__head {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	background: #fff;
	border: 0;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.cr-job__head:hover {
	background: #fafbfd;
}

.cr-job__head-main {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.cr-job__title {
	font-family: 'Hanken Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.25;
	color: #111827;
}

.cr-job__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.cr-job__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
}

.cr-job__tag svg {
	color: #9ca3af;
	flex-shrink: 0;
}

.cr-job__chevron {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f3f4f6;
	color: #374151;
	transition: transform 0.2s ease, background 0.2s ease;
}

.cr-job.is-open .cr-job__chevron {
	transform: rotate(180deg);
	background: #e8eef8;
	color: #0a1f57;
}

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

.cr-job__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	padding: 0 24px 28px;
	border-top: 1px solid #eef1f6;
}

.cr-job__body:has(.cr-job__side) {
	grid-template-columns: minmax(0, 1fr) 200px;
}

.cr-job__intro {
	margin: 20px 0 0;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: #1E293B;
}

.cr-job__block {
	margin-top: 16px;
	padding: 24px;
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 1);
	border-radius: 12px;
	box-sizing: border-box;
}

.cr-job__block:first-child,
.cr-job__intro + .cr-job__block {
	margin-top: 20px;
}

.cr-job__label {
	margin: 0 0 12px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}

.cr-job__list {
	margin: 0;
	padding: 0 0 0 18px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	line-height: 1.65;
	color: #1E293B;
}

.cr-job__list li + li {
	margin-top: 6px;
}

.cr-job__hours {
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.cr-job__block--hours {
	overflow: hidden;
}

.cr-hours {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
}

.cr-hours__shift {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	min-width: 0;
}

.cr-hours__shift-title {
	margin: 0 0 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #0a1f57;
}

.cr-hours__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 16px;
	padding: 10px 0;
	border-top: 1px solid #e2e8f0;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	line-height: 1.45;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.cr-hours__row:last-child {
	border-bottom: 1px solid #e2e8f0;
}

.cr-hours__day {
	flex: 1 1 auto;
	min-width: 0;
	color: #1E293B;
	overflow-wrap: anywhere;
}

.cr-hours__time {
	flex: 0 1 auto;
	max-width: 55%;
	text-align: right;
	font-weight: 600;
	color: #111827;
	overflow-wrap: anywhere;
}

/* Legacy table fallback (if old ACF HTML still present) */
.cr-hours-table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #374151;
	table-layout: fixed;
}

.cr-hours-table th,
.cr-hours-table td {
	padding: 10px 8px;
	border: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: top;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.cr-hours-table th {
	background: #f8fafc;
	font-weight: 700;
	color: #111827;
	font-size: 13px;
}

.cr-hours-table td:first-child {
	font-weight: 600;
	color: #0a1f57;
	width: 22%;
}

.cr-job__side {
	padding-top: 20px;
}

.cr-job__side-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.cr-job__side-card {
	background: linear-gradient(165deg, #0a1f57 0%, #143a8c 100%);
	color: #fff;
	border-radius: 14px;
	padding: 20px 16px;
	min-height: 180px;
	display: flex;
	align-items: flex-end;
	box-shadow: 0 12px 28px rgba(10, 31, 87, 0.22);
}

.cr-job__side-text {
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

/* —— CTA — desktop inset; only margin-bottom to footer (match Staff / Competitions / HV) —— */
.cr-cta {
	margin-top: 8px;
	margin-bottom: 0;
	width: 100%;
	box-sizing: border-box;
}

.cr-cta__inner {
	position: relative;
	margin: 0;
	max-width: 100%;
	width: 100%;
	padding: 48px 40px;
	border-radius: 20px;
	background-color: #0a1f57;
	background-image: url('../img/CTA-bg-Blue.png');
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: left;
	box-sizing: border-box;
}

.cr-cta__title {
	margin: 0 0 12px;
	font-family: 'Hanken Grotesk', 'Inter', sans-serif;
	font-weight: 800;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #fff;
	text-align: left;
}

.cr-cta__desc {
	margin: 0 0 28px;
	max-width: 720px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	text-align: left;
}

.cr-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 12px;
}

@media (min-width: 768px) {
	.cr-cta {
		max-width: var(--ssdc-page-max, none);
		margin-left: auto;
		margin-right: auto;
		padding-left: var(--ssdc-gutter, 112px);
		padding-right: var(--ssdc-gutter, 112px);
		margin-bottom: 48px;
		box-sizing: border-box;
	}
}

/* —— Tablet —— */
@media (max-width: 960px) {
	.cr-hero__inner {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-bottom: 48px;
	}

	.cr-hero__media {
		justify-content: center;
		min-height: 0;
		order: 2;
	}

	.cr-hero__img {
		max-width: 360px;
	}

	.cr-job__body,
	.cr-job__body:has(.cr-job__side) {
		grid-template-columns: 1fr;
	}

	.cr-job__side {
		order: -1;
		max-width: 240px;
	}
}

/* —— Mobile / tablet: strip page-bg bars from hero copy —— */
@media (max-width: 1024px) {
	body.page-template-page-careers,
	body.page-template-page-careers.ssdc-page-bg {
		background-image: none !important;
		background-color: #ffffff !important;
	}

	.cr-page-shell,
	.cr-page {
		background-image: none !important;
		background-color: #ffffff !important;
	}

	.cr-hero__decor,
	.cr-hero__bar {
		display: none !important;
	}
}

/* —— Mobile —— */
@media (max-width: 767px) {
	.cr-wrap {
		padding: 0 var(--ssdc-gutter, 16px);
		max-width: 100%;
	}

	.cr-hero {
		padding-top: 32px;
		padding-bottom: 24px;
		overflow: hidden;
		background: #ffffff;
	}

	.cr-hero__inner {
		display: block;
		width: 100%;
		max-width: 100%;
		padding-bottom: 8px;
		position: relative;
		z-index: 2;
		box-sizing: border-box;
	}

	.cr-hero__copy {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		position: relative;
		z-index: 2;
	}

	.cr-hero__media {
		display: none !important;
	}

	.cr-crumbs {
		margin-bottom: 14px;
		gap: 6px;
	}

	.cr-crumbs__current {
		font-size: 14px;
		font-weight: 700;
		color: #0a1f57;
	}

	.cr-hero__title {
		margin: 0 0 12px;
		font-size: clamp(22px, 6.4vw, 28px);
		line-height: 1.18;
		letter-spacing: -0.03em;
		color: #0a1f57;
		width: 100%;
		max-width: 100%;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.cr-hero__desc {
		margin: 0 0 20px;
		max-width: 100%;
		font-size: 14.5px;
		line-height: 1.6;
		color: #1E293B;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.cr-hero__copy .cr-btn--wa {
		display: inline-flex;
		width: 185px;
		max-width: 100%;
		margin: 0;
		position: relative;
		z-index: 3;
	}

	/* Hide red/blue decorative stripes over hero copy on mobile */
	.cr-hero__decor,
	.cr-hero__bar {
		display: none !important;
	}

	.cr-btn {
		max-width: 100%;
		box-sizing: border-box;
	}

	.cr-btn--wa,
	.cr-btn--wa-outline {
		width: 185px;
		max-width: 100%;
	}

	.cr-jobs {
		padding: 12px 0 32px;
	}

	.cr-job {
		border-radius: 14px;
		overflow: hidden;
	}

	.cr-job__head {
		padding: 16px;
		align-items: center;
	}

	.cr-job__title {
		font-size: 18px;
		overflow-wrap: anywhere;
	}

	.cr-job__tags {
		gap: 6px 12px;
	}

	.cr-job__tag {
		font-size: 12px;
	}

	.cr-job__body {
		padding: 0 16px 18px;
		gap: 12px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.cr-job__main {
		min-width: 0;
		max-width: 100%;
	}

	.cr-job__intro {
		margin-top: 14px;
		font-size: 14px;
		overflow-wrap: anywhere;
	}

	.cr-job__block {
		margin-top: 12px;
		padding: 16px;
		border-radius: 10px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.cr-job__label {
		font-size: 15px;
	}

	.cr-job__list {
		font-size: 13.5px;
		padding-left: 16px;
	}

	.cr-hours__row {
		flex-wrap: nowrap;
		gap: 10px;
		padding: 10px 0;
	}

	.cr-hours__day {
		flex: 1 1 42%;
		font-size: 13px;
	}

	.cr-hours__time {
		flex: 1 1 48%;
		max-width: none;
		font-size: 13px;
	}

	.cr-hours__shift-title {
		font-size: 13.5px;
	}

	/* Legacy table: stack cells on narrow screens */
	.cr-hours-table,
	.cr-hours-table thead,
	.cr-hours-table tbody,
	.cr-hours-table tr,
	.cr-hours-table th,
	.cr-hours-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.cr-hours-table thead {
		display: none;
	}

	.cr-hours-table tr {
		padding: 8px 0;
		border-bottom: 1px solid #e2e8f0;
	}

	.cr-hours-table td {
		border: 0;
		padding: 2px 0;
	}

	.cr-hours-table td:first-child {
		width: 100%;
		margin-bottom: 2px;
	}

	.cr-job__side {
		display: none;
	}

	/* CTA flush to footer — no bottom margin */
	.cr-cta {
		margin: 0;
	}

	.cr-cta__inner {
		margin: 0;
		max-width: none;
		border-radius: 0;
		padding: 36px var(--ssdc-gutter, 16px) 32px;
	}

	.cr-cta__title {
		font-size: clamp(24px, 7vw, 32px);
		overflow-wrap: anywhere;
	}

	.cr-cta__desc {
		font-size: 14.5px;
		max-width: 100%;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.cr-cta__actions {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	.cr-cta__actions .cr-btn {
		width: 100%;
		max-width: 100%;
	}

	.cr-cta__actions .cr-btn--wa-outline {
		width: 185px;
		max-width: 100%;
	}
}

/* Editor canvas: keep CTA inset so preview isn't edge-clipped */
.editor-styles-wrapper .cr-cta__inner {
	margin-bottom: 24px;
}
