/* Kept in a layer so role styles loaded after sign-in use the same type scale. */
@font-face {
  font-family: "Arimo";
  src: url("/fonts/arimo/Arimo.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Arimo";
  src: url("/fonts/arimo/Arimo-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}
@layer app-typography {
  @media screen {
    :root {
      --app-font: Arial, "Arimo", sans-serif;
      --app-title-size: 17px;
      --app-heading-size: 16px;
      --app-body-size: 15px;
      --app-caption-size: 13px;
      --app-amount-size: 18px;
    }

    :root, body {
      --font: var(--app-font) !important;
    }

    body, body :where(*):not(:where(svg, svg *, pre, pre *, code, code *,
      kbd, kbd *, samp, samp *, math, math *, [contenteditable="true"], [contenteditable="true"] *,
      .material-icons, .material-symbols-outlined, .fa, .fas, .far, .fab)) {
      font-family: var(--app-font) !important;
    }

    body {
      font-size: var(--app-body-size) !important;
      font-weight: 400 !important;
      line-height: 1.45;
    }
    :where(main, article, form, dialog, p, dd, td, input, select, textarea,
      .content, .sp-list, .sp-reminder, .sp-contract, .sp-sbp, .sp-slip) {
      font-size: var(--app-body-size) !important;
    }

    :where(h1, [role="heading"][aria-level="1"], .mobile-section-title, #pageTitle) {
      font-size: var(--app-title-size) !important;
      font-weight: 700 !important;
      line-height: 1.45 !important;
    }
    :where(h2, h3, [role="heading"][aria-level="2"], .page-head h2, #modalTitle) {
      font-size: var(--app-heading-size) !important;
      font-weight: 650 !important;
      line-height: 1.35 !important;
    }
    :where(small, figcaption, .sp-dates small, .sp-reminder small) {
      font-size: var(--app-caption-size) !important;
      font-weight: 400 !important;
    }
    :where(.app-amount, .sp-contract b, .sf-card > div > strong,
      .ib-amount, .bk-lesson-price > b, .ic-price input,
      .balance-amount, .balance-operation-amount, .acc-metric > strong,
      td[data-type="money"], td[data-type="signed-money"],
      .payment p > strong, #data .summary > div > strong) {
      font-size: var(--app-amount-size) !important;
      font-weight: 700 !important;
    }
    :where(.sp-list, .sp-reminder, .sp-contract, .sp-sbp, .sp-slip) {
      line-height: 1.45 !important;
    }
    :where(.sp-dates strong, .sp-reminder strong) {
      font-size: var(--app-body-size) !important;
      font-weight: 700 !important;
    }
    .sp-pay {
      font-size: var(--app-body-size) !important;
      font-weight: 600 !important;
      line-height: 1.45 !important;
    }
    .sp-archive {
      font-size: 14px !important;
      font-weight: 400 !important;
    }
  }
}
