/* language switcher — shared between the home header and archive-page headers */
.lang-switch{position:relative;display:inline-flex}
.lang-switch-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer;transition:background-color .3s}
.lang-switch-toggle:hover{background:rgba(135,72,63,.14)}
.lang-switch-toggle svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lang-switch-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:40;min-width:152px;margin:0;padding:6px;list-style:none;background:var(--paper);color:var(--ink);border:1px solid rgba(34,37,33,.18);box-shadow:0 18px 40px rgba(12,16,13,.28);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .2s,transform .2s,visibility .2s}
.lang-switch.open .lang-switch-menu{opacity:1;visibility:visible;transform:none}
.lang-switch-menu li+li{margin-top:2px}
.lang-switch-menu button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 11px;border:0;background:none;color:inherit;font-size:13px;letter-spacing:.03em;text-align:left;cursor:pointer;transition:background-color .2s}
.lang-switch-menu button:hover{background:rgba(135,72,63,.12)}
.lang-switch-menu button[aria-current=true]{color:var(--rust)}
.lang-switch-menu button[aria-current=true]:after{content:"✓"}

@media(max-width:620px){
  .lang-switch-menu{right:auto;left:0}
}
