/*
 * Kalimati — system-wide font.
 * Loaded LAST so it overrides the font-family declared by bootstrap.min.css,
 * matrix-style.css, matrix-login.css, select2.css and jquery.gritter.css.
 * Icon fonts (FontAwesome) and <code>/<pre> are deliberately left alone.
 */

@font-face {
  font-family: 'Kalimati';
  src: url('../font/kalimati/Kalimati-Regular.woff2') format('woff2'),
       url('../font/kalimati/Kalimati-Regular.woff') format('woff'),
       url('../font/kalimati/Kalimati-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Kalimati ships a single weight; let the browser synthesise bold/italic
   so <strong>, <th> and headings keep their emphasis. */
@font-face {
  font-family: 'Kalimati';
  src: url('../font/kalimati/Kalimati-Regular.woff2') format('woff2'),
       url('../font/kalimati/Kalimati-Regular.woff') format('woff'),
       url('../font/kalimati/Kalimati-Regular.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

html,
body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
.btn,
.form-control,
.alert,
.label,
.badge,
.nav,
.navbar,
.dropdown-menu,
.modal,
.modal-title,
.popover,
.tooltip,
.table,
.table th,
.table td,
.widget-title h5,
.breadcrumb,
.pagination,
.dataTables_wrapper,
.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate,
.select2-container,
.select2-container .select2-choice,
.select2-drop,
.select2-results,
.select2-search input,
.gritter-item,
.gritter-title,
.datepicker,
.nepali-date-picker,
.ui-widget,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
  font-family: 'Kalimati', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

/* Icon fonts must keep their own family or the glyphs turn into boxes. */
[class^="icon-"],
[class*=" icon-"],
[class^="fa-"],
[class*=" fa-"],
.fa,
.icon,
.glyphicon {
  font-family: FontAwesome !important;
}

/* …but a button that merely contains an icon should still print its label in Kalimati. */
.btn [class^="icon-"],
.btn [class*=" icon-"],
.btn .fa {
  font-family: FontAwesome !important;
}

code,
pre,
kbd,
samp,
.hljs {
  font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;
}

/* Devanagari sits taller than Latin — a little extra leading keeps rows readable. */
body {
  line-height: 1.5;
}

.table th,
.table td {
  line-height: 1.45;
}
