/* FOB Gifts – 中文 / EN switch + Chinese typography. Bilingual batch 1 (2026-11-10). Loaded only when Polylang is active. */
.fob-lang{display:inline-flex;align-items:center;gap:2px;border:1px solid var(--line,#E6E6E2);border-radius:999px;padding:2px;background:#fff;font-size:13px;line-height:1;white-space:nowrap;flex:0 0 auto}
.fob-lang a{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:30px;padding:0 10px;border-radius:999px;color:var(--ink,#1A1A1A);text-decoration:none;font-weight:600}
.fob-lang a.is-on{background:var(--ink,#1A1A1A);color:#fff}
.fob-lang a:not(.is-on):hover{background:var(--bg,#F7F7F5)}
.fob-lang a:focus-visible{outline:2px solid #3D7EFF;outline-offset:2px}
.fob-lang span{display:none}
/* Desktop: switch sits at the far right of the header, after the nav (Get a Quote). */
.fob-header-in>.fob-nav{order:5}
.fob-lang--header{order:6;margin-left:4px}
@media(min-width:901px){
 .fob-header-in{flex-wrap:nowrap!important;gap:12px 18px}
 html[lang="zh-CN"] .fob-nav{gap:14px}
}
@media(min-width:901px) and (max-width:1279px){.fob-nav{gap:10px!important;font-size:14px}.fob-nav a,.fob-nav button{white-space:nowrap}.fob-nav a.fob-btn{padding-left:12px;padding-right:12px}.fob-header-in{padding-left:16px!important;padding-right:16px!important}.fob-logo img{max-width:170px;height:auto}}
@media(min-width:901px) and (max-width:1100px){html[lang="zh-CN"] .fob-nav{gap:7px!important;font-size:13.5px}html[lang="zh-CN"] .fob-header-in{gap:10px!important}}
/* Mobile: switch stays visible in the top bar, left of “Get a Quote” + menu button (not hidden in the menu). */
@media(max-width:900px){
 .fob-lang--header{order:0;margin-left:auto}
 .fob-header-in>.fob-nav{order:0}
 .fob-lang a{min-width:36px;min-height:36px;padding:0 8px}
}
@media(max-width:380px){.fob-lang a{min-width:32px;padding:0 6px;font-size:12px}}
/* Splash (front page, no header). */
.fob-lang--splash{position:fixed;top:calc(14px + env(safe-area-inset-top,0px));left:16px;z-index:50;background:rgba(255,255,255,.92);border-color:rgba(255,255,255,.6);box-shadow:0 4px 14px rgba(0,0,0,.25)}
.fob-staging~.fob-lang--splash{top:calc(36px + env(safe-area-inset-top,0px))}
/* Chinese typography. */
html[lang="zh-CN"] body,html[lang="zh-CN"] button,html[lang="zh-CN"] input,html[lang="zh-CN"] select,html[lang="zh-CN"] textarea{font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC","Noto Sans CJK SC","Hiragino Sans GB","Source Han Sans SC","Helvetica Neue",Arial,sans-serif}
html[lang="zh-CN"] body{line-height:1.7;letter-spacing:.01em}
html[lang="zh-CN"] h1,html[lang="zh-CN"] h2,html[lang="zh-CN"] h3{letter-spacing:0!important;line-height:1.3;text-wrap:balance}
html[lang="zh-CN"] .fob-splash-label,html[lang="zh-CN"] .fob-splash-kicker{letter-spacing:.08em;text-transform:none}
/* Splash already shows Chinese sub-titles next to the English ones; on /zh/ hide the duplicates. */
html[lang="zh-CN"] .fob-splash-card h1>span,html[lang="zh-CN"] .fob-splash-card h2>span,html[lang="zh-CN"] .fob-splash-mats{display:none}
