/*!
 * hy.css — Armenian layer, loaded only when the locale is `hy`,
 * after style.css.
 *
 * The first LTR sibling of fa.css/ar.css, and deliberately the smallest:
 * Armenian shares the English tree's direction, so style.css applies as-is
 * and there is no rtlcss run, no bidi isolation, no glyph mirroring. This
 * file only adds what the Latin theme cannot know: the Armenian typeface
 * and the few typographic adjustments Armenian script needs.
 *
 * Scoped to html[lang="hy"] — the lang attribute the layout writes from
 * Locale::htmlLang() — because [dir="rtl"], the hook fa.css and ar.css
 * hang off, is never present on this tree.
 */

/* --------------------------------------------------------------------
   1. Typeface — self-hosted, matching the site's policy on every tree.

      Noto Sans Armenian, Armenian subset only (U+0530-058F plus the
      Armenian ligatures at U+FB13-FB17): Latin runs on /hy keep rendering
      in Manrope, which style.css already declares and serves locally, so
      the stack in section 2 lists Manrope FIRST and this face second.
      A Latin glyph never reaches it and an Armenian glyph always does.

      Two static cuts (Regular 400, Light 300), mirroring the other
      translated trees. Licence is SIL OFL 1.1 — see
      ../fonts/noto-sans-armenian/README.md.
   -------------------------------------------------------------------- */
@font-face {
  font-family: "Noto Sans Armenian";
  src: url("../fonts/noto-sans-armenian/NotoSansArmenian-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0530-058F, U+FB13-FB17;
}

@font-face {
  font-family: "Noto Sans Armenian";
  src: url("../fonts/noto-sans-armenian/NotoSansArmenian-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0530-058F, U+FB13-FB17;
}

/* --------------------------------------------------------------------
   2. Base typography.

      The theme declares --bs-body-font-family: var(--bs-font-sans-serif)
      on :root, so overriding --bs-font-sans-serif re-points every
      font-family at once. Manrope stays first on purpose — see section 1.

      No size or leading bump, unlike fa.css/ar.css: Noto Sans Armenian
      sits on Latin-compatible vertical metrics and Armenian has no dots
      or deep descenders to clear, so the theme's 0.8rem/1.7 holds.
   -------------------------------------------------------------------- */
html[lang="hy"] {
  --bs-font-sans-serif: "Manrope", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang="hy"] body {
  font-family: var(--bs-font-sans-serif);
}

/* --------------------------------------------------------------------
   3. Known overflow points.

      The theme's underline/highlight bars are nowrap, which is safe for
      short English phrases but overflows on the longer Armenian
      equivalents — Armenian words run long. Allow them to wrap, exactly
      as the RTL trees do.
   -------------------------------------------------------------------- */
html[lang="hy"] .underline,
html[lang="hy"] .underline-2,
html[lang="hy"] .underline-3 {
  white-space: normal;
}
