/* ==========================================================================
   Niu Nav Menu - Top Bar
   Version: 1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Top Bar
   -------------------------------------------------------------------------- */

.niu-nav-menu {
	position: relative;
	z-index: 5;
	max-width: 1360px;
	width: 100%;
	margin: 12px auto 0;
	padding: 0 0 12px;
	box-sizing: border-box;
}

.niu-nav-menu__container {
	display: flex;
	align-items: stretch;
	max-width: 100%;
	position: relative;
	gap: 12px;
}

.niu-nav-menu__scroll-area {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
	border-radius: 4px;
	box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.niu-nav-menu__scroll-area::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.niu-nav-menu__list {
	height:100%;
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	background-color: #fff;
}

/* Top-level items */
.niu-nav-top-item {
	position: static;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	height:100%;
}

.niu-nav-top-link {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 0 15.7px;
	font-family: 'Gotham Medium', 'Gotham', sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 16px;
	color: #101010;
	border-right: 1px solid #E0E0E0;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: normal;
}

.niu-nav-top-link:hover {
	background: #f6f6f6;
	color: #101010;
	text-decoration: none;
}

.niu-nav-top-link:focus {
	background: #f6f6f6;
	color: #101010;
	text-decoration: none;
	outline: none;
}

.niu-nav-top-link:active {
	background: #f6f6f6;
	outline: none;
	border-color: transparent;
}

.niu-nav-top-item:last-child .niu-nav-top-link {
	border-right: 0;
}

.niu-nav-top-item--has-children:hover > .niu-nav-top-link,
.niu-nav-top-item--has-children.niu-nav-top-item--active > .niu-nav-top-link {
	background: #f6f6f6;
	color: #e41b1c;
}

/* Pipe title segments: each on its own line on desktop */
.niu-title-seg {
	display: block;
}

.niu-nav-top-arrow {
	font-size: 9px;
	transition: transform 0.2s ease;
}

.niu-nav-top-item--active:not(.niu-nav-top-item--nested) .niu-nav-top-arrow {
	transform: rotate(180deg);
}

/* Tooltip: "Click to open" on nested nav items (desktop only) */
.niu-nav-tooltip {
	display: none;
	position: absolute;
	background: #1e1e1c;
	color: #fff;
	font-size: 11px;
	font-weight: 400;
	white-space: nowrap;
	padding: 4px 10px;
	border-radius: 4px;
	pointer-events: none;
	z-index: 1100;
	animation: niuTooltipIn 0.2s ease;
}

@keyframes niuTooltipIn {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}
