/* Translations (src/ui/i18n.js, src/locales/) and the label fitting of src/ui/fit.js.
   Rule: a text never leaves its plate. Labels on buttons, plates and tabs stay on ONE line and are shrunk by fit.js
   (never the button: it keeps its height). Only sentences on a panel (rules, notices) wrap. */

/* a pill's width never comes from its label: the label fills the glass and fit.js shrinks a longer language */
.pill > span,
.btn-gold > span {
  max-width: 100%;
}

/* Japanese, Korean and Chinese: their own system fonts, a touch heavier, no letter spacing */
:lang(ja) body,
:lang(ko) body,
:lang(zh) body,
:lang(ja) .pill,
:lang(ko) .pill,
:lang(zh) .pill {
  letter-spacing: 0;
}
:lang(ja) body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', system-ui, sans-serif;
}
:lang(ko) body {
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}
:lang(zh) body {
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

/* the saloon's serif is wide: the other languages' longer words on the small buttons and the tabs use the narrower sans */
:root:not(:lang(en)) .actions .pill,
:root:not(:lang(en)) .tabs .pill,
:root:not(:lang(en)) .bs-note {
  font-family:
    'Trebuchet MS',
    'Segoe UI',
    system-ui,
    -apple-system,
    Roboto,
    sans-serif;
}

/* End of assets/ui/i18n.css */
