/* P2-04: Thaana's compact glyph metrics need one larger type step and more
   leading than Latin UI. This file is served as authored so the browser's
   semantic :dir() matching remains intact. The app CSS compiler otherwise
   lowers :dir(rtl) to :lang(dv), which would enlarge the English shell because
   the document language is Dhivehi even while its explicit direction is LTR.

   :dir() also resolves dir="auto" from the actual text, so mixed English and
   Dhivehi content can share a screen without remapping the English element.
   .thaana covers the older explicit font hook where a semantic dir attribute
   is absent; it is never applied to English UI.
   Selector names and hierarchy stay unchanged; only each RTL rung's value
   changes. The :root-qualified selector wins over the base :root tokens when
   a future whole-document RTL mode is enabled. */
:root:dir(rtl),
:dir(rtl),
.thaana {
  --fs-1: 13px;
  --fs-2: 15px;
  --fs-3: 17px;
  --fs-4: 20px;
  --fs-5: 25px;
  --fs-6: 31px;
  --fs-7: 40px;
  --fs-display: clamp(34px, 4vw, 46px);

  --lh-flat: 1.5;
  --lh-display: 1.5;
  --lh-head: 1.55;
  --lh-body: 1.75;
  --lh-relaxed: 1.9;

  font-family: var(--f-thaana);
  letter-spacing: 0 !important;
  text-transform: none !important;
}
