/* UAE Dirham (AED) icon font.
 * Vendored from https://github.com/pooyagolchian/dirham (npm "dirham"
 * v1.5.3, MIT license) — files renamed to aed.* to match this repo's
 * public/fonts/<currency>/ convention (see public/fonts/saudi_riyal/).
 * Upstream ships a single weight, so regular/ and bold/ currently carry
 * the same files; drop a real bold cut into bold/ if one is published.
 */
@font-face {
  font-family: "aed";
  src: url("../fonts/aed/regular/aed.woff2") format("woff2"),
    url("../fonts/aed/regular/aed.woff") format("woff"),
    url("../fonts/aed/regular/aed.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  unicode-range: U+20C3;
}

@font-face {
  font-family: "aed_bold";
  src: url("../fonts/aed/bold/aed.woff2") format("woff2"),
    url("../fonts/aed/bold/aed.woff") format("woff"),
    url("../fonts/aed/bold/aed.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  unicode-range: U+20C3;
}

/* Standard codepoint (U+20C3), assigned to the UAE Dirham Sign in
   Unicode 18.0 — rendered through the vendored font until OS-level
   support is broadly available. The vendored glyph draws larger within
   its em-box than surrounding text at the same font-size, so it's scaled
   down to the same height as the digits and the other currency symbols (measured: 0.62em gives the same ink height as
   symbols. */
.icon-aed::before {
  content: "\20C3";
  font-family: "aed" !important;
  font-size: 0.75em;
  color: inherit;
}

.icon-aed_bold::before {
  content: "\20C3";
  font-family: "aed_bold" !important;
  font-size: 0.75em;
  color: inherit;
}

/* The dirham sign (U+20C3) written as plain text (receipts) is wrapped by __riyal_glyphs() in functions.js. */
.aed-glyph {
  font-family: "aed" !important;
  font-style: normal;
  font-size: 0.75em;
}
