/* ============================================================
   BeapBeap app design TOKENS: the design-system :root block, moved out of design-system.css whole
   (XA-b619a5c2f4) so a page that does not load the component classes can still share the colours.
   design-system.css and messaging.css (the Layout = null message pages) both @import it.
   Never copy one of these tokens elsewhere. (help-mode.css and the marketing pages keep their own.)
   XA-35e7acec37: --bb-font and --themeFont name Inter, so this file loads Inter itself: a page that links only
   the tokens gets the face they name (the @import must stay before the first rule).
   ============================================================ */

@import url("../fonts/fonts.css");

:root {
    /* Colors */
    --bb-primary: #0F2B46;
    --bb-primary-hover: #1B4066;
    --bb-accent: #1B4066;
    --bb-focus: #2563eb;          /* keyboard focus ring (XA-d392be224d): the blue the dialer hold controls always used */
    --bb-accent-light: var(--r-purple-soft);
    --bb-text: #0B1B2B;
    --bb-text-secondary: #44566A;
    --bb-text-muted: var(--bb-text-secondary);
    --bb-border: #ECECEF;
    --bb-border-hover: #D4D4D8;
    --bb-bg: #F2F6F9;
    --bb-bg-card: #FFFFFF;
    /* XA-35e7acec37 (bigboy CHANGES 9dfeebf136): THE ONE HOME of the Harbor teal accent pair (Justin's A on XA-6de6755366).
       It lived in theme-beta.css :root while the legacy palette below pointed at status green as a stand-in; theme-beta.css
       now @imports this file, so every page that links either file reads the same values. Token names kept for consumers. */
    --r-purple: #0F766E;
    --r-purple-soft: #D9F7F1;
    --success: #12875A;           /* status green, XA-35e7acec37: its own colour, never the teal brand accent */
    --bb-success: var(--success);
    --bb-success-light: #ECFDF5;
    --bb-warning: #D97706;
    --bb-warning-light: #FFFBEB;
    --bb-warning-border: #F3D9A4;   /* notice outline (dialer save notice, XA-6d84f6bb38) */
    --bb-warning-strong: #B26A00;   /* notice accent bar */
    --bb-warning-bg: #FFF8EA;       /* notice fill */
    --bb-warning-ink: #5C3D00;      /* notice text on --bb-warning-bg */
    --bb-danger: #DC2626;
    --bb-danger-light: #FEF2F2;
    /* Editorial ink / highlight (moved here from theme-beta.css so help-mode.css and every page that lacks theme-beta can read them) */
    --r-accent: #5EEAD4;        /* editorial highlight */
    --r-accent-soft: var(--r-purple-soft);
    --r-ink: #0F2B46;           /* near-black navy */

    --bb-info: #1B4066;
    --bb-info-light: #EFF6FF;

    /* Typography */
    --bb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bb-font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;

    /* Spacing scale (4px base) */
    --bb-space-1: 4px;
    --bb-space-2: 8px;
    --bb-space-3: 12px;
    --bb-space-4: 16px;
    --bb-space-5: 20px;
    --bb-space-6: 24px;
    --bb-space-8: 32px;
    --bb-space-10: 40px;

    /* Border radius */
    --bb-radius-sm: 6px;
    --bb-radius: 8px;
    --bb-radius-lg: 10px;
    --bb-radius-xl: 12px;
    --bb-radius-pill: 999px;

    /* Shadows */
    --bb-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --bb-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --bb-shadow-lg: 0 4px 12px rgba(0,0,0,0.1);

    /* Transitions */
    --bb-transition: 0.15s ease;
    --bb-transition-slow: 0.25s ease;

    /* The OUTGOING message bubble (an officer's sent text or call record), XA-b619a5c2f4. ONE colour for the
       Conversations page (chats.css, theme-beta.css) and the lead Messaging tab (messaging.css): it was navy in one
       and the cyan --secondary-color in the other. */
    --bb-bubble-sent: #0F2B46;
    --bb-bubble-sent-ink: #FFFFFF;
    /* XA-a7adb7db95: the type/time line under EVERY bubble, failed included (it sits on the thread surface, not on the
       bubble): 5.91:1 on white, 5.46:1 on #F4F6FA. The old #95a5a6 was 2.56:1. */
    --bb-meta-ink: #5B6573;
    /* The FAILED outgoing text: white on #C0392B = 5.44:1 (the old #e74c3c was 3.82:1). Still plainly red, so a failed
       send is never mistaken for sent. */
    --bb-bubble-failed: #C0392B;
    --bb-bubble-failed-ink: #FFFFFF;
    --bb-bubble-failed-edge: #962D22;
    /* The "Failed" delivery badge (chats.css and messaging.css): #B42323 on #FEE8EC = 5.61:1 (was #D14343, 3.91:1). */
    --bb-badge-failed-ink: #B42323;
    --bb-badge-failed-bg: #FEE8EC;
    /* XA-35e7acec37: the quiet secondary button (grey outline on a pale fill) that pages copied inline as hex. */
    --bb-btn-quiet-border: #D4D8E2;
    --bb-btn-quiet-bg: #F4F5F8;
    --bb-btn-quiet-ink: #46464D;
}

/* Legacy palette (XA-35e7acec37): one home; retire each into a --bb-* token when its screens are reviewed.
   Scoped, never :root: the old copies lived on .beap-theme (officer body, site.css), .theme-color (borrower <main>,
   client-area.css) and :root only in the Layout = null message iframes, which now carry body.beap-theme. A :root home
   would paint borrower pages that never had these (FirstVisit, Login, Apply). */
.beap-theme, .theme-color {
    --white-color: #fff;
    --border-grey-color: #E5E7EB;
    --primary-color: var(--bb-primary);
    --secondary-color: var(--r-purple);
    --secondary-color-rgb: 15, 118, 110;
    --black-color: var(--bb-text);
    --grey-color: var(--bb-text-secondary);
    --grey-color-rgb: 68, 86, 106;
    --grey50-color: #D6D7D9;
    --grey100-color: #B8BBBF;
    --grey200-color: #898F98;
    --grey300-color: #484D57;
    --grey400-color: #2E323A;
    --grey500-color: #1A1C21;
    --purple-color-rgb: 15, 43, 70;
    --blue-color: var(--r-purple);
    --green-light-color: #E4FFEF;
    --yellow-color: #C89500;
    --yellow-color-rgb: 200, 149, 0;
    --yellow-light-color: #FFF7E0;
}

/* Officer pages only: the borrower pages (.theme-color) never had these four (XA-35e7acec37, sillygirl CHANGES 3842954fd3). */
.beap-theme {
    --bg-body: var(--bb-bg);
    --primary-color-rgb: 15, 43, 70;
    --themeFont: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --aside-width: 250px;
}

/* Harbor (XA-35e7acec37): the borrower pages lead with the teal and keep the navy second; officer pages (.beap-theme alone) lead with the navy. */
.theme-color {
    --primary-color: var(--r-purple);
    --secondary-color: var(--bb-primary);
    --secondary-color-rgb: 15, 43, 70;
}

/* Proposal steps (XA-e9362fbfb5): the fixed neutrals of the step 1.5 and step 2 pages, once. The brand colours are set
   per page from BrandColors.StepColorsFor; these never change with the brand. Scoped to the steps' .m2 root. */
.m2 {
    --muted: #68719b;
    --line: #e7eaf4;
    --current-tint: #f6f8fd;
    --card-bg: #fff;
}
