/* ---------- element-level ---------- */
h2 {
	color: #333;
}

/* ---------- page-level ---------- */
#page {
	padding-top: 0;
}

/* ---------- content bands ---------- */
.page-careers .jobs-section {
	/*background: #f5f5f5;*/
	padding: 2rem 0;
}

/* cards block spacer */
.page-careers .cards-block {
	padding: 3rem 0 1rem;
}

/* buttons (site-wide on careers) */
.page-careers .button {
	background: #a42a36;
	border-radius: 0;
	color: #fff;
	padding: .9em 1.5em;
}

.page-careers .button:hover {
	background: #5e1f2b;
}

/* ---------- job postings ---------- */
.controls {
	display: flex;
	flex-wrap: nowrap;
	gap: 15px;
	justify-content: center;
	margin: 1rem 0;
}

.controls input[type="text"],
.controls select {
	padding: 10px;
	font-size: .88rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	min-width: 150px;
	background-color: #fff;
}

.controls select:focus,
.controls input[type="text"]:focus {
	border-color: #ccc;
	box-shadow: none;
	outline: none;
}

.controls select:hover,
.controls input[type="text"]:hover {
	border-color: #999;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .06);
}

option {
	background-color: #fff;
	color: #333;
}

option:checked {
	font-weight: bold;
}

option:hover {
	color: #8c232d;
}

.job-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin: 0 auto;
}

.job {
	background: #fff;
	border: 1px solid #ddd;
	border-left: 6px solid #ddd;
	border-radius: 6px;
	padding: 20px 24px;
	transition: background-color .2s ease, border-color .2s ease;
}

.job:hover {
	border: 1px solid #ddd;
	border-left: 6px solid #8c232d;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .06);
}

.job-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #8c232d;
	margin-bottom: 5px;
}

.job-title a {
	color: #5e1f2b;
	text-decoration: none;
	transition: color .2s ease;
}

.job-title a:hover {
	color: #a42a36;
	text-decoration: none;
}

.job-meta {
	font-size: .95rem;
	color: #555;
}

.message {
	text-align: center;
	margin-top: 20px;
	font-size: 1.1rem;
	color: #777;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 2rem 0;
}

.pagination button {
	padding: 8px 14px;
	font-size: .95rem;
	border: 1px solid #ccc;
	background-color: #fff;
	color: #333;
	border-radius: 4px;
	cursor: pointer;
}

.pagination button:hover:not(:disabled) {
	color: #fff;
	background-color: #8c232d;
	border: 1px solid #5e1f2b;
}

.pagination button:disabled {
	opacity: .5;
	cursor: default;
}

.pagination .page-info {
	font-size: .95rem;
	color: #444;
}

/* ---------- recruitment process ---------- */
.recruitment {
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background-color: #dedede;
	padding: clamp(16px, 4vw, 40px);
	position: relative;
}

.page-careers #recruitment.recruitment {
	background-image: url(../img/careers/gemtec-careers-grey.webp);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.recruitment .row,
.recruitment .columns {
	position: relative;
	/* keeps content above overlay */
	z-index: 1;
}

.rp-steps {
	--circle: clamp(70px, 12vw, 112px);
	--gap: clamp(16px, 4vw, 80px);
	list-style: none;
	margin: 0;
	padding: 1rem 0 .5rem 0;
	display: grid;
	grid-template-columns: repeat(5, var(--circle));
	gap: var(--gap);
	align-items: start;
}

.rp-step {
	position: relative;
	text-align: center;
}

.rp-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: calc(var(--circle)/2 - 2px);
	left: 100%;
	width: var(--gap);
	height: 4px;
	pointer-events: none;
	z-index: 0;
	background-image: radial-gradient(#8f8f8f 2px, transparent 2.6px);
	background-size: 16px 16px;
	background-repeat: repeat-x;
	background-position: 0 50%;
}

.rp-stepBtn {
	width: var(--circle);
	height: var(--circle);
	border-radius: 50%;
	border: none;
	background: #5b5b5b;
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background .15s ease, transform .06s ease, filter .15s ease;
}

.rp-stepBtn:hover,
.rp-stepBtn:focus-visible,
.rp-step.is-active .rp-stepBtn {
	background: #8c232d;
}

.rp-step.is-active .rp-stepBtn {
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .26));
}

.rp-stepBtn:active {
	transform: scale(.98);
}

.rp-icn {
	width: 55%;
	height: 55%;
}

.rp-cap {
	margin-top: 10px;
	color: #222;
	visibility: hidden;
	height: 0;
	text-align: center;
}

.rp-capText {
	display: inline-block;
	font-weight: 600;
	font-size: 1.5rem;
}

.rp-step.is-active .rp-cap {
	visibility: visible;
	height: auto;
}

.rp-detailsWrap {
	position: relative;
	min-height: 120px;
}

.rp-desc {
	position: absolute;
	top: 0;
	left: var(--anchor-left, 0px);
	max-width: min(600px, 90vw);
	margin: 0;
	line-height: 1.55;
	color: #111;
	text-align: left;
}

/* global: hide container title except in portrait */
.rp-title {
	display: none;
}

/* ---------- misc ---------- */
select {
	background-position: right 0 center;
}

/* job postings – enhancements */
.controls .search-wrap {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 420px;
}

.controls .search-wrap #searchInput {
	width: 100%;
	box-sizing: border-box;
	padding-right: 2.25rem;
	/* room for the clear button */
}

.controls .search-clear {
	position: absolute;
	right: .25rem;
	top: 12%;
	width: 1.75rem;
	height: 1.75rem;
	border: 0;
	background: transparent;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	display: none;
	/* toggled via JS when there is text */
	color: #999;
}

.controls .search-clear:hover {
	color: #333;
}

/* make entire job item clickable (pointer only; no visual change) */
#bambooJobs .job-clickable {
	cursor: pointer;
}

/* ---------- responsive ---------- */
@media (max-width: 600px) {
	.controls {
		flex-direction: column;
		align-items: center;
		gap: 0;
	}

	.controls input[type="text"],
	.controls select {
		width: 100%;
	}
}

@media (max-width: 640px) and (orientation: portrait) {

	/* recruitment – portrait adjustments */
	.rp-steps {
		grid-template-columns: repeat(5, 1fr);
		--circle: 56px;
		--gap: 6px;
	}

	.rp-cap {
		display: none !important;
	}

	.rp-title {
		margin: 0 0 6px 0;
		font-weight: 600;
		line-height: 1.2;
		display: block !important;
		/* portrait-only label, JS inserts */
	}

	.rp-desc {
		position: static !important;
		transform: none !important;
		left: 0 !important;
		max-width: 100%;
		text-align: left;
		margin: 0;
	}
}
