/* Shared by every page; injected by tools/i18n.py. */

/* Cyrillic for the Russian and Ukrainian pages: subsets of tools/fonts/Nunito-*.ttf
   (SIL OFL, see assets/nunito-OFL.txt). Browsers only download them for pages
   that contain Cyrillic characters. */
@font-face { font-family: Nunito; src: url('/assets/nunito-cyrillic-400.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Nunito; src: url('/assets/nunito-cyrillic-700.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Japanese: Nunito has no Japanese glyphs; use the system's Japanese UI font. */
:lang(ja) body { font-family: Nunito, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; }
/* Japanese has no spaces: break headings and labels between phrases, not inside words (Chromium; others ignore it). */
:lang(ja) :is(h1, h2, h3, h4, th, summary, button, .pill) { word-break: auto-phrase; line-break: strict; }

/* Language switcher in the footer. */
.language-switcher { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 0 16px; order: -1; font-size: 14px; }
.language-switcher a { display: inline-flex; align-items: center; min-height: 36px; color: inherit; text-decoration: none; }
.language-switcher a:hover, .language-switcher a:focus-visible { text-decoration: underline; }
.language-switcher a[aria-current] { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
