/* The portal's light theme, "paper" (diary 0186, chosen over "soft"): warm off-white page, warm white
   cards, softer warm neutrals and lighter strokes, all AA. The brand colour is not here:
   ThemeController.BrandColorHex (#2B6FAB) regenerates the --colorBrand* ramp from one hex.

   FluentUI writes its tokens into an adopted stylesheet as `html { … }` (0,0,1); :root (0,1,0)
   wins without !important. Linked right after app.css in App.razor. */
:root {
    --mercuryPageBackground: #faf8f4;
    --colorBrandBackground2: #e0e6ee;

    --colorNeutralForeground1: #2f2b26;
    --colorNeutralForeground1Hover: #2f2b26;
    --colorNeutralForeground1Pressed: #2f2b26;
    --colorNeutralForeground1Selected: #2f2b26;
    --colorNeutralForeground1Static: #2f2b26;
    --colorNeutralForeground2: #4b463f;
    --colorNeutralForeground2Hover: #2f2b26;
    --colorNeutralForeground2Pressed: #2f2b26;
    --colorNeutralForeground2Selected: #2f2b26;
    --colorNeutralForeground2Link: #4b463f;
    --colorNeutralForeground2LinkHover: #2f2b26;
    --colorNeutralForeground2LinkPressed: #2f2b26;
    --colorNeutralForeground2LinkSelected: #2f2b26;
    --colorNeutralForeground3: #625c54;
    --colorNeutralForeground3Hover: #4b463f;
    --colorNeutralForeground3Pressed: #4b463f;
    --colorNeutralForeground3Selected: #4b463f;
    --colorNeutralForeground4: #6e6860;
    --colorNeutralForeground5: #625c54;
    --colorNeutralForeground5Hover: #2f2b26;
    --colorNeutralForeground5Pressed: #2f2b26;
    --colorNeutralForeground5Selected: #2f2b26;
    --colorNeutralForegroundDisabled: #bdb7ad;

    --colorNeutralBackground1: #fffefb;
    --colorNeutralBackground1Hover: #f7f4ee;
    --colorNeutralBackground1Pressed: #e6e1d7;
    --colorNeutralBackground1Selected: #efebe3;
    --colorNeutralBackground2: #fcfaf6;
    --colorNeutralBackground2Hover: #f3efe8;
    --colorNeutralBackground2Pressed: #e0dbd1;
    --colorNeutralBackground2Selected: #e9e4db;
    --colorNeutralBackground3: #f4f1ea;
    --colorNeutralBackground3Hover: #ede9e1;
    --colorNeutralBackground3Pressed: #dcd7cc;
    --colorNeutralBackground3Selected: #e5e0d7;
    --colorNeutralBackground4: #f0ece4;
    --colorNeutralBackground4Hover: #f7f4ee;
    --colorNeutralBackground4Pressed: #f4f1ea;
    --colorNeutralBackground4Selected: #fffefb;
    --colorNeutralBackground5: #ebe7de;
    --colorNeutralBackground6: #e5e0d6;
    --colorNeutralBackground8: #fdfbf8;
    --colorNeutralBackgroundDisabled: #f3f0ea;
    --colorNeutralBackgroundDisabled2: #fffefb;
    --colorSubtleBackgroundHover: #f4f1ea;
    --colorSubtleBackgroundPressed: #e5e0d7;
    --colorSubtleBackgroundSelected: #efebe3;

    --colorNeutralStroke1: #ddd7cc;
    --colorNeutralStroke1Hover: #d2cbbf;
    --colorNeutralStroke1Pressed: #bfb8ab;
    --colorNeutralStroke1Selected: #c9c2b6;
    --colorNeutralStroke2: #ebe6dd;
    --colorNeutralStroke3: #f4f0e9;
    --colorNeutralStroke4: #efebe3;
    --colorNeutralStroke4Hover: #e6e1d7;
    --colorNeutralStroke4Pressed: #dcd6cb;
    --colorNeutralStroke4Selected: #efebe3;
    --colorNeutralStrokeSubtle: #ebe6dd;
    --colorNeutralStrokeDisabled: #e6e1d7;
    --colorNeutralStrokeAccessible: #6f685f;
    --colorNeutralStrokeAccessibleHover: #635c54;
    --colorNeutralStrokeAccessiblePressed: #574f48;
}

/* Surfaces: the page is off-white, what sits on it is a card. FluentUI has no page-background
   token apart from Background1, which is also every input's and dialog's fill. html:root keeps the
   specificity these rules had in the sandbox, where they beat the layout's own background. */
html:root body,
html:root [area="content"] {
    background-color: var(--mercuryPageBackground);
}

html:root table.fluent-data-grid {
    background-color: var(--colorNeutralBackground1);
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
}
