/**
 * TuServerMu — Variant A header (light frosted glass + gold/blue tab menu).
 * Loaded after tsmu-bg.css so these rules can override the solid navy bars
 * without editing the video-background stylesheet.
 */

/* ------------------------------------------------------------------ */
/*  Combined frosted chrome                                            */
/* ------------------------------------------------------------------ */

body.horizontal-menu #top_section,
body.horizontal-menu.semi-dark #top_section {
	background-color: rgba(255, 255, 255, 0.62);
	background-image: none;
	border-bottom: 1px solid rgba(28, 60, 114, 0.08);
	box-shadow: none;
	backdrop-filter: blur(22px) saturate(160%);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	/* backdrop-filter creates a stacking context; without a position +
	   z-index the dropdowns are painted under #footerfix (z-index: 1). */
	position: relative;
	z-index: 20;
}

body.horizontal-menu #main_menu.sidebar,
body.horizontal-menu.semi-dark #main_menu.sidebar,
body.horizontal-menu .horizontal-menu .sidebar,
body.horizontal-menu.horizontal-menu #main_menu.sidebar {
	background-color: rgba(255, 255, 255, 0.40);
	background-image: none;
	border-bottom: 0;
	box-shadow: 0 10px 36px rgba(15, 35, 67, 0.10);
	backdrop-filter: blur(22px) saturate(160%);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	margin: 0;
	position: relative;
	/* Above page content so the bar's shadow is visible, below #top_section
	   so mail / alerts / profile menus can overlap the tab bar. */
	z-index: 15;
}

/* Gold-to-blue hairline under the menu bar (end of the chrome). */
body.horizontal-menu #main_menu.sidebar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	pointer-events: none;
	background: linear-gradient(90deg,
		rgba(28, 60, 114, 0) 0%,
		#c9a227 18%,
		#1c4f9a 50%,
		#c9a227 82%,
		rgba(28, 60, 114, 0) 100%);
	opacity: 0.85;
	z-index: 3;
}

/* ------------------------------------------------------------------ */
/*  Top bar: brand, search, tools                                      */
/* ------------------------------------------------------------------ */

body.horizontal-menu #top_section nav {
	min-height: 64px;
}

body.horizontal-menu #top_section .logo-bar {
	width: auto;
	padding: 8px 16px 8px 0;
	background: transparent;
	border-right: 0;
}

body.horizontal-menu #top_section .logo-bar .horizontal-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	line-height: 1.1;
	color: #0f2948;
	text-decoration: none;
}

body.horizontal-menu #top_section .logo-bar .horizontal-logo:hover {
	color: #0f2948;
}

body.horizontal-menu #top_section .tsmu-header-emblem {
	width: 38px;
	height: 38px;
	display: block;
	flex: 0 0 38px;
	filter: drop-shadow(0 4px 8px rgba(22, 62, 134, 0.28));
}

body.horizontal-menu #top_section .tsmu-brand-text {
	display: grid;
	gap: 1px;
	min-width: 0;
}

body.horizontal-menu #top_section .tsmu-brand-title,
body.horizontal-menu #top_section .logo-bar .tsmu-brand-title {
	color: #0f2948;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-shadow: none;
}

body.horizontal-menu #top_section .tsmu-brand-kicker {
	display: block;
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #b8860b;
	line-height: 1.2;
}

/* Optional Font Awesome logo icon, if a theme setting enables it. */
body.horizontal-menu #top_section .logo-bar i {
	color: #163e86;
	font-size: 22px !important;
}

/* Default header link color is a light var(--headercolor) on this theme.
   Do not target #top_section a globally: the PM / alerts / profile panels
   are injected into #top_info .top_menu and bring their own link colors. */
body.horizontal-menu #top_section .logo-bar a,
body.horizontal-menu #top_section .logo-bar a:hover,
body.horizontal-menu #top_section .collapse-menu-bar a,
body.horizontal-menu #top_section .top-icon > li > a,
body.horizontal-menu #top_section .top-icon > li > a:hover {
	color: #0f2948;
	text-decoration: none;
}

/* Search */
body.horizontal-menu #top_section .search-form {
	width: min(38%, 300px);
	padding: 0;
	margin-left: 28px;
}

body.horizontal-menu #top_section .search-form .form-group {
	max-width: 300px;
}

