/* 三个工程共用同一字体族，字重分别对应 Regular、Medium、Bold。 */
@font-face {
  font-family: 'HOS Sans';
  src: url('./SourceHanSansCN-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HOS Sans';
  src: url('./SourceHanSansCN-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HOS Sans';
  src: url('./SourceHanSansCN-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --hos-font-family: 'HOS Sans', sans-serif;
  --font-family: var(--hos-font-family);
  font-family: var(--hos-font-family);
}

body {
  font-family: var(--hos-font-family);
  font-weight: 400;
}

button,
input,
textarea,
select,
pre,
code,
kbd,
samp {
  font-family: var(--hos-font-family);
}

/* 覆盖第三方控件的文字字体，保留 Element/PrimeIcons 等图标字体。 */
:root .el-button,
:root .el-input__inner,
:root .el-textarea__inner,
:root .p-component,
:root .leaflet-container,
:root .leaflet-tooltip,
:root .leaflet-popup-content-wrapper,
:root .ql-container,
:root .ql-snow .ql-picker,
:root .ql-editor .ql-font-serif,
:root .ql-editor .ql-font-monospace,
:root .CodeMirror,
:root .g2-tooltip {
  font-family: var(--hos-font-family);
}
