/* keep the language selector consistent across home, content and registration pages. */
.site-language-menu { position: relative; display: inline-block; color: #fff; font: inherit; text-align: left; z-index: 100; }
.site-language-menu summary { list-style: none; cursor: pointer; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .5rem .9rem; font-size: .84rem; line-height: 1.3; background: rgba(0,0,0,.18); white-space: nowrap; }
.site-language-menu summary::-webkit-details-marker { display: none; }
.site-language-menu summary:focus-visible, .site-language-menu a:focus-visible { outline: 2px solid #30b0d0; outline-offset: 3px; }
.site-language-menu ul { position: absolute; right: 0; top: 100%; min-width: 10rem; margin: .3rem 0 0; padding: .35rem; list-style: none; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: #07131c; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.site-language-menu li { margin: 0; padding: 0; }
body .site-language-menu li a { display: block; padding: .55rem .75rem; border: 0; border-radius: 6px; background: transparent; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 400; line-height: 1.3; }
body .site-language-menu li a:hover, body .site-language-menu li a[aria-current="true"] { background: rgba(48,176,208,.2); color: #fff; }
.site-language-menu [aria-disabled="true"] { display: block; padding: .55rem .75rem; opacity: .55; }
.standalone-language-menu { display: flex; justify-content: flex-end; max-width: 1500px; margin: 0 auto; padding: 1rem 22px; }
/* align registration menus with the right edge even when the header stacks on mobile. */
.registration-header .site-language-menu { align-self: flex-end; }
body.nafems-page > nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* keep the dropdown available on small homepages where the old actions were hidden. */
@media (max-width: 975px) {
  /* let the open four-language list push the mobile navigation down instead of overlapping it. */
  body.index .home-top-actions .site-language-menu[open] ul { position: static; }
  body.index .home-top-actions { display: flex !important; margin: .5rem 0 .5rem auto; }
  body.index .home-top-actions > .home-action-link { display: none; }
}