body.horizontal-menu #top_section .search-form input,
body.horizontal-menu #top_section .search-form input.form-control {
	width: 100%;
	height: 38px;
	padding: 0 16px 0 38px !important;
	color: #0f2948;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(28, 60, 114, 0.16);
	border-radius: 999px;
	box-shadow: inset 0 1px 2px rgba(15, 41, 72, 0.04);
	font-size: 13px;
}

body.horizontal-menu #top_section .search-form input:hover {
	background: #fff;
	border-color: rgba(28, 60, 114, 0.28);
}

body.horizontal-menu #top_section .search-form input:focus {
	color: #0f2948;
	background: #fff;
	border-color: #c9a227;
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22), 0 8px 18px rgba(15, 35, 67, 0.08);
}

body.horizontal-menu #top_section .btn-search {
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
}

body.horizontal-menu #top_section .btn-search button,
body.horizontal-menu .btn-search button {
	width: 22px;
	height: 22px;
	padding: 0;
	color: #5b7aa0;
	background: transparent;
	border-radius: 999px;
}

body.horizontal-menu #top_section .search-form:focus-within .btn-search button {
	color: #163e86;
	background: transparent;
}

body.horizontal-menu #top_section i {
	/* do not force 17px on the brand or tiny kicker */
}

/* ------------------------------------------------------------------ */
/*  Guest login / register, and logged-in mail / bell / avatar         */
/* ------------------------------------------------------------------ */

body.horizontal-menu #top_section .top-icon > li,
body.horizontal-menu.semi-dark #top_section .top-icon > li {
	display: flex;
	align-items: center;
	padding: 0;
	min-width: 0;
	background: transparent;
	border-left: 0;
}

body.horizontal-menu #top_section .top-icon > li > a,
body.horizontal-menu #top_section .top-icon > li > a.nav-link,
body.horizontal-menu #top_section .top-icon > li > a.active {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 0;
	height: 38px;
	width: auto;
	min-width: 38px;
	padding: 0;
	color: #163e86;
	font-weight: 700;
	background: #fff;
	border: 1px solid rgba(28, 60, 114, 0.16);
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(15, 41, 72, 0.08);
}

body.horizontal-menu #top_section .top-icon > li > a::after {
	display: none;
}

body.horizontal-menu #top_section .top-icon > li > a:hover,
body.horizontal-menu #top_section .top-icon > li > a:focus,
body.horizontal-menu #top_section .top-icon > li > a.active,
body.horizontal-menu #top_section #top_info > li > a.active,
body.horizontal-menu #top_section #top_info > li > a[aria-expanded="true"] {
	color: #0f2948;
	background: #f4f7ff;
	border-color: rgba(28, 60, 114, 0.28);
	box-shadow: 0 4px 12px rgba(15, 41, 72, 0.10);
}

body.horizontal-menu #top_section .top-icon > li > a i {
	color: #163e86;
	text-shadow: none;
	font-size: 15px;
}

body.horizontal-menu #top_section .button_login,
body.horizontal-menu #top_section .button_signup,
body.horizontal-menu #top_section .user_ust {
	background: transparent;
}

/* Guest Log in / Sign up — same 38px height and pill radius as the search
   field. Medium weight and a slightly smaller icon so the pair reads as
   refined header actions, not heavy blobs. */
body.horizontal-menu #top_section .top-icon > li.button_login > a,
body.horizontal-menu #top_section .top-icon > li.button_signup > a,
body.horizontal-menu #top_section .button_login > a,
body.horizontal-menu #top_section .button_signup > a {
	height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	gap: 7px;
	line-height: 1;
	box-sizing: border-box;
}

body.horizontal-menu #top_section .top-icon > li.button_login > a i,
body.horizontal-menu #top_section .top-icon > li.button_signup > a i,
body.horizontal-menu #top_section .button_login > a i,
body.horizontal-menu #top_section .button_signup > a i {
	font-size: 14px;
	width: 14px;
	text-align: center;
	text-shadow: none;
}

/* Log in: frosted ghost / outline, so it stays quiet next to Sign up. */
body.horizontal-menu #top_section .top-icon > li.button_login > a,
body.horizontal-menu #top_section .button_login > a {
	color: #163e86;
	background: rgba(255, 255, 255, 0.62);
	border: 1px solid rgba(28, 60, 114, 0.28);
	box-shadow: none;
	backdrop-filter: blur(10px) saturate(140%);
	-webkit-backdrop-filter: blur(10px) saturate(140%);
}

