/**
 * Vazirmatn (v33.003) for wp-admin — local vendor, no CDN.
 *
 * Source: https://github.com/rastikerdar/vazirmatn/releases/tag/v33.003
 * License: SIL Open Font License 1.1 (see assets/admin/fonts/vazirmatn/OFL.txt)
 *
 * Icon fonts stay on WordPress core rules:
 * - dashicons.css `.dashicons` / `.dashicons-before::before`
 * - admin-menu.css menu SVG `.wp-menu-image.svg` + add_menu_page data URIs
 * - admin-bar.css `#wpadminbar .ab-icon` / `.ab-item::before`
 *
 * Do not set font-family on `#adminmenu`, `#adminmenu a`, or every
 * `.wp-menu-image::before`. Core menus use dashicons; many plugins pass
 * `none`/`div` to add_menu_page and then set their own icon font on
 * `.wp-menu-image::before` without !important. A blanket dashicons
 * !important hid those glyphs even with the blocker off.
 *
 * @see https://developer.wordpress.org/reference/functions/add_menu_page/
 * @see https://developer.wordpress.org/resource/dashicons/
 */

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

/* Text only — not #adminmenu / #adminmenu a (menu icon :before inherits those). */
body.wp-admin,
body.login,
#wpadminbar,
#wpadminbar .ab-label,
#wpadminbar .ab-empty-item,
.wp-core-ui,
.wp-core-ui select,
.media-modal,
.wrap,
.wrap h1,
.wrap h2,
.wrap h3,
.wrap h4,
.form-table,
.form-table th,
.form-table td,
.parskit-wrap,
.parskit-wrap h1,
.parskit-wrap h2,
.parskit-wrap h3,
.parskit-app,
.parskit-main,
.parskit-main-header h1,
.parskit-page-title,
#adminmenu .wp-submenu a,
#adminmenu .wp-menu-name,
#adminmenu .wp-submenu-head,
.notice,
.button,
.page-title-action,
input,
textarea,
select,
.components-button,
.components-base-control,
.components-text,
.editor-styles-wrapper,
.block-editor-writing-flow,
.login form,
body.wp-admin h1,
body.wp-admin h2,
body.wp-admin h3,
body.wp-admin h4,
body.wp-admin h5,
body.wp-admin h6,
body.login h1,
body.login h2 {
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

/*
 * Icon *elements* that are dashicons (toolbar buttons, notices, our nav).
 * Not `.dashicons-before::before` / `.wp-menu-image::before` — those hooks
 * are also used by third-party admin menu icon fonts.
 *
 * Admin bar icons are dashicons in core (admin-bar.css).
 */
.dashicons,
.dashicons::before,
.welcome-icon::before {
	font-family: dashicons !important;
}

/*
 * Core admin-bar.css uses dashicons on .ab-icon / #adminbarsearch.
 * Do not force dashicons onto every .ab-item::before — plugins put their
 * own icon font there the same way they do on .wp-menu-image::before.
 */
#wpadminbar .ab-icon,
#wpadminbar .ab-icon::before,
#wpadminbar #adminbarsearch::before {
	font: normal 20px/1 dashicons !important;
	speak: never;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#wpadminbar #wp-admin-bar-menu-toggle .ab-icon::before {
	font: 400 40px/45px dashicons !important;
}
