/* Load after the component styles. The actual font faces are prepared from
 * @dawod/thmanyah-font-web@1.2.0 and served from this site's /assets/fonts/.
 * This file changes font roles only; component geometry remains unchanged.
 */
:root {
  --font-display: 'Thmanyah Serif Display', Georgia, 'Times New Roman', serif;
  --font-ar: 'Thmanyah Sans', 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
}

/* Prominent Arabic page, section, research, service and team headings use the
 * real display family. English remains entirely under the original styles.
 * Small product/form labels retain their existing UI typography. The scoped
 * !important declarations outrank legacy Arabic/component font-family resets.
 */
:is(h1, h2, h3):lang(ar):not(:where(
  .portal-tour *,
  .hs-workspace *,
  .summary-grid *,
  .request-preview *,
  .cb-calendar-heading *,
  .sig-companies-heading *,
  .site-footer *,
  .footer *
)) {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-variation-settings: normal !important;
  font-synthesis: none;
}

/* :lang(ar) also matches nested em/span/a elements. Without this rule those
 * fragments would explicitly select Sans instead of inheriting the heading.
 * Explicit English content is outside this override. Technical code tokens
 * keep their own monospace role.
 */
:is(h1, h2, h3):lang(ar):not(:where(
  .portal-tour *,
  .hs-workspace *,
  .summary-grid *,
  .request-preview *,
  .cb-calendar-heading *,
  .sig-companies-heading *,
  .site-footer *,
  .footer *
)) :where(*):lang(ar):not(code, kbd, samp, code *, kbd *, samp *) {
  font-family: inherit !important;
  font-style: inherit !important;
  font-variation-settings: inherit !important;
  font-synthesis: none;
}
