/* Language bar with English / Arabic menu; preserve shared Header geometry. */
html body .site-header .yz-language-bar{background:#0b352c;color:#f8f4eb;border-bottom:1px solid #b99a6055;direction:rtl}
html body .site-header .yz-language-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:44px;padding-block:0}
.yz-language-brand{font:400 12px/1.5 Manrope,Arial,sans-serif;letter-spacing:.035em;color:#d6dece;white-space:nowrap}
.yz-language-brand>span{color:#d0b37a;padding-inline:4px}
.yz-language-controls{display:flex;align-items:center;gap:9px;min-width:0;margin-right:auto}
.yz-language-label{display:flex;align-items:center;color:#d0b37a;flex:none}
.yz-language-label svg{display:block;width:18px;height:18px;stroke:currentColor;stroke-width:1.4}
html body .yz-language-name{display:flex;align-items:center;min-height:42px;padding:8px 6px 8px 2px;box-sizing:border-box;color:#f8f4eb;font:500 13px/1.4 Manrope,Arial,sans-serif;letter-spacing:0}
html body .site-header .yz-language-bar{position:relative;z-index:60;overflow:visible}
.yz-language-menu{position:relative}
html body .yz-language-current{display:flex;align-items:center;gap:4px;list-style:none;cursor:pointer;padding:0 0 0 4px;border-radius:4px;color:#f8f4eb;background:none;border:0;user-select:none}
.yz-language-current::-webkit-details-marker{display:none}
.yz-language-current::marker{content:""}
.yz-language-current:focus-visible{outline:2px solid #d0b37a;outline-offset:2px}
.yz-language-caret{width:12px;height:12px;stroke:#d0b37a;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.yz-language-menu[open] .yz-language-caret{transform:rotate(180deg)}
.yz-language-list{position:absolute;top:calc(100% + 2px);left:0;min-width:150px;margin:0;padding:6px;list-style:none;background:#fbf8f1;border:1px solid #d9cdb4;border-radius:8px;box-shadow:0 14px 34px rgba(3,30,24,.18);z-index:1000}
.yz-language-list li{margin:0;padding:0}
html body .yz-language-list a{display:block;white-space:nowrap;padding:9px 12px;border-radius:6px;color:#0b352c;font:500 14px/1.3 Manrope,Arial,sans-serif;letter-spacing:0;text-decoration:none;text-align:start}
html body .yz-language-list a[lang="ar"]{font-family:"SF Arabic","Segoe UI","Geeza Pro","Noto Sans Arabic",Tahoma,sans-serif;font-size:15px}
html body .yz-language-list a:hover,html body .yz-language-list a:focus-visible{background:#efe7d6;outline:none}
html body .yz-language-list a[aria-current="true"]{color:#9a7b3f;font-weight:600}
html body .site-header.yz-language-compact-nav .desktop-nav{display:none!important}
html body .site-header.yz-language-compact-nav .menu-button{display:inline-flex!important}
html body .site-header.yz-language-compact-nav .brand{margin-left:auto!important}
html body .mobile-menu{top:var(--yz-header-height,120px)!important;overflow-y:auto;direction:rtl}
html[data-yz-language="en"] body[data-page="home"] .yz-home-first-screen{height:calc(100dvh + var(--yz-language-bar-height,45px))!important;min-height:calc(100dvh + var(--yz-language-bar-height,45px))!important}
@media(max-width:600px){
 html body .site-header .yz-language-row{min-height:40px;gap:10px;width:calc(100% - 40px)}
 .yz-language-brand{font-size:10px;letter-spacing:0}.yz-language-brand>span{padding-inline:1px}
 html body .yz-language-name{min-height:40px;font-size:12px}
 .yz-language-controls{gap:5px}.yz-language-label svg{width:16px;height:16px}
 html body[data-page="home"] .header-contact-panel{top:calc(var(--yz-header-height,112px) + 4px)!important}
}
@media(max-width:360px){.yz-language-brand{max-width:140px;white-space:normal;line-height:1.4}}

/* Seven-language menu: Thai glyph metrics and short mobile viewports. */
html body .yz-language-list a[lang="th"]{font-family:"Leelawadee UI","Thonburi","Noto Sans Thai","Sukhumvit Set",Tahoma,sans-serif;line-height:1.6}
.yz-language-list{max-height:calc(100dvh - 80px);overflow-y:auto;max-width:calc(100vw - 24px);box-sizing:border-box}

/* Russian native menu label: avoid mixed Latin/Cyrillic glyph metrics. */
html body .yz-language-list a[lang="ru"]{font-family:Arial,"Segoe UI",sans-serif}

/* Local SVG flags from flag-icons v7.3.2 (MIT); en=GB and ar=SA approved by Human.
   Portuguese follows the existing pt_BR locale. Labels and switch routes are retained. */
html body .yz-language-name{gap:8px}
html body .yz-language-list a{display:flex;align-items:center;gap:8px}
html body .yz-language-name::before,html body .yz-language-list a::before{content:"";display:inline-block;flex:0 0 20px;width:20px;height:15px;background-repeat:no-repeat;background-position:center;background-size:contain;border-radius:1px;box-shadow:0 0 0 1px #ffffff24}
html body .yz-language-name[lang="en"]::before,html body .yz-language-list a[lang="en"]::before{background-image:url("/assets/flags/gb.svg")}
html body .yz-language-name[lang="id"]::before,html body .yz-language-list a[lang="id"]::before{background-image:url("/assets/flags/id.svg")}
html body .yz-language-name[lang="ms"]::before,html body .yz-language-list a[lang="ms"]::before{background-image:url("/assets/flags/my.svg")}
html body .yz-language-name[lang="es"]::before,html body .yz-language-list a[lang="es"]::before{background-image:url("/assets/flags/es.svg")}
html body .yz-language-name[lang="fr"]::before,html body .yz-language-list a[lang="fr"]::before{background-image:url("/assets/flags/fr.svg")}
html body .yz-language-name[lang="pt"]::before,html body .yz-language-list a[lang="pt"]::before{background-image:url("/assets/flags/br.svg")}
html body .yz-language-name[lang="vi"]::before,html body .yz-language-list a[lang="vi"]::before{background-image:url("/assets/flags/vn.svg")}
html body .yz-language-name[lang="ru"]::before,html body .yz-language-list a[lang="ru"]::before{background-image:url("/assets/flags/ru.svg")}
html body .yz-language-name[lang="th"]::before,html body .yz-language-list a[lang="th"]::before{background-image:url("/assets/flags/th.svg")}
html body .yz-language-name[lang="ar"]::before,html body .yz-language-list a[lang="ar"]::before{background-image:url("/assets/flags/sa.svg")}
