/*
 * رمز الريال السعودي الجديد (U+20C1) — خط "Riyal" (MIT، https://riyal.js.org)
 * يُسجَّل الرمز تحت نفس أسماء الخطوط المستخدمة في التطبيق مع unicode-range
 * بحيث يُستخدم هذا الخط لحرف الريال فقط، وتبقى بقية النصوص على خطوطها الأصلية.
 */

/* عائلة مستقلة لمن يريد استخدامها صراحةً */
@font-face {
    font-family: 'Riyal';
    src: url('riyal-regular.woff2') format('woff2'), url('riyal-regular.woff') format('woff');
    font-weight: 100 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1;
}

/* Standard money wrapper. Keep the symbol on the visual left even inside
   Arabic RTL layouts. Dynamic and server-rendered amounts use this contract. */
.sar-money {
    display: inline-flex;
    direction: ltr;
    unicode-bidi: isolate;
    align-items: baseline;
    gap: .18em;
    white-space: nowrap;
    font: inherit;
}

.sar-money__symbol {
    flex: 0 0 auto;
    font-family: 'Riyal', 'Cairo', 'Tajawal', sans-serif;
    font-size: .82em;
    line-height: 1;
}

.sar-money__value {
    direction: ltr;
    unicode-bidi: isolate;
    font: inherit;
}
@font-face {
    font-family: 'Riyal';
    src: url('riyal-bold.woff2') format('woff2'), url('riyal-bold.woff') format('woff');
    font-weight: 601 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1;
}

/* Cairo */
@font-face {
    font-family: 'Cairo';
    src: url('riyal-regular.woff2') format('woff2'), url('riyal-regular.woff') format('woff');
    font-weight: 100 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1;
}
@font-face {
    font-family: 'Cairo';
    src: url('riyal-bold.woff2') format('woff2'), url('riyal-bold.woff') format('woff');
    font-weight: 601 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1;
}

/* Tajawal */
@font-face {
    font-family: 'Tajawal';
    src: url('riyal-regular.woff2') format('woff2'), url('riyal-regular.woff') format('woff');
    font-weight: 100 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1;
}
@font-face {
    font-family: 'Tajawal';
    src: url('riyal-bold.woff2') format('woff2'), url('riyal-bold.woff') format('woff');
    font-weight: 601 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1;
}

/* Inter */
@font-face {
    font-family: 'Inter';
    src: url('riyal-regular.woff2') format('woff2'), url('riyal-regular.woff') format('woff');
    font-weight: 100 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1;
}
@font-face {
    font-family: 'Inter';
    src: url('riyal-bold.woff2') format('woff2'), url('riyal-bold.woff') format('woff');
    font-weight: 601 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1;
}

/* Playfair Display */
@font-face {
    font-family: 'Playfair Display';
    src: url('riyal-regular.woff2') format('woff2'), url('riyal-regular.woff') format('woff');
    font-weight: 100 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('riyal-bold.woff2') format('woff2'), url('riyal-bold.woff') format('woff');
    font-weight: 601 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1;
}
