/* Hindi shaping needs a Devanagari face and untracked, generous line boxes. */
@font-face {
  font-family: "EdCaptain Hindi";
  src: url("fonts/noto-sans-devanagari-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@layer edcm-hindi {
html[lang="hi"] body,
html[lang="hi"] :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,a,button,input,textarea,select,option,label,legend,summary,blockquote,figcaption,small,strong) {
  font-family: "EdCaptain Hindi", "Noto Sans Devanagari", "Nirmala UI", Mangal, sans-serif !important;
}

/* Do not apply an English display font's tracking to Hindi marks/conjuncts. */
html[lang="hi"] body,
html[lang="hi"] body :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,a,button,input,textarea,select,option,label,legend,summary,blockquote,figcaption,small,strong,span) {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-transform: none !important;
  word-break: normal !important;
  hyphens: none !important;
}

html[lang="hi"] body { line-height: 1.65 !important; }
html[lang="hi"] :is(p,li,dt,dd,blockquote,figcaption,textarea) { line-height: 1.65 !important; }
html[lang="hi"] :is(h1,h2,h3,h4,h5,h6) {
  line-height: 1.4 !important;
  overflow-wrap: normal !important;
  text-wrap: pretty;
}
html[lang="hi"] :is(h3,h4,h5,h6) { line-height: 1.45 !important; }
html[lang="hi"] :is(label,legend,summary,button,input,select,small) { line-height: 1.5 !important; }
html[lang="hi"] :is(.kicker,.eyebrow,.ec-kicker,.edcm-eyebrow) { line-height: 1.6 !important; }
html[lang="hi"] :is(header,footer,.collapse-holder,.mobile-collapse,.edcm-switch) :is(a,label,select,button) { line-height: 1.5 !important; }
html[lang="hi"] :is(.p-title,.entry-title,.s-title,.ec-rank-card h3) { line-height: 1.45 !important; }
html[lang="hi"] #ec-title {
  font-size: clamp(2.35rem, 4.6vw, 4.25rem) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}
html[lang="hi"] :is(.entry-content,.single-content,.content-inner) p { margin-block: 0 1.15em; }
@media (max-width: 600px) {
  html[lang="hi"] #ec-title { font-size: clamp(2rem, 8.5vw, 2.75rem) !important; }
}

}
