
/* ===== Chat header: who gives way first, whatever the window size =====
   1. the channel name never shrinks before anything else (it is what the person came to read)
   2. the topic gives way next, 3. then the search box shrinks toward a floor. The older rule did this only between 861 and 1180 px of WINDOW width;
   but the header lives in the chat column, so with the member list open the Crystal header cut "updates" to "upd…" at 1440 px while the topic kept its room. */
@media (min-width: 861px) {
  html:root .main-header #chat-title-heading { flex: 0 0 auto; max-width: 55%; min-width: 0; }
  html:root .main-header #chat-topic-display { flex: 0 1 auto; min-width: 0; }
  html:root .main-header #chat-search-input { min-width: 96px; }
}
/* news posts (embed cards): each card takes its direction from its own first letter. An Arabic post inside an English layout (or the other way round)
   showed its bullets and line starts on the wrong side. */
.gx-emb .t, .gx-emb .d, .gx-emb .ft { unicode-bidi: plaintext; text-align: start; }
.gx-emb .gx-chan { unicode-bidi: plaintext; }   /* "#open-a-ticket" inside a right-to-left layout showed its # at the wrong end */
/* Arabic (right-to-left) layout, Classic looks: the hover toolbar kept its LTR "right: 16px" next to the RTL "left: 16px", so it stretched into a bar
   as wide as the message row and covered the text. It is anchored to the start edge only. */
@media (min-width: 861px) { html:root[dir="rtl"].ui-classic .msg-tools { right: auto; left: var(--sp-4); } }
