/*
 * Career - Highlight benefits.
 *
 * Read from cp-all-designer css/career.css:2666-2775 (the band and its leaf),
 * 2734-2761, 3640-3643 (the two columns) and 2777-3060 (.benfhl, the three
 * cards).
 *
 * Colour, type, padding and the measures arrive from the Style tab and are not
 * repeated here.
 */

/* career.css:2716 — the leaf held off the band's foot corner by a fifth of its width */
.custom-career-highlight-benefits[data-custom-career-leaf]::before {
	right: calc(var(--custom-career-highlight-leaf-w, 318px) * 0.19);
	bottom: calc(var(--custom-career-highlight-leaf-w, 318px) * 0.19);
}

/* career.css:2759 — two even columns, the words in the second */
.custom-career-highlight-benefits .custom-career-highlight-benefits__grid {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* ------------------------------------------------------------------ */
/* The cards — career.css:2795-3031                                    */
/* ------------------------------------------------------------------ */

.custom-career-highlight-benefits .custom-career-highlight-benefits__panel {
	box-sizing: border-box;
	min-width: 0;
	margin-right: auto;
	margin-left: auto;
}

/* the cards stand in one cell, each over the last, so the stage is as tall as one */
.custom-career-highlight-benefits .custom-career-highlight-benefits__stage {
	display: grid;
}

.custom-career-highlight-benefits .custom-career-highlight-benefits__card {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
}

/* career.css:2955-2971 — a cut-out at the artwork's shape, standing on its foot */
.custom-career-highlight-benefits .custom-career-highlight-benefits__picture {
	width: 100%;
	aspect-ratio: 1080 / 1162;
	overflow: visible;
}

.custom-career-highlight-benefits .custom-career-highlight-benefits__picture:empty {
	background-color: transparent;
}

/* Elementor's sheet (`.elementor img`) comes after the plugin's: the slot's picture says its own */
.custom-career-highlight-benefits .custom-career-highlight-benefits__picture > img {
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: center bottom;
}

/* career.css:2982-3022 — a label in the way's colour, a wash off its start */
.custom-career-highlight-benefits .custom-career-highlight-benefits__label {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	align-self: stretch;
	text-align: center;
	white-space: nowrap;
	color: var(--custom-career-highlight-benefits-ink, #50A3D5);
	background: linear-gradient(94deg,
		color-mix(in srgb, var(--custom-career-highlight-benefits-accent, #50A3D5) 18%, #fff) 0%,
		color-mix(in srgb, var(--custom-career-highlight-benefits-accent, #50A3D5) 6%, #fff) 38%,
		#fff 72%);
	box-shadow:
		inset 0 0 0 2px color-mix(in srgb, var(--custom-career-highlight-benefits-accent, #50A3D5) 24%, #fff),
		0 14px 30px -16px color-mix(in srgb, var(--custom-career-highlight-benefits-accent, #50A3D5) 52%, transparent),
		0 4px 10px -6px rgba(16, 36, 80, 0.14);
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

/* career.css:2911-2913 — the dots sit at the foot of their row */
.custom-career-highlight-benefits .custom-career-highlight-benefits__dots {
	align-items: flex-end;
}

/* ------------------------------------------------------------------ */
/* Tablet — 768px to 1024px                                            */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	/* career.css:3641 — the cards take the wider share */
	.custom-career-highlight-benefits .custom-career-highlight-benefits__grid {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	}
	/* career.css:3056-3059 — the label as wide as its words, never under 62% */
	.custom-career-highlight-benefits .custom-career-highlight-benefits__label {
		align-self: center;
		width: fit-content;
		min-width: 62%;
		max-width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile — up to 767px (career.css:3462-3493)                         */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.custom-career-highlight-benefits .custom-career-highlight-benefits__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 24px;                     /* career.css:3623 (12.6 floored at 24) */
	}
	/* the words first, the cards under them */
	.custom-career-highlight-benefits .custom-career-highlight-benefits__body {
		order: 1;
	}
	.custom-career-highlight-benefits .custom-career-highlight-benefits__panel {
		order: 2;
		margin-top: var(--custom-career-highlight-benefits-above, 28px);
	}
}
