/* Rev.01.02 — preserve the terminal's body-level glyph measurement helpers. */
@font-face { font-family: RoboLabVazirmatn; src: url('scratch/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: RoboLabVazirmatn; src: url('scratch/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: RoboLabMono; src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: RoboLabMono; src: url('fonts/JetBrainsMono-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --font-ui: RoboLabVazirmatn, Tahoma, sans-serif;
  --ui-font: var(--font-ui);
  /* Old UI labels used --font-mono; now labels and digits share the UI face. */
  --font-mono: var(--font-ui);
  --font-code: RoboLabMono, RoboLabVazirmatn, monospace;
}
html, body { font-family: var(--font-ui); }
.xterm { font-family: var(--font-code); font-variant-ligatures: none; }
/* xterm also creates unclassed measurement helpers directly under body.
   Respect their explicit code font and let their children inherit it. */
body :where(div, span, p, a, label, button, input, select, option, textarea,
  h1, h2, h3, h4, h5, h6, strong, b, small, em, li, td, th, summary, legend,
  pre, code, kbd, output):not(.monaco-editor):not(.monaco-editor *):not(.xterm):not(.xterm *):not([style*="RoboLabMono"]):not([style*="RoboLabMono"] *):not([class*="codicon"]) {
  font-family: var(--font-ui) !important;
}
pre, code, kbd { font-variant-ligatures: none; }
/* Blockly measures computed styles; include its SVG labels and body portals. */
.blocklyText, .blocklyFlyoutLabelText, .blocklyHtmlInput,
.scratchCommentText, .scratchCommentTextarea, .blocklyMenu,
.blocklyMenuItem, .blocklyTreeLabel, .blocklyToolboxCategoryLabel,
.scratchColourPickerLabel, .scratchNotePickerKeyLabel {
  font-family: var(--font-ui) !important;
}
