/* Deep Roots — languages: switcher + script fallbacks (CJK, Cyrillic). */
:root{--cjk-sc:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC","Source Han Sans SC";--cjk-jp:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic","Meiryo","Noto Sans CJK JP","Noto Sans JP";--cjk-kr:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans CJK KR","Noto Sans KR","Nanum Gothic";--cyr:"Helvetica Neue","Segoe UI",Roboto,"Noto Sans",Arial}
/* Latin brand fonts first (they carry the Latin words and numbers), then a script font for the glyphs they lack. */
html[lang="zh-Hans"] body,html[lang="zh-Hans"] input,html[lang="zh-Hans"] select,html[lang="zh-Hans"] textarea,html[lang="zh-Hans"] button{font-family:Metropolis,var(--cjk-sc),sans-serif}
html[lang="ja"] body,html[lang="ja"] input,html[lang="ja"] select,html[lang="ja"] textarea,html[lang="ja"] button{font-family:Metropolis,var(--cjk-jp),sans-serif}
html[lang="ko"] body,html[lang="ko"] input,html[lang="ko"] select,html[lang="ko"] textarea,html[lang="ko"] button{font-family:Metropolis,var(--cjk-kr),sans-serif}
html[lang="ru"] body,html[lang="ru"] input,html[lang="ru"] select,html[lang="ru"] textarea,html[lang="ru"] button{font-family:Metropolis,var(--cyr),sans-serif}
html[lang="zh-Hans"] :is(h1,h2,h3,h4,.h2,.eyebrow,.nav nav a,.btn,.tag,.menu-btn){font-family:Biko,var(--cjk-sc),sans-serif}
html[lang="ja"] :is(h1,h2,h3,h4,.h2,.eyebrow,.nav nav a,.btn,.tag,.menu-btn){font-family:Biko,var(--cjk-jp),sans-serif}
html[lang="ko"] :is(h1,h2,h3,h4,.h2,.eyebrow,.nav nav a,.btn,.tag,.menu-btn){font-family:Biko,var(--cjk-kr),sans-serif}
html[lang="ru"] :is(h1,h2,h3,h4,.h2,.eyebrow,.nav nav a,.btn,.tag,.menu-btn){font-family:Biko,var(--cyr),sans-serif}
/* CJK: no faux-italic/script styling, comfortable line height, no mid-word breaks for Korean */
html:is([lang="zh-Hans"],[lang="ja"],[lang="ko"]) :is(h1,h2,h3,.h2){letter-spacing:0;line-height:1.25}
html:is([lang="zh-Hans"],[lang="ja"],[lang="ko"]) body{line-height:1.75}
html[lang="ko"] body{word-break:keep-all;overflow-wrap:anywhere}
html:is([lang="zh-Hans"],[lang="ja"]) body{line-break:strict;overflow-wrap:anywhere}
html:is([lang="zh-Hans"],[lang="ja"],[lang="ko"]) .script{font-family:Sunydale,var(--cjk-sc),cursive}
/* Long German/Russian/French words: hyphenate instead of overflowing */
html:is([lang="de"],[lang="ru"],[lang="fr"]) :is(h1,h2,h3,h4,.h2,p,li,a,button,label,summary,td,th,dt,dd,span){hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
html:is([lang="de"],[lang="ru"],[lang="fr"],[lang="id"]) h1{overflow-wrap:anywhere}
/* ---------- switcher ---------- */
.lang-sw{position:relative;margin-left:14px;font-family:Biko,var(--cjk-sc),sans-serif;flex:0 0 auto}
.lang-sw>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:999px;cursor:pointer;font-size:12px;letter-spacing:.08em;color:var(--ink,#00474f);box-shadow:inset 0 0 0 1.5px rgba(0,71,79,.25);background:transparent;transition:background .2s,box-shadow .2s;user-select:none}
.lang-sw>summary::-webkit-details-marker{display:none}
.lang-sw>summary:hover,.lang-sw[open]>summary{background:rgba(124,220,190,.18);box-shadow:inset 0 0 0 1.5px var(--mint,#7cdcbe)}
.lang-sw>summary:focus-visible{outline:2px solid var(--mint,#7cdcbe);outline-offset:2px}
.lang-sw .lang-ico{width:18px;height:18px;flex:0 0 18px}
.lang-sw .lang-cur{font-weight:600;text-transform:uppercase}
.lang-sw .lang-car{width:10px;height:10px;transition:transform .2s}
.lang-sw[open] .lang-car{transform:rotate(180deg)}
.lang-sw ul{position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:220px;margin:0;padding:8px;list-style:none;background:#fff;border-radius:16px;box-shadow:0 18px 40px rgba(0,50,56,.18),0 0 0 1px rgba(0,71,79,.08)}
.lang-sw li a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 14px;border-radius:10px;font-family:Metropolis,var(--cjk-sc),var(--cjk-jp),var(--cjk-kr),sans-serif;font-size:15px;letter-spacing:0;color:var(--ink,#00474f);text-decoration:none;white-space:nowrap}
.lang-sw li a small{font-size:11px;letter-spacing:.08em;opacity:.55;text-transform:uppercase}
.lang-sw li a:hover,.lang-sw li a:focus-visible{background:rgba(124,220,190,.2);outline:none}
.lang-sw li a[aria-current="true"]{background:var(--ink,#00474f);color:#fff}
.lang-sw li a[aria-current="true"] small{opacity:.8}
@media(max-width:960px){
  .lang-sw{margin-left:auto;order:2}
  .nav .menu-btn{margin-left:8px!important;order:3}
  .lang-sw>summary{padding:0 12px}
  .lang-sw ul{right:-8px}
}
@media(max-width:380px){.lang-sw .lang-cur{display:none}}
/* neutralise the site's FAQ <details>/<summary> styling for the switcher */
.nav details.lang-sw{border:0;background:none;padding:0;margin-top:0;margin-bottom:0;border-radius:0;box-shadow:none}
.nav details.lang-sw>summary{position:relative;font-size:12px;min-height:44px;padding:0 14px;line-height:1}
.nav details.lang-sw>summary::after,.nav details.lang-sw[open]>summary::after{content:none;display:none}
/* Longer words (de/fr/ru) and denser scripts (zh/ja/ko): slightly smaller display headings */
html:is([lang="de"],[lang="fr"],[lang="ru"],[lang="id"]) .hero-copy h1{font-size:clamp(40px,5.8vw,86px)}
html:is([lang="de"],[lang="fr"],[lang="ru"],[lang="id"]) .hero.page .hero-copy h1{font-size:clamp(38px,5.2vw,78px)}
html:is([lang="de"],[lang="fr"],[lang="ru"],[lang="id"]) :is(.split-hero h1,.contact-top h1,.intro-top h1){font-size:clamp(38px,5vw,76px)}
html:is([lang="zh-Hans"],[lang="ja"],[lang="ko"]) .hero-copy h1{font-size:clamp(36px,5.2vw,76px);line-height:1.15;letter-spacing:0}
html:is([lang="zh-Hans"],[lang="ja"],[lang="ko"]) .hero.page .hero-copy h1{font-size:clamp(34px,4.8vw,70px)}
html:is([lang="zh-Hans"],[lang="ja"],[lang="ko"]) :is(.split-hero h1,.contact-top h1,.intro-top h1){font-size:clamp(34px,4.6vw,68px);line-height:1.15;letter-spacing:0}
@media(max-width:520px){html:is([lang="de"],[lang="fr"],[lang="ru"],[lang="id"]) :is(h1,h2){overflow-wrap:anywhere}}
