/* ========================================================================
   [VARIENT-MOD] Persian font pack — Vazirmatn, Dana, IRANYekan
   Added by customisation (not part of original Varient v3 script).
   Loaded conditionally when active language is Persian.
   ======================================================================== */

/* --- Vazirmatn ------------------------------------------------------- */
@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("vazirmatn-300.woff2") format("woff2");
}
@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("vazirmatn-400.woff2") format("woff2");
}
@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("vazirmatn-500.woff2") format("woff2");
}
@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("vazirmatn-600.woff2") format("woff2");
}
@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("vazirmatn-700.woff2") format("woff2");
}
@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("vazirmatn-800.woff2") format("woff2");
}
@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("vazirmatn-900.woff2") format("woff2");
}

/* --- Dana ------------------------------------------------------------ */
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("dana-300.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("dana-400.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("dana-500.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("dana-600.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("dana-700.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("dana-800.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("dana-900.woff2") format("woff2");
}

/* --- IRANYekan (Persian-numerals variant) ---------------------------- */
@font-face {
    font-family: "IRANYekan";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("iranyekan-400.woff2") format("woff2");
}
@font-face {
    font-family: "IRANYekan";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("iranyekan-700.woff2") format("woff2");
}

/* ========================================================================
   [SERE-MOD] Iranian font pack — calligraphy + display + sans used by
   /tools/photo-quote and /account/photo-quote.

   Source: user-licensed iranfont collection (Aviny, Bahar, Darbareh,
   IRANYekanX, Pulad, Shazde, Shiveh, Vazin).  Each .woff2 lives next
   to this file. font-display:swap → page keeps painting with the
   already-loaded Vazirmatn while these download in the background.
   ======================================================================== */

/* Aviny — calligraphic, signature/quote feel */
@font-face { font-family: "Aviny";         font-style: normal; font-weight: 400; font-display: swap; src: url("aviny-400.woff2")           format("woff2"); }

/* Bahar — bold display */
@font-face { font-family: "Bahar";         font-style: normal; font-weight: 700; font-display: swap; src: url("bahar-700.woff2")           format("woff2"); }

/* Darbareh — semi-pro Persian sans (regular + bold) */
@font-face { font-family: "Darbareh";      font-style: normal; font-weight: 400; font-display: swap; src: url("darbareh-400.woff2")        format("woff2"); }
@font-face { font-family: "Darbareh";      font-style: normal; font-weight: 700; font-display: swap; src: url("darbareh-700.woff2")        format("woff2"); }

/* IRANYekanX — modern Persian sans, 3 weights (Regular/Bold/Black) */
@font-face { font-family: "IRANYekanX";    font-style: normal; font-weight: 400; font-display: swap; src: url("iranyekanx-400.woff2")      format("woff2"); }
@font-face { font-family: "IRANYekanX";    font-style: normal; font-weight: 700; font-display: swap; src: url("iranyekanx-700.woff2")      format("woff2"); }
@font-face { font-family: "IRANYekanX";    font-style: normal; font-weight: 900; font-display: swap; src: url("iranyekanx-900.woff2")      format("woff2"); }

/* Pulad — heavy display (single weight) */
@font-face { font-family: "Pulad";         font-style: normal; font-weight: 400; font-display: swap; src: url("pulad-400.woff2")           format("woff2"); }

/* Shazde — display/decorative (regular + bold) */
@font-face { font-family: "Shazde";        font-style: normal; font-weight: 400; font-display: swap; src: url("shazde-400.woff2")          format("woff2"); }
@font-face { font-family: "Shazde";        font-style: normal; font-weight: 700; font-display: swap; src: url("shazde-700.woff2")          format("woff2"); }

/* Shiveh Stencil — stencil-cut decorative */
@font-face { font-family: "Shiveh Stencil";font-style: normal; font-weight: 400; font-display: swap; src: url("shiveh-stencil-400.woff2")  format("woff2"); }

/* Vazin Sharp — sharp-corner display (black weight only) */
@font-face { font-family: "Vazin Sharp";   font-style: normal; font-weight: 900; font-display: swap; src: url("vazin-sharp-900.woff2")     format("woff2"); }

/* ========================================================================
   Hasti + Maneli + Farzian (fontfa.com) pack — mostly TTF only.
   TTF is fine, the browser reads it; just larger files than woff2.
   ======================================================================== */

/* Hasti — heavy ink display (woff only) */
@font-face { font-family: "Hasti";             font-style: normal; font-weight: 700; font-display: swap; src: url("hasti-700.woff")             format("woff");     }

/* Maneli — handwriting */
@font-face { font-family: "Maneli";            font-style: normal; font-weight: 400; font-display: swap; src: url("maneli-400.ttf")             format("truetype"); }

/* Farzian — calligraphic */
@font-face { font-family: "Farzian";           font-style: normal; font-weight: 400; font-display: swap; src: url("farzian-400.ttf")            format("truetype"); }

/* A Thuluth — classical thuluth calligraphy */
@font-face { font-family: "A Thuluth";         font-style: normal; font-weight: 400; font-display: swap; src: url("a-thuluth-400.ttf")          format("truetype"); }

/* A Shekari — broken/handwriting style */
@font-face { font-family: "A Shekari";         font-style: normal; font-weight: 400; font-display: swap; src: url("a-shekari-400.ttf")          format("truetype"); }

/* A Maktoob — handwritten letter */
@font-face { font-family: "A Maktoob";         font-style: normal; font-weight: 400; font-display: swap; src: url("a-maktoob-400.ttf")          format("truetype"); }

/* Fanavari — modern Persian sans, regular + bold */
@font-face { font-family: "Fanavari";          font-style: normal; font-weight: 400; font-display: swap; src: url("fanavari-400.ttf")           format("truetype"); }
@font-face { font-family: "Fanavari";          font-style: normal; font-weight: 700; font-display: swap; src: url("fanavari-700.ttf")           format("truetype"); }

/* Estedad-Mad — modern (single weight, woff2) */
@font-face { font-family: "Estedad Mad";       font-style: normal; font-weight: 400; font-display: swap; src: url("estedad-mad-400.woff2")      format("woff2");    }

/* Entezar4 — modern display */
@font-face { font-family: "Entezar";           font-style: normal; font-weight: 400; font-display: swap; src: url("entezar4-400.ttf")           format("truetype"); }

/* FP Sim Khardar — thorny/spiky display */
@font-face { font-family: "FP Khardar";        font-style: normal; font-weight: 400; font-display: swap; src: url("fp-khardar-400.ttf")         format("truetype"); }

/* IranNastaliq — true nastaliq (Quran-quality calligraphy) */
@font-face { font-family: "IranNastaliq";      font-style: normal; font-weight: 400; font-display: swap; src: url("iran-nastaliq-400.ttf")      format("truetype"); }

/* Shekasteh — broken nastaliq cursive */
@font-face { font-family: "Shekasteh";         font-style: normal; font-weight: 400; font-display: swap; src: url("shekasteh-400.ttf")          format("truetype"); }

/* Titraj Sayeh — title display with built-in shadow */
@font-face { font-family: "Titraj Sayeh";      font-style: normal; font-weight: 400; font-display: swap; src: url("titraj-sayeh-400.ttf")       format("truetype"); }

/* --- Apply Vazirmatn site-wide for RTL/Persian ----------------------- */
html[lang^="fa"],
html[lang^="fa"] body,
html[dir="rtl"] body {
    font-family: "Vazirmatn", "Dana", "IRANYekan", "Tahoma", sans-serif;
    /* Vazirmatn ss01 = Persian digits; Dana (fallback) uses ss02 for the same */
    -moz-font-feature-settings: "ss01", "ss02", "ss03";
    -webkit-font-feature-settings: "ss01", "ss02", "ss03";
    font-feature-settings: "ss01", "ss02", "ss03";
}

/* Western digits for LTR / codes / URLs */
html[lang^="fa"] [dir="ltr"],
html[lang^="fa"] .ltr,
html[lang^="fa"] .latin-nums,
html[lang^="fa"] code,
html[lang^="fa"] kbd,
html[lang^="fa"] samp,
html[lang^="fa"] pre {
    -moz-font-feature-settings: normal;
    -webkit-font-feature-settings: normal;
    font-feature-settings: normal;
}
