/*
 * FastBlogTheme synthetic weight support for single-face Bengali fonts.
 * Siyam Rupali and Kalpurush ship as Regular-only faces, so CSS font-weight
 * alone may not create a visible difference in Bengali glyphs. The helper
 * script adds this class and a deterministic size-aware stroke for weights above 400.
 */
.fbt-classic-bn-synthetic-weight {
  font-synthesis: none;
  -webkit-text-stroke-width: var(--fbt-classic-bn-stroke, 0px);
  -webkit-text-stroke-color: currentColor;
  paint-order: stroke fill;
  text-rendering: optimizeLegibility;
}

/* Firefox/other engines without text-stroke get a restrained shadow fallback. */
@supports not (-webkit-text-stroke-width: 0.1px) {
  .fbt-classic-bn-synthetic-weight {
    text-shadow:
      var(--fbt-classic-bn-shadow-x, 0px) 0 currentColor,
      calc(var(--fbt-classic-bn-shadow-x, 0px) * -1) 0 currentColor,
      0 var(--fbt-classic-bn-shadow-x, 0px) currentColor,
      0 calc(var(--fbt-classic-bn-shadow-x, 0px) * -1) currentColor;
  }
}