body.horizontal-menu #top_section .top-icon > li.button_login > a i,
body.horizontal-menu #top_section .button_login > a i {
	color: #163e86;
}

body.horizontal-menu #top_section .top-icon > li.button_login > a:hover,
body.horizontal-menu #top_section .top-icon > li.button_login > a:focus,
body.horizontal-menu #top_section .top-icon > li.button_login > a.active,
body.horizontal-menu #top_section .button_login > a:hover,
body.horizontal-menu #top_section .button_login > a:focus,
body.horizontal-menu #top_section .button_login > a.active {
	color: #0f2948;
	background: #fff;
	border-color: rgba(28, 60, 114, 0.48);
	box-shadow: 0 4px 12px rgba(15, 41, 72, 0.10);
}

body.horizontal-menu #top_section .top-icon > li.button_login > a:focus-visible,
body.horizontal-menu #top_section .button_login > a:focus-visible {
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.28);
}

/* Sign up: primary action — blue gradient, thin gold edge, white type. */
body.horizontal-menu #top_section .top-icon > li.button_signup > a,
body.horizontal-menu #top_section .button_signup > a {
	color: #fff;
	background: linear-gradient(180deg, #1f6fd1 0%, #174ea6 100%);
	border: 1px solid #c9a227;
	box-shadow: 0 2px 8px rgba(23, 78, 166, 0.28);
}

body.horizontal-menu #top_section .top-icon > li.button_signup > a i,
body.horizontal-menu #top_section .button_signup > a i {
	color: #fff;
}

body.horizontal-menu #top_section .top-icon > li.button_signup > a:hover,
body.horizontal-menu #top_section .top-icon > li.button_signup > a:focus,
body.horizontal-menu #top_section .top-icon > li.button_signup > a.active,
body.horizontal-menu #top_section .button_signup > a:hover,
body.horizontal-menu #top_section .button_signup > a:focus,
body.horizontal-menu #top_section .button_signup > a.active {
	color: #fff;
	background: linear-gradient(180deg, #2a7be0 0%, #143f86 100%);
	border-color: #d4b03a;
	box-shadow: 0 4px 14px rgba(23, 78, 166, 0.36);
}

body.horizontal-menu #top_section .top-icon > li.button_signup > a:focus-visible,
body.horizontal-menu #top_section .button_signup > a:focus-visible {
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.28), 0 4px 14px rgba(23, 78, 166, 0.36);
}

body.horizontal-menu #top_info {
	gap: 8px;
	align-items: center;
}

/* Notification badge — gold, so it stays visible on the light bar. */
body.horizontal-menu #top_info .amt,
body.horizontal-menu #top_section #top_info .amt {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	color: #3b2a05;
	background: linear-gradient(180deg, #e0b84a, #c49212);
	font-size: 9px;
	font-weight: 800;
	line-height: 17px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
}

body.horizontal-menu #profile_menu_top > img.avatar {
	width: 38px;
	height: 38px;
	margin: 0;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1.5px #c9a227, 0 4px 10px rgba(15, 41, 72, 0.18);
	float: none;
}

body.horizontal-menu #top_section .user_ust > a,
body.horizontal-menu #profile_menu_top {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	height: 38px;
	min-width: 38px;
	padding: 0;
}

body.horizontal-menu #profile_menu_top::after {
	color: #5b7aa0;
	margin-left: 4px;
	font-size: 10px;
}

/* Keep dropdowns above the frosted bars and out of the header's paint/clip.
   The PM, alerts and profile panels ship their own rounded chrome, so hide
   the generic diamond caret from index.css (it was drawn for a flat white box). */
body.horizontal-menu #top_section,
body.horizontal-menu #top_section .inner_wrap,
body.horizontal-menu #top_section nav,
body.horizontal-menu #top_section #top_info,
body.horizontal-menu #top_section #top_info > li {
	overflow: visible;
}

/* Do not stretch #top_info. The ul already has Bootstrap h-100
   (height: 100% !important). That percentage cannot resolve against a
   nav that only has min-height, so the group stays 38px tall; stretch
   then overrides the navbar's align-items:center and pins the mail /
   bell / avatar (and guest Log in / Sign up) to the top of the bar,
   clipping the gold badge. Center the group on the same line as the
   search pill. Lis stay only as tall as the buttons so the dropdowns
   (top: calc(100% + 12px)) still open directly under them. */
