/* Self-hosted custom fonts (mostly Arabic display/calligraphy). Served from /fonts/. */
@font-face { font-family: 'Diwani Simple Outline'; src: url('/fonts/diwani-simple-outline.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'XP Ziba'; src: url('/fonts/xp-ziba.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Yassin'; src: url('/fonts/yassin.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Abdo Free'; src: url('/fonts/abdo-free.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Abdo Salem'; src: url('/fonts/abdo-salem.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'AE Electron'; src: url('/fonts/ae-electron.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Afsaneh'; src: url('/fonts/afsaneh.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Al Ebdaa'; src: url('/fonts/al-ebdaa.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Aldhabi'; src: url('/fonts/aldhabi.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Al Gemah Assarim'; src: url('/fonts/al-gemah-assarim.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Al Gemah King'; src: url('/fonts/al-gemah-king.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Arabswell'; src: url('/fonts/arabswell.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Aref Graffiti'; src: url('/fonts/aref-graffiti.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Arslan Wessam B'; src: url('/fonts/arslan-wessam-b.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'B Titr'; src: url('/fonts/b-titr.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Dast Nevis'; src: url('/fonts/dast-nevis.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'DecoType Thuluth'; src: url('/fonts/decotype-thuluth.ttf') format('truetype'); font-display: swap; }

/* ---------------------------------------------------------------------------
   Faces used by the certificate templates converted from the CorelDRAW
   originals in "/Cert & Font/CERTIFICATES Designs cdr and png/". The source
   .cdr files store their text as outlines, so no font name survives in them;
   these were selected from "/Cert & Font/font_package3/" by fitting each glyph's
   measured ink box and then comparing the rendered result with the outlines (see
   "Res Cert/BPD_CDR_CERTIF_1.report.md"). Frutiger and Amazone BT are the
   design's actual faces; Kufyan and Geometric 706 are the closest available
   stand-ins for its condensed gothic. The faces the SHIPPED templates use are
   copied into "/templates/res-cert/fonts/" and served from there, because
   "/Cert & Font/" is a local working folder and is gitignored.
   `font-display: block` so text is not painted with a fallback face first.
   --------------------------------------------------------------------------- */
@font-face { font-family: 'Kufyan Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/Kufyan%20Arabic%20Regular.ttf') format('truetype'); }
@font-face { font-family: 'Geometric 706 Certifada'; font-weight: 700; font-display: block;
  src: url('/templates/res-cert/fonts/GEO706BC.TTF') format('truetype'); }
@font-face { font-family: 'Frutiger LT Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/Frutiger.LT.Arabic-55.Roman.ttf') format('truetype'); }
@font-face { font-family: 'Frutiger LT Certifada'; font-weight: 700; font-display: block;
  src: url('/templates/res-cert/fonts/Frutiger.LT.Arabic-65.Bold.ttf') format('truetype'); }
@font-face { font-family: 'Amazone BT Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/amazon.ttf') format('truetype'); }

/* Design 8 ("Of Appreciation") is a different template with different typography;
   these were identified the same way — see "Res Cert/BPD_CDR_CERTIF_8.report.md".
   Cairo Bold is that design's actual face; the others are the closest available
   stand-ins, each chosen on rendered overlap AND matching ink weight. */
@font-face { font-family: 'Cairo Certifada'; font-weight: 700; font-display: block;
  src: url('/templates/res-cert/fonts/Cairo-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Palatino Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/pala.ttf') format('truetype'); }
@font-face { font-family: 'Times Italic Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/timesi.ttf') format('truetype'); }
@font-face { font-family: 'Bodoni Cond Italic Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/BOD_CI.TTF') format('truetype'); }
@font-face { font-family: 'Folio Certifada'; font-weight: 500; font-display: block;
  src: url('/templates/res-cert/fonts/FOLIOM.TTF') format('truetype'); }

/* Design 14 (maroon and gold, "OF APPRECIATION"). El Messiri and Isra are that
   design's actual faces — both matched at ink ratio 1.00 — see
   "Res Cert/BPD_CDR_CERTIF_14.report.md". */
@font-face { font-family: 'El Messiri Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/ElMessiri-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Isra Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/Isra-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Diodrum Certifada'; font-weight: 500; font-display: block;
  src: url('/templates/res-cert/fonts/Diodrum-Arabic-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Freehand 575 Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/FRHND575.TTF') format('truetype'); }

/* Design 68 (bold black-and-white, large initial C). Frutiger Black and Black
   Condensed are that design's actual faces (ink ratio 1.02 / 0.99); see
   "Res Cert/BPD_CDR_CERTIF_68.report.md". */
@font-face { font-family: 'Frutiger Black Certifada'; font-weight: 900; font-display: block;
  src: url('/templates/res-cert/fonts/Frutiger.LT.Arabic-75.Black.ttf') format('truetype'); }
@font-face { font-family: 'Frutiger Black Cn Certifada'; font-weight: 900; font-display: block;
  src: url('/templates/res-cert/fonts/Frutiger.LT.Arabic-77.Black.Cn.ttf') format('truetype'); }
@font-face { font-family: 'Kufyan Thin Certifada'; font-weight: 200; font-display: block;
  src: url('/templates/res-cert/fonts/Kufyan%20Arabic%20Thin.ttf') format('truetype'); }
@font-face { font-family: 'Chopin Script Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/CHOPS___.TTF') format('truetype'); }
@font-face { font-family: 'Frutiger Light Certifada'; font-weight: 300; font-display: block;
  src: url('/templates/res-cert/fonts/Frutiger.LT.Arabic-45.Light.ttf') format('truetype'); }

/* Design 13 (maroon art-deco, gold gradient type) - see "Res Cert/BPD_CDR_CERTIF_13.report.md". */
@font-face { font-family: 'El Messiri SemiBold Certifada'; font-weight: 600; font-display: block;
  src: url('/templates/res-cert/fonts/ElMessiri-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Caslon Old Face Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/CASOLFCN.TTF') format('truetype'); }
@font-face { font-family: 'Freehand 471 Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/FRHND471.TTF') format('truetype'); }
@font-face { font-family: 'Kufyan Medium Certifada'; font-weight: 500; font-display: block;
  src: url('/templates/res-cert/fonts/Kufyan%20Arabic%20Medium.ttf') format('truetype'); }
@font-face { font-family: 'Cairo SemiBold Certifada'; font-weight: 600; font-display: block;
  src: url('/templates/res-cert/fonts/Cairo-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Frutiger Cn Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/Frutiger.LT.Arabic-57.Cn.ttf') format('truetype'); }

/* Design 70 (grey stripes, red drop-cap C). */
@font-face { font-family: 'Edwardian Script Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/ITCEDSCR.TTF') format('truetype'); }

/* Design 72 (cream, gold medal, two signature blocks). */
@font-face { font-family: 'Times Bold Certifada'; font-weight: 700; font-display: block;
  src: url('/templates/res-cert/fonts/timesbd.ttf') format('truetype'); }
@font-face { font-family: 'Palatino Bold Certifada'; font-weight: 700; font-display: block;
  src: url('/templates/res-cert/fonts/palab.ttf') format('truetype'); }
@font-face { font-family: 'Helvetica Neue Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/HelveticaNeueLT.otf') format('truetype'); }
@font-face { font-family: 'Shelley Andante Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/Shelley%20Andante%20BT.ttf') format('truetype'); }
@font-face { font-family: 'Goudy Old Style Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/GOUDOS.TTF') format('truetype'); }
@font-face { font-family: 'Georgia Bold Certifada'; font-weight: 700; font-display: block;
  src: url('/templates/res-cert/fonts/georgiab.ttf') format('truetype'); }
@font-face { font-family: 'Shelley Volante Certifada'; font-weight: 400; font-display: block;
  src: url('/templates/res-cert/fonts/Shelley%20Volante%20BT.ttf') format('truetype'); }
