/* Public Sans: self-hosted under SIL OFL 1.1; see /fonts/public-sans/OFL.txt. */
@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-Thin.woff2') format('woff2');
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-ThinItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-ExtraLight.woff2') format('woff2');
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-ExtraLightItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-Light.woff2') format('woff2');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-LightItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-Italic.woff2') format('woff2');
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-Medium.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-MediumItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-SemiBold.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-SemiBoldItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-Bold.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-BoldItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-ExtraBold.woff2') format('woff2');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-ExtraBoldItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-Black.woff2') format('woff2');
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/public-sans/PublicSans-BlackItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 900;
    font-display: swap;
}

:root {
    --app-font-family: "Public Sans", "Segoe UI", Arial, sans-serif;
}

body {
    font-family: var(--app-font-family) !important;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Form controls and library widgets do not always inherit the document font. */
input, select, textarea, button, optgroup,
.btn, .form-control, .dropdown-menu, .tooltip, .popover,
.select2-container, .swal2-popup, .swal-modal, .daterangepicker {
    font-family: var(--app-font-family) !important;
}

/* Shared application typography.
   This follows the Site Hierarchy rows: clear 13px primary text, compact
   11px supporting text, and medium weight only where emphasis is useful. */
#main-content,
#main-content .content,
#main-content .container-fluid,
.modal,
.swal2-container {
    font-family: var(--app-font-family) !important;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

#main-content :is(p, li, td, .card-body, .modal-body),
.modal :is(p, li, td, .modal-body),
.swal2-container .swal2-html-container {
    font-family: var(--app-font-family) !important;
    font-weight: 600;
}

#main-content :is(label, th, .form-label, .control-label),
.modal :is(label, th, .form-label, .control-label) {
    font-family: var(--app-font-family) !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

#main-content :is(input, select, textarea, .form-control, .select2-selection),
.modal :is(input, select, textarea, .form-control, .select2-selection) {
    font-family: var(--app-font-family) !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

#main-content :is(button, .btn, .dropdown-item, .page-link),
.modal :is(button, .btn, .dropdown-item),
.swal2-container :is(button, .swal2-actions button) {
    font-family: var(--app-font-family) !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

#main-content :is(small, .text-muted, .help-text, .form-text, .card-subtitle),
.modal :is(small, .text-muted, .help-text, .form-text, .card-subtitle) {
    font-family: var(--app-font-family) !important;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
}

#main-content table td,
.modal table td {
    font-size: 12px;
    font-weight: 400;
}

#main-content :is(h1, h2, h3, h4, h5, h6, .card-title, .modal-title),
.modal :is(h1, h2, h3, h4, h5, h6, .card-title, .modal-title),
.swal2-container .swal2-title {
    font-family: var(--app-font-family) !important;
}

/* Icon elements and their pseudo-elements keep their own font families. */