body.horizontal-menu #top_section #top_info {
	align-items: center;
	align-self: center;
	height: auto !important;
}

body.horizontal-menu #top_section #top_info > li > .top_menu {
	z-index: 950;
}

body.horizontal-menu #top_section #top_info > li > .top_menu::before {
	display: none;
}

/* The June 2026 theme polish on #top_section #top_info > li > .top_menu is
   more specific than the #alerts_menu.top_menu / #pm_menu.top_menu reset the
   AJAX panels ship. Undo the white box, clip, and padding so their own
   rounded chrome can show. */
body.horizontal-menu #top_section #top_info > li > #pm_menu.top_menu,
body.horizontal-menu #top_section #top_info > li > #alerts_menu.top_menu,
body.horizontal-menu #top_section #top_info > li > #profile_menu.top_menu {
	background: transparent;
	border: 0;
	border-radius: 16px;
	box-shadow: none;
	overflow: visible;
	padding: 0 !important;
	color: inherit;
	max-height: none;
}

/* ------------------------------------------------------------------ */
/*  Desktop / tablet tab menu                                          */
/* ------------------------------------------------------------------ */

@media (min-width: 561px) {
	body.horizontal-menu #main_menu.sidebar {
		padding: 0;
	}

	body.horizontal-menu #main_menu.sidebar .inner_wrap {
		display: flex;
		align-items: center;
		min-height: 48px;
	}

	body.horizontal-menu #main_menu.sidebar .sidebar-menu {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px;
		margin: 0;
		padding: 0;
	}

	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li {
		margin: 0;
		line-height: 1;
	}

	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li .p-navEl {
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li a,
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li a.active,
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li .p-navEl:hover > a,
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li > .p-navEl a:focus,
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li .p-navEl > a {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		height: 48px;
		min-height: 48px;
		padding: 0 14px;
		color: #3a5573;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		text-shadow: none;
		font-size: 13px;
		font-weight: 600;
		transform: none;
		position: relative;
	}

	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li .p-navEl:hover > a,
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li > .p-navEl a:focus {
		color: #0f2948;
		background: transparent;
		transform: none;
		box-shadow: none;
	}

	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li a.active,
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li a.active:hover {
		color: #0f2948;
		font-weight: 800;
		background: transparent;
		box-shadow: none;
		transform: none;
	}

	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li a.active::after {
		content: "";
		position: absolute;
		left: 12px;
		right: 12px;
		bottom: 0;
		height: 3px;
		border-radius: 3px 3px 0 0;
		background: linear-gradient(90deg, #b8860b, #f3d58a, #b8860b);
		box-shadow: 0 0 10px rgba(201, 162, 39, 0.65);
	}

	/* Thanks Shop stays highlighted, as a warm chip (NEW badge comes from existing ::after). */
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li.button_thanksshop .p-navEl > a,
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li.button_thanksshop .p-navEl:hover > a,
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li.button_thanksshop > .p-navEl a:focus,
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li.button_thanksshop a.active {
		height: 32px;
		min-height: 32px;
		margin: 8px 0;
		padding: 0 12px;
		color: #9a4a00;
		font-weight: 700;
		background: linear-gradient(180deg, #fff6e8, #ffe8c2);
		border: 1px solid rgba(201, 122, 22, 0.28);
		border-radius: 999px;
		box-shadow: 0 2px 8px rgba(201, 122, 22, 0.10);
		text-shadow: none;
		transform: none;
	}

	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li.button_thanksshop a.active::after {
		display: none;
	}

	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li.button_thanksshop .p-navEl > a .textmenu::after {
		content: "NEW";
		display: inline-flex;
		align-items: center;
		min-height: 15px;
		margin-left: 6px;
		padding: 0 6px;
		border-radius: 999px;
		color: #fff;
		background: linear-gradient(180deg, #f59e0b, #ea7a0b);
		font-size: 9px;
		font-weight: 800;
		letter-spacing: 0.04em;
		line-height: 1;
		text-shadow: none;
		box-shadow: none;
		vertical-align: middle;
	}
}

/* ------------------------------------------------------------------ */
/*  Hamburger (visible below 992px)                                    */
/* ------------------------------------------------------------------ */

body.horizontal-menu #top_section .collapse-menu-bar {
	width: auto;
	padding: 0 8px;
	border-right: 0;
	line-height: 1;
	display: flex;
	align-items: center;
}

body.horizontal-menu #top_section a.mobile_user_menu,
body.horizontal-menu #top_section .collapse-menu-bar a.mobile_user_menu {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	color: #163e86;
	border-radius: 10px;
	background: #fff;
	border: 1px solid rgba(28, 60, 114, 0.16);
	box-shadow: 0 2px 8px rgba(15, 41, 72, 0.08);
}

body.horizontal-menu #top_section a.mobile_user_menu i,
body.horizontal-menu #top_section .collapse-menu-bar i {
	color: #163e86;
	font-size: 16px !important;
}

