/**
 * Language switcher - deliberately self-contained, no Bootstrap classes.
 * The site's Bootstrap theme defines --bs-secondary as a bright pink
 * (#feb1f5), which bled through the old btn-outline-secondary/dropdown-
 * item.active styling. This gives the switcher its own neutral, dark-
 * slate-and-white look so it reads as a plain UI control, not a themed
 * button, and renders identically on the Bootstrap pages and on the
 * standalone privacy-policy page (which loads no Bootstrap at all).
 */
.tw-lang-switcher {
  position: relative;
  display: inline-block;
}

.tw-lang-switcher .tw-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 6px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tw-lang-switcher .tw-lang-toggle:hover {
  border-color: #98a2b3;
  background: #f9fafb;
}

.tw-lang-switcher .tw-lang-toggle .fi {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.tw-lang-switcher .tw-lang-chevron {
  width: 10px;
  height: 10px;
  margin-left: 2px;
  opacity: 0.6;
}

.tw-lang-switcher .tw-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  display: none;
  z-index: 40;
}

.tw-lang-switcher .tw-lang-menu.show {
  display: block;
}

.tw-lang-switcher .tw-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #344054;
  font-size: 0.88rem;
  white-space: nowrap;
}

.tw-lang-switcher .tw-lang-item:hover {
  background: #f2f4f7;
  color: #1d2939;
}

.tw-lang-switcher .tw-lang-item.is-active {
  font-weight: 600;
  color: #101828;
}

.tw-lang-switcher .tw-lang-item.is-active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #344054;
  margin-left: auto;
}

/* On the dark-themed pages (data-bs-theme="dark" is unused on this site
   today, but keep this harmless if it's ever toggled), fall back to a
   slightly darker neutral palette instead of inheriting theme colors. */
[data-bs-theme="dark"] .tw-lang-switcher .tw-lang-toggle {
  background: #1d2129;
  border-color: #344054;
  color: #e4e7ec;
}

[data-bs-theme="dark"] .tw-lang-switcher .tw-lang-menu {
  background: #1d2129;
  border-color: #344054;
}

[data-bs-theme="dark"] .tw-lang-switcher .tw-lang-item {
  color: #e4e7ec;
}

[data-bs-theme="dark"] .tw-lang-switcher .tw-lang-item:hover {
  background: #2a2f3a;
}
