.language-selector { position: relative; z-index: 1003; flex: 0 0 auto; margin-inline-start: 24px; color: #fff; }
nav.language-selector { position: absolute; inset-inline-start: 110px; display: flex; gap: 12px; margin: 0; }
nav.language-selector a { color: #fff; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.language-selector summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 78px; min-height: 44px; padding: 8px; border: 1px solid rgba(255,255,255,.5); border-radius: 5px; cursor: pointer; font: 500 14px/1.4 var(--font-body); }
.language-selector summary::-webkit-details-marker { display: none; }
.language-selector summary:hover, .language-selector[open] summary { background: rgba(255,255,255,.12); }
.language-selector summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.language-globe { width: 23px; height: 23px; }
.language-chevron { width: 12px; height: 12px; }
.language-selector[open] .language-chevron { transform: rotate(180deg); }
.language-options { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 190px; padding: 6px; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.language-options a { display: block; padding: 12px 14px; font-size: 16px; line-height: 1.5; color: #012345; border-radius: 3px; white-space: nowrap; text-decoration: none; }
.language-options a:hover, .language-options a:focus-visible { background: #edf3fa; color: #012345; outline: 2px solid #4676ba; outline-offset: -2px; }
.language-options a[aria-current="page"] { font-weight: 700; background: #edf3fa; }
.region-attribution { display: inline-block; color: #fff; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 8px; }
html[lang="zh-Hant"] { line-break: strict; }
html[lang="zh-Hant"] body, html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3, html[lang="zh-Hant"] h4 { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
@media (max-width: 992px) { .language-selector { margin-inline-start: 16px; } nav.language-selector { inset-inline-start: 50%; transform: translateX(-50%); margin: 0; } }
@media (max-width: 768px) { .language-selector { margin-inline-start: 12px; } .language-selector summary { min-width: 72px; } }
