/* Careers listing, filters and labels. Colours follow the Elementor site kit:
   primary #000000, secondary #B4000E, text #4A4A4A, accent #EA1D2D. */

.simile-careers {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
	gap: 40px;
}

/* Filter buttons ------------------------------------------------------- */

.simile-careers__filters {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 30px;
}

.simile-careers__filter {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 13px 30px 15px;
	border: 0;
	border-radius: 50px;
	background: transparent;
	color: #4a4a4a;
	font-family: "Barlow", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.simile-careers__filter:hover,
.simile-careers__filter:focus-visible,
.simile-careers__filter.is-active {
	background: #b4000e;
	color: #fff;
}

.simile-careers__filter:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.simile-careers__count {
	opacity: 0.8;
}

/* Cards ---------------------------------------------------------------- */

.simile-careers__list {
	margin: 0;
}

.simile-careers__card {
	background: #f5f6f8;
	padding: 20px;
	margin: 0 0 20px;
}

.simile-careers__card[hidden] {
	display: none;
}

.simile-careers__card-head {
	margin: 0 0 15px;
}

.simile-careers__title {
	margin: 0 0 10px;
	font-family: "Barlow", sans-serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 44px;
	color: #000;
}

.simile-careers__title a {
	color: inherit;
	text-decoration: none;
}

.simile-careers__title a:hover,
.simile-careers__title a:focus-visible {
	color: #b4000e;
}

/* Location / category / type: informational labels, not links --------- */

.simile-careers__labels {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.simile-careers__label {
	display: inline-block;
	margin: 0;
	padding: 5px 14px;
	border: 1px solid #dde0e5;
	border-radius: 50px;
	background: #fff;
	color: #4a4a4a;
	font-family: "Barlow", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	cursor: default;
	user-select: text;
}

/* On the single position page the labels sit on white, so tint them. */
.simile-career-meta {
	justify-content: center;
	margin: 10px 0 20px;
}

.simile-career-meta .simile-careers__label {
	background: #f5f6f8;
}

/* Summary + actions ---------------------------------------------------- */

.simile-careers__summary {
	margin: 0 0 20px;
}

.simile-careers__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px 28px;
}

.simile-careers__details {
	font-family: "Barlow", sans-serif;
	font-size: 17px;
	font-weight: 500;
	color: #b4000e;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.simile-careers__details:hover,
.simile-careers__details:focus-visible {
	color: #000;
}

.simile-careers__apply {
	display: inline-block;
	padding: 13px 30px 15px;
	border-radius: 50px;
	background: #000;
	color: #fff;
	font-family: "Barlow", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.simile-careers__apply:hover,
.simile-careers__apply:focus-visible {
	background: #b4000e;
	color: #fff;
}

.simile-career-apply {
	margin: 20px 0 0;
}

/* States --------------------------------------------------------------- */

.simile-careers__status,
.simile-careers__empty {
	background: #f5f6f8;
	padding: 20px;
	margin: 0 0 20px;
}

.simile-careers__status[hidden] {
	display: none;
}

.simile-careers__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Small screens -------------------------------------------------------- */

@media (max-width: 767px) {
	.simile-careers {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.simile-careers__filters {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
		margin-bottom: 20px;
	}

	.simile-careers__filter {
		width: auto;
		padding: 10px 20px;
		font-size: 16px;
		line-height: 22px;
	}

	.simile-careers__card {
		padding: 15px 10px;
	}

	.simile-careers__title {
		font-size: 24px;
		line-height: 32px;
	}

	.simile-careers__actions {
		justify-content: flex-start;
	}
}
