/* Three-language header selector — present on Japanese, English and Arabic pages */
.lang-switcher{position:relative;display:block;flex:0 0 auto;margin-inline-start:auto;z-index:250;isolation:isolate;font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;font-weight:600;line-height:1.4}
.lang-switcher>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;white-space:nowrap;min-height:39px;min-width:116px;padding:8px 12px;border-radius:30px;border:1px solid currentColor;background:rgba(255,255,255,.10);color:inherit;font-size:13px;user-select:none}
.lang-switcher>summary::-webkit-details-marker{display:none}
.lang-switcher>summary::marker{content:""}
.lang-switcher>summary:focus-visible,.lang-switcher .lang-options a:focus-visible{outline:3px solid #dfab54;outline-offset:3px}
.lang-switcher>summary:hover{background:rgba(165,128,74,.12)}
.lang-switcher .lang-arrow{font-size:11px;transition:transform .15s}
.lang-switcher[open] .lang-arrow{transform:rotate(180deg)}
.lang-switcher .lang-options{position:absolute;inset-inline-end:0;top:calc(100% + 9px);direction:ltr;min-width:165px;max-width:calc(100vw - 18px);padding:7px;border-radius:14px;background:#fffdf8;color:#193337;box-shadow:0 16px 42px rgba(13,32,34,.22);border:1px solid #e6ddce;z-index:300}
.lang-switcher .lang-options a{display:flex;align-items:center;gap:8px;min-height:39px;padding:9px 12px;border-radius:9px;text-decoration:none!important;font-size:14px;color:#193337!important;direction:ltr}
.lang-switcher .lang-options a[lang="ar"]{direction:rtl;justify-content:flex-end}
.lang-switcher .lang-options a:hover{background:#f2e8d8;color:#193337!important}
.lang-switcher .lang-options a[aria-current=page]{background:#ecf1ed;font-weight:800}
.lang-switcher .lang-options a[aria-current=page]::after{content:"✓";font-weight:900;color:#1e7f56;margin-inline-start:auto}
.site-header .nav-wrap>.lang-switcher,.header>.wrap>.lang-switcher{order:20;margin-inline-start:auto}
.site-header .nav-wrap>.lang-switcher{color:inherit}
@media(max-width:860px){.lang-switcher>summary{min-width:0;padding:8px 10px;font-size:12px;min-height:37px}.site-header .nav-wrap>.lang-switcher,.header>.wrap>.lang-switcher{order:20}.lang-switcher .lang-options{min-width:158px}}
@media(max-width:440px){.lang-switcher>summary{gap:4px;font-size:11px;padding:7px 9px}.lang-switcher>summary .lang-label{max-width:65px;overflow:hidden;text-overflow:ellipsis}.lang-switcher .lang-options{min-width:145px}.header>.wrap,.site-header .nav-wrap{gap:8px}}
