/*
 * The licensed and system faces from SRS `SVC-PAGE-001`, brought over from the legacy app
 * (`v535-mojarib-legacy/frontend/public/fonts/`).
 *
 * These thirteen families are offered in the Brand Theme picker and the rich-text font menu but
 * are not served by Google Fonts, so nothing loaded them: selecting Dubai or Myriad Arabic looked
 * like it worked and silently fell back. `v535prod` has live settings on them, so the names could
 * not simply be dropped from the list.
 *
 * `Arial`, `Tahoma` and `Verdana` are shipped rather than left to the system on purpose — the SRS
 * lists them in the custom table, and the system copies on non-Windows platforms have poor Arabic
 * coverage, which is the whole reason legacy carried them.
 *
 * Each family keeps its own `style.css` next to its files, exactly as legacy had it, so replacing
 * one font does not mean editing a shared file. Google families are not here; they load from
 * `fonts.googleapis.com` via `@core/lib/font-library`.
 */

/* adobe-arabic */
@font-face {
  font-family: 'Adobe Arabic';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/adobe-arabic/AdobeArabic-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'Adobe Arabic';
  font-style: normal;
  font-weight: bold;
  src: url('/fonts/adobe-arabic/AdobeArabic-Bold.otf') format('opentype');
}

/* arial */
@font-face {
  font-family: 'Arial';
  font-style: normal;
  font-weight: normal;
  src: local('Arial'), url('/fonts/arial/ARIAL.woff') format('woff');
}

@font-face {
  font-family: 'Arial';
  font-style: normal;
  font-weight: bold;
  src: local('Arial'), url('/fonts/arial/ARIALBD.woff') format('woff');
}

/* cocon-next-arabic */
@font-face {
  font-family: 'Cocon Next Arabic';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/cocon-next-arabic/Cocon-Next-Arabic-Regular.ttf') format('opentype');
}

@font-face {
  font-family: 'Cocon Next Arabic';
  font-style: normal;
  font-weight: bold;
  src: url('/fonts/cocon-next-arabic/Cocon-Next-Arabic-Bold.ttf') format('opentype');
}

/* din-next-arabic */
@font-face {
  font-family: 'DIN Next Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/din-next-arabic/DIN-Next-Arabic-Regular.ttf') format('opentype');
}

@font-face {
  font-family: 'DIN Next Arabic';
  font-style: normal;
  font-weight: bold;
  font-display: swap;
  src: url('/fonts/din-next-arabic/DIN-Next-Arabic-Bold.ttf') format('opentype');
}

/* diwani-letter */
@font-face {
  font-family: 'Diwani Letter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/diwani-letter/Diwani-Letter-Regular.ttf') format('opentype');
}

/* dubai */
@font-face {
  font-family: 'Dubai';
  font-style: normal;
  font-weight: 400;
  src: local('Dubai Regular'), url('/fonts/dubai/Dubai-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Dubai';
  font-style: normal;
  font-weight: 300;
  src: local('Dubai Light'), url('/fonts/dubai/Dubai-Light.woff') format('woff');
}

@font-face {
  font-family: 'Dubai';
  font-style: normal;
  font-weight: 500;
  src: local('Dubai Medium'), url('/fonts/dubai/Dubai-Medium.woff') format('woff');
}

@font-face {
  font-family: 'Dubai';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/dubai/demo.woff2') format('woff');
}

/* frutiger-arabic */
@font-face {
  font-family: 'Frutiger Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/frutiger-arabic/Frutiger-Arabic-Regular.ttf') format('opentype');
}

@font-face {
  font-family: 'Frutiger Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/frutiger-arabic/Frutiger-Arabic-Bold.ttf') format('opentype');
}

/* ge-ss-unique */
@font-face {
  font-family: 'GE SS Unique';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ge-ss-unique/GE-SS-Unique-Light.otf') format('opentype');
}

@font-face {
  font-family: 'GE SS Unique';
  font-style: normal;
  font-weight: bold;
  font-display: swap;
  src: url('/fonts/ge-ss-unique/GE-SS-Unique-Bold.otf') format('opentype');
}

/* kawkab-mono */
@font-face {
  font-family: 'Kawkab Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/kawkab-mono/KawkabMono-Regular.ttf') format('opentype');
}

@font-face {
  font-family: 'Kawkab Mono';
  font-style: normal;
  font-weight: bold;
  font-display: swap;
  src: url('/fonts/kawkab-mono/KawkabMono-Bold.ttf') format('opentype');
}

/* kufi-standard-gk */
@font-face {
  font-family: 'Kufi Standard GK';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/kufi-standard-gk/KufiStandardGK.ttf') format('opentype');
}

/* myriad-arabic */
@font-face {
  font-family: 'Myriad Arabic';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/myriad-arabic/Myriad-Arabic-Regular.ttf') format('opentype');
}

@font-face {
  font-family: 'Myriad Arabic';
  font-style: normal;
  font-weight: bold;
  src: url('/fonts/myriad-arabic/Myriad-Arabic-Bold.ttf') format('opentype');
}

/* tahoma */
@font-face {
  font-family: 'Tahoma';
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  src: local('Tahoma'), url('/fonts/tahoma/Tahoma.ttf') format('truetype');
}

@font-face {
  font-family: 'Tahoma';
  src: local('Tahoma Bold'), url('/fonts/tahoma/TahomaBd.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* verdana */
/*
 * Copied from the legacy app, with the family names corrected.
 *
 * Legacy declared the bold and bold-italic files as separate families — 'Verdana Bold' and
 * 'Verdana Bold Italic' — each with `font-style: bold` (not a valid value) and
 * `font-weight: normal`. Nothing could ever select them: the picker only offers 'Verdana', so
 * bold text fell back to the browser synthesising it. They are weight and style variants of one
 * family, which is what a browser expects.
 */

@font-face {
  font-family: 'Verdana';
  font-style: normal;
  font-weight: 400;
  src: local('Verdana'), url('/fonts/verdana/verdana.ttf') format('truetype');
}

@font-face {
  font-family: 'Verdana';
  font-style: normal;
  font-weight: 700;
  src: local('Verdana Bold'), url('/fonts/verdana/verdana-bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Verdana';
  font-style: italic;
  font-weight: 700;
  src: local('Verdana Bold Italic'), url('/fonts/verdana/verdana-bold-italic.ttf') format('truetype');
}
