/*
    Vylor typography overrides that MudBlazor.Typography cannot set (see Theme/Typography/VylorTypography.cs).
    Font names/sizes come from --mud-typography-* variables, not hardcoded values.
    All component-level font rules live here; other CSS files and .razor files must not set fonts.

    1. html, body  - brand body font for non-MudBlazor markup; kerning on (browsers can't do optical kerning,
                     so font-kerning: normal is used). 
    2. .atlas-brand-title - app bar title is the brand "Header" role: Arsenal Bold, 135% leading.
                     Includes var() fallbacks since this class is also used on the pre-Blazor
                     splash screen title in index.html, before --mud-typography-* vars exist.
    3. .mud-tab    - MudBlazor tabs uppercase; brand: Roboto Bold, no ALL CAPS.
    4. inputs      - MudBlazor inputs/labels use Subtitle1 (Paragraph Headline = Bold);.
    5. table headers - MudBlazor table/data grid headers.Roboto 400 and 700 are
                     self-hosted brand: Bold (Paragraph Headline).
    6. menus/alert/autocomplete - MudBlazor components with no built-in font-size;
                     pinned to Body2 size (0.875rem) so they keep their pre-theme size
                     instead of inheriting the new 1rem body default.
    7. .data-grid-blue-header - blue grid headers (CIA grids): caption size, Bold.
    8. navigation  - primary menu text = Body1 size, secondary = Body2 size, group links Bold.
    9. .loading-progress-text - loading screen percentage text: Bold.
*/

html, body {
    font-family: var(--mud-typography-default-family, 'Roboto', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif);
    font-size: var(--mud-typography-default-size, 1rem);
    line-height: var(--mud-typography-default-lineheight, 1.35);
    letter-spacing: var(--mud-typography-default-letterspacing, 0);
    font-kerning: normal;
}

.mud-typography.atlas-brand-title {
    font-family: var(--mud-typography-h1-family, 'Arsenal', 'Roboto', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif);
    font-weight: var(--mud-typography-h1-weight, 700);
    line-height: var(--mud-typography-body1-lineheight, 1.35);
    letter-spacing: 0;
}

.mud-tab {
    font-family: var(--mud-typography-subtitle1-family);
    font-weight: var(--mud-typography-subtitle1-weight);
    font-size: var(--mud-typography-body2-size);
    letter-spacing: 0;
}

.mud-input,
.mud-input > input.mud-input-root,
.mud-input > textarea.mud-input-root,
.mud-input-label,
.mud-select .mud-select-input {
    font-family: var(--mud-typography-body1-family);
    font-weight: var(--mud-typography-body1-weight);
    letter-spacing: 0;
}

.mud-menu-item,
.mud-alert-message,
.mud-autocomplete {
    font-size: var(--mud-typography-body2-size);
}

.mud-table-root .mud-table-head .mud-table-cell,
.mud-table-root .mud-table-head .mud-table-cell .mud-table-cell-content,
.mud-table-root .mud-table-head .mud-table-cell .mud-sort-label {
    font-family: var(--mud-typography-subtitle1-family);
    font-weight: var(--mud-typography-subtitle1-weight);
    letter-spacing: 0;
}

.data-grid-blue-header {
    font-size: var(--mud-typography-caption-size) !important;
    font-weight: var(--mud-typography-subtitle1-weight) !important;
}

.mud-nav-group .mud-nav-link .mud-nav-link-text {
    font-weight: var(--mud-typography-subtitle1-weight);
    font-size: var(--mud-typography-body1-size);
}

.nav-pri-menu-txt {
    font-size: var(--mud-typography-body1-size);
}

.nav-sec-menu-txt {
    font-size: var(--mud-typography-body2-size);
}

.loading-progress-text {
    font-weight: var(--mud-typography-subtitle1-weight, 700);
}
