/*! ITLab – Persian typography for wp-admin, the login page and the Elementor editor.
 *  Fonts are the bundled "fanum" builds (digits are drawn as Persian digits).
 *  Fonts are applied to text containers only – never with a universal selector – so icon fonts
 *  (dashicons, eicons, WooCommerce, Font Awesome, plugin icon sets) keep working.
 */
@font-face{font-family:"YekanBakh";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/persian/YekanBakh-regular-fanum.woff2") format("woff2")}
@font-face{font-family:"YekanBakh";font-weight:600;font-style:normal;font-display:swap;src:url("../fonts/persian/YekanBakh-semibold-fanum.woff2") format("woff2")}
@font-face{font-family:"YekanBakh";font-weight:700;font-style:normal;font-display:swap;src:url("../fonts/persian/YekanBakh-bold-fanum.woff2") format("woff2")}
@font-face{font-family:"Dana";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/persian/Dana-regular-fanum.woff2") format("woff2")}
@font-face{font-family:"Dana";font-weight:500;font-style:normal;font-display:swap;src:url("../fonts/persian/Dana-medium-fanum.woff2") format("woff2")}
@font-face{font-family:"Dana";font-weight:700;font-style:normal;font-display:swap;src:url("../fonts/persian/Dana-bold-fanum.woff2") format("woff2")}
@font-face{font-family:"IRANSans";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/persian/IRANSans-fanum.woff2") format("woff2")}
@font-face{font-family:"IRANSans";font-weight:500;font-style:normal;font-display:swap;src:url("../fonts/persian/IRANSans-medium-fanum.woff2") format("woff2")}
@font-face{font-family:"IRYekan";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/persian/IRYekan-regular-fanum.woff") format("woff")}
@font-face{font-family:"IRYekan";font-weight:500;font-style:normal;font-display:swap;src:url("../fonts/persian/IRYekan-medium-fanum.woff2") format("woff2"),url("../fonts/persian/IRYekan-medium-fanum.woff") format("woff")}

:root{
  --itla-body:"YekanBakh","IRANSans",Tahoma,"Segoe UI",sans-serif;
  --itla-head:"Dana","YekanBakh",Tahoma,"Segoe UI",sans-serif;
  --itla-num:"IRANSans","Dana",Tahoma,sans-serif;
  --itla-meta:"IRYekan","YekanBakh",Tahoma,sans-serif;
}

/* 1) body text – Yekan Bakh */
body,body.wp-admin,body.login,
.wp-core-ui .button,.wp-core-ui .button-primary,.wp-core-ui .button-secondary,
input,select,textarea,button,
#wpadminbar,#wpadminbar .ab-item,#wpadminbar .ab-label,#wpadminbar .ab-empty-item,
#adminmenu,#adminmenu a,#adminmenu .wp-menu-name,#adminmenu .wp-submenu a,#adminmenu .awaiting-mod,
.wrap,.wrap p,.wrap td,.wrap th,.wrap label,.wrap li,.notice,.notice p,
.wp-list-table,.wp-list-table td,.wp-list-table th,.tablenav,.subsubsub,
.postbox,.postbox .inside,.form-table th,.form-table td,.description,
.media-modal,.media-frame,.attachment-details,
.editor-styles-wrapper,.block-editor-block-list__layout,.components-button,.components-base-control__label,
.components-panel,.components-popover,.edit-post-sidebar,.interface-interface-skeleton,
.elementor-panel,.elementor-panel input,.elementor-panel select,.elementor-panel textarea,.elementor-control-title,
.elementor-navigator,.elementor-component-tab,.e-form__field label,
.woocommerce-layout,.woocommerce-layout__header,.components-card,
.login form,.login label,.login #nav a,.login #backtoblog a,.login .message,.login #login_error{
  font-family:var(--itla-body)!important;
}

/* 2) titles – Dana */
h1,h2,h3,h4,h5,h6,
.wrap h1,.wrap h2,.postbox .hndle,.postbox-header h2,.widget-top .widget-title h3,
.wp-heading-inline,.page-title-action,.nav-tab,.nav-tab-wrapper a,
#adminmenu .wp-menu-name,#adminmenu .wp-submenu-head,#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,
.components-panel__header,.components-panel__body-title,.edit-post-header,.editor-post-title__input,
.elementor-panel-heading-title,.elementor-panel-menu-item-title,.elementor-panel-category-title,
.wp-core-ui .button,.wp-core-ui .button-primary,.login h1 a{
  font-family:var(--itla-head)!important;
}
.wp-core-ui .button,.wp-core-ui .button-primary,.wp-core-ui .button-secondary{font-weight:500}

/* 3) counters, prices, pagination – IRANSans */
.count,.displaying-num,.update-count,.plugin-count,.pending-count,.awaiting-mod,.comment-count-approved,
.tablenav-pages .current-page,.tablenav-pages .total-pages,.paging-input,
.woocommerce-Price-amount,.amount,.order-total,.column-order_total,.column-price,.column-sku,
.wp-list-table .column-comments,.wp-list-table .column-date,.wp-list-table .column-date abbr,
.misc-pub-section,.misc-pub-curtime,.timestamp,.date,.time{
  font-family:var(--itla-num)!important;
}

/* 4) meta / captions – IRYekan */
.description,.howto,.wp-caption-text,.row-actions,.row-actions a,.wp-list-table .column-author,
.subsubsub,.subsubsub a,.tablenav .displaying-num,#footer-thankyou,#footer-upgrade,#wpfooter,
.update-nag,.notice-alt{
  font-family:var(--itla-meta)!important;
}

/* code stays monospace + LTR */
code,pre,kbd,samp,textarea.code,.CodeMirror,.CodeMirror *,.ace_editor,.ace_editor *,
.wp-editor-area.html-active,#newcontent,.wp-block-code,.wp-block-preformatted{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Courier New",monospace!important;
  direction:ltr;text-align:left;
}
/* Latin-only fields (URLs, e-mail, keys) */
input[type="url"],input[type="email"],input[type="password"],input.code,.ltr,.en-digits{direction:ltr;text-align:left}
input[type="password"]{font-family:ui-monospace,Menlo,Consolas,monospace!important}

/* small RTL polish */
.wrap h1.wp-heading-inline{font-weight:700}
.wp-list-table td,.wp-list-table th{line-height:1.7}
#adminmenu .wp-menu-name{font-size:13.5px}
.login form{border-radius:16px;box-shadow:0 18px 50px rgba(10,26,47,.12)}
.login .button-primary{border-radius:10px}

/* safety net: icon fonts always win (they live on pseudo-elements / .icon classes) */
.dashicons,.dashicons-before:before,[class^="dashicons-"]:before,[class*=" dashicons-"]:before{font-family:dashicons!important}
.eicon,[class^="eicon-"],[class*=" eicon-"]{font-family:eicons!important}
