/* Shared native navigation only. Preserve SMF menu IDs, popup positioning and mobile toggles. */
#top_section, #main_menu {
  --ln-bg:#101216; --ln-surface:#191d23; --ln-line:#353b45;
  --ln-ink:#f5f6f8; --ln-soft:#b5bdc9; --ln-brand:#d6116d; --ln-focus:#82dce8;
  font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;
}
html[data-theme="light"] #top_section, html[data-theme="light"] #main_menu {
  --ln-bg:#f5f6f8; --ln-surface:#ffffff; --ln-line:#c6cbd3;
  --ln-ink:#171b22; --ln-soft:#535d6b; --ln-focus:#006878;
}
body #top_section, html[data-theme] body #top_section {
  background:var(--ln-bg)!important; color:var(--ln-ink)!important;
  border:0; border-bottom:1px solid var(--ln-line)!important; box-shadow:none;
}
body #top_section .inner_wrap {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:8px 20px; min-height:64px; padding:8px 0; overflow:visible;
}
body #top_section #top_info {
  display:flex; flex-wrap:wrap; align-items:center; gap:4px; float:none;
  margin:0; padding:0; max-width:100%;
}
body #top_section #top_info > li {margin:0; font-size:14px; line-height:1.35; max-width:100%;}
body #top_section #top_info > li > a {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  box-sizing:border-box; min-height:44px; height:auto; line-height:1.35;
  padding:0 12px; border:1px solid transparent; border-radius:0;
  background:transparent!important; color:var(--ln-ink)!important;
  font-weight:400; text-shadow:none!important; box-shadow:none!important;
  text-decoration:none; white-space:normal; transition:background-color 160ms ease,border-color 160ms ease;
}
body #top_section #top_info > li > a:hover,
body #top_section #top_info > li > a:focus-visible,
body #top_section #top_info > li > a.open {
  background:var(--ln-surface)!important; border-color:var(--ln-line)!important;
}
body #top_section #top_info > li > a.active {
  border-bottom-color:var(--ln-brand)!important; box-shadow:inset 0 -2px var(--ln-brand)!important;
}
body #top_section #top_info > .button_signup > a {
  background:var(--ln-brand)!important; color:#fff!important; border-color:var(--ln-brand)!important;
}
body #top_section #top_info > .button_signup > a:hover {background:#bd0f60!important;}
body #top_section #top_info .welcome {padding:0 12px 0 0; color:var(--ln-soft)!important;}
body #top_section #top_info .welcome strong {color:var(--ln-ink)!important;}
body #top_section #profile_menu_top img.avatar {width:28px; max-height:28px!important; border-radius:0; object-fit:cover;}
body #top_section .amt, body #main_menu .amt {
  background:var(--ln-brand)!important; color:#fff!important; border-radius:0;
  min-width:20px; padding:0 5px; line-height:20px; text-align:center; text-shadow:none;
}
body #top_section #search_form, body #top_section #languages_form {
  float:none; align-items:center; gap:8px; margin:0; padding:0;
}
body #top_section #search_form {display:flex; flex-wrap:wrap; margin-inline-start:auto;}
body #top_section #search_form input, body #top_section #search_form select,
body #top_section #languages_form select {
  box-sizing:border-box; min-height:44px; height:auto; padding:0 8px; margin:0;
  font:400 15px/1.35 "Segoe UI",system-ui,sans-serif; border-radius:0;
  background:transparent!important; color:var(--ln-ink)!important;
  border:0!important; border-bottom:1px solid var(--ln-line)!important;
  box-shadow:none!important; text-shadow:none!important;
}
body #top_section #search_form input[type="search"] {width:180px; min-width:0; max-width:100%;}
body #top_section #search_form select option, body #top_section #languages_form select option {
  background:var(--ln-surface); color:var(--ln-ink);
}
body #top_section #search_form input[type="submit"] {
  min-height:44px; line-height:1.35; padding:0 16px; width:auto;
  background:var(--ln-brand)!important; color:#fff!important;
  border:1px solid var(--ln-brand)!important; cursor:pointer; text-transform:none;
}
body #top_section #search_form input[type="submit"]:hover {background:#bd0f60!important;}
body #top_section .top_menu, body #top_section .top_menu .popup_content {
  background:var(--ln-surface)!important; color:var(--ln-ink)!important;
  border-color:var(--ln-line)!important; border-radius:0!important;
  box-shadow:none!important; text-shadow:none!important;
}
body #top_section .top_menu a {color:var(--ln-ink)!important;}
body #top_section .top_menu a:hover {color:var(--ln-focus)!important;}
body #main_menu {margin:0 0 8px; color:var(--ln-ink);}
body #main_menu .popup_window {
  background:var(--ln-bg)!important; color:var(--ln-ink)!important;
  border-color:var(--ln-line)!important; border-radius:0!important; box-shadow:none!important;
}
body #main_menu .menu_nav {
  display:flex; flex-wrap:wrap; align-items:center; gap:2px; margin:0; padding:0;
  border:0; border-bottom:1px solid var(--ln-line); background:var(--ln-bg)!important; border-radius:0;
}
body #main_menu .menu_nav > li {float:none; margin:0; font-size:15px; line-height:1.35;}
body #main_menu .menu_nav > li > a {
  display:flex; align-items:center; gap:8px; box-sizing:border-box; min-height:48px;
  height:auto; padding:0 14px!important; border:0!important; border-bottom:3px solid transparent!important;
  border-radius:0!important; background:transparent!important; color:var(--ln-ink)!important;
  font-weight:400; line-height:1.35; text-indent:0; text-shadow:none!important; box-shadow:none!important;
  text-decoration:none; transition:background-color 160ms ease,border-color 160ms ease;
}
body #main_menu .menu_nav > li > a:hover,
body #main_menu .menu_nav > li > a:focus-visible {background:var(--ln-surface)!important;}
body #main_menu .menu_nav > li > a.active {border-bottom-color:var(--ln-brand)!important;}
body #main_menu .menu_nav li ul {
  background:var(--ln-surface)!important; color:var(--ln-ink)!important;
  border:1px solid var(--ln-line)!important; border-radius:0!important; box-shadow:none!important;
}
body #main_menu .menu_nav li li {border-radius:0;}
body #main_menu .menu_nav li li > a {
  min-height:44px; box-sizing:border-box; padding:8px 12px!important; line-height:1.5;
  background:transparent!important; color:var(--ln-ink)!important; border-radius:0;
  text-shadow:none!important; text-decoration:none;
}
body #main_menu .menu_nav li li > a:hover,
body #main_menu .menu_nav li li > a:focus-visible {background:var(--ln-bg)!important; color:var(--ln-focus)!important;}
body #main_menu .menu_nav li.subsections > a::after {color:var(--ln-soft)!important;}
body #main_menu .popup_heading {background:var(--ln-surface)!important; color:var(--ln-ink)!important; border-color:var(--ln-line)!important;}
body #inner_section > .mobile_user_menu {min-height:48px; padding:0 14px; gap:10px; border-radius:0; background:#191d23!important; color:#f5f6f8!important; border:1px solid #353b45; font:400 16px/1.35 "Segoe UI",system-ui,sans-serif;}
html[data-theme="light"] body #inner_section > .mobile_user_menu {background:#fff!important; color:#171b22!important; border-color:#c6cbd3;}
body #top_section a:focus-visible, body #top_section input:focus-visible,
body #top_section select:focus-visible, body #main_menu a:focus-visible {
  outline:2px solid var(--ln-focus)!important; outline-offset:2px;
}
@media(min-width:561px) {
  body #main_menu .menu_nav li:focus-within > ul {display:block!important;}
}
@media(max-width:900px) {
  body #top_section .inner_wrap {gap:8px 12px;}
  body #top_section #top_info > li > a {padding:0 10px;}
  body #top_section #search_form {flex:1 1 100%; margin-inline-start:0;}
  body #top_section #search_form input[type="search"] {flex:1 1 160px;}
}
@media(max-width:560px) {
  body #top_section .inner_wrap {width:100%; padding:8px 12px;}
  body #top_section #top_info {gap:2px;}
  body #top_section #top_info > li > a {padding:0 10px;}
  body #main_menu .menu_nav {display:block;}
  body #main_menu .menu_nav > li {width:100%;}
  body #main_menu .menu_nav > li > a {min-height:48px; width:100%;}
  body #main_menu .menu_nav li li > a {padding-inline-start:24px!important;}
}
@media(prefers-reduced-motion:reduce) {
  body #top_section #top_info > li > a, body #main_menu .menu_nav > li > a {transition:none;}
}
