/* ============================================================================
   Devanagari corrections. Loaded on /hi only.

   The display type on this site is set for Latin capitals — the page headings
   run a line-height of 0.9 and negative tracking, which looks right for
   "TRADING RULES" and is broken for "ट्रेडिंग नियम". Devanagari carries marks
   above the headline stroke and conjuncts below the baseline, so two lines at
   0.9 collide: on /hi/trading-rules the ि of ट्रेडिंग overlapped the ो of और
   until this file existed.

   Only line-height and tracking are touched. Sizes, weights, colours and every
   other rule stay exactly as the design specifies, so the Hindi pages remain
   the same design rather than becoming a different one.

   1.38 is the smallest ratio that clears both the matras and the conjuncts at
   the largest size used (90px). Below about 1.3 the marks start to touch again.
   ========================================================================= */

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] .afxp-head__t1,
html[lang="hi"] .afxp-head__t2,
html[lang="hi"] .afxpz__h2,
html[lang="hi"] .afxck__title,
html[lang="hi"] .afxck-modal__h {
  line-height: 1.38 !important;
  /* negative tracking pulls conjuncts into the letter before them */
  letter-spacing: normal !important;
}

/* Body copy is already set loosely enough for Latin, but Devanagari sits
   taller within the same em, so anything under 1.45 reads cramped. */
html[lang="hi"] p,
html[lang="hi"] li,
html[lang="hi"] td,
html[lang="hi"] .afxck__copy,
html[lang="hi"] .afxck-cat__desc {
  line-height: 1.55;
}

/* Buttons and pills are fixed-height. Raising the line-height inside one
   pushes the label off centre, so these keep the flex centring and only lose
   the tracking. */
html[lang="hi"] .afxp-pill,
html[lang="hi"] .afxck__btn,
html[lang="hi"] .afxpz__cta,
html[lang="hi"] .afxbtp {
  letter-spacing: normal;
}
