/* The operator's theme: three colours. Every page loads this file after the product's own
   stylesheets, so whatever it sets wins. The product ships it empty: Tiber Lake's colours (the
   defaults in css/pms.css) apply.

   To re-skin an installation, put a copy at brand/theme.css in PMS_BRAND_DIR (it comes first in
   STATICFILES_DIRS), run collectstatic, and set any of the three, as six-digit hex:

     :root {
       --brand: #0E3B2E;       primary buttons, links, the chosen tab and chip, "your turn"
       --brand-ink: #072019;   the darkest ground: the console sidebar, the sign-in panel, hero cards
       --accent: #C9A24B;      the one highlight: the active menu bar, eyebrows on dark grounds,
                               the hero cards' skyline, the landing's call to action
     }

   Every other brand tone (deep, hover, tints, lines, the focus ring, gradients) is derived from
   these three; status colours (ok, warn, bad, held, quiet) carry meaning and do not change.
   apps/core/branding.py reads this file (so write the colours as hex) for what CSS cannot reach:
   the browser's toolbar colour and the installed app's colours (--brand-ink), and the PDFs
   (invoices, credit notes, statements, receipts and inspection reports), whose rules, figures and
   report band take --brand, --brand-ink and --accent with their derived tones.

   Contrast rules (WCAG 2.2 AA), on the grounds the product really draws. Every emerald panel and
   hero card is a gradient whose lit side, --brand-glow, is the brand 6 points lighter in OKLCH,
   so light text is checked there, where it is weakest:
   - --brand on the canvas #F7F5EF: 4.5:1 or more (links). White on --brand then reaches about
     4.9:1 (button and chip text).
   - --brand on its own tint, 11% of it on white: 4.5:1 or more (the chosen item in a menu).
   - White on --brand-ink: 7:1 or more (the sidebar), so a deep, dark tone; light inks do not work.
   - 66% white (and so 74% white) on --brand-glow: 4.5:1 or more (notes and help on the panels).
   - --accent mixed 32% toward white (--accent-soft) on --brand-glow: 4.5:1 or more (eyebrows and
     the active marker on dark grounds).
   - --brand-ink on --accent: 4.5:1 or more (the landing's call to action).
   - --accent is never text on a light ground; the product uses a darker mix there.
   apps.core.branding.contrast_problems() checks a theme against these rules and names each pair
   that falls short (the test suite runs it on the product's own colours).
   The logos follow the same grounds: brand/logo-white.png must read on --brand-ink (the sidebar,
   the sign-in panel and the inspection report's band), brand/logo-dark.png on white and paper
   (portals, the landing, and the invoice, statement and receipt PDFs). */
