/* Shared readable type scale. Keep the Yandex Text family used across Gazzachas. */
@font-face {
  font-family: "YS Text";
  src: url("https://yastatic.net/s3/home/fonts/ys/3/text-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "YS Text";
  src: url("https://yastatic.net/s3/home/fonts/ys/3/text-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "YS Text";
  src: url("https://yastatic.net/s3/home/fonts/ys/3/text-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
}

:root {
  --gzc-font-sans: "YS Text", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  --gzc-font-caption: 14px;
  --gzc-font-body: 15px;
  --gzc-font-control: 15px;
  --gzc-font-section: 20px;
  --gzc-font-page-title: 28px;
}

html body {
  font-family: var(--gzc-font-sans) !important;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

html body :is(button, input, select, textarea) {
  font-family: inherit;
}

/* A page may keep its own sizing/layout, but it must not silently switch to
   SF Pro, Segoe, Arial, or a second Yandex family. Preserve icon-font glyphs. */
html body :not(.ph):not([class*="ph-"]):not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.material-icons):not([class*="material-symbols"]):not([class^="icon-"]) {
  font-family: var(--gzc-font-sans) !important;
}

html body svg text,
html body svg tspan {
  font-family: var(--gzc-font-sans) !important;
}
