.header-actions { display:flex; align-items:center; justify-self:end; gap:14px; }
.language-menu { position:relative; color:var(--text); font-size:.875rem; }
.language-menu summary { display:flex; gap:6px; align-items:center; min-height:42px; padding:4px 6px; white-space:nowrap; cursor:pointer; list-style:none; }
.language-menu summary::-webkit-details-marker { display:none; }
.language-menu summary::after { content:""; width:5px; height:5px; border:solid currentColor; border-width:0 1px 1px 0; transform:rotate(45deg); margin:0 2px 3px 0; }
.language-menu[open] summary { color:var(--accent); }
.language-menu svg { width:17px; height:17px; flex:none; }
.language-list { position:absolute; z-index:8; right:0; top:100%; min-width:192px; width:max-content; max-width:calc(100vw - 30px); max-height:min(70vh,550px); overflow:auto; padding:6px; border:1px solid #45424a; border-radius:9px; background:#1c1d23; box-shadow:0 14px 32px #07080b99; }
.language-list a { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:35px; border-radius:4px; padding:6px 11px; }
.language-list a:hover,.language-list a:focus-visible { background:#333036; color:white; outline-offset:-2px; }
.language-list [aria-current] { color:var(--accent); }
.language-list [aria-current]::after { content:"✓"; }
.language-list .auto-language { border-top:1px solid #45424a; border-radius:0; color:#c5c1c4; margin-top:4px; padding-top:10px; }
#hero-title em { white-space:normal; }
html:not(:lang(zh)):not(:lang(ko)):not(:lang(ja)) #hero-title { font-size:clamp(3.25rem,5vw,5.35rem); line-height:1.07; letter-spacing:-.055em; }
html:not(:lang(zh)) .hero-copy { max-width:33em; }
h2 { text-wrap:balance; }
:lang(ko) h1,:lang(ko) h2 { word-break:keep-all; }
@media(max-width:1030px) { .site-nav { display:none; } .header-inner { grid-template-columns:1fr auto; } }
@media(max-width:680px) {
  .header-actions { gap:9px; } .download-meta { white-space:normal; }
  .language-list a { min-height:41px; }
  html:not(:lang(zh)):not(:lang(ko)):not(:lang(ja)) #hero-title { font-size:clamp(2.35rem,8.6vw,3.85rem); }
  .hero .hero-content { max-width:100%; }
}
@media(max-width:520px) {
  .header-actions .button-small { width:37px; min-height:37px; gap:0; padding:0; }
  .header-actions .download-word { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .hero .button { white-space:normal; text-align:center; }
  .language-menu summary { font-size:.8rem; }
}
@media(max-width:360px) { .header-inner .brand small { display:none; } .header-inner { gap:6px; } .header-actions { gap:4px; } }
