/* Liva app colours (owner, 2026-10-17): the customer app, onboarding and the sign-up/login/email
   pages use the brand orange of the marketing site instead of the old green accent.
   App-scoped on purpose: brand.css stays the shared logo file, and marketing pages keep their own
   tokens (landing.css). scripts/connect-app-theme.mjs links this file into the app entry pages.
   Contrast (WCAG 2.1), checked by tests/app-orange-accent.test.mjs:
     --liva-accent        #ff4f1f  3.3:1 on white, 3.1:1 on the #faf9f5 canvas: icons, borders,
                                   bars, active indicators and large text only, never small text.
     --liva-accent-text   #c2380b  >=4.5:1 on white, the canvas, #f1f2f4 and the soft tint: small
                                   text, links, selected labels; also the fill behind white text.
     --liva-focus         #e0420e  >=3:1 next to white, the canvas, grey surfaces and the dark card.
   Semantic success (published, mentioned/named, connected, positive change, passed checks) stays
   green through the --liva-success tokens; warnings and errors keep their own amber/red colours. */
:root{
 --liva-accent:#ff4f1f;
 --liva-accent-hover:#e8420f;
 --liva-accent-text:#c2380b;
 --liva-accent-strong:#c2380b;
 --liva-accent-soft:#fff3ee;
 --liva-accent-hover-soft:#fff8f5;
 --liva-accent-border:#ffd3c2;
 --liva-focus:#e0420e;
 --liva-app-dark:#161e28;
 --liva-app-dark-hover:#0b1118;
 --liva-success:#2f8f62;
 --liva-success-text:#24724e;
 --liva-success-soft:#eaf5ef;
 --liva-success-border:#cfe2d5;
 /* Waiting/pending (amber, #7a4f0c on #fdf3e1 is 6.3:1) and neutral "not set up" (#525863 on #f1f2f4 is 6.6:1). */
 --liva-warning-text:#7a4f0c;
 --liva-warning-soft:#fdf3e1;
 --liva-warning-border:#f0d9a8;
 --liva-neutral-text:#525863;
 --liva-neutral-soft:#f1f2f4;
 --liva-neutral-border:#e1e4e8;
 /* Summary and key-takeaway boxes in the editor mirror the published article HTML
    (BOX_COLORS in supabase/functions/nela-articles/document.mjs, owner decision October 11).
    They appear on customers' websites, so they do not follow the app accent. */
 --liva-article-box-accent:#2f8f62;
 --liva-article-box-bg:#eaf4ef;
}
/* Optional purple comparison design (B): accent tokens follow the purple palette; the green
   success/article tokens are converted by the generated purple-palette.css. */
html[data-design=purple]{
 --liva-accent:#8b3fd9;
 --liva-accent-hover:#7a32c4;
 --liva-accent-text:#7a3fd0;
 --liva-accent-strong:#7a3fd0;
 --liva-accent-soft:#f4eefc;
 --liva-accent-hover-soft:#f9f6fe;
 --liva-accent-border:#e0d0f6;
 --liva-focus:#7a3fd0;
}
/* Active sidebar page: soft orange tint, orange label and icon (the icon uses currentColor). */
.app-sidebar-nav>button[aria-current=page]{color:var(--liva-accent-text)!important}
