/* Local font assets for /docs — replaces fonts.googleapis.com Open Sans + adds Vazirmatn for Persian text */

@font-face {
    font-family: 'Vazirmatn';
    src: url('Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Apply Vazirmatn to the docs body — covers both Latin and Persian glyphs */
body,
.content,
.sidebar,
h1, h2, h3, h4, h5, h6,
p, li, td, th, label, button {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

/* Keep monospace code as-is for readability */
code, pre, kbd, samp, .hljs {
    font-family: ui-monospace, 'Cascadia Code', Consolas, 'Courier New', monospace !important;
}

/* Persian text mixed-direction handling — paragraphs with Persian glyphs naturally LTR-flow,
   but tables and headings benefit from explicit auto-direction so mixed Persian/English reads cleanly */
.content p,
.content li,
.content td,
.content th,
.content h1,
.content h2,
.content h3 {
    unicode-bidi: plaintext;
}

/* Slightly larger line-height for Persian readability */
body {
    line-height: 1.7;
}
