/* 多言語（lib/i18n-pages.mjs が各ページの head に足す）: 言語の切り替え・機械翻訳の注記・用語の出典 */
.langsw { position: relative; display: inline-block; }
.langsw > summary { list-style: none; cursor: pointer; padding: .25rem .6rem; border: 1px solid currentColor; border-radius: 6px; opacity: .85; white-space: nowrap; font-size: .9em; }
.langsw > summary::-webkit-details-marker { display: none; }
.langsw[open] > summary { opacity: 1; }
.langsw ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; margin: 0; padding: .3rem 0; list-style: none; min-width: 11rem; max-height: 70vh; overflow: auto;
  background: var(--panel, #1f2126); border: 1px solid var(--line, #3a3d44); border-radius: 8px; box-shadow: 0 8px 24px #0006; }
.langsw li a { display: block; padding: .35rem .9rem; white-space: nowrap; text-decoration: none; }
.langsw li a[aria-current] { font-weight: 700; }
.langsw li a:hover { background: var(--hover, #ffffff12); }
.mtnote { margin: .6rem 0; padding: .45rem .7rem; font-size: .85em; opacity: .85; border-left: 3px solid var(--accent, #c9a227); background: var(--panel, #ffffff08); }
.mtnote .badge { margin-right: .3rem; }
.mtnote.l4en { margin-top: 0; }
.i18n-terms { margin-top: 1rem; font-size: .85em; opacity: .9; }
.i18n-terms h4 { margin: 0 0 .3rem; }
.i18n-terms ul { margin: 0; padding-left: 1.2rem; }
:lang(zh-Hans) body, html:lang(zh-Hans) { font-family: system-ui, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html:lang(zh-Hant) { font-family: system-ui, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
html:lang(ko) { font-family: system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; word-break: keep-all; }
/* 動物カードの棒グラフの見出し: ラテン文字・キリル文字の言語は長いので幅を広げて折り返す */
html:not(:lang(ja)):not(:lang(zh-Hans)):not(:lang(zh-Hant)):not(:lang(ko)) .sbar { grid-template-columns: 100px minmax(0, 1fr) 46px; }
html:not(:lang(ja)) .sbar .sl { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; font-size: 11px; overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto; }
