/* Language picker and "page not translated yet" banner, added to every page by the Worker.
   Same pill and panel as the Contact menu (contact.css). */
.nav-end { display: flex; align-items: center; gap: 8px; flex: none; order: 3; }
.nav-end--floating { position: fixed; top: 12px; right: 12px; z-index: 140; }
.nav:has(.nav-lang[open]) { z-index: 130; }
.nav-lang { position: relative; flex: none; }
.lang-trigger { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 14px; list-style: none; cursor: pointer; border: 1px solid var(--blue, #4fb6ff); border-radius: var(--radius-full, 999px); background: #10273a; color: #c5eaff; font: 700 14px/1 var(--font, system-ui, sans-serif); letter-spacing: .04em; touch-action: manipulation; transition: background-color 160ms ease, transform 160ms ease; }
.lang-trigger::-webkit-details-marker { display: none; }
.lang-trigger::marker { content: ''; }
.lang-globe { width: 20px; height: 20px; flex: none; }
.lang-chevron { width: 16px; height: 16px; flex: none; transition: transform 160ms ease; }
.nav-lang[open] .lang-chevron { transform: rotate(180deg); }
.lang-trigger:active { transform: scale(.97); }
.lang-trigger:focus-visible, .lang-option:focus-visible, .lang-notice a:focus-visible, .lang-notice-close:focus-visible { outline: 2px solid var(--blue, #4fb6ff); outline-offset: 3px; }
.lang-options { position: absolute; top: calc(100% + 12px); right: 0; z-index: 105; width: 224px; max-width: calc(100vw - 32px); padding: 16px 10px 10px; border-radius: 16px; background: #141d2b; color: var(--text, #f5f7fa); box-shadow: 0 18px 48px #0009; }
.lang-title { margin: 0 10px 8px; color: #bccbd8; font: 700 12px/1.4 var(--font, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; }
.lang-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 10px; color: var(--text, #f5f7fa); font: 600 16px/1.3 var(--font, system-ui, sans-serif); text-decoration: none; }
.lang-option + .lang-option { margin-top: 2px; }
.lang-option[aria-current="true"] { background: #10273a; color: #c5eaff; }
.lang-check { width: 18px; height: 18px; flex: none; color: var(--blue, #4fb6ff); }
.lang-notice { position: relative; z-index: 111; padding: 11px 56px 11px 20px; border-bottom: 1px solid #1f4d6b; background: #10273a; color: #c5eaff; font: 500 14px/1.5 var(--font, system-ui, sans-serif); text-align: center; }
.lang-notice[hidden] { display: none; }
.lang-notice p { max-width: 760px; margin: 0 auto; }
.lang-notice a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lang-notice-close { position: absolute; top: 50%; right: 6px; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: transparent; color: #c5eaff; font: 400 24px/1 var(--font, system-ui, sans-serif); cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .lang-trigger:hover { background: #19394f; }
  .lang-option:hover { background: #203044; color: #fff; }
  .lang-notice-close:hover { background: #19394f; }
}
@media (min-width: 901px) {
  /* Without the Contact menu, the links stay on the right, next to the picker. */
  .nav-inner:not(:has(.nav-contact)) .nav-menu { margin-left: auto; }
}
@media (max-width: 1200px) and (min-width: 901px) {
  /* The header links already fill this width: round picker, Contact shown as its icon. */
  .lang-trigger { width: 48px; padding: 0; }
  .lang-trigger .lang-code, .lang-trigger .lang-chevron { display: none; }
  .nav-end .contact-trigger { gap: 6px; padding-inline: 14px; }
  .nav-end .contact-trigger > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 900px) {
  .nav-end { order: 0; margin-left: auto; position: relative; z-index: 121; }
  .nav-wa + .nav-end { margin-left: 0; }
  .nav-end .nav-contact { margin-left: 0; }
  .lang-trigger { padding-inline: 12px; }
  .lang-trigger .lang-chevron { display: none; }
  .lang-options { right: auto; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 400px) {
  .lang-trigger { width: 48px; padding: 0; }
  .lang-trigger .lang-code { display: none; }
  .nav-end .contact-chevron { display: none; }
}
@media (max-width: 360px) {
  .nav-end { gap: 6px; }
  .nav-end .contact-trigger { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-trigger, .lang-chevron { transition: none; }
  .lang-trigger:active { transform: none; }
}
