/* stylelint-disable */
/* ============================================
   Replacement for the dead S3-hosted tiny_font_new.css
   - Self-hosted custom fonts (from public/editorfonts/)
   - Google Fonts via @import for standard fonts
   - stc-forward: only Regular weight recovered
   ============================================ */

/* ===== Google Fonts (CDN) — must be first for @import rules ===== */
@import url("https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Cairo:wght@200;300;400;600;700;900&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Lato:wght@300;400;700&family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;700&family=Oxygen:wght@300;400;700&family=Roboto:wght@300;400;500;700&display=swap");

/* ===== effra-arabic (self-hosted) ===== */
@font-face {
  font-family: "effra-arabic";
  src: url("editorfonts/Effra_Lt.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "effra-arabic";
  src: url("editorfonts/Effra_Rg.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "effra-arabic";
  src: url("editorfonts/Effra_Bd.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

/* ===== stc-forward (self-hosted, only Regular weight available) ===== */
@font-face {
  font-family: "stc-forward";
  src: url("editorfonts/STCForward-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "stc-forward";
  src: url("editorfonts/STCForward-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "stc-forward";
  src: url("editorfonts/STCForward-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "stc-forward";
  src: url("editorfonts/STCForward-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
}

/* ===== TanseekModernProArabic (self-hosted) ===== */
@font-face {
  font-family: 'TanseekModernProArabic';
  font-style: normal;
  font-display: swap;
  src: url('editorfonts/TanseekModernProArabic.woff2') format('woff2');
}

/* ===== HungerStation (self-hosted) ===== */
@font-face {
  font-family: 'HungerStation';
  src: url('editorfonts/HungerStation-Bold.woff2') format('woff2'),
       url('editorfonts/HungerStation-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ===== Noto Sans (self-hosted) ===== */
@font-face {
  font-family: "Noto Sans";
  font-weight: 300;
  font-display: swap;
  src: url("editorfonts/NotoSans-Light.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans";
  font-weight: 400;
  font-display: swap;
  src: url("editorfonts/NotoSans-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans";
  font-weight: 500;
  font-display: swap;
  src: url("editorfonts/NotoSans-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans";
  font-weight: 700;
  font-display: swap;
  src: url("editorfonts/NotoSans-Bold.ttf") format("truetype");
}

/* ===== Bahij TheSansArabic (self-hosted) ===== */
@font-face {
  font-family: "Bahij TheSansArabic";
  font-weight: 400;
  font-display: swap;
  src: url("editorfonts/Arbic-TheSans-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Bahij TheSansArabic";
  font-weight: 600;
  font-display: swap;
  src: url("editorfonts/Arbic-TheSans-Bold.otf") format("opentype");
}

/*
  Backward-compatibility: CrimsonText (no space) and OpenSans (no space)
  The original CSS used these no-space names. TinyMCE font_formats maps to them,
  so existing documents have font-family: CrimsonText / OpenSans embedded.
  Self-hosted woff2 files recovered from Wayback Machine.
*/

/* ===== CrimsonText (self-hosted, no-space family name) ===== */
@font-face {
  font-family: 'CrimsonText';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('editorfonts/CrimsonText-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'CrimsonText';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('editorfonts/CrimsonText-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'CrimsonText';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('editorfonts/CrimsonText-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'CrimsonText';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('editorfonts/CrimsonText-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'CrimsonText';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('editorfonts/CrimsonText-SemiBoldItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'CrimsonText';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('editorfonts/CrimsonText-BoldItalic.woff2') format('woff2');
}

/* ===== OpenSans (self-hosted, no-space family name) ===== */
@font-face {
  font-family: 'OpenSans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('editorfonts/OpenSans-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'OpenSans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('editorfonts/OpenSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'OpenSans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('editorfonts/OpenSans-Bold.woff2') format('woff2');
}
