/* 日本語 / English switch (added to every page by tools/i18n.js and gen_site.py), in the footer.
   build.js pages (body[data-site]): at the right end of the copyright row (.ftr__bot).
   BYU留学サポート pages: centred above the operator line. */
.lang-sw{display:flex;align-items:center;gap:4px;font-size:13px;line-height:1.4}
.lang-sw > *{padding:5px 9px!important;border-radius:4px;white-space:nowrap;min-height:0!important}
.lang-sw > span[aria-current]{color:#F3EFE7;font-weight:700;background:rgba(243,239,231,.12)}
.lang-sw a{text-decoration:none;color:inherit}
.lang-sw a:hover{text-decoration:underline}
body:not([data-site]) .ftr .lang-sw{justify-content:center;margin-top:18px}
/* pages with no footer (watch/) */
body > .lang-sw{position:fixed;top:10px;right:12px;z-index:100;background:rgba(31,47,66,.92);padding:4px 6px;border-radius:6px}
body > .lang-sw a{color:#F3EFE7}

/* English pages: labels are longer than in Japanese */
html[lang="en"] .facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}

/* English: a heading split into .nw halves may break between them (the space sits inside the first half) */
html[lang="en"] .nw{display:inline-block}
html[lang="en"] .nw:has(+ .nw){margin-right:.25em}  /* inline-block drops the trailing space, so put it back as a gap (invisible at a line end) */
