/* Round 386: Self-hosted Vazirmatn Persian typography & RTL numeric isolation.
   Zero external CDN dependency (works reliably in Iran).
   Brand wordmark (.brand) stays Corona + amber per Rule 8. */

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
         url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Primary Persian UI: crisp Vazirmatn across all body/form/heading text */
html[lang="fa"] body,
html[lang="fa"] button,
html[lang="fa"] input,
html[lang="fa"] select,
html[lang="fa"] textarea {
    font-family: "Vazirmatn", "Segoe UI", system-ui, -apple-system, sans-serif;
    letter-spacing: 0;
}

/* Non-Persian UI still renders Persian listing titles & descriptions cleanly */
html:not([lang="fa"]) body {
    font-family: "Segoe UI", system-ui, -apple-system, "Vazirmatn", sans-serif;
}

/* Brand wordmark strictly preserves Corona font & amber color (Rule 8) */
.brand,
.site-brand,
.footer-brand-name {
    font-family: "Corona", sans-serif !important;
}

/* Tabular numbers & bidi isolation for prices, dates, phone numbers & counters */
.listing-price,
.price,
.card-price,
.stat-num,
.char-counter,
.mol-share-item-price,
.el-quality-number {
    font-variant-numeric: tabular-nums;
}

html[dir="rtl"] .listing-price,
html[dir="rtl"] .card-price,
html[dir="rtl"] .meta-date,
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"] {
    unicode-bidi: isolate;
}
