/* Engineering Center — unified administration typography (v1.3.0).
 * Same Cairo family in Arabic and English. Falls back consistently to Tahoma.
 * Scope: wp-admin only; no visitor-facing styles or Gutenberg content canvas.
 */
body.wp-admin {
    --ehc-ui-font: 'Cairo', Tahoma, Arial, sans-serif;
    font-family: var(--ehc-ui-font) !important;
}

/* Native management screens, menus, tables, buttons and form controls. */
body.wp-admin #wpwrap,
body.wp-admin #wpadminbar,
body.wp-admin #adminmenu,
body.wp-admin #wpcontent,
body.wp-admin .wrap,
body.wp-admin .wp-core-ui,
body.wp-admin .wp-list-table,
body.wp-admin .postbox,
body.wp-admin .notice,
body.wp-admin .tablenav,
body.wp-admin .wp-filter,
body.wp-admin .components-panel,
body.wp-admin .components-popover,
body.wp-admin .components-modal__frame,
body.wp-admin :is(h1,h2,h3,h4,h5,h6,p,label,legend,summary,blockquote,table,caption,th,td),
body.wp-admin :is(button,input,select,textarea,option),
body.wp-admin :is(.button,.button-primary,.button-secondary,.page-title-action,.components-button) {
    font-family: var(--ehc-ui-font) !important;
}

/* Custom dashboard: cover text nodes in nested UI elements, while leaving
 * SVG icons, Dashicons and other icon fonts to draw with their own faces. */
body.wp-admin .ehc-app,
body.wp-admin .ehc-app :is(h1,h2,h3,h4,h5,h6,p,a,button,input,textarea,select,option,label,small,strong,em,th,td,legend,summary),
body.wp-admin .ehc-app :is(.ehc-nav-item-text,.ehc-brand-text,.ehc-toolbar-title,.ehc-field-label,.ehc-shortcut,.ehc-search-item) {
    font-family: var(--ehc-ui-font) !important;
}

/* Icon fonts are intentionally excluded from the selectors above. */
body.wp-admin :is(code,pre,kbd,samp,.CodeMirror,.ace_editor,.monaco-editor) {
    font-family: monospace !important;
}
