.material-symbols-outlined.dropdown-icon {
  margin-left: 4px;
  vertical-align: middle;
}
li:hover a > .dropdown-icon {
  visibility: hidden;
}
.custom-menu a[href="#"] {
  pointer-events: none;
  cursor: default;
  color: inherit;
  text-decoration: none;
}
#masthead {
  --header-height: 3.5rem;
  width: 100%;
  height: var(--header-height);
  padding: 0.25rem 2rem;
  align-items: flex-end;
  flex-wrap: nowrap;
}

#masthead img.site-logo,
#masthead img.site-logo-dark{
  max-width: auto; 
  height: 3rem;
  margin: 0;
}
#masthead img.site-logo-dark{
  display: none;
}
:root[theme="dark"] #masthead img.site-logo-dark{
  display: inline;
}
[theme="dark"] #masthead img.site-logo{
  display: none;
}

#masthead .menu-item > a{
  font-family: var(--global--font-heading) !important;
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0px;
  text-decoration: none;
}

#masthead .custom-dropdown-nav {
  margin-left: auto;
}

#masthead .custom-menu,
#masthead .custom-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
#masthead .custom-menu{
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--global--key-color-dark) var(--global--key-color) ;
}
#masthead .custom-menu > li > ul {
  display: none;
  position: fixed;
  transform: translateX(-10%);
  top: calc(var(--header-height) - 3px);
  padding: 0.5em 0em;
  border-top: 3px solid var(--global--key-color);
  border-bottom: 5px solid var(--global--key-color);
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.3);
}

#masthead .custom-menu .menu-item.has-children:hover{
  color: var(--global--key-color-dark);
}
#masthead .custom-menu li {
  transition: background-color 0.2s;
  white-space: nowrap;
}
#masthead .menu-item.has-children .custom-menu li{
  padding: 0.4em 1em;
}
.custom-dropdown-nav > ul.custom-menu > .menu-item.child:hover{
  background: none !important;
}
.custom-dropdown-nav > ul.custom-menu > .menu-item.child:hover a{
  color: var(--global--key-color-dark);
}

#masthead .custom-menu li:hover > ul {
  display: block;
  background: var(--global--key-color-light);
  z-index: 10;
}

#masthead .menu-item{
  padding: 0 1em;
}
#masthead .menu-item.child:hover{
  background:  var(--global--color-background-white);
}

#masthead .header-lang-menu{
  position: relative;
  align-self: end;
  text-align: center;
}
#masthead .header-lang-menu .lang-dropdown-label{
  display: block;
  margin: 0;
  line-height: 1.5em;
  
}
#masthead .header-lang-menu .lang-dropdown-label:hover{
  color: var(--global--key-color-dark);
}
#masthead .header-lang-menu > .lang-dropdown-menu{
  display: none;
  background: var(--global--key-color-light);
  z-index: 10;
}
#masthead .header-lang-menu:hover > .lang-dropdown-menu{
  display: block;
  position: fixed;
  
  padding: 0.5em 0em;

  border-top: 4px solid var(--global--key-color);
  border-bottom: 5px solid var(--global--key-color);
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.3);
  list-style: none;
}
#masthead .header-lang-menu:hover > .lang-dropdown-menu > li{
  padding: 0.25em 1em;
  transition: background-color 0.2;
}
#masthead .header-lang-menu:hover > .lang-dropdown-menu > li > a{
  font-family: var(--global--font-heading);
  font-weight: 600;
  font-size: 1em;
  text-decoration: none;
}
#masthead .header-lang-menu:hover > .lang-dropdown-menu > li.current > a{
  color: var(--global--key-color-dark)
}
#masthead .header-lang-menu:hover > .lang-dropdown-menu > li.current > span{
  font-family: "Material Symbols Outlined";
  margin-left: -1em;
  color: var(--global--key-color-dark);
  vertical-align: middle;
}

#masthead .header-lang-menu:hover > .lang-dropdown-menu > li:hover{
  background: var(--global--color-background-white);
}


@media (min-width: 769px) {
  /* desktop -------------------------------------------- */
  #masthead {
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
  }
  #masthead .custom-mobile-nav {
    display: none ;
  }
  #masthead .mobile-nav-button{
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* mobile --------------------------------------------- */
  #masthead {
    max-width: none;
    display: flex;
  }
  #masthead .custom-dropdown-nav {
    display: none !important;
  }
  #masthead .mobile-nav-button{
    font-family: "Material Symbols Outlined";
    font-weight: 400;
    display: block;
    font-size: 20px;
    line-height: 1.2em;
    color: var(--global-color-gray);
    margin: 0;
    padding-right: 0.5em;
    margin-bottom: -0;
    margin-left: auto;
  }

  #masthead .mobile-nav-button:hover{
    color: var(--global--key-color-dark);
  }
  #masthead .mobile-nav-button .open {
    display: none;
  }
  #mobile-nav-toggle:checked + .mobile-nav-button.open {
    font-family: "Material Symbols Outlined" !important;
    display: inline;
  }

  .custom-mobile-nav {
    display: none;
  }
  #mobile-nav-toggle:checked ~ .custom-mobile-nav {
    display: flex;
    width: 100%;
    background: var(--global--key-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
  }
  #mobile-nav-toggle:checked ~ .custom-mobile-nav .custom-menu {
    border: 1px solid var(--global--key-color);
  }
  #mobile-nav-toggle:checked ~ .custom-mobile-nav > .custom-menu {
    display: flex;
    padding: 0 1em;
    height: var(--header-height);
    align-items: center;
    border: none;
    
  }
  .mobile-nav-button.open{
    font-family: "Material Symbols Outlined" !important;
    display: inline-block !important;
    align-self: end;
    color: var(--global--key-color-dark);
    background: transparent;
    margin-left: auto;
    padding: 0.2em 0.5em;
  }
  #masthead .custom-mobile-nav > ul.custom-menu > li.menu-item{
    padding: 1em;
    align-self: center;
  }
  #masthead .custom-mobile-nav ul.custom-menu ul{
    display: block;
    position: fixed;
    transform: translate(0);

    margin: 0;
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: 100%;
    box-shadow: 0 4px 3px rgba(0, 0, 0, 0.3);
    border-width: 0 0 3px 0!important;
    padding: 0;
    border-radius: 0;
    text-align: center;

    visibility: hidden;
    transition: all 0s 0.1s;
  }
  #masthead .custom-mobile-nav ul.custom-menu li:hover > ul{
    visibility: visible;
    transition-delay: 0s;
  }
  #masthead .custom-mobile-nav .custom-menu .custom-menu > li{
    padding: 0.75em !important;
  }

}
@media (max-width: -8px) {
  .primary-navigation {
    display: block;
    position: relative;
    align-self: bottom !important;
    margin-left: auto;
  }
}
