/* Keep the Chinese copy visible until the script chooses a language. */
html:not([data-support-language]) [data-support-lang]:not([data-support-lang="zh"]) { display:none !important; }
html[data-support-language="zh"] [data-support-lang]:not([data-support-lang="zh"]) { display:none !important; }
html[data-support-language="en"] [data-support-lang]:not([data-support-lang="en"]) { display:none !important; }
html[data-support-language="ja"] [data-support-lang]:not([data-support-lang="ja"]) { display:none !important; }
html[data-support-language="ko"] [data-support-lang]:not([data-support-lang="ko"]) { display:none !important; }
html[data-support-language="th"] [data-support-lang]:not([data-support-lang="th"]) { display:none !important; }
html[data-support-language="ar"] [data-support-lang]:not([data-support-lang="ar"]) { display:none !important; }
.support-navigation { display:flex; align-items:center; justify-content:flex-end; gap:24px; flex-wrap:wrap; }
.language-picker { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); white-space:nowrap; }
.language-picker select { min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--paper); font:inherit; cursor:pointer; }
.language-picker select:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.filing-links { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px 20px; margin-top:10px; }
.filing-links .icp-filing { margin-top:0; }
html[dir="rtl"] body { direction:rtl; text-align:start; }
html[dir="rtl"] .skip { left:auto; inset-inline-start:1rem; }
html[dir="rtl"] .support-navigation,
html[dir="rtl"] .support-navigation nav { justify-content:flex-start; }
html[dir="rtl"] .card .number { display:block; text-align:end; direction:ltr; unicode-bidi:isolate; }
html[dir="rtl"] ul, html[dir="rtl"] ol { padding-left:0; padding-inline-start:24px; list-style-position:outside; }
@media(max-width:760px) { .bar { align-items:flex-start; } .support-navigation { gap:12px; } .support-navigation nav { gap:12px; justify-content:flex-end; } .language-picker { flex-basis:100%; justify-content:flex-end; } html[dir="rtl"] .language-picker { justify-content:flex-start; } }
/* Landing page picker inherits the palette defined by site.css. */
body[data-locale-page="home"] .header { height:auto; min-height:90px; gap:16px; }
body[data-locale-page="home"] .header nav { flex-wrap:wrap; justify-content:flex-end; gap:8px 22px; }
body[data-locale-page="home"] .language-picker { color:inherit; }
body[data-locale-page="home"] .language-picker select { color:inherit; background:inherit; border-color:var(--line); }
body[data-locale-page="home"] .language-picker select:focus-visible { outline-color:var(--blue); }
html[data-support-language="en"] body[data-locale-page="home"] .header .brand-en { display:none; }
html[dir="rtl"] body[data-locale-page="home"] .header nav { justify-content:flex-start; }
html[dir="rtl"] body[data-locale-page="home"] .hero,
html[dir="rtl"] body[data-locale-page="home"] .reference-layout,
html[dir="rtl"] body[data-locale-page="home"] .details { direction:rtl; }
html[dir="rtl"] body[data-locale-page="home"] .hero-art { transform:scaleX(-1); }
html[dir="rtl"] body[data-locale-page="home"] .hero-art img,
html[dir="rtl"] body[data-locale-page="home"] .hero-art figcaption,
html[dir="rtl"] body[data-locale-page="home"] .hero-art .phone-caption,
html[dir="rtl"] body[data-locale-page="home"] .hero-art .phone-top,
html[dir="rtl"] body[data-locale-page="home"] .hero-art .phone-controls,
html[dir="rtl"] body[data-locale-page="home"] .hero-art .hero-label,
html[dir="rtl"] body[data-locale-page="home"] .hero-art .art-note { transform:scaleX(-1); }
html[dir="rtl"] body[data-locale-page="home"] .scene-grid figcaption,
html[dir="rtl"] body[data-locale-page="home"] .detail-list article,
html[dir="rtl"] body[data-locale-page="home"] .footer-top,
html[dir="rtl"] body[data-locale-page="home"] .footer nav { direction:rtl; }
html[dir="rtl"] body[data-locale-page="home"] .eyebrow,
html[dir="rtl"] body[data-locale-page="home"] .detail-number,
html[dir="rtl"] body[data-locale-page="home"] .tutorial-grid h3 span,
html[dir="rtl"] body[data-locale-page="home"] .scene-grid figcaption span:last-child { direction:ltr; unicode-bidi:isolate; }
html[dir="rtl"] body[data-locale-page="home"] .phone-top,
html[dir="rtl"] body[data-locale-page="home"] .phone-controls,
html[dir="rtl"] body[data-locale-page="home"] .store-link { direction:ltr; unicode-bidi:isolate; }
body[data-locale-page="privacy"] .toc { counter-reset:privacy-section; }
body[data-locale-page="privacy"] .toc a { counter-increment:privacy-section; }
body[data-locale-page="privacy"] .toc a::before { content:counter(privacy-section, decimal-leading-zero) " / "; display:inline-block; direction:ltr; unicode-bidi:isolate; }
body[data-locale-page="privacy"] .section-number { display:inline-block; direction:ltr; unicode-bidi:isolate; }
html[dir="rtl"] body[data-locale-page="privacy"] .layout { direction:rtl; }
html[dir="rtl"] body[data-locale-page="privacy"] .toc { text-align:start; }
html[dir="rtl"] body[data-locale-page="privacy"] .toc a::before { direction:ltr; unicode-bidi:isolate; }
html[dir="rtl"] body[data-locale-page="privacy"] .section-number { direction:ltr; unicode-bidi:isolate; }
@media(max-width:720px) {
  body[data-locale-page="home"] .header { align-items:flex-start; flex-direction:column; padding-block:14px; }
  body[data-locale-page="home"] .header nav { justify-content:flex-start; width:100%; }
  body[data-locale-page="home"] .header nav>a:first-child { display:inline; }
  body[data-locale-page="home"] .language-picker { flex-basis:auto; margin-inline-start:auto; }
  html[dir="rtl"] body[data-locale-page="home"] .language-picker { margin-inline-start:0; margin-inline-end:auto; }
  html[dir="rtl"] body[data-locale-page="home"] .hero-art { transform:scaleX(-1); }
}
