/*
  xLocums footer photo band (1.7.3, 1.7.8).
  Enqueued when xl_footer_band_photo_enabled is on and the compact footer is on.
  Scope every rule under body.xl-footer-band-photo.
  Applies on every page where the band is printed, not only the homepage.
  Do not put less-than or greater-than signs in comments.
  1.7.8: the team photo stays hidden (and the band is taken out of layout)
  until JS adds xl-footer-band--ready, so it cannot flash at full strength
  in a job-page sidebar on first paint or on back-forward cache restore.
  1.7.9.15: a real img inside the photo layer is the visible picture, so
  WP Rocket LazyLoad CSS backgrounds cannot blank the band by rewriting a
  stylesheet url() to an unset CSS variable. CSS background-image stays as
  a fallback when no img is present.
*/

/* Hide the thin 48px white separator; this taller band replaces it. */
body.xl-footer-compact.xl-footer-band-photo.xl-footer-needs-band #content::after {
	display: none !important;
	height: 0 !important;
}

body.xl-footer-band-photo .xl-footer-band {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 320px;
	height: auto;
	overflow: hidden;
	background: #ffffff;
	margin: 0;
	padding: 40px 0;
	box-sizing: border-box;
}

/* Until JS places the band in front of the footer and adds --ready, collapse
   it so it cannot become a sidebar column, and keep the photo from painting. */
body.xl-footer-band-photo .xl-footer-band:not(.xl-footer-band--ready) {
	position: absolute !important;
	left: 0;
	width: 100% !important;
	max-width: 100% !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	flex: 0 0 100% !important;
	grid-column: 1 / -1 !important;
}

body.xl-footer-band-photo .xl-footer-band:not(.xl-footer-band--ready) .xl-footer-band__photo {
	opacity: 0 !important;
	background-image: none !important;
}

body.xl-footer-band-photo .xl-footer-band__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	background-color: #ffffff;
	background-image: url("../img/footer/band-photo.webp");
	background-image: image-set(
		url("../img/footer/band-photo.webp") type("image/webp"),
		url("../img/footer/band-photo.jpg") type("image/jpeg")
	);
	background-position: center 35%;
	background-repeat: no-repeat;
	/* cover keeps the team photo in the band at every width. 100% auto left
	   white gaps when the band sat below a shorter, viewport-sized image. */
	background-size: cover;
	background-attachment: scroll;
}

/* Fade the faint photo in only after the band is in its footer position. */
body.xl-footer-band-photo .xl-footer-band--ready .xl-footer-band__photo {
	opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
	body.xl-footer-band-photo .xl-footer-band--ready .xl-footer-band__photo {
		transition: opacity 0.4s ease;
	}
}

/* Real img: the durable photo. skip-lazy is set on the tag in PHP and JS. */
body.xl-footer-band-photo .xl-footer-band__photo-img {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 35%;
	pointer-events: none;
	border: 0;
}

/* When the img is present, do not also paint a CSS background. */
body.xl-footer-band-photo .xl-footer-band__photo:has(.xl-footer-band__photo-img) {
	background-image: none !important;
}

/* White overlay, same idea as the homepage refreshingly-different section. */
body.xl-footer-band-photo .xl-footer-band__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #ffffff;
	opacity: 0.80;
	pointer-events: none;
}

body.xl-footer-band-photo .xl-footer-band__text {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0 24px;
	text-align: center;
}

body.xl-footer-band-photo .xl-footer-band__heading {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
	font-family: "Kumbh Sans", "Plus Jakarta Sans", sans-serif;
	font-weight: 800;
	font-size: 32px;
	line-height: 1.25;
	color: #001233;
}

body.xl-footer-band-photo .xl-footer-band__heading .xl-mark,
body.xl-footer-band-photo .xl-footer-band__heading .xl-mark__x {
	color: #4169E1;
	font-weight: 800;
}

body.xl-footer-band-photo .xl-footer-band__subtext {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 760px;
	margin: 10px 0 0;
	padding: 0;
	text-align: center;
	font-family: "Work Sans", "Inter", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
	color: #001233;
}

/* Desktop fixed effect is applied by footer-band.js. background-attachment
   fixed is not used here because overflow on body (and on this band) makes
   it behave like a normal scroll in Chrome. The script sizes the photo to
   the viewport and shifts background-position on scroll so the photo stays
   put and faces stay in the band. */

