/* AURYVETH first-party language switcher.
   Kept separate from the main visual stylesheet so localization remains an
   isolated presentation concern and cannot redefine the existing design. */

.language-switcher{
  flex:0 0 auto;
  min-width:76px;
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px 11px;
  border:1px solid rgba(117,238,243,.22);
  border-radius:999px;
  background:rgba(3,18,28,.36);
  color:#dffcff;
  font:inherit;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  transition:border-color .2s ease,background .2s ease,transform .2s ease;
}
.language-switcher:hover,
.language-switcher:focus-visible{
  border-color:rgba(117,238,243,.55);
  background:rgba(18,74,83,.46);
}
.language-switcher:active{transform:translateY(1px)}
.language-switcher:focus-visible{
  outline:2px solid rgba(117,238,243,.75);
  outline-offset:3px;
}
.language-switcher [data-language-current]{color:#7df2f7}
.language-switcher [aria-hidden="true"]{color:#7898a6;font-weight:500}
html[data-language="zh-CN"] .language-switcher{
  letter-spacing:.02em;
}

/* Chinese copy is often denser vertically than English copy. Keep the
   existing layout while giving Han text comfortable line rhythm. */
html[data-language="zh-CN"] body{
  font-family:Inter,"Noto Sans SC","Microsoft YaHei","PingFang SC","Hiragino Sans GB",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
html[data-language="zh-CN"] p,
html[data-language="zh-CN"] li,
html[data-language="zh-CN"] .lead{
  line-height:1.72;
}
html[data-language="zh-CN"] .eyebrow,
html[data-language="zh-CN"] .journey-chapter-rail span,
html[data-language="zh-CN"] .journey-stage-note small{
  letter-spacing:.055em;
}

@media(max-width:1040px){
  .language-switcher{
    min-width:78px;
    padding-inline:9px;
  }
}
@media(max-width:820px){
  .language-switcher{
    order:3;
    min-width:76px;
    min-height:44px;
    margin-left:auto;
    padding:9px 10px;
    font-size:11px;
  }
  .header-inner .menu-button{order:4;margin-left:0}
}
@media(max-width:430px){
  .language-switcher{
    min-width:70px;
    gap:4px;
    padding-inline:8px;
    font-size:10px;
  }
}
@media(prefers-reduced-motion:reduce){
  .language-switcher{transition:none}
}

.error-language-switcher{margin:24px auto 0}

/* CSS-generated copy is not represented by DOM text nodes, so it needs
   explicit language-specific content overrides. */
html[data-language="zh-CN"] .proof-panel::after{
  content:"AURYVETH / 内部验证场";
}
html[data-language="zh-CN"] .founder-panel::after{
  content:"创始人 / AURYVETH";
}
html[data-language="zh-CN"] .hero-copy::after{
  content:"AURYVETH / 构建 · 学习 · 进化";
}
