/* Language switching (see lang.js). th/zh are hidden source text; .lm is the main slot filled by lang.js; .lx hides the duplicate English line in English mode. */
body [lang=th]:not(a),body [lang=zh]:not(a),.lx{display:none!important}
.lm{display:block}
html[data-l=th] body{font-family:"Google Sans","Noto Sans Thai","Noto Sans JP",sans-serif;word-break:normal;line-break:auto}
html[data-l=zh] body{font-family:"Google Sans","Noto Sans SC","Noto Sans JP",sans-serif}
html[data-l=en] body{word-break:normal}
.lsw{position:relative;flex:none}
.lsb{display:flex;align-items:center;gap:4px;min-height:44px;padding:6px 12px;border:0;border-radius:999px;background:var(--green,#1f4d33);color:var(--cream,#efece3);font:700 14px "Google Sans",sans-serif;cursor:pointer}
.lsb .ms{font-family:"Material Symbols Rounded";font-weight:normal;font-style:normal;line-height:1;font-feature-settings:"liga";overflow:hidden;width:1em;font-size:20px}
.lsm{position:absolute;right:0;top:calc(100% + 6px);z-index:60;display:flex;flex-direction:column;min-width:140px;padding:6px;border-radius:18px;background:var(--green,#1f4d33);box-shadow:0 12px 30px rgba(0,0,0,.2)}
.lsm[hidden]{display:none}
.lsm a{display:block;padding:10px 14px;border-radius:12px;color:var(--cream,#efece3);text-decoration:none;font:700 16px "Google Sans","Noto Sans Thai","Noto Sans SC","Noto Sans JP",sans-serif}
.lsm a:hover,.lsm a[aria-current]{background:#c4202a}
.lfix{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);right:12px;z-index:60}
@media(max-width:600px){.lsb{padding:6px 9px;font-size:12px}.lsb .ms{font-size:18px}}
@media(max-width:380px){.lsc{display:none}}