/* 1.7.9.23: while the script moves the photo, nothing may animate it. */
body.xl-footer-band-photo .xl-footer-band.xl-fb-moving .xl-footer-band__photo-img {
	transition: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
	body.xl-footer-band-photo .xl-footer-band {
		min-height: 280px;
		height: auto;
		padding: 32px 0;
	}

	body.xl-footer-band-photo .xl-footer-band__photo {
		background-attachment: scroll;
		background-size: cover;
		background-position: center 30%;
	}

	body.xl-footer-band-photo .xl-footer-band__photo-img {
		object-position: center 30%;
	}

	body.xl-footer-band-photo .xl-footer-band__heading {
		font-size: 26px;
	}

	body.xl-footer-band-photo .xl-footer-band__subtext {
		font-size: 15px;
		line-height: 1.7;
		margin-top: 8px;
	}
}

/* Phone */
@media (max-width: 767px) {
	body.xl-footer-band-photo .xl-footer-band {
		min-height: 0;
		height: auto;
		padding: 28px 0;
	}

	body.xl-footer-band-photo .xl-footer-band__photo {
		background-attachment: scroll;
		background-size: cover;
		background-position: center 30%;
	}

	body.xl-footer-band-photo .xl-footer-band__photo-img {
		object-position: center 30%;
	}

	body.xl-footer-band-photo .xl-footer-band__text {
		padding: 0 16px;
	}

	body.xl-footer-band-photo .xl-footer-band__heading {
		font-size: 20px;
	}

	body.xl-footer-band-photo .xl-footer-band__subtext {
		font-size: 15px;
		line-height: 1.6;
		margin-top: 8px;
	}
}

/* iOS / iPadOS: fixed backgrounds do not work reliably. Normal scroll. */
@supports (-webkit-touch-callout: none) {
	body.xl-footer-band-photo .xl-footer-band__photo {
		background-attachment: scroll !important;
		background-size: cover;
	}
}

/* Coarse pointers (touch): same normal scroll as iOS. */
@media (hover: none) and (pointer: coarse) {
	body.xl-footer-band-photo .xl-footer-band__photo {
		background-attachment: scroll !important;
		background-size: cover;
		background-position: center 30%;
	}
	body.xl-footer-band-photo .xl-footer-band__photo-img {
		object-position: center 30%;
	}
}

/* Band CTAs, matching the homepage refreshingly-different buttons.
   Both buttons share a fixed 200px width. or sign in sits centered
   under the combined width of the two buttons. */
body.xl-footer-band-photo .xl-footer-band__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 20px 0 0;
	padding: 0;
	box-sizing: border-box;
	max-width: 100%;
}

body.xl-footer-band-photo .xl-footer-band__actions {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	width: auto;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body.xl-footer-band-photo .xl-footer-band__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 200px;
	min-width: 200px;
	max-width: 200px;
	height: 48px;
	padding: 0 16px;
	border-radius: 12px;
	font-family: "Work Sans", "Inter", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	white-space: nowrap;
}

body.xl-footer-band-photo .xl-footer-band__btn--primary {
	background: #4169E1;
	border: 1.5px solid #4169E1;
	color: #ffffff;
}

body.xl-footer-band-photo .xl-footer-band__btn--primary:hover,
body.xl-footer-band-photo .xl-footer-band__btn--primary:focus {
	background: #365ACF;
	border-color: #365ACF;
	color: #ffffff;
}

body.xl-footer-band-photo .xl-footer-band__btn--outline {
	background: #ffffff;
	border: 1.5px solid #4169E1;
	color: #4169E1;
}

body.xl-footer-band-photo .xl-footer-band__btn--outline:hover,
body.xl-footer-band-photo .xl-footer-band__btn--outline:focus {
	background: #EEF3FF;
	border-color: #365ACF;
	color: #365ACF;
}

body.xl-footer-band-photo .xl-footer-band__signin {
	display: block;
	width: auto;
	margin: 12px 0 0;
	padding: 0;
	text-align: center;
	font-family: "Work Sans", "Inter", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

body.xl-footer-band-photo .xl-footer-band__signin a {
	color: #4169E1;
	text-decoration: none;
}

body.xl-footer-band-photo .xl-footer-band__signin a:hover,
body.xl-footer-band-photo .xl-footer-band__signin a:focus {
	color: #365ACF;
	text-decoration: underline;
}

@media (max-width: 767px) {
	body.xl-footer-band-photo .xl-footer-band__actions {
		flex-direction: column;
		flex-wrap: nowrap;
	}

	body.xl-footer-band-photo .xl-footer-band__btn {
		width: 200px;
		min-width: 200px;
		max-width: 200px;
	}
}
