/* ============================================================================
   UI DENSITY
   ============================================================================
   One lever for how big the whole app is.

   Everything downstream is authored in rem, so changing --ui-density below is
   the only edit needed to make the entire UI denser or looser.  Bump the
   ?version= query on the css links in index.html afterwards or the browser will
   serve you the old file.

     1.0     16.0px  browser default - what the app looked like before
     0.875   14.0px
     0.85    13.6px  current
     0.8125  13.0px

   WHY A PERCENTAGE AND NOT A PIXEL VALUE
   Setting html { font-size: 13.6px } would hard-override a user who has raised
   their browser's default font size for accessibility reasons.  A percentage
   scales whatever they chose, so the lever composes with their preference
   instead of stomping on it.

   WHY :root AND NOT body
   rem resolves against the root element.  Putting this on body would shrink the
   text but leave every rem-based measurement in the app at its old size.

   AUTHORING RULES
   - App chrome and the nine bootstrap-table tabs: convert an existing Npx to
     (N / 16)rem.  Those shrink with the density, which is the point.
   - MAA Failover tab: convert an existing Npx to (N / 13.6)rem.  The failover
     tab is already at the target density, so it is rebased to hold still today
     while the rest of the app comes down to meet it.  It still tracks the lever
     from here on.
   - Stay in px for things that are not type-relative: 1px hairlines,
     border-radius, box-shadow offsets, pointer targets (the failover drag
     handle), and anything a script computes in px.
   ============================================================================ */

:root {
    --ui-density: .85;

    font-size: calc(var(--ui-density) * 100%);

    /* Type scale.  Comments show the rendered px at the density above.
       The four small steps are where the failover tab lives; --fs-base and up
       are where the rest of the app lives.  Both ends move together. */
    --fs-2xs:  .6875rem;   /*  9.35px */
    --fs-xs:   .75rem;     /* 10.20px */
    --fs-sm:   .8125rem;   /* 11.05px */
    --fs-md:   .875rem;    /* 11.90px */
    --fs-base: 1rem;       /* 13.60px */
    --fs-lg:   1.125rem;   /* 15.30px */
    --fs-xl:   1.3rem;     /* 17.68px */
}
