/* ==========================================================
   DDC Uchen - Dzongkha Development Commission Uchen
   ----------------------------------------------------------
   Put the font files in  assets/fonts/  and this file finds
   them.  Any of these names work:

       DDCUchen.woff2   (best - smallest and fastest)
       DDCUchen.woff
       DDCUchen.ttf     (the file as supplied by the DDC)

   If a member of staff already has DDC Uchen installed on
   their own computer, the local() entries below pick it up
   and nothing needs to be uploaded at all.
   ========================================================== */

@font-face {
  font-family: 'DDC Uchen';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('DDC Uchen'),
       local('DDCUchen'),
       local('DDC_Uchen'),
       url('../fonts/DDCUchen.woff2') format('woff2'),
       url('../fonts/DDCUchen.woff')  format('woff'),
       url('../fonts/DDCUchen.ttf')   format('truetype');
}

/* Bold face - falls back to the regular file if no bold is supplied */
@font-face {
  font-family: 'DDC Uchen';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('DDC Uchen Bold'),
       local('DDCUchenBold'),
       url('../fonts/DDCUchenBold.woff2') format('woff2'),
       url('../fonts/DDCUchenBold.ttf')   format('truetype'),
       url('../fonts/DDCUchen.woff2')     format('woff2'),
       url('../fonts/DDCUchen.ttf')       format('truetype');
}

/* ----------------------------------------------------------
   Dzongkha-only face.  Identical file, but restricted to the
   Tibetan Unicode block, so Dzongkha text renders in Uchen
   while English keeps the interface font.
   ---------------------------------------------------------- */
@font-face {
  font-family: 'DDC Uchen Dzongkha';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0F00-0FFF, U+FE00-FE0F;
  src: local('DDC Uchen'),
       local('DDCUchen'),
       local('DDC_Uchen'),
       url('../fonts/DDCUchen.woff2') format('woff2'),
       url('../fonts/DDCUchen.woff')  format('woff'),
       url('../fonts/DDCUchen.ttf')   format('truetype');
}
@font-face {
  font-family: 'DDC Uchen Dzongkha';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0F00-0FFF, U+FE00-FE0F;
  src: local('DDC Uchen Bold'),
       local('DDCUchenBold'),
       url('../fonts/DDCUchenBold.woff2') format('woff2'),
       url('../fonts/DDCUchenBold.ttf')   format('truetype'),
       url('../fonts/DDCUchen.woff2')     format('woff2'),
       url('../fonts/DDCUchen.ttf')       format('truetype');
}

/* ----------------------------------------------------------
   Uchen sits on a heavier baseline than Latin type, so it
   needs a little more room to stay legible.
   ---------------------------------------------------------- */
body.uchen-all,
body.uchen-all .form-control,
body.uchen-all .form-select,
body.uchen-all .btn,
body.uchen-all .table,
body.uchen-all .badge {
  line-height: 1.75;
}
body.uchen-all .table > :not(caption) > * > * { padding-top: .62rem; padding-bottom: .62rem; }
body.uchen-all .side-list a { padding-top: .58rem; padding-bottom: .58rem; }
body.uchen-all .btn { padding-top: .42rem; padding-bottom: .42rem; }
body.uchen-all .doc table th,
body.uchen-all .doc table td { padding: 8px 8px; line-height: 1.65; }

/* Places where the Latin interface font must be kept whatever
   the setting: monospaced codes, numbers in tight table cells. */
.font-monospace,
.force-latin {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace !important;
}

/* An element known to hold Dzongkha - used by the letterhead lines and the
   document designer, where the text is typed by the Administrator. */
.ism-dz {
  font-family: 'DDC Uchen', 'Jomolhari', 'Noto Serif Tibetan', 'Microsoft Himalaya', serif;
  line-height: 2;
}
