/* The team's additions to the chat's look; brand.mjs puts this file beside the program's own and links it in. */

/* Persian letters: Inter, the chat's font, has none, so the browser took whatever it found and some letters came out
   unjoined. Estedad, Bespar's own font (fonts/, SIL Open Font License), gives them under Inter's name: every place
   that asks for Inter gets Estedad for Persian and Arabic letters, and Inter for the rest. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/estedad-arabic-e0efecd488.woff2) format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* The message box is always left to right in the program, whatever the chat's direction: Persian sat on the left, a
   final «؟» at the wrong end. Here each line takes the direction of its first letter (Persian right to left, English
   left to right), and the empty box starts on the right. */
#prompt-textarea {
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: start;
}

/* The welcome line comes in letter by letter, each letter in a box of its own: Persian letters cannot join across
   boxes. Its words and letters stay plain text here, so they join, and the line shows at once. */
p.split-parent > span:not(.sr-only),
p.split-parent > span > span {
  display: inline !important;
  transform: none !important;
  opacity: 1 !important;
}
