/* 一个共享导航间距owner；语言面板不继承主导航链接样式。 */
header > nav.primary-navigation { flex:1; min-width:0; }
header > nav.primary-navigation ul { justify-content:center; }
header .language-picker { position:relative; flex:none; margin:0; padding:0; border:0; background:transparent; }
.language-picker > summary { display:flex; align-items:center; gap:6px; min-height:44px; padding:8px; border-radius:var(--radius); list-style:none; cursor:pointer; font-size:14px; line-height:20px; font-weight:600; color:var(--text); }
.language-picker > summary::-webkit-details-marker { display:none; }
.language-picker > summary:hover,.language-picker[open] > summary { background:var(--ghost); }
.language-picker[open] .language-chevron { transform:rotate(180deg); }
header .language-picker > nav { position:absolute; inset-block-start:calc(100% + 8px); inset-inline-end:0; z-index:60; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; width:368px; max-height:min(480px,calc(100dvh - 112px)); overflow:auto; padding:12px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); box-shadow:0 8px 28px rgb(24 41 77 / 14%); }
header .language-picker nav :is(a,span) { min-width:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; height:auto; min-height:44px; padding:8px 12px; border:0; border-radius:4px; color:var(--text); font-size:14px; line-height:20px; font-weight:500; white-space:normal; }
header .language-picker nav a:hover { background:var(--ghost); border:0; }
header .language-picker nav a[aria-current=true] { background:var(--soft); font-weight:700; }
.language-picker small { font-size:11px; line-height:16px; color:var(--secondary); }
.language-picker :is(summary,a):focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
header.home-header { gap:20px; }
.home-header .brand { width:auto; margin-inline-end:0; }
.home-header > nav.primary-navigation { flex:1; }
.home-header > .button { width:auto; min-width:160px; }
.home-header > nav.primary-navigation ul { gap:20px; }
:is(a[href^="mailto:"],a[href^="tel:"]) { direction:ltr; unicode-bidi:isolate; }
html[dir=rtl] :is(h1,h2,h3,h4,p,li,label,th,td) { text-align:start; }
html[dir=rtl] :is(h1,h2,h3,h4),:is(:lang(zh-Hans),:lang(ja),:lang(ko),:lang(th),:lang(hi),:lang(bn)) :is(h1,h2,h3,h4) { letter-spacing:normal; }
html[dir=rtl] .language-chevron { direction:ltr; }
@media(max-width:1280px) {
  header,header.home-header { gap:12px; }
  header > nav.primary-navigation ul,.home-header > nav.primary-navigation ul { gap:4px; }
  header > nav.primary-navigation a { padding-inline:7px; }
  .home-header .brand { width:auto; }
  header > .button,.home-header > .button { width:auto; min-width:136px; padding-inline:16px; }
}
@media(prefers-reduced-motion:reduce) { .language-chevron { transition:none; } }

/* 首页使用 IP 定位数据，署名与语言列表一同提供。 */
header .language-picker nav a.language-data-credit { grid-column:1 / -1; min-height:36px; font-size:12px; line-height:18px; color:var(--secondary); }

/* 长译文可在导航自己的行内换行，不缩小字号也不挤压语言按钮。 */
header:has(> .language-picker) { height:auto; min-height:80px; padding-block:12px; }
header > nav.primary-navigation ul { flex-wrap:wrap; }
header > nav.primary-navigation { min-width:0; }
/* 连字文字不应用拉丁标题负字距；型号、尺寸和媒体时间线保持LTR。 */
:is(:lang(ta),:lang(te),:lang(ne),:lang(km),:lang(my),:lang(si),:lang(am)) :is(h1,h2,h3,h4) { letter-spacing:normal; }
:is(:lang(ar),:lang(ur),:lang(fa),:lang(hi),:lang(bn),:lang(ta),:lang(te),:lang(ne),:lang(km),:lang(my),:lang(si)) { font-feature-settings:normal; }
.pdp-metrics dd,[data-model-option],[data-current-model],.pdp-comparison [data-model-column] { direction:ltr; unicode-bidi:isolate; }
.ly-video { direction:ltr; }

html[dir=rtl] .pdp-metrics dd { text-align:right; }
