/*! Anchor Nav widget (v1.0.0) */

/* Sticky: the widget's own container sticks, because the widget alone is only as tall as the bar. */
.avd-anchor-sticky-yes,
.e-con:has(> .avd-anchor-sticky-yes),
.e-con:has(> .e-con-inner > .avd-anchor-sticky-yes),
.elementor-section:has(.avd-anchor-sticky-yes) {
	position: sticky;
	top: calc(var(--avd-anchor-top, 0px) + var(--wp-admin--admin-bar--height, 0px));
	z-index: 20;
}

.e-con:has(> .avd-anchor-sticky-yes) > .avd-anchor-sticky-yes,
.e-con:has(> .e-con-inner > .avd-anchor-sticky-yes) .avd-anchor-sticky-yes {
	position: relative;
	top: 0;
}

.avd-an {
	background: #FFFFFF;
	border-bottom: 1px solid var(--avd-border);
	box-shadow: 0 10px 30px rgba(10, 10, 10, 0.05);
}

.avd-an__track {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
}

.avd-an__track::-webkit-scrollbar {
	display: none;
}

.avd-an__link {
	position: relative;
	flex: 1 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 68px;
	padding: 0 12px;
	font-size: 15px;
	font-weight: 500;
	color: var(--avd-text-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.avd-an__link:hover {
	color: var(--avd-text);
}

.avd-an__link::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--avd-blue);
	transform: scaleX(0);
	transition: transform 0.25s ease;
}

.avd-an__link:hover::after {
	transform: scaleX(0.35);
}

.avd-an__link[aria-current="true"] {
	color: var(--avd-text);
	font-weight: 600;
}

.avd-an__link[aria-current="true"]::after {
	transform: scaleX(1);
}

.avd-an__num {
	font-size: 12px;
	font-weight: 600;
	color: #8792A2;
}

.avd-an__link[aria-current="true"] .avd-an__num {
	color: var(--avd-blue);
}

@media (max-width: 1024px) {
	.avd-an--bp-1024 .avd-an__link { flex: 0 0 auto; }
	.avd-an--bp-1024 .avd-an__track { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
}

@media (max-width: 900px) {
	.avd-an--bp-900 .avd-an__link { flex: 0 0 auto; }
	.avd-an--bp-900 .avd-an__track { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
}

@media (max-width: 768px) {
	.avd-an--bp-768 .avd-an__link { flex: 0 0 auto; }
	.avd-an--bp-768 .avd-an__track { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
}

/* Sections targeted by the bar leave room for it when scrolled to. */
:where(.e-con, section)[id] {
	scroll-margin-top: 72px;
}
