/*
 * PUBLIC HEADER & MEGA MENU — Shared navigation appearance on every public page.
 * Edit NAVIGATION LINKS for header labels; MENU LINKS for dropdown text/icons;
 * MEGA MENU GROUPS for panel structure. Bootstrap handles disclosure and collapse.
 */

/* NAVIGATION LINKS — Text-only appearance, including disclosure buttons. */
.site-public-header {
	position: relative;
	z-index: 1030;
	color: var(--bs-body-color);
	font-family: var(--app-font-body);
}

.site-public-header .site-nav-link {
	color: var(--bs-body-color);
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: .5rem 0;
	font-family: var(--app-font-display);
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: none;
}

.site-public-header .site-nav-link:is(:hover, :focus, .active, [aria-expanded="true"])
	{
	color: var(--bs-body-color);
	background: transparent;
	text-decoration: none;
}

.site-nav-link>i {
	color: var(--bs-secondary-color);
}

.site-public-header .site-nav-link[aria-expanded="true"] {
	font-weight: 600;
}

.site-public-header .site-nav-link[aria-expanded="true"],
	.site-public-header .site-nav-link[aria-expanded="true"]>i {
	color: var(--color-burgundy);
}

/* MENU LINKS — Content stays in Inter; Archivo Narrow is reserved for toggles/headings.
   Keep .dropdown-item in HTML for Bootstrap's keyboard navigation. */
.site-public-header .site-menu-link {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	padding: .4rem .5rem;
	border: 0;
	border-radius: .5rem;
	background: transparent;
	color: var(--bs-body-color);
	font-family: var(--app-font-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.45;
	white-space: normal;
	text-decoration: none;
}

.site-public-header .site-menu-link:is(:hover, :focus, :active) {
	color: var(--bs-body-color);
	background: transparent;
	text-decoration: none;
}

.site-menu-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.25rem;
	margin-top: .15rem;
	color: color-mix(in srgb, var(--bs-secondary-color) 80%, white);
}

.site-menu-label {
	min-width: 0;
}

.site-menu-link:hover .site-menu-icon {
	color: var(--bs-body-color);
}

/* Compact mega-menu rows without shrinking account-menu actions. */
.site-public-header .site-mega .site-menu-link {
	font-size: .875rem;
	padding: .3rem .375rem;
	gap: .375rem;
	line-height: 1.4;
}

.site-mega .site-menu-icon {
	width: 1rem;
	color: var(--bs-secondary-color);
}

.site-public-header .site-mega .site-menu-link:is(:hover, :focus,
	:active) {
	background: var(--bs-tertiary-bg);
	color: var(--bs-body-color);
}

.site-public-header :is(.site-menu-link, .site-nav-link):focus-visible {
	outline: 2px solid var(--bs-body-color);
	outline-offset: 3px;
}

/* MEGA MENU GROUPS — Distinct panel and section dividers aid scanning. */
.site-public-header .site-mega {
	background: white;
	border-color: var(--bs-border-color) !important;
	border-radius: 1rem;
	box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .1);
}

.site-menu-heading {
	margin: 0 0 .5rem;
	padding: .5rem .5rem .6rem;
	border-bottom: 1px solid var(--bs-border-color);
	background: transparent;
	color: var(--bs-body-color);
	font-family: var(--app-font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

.catalog-anchor {
	scroll-margin-top: 7rem;
}

.site-account-menu {
	width: 20rem;
	max-width: calc(100vw - 2rem);
	top: calc(100% + 1rem);
	max-height: calc(100dvh - 7rem);
	overflow-y: auto;
}

.site-account-menu .site-menu-link {
	align-items: center;
	padding: .65rem .25rem;
	border-radius: .5rem;
}

.site-account-language {
	padding-inline: .25rem;
}

.site-account-menu .site-menu-link:hover, .site-account-menu .site-menu-link:focus
	{
	background: var(--lac-surface);
}

.site-account-menu .site-menu-icon {
	flex: 0 0 1.25rem;
	margin-top: 0;
	line-height: 1;
	color: var(--color-burgundy);
}

.site-header-logo {
	width: clamp(8rem, 14vw, 11rem);
	height: auto;
}

@media ( min-width : 992px) {
	/* Anchor panels to the main navigation area, rather than centering them in the viewport. */
	.site-main-collapse {
		position: relative;
		align-self: stretch;
	}
	.navbar .site-mega {
		left: 0;
		right: 0;
		top: calc(100% + 1rem);
		width: auto;
		max-width: 64rem;
		margin: 0;
		max-height: calc(100dvh - 7rem);
		overflow-y: auto;
	}
	.navbar .site-mega-community {
		max-width: 50rem;
	}
	.navbar .site-mega-explore {
		max-width: 42rem;
	}
}

@media ( max-width : 991.98px) {
	.site-main-collapse {
		max-height: calc(100dvh - 5rem);
		overflow-y: auto;
	}
	.site-main-collapse .dropdown-menu {
		min-width: 0;
	}
}
/* Keep the trailing caret slightly below the navigation text baseline. */
.site-public-header .site-nav-link.dropdown-toggle::after { transform: translateY(2px); }
