@font-face {
  font-family: VazirmatnVF;
  src: url("font/VazirMatn/VazirmatnVF.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/*
 * Let regular admin text inherit Vazirmatn without forcing it onto every
 * element. Icon plugins commonly render glyphs through ::before on elements
 * with vendor-specific classes; a universal !important rule breaks them.
 */
html[dir="rtl"] body.wp-admin,
html[dir="rtl"] body.login {
    font-family: 'VazirmatnVF', sans-serif;
}

html[dir="rtl"] body.wp-admin :where(input, select, textarea, button),
html[dir="rtl"] body.login :where(input, select, textarea, button) {
    font-family: 'VazirmatnVF', sans-serif;
}

/* Preserve monospace for code elements */
html[dir="rtl"] pre,
html[dir="rtl"] pre *,
html[dir="rtl"] kbd,
html[dir="rtl"] code,
html[dir="rtl"] code *,
html[dir="rtl"] #newcontent,
html[dir="rtl"] .CodeMirror-lines,
html[dir="rtl"] .CodeMirror-lines *,
html[dir="rtl"] .monaco-editor,
html[dir="rtl"] .monaco-editor * {
    font-family: monospace !important;
}

/* Prevent SVG content from inheriting custom fonts */
svg, svg * {
    font-family: inherit !important;
}

/* Font weight adjustments for variable font */
.plugins .inactive .plugin-title strong {
    font-weight: 400 !important;
    font-variation-settings: "wght" 400 !important;
}
#adminmenu .wp-submenu li.current,
#adminmenu .wp-submenu li.current a,
#adminmenu .wp-submenu li.current a:hover,
#comment-status-display,
#dashboard_right_now .versions .b,
#ed_reply_toolbar #ed_reply_strong,
#pass-strength-result.short,
#pass-strength-result.strong,
#post-status-display,
#post-visibility-display,
.feature-filter .feature-name,
.item-controls .item-order a,
.media-item .percent,
.plugins .name,
.row-title,
.plugin-title strong,
#editable-post-name,
.post-state,
h1.wp-heading-inline {
    font-variation-settings: "wght" 650 !important;
    font-weight: 400 !important;
}
