/* Theme owns the top-level navigation item: no float, padding, display or line-height overrides. */
.ajc-ls-manual { position: relative; }
.ajc-ls-manual > a { cursor: pointer; }
.ajc-ls-manual > a::after { content: ' \25BE'; font-size: .8em; }
.ajc-ls-manual .ajc-ls-panel[hidden] { display: none !important; }
/* Dropdown panel only; the parent anchor keeps Venus/other theme navigation styling. */
.ajc-ls-manual.ajc-ls-open > .ajc-ls-panel {
  display: block !important; visibility: visible !important; opacity: 1 !important;
  position: absolute; right: 0; left: auto; top: 100%; z-index: 100000;
  min-width: 175px; max-width: min(90vw, 300px); max-height: 60vh; overflow-y: auto;
  background: #1B1B1D; border: 1px solid #9E8765; padding: 4px 0; margin: 0;
  transform: none !important; pointer-events: auto !important;
}
.ajc-ls-manual .ajc-ls-language { display: block !important; float: none !important; margin: 0; padding: 0; list-style: none; }
.ajc-ls-manual .ajc-ls-language > button {
  border: 0; border-radius: 0; display: block; width: 100%; text-align: left;
  color: #fff; background: transparent; font: inherit; font-size: inherit;
  text-transform: none; padding: 9px 13px; cursor: pointer;
}
.ajc-ls-manual .ajc-ls-language > button:hover,
.ajc-ls-manual .ajc-ls-language > button:focus { background: rgba(158,135,101,.24); }
.ajc-ls-manual .ajc-ls-language > button:disabled { opacity: .4; cursor: not-allowed; }
.ajc-ls-manual > a:focus-visible, .ajc-ls-manual button:focus-visible { outline: 2px solid #9E8765; outline-offset: 2px; }
/* Only hide the old floating trigger after a working native translator + manual navigation item are detected. */
html.ajc-ls-ready #glt-translate-trigger,
html.ajc-ls-ready #glt-toolbar { display: none !important; }
@media (max-width: 1024px) {
  .ajc-ls-manual.ajc-ls-open > .ajc-ls-panel {
    position: static !important; width: 100%; max-width: 100%; max-height: 40vh;
  }
}
