/* =====================================================================
   EDS Translate – language switcher
   Desktop / shortcode: quiet "EN" button + small menu of native names.
   Mobile menu (EDS Core header): one row EN · SQ · DE.
   Inside the EDS header it picks up the header tokens (--ink, --bg, --line,
   --surface, --muted, --ease); elsewhere the fallbacks apply.
   ":not(#eds)" = ID-level specificity, beats the header reset, Hello and the kit.
   ===================================================================== */

.eds-lang:not(#eds){position:relative;display:inline-flex;flex:none;align-items:center}
.eds-lang:not(#eds) .eds-lang__btn{display:inline-flex;align-items:center;gap:6px;margin:0;padding:10px 0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;font-size:var(--e-global-typography-secondary-font-size,.9375rem);line-height:1.2;letter-spacing:normal;text-transform:none;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.eds-lang:not(#eds) .eds-lang__btn:is(:hover,:focus,:active){background:none;color:inherit;box-shadow:none}
.eds-lang:not(#eds) .eds-lang__btn:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:6px}
.eds-lang:not(#eds) .eds-lang__chev{margin-left:-1px;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s var(--ease,cubic-bezier(.2,.7,.2,1))}
.eds-lang:not(#eds).is-open .eds-lang__chev{transform:rotate(180deg)}
/* Centre the caps of "EN" on the icons (the font's line box sits them ~1px high). */
.eds-lang:not(#eds) .eds-lang__btn>span{text-box:trim-both cap alphabetic}
@supports not (text-box:trim-both cap alphabetic){.eds-lang:not(#eds) .eds-lang__btn>span{position:relative;top:1px}}
.eds-lang:not(#eds) .eds-lang__globe{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round}

.eds-lang:not(#eds) .eds-lang__menu{position:absolute;right:-22px;top:calc(100% + 12px);z-index:60;min-width:176px;margin:0;padding:8px;list-style:none;background:var(--bg,#fff);border:1px solid var(--line,#dedede);border-radius:20px;box-shadow:0 30px 60px -20px rgba(0,0,0,.22);color:var(--ink,#111);
	opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .2s ease,transform .3s var(--ease,cubic-bezier(.2,.7,.2,1)),visibility 0s linear .3s}
.eds-lang:not(#eds).is-open .eds-lang__menu{opacity:1;visibility:visible;transform:none;transition:opacity .2s ease,transform .3s var(--ease,cubic-bezier(.2,.7,.2,1)),visibility 0s}
.eds-lang:not(#eds) .eds-lang__menu li{margin:0;padding:0;list-style:none}
.eds-lang:not(#eds) .eds-lang__link{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:10px 14px;border-radius:12px;background:none;color:inherit;font:inherit;font-size:.9375rem;line-height:1.3;text-decoration:none;transition:background-color .2s ease}
.eds-lang:not(#eds) .eds-lang__link:is(:hover,:focus-visible){background:var(--surface,#f5f5f5);color:inherit}
.eds-lang:not(#eds) .eds-lang__link:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
.eds-lang:not(#eds) .eds-lang__link[aria-current]{font-weight:700;background:var(--surface,#f5f5f5)}
.eds-lang:not(#eds) .eds-lang__code{font-size:.75rem;font-weight:400;letter-spacing:.1em;color:var(--muted,#737373)}

/* EDS header: the menu opens 22px below the bar, like the header dropdowns. */
.eds-hdr-root:not(#eds) .eds-lang .eds-lang__menu{top:calc(50% + var(--h,64px) / 2 + 22px)}
/* Tablet / phone: stays in the bar next to the menu button (and as a row inside the menu). */
@media (max-width:1024px){
	.eds-hdr-root:not(#eds) .eds-lang .eds-lang__btn{min-height:44px;padding:0 6px}
	.eds-hdr-root:not(#eds) .eds-lang .eds-lang__menu{right:-16px;top:calc(50% + var(--h,58px) / 2 + 14px)}
}

/* ---------- mobile menu row ---------- */
.eds-lang-row:not(#eds){display:flex;align-items:center;gap:14px;font-size:.875rem;font-weight:700;letter-spacing:.12em;line-height:1}
.eds-lang-row:not(#eds) .eds-lang-row__link{display:inline-block;margin:0;padding:8px 0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-decoration:none;opacity:.55;transition:opacity .2s}
.eds-lang-row:not(#eds) .eds-lang-row__link:is(:hover,:focus-visible){opacity:1;color:inherit}
.eds-lang-row:not(#eds) .eds-lang-row__link[aria-current]{opacity:1;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.eds-lang-row:not(#eds) .eds-lang-row__sep{opacity:.35}

@media (prefers-reduced-motion:reduce){
	.eds-lang:not(#eds) :is(.eds-lang__menu,.eds-lang__chev),.eds-lang:not(#eds).is-open .eds-lang__menu{transition:none}
}
