/* Language switcher. The build adds it (and this file, as
   /assets/css/language-switcher.css) only when the site is built in more
   than one language. Logical properties so it mirrors in right-to-left. */
.lang-switch{position:relative;flex:0 0 auto;color:inherit}
.lang-switch>summary{display:inline-flex;align-items:center;gap:6px;min-block-size:34px;padding-block:6px;padding-inline:12px;border:1px solid currentColor;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.06em;line-height:1;color:inherit;cursor:pointer;list-style:none;opacity:.9}
.lang-switch>summary::-webkit-details-marker{display:none}
.lang-switch>summary:hover,.lang-switch[open]>summary{opacity:1}
.lang-switch>summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.lang-switch-label{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.lang-switch-menu{position:absolute;z-index:300;inset-block-start:calc(100% + 8px);inset-inline-end:0;min-inline-size:190px;max-block-size:70vh;overflow-y:auto;margin:0;padding-block:6px;padding-inline:0;list-style:none;background:#fff;color:#11254b;border:1px solid #edf0f4;border-radius:14px;box-shadow:0 18px 40px rgba(8,31,66,.18);text-align:start}
.lang-switch-menu a{display:block;padding-block:9px;padding-inline:16px;color:inherit;font-size:14px;font-weight:600;text-decoration:none}
.lang-switch-menu a:hover,.lang-switch-menu a:focus-visible{background:#eef3f8;outline:none}
.lang-switch-menu a[aria-current]{font-weight:800}

/* Mobile header: keep the compact locale chip when CTAs collapse. */
@media(max-width:1020px){
  .nav-container>.lang-switch{margin-inline-start:auto}
  /* Fallback when the chip is still nested inside .nav-cta */
  .nav-cta:has(>.lang-switch){display:flex;align-items:center;margin-inline-start:auto}
  .nav-cta:has(>.lang-switch)>:not(.lang-switch){display:none}
}
@media(max-width:770px){
  .header-shell>.lang-switch{margin-inline-start:auto}
  .header-shell:has(>.lang-switch)>.menu-toggle{margin-inline-start:0}
  .header-actions:has(>.lang-switch){display:flex;align-items:center;gap:10px;margin-inline-start:auto}
  .header-actions:has(>.lang-switch)>:not(.lang-switch){display:none}
}
@media(max-width:480px){
  .header-actions:has(>.lang-switch){display:flex;align-items:center;gap:10px;margin-inline-start:auto}
  .header-actions:has(>.lang-switch)>:not(.lang-switch){display:none}
  .lang-switch>summary{min-block-size:32px;padding-inline:10px;font-size:11px}
}
