/* == Module header (D6). Purpose/Status are hand-written; Module-Map.py --check verifies the rest. ==
   Purpose:   Canonical brand tokens (one brand colour, page and panel space). Older names for the
              same values are aliases of these; loaded first by every page template.
   Status:    active
   Loaded by: alarm-monitoring.html, bug-report-markup.html, change-password.html,
              customer-portal.html, customer-welcome.html, dashboard.html, files.html,
              fire-inspections.html, inventory.html, login.html, page_styles.py, phone-sign-in.html,
              and 9 more (MODULES.md)
   Replaces:  none
   History:   305, 311, 368, 469
   == end of module header == */
/* BSS 305 (2026-10-15, review O7): brand tokens: the canonical brand tokens. Every older name for the same value (BSS: --bss-primary,
   --accent, --blue, --bss-blue, --bss-page-space, --lf-page-space86; LF: --accent, --lf-page-space86) is an
   alias var(--brand-*, <its old value>), so pages render the same whether or not this file came first.
   Literal colours inside rules are folded screen by screen in later batches, never here. */
@layer app {
    :root {
        --brand-primary: #087fe3;
        --brand-page-space: 16px;
        --brand-panel-space: 20px
    }

    .dark {
        --brand-primary: #58b0ff
    }

    @media(max-width:800px) {
        :root {
            --brand-page-space: 12px;
            --brand-panel-space: 16px
        }
    }

    /* LF 368 / BSS 469 (2026-10-25, brand tokens): the Brothers colours for the stylesheets both suites share. LF's copies
       say var(--brand-ink, <LF red>) and the like; LF leaves these tokens unset, Brothers sets them here, so the same file
       paints each suite in its own brand. The neutral palette (--u-page, --u-card, ...) and the older surface names now
       come from suite-look.css, the same as LogicFortress (BSS 311's copy of them was here).
       - ink: links, focus rings, active tabs, outlines; fill / fill-hover: primary buttons
       - tint: selected rows and soft brand backgrounds; tint-text, line, panel: text, borders and panels on a tint
       - danger-ink / danger-tint: errors and outages stay red; warn-ink: waiting states
       The html[data-ui-page] selector outranks the older :root names in brand-colors.css, which the Tickets, Monitoring,
       Inspections and sign-in pages still load. */
    html[data-ui-page]:root, html[data-ui-page]:root body {
        --brand-ink: #0a66c2;
        --brand-fill: #0a66c2;
        --brand-fill-hover: #08559f;
        --brand-tint: #e4f0fd;
        --brand-tint-text: var(--u-text);
        --brand-line: var(--u-line-strong);
        --brand-panel: var(--u-card);
        --danger-ink: #c43838;
        --danger-tint: #fbe9e9;
        --warn-ink: #977100;
        /* the older Brothers names, read by the Brothers-only stylesheets */
        --bss-primary: var(--brand-ink);
        --bss-primary-hover: var(--brand-fill-hover);
        --bss-selected: var(--brand-tint);
        --bss-danger: var(--danger-ink);
        --bss-danger-soft: var(--danger-tint);
        --bss-warning: var(--warn-ink);
        --blue: var(--brand-ink);
    }
    :root {
        --bss-page-space: var(--brand-page-space);
        --bss-panel-space: var(--brand-panel-space);
    }
    html[data-ui-page].dark, html[data-ui-page].dark body {
        --brand-ink: #6cb8ff;
        --brand-fill: #1f6fc4;
        --brand-fill-hover: #1a63b0;
        --brand-tint: #1d3349;
        --danger-ink: #ff8289;
        --danger-tint: #48282d;
        --warn-ink: #f0bf57;
    }
}
