/* =======================================================================
 * ax-sector-links — brand pill row linking into /sectors/?sector=<slug>
 * Figma node 2076:134. Sits on a dark section: outlined pills, white logos;
 * the active/hovered pill fills white and the logo reverts to its dark art.
 *
 * < 768px the row is a Splide carousel. >= 768px Splide destroys itself and
 * these flex-row rules take over — so they must not depend on Splide's
 * inline styles.
 * ==================================================================== */

#top .ax-sector-links {
	width: 100%;
}

#top .ax-sector-links__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#top .ax-sector-links__item {
	list-style: none;
}

#top .ax-sector-links__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 60px;
    padding: 0 24px;
    border: 0.6px solid rgba(255, 255, 255, 0.33);
    border-radius: 77px;
    background: transparent;
    text-decoration: none !important;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

#top .ax-sector-links__pill:hover,
#top .ax-sector-links__pill:focus-visible,
#top .ax-sector-links__pill.is-active {
	background: #fff;
	border-color: #fff;
}

#top .ax-sector-links__pill:focus-visible {
	outline: 2px solid #00bd87;
	outline-offset: 3px;
}

/* Logos ship as dark/monochrome art — invert them for the outlined state. */
#top .ax-sector-links__logo {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 30px;
	filter: brightness(0) invert(1);
	transition: filter 0.25s ease;
}

#top .ax-sector-links__pill:hover .ax-sector-links__logo,
#top .ax-sector-links__pill:focus-visible .ax-sector-links__logo,
#top .ax-sector-links__pill.is-active .ax-sector-links__logo {
	filter: none;
}

#top .ax-sector-links__name {
	font-family: "Montserrat", sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	transition: color 0.25s ease;
}

#top .ax-sector-links__pill:hover .ax-sector-links__name,
#top .ax-sector-links__pill.is-active .ax-sector-links__name {
	color: #1a1a1a;
}

/* ---- mobile: Splide carousel ---------------------------------------- */

@media only screen and (max-width: 767px) {
	/* Splide sets the track/list geometry itself; just stop the flex row
	   from fighting it. */
	#top .ax-sector-links.is-active .ax-sector-links__row {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0;
	}

	#top .ax-sector-links .splide__track {
		overflow: visible;
	}

	#top .ax-sector-links__pill {
		min-height: 60px;
		padding: 0 24px;
		white-space: nowrap;
	}

	#top .ax-sector-links__item {
		width: max-content !important;
	}

	#top .ax-sector-links__logo {
		max-height: 24px;
	}

	/* No JS / Splide failed to mount: fall back to a scrollable row. */
	#top .ax-sector-links:not(.is-active) .ax-sector-links__row {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		gap: 12px;
		padding-bottom: 6px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	#top .ax-sector-links:not(.is-active) .ax-sector-links__row::-webkit-scrollbar {
		display: none;
	}
}