@font-face {
  font-family: "Poppins";
  src: url("/prenet-home/fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/prenet-home/fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/prenet-home/fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
/* Shared by the public home and partner headers. */
.lang { position: relative; }
.lang-btn, .lang-menu {
  box-sizing: border-box;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  direction: ltr;
}
.lang[hidden] { display: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 0.85em;
  border-radius: 999px; border: 1.5px solid var(--navbd, rgba(247, 249, 252, 0.14)); background: var(--navbg, rgba(6, 32, 63, 0.35));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--navfg, #F7F9FC); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), border-color 0.2s cubic-bezier(0.33, 1, 0.68, 1), background-color 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}
.lang-btn:hover { transform: translateY(-2px); border-color: var(--amber, #FEB121); }
button.lang-btn:focus-visible { outline: 2px solid var(--focus, var(--amber, #FEB121)); outline-offset: 3px; }
.lang-btn > span, .lang-menu li > span { color: inherit; line-height: inherit; }
.lang-btn svg { flex: none; }
.lang-caret { font-size: 0.7em; opacity: 0.75; transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1); }
.lang.is-open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; list-style: none; margin: 0;
  width: 236px; max-height: min(62vh, 440px); overflow-y: auto; overscroll-behavior: contain; padding: 6px;
  background: rgba(11, 24, 40, 0.96); color: #F7F9FC; border: 1px solid rgba(247, 249, 252, 0.14); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(253, 110, 12, 0.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s cubic-bezier(0.33, 1, 0.68, 1), transform 0.18s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0.18s;
  scrollbar-width: thin; scrollbar-color: rgba(247, 249, 252, 0.25) transparent;
}
/* On mobile the menu is portalled to <body> (see language-switcher.js), so it is no longer a
   descendant of .lang.is-open — this class is toggled directly on the menu. */
.lang-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang-menu li[role="option"] {
  color: inherit;
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
  font-weight: 400; padding: 8px 10px; border-radius: 10px; font-size: 0.88rem; line-height: 1.3; cursor: pointer; outline: none;
}
.lang-menu li:hover, .lang-menu li:focus-visible { background: rgba(247, 249, 252, 0.08); }
.lang-menu li:focus-visible { outline: 2px solid var(--amber, #FEB121); outline-offset: -2px; }
.lang-menu li[aria-selected="true"] { background: rgba(253, 110, 12, 0.16); color: var(--amber, #FEB121); font-weight: 600; }
.lang-flag { display: block; width: 18px; height: auto; border-radius: 2px; }
.lang-iso { font-size: 0.7rem; letter-spacing: 0.06em; opacity: 0.55; }
@media (max-width: 900px) {
  .lang-btn { min-height: 28px; padding: 0 0.6em; gap: 4px; font-size: 0.72rem; border-color: rgba(247, 249, 252, 0.22); background: rgba(11, 24, 40, 0.92); color: #F7F9FC; }
  .lang-btn svg { width: 14px; height: 14px; }
  .lang-btn:hover { transform: none; }
  .lang-caret { display: none; }
  .lang-menu { position: fixed; width: min(260px, calc(100vw - 20px)); max-height: min(70vh, 460px); }
}
