/* Hebrew shares RTL layout with Persian, with its own script font and spacing. */
:root[data-text-direction="rtl"] {
  --rtl-font: "Noto Sans Hebrew", Arial, sans-serif;
}
[data-text-direction="rtl"] :is(.word-text-block, .sentence-box-norwegian p, .japanese-sentence, .definition-text) {
  line-height: 1.8;
}
[lang="he"], [lang="he-IL"] { font-family: var(--rtl-font); }

/* Inline Hebrew mixed into English keeps English punctuation in its own run. */
[data-text-direction="rtl"] :is(.story-title, .sticky-title-japanese, .japanese-title, .game-word, .word-text-block, .game-typed-answer-input) { font-family: var(--rtl-font); }
