/* tools.syojin.com/<lang>/: on top of site.css + en/en.css. Same look (light, square, App Store parts round). */
body.i18n { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Hiragino Sans", Meiryo, sans-serif; }
body.i18n-zh-tw { font-family: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", sans-serif; }
body.i18n .t small { white-space: nowrap; }
/* right to left (Arabic, Urdu): mirror the rows, keep numbers and Japanese left to right */
[dir="rtl"] body.i18n .crumb, [dir="rtl"] body.i18n .lead { text-align: right; }
[dir="rtl"] .nx-go, [dir="rtl"] .st-get { margin-left: 0; margin-right: auto; }
[dir="rtl"] .t th, [dir="rtl"] .t td { text-align: right; }
[dir="rtl"] .t td.n, [dir="rtl"] .grid4 b, [dir="rtl"] [lang="ja"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .sc-l li, [dir="rtl"] .sc-s li { text-align: right; }
[dir="rtl"] ul, [dir="rtl"] ol { padding-left: 0; padding-right: 1.4em; }
[dir="rtl"] .syl, [dir="rtl"] .kana-big, [dir="rtl"] .ip-big { direction: ltr; }
/* Persian age page: birth date in the Iranian (Solar Hijri) calendar, above the Gregorian date */
.a-jal{flex-basis:100%;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:0}
.a-jal .f-l{flex-basis:100%;font-weight:600;font-size:.92rem}
.a-jal select{min-width:4.5em}
/* right-to-left pages: the keyboard picture is a US layout drawn left to right; scroll starts at Esc, not cut on the left */
[dir="rtl"] .kb-wrap{direction:ltr}
/* right-to-left pages: the Minecraft chart is drawn left to right (column 0 on the left); the size line "21 x 21: 56 …" is numbers first */
[dir="rtl"] .mc-cv{direction:ltr}
[dir="rtl"] #mc-big{direction:ltr;text-align:right;unicode-bidi:isolate}
/* a long option (4d6, reroll 1s, drop the lowest…) must not make a select wider than the phone; the box shrinks and the text is cut */
.i18n .tool .f{min-width:0;max-width:100%}
.i18n .tool select{max-width:100%}
