/*
 * Overrides for design tokens declared by upstream packages
 * (DHCS.MESMD.Lib.UI, MudBlazor) whose defaults do not meet DPSG
 * typography requirements. Each entry is removed when the upstream
 * package publishes a compliant default.
 *
 * WCAG 2.1 AAA 1.4.8 / SiteImprove: paragraph line-height ≥ 1.5 × font-size.
 * Mud variable suffix is `lineheight` (see MudBlazor .mud-typography-* rules).
 *
 * `!important` is required on `--mud-typography-*` declarations
 * because MudThemeProvider injects an inline `:root { ... }` style
 * block at runtime, after this linked stylesheet, so cascade order
 * favours the upstream defaults. MudBlazor's own declarations do
 * not use `!important`, so this is sufficient.
 */

:root {
    --dhcs-font-family-default: var(--dhcs-font-family-heading);

    --mud-typography-default-family: var(--dhcs-font-family-heading) !important;
    --mud-typography-body1-family: var(--dhcs-font-family-heading) !important;
    --mud-typography-body2-family: var(--dhcs-font-family-heading) !important;
    --mud-typography-subtitle1-family: var(--dhcs-font-family-heading) !important;
    --mud-typography-subtitle2-family: var(--dhcs-font-family-heading) !important;
    --mud-typography-caption-family: var(--dhcs-font-family-heading) !important;
    --mud-typography-h6-family: var(--dhcs-font-family-heading) !important;

    --mud-typography-h2-weight: 700 !important;

    --mud-typography-h3-size: 1.25rem !important;
    --mud-typography-h4-size: 1.25rem !important;

    --mud-typography-body1-lineheight: 1.5 !important;
    --mud-typography-body2-lineheight: 1.5 !important;
    --mud-typography-subtitle1-lineheight: 1.5 !important;
    --mud-typography-subtitle2-lineheight: 1.5 !important;
    --mud-typography-caption-lineheight: 1.5 !important;
}
