@media (prefers-reduced-motion: no-preference) {
	.nff-subnav-pill {
		animation: nff-who-subnav-rise var(--wp--custom--reveal--duration)
			ease-out backwards;
		animation-delay: calc(var(--wp--custom--reveal--stagger) * 2);
	}
}

@keyframes nff-who-subnav-rise {
	from {
		opacity: 0.01;
		transform: translate(-50%, var(--wp--custom--reveal--offset));
	}
}

.nff-subnav-pill {
	position: fixed;
	left: 50%;
	bottom: var(--wp--preset--spacing--70, 1.5rem);
	transform: translateX(-50%);
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	max-width: calc(100vw - 2rem);
	padding: var(--wp--preset--spacing--60, 1.5rem) var(--wp--preset--spacing--80, 2.5rem);
	background-color: var(--wp--preset--color--neutrals-background-100, #e3d8c8);
	border: 1px solid rgba(0, 69, 57, 0.3);
	border-radius: var(--wp--custom--radius--pill, 100px);
	box-shadow: 4px 4px 20px 0 rgba(152, 142, 127, 0.2);
}

.nff-subnav-pill__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nff-subnav-pill__item {
	margin: 0;
}

.nff-subnav-pill__link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
	font-weight: 600;
	line-height: 1.24;
	color: var(--wp--preset--color--primary-vine, #004539);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.nff-subnav-pill__link:hover,
.nff-subnav-pill__link:focus-visible {
	color: var(--wp--preset--color--primary-tomato, #f32735);
}

.nff-subnav-pill__dot {
	display: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: 0 0 auto;
	background-color: var(--wp--preset--color--primary-vine, #004539);
	opacity: 0.3;
}

.nff-subnav-pill__link.is-active .nff-subnav-pill__dot {
	background-color: var(--wp--preset--color--primary-tomato, #f32735);
	opacity: 1;
}

.nff-subnav-pill__top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 50px;
	gap: 0.5rem;
	padding: var(--wp--preset--spacing--50, 1rem);
	/* The arrow draws 12px inside its 24px box, so 6px more on the left makes the visible padding equal on both sides. */
	padding-left: calc(var(--wp--preset--spacing--50, 1rem) + 6px);
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
	font-weight: 600;
	font-family: inherit;
	line-height: 1.24;
	color: var(--wp--preset--color--primary-cloud, #ffffff);
	background-color: var(--wp--preset--color--primary-vine, #004539);
	border: 0;
	border-radius: var(--wp--custom--radius--pill, 100px);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.nff-subnav-pill__top:hover,
.nff-subnav-pill__top:focus-visible {
	background-color: var(--wp--preset--color--primary-tomato, #f32735);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
	.nff-subnav-pill__top {
		transition:
			background-color 0.2s ease,
			transform var(--wp--custom--hover-lift--spring-duration) var(--wp--custom--hover-lift--spring);
	}

	.nff-subnav-pill__top:hover,
	.nff-subnav-pill__top:focus-visible {
		transform: scale(var(--wp--custom--hover-lift--scale));
		transition:
			background-color 0.2s ease,
			transform var(--wp--custom--hover-lift--duration) ease-out;
	}
}

.nff-subnav-pill__top :is(svg, .nff-icon) {
	width: 24px;
	height: 24px;
}

.nff-subnav-pill__top-label {
	position: relative;
	top: 3px;
}

@supports (text-box: trim-both cap alphabetic) {
	.nff-subnav-pill__top-label {
		top: 0;
		text-box: trim-both cap alphabetic;
	}
}

.nff-subnav-pill__spy {
	display: none;
}

@media (max-width: 900px) {
	.nff-subnav-pill {
		gap: 1rem;
		padding: 0.625rem 1rem;
	}

	.nff-subnav-pill__list {
		gap: 1rem;
	}

	.nff-subnav-pill__top-label {
		display: none;
	}

	.nff-subnav-pill__top {
		padding: 0.75rem;
	}
}

@media (max-width: 600px) {
	.nff-subnav-pill {
		gap: 0.75rem;
		max-width: calc(100vw - 1rem);
	}

	.nff-subnav-pill__label {
		display: none;
	}

	.nff-subnav-pill__dot {
		display: block;
	}

	.nff-subnav-pill__link {
		padding: 0.5rem;
	}

	.nff-subnav-pill__link.is-active .nff-subnav-pill__dot {
		transform: scale(1.25);
	}

}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
