/* ==========================================================
   Dzongkha typefaces (8.41)
   ----------------------------------------------------------
   The font files are in assets/fonts - the five the Institute
   supplied:  DDC_Uchen.ttf  DDC_Rinzin.ttf  Jomolhari.ttf
              Wangdi_29.ttf  DDC_Uchen_Numbers.ttf
   They are declared by font_head() (app/helpers/theme.php),
   which knows the Dzongkha size set in Settings > Fonts:
     'ISM Dz'               the Dzongkha typeface of the whole
                            system - DDC Uchen unless Settings >
                            Fonts chooses another
     ql-font-uchen / -rinzin / -jomolhari / -wangdi
                            a typeface picked for some words in
                            the rich-text editor
     ql-font-dznum / .dz-num
                            DDC Uchen Numbers: the figures 0-9
                            drawn as Dzongkha numerals
   A font file is only downloaded by a page that uses it.
   ========================================================== */

/* the editor's font list: what each choice is called (.ql-toolbar first, so it wins over Quill's own
   "Sans Serif / Serif / Monospace" labels) */
.ql-toolbar.ql-snow .ql-picker.ql-font { width: 150px; }
/* Wangdi 29 is drawn larger to match the others; its tall stacks need the room */
.ql-font-wangdi { line-height: 2.3; }
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-label::before,
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-item::before { content: 'Normal'; }
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=uchen]::before,
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=uchen]::before { content: 'DDC Uchen'; }
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=rinzin]::before,
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=rinzin]::before { content: 'DDC Rinzin'; }
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=jomolhari]::before,
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=jomolhari]::before { content: 'Jomolhari'; }
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=wangdi]::before,
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=wangdi]::before { content: 'Wangdi 29'; }
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=dznum]::before,
.ql-toolbar.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=dznum]::before { content: 'Numerals \0F21\0F22\0F23'; }

/* ----------------------------------------------------------
   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. Its typeface
   is set by font_head() (the 'ISM Dz' face). */
.ism-dz { line-height: 2; }
