/*
 * Béèrè brand theme: matches the application colours to the Béèrè logo.
 * Load AFTER beere.css (it only redefines tokens and the brand mark).
 * The high-contrast theme is left untouched, and workspace brand colours still win in the light theme.
 */
:root {
    --kl-primary: #01699a;
    --kl-primary-hover: #01557f;
    --kl-primary-press: #014466;
    --kl-on-primary: #ffffff;
    --kl-primary-tint: #e4f4f8;
    --kl-navy: #022560;
    --kl-accent-1: #00d1c9;
    --kl-gradient: linear-gradient(135deg, #022560 0%, #01699a 55%, #00d1c9 100%);

    --kl-info-bg: #e4f4f8;
    --kl-warning: #92400e;
    --kl-danger: #b91c1c;

    --kl-bg: #f3f6fa;
    --kl-surface: #ffffff;
    --kl-surface-2: #f6f9fc;
    --kl-border: #dde4ee;
    --kl-border-strong: #c3cede;
    --kl-text: #101b33;
    --kl-text-2: #4a5872;
    --kl-text-muted: #5c6a83;
    --kl-link: #01699a;
    --kl-focus: #01699a;
}

:root[data-theme="dark"] {
    --kl-primary: #1fd6ce;
    --kl-primary-hover: #52e1da;
    --kl-primary-press: #85eae5;
    --kl-on-primary: #01183f;
    --kl-primary-tint: rgba(31, 214, 206, .14);
    --kl-info-bg: rgba(31, 214, 206, .14);
    --kl-warning: #fbbf24;
    --kl-danger: #f87171;
    --kl-bg: #09101f;
    --kl-surface: #121c33;
    --kl-surface-2: #192541;
    --kl-border: #263557;
    --kl-border-strong: #384a73;
    --kl-text: #e9eef8;
    --kl-text-2: #bcc8de;
    --kl-text-muted: #9aa8c0;
    --kl-link: #5fe3dd;
    --kl-focus: #5fe3dd;
}

:root[data-theme="light"] { --bs-link-color-rgb: 1, 105, 154; }
:root[data-theme="dark"] { --bs-link-color-rgb: 95, 227, 221; }

/* Sign-in side panel: deep navy gradient so white text stays readable everywhere */
.auth-side { background: linear-gradient(135deg, #011a45 0%, #022560 55%, #01557f 100%); }
.auth-logo { height: 44px; width: auto; align-self: flex-start; }
.auth-pillars { list-style: none; padding: 0; margin: 1.25rem 0; max-width: 42ch; }
.auth-pillars li { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 1rem; align-items: baseline; margin-bottom: .75rem; opacity: .9; }
.auth-pillars strong { color: #00d1c9; }
@media (max-width: 480px) { .auth-pillars li { grid-template-columns: 1fr; } }
:root[data-theme="contrast"] .auth-side { background: #000; }

/* Logo image used in place of the drawn icon: <img class="brand-logo" src="~/img/beere-app-icon.svg" alt=""> */
.brand .brand-logo { width: 32px; height: 32px; max-width: 32px; flex: none; }
.platform .brand .brand-logo { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }

/* Chart series in brand order (Navy, Lagoon). The brand defines no dark palette: dark uses Aqua and Amber from the
   same set so bars stay visible; high contrast uses yellow and white. Series are always labelled in a legend. */
:root { --sv-chart-1: #022560; --sv-chart-2: #009ab9; }
:root[data-theme="dark"] { --sv-chart-1: #00d1c9; --sv-chart-2: #d97706; }
:root[data-theme="contrast"] { --sv-chart-1: #ffff00; --sv-chart-2: #ffffff; }
