/* =======================================================================
 * AX Careers Filters — group layout + active-pill colour.
 * Base pill / panel / button look comes from ax-collection.css. These rules
 * add the Sector / Job-Type group headings and FORCE the active-pill green,
 * since ax-collection.js (which normally manages that state) isn't loaded on
 * the careers page.
 * ==================================================================== */

#top .ax-careers-filters__group {
	margin-bottom: 26px;
}

#top .ax-careers-filters__group:last-child {
	margin-bottom: 0;
}

#top .ax-careers-filters__group-label {
	display: block;
	color: #444192;
	font-family: Montserrat;
	font-size: 20px;
	font-style: normal;
	font-weight: 600;
	line-height: 111.667%;
}

#top .ax-careers-filters .ax-collection__pill.is-active {
	background: #00bd87 !important;
	border-color: #00bd87 !important;
	color: #ffffff !important;
}

#top .ax-careers-filters__group-head {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 12px;
    gap: 20px;
}

#top .ax-careers-filters__group-clear {
	position: static; /* neutralise any absolute positioning inherited from ax-collection__clear */
	font-size: 12px;
}

#top.page-id-536 .ax-collection__topics-head {
    justify-content: space-between;
}

#top .ax-collection__pill--has-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
 
#top .ax-collection__pill-logo {
    width: auto;
    height: 20px;
    object-fit: contain;
    flex: 0 0 auto;
    display: block;
}
 
#top .ax-collection__pill--has-logo .ax-collection__pill-label {
	white-space: nowrap;
}

#top .ax-collection__pill.is-active .ax-collection__pill-logo {
	filter: brightness(0) invert(1);
}

.careers-filters-cont {
	position: relative;
}
 
/* Full-cover overlay that holds the shimmering placeholder cards. */
.ax-results-skeleton {
	position: absolute;
	inset: 0;
	z-index: 5;
	background: transparent;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	padding: 0;                 /* match .careers-filters-cont padding if it has any */
	opacity: 0;
	pointer-events: none;       /* never block clicks */
	transition: opacity .18s ease;
}
 
/* Visible state (added on the next frame so the fade-in animates). */
.ax-results-skeleton.is-visible {
	opacity: 1;
}
 
/* One placeholder card. Height is an approximation of a real vacancy card. */
.ax-skel-card {
	position: relative;
	overflow: hidden;
	height: 240px;
	border-radius: 20px;
	background: transparent;
}
 
/* The moving sheen. */
.ax-skel-card::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.65) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	animation: ax-skel-shimmer 1.2s infinite;
}
 
@keyframes ax-skel-shimmer {
	100% { transform: translateX(100%); }
}
 
/* Respect reduced-motion: keep the placeholders, drop the sweep. */
@media (prefers-reduced-motion: reduce) {
	.ax-skel-card::after { animation: none; }
	.ax-results-skeleton { transition: none; }
}