/* The variable overrides: Bootstrap's accent and the five Syncfusion colours that carry it.
 *
 * Split out of nimbus-tokens.css because the two files have different reach. The component
 * rules over there reproduce what the removed theme provider wrote, and the provider wrote
 * them on *every* page - including the landing page, because its generated block sat in the
 * body and beat every stylesheet in the head. These variables are the opposite case: the
 * provider never emitted .text-{variant} or link colours, so the landing page has always
 * shown its own template blue (#05f) there, and pulling this file in would silently recolour
 * seventeen .text-primary and every link on the public site.
 *
 * Loaded by NimbusAppHead only. ORDER MATTERS: after bootstrap.min.css and after the
 * Syncfusion theme, because it overrides variables both declare on :root at the same
 * specificity, where the later rule wins.
 *
 * Values are measured, not guessed. Every colour below was either read out of the generated
 * <style id="b-theme-styles"> block of the running application or computed with the
 * generator's own formulas and then checked against it:
 *     foreground       = white below YIQ 150, else #343A40
 *     hover background = channel * 0.85                     (all of these truncate)
 *     hover border     = channel + (255 - channel) * 0.20
 *     active background= channel * 0.80
 *     active border    = channel + (255 - channel) * 0.25
 *     focus ring       = channel * 0.85 + foreground * 0.15, at half alpha
 * Ten spot checks matched to the byte across three variants, and #235695 * 0.80 = #1C4477 is
 * the value App.razor already hardcodes as the Sentry accent.
 *
 * Two states are deliberately not copied. The generator makes :focus darken the button to its
 * hover colours on top of drawing the ring; Bootstrap 5.3 draws the ring alone, and a focus
 * that looks like a hover is worth losing. Its ring is also .25rem rather than .2rem, which is
 * Bootstrap's own default. Both are named in the pull request as visible changes.
 *
 * The button overrides sit on component classes, not on :root. Bootstrap 5.3 declares
 * --bs-btn-* on .btn/.btn-{variant}, so a :root override would have no effect at all.
 *
 * While the provider was still installed its generated block sat in the body and won over
 * this file. That was intended: the values here took over the moment it went (BZ-37), and
 * ThemePaletteTests now measures them on the running application so a difference cannot go
 * unnoticed.
 */

:root {
    /* Bootstrap. Declared by bootstrap.min.css on ":root,[data-bs-theme=light]", which has the
       same specificity as a bare :root, so this wins on order alone. */
    --bs-primary: #235695;
    --bs-primary-rgb: 35, 86, 149;
    --bs-link-color: #235695;
    --bs-link-color-rgb: 35, 86, 149;
    --bs-link-hover-color: #1C4477;

    /* Syncfusion. This is the complete set: of the 592 variable definitions in
       bootstrap5.3.css exactly these five carry the Bootstrap accent blue outside .e-dark-mode,
       which mirrors them and is deliberately left alone - Nimbus never sets that class, and
       recolouring a dark palette we do not render would be guesswork. Two rules keep the blue
       as a literal (.e-daterangepicker start/end button, .e-spreadsheet selection); neither
       component is used here.

       Expect less from this than the plan did. The --color-sf-primary family barely feeds the
       theme: it has one direct var() use and 14 derived definitions, so what visibly changes
       is grid and list selection and the pressed state of flyouts. The rest of the theme's
       colour variables do not descend from it.

       Only reachable at all since the theme moved to bootstrap5.3.css in BZ-01: the old
       bootstrap5.css hardcoded #0d6efd 566 times and resolved nothing through variables. */
    --color-sf-primary: rgba(35, 86, 149, 1);
    --color-sf-primary-shadow: 35, 86, 149;
    --color-sf-primary-bg-color-disabled: rgba(35, 86, 149, .65);
    --color-sf-content-bg-color-selected: #235695;
    --color-sf-flyout-bg-color-pressed: #235695;
}
