[data-language-switcher] {
  --ls-ink: #4b4b4b;
  position: relative;
  flex: 0 0 auto;
  z-index: var(--language-switcher-z, 80);
  color: var(--ls-ink);
  font: 400 19px/1.35 Arial, system-ui, sans-serif;
  text-align: left;
  direction: ltr;
}
[data-language-switcher][hidden], [data-language-options][hidden] { display: none !important; }
.language-switcher__toggle {
  display: flex; align-items: center; gap: 10px;
  min-width: 156px; min-height: 46px; padding: 8px 14px; border: 0; border-radius: 2px;
  background: rgb(255 255 255 / .72); color: var(--ls-ink); font: inherit;
  box-shadow: none; cursor: pointer;
}
[data-language-switcher] .language-switcher__globe, [data-language-switcher] .language-switcher__flag { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 28px; font: 30px/1 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
[data-language-switcher] .language-switcher__code { font-size: 20px; font-weight: 700; color: inherit; }
.language-switcher__current { display: none; }
.language-switcher__chevron { margin-inline-start: auto; color: inherit; transition: transform 180ms ease; }
[aria-expanded="true"] .language-switcher__chevron { transform: rotate(180deg); }
.language-switcher__options {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: max(100%, 180px); max-width: calc(100vw - 32px);
  max-height: min(260px, calc(100dvh - 110px)); overflow-y: auto;
  background: #fff; border-radius: 2px 2px 0 0; padding: 0;
  box-shadow: 0 4px 18px #00000026;
  scrollbar-width: thin; scrollbar-color: #b7b7b7 #f2f2f2;
  animation: language-menu-enter 180ms cubic-bezier(.16,1,.3,1) both;
}
.language-switcher__options a { display: flex; align-items: center; gap: 10px; min-height: 46px; box-sizing: border-box; padding: 7px 14px; color: var(--ls-ink); text-decoration: none; border-radius: 0; font-weight: 400; }
.language-switcher__options a[aria-current="page"] { background: #6373a3; color: #fff; }
.language-switcher__toggle:hover { background: rgb(255 255 255 / .88); }
/* The homepage header sits over imagery; keep the control light and readable. */
.owner-visual-study .language-switcher__toggle {
  background: rgb(255 255 255 / .06);
  color: #faf9f2;
  border: 1px solid rgb(255 255 255 / .24);
}
.owner-visual-study .language-switcher__toggle:hover { background: rgb(255 255 255 / .14); }
.owner-visual-study .language-switcher__toggle:focus-visible { outline-color: #faf9f2; }
.language-switcher__options a:hover { background: #6373a3; color: #fff; }
[data-language-switcher] :focus-visible { outline: 3px solid #1b417b; outline-offset: -3px; }
[data-language-switcher] ::selection { background: #6373a3; color: #fff; }
@keyframes language-menu-enter { from { opacity: .65; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
html[dir="rtl"] [data-language-switcher] .language-switcher__options { right: auto; left: 0; }
@media (max-width: 600px) {
  [data-language-switcher] .language-switcher__globe { font-size: 25px; flex-basis: 28px; width: 28px; }
  .language-switcher__toggle { min-width: 104px; min-height: 44px; padding: 7px 9px; gap: 6px; }
  [data-language-switcher] .language-switcher__code { font-size: 15px; }
  .language-switcher__current { display: none; }
}
@media (prefers-reduced-motion: reduce) { .language-switcher__options { animation: none; } .language-switcher__chevron { transition: none; } }