/* Theme already hides the hamburger from 992px up; keep that. */
@media (min-width: 992px) {
	body.horizontal-menu #top_section .collapse-menu-bar {
		display: none;
	}
}


/* Theme hides .textmenu at 855px; keep icon-only Log in / Sign up as
   tidy 38px circles, the same size as the logged-in mail / bell buttons. */
@media (max-width: 855px) {
	body.horizontal-menu #top_section .top-icon > li.button_login > a,
	body.horizontal-menu #top_section .top-icon > li.button_signup > a,
	body.horizontal-menu #top_section .button_login > a,
	body.horizontal-menu #top_section .button_signup > a {
		width: 38px;
		min-width: 38px;
		height: 38px;
		padding: 0;
		gap: 0;
	}
}

/* ------------------------------------------------------------------ */
/*  Phone / small tablet                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	body.horizontal-menu #top_section .search-form,
	body.horizontal-menu #top_section div.inner_wrap .search-form {
		width: 100%;
		margin: 0;
		padding: 8px 14px 10px;
		background: transparent;
	}

	body.horizontal-menu #top_section .search-form .form-group {
		max-width: none;
	}

	body.horizontal-menu #top_section .top-icon > li {
		min-width: 0;
	}

	body.horizontal-menu #top_section .top-icon > li > a {
		min-height: 0;
		height: 36px;
		padding: 0 10px;
	}

	body.horizontal-menu #top_section .top-icon > li.button_login > a,
	body.horizontal-menu #top_section .top-icon > li.button_signup > a,
	body.horizontal-menu #top_section .button_login > a,
	body.horizontal-menu #top_section .button_signup > a {
		width: 36px;
		min-width: 36px;
		height: 36px;
		padding: 0;
		gap: 0;
	}
}

/* At 440px the existing theme hides .logo-bar span (our two-line title) and
   shrinks the logo-bar — the emblem stays visible as the mark. */
@media (max-width: 440px) {
	body.horizontal-menu #top_section .logo-bar {
		width: auto !important;
		padding: 8px 8px 8px 10px;
	}

	/* Existing theme hides .logo-bar span at this width; keep the emblem, hide our two-line title. */
	body.horizontal-menu #top_section .logo-bar .tsmu-brand-text,
	body.horizontal-menu #top_section .logo-bar span.tsmu-brand-text {
		display: none;
	}

	body.horizontal-menu #top_section .tsmu-header-emblem {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
	}
}

/* Full-screen mobile menu overlay (existing behaviour at max-width: 560px).
   Do not paint the frosted bar onto the empty #main_menu shell. */
@media (max-width: 560px) {
	body.horizontal-menu #main_menu.sidebar,
	body.horizontal-menu.semi-dark #main_menu.sidebar {
		background: none;
		background-image: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		box-shadow: none;
		padding: 0;
		margin: 0;
		min-height: 0;
		height: auto;
		position: static;
		z-index: auto;
	}

	body.horizontal-menu #main_menu.sidebar::after,
	body.horizontal-menu.semi-dark #main_menu.sidebar::after {
		display: none;
	}

	/* Keep the hamburger overlay above the rest of the page. */
	body.horizontal-menu #main_menu .popup_container,
	body.horizontal-menu.semi-dark #main_menu .popup_container {
		z-index: 1000;
	}

	/* Popup list should read as a normal menu, not desktop tabs. */
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li a,
	body.horizontal-menu #main_menu.sidebar .sidebar-menu > li .p-navEl > a,
	body.horizontal-menu.semi-dark #main_menu.sidebar .sidebar-menu > li a,
	body.horizontal-menu.semi-dark #main_menu.sidebar .sidebar-menu > li .p-navEl > a {
		height: auto;
		min-height: 0;
		color: inherit;
		background: transparent;
		border-radius: 0;
	}
}
