/* Shared, progressively enhanced language picker for the FST website. */
::selection { color: #fff; background: rgba(113, 164, 198, .42); }
.fst-language:has(> #fst-language) {
  position: relative;
  z-index: 30;
  gap: .75rem;
  min-height: 44px;
}
.fst-language:has(> #fst-language) > label {
  color: inherit;
  opacity: .8;
  font-size: .875rem;
  font-weight: 500;
}
.fst-language .fst-native-select[hidden] { display: none !important; }
.fst-language-picker { position: relative; display: inline-flex; max-width: 100%; }
.fst-language-menu {
  color: #f8fbfd;
  background: rgba(30, 49, 62, .78);
  border: 1px solid rgba(240, 249, 255, .16);
  box-shadow: 0 8px 28px rgba(0, 12, 24, .12);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fst-language-menu {
    background: linear-gradient(145deg, rgba(239, 249, 255, .18), rgba(26, 49, 65, .38));
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    backdrop-filter: blur(24px) saturate(135%);
  }
}
.fst-language:has(> .fst-native-select) > label {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.fst-language-trigger {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: .6rem 0;
  color: inherit; background: transparent; border: 0; border-radius: 0;
  box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  font: inherit; font-size: .9rem; font-weight: 500;
  cursor: pointer; text-align: start; transition: opacity .18s ease;
}
.fst-language-trigger > span { white-space: nowrap; }
.fst-language-chevron { width: 13px; height: 13px; opacity: .7; flex: none; transition: transform .18s ease; }
.fst-language-trigger[aria-expanded="true"] .fst-language-chevron { transform: rotate(180deg); }
.fst-language-trigger:focus-visible, .fst-language-option:focus-visible {
  outline: 2px solid rgba(190, 226, 252, .95); outline-offset: 3px;
}
.fst-language-menu {
  position: absolute; inset: calc(100% + 10px) auto auto 0;
  width: 210px; max-width: calc(100vw - 32px); padding: 6px;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 12, 24, .24);
}
.fst-language-menu[hidden] { display: none; }
.fst-language-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 44px; padding: .7rem .8rem;
  color: inherit; background: transparent; border: 0; border-radius: 14px;
  font: inherit; font-size: .9rem; text-align: start; cursor: pointer;
}
.fst-language-option[aria-selected="true"] { background: rgba(213, 237, 252, .16); }
.fst-language-option svg { width: 15px; height: 15px; flex: none; }
.fst-language-option[aria-selected="false"] svg { visibility: hidden; }
.fst-language-picker[data-tone="light"] .fst-language-menu {
  color: #172b3b;
  background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(224, 238, 247, .72));
  border-color: rgba(112, 149, 174, .24);
}
.fst-language-picker[data-tone="light"] .fst-language-option[aria-selected="true"] {
  background: rgba(85, 133, 166, .13);
}
.fst-language-picker[data-tone="light"] :focus-visible { outline-color: #5483a5; }
@media (hover: hover) {
  .fst-language-trigger:hover { opacity: .75; }
  .fst-language-option:hover { background: rgba(223, 242, 255, .17); }
  .fst-language-picker[data-tone="light"] .fst-language-option:hover { background: rgba(85, 133, 166, .13); }
}
@media (prefers-reduced-motion: reduce) {
  .fst-language-trigger, .fst-language-chevron { transition: none; }
}
@media (prefers-contrast: more) {
  .fst-language-menu { background: #203849; border-color: #d4e6f2; }
}
