/**
 * Armoured One – automatic careers listings.
 *
 * Matches the hand-built Elementor sections they replace. Colours and fonts
 * come from the Elementor kit (Site Settings) with fallbacks.
 */

.ao-careers {
	--ao-yellow: var(--e-global-color-bcef723, #ffc800);
	--ao-gold: var(--e-global-color-e57b3a7, #a57e00);
	--ao-dark: var(--e-global-color-cf63496, #161819);
	--ao-white: var(--e-global-color-primary, #ffffff);
	--ao-gray: var(--e-global-color-text, #7a7a7a);
	--ao-card: #565656;
	--ao-heading-font: var(--e-global-typography-primary-font-family, "Saira"), sans-serif;
	--ao-text-font: var(--e-global-typography-text-font-family, "Albert Sans"), sans-serif;

	color: var(--ao-white);
	font-family: var(--ao-text-font);
	font-size: 18px;
	line-height: 1.2;
}

.ao-careers *,
.ao-careers *::before,
.ao-careers *::after {
	box-sizing: border-box;
}

/* Buttons ------------------------------------------------------------------ */

.ao-careers .ao-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 24px;
	border: 0;
	border-radius: 5px;
	background-color: var(--ao-yellow);
	color: var(--ao-dark);
	font-family: var(--ao-heading-font);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s;
}

.ao-careers .ao-btn:hover,
.ao-careers .ao-btn:focus {
	background-color: var(--ao-gold);
	color: var(--ao-white);
}

.ao-careers .ao-btn--block {
	display: flex;
	width: 100%;
}

.ao-careers .ao-btn--small {
	padding: 8px 20px 5px;
}

.ao-careers .ao-icon {
	display: block;
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
}

/* Dividers ----------------------------------------------------------------- */

.ao-careers .ao-divider {
	display: block;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--ao-gold);
	background: none;
	opacity: 1;
}

.ao-careers .ao-divider--thick {
	margin: 15px 0;
	border-top-width: 2px;
}

/* Careers page: location buttons ---------------------------------------- */

.ao-careers-nav {
	display: grid;
	grid-template-columns: repeat(var(--ao-columns, 5), minmax(0, 1fr));
	gap: 20px;
	padding: 0 10px;
}

.ao-careers-nav .ao-btn {
	width: 100%;
}

/* Careers page: locations ----------------------------------------------- */

.ao-careers-locations .ao-location {
	scroll-margin-top: 120px;
}

.ao-careers-locations .ao-location + .ao-location {
	margin-top: 50px;
}

.ao-careers-locations .ao-location > * + * {
	margin-top: 10px;
}

.ao-careers .ao-location__title {
	margin: 0;
	color: var(--ao-yellow);
	font-family: var(--ao-heading-font);
	font-size: 55px;
	font-weight: 600;
	line-height: 1.2;
	text-align: start;
}

.ao-careers .ao-location__title a,
.ao-careers .ao-card__title a {
	color: inherit;
	text-decoration: none;
}

.ao-careers .ao-card {
	padding: 20px;
	border-radius: 5px;
	background-color: var(--ao-card);
}

.ao-careers .ao-card > * + * {
	margin-top: 10px;
}

.ao-careers .ao-card + .ao-card {
	margin-top: 20px;
}

.ao-careers .ao-card__title {
	margin: 0;
	color: var(--ao-yellow);
	font-family: var(--ao-heading-font);
	font-size: 35px;
	font-weight: 600;
	line-height: 1;
}

.ao-careers .ao-card__title--empty {
	font-size: 25px;
	line-height: 1.2;
}

.ao-careers .ao-card__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ao-careers .ao-card__list li {
	margin: 0;
	padding: 0;
	font-size: 18px;
	line-height: 1.2;
}

.ao-careers .ao-card__list li:not(:last-child) {
	padding-bottom: 7.5px;
	border-bottom: 1px solid #ddd;
}

.ao-careers .ao-card__list li + li {
	margin-top: 7.5px;
}

.ao-careers .ao-card__label {
	font-weight: 700;
}

.ao-careers .ao-card__list a,
.ao-careers .ao-card__item {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--ao-white);
	text-decoration: none;
}

.ao-careers .ao-card__list a:hover span {
	color: var(--ao-yellow);
}

.ao-careers .ao-card__list .ao-icon {
	width: 14px;
	height: 14px;
	color: var(--ao-yellow);
}

/* State page: position buttons ------------------------------------------ */

.ao-job-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

/* State page: job details ----------------------------------------------- */

.ao-careers .ao-job {
	padding: calc(1% + 10px);
	border: 1px solid var(--ao-yellow);
	border-radius: 5px;
	background-color: var(--ao-card);
	scroll-margin-top: 120px;
}

.ao-careers .ao-job + .ao-job {
	margin-top: 32px;
}

.ao-careers .ao-job__title {
	margin: 0;
	color: var(--ao-yellow);
	font-family: var(--ao-heading-font);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
}

.ao-careers .ao-job__content {
	color: var(--ao-white);
	font-family: var(--ao-text-font);
	font-size: 18px;
	line-height: 1.2;
}

.ao-careers .ao-job__content p {
	margin: 0 0 10px;
	color: var(--ao-white);
	font-size: 18px;
	line-height: 1.2;
}

.ao-careers .ao-job__content strong,
.ao-careers .ao-job__content b {
	color: var(--ao-yellow);
	font-weight: 700;
}

.ao-careers .ao-job__content a {
	color: var(--ao-yellow);
	text-decoration: underline;
}

.ao-careers .ao-job__content h2,
.ao-careers .ao-job__content h3,
.ao-careers .ao-job__content h4,
.ao-careers .ao-job__content h5,
.ao-careers .ao-job__content h6 {
	margin: 25px 0 10px;
	padding: 0;
	color: var(--ao-yellow);
	font-family: var(--ao-text-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
}

.ao-careers .ao-job__content > :first-child {
	margin-top: 0;
}

.ao-careers .ao-job__content > :last-child {
	margin-bottom: 0;
}

.ao-careers .ao-job__content ul,
.ao-careers .ao-job__content ol {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.ao-careers .ao-job__content li {
	position: relative;
	margin: 0;
	padding: 0 0 0 19px;
	color: var(--ao-white);
	font-size: 18px;
	line-height: 1.2;
}

/* Yellow dot, vertically centred on the item like the original icon list. */
.ao-careers .ao-job__content li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 2px;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-radius: 50%;
	background-color: var(--ao-yellow);
}

.ao-careers .ao-job__content li:not(:last-child) {
	padding-bottom: 7.5px;
	border-bottom: 1px dashed var(--ao-gray);
}

.ao-careers .ao-job__content li:not(:last-child)::before {
	margin-top: -7.75px;
}

.ao-careers .ao-job__content li + li {
	margin-top: 7.5px;
}

.ao-careers .ao-job__content + .ao-divider {
	margin-top: 25px;
}

.ao-careers .ao-job__note {
	margin: 10px 0 0;
	color: var(--ao-white);
	font-family: var(--ao-text-font);
	font-size: 18px;
	font-style: italic;
	line-height: 1.3;
	text-align: center;
}

.ao-careers .ao-job__edit {
	margin: 10px 0 0;
	font-size: 14px;
	text-align: right;
}

.ao-careers .ao-job__edit a {
	color: var(--ao-yellow);
}

.ao-careers .ao-job--preview {
	border-style: dashed;
	border-width: 2px;
}

.ao-careers .ao-job__flag {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 10px;
	border-radius: 3px;
	background-color: var(--ao-yellow);
	color: var(--ao-dark);
	font-size: 14px;
	font-weight: 700;
}

/* Editor-only notices ---------------------------------------------------- */

.ao-careers-notice {
	padding: 14px 18px;
	border: 2px dashed var(--ao-yellow);
	border-radius: 5px;
	background-color: rgba(0, 0, 0, 0.35);
	font-size: 16px;
	line-height: 1.4;
}

.ao-careers-notice a {
	color: var(--ao-yellow);
	text-decoration: underline;
}

/* Responsive (Elementor breakpoints) ------------------------------------- */

@media (max-width: 1024px) {
	.ao-careers .ao-location__title {
		font-size: 40px;
	}

	.ao-careers .ao-job__title {
		font-size: 30px;
	}
}

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

	.ao-careers .ao-location__title {
		text-align: center;
	}

	.ao-careers .ao-card__title {
		font-size: 28px;
	}

	.ao-careers .ao-job__title {
		font-size: 25px;
	}
}
