/* Local typography for Arabic and English. Icon fonts keep their own families. */
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto-kufi-arabic/NotoKufiArabic-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto-kufi-arabic/NotoKufiArabic-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto-kufi-arabic/NotoKufiArabic-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto-kufi-arabic/NotoKufiArabic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto-kufi-arabic/NotoKufiArabic-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto-kufi-arabic/NotoKufiArabic-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto-kufi-arabic/NotoKufiArabic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto-kufi-arabic/NotoKufiArabic-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto-kufi-arabic/NotoKufiArabic-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --site-font: 'Noto Kufi Arabic';
  --bs-font-sans-serif: 'Noto Kufi Arabic';
  --bs-body-font-family: 'Noto Kufi Arabic';
  --font: 'Noto Kufi Arabic';
  --font-heading: 'Noto Kufi Arabic';
  --auth-font: 'Noto Kufi Arabic';
}
html:root body {
  font-family: 'Noto Kufi Arabic' !important;
  font-size: 15px !important;
  font-weight: 400;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}
/* Do not set font-family on ::before/::after, or on icon-font elements. */
html:root body *:not(i):not([class^='bx']):not([class*=' bx']):not([class^='fa']):not([class*=' fa']):not([class^='cs-']):not([class*=' cs-']):not([class^='ti-']):not([class*=' ti-']):not([class*='icon']):not(.material-icons):not(.material-symbols-outlined):not(.glyphicon) {
  font-family: 'Noto Kufi Arabic' !important;
}
html:root body :is(h1, .h1):not(.credentialing-page *) { font-size: clamp(24px, 2.2vw, 30px) !important; }
html:root body :is(h2, .h2):not(.credentialing-page *) { font-size: clamp(22px, 2vw, 26px) !important; }
html:root body :is(h3, .h3):not(.credentialing-page *) { font-size: 22px !important; }
html:root body :is(h4, .h4):not(.credentialing-page *) { font-size: 20px !important; }
html:root body :is(h5, .h5):not(.credentialing-page *) { font-size: 18px !important; }
html:root body :is(h6, .h6):not(.credentialing-page *) { font-size: 16px !important; }
html:root body :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6):not(.credentialing-page *) {
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0;
}
html:root body :is(p, .lead, .card-text, .alert, .list-group-item):not(.credentialing-page *) { font-size: 15px; line-height: 1.9; }
html:root body :is(table th, table td, .form-label, label, .form-control, .form-select, .select2-selection, .select2-results__option, .dropdown-item, .menu-link, .nav-link, .btn, button, input, select, textarea):not(.credentialing-page *) {
  font-size: 14px !important;
  line-height: 1.8;
  letter-spacing: 0;
}
html:root body :is(.form-label, label, table th):not(.credentialing-page *) { font-weight: 600; }
html:root body :is(.btn, button):not(.credentialing-page *) { font-weight: 600; }
html:root body :is(.form-text, small, .small):not(.credentialing-page *) { font-size: 13px !important; line-height: 1.8; }
html:root body :is(.badge, .menu-header-text):not(.credentialing-page *) { font-size: 12px !important; line-height: 1.6; }
html:root body :is(.form-control, .form-select):not(.credentialing-page *):not(.form-control-sm):not(.form-select-sm):not(textarea) { min-height: 44px; }
@media (max-width: 767px) {
  html:root body { font-size: 15px !important; }
  html:root body :is(.form-control, .form-select, input, select, textarea):not(.credentialing-page *) { font-size: 16px !important; }
  html:root body :is(h1, .h1):not(.credentialing-page *) { font-size: 24px !important; }
  html:root body :is(h2, .h2):not(.credentialing-page *) { font-size: 22px !important; }
}
@media print {
  html:root body { font-size: 11pt !important; }
  html:root body :is(table th, table td):not(.credentialing-page *) { font-size: 10pt !important; }
}

/* Sidebar labels have their own font rules in the template theme. */
html:root body #layout-menu .menu-inner .menu-link {
  min-height: 44px;
  padding-block: 8px !important;
  padding-inline: 12px !important;
  gap: 8px;
  align-items: center;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  text-align: start;
}
html:root body #layout-menu .menu-inner .menu-link > div,
html:root body #layout-menu .menu-inner .menu-link > span:not(.menu-icon):not(.badge) {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal;
  text-align: start;
}
html:root body #layout-menu .menu-sub .menu-link,
html:root body #layout-menu .menu-sub .menu-link > div,
html:root body #layout-menu .menu-sub .menu-link > span:not(.menu-icon):not(.badge) {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}
html:root body #layout-menu .menu-inner .menu-icon {
  flex: 0 0 20px;
  width: 20px;
  margin-inline: 0 !important;
  font-size: 20px !important;
  line-height: 1;
}
html:root body #layout-menu .menu-inner .menu-toggle {
  padding-inline-end: 28px !important;
}

/* Visible 12px scrollbars, including Arabic pages that previously hid them. */
html:root,
html:root body,
html:root body * {
  scrollbar-width: auto !important;
  -ms-overflow-style: auto !important;
}
html:root::-webkit-scrollbar,
html:root body::-webkit-scrollbar,
html:root body *::-webkit-scrollbar {
  display: block !important;
  visibility: visible !important;
  width: 12px !important;
  height: 12px !important;
}
html:root::-webkit-scrollbar-thumb,
html:root body::-webkit-scrollbar-thumb,
html:root body *::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  background-color: #7d93a5;
  background-clip: padding-box;
}
html:root::-webkit-scrollbar-thumb:hover,
html:root body::-webkit-scrollbar-thumb:hover,
html:root body *::-webkit-scrollbar-thumb:hover { background-color: #526f84; }
/* The menu uses PerfectScrollbar rather than the browser's native rail. */
html:root body #layout-menu .ps--active-y > .ps__rail-y {
  display: block !important;
  visibility: visible !important;
  width: 12px !important;
  opacity: 1 !important;
  background: rgba(146, 170, 190, .12) !important;
}
html:root body #layout-menu .ps--active-y > .ps__rail-y > .ps__thumb-y {
  display: block !important;
  visibility: visible !important;
  width: 8px !important;
  right: 2px !important;
  left: auto !important;
  border-radius: 8px;
  background-color: #8ca2b5 !important;
}
html:root body #layout-menu .ps--active-y > .ps__rail-y:hover > .ps__thumb-y {
  background-color: #bdcad6 !important;
}
