/*
 * Livery — design tokens for MethodosOS (System A).
 *
 * The chassis has no hue of its own: every neutral below has zero chroma.
 * Every brand colour is derived from one tenant primary by the Livery engine
 * (documented in design-system.md §3.3). Values are oklch(); the tenant hex
 * as supplied is kept in a comment.
 *
 * Same variable names as packages/ui/src/styles/globals.css. Anything that
 * file does not have carries an "addition" comment. No @import lines: globals.css keeps
 * those, and browsers ignore the @theme block, so this file loads directly.
 *
 * Generated by work/engine.mjs — edit the engine, not this file.
 */

@theme inline {
  --font-heading: var(--font-heading);
  --font-sans: var(--font-sans);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar: var(--sidebar);
  --color-chart-5: var(--chart-5);
  --color-chart-4: var(--chart-4);
  --color-chart-3: var(--chart-3);
  --color-chart-2: var(--chart-2);
  --color-chart-1: var(--chart-1);
  --color-ring: var(--ring);
  --color-input: var(--input);
  --color-border: var(--border);
  --color-destructive: var(--destructive);
  --color-accent-foreground: var(--accent-foreground);
  --color-accent: var(--accent);
  --color-muted-foreground: var(--muted-foreground);
  --color-muted: var(--muted);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-secondary: var(--secondary);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary: var(--primary);
  --color-popover-foreground: var(--popover-foreground);
  --color-popover: var(--popover);
  --color-card-foreground: var(--card-foreground);
  --color-card: var(--card);
  --color-foreground: var(--foreground);
  --color-background: var(--background);
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --radius-4xl: calc(var(--radius) * 2.6);
  /* additions */
  --color-brand-ink: var(--brand-ink);
  --color-brand-ink-strong: var(--brand-ink-strong);
  --color-brand-fill: var(--brand-fill);
  --color-brand-surface: var(--brand-surface);
  --color-brand-surface-strong: var(--brand-surface-strong);
  --color-brand-rule: var(--brand-rule);
  --color-subtle: var(--subtle);
  --color-brand-on-ink: var(--brand-on-ink);
  --color-brand-on-fill: var(--brand-on-fill);
  --color-brand-fill-hover: var(--brand-fill-hover);
  --color-brand-fill-border: var(--brand-fill-border);
  --color-heat-1: var(--brand-heat-1);
  --color-heat-2: var(--brand-heat-2);
  --color-heat-3: var(--brand-heat-3);
  --color-heat-4: var(--brand-heat-4);
  --color-heat-5: var(--brand-heat-5);
  --color-border-strong: var(--border-strong);
  --color-warning: var(--warning);
  --color-warning-surface: var(--warning-surface);
  --color-success: var(--success);
  --color-success-surface: var(--success-surface);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-destructive-surface: var(--destructive-surface);
  --text-xs: var(--fs-xs);
  --text-sm: var(--fs-sm);
  --text-base: var(--fs-base);
  --text-md: var(--fs-md);
  --text-lg: var(--fs-lg);
  --text-xl: var(--fs-xl);
  --text-2xl: var(--fs-2xl);
  --text-3xl: var(--fs-3xl);
  --text-4xl: var(--fs-4xl);
  --text-5xl: var(--fs-5xl);
  --text-6xl: var(--fs-6xl);
  --ease-out: var(--ease-out);
  --breakpoint-sm: 40rem;
  --breakpoint-md: 48rem;
  --breakpoint-lg: 64rem;
  --breakpoint-xl: 80rem;
}

/* ------------------------------------------------------------------ chassis, light */
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.18 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.18 0 0);
  --secondary: oklch(0.962 0 0);
  --secondary-foreground: oklch(0.2 0 0);
  --muted: oklch(0.962 0 0);
  --muted-foreground: oklch(0.47 0 0);
  --destructive: oklch(0.52 0.14 27);
  --border: oklch(0.905 0 0);
  --input: oklch(0.6 0 0);
  --sidebar: oklch(1 0 0);
  --sidebar-foreground: oklch(0.18 0 0);
  --sidebar-border: oklch(0.905 0 0);
  --destructive-foreground: oklch(1 0 0); /* addition */
  --destructive-surface: oklch(0.968 0.016 27); /* addition */
  --warning: oklch(0.5 0.085 68); /* addition */
  --warning-surface: oklch(0.968 0.026 85); /* addition */
  --success: oklch(0.48 0.08 155); /* addition */
  --success-surface: oklch(0.968 0.02 155); /* addition */
  --border-strong: oklch(0.84 0 0); /* addition */
  --subtle: oklch(0.982 0 0); /* addition */ /* quiet surface: sidebars, table heads */
  --data-marker: oklch(0.18 0 0); /* addition */ /* self / March markers */
  --data-reference: oklch(0.47 0 0); /* addition */ /* practice-average tick */
  --scrim: oklch(0.18 0 0 / 0.42); /* addition */
  --shadow-overlay: 0 1px 2px oklch(0 0 0 / 0.06), 0 6px 16px oklch(0 0 0 / 0.08); /* addition */ /* popovers, menus, toasts, dialogs only */

  /* type — Public Sans, regular and medium; ratio 1.2 */
  --font-sans: "Public Sans", "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-lexend: "Lexend", var(--font-sans); /* addition */ /* tenant fonts: only ever reached through --tenant-font-heading and logos */
  --font-young-serif: "Young Serif", Georgia, serif; /* addition */
  --fs-xs: 0.8333rem; /* addition */ /* 13.3px  meta, captions */
  --fs-sm: 0.9129rem; /* addition */ /* 14.6px  half-step: dense tables, compact UI */
  --fs-base: 1rem; /* addition */ /* 16px    body */
  --fs-md: 1.2rem; /* addition */ /* 19.2px  lead, h4 */
  --fs-lg: 1.44rem; /* addition */ /* 23px    h3 */
  --fs-xl: 1.728rem; /* addition */ /* 27.6px  h2 */
  --fs-2xl: 2.0736rem; /* addition */ /* 33.2px  h1 (app) */
  --fs-3xl: 2.4883rem; /* addition */ /* 39.8px  report title */
  --fs-4xl: 2.986rem; /* addition */ /* 47.8px  landing h2 display */
  --fs-5xl: 3.5832rem; /* addition */ /* 57.3px  landing section display */
  --fs-6xl: 4.2998rem; /* addition */ /* 68.8px  landing hero only */
  --lh-tight: 1.15; /* addition */
  --lh-heading: 1.25; /* addition */
  --lh-body: 1.5; /* addition */
  --weight-regular: 400; /* addition */
  --weight-medium: 500; /* addition */
  --measure: 68ch; /* addition */

  /* space — 8px grid (4px half-steps for optical fixes only) */
  --space-0-5: 0.25rem; /* addition */ /* 4 */
  --space-1: 0.5rem; /* addition */ /* 8 */
  --space-1-5: 0.75rem; /* addition */ /* 12 */
  --space-2: 1rem; /* addition */ /* 16 */
  --space-3: 1.5rem; /* addition */ /* 24 */
  --space-4: 2rem; /* addition */ /* 32 */
  --space-5: 2.5rem; /* addition */ /* 40 */
  --space-6: 3rem; /* addition */ /* 48 */
  --space-8: 4rem; /* addition */ /* 64 */
  --space-10: 5rem; /* addition */ /* 80 */
  --space-12: 6rem; /* addition */ /* 96 */
  --space-16: 8rem; /* addition */ /* 128 */
  --gutter: var(--space-3); /* addition */
  --page-max: 75rem; /* addition */ /* 1200px */
  --page-pad: var(--space-2); /* addition */ /* 16px side gutter at 375px; grows at md */
  --doc-max: 50rem; /* addition */ /* the report's one column, 800px, set straight on the page */
  --rail: 12.5rem; /* addition */ /* the margin rail that carries section labels */
  --sidebar-width: 15.5rem; /* addition */ /* 248px: the owner screens' left column (logo, six sections, hosting note) */
  --aside-width: 20rem; /* addition */ /* 320px: the overview's right column (needs attention, method) */

  /* density — Comfortable (client default) */
  --control-h: 2.5rem; /* addition */ /* 40px */
  --control-h-sm: 2rem; /* addition */ /* 32px, still above the 24px target */
  --control-px: var(--space-2); /* addition */
  --row-py: var(--space-1-5); /* addition */
  --stack: var(--space-3); /* addition */
  --section-gap: var(--space-8); /* addition */

  /* shape and lines */
  --border-width: 1px; /* addition */
  --rule-width: 4px; /* addition */
  --focus-width: 2px; /* addition */
  --focus-offset: 2px; /* addition */
  --nudge: 0.125rem; /* addition */ /* 2px optical alignment of an icon against a text line; nothing else */

  /* icons — Lucide */
  --icon-sm: 1rem; /* addition */
  --icon-md: 1.25rem; /* addition */
  --icon-stroke: 1.75; /* addition */

  /* motion — functional and short */
  --duration-fast: 120ms; /* addition */ /* hover, press */
  --duration-base: 160ms; /* addition */ /* disclosure, tab panel, popover */
  --ease-out: cubic-bezier(0.2, 0, 0, 1); /* addition */
}

/* Compact density: owner screens may opt in; client screens stay comfortable. */
[data-density="compact"] {
  --control-h: 2rem; /* addition */
  --control-h-sm: 1.75rem; /* addition */ /* 28px */
  --control-px: var(--space-1-5); /* addition */
  --row-py: var(--space-1); /* addition */
  --stack: var(--space-2); /* addition */
  --section-gap: var(--space-6); /* addition */
}

@media (min-width: 48rem) {
  :root { --page-pad: var(--space-4); /* addition */ }
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration-base: 0ms; /* addition */ }
}

/* ------------------------------------------------------------------ chassis, dark */
.dark {
  --background: oklch(0.155 0 0);
  --foreground: oklch(0.955 0 0);
  --card: oklch(0.155 0 0);
  --card-foreground: oklch(0.955 0 0);
  --popover: oklch(0.215 0 0);
  --popover-foreground: oklch(0.955 0 0);
  --secondary: oklch(0.245 0 0);
  --secondary-foreground: oklch(0.955 0 0);
  --muted: oklch(0.245 0 0);
  --muted-foreground: oklch(0.72 0 0);
  --destructive: oklch(0.74 0.12 25);
  --border: oklch(0.3 0 0);
  --input: oklch(0.54 0 0);
  --sidebar: oklch(0.155 0 0);
  --sidebar-foreground: oklch(0.955 0 0);
  --sidebar-border: oklch(0.3 0 0);
  --destructive-foreground: oklch(0.15 0 0); /* addition */
  --destructive-surface: oklch(0.26 0.035 25); /* addition */
  --warning: oklch(0.8 0.085 80); /* addition */
  --warning-surface: oklch(0.26 0.03 80); /* addition */
  --success: oklch(0.78 0.08 155); /* addition */
  --success-surface: oklch(0.25 0.03 155); /* addition */
  --border-strong: oklch(0.38 0 0); /* addition */
  --subtle: oklch(0.175 0 0); /* addition */ /* quiet surface: sidebars, table heads */
  --data-marker: oklch(0.955 0 0); /* addition */ /* self / March markers */
  --data-reference: oklch(0.72 0 0); /* addition */ /* practice-average tick */
  --scrim: oklch(0 0 0 / 0.62); /* addition */
  --shadow-overlay: 0 1px 2px oklch(0 0 0 / 0.4), 0 6px 16px oklch(0 0 0 / 0.45); /* addition */ /* popovers, menus, toasts, dialogs only */
}

/* ------------------------------------------------------------------ brand mapping
 * Declared on every tenant scope so a nested [data-tenant] (the landing page's
 * live demo) re-resolves the shadcn roles against its own brand tokens. */
:root,
[data-tenant] {
  /* shadcn roles that take the tenant's colour, re-resolved on every tenant scope */
  /* --primary is the text-safe ink, so stock text-primary, link, ring and bg-primary are safe for a pale tenant.
     Livery's own default Button paints --brand-fill / --brand-on-fill / --brand-fill-border instead (see design-system.md §14). */
  --primary: var(--brand-ink);
  --primary-foreground: var(--brand-on-ink);
  --accent: var(--brand-surface);
  --accent-foreground: var(--brand-ink-strong);
  --ring: var(--brand-ink);
  --chart-1: var(--series-1); /* series, not the pale heat ramp: 3:1 on the card for stock charts */
  --chart-2: var(--series-2); /* series, not the pale heat ramp: 3:1 on the card for stock charts */
  --chart-3: var(--series-3); /* series, not the pale heat ramp: 3:1 on the card for stock charts */
  --chart-4: var(--series-4); /* series, not the pale heat ramp: 3:1 on the card for stock charts */
  --chart-5: var(--series-5); /* series, not the pale heat ramp: 3:1 on the card for stock charts */
  --sidebar-primary: var(--brand-ink);
  --sidebar-primary-foreground: var(--brand-on-ink);
  --sidebar-accent: var(--brand-surface-strong);
  --sidebar-accent-foreground: var(--brand-ink-strong);
  --sidebar-ring: var(--brand-ink);
  --radius: var(--tenant-radius);
  --font-heading: var(--tenant-font-heading);
  /* addition: the radius steps, also declared here so plain CSS (and nested tenant scopes) can use them */
  --radius-sm: calc(var(--radius) * 0.6); /* addition */
  --radius-md: calc(var(--radius) * 0.8); /* addition */
  --radius-lg: var(--radius); /* addition */
  --radius-xl: calc(var(--radius) * 1.4); /* addition */
}

/* ------------------------------------------------------------------ brand: unbranded default (graphite)
 * No tenant yet: neutral graphite ink. The same engine, fed a zero-chroma primary. */
:root,
[data-tenant="none"] {
  --brand-raw: oklch(0.25 0 0); /* addition */
  --brand-50: oklch(0.975 0 0); /* addition */
  --brand-100: oklch(0.948 0 0); /* addition */
  --brand-200: oklch(0.9 0 0); /* addition */
  --brand-300: oklch(0.83 0 0); /* addition */
  --brand-400: oklch(0.74 0 0); /* addition */
  --brand-500: oklch(0.65 0 0); /* addition */
  --brand-600: oklch(0.56 0 0); /* addition */
  --brand-700: oklch(0.48 0 0); /* addition */
  --brand-800: oklch(0.4 0 0); /* addition */
  --brand-900: oklch(0.32 0 0); /* addition */
  --brand-950: oklch(0.25 0 0); /* addition */
  --brand-ink: oklch(0.25 0 0); /* addition */ /* text-safe brand text, links, focus ring */
  --brand-ink-strong: oklch(0.25 0 0); /* addition */ /* 7:1 text on brand surfaces */
  --brand-on-ink: oklch(1 0 0); /* addition */ /* text on an ink fill: what stock bg-primary gets */
  --brand-fill: oklch(0.25 0 0); /* addition */ /* primary button fill */
  --brand-fill-hover: oklch(0.2 0 0); /* addition */
  --brand-on-fill: oklch(1 0 0); /* addition */
  --brand-fill-border: oklch(0.25 0 0); /* addition */ /* = fill, or ink when the fill is too pale to hold its edge */
  --brand-surface: oklch(0.975 0 0); /* addition */ /* tinted surface: selected rows, hover, callouts */
  --brand-surface-strong: oklch(0.948 0 0); /* addition */ /* selected nav item */
  --brand-rule: oklch(0.25 0 0); /* addition */ /* the 4px letterhead rule (decorative) */
  --brand-heat-1: oklch(0.948 0 0); /* addition */
  --brand-heat-2: oklch(0.9 0 0); /* addition */
  --brand-heat-3: oklch(0.83 0 0); /* addition */
  --brand-heat-4: oklch(0.65 0 0); /* addition */
  --brand-heat-5: oklch(0.48 0 0); /* addition */
  --brand-heat-1-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-2-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-3-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-4-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-5-foreground: oklch(1 0 0); /* addition */
  --data-bar: oklch(0.25 0 0); /* addition */
  --series-1: oklch(0.22 0 0); /* addition */
  --series-2: oklch(0.6 0 0); /* addition */
  --series-3: oklch(0.36 0 0); /* addition */
  --series-4: oklch(0.52 0 0); /* addition */
  --series-5: oklch(0.3 0 0); /* addition */
  --series-6: oklch(0.44 0 0); /* addition */
  --tenant-radius: 0.5rem; /* addition */ /* preset: soft */
  --tenant-font-heading: var(--font-sans); /* addition */
  --heading-weight: 500; /* addition */
  --heading-tracking: -0.011em; /* addition */
}
.dark,
.dark[data-tenant="none"],
.dark [data-tenant="none"] {
  --brand-raw: oklch(0.25 0 0); /* addition */
  --brand-50: oklch(0.25 0 0); /* addition */
  --brand-100: oklch(0.3144 0 0); /* addition */
  --brand-200: oklch(0.388 0 0); /* addition */
  --brand-300: oklch(0.4616 0 0); /* addition */
  --brand-400: oklch(0.5352 0 0); /* addition */
  --brand-500: oklch(0.618 0 0); /* addition */
  --brand-600: oklch(0.7008 0 0); /* addition */
  --brand-700: oklch(0.7836 0 0); /* addition */
  --brand-800: oklch(0.848 0 0); /* addition */
  --brand-900: oklch(0.8922 0 0); /* addition */
  --brand-950: oklch(0.917 0 0); /* addition */
  --brand-ink: oklch(0.88 0 0); /* addition */ /* text-safe brand text, links, focus ring */
  --brand-ink-strong: oklch(0.88 0 0); /* addition */ /* 7:1 text on brand surfaces */
  --brand-on-ink: oklch(0.18 0 0); /* addition */ /* text on an ink fill: what stock bg-primary gets */
  --brand-fill: oklch(0.88 0 0); /* addition */ /* primary button fill */
  --brand-fill-hover: oklch(0.93 0 0); /* addition */
  --brand-on-fill: oklch(0.18 0 0); /* addition */
  --brand-fill-border: oklch(0.88 0 0); /* addition */ /* = fill, or ink when the fill is too pale to hold its edge */
  --brand-surface: oklch(0.235 0 0); /* addition */ /* tinted surface: selected rows, hover, callouts */
  --brand-surface-strong: oklch(0.28 0 0); /* addition */ /* selected nav item */
  --brand-rule: oklch(0.88 0 0); /* addition */ /* the 4px letterhead rule (decorative) */
  --brand-heat-1: oklch(0.28 0 0); /* addition */
  --brand-heat-2: oklch(0.36 0 0); /* addition */
  --brand-heat-3: oklch(0.46 0 0); /* addition */
  --brand-heat-4: oklch(0.6 0 0); /* addition */
  --brand-heat-5: oklch(0.76 0 0); /* addition */
  --brand-heat-1-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-2-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-3-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-4-foreground: oklch(0.12 0 0); /* addition */
  --brand-heat-5-foreground: oklch(0.12 0 0); /* addition */
  --data-bar: oklch(0.88 0 0); /* addition */
  --series-1: oklch(0.92 0 0); /* addition */
  --series-2: oklch(0.6 0 0); /* addition */
  --series-3: oklch(0.8 0 0); /* addition */
  --series-4: oklch(0.52 0 0); /* addition */
  --series-5: oklch(0.86 0 0); /* addition */
  --series-6: oklch(0.68 0 0); /* addition */
}

/* ------------------------------------------------------------------ tenant: Larkfield & Oduya (#5B2A4E) — addition
 * raw colour passes every check; used as supplied
 */
[data-tenant="larkfield"] {
  --brand-raw: oklch(0.3651 0.0873 338.33); /* addition */ /* #5B2A4E as supplied */
  --brand-50: oklch(0.975 0.0087 338.33); /* addition */
  --brand-100: oklch(0.948 0.0157 338.33); /* addition */
  --brand-200: oklch(0.9 0.0306 338.33); /* addition */
  --brand-300: oklch(0.83 0.048 338.33); /* addition */
  --brand-400: oklch(0.74 0.0655 338.33); /* addition */
  --brand-500: oklch(0.65 0.0804 338.33); /* addition */
  --brand-600: oklch(0.56 0.0873 338.33); /* addition */
  --brand-700: oklch(0.48 0.0873 338.33); /* addition */
  --brand-800: oklch(0.4 0.0786 338.33); /* addition */
  --brand-900: oklch(0.32 0.0655 338.33); /* addition */
  --brand-950: oklch(0.25 0.0524 338.33); /* addition */
  --brand-ink: oklch(0.3651 0.0873 338.33); /* addition */ /* text-safe brand text, links, focus ring */
  --brand-ink-strong: oklch(0.3651 0.0873 338.33); /* addition */ /* 7:1 text on brand surfaces */
  --brand-on-ink: oklch(1 0 0); /* addition */ /* text on an ink fill: what stock bg-primary gets */
  --brand-fill: oklch(0.3651 0.0873 338.33); /* addition */ /* primary button fill */
  --brand-fill-hover: oklch(0.3151 0.0873 338.33); /* addition */
  --brand-on-fill: oklch(1 0 0); /* addition */
  --brand-fill-border: oklch(0.3651 0.0873 338.33); /* addition */ /* = fill, or ink when the fill is too pale to hold its edge */
  --brand-surface: oklch(0.975 0.0087 338.33); /* addition */ /* tinted surface: selected rows, hover, callouts */
  --brand-surface-strong: oklch(0.948 0.0157 338.33); /* addition */ /* selected nav item */
  --brand-rule: oklch(0.3651 0.0873 338.33); /* addition */ /* the 4px letterhead rule (decorative) */
  --brand-heat-1: oklch(0.948 0.0157 338.33); /* addition */
  --brand-heat-2: oklch(0.9 0.0306 338.33); /* addition */
  --brand-heat-3: oklch(0.83 0.048 338.33); /* addition */
  --brand-heat-4: oklch(0.65 0.0804 338.33); /* addition */
  --brand-heat-5: oklch(0.48 0.0873 338.33); /* addition */
  --brand-heat-1-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-2-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-3-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-4-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-5-foreground: oklch(1 0 0); /* addition */
  --data-bar: oklch(0.3651 0.0873 338.33); /* addition */
  --series-1: oklch(0.3651 0.0873 338.33); /* addition */
  --series-2: oklch(0.25 0 0); /* addition */
  --series-3: oklch(0.6 0.083 338.33); /* addition */
  --series-4: oklch(0.56 0 0); /* addition */
  --series-5: oklch(0.34 0.0699 338.33); /* addition */
  --series-6: oklch(0.42 0 0); /* addition */
  --tenant-radius: 0.5rem; /* addition */ /* preset: soft */
  --tenant-font-heading: var(--font-sans); /* addition */
  --heading-weight: 500; /* addition */
  --heading-tracking: -0.011em; /* addition */
}
.dark[data-tenant="larkfield"],
.dark [data-tenant="larkfield"] {
  --brand-raw: oklch(0.3651 0.0873 338.33); /* addition */
  --brand-50: oklch(0.25 0.0524 338.33); /* addition */
  --brand-100: oklch(0.3144 0.0655 338.33); /* addition */
  --brand-200: oklch(0.388 0.0786 338.33); /* addition */
  --brand-300: oklch(0.4616 0.0873 338.33); /* addition */
  --brand-400: oklch(0.5352 0.0873 338.33); /* addition */
  --brand-500: oklch(0.618 0.0804 338.33); /* addition */
  --brand-600: oklch(0.7008 0.0655 338.33); /* addition */
  --brand-700: oklch(0.7836 0.048 338.33); /* addition */
  --brand-800: oklch(0.848 0.0306 338.33); /* addition */
  --brand-900: oklch(0.8922 0.0157 338.33); /* addition */
  --brand-950: oklch(0.917 0.0087 338.33); /* addition */
  --brand-ink: oklch(0.665 0.0873 338.33); /* addition */ /* text-safe brand text, links, focus ring */
  --brand-ink-strong: oklch(0.7775 0.0873 338.33); /* addition */ /* 7:1 text on brand surfaces */
  --brand-on-ink: oklch(0.18 0.05 338.33); /* addition */ /* text on an ink fill: what stock bg-primary gets */
  --brand-fill: oklch(0.665 0.0873 338.33); /* addition */ /* primary button fill */
  --brand-fill-hover: oklch(0.715 0.0873 338.33); /* addition */
  --brand-on-fill: oklch(0.18 0.05 338.33); /* addition */
  --brand-fill-border: oklch(0.665 0.0873 338.33); /* addition */ /* = fill, or ink when the fill is too pale to hold its edge */
  --brand-surface: oklch(0.235 0.0192 338.33); /* addition */ /* tinted surface: selected rows, hover, callouts */
  --brand-surface-strong: oklch(0.28 0.0262 338.33); /* addition */ /* selected nav item */
  --brand-rule: oklch(0.665 0.0873 338.33); /* addition */ /* the 4px letterhead rule (decorative) */
  --brand-heat-1: oklch(0.28 0.0306 338.33); /* addition */
  --brand-heat-2: oklch(0.36 0.0437 338.33); /* addition */
  --brand-heat-3: oklch(0.46 0.0611 338.33); /* addition */
  --brand-heat-4: oklch(0.6 0.0742 338.33); /* addition */
  --brand-heat-5: oklch(0.76 0.0655 338.33); /* addition */
  --brand-heat-1-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-2-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-3-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-4-foreground: oklch(0.12 0 0); /* addition */
  --brand-heat-5-foreground: oklch(0.12 0 0); /* addition */
  --data-bar: oklch(0.665 0.0873 338.33); /* addition */
  --series-1: oklch(0.665 0.0873 338.33); /* addition */
  --series-2: oklch(0.9 0 0); /* addition */
  --series-3: oklch(0.64 0.0786 338.33); /* addition */
  --series-4: oklch(0.66 0 0); /* addition */
  --series-5: oklch(0.86 0.0393 338.33); /* addition */
  --series-6: oklch(0.52 0 0); /* addition */
}

/* ------------------------------------------------------------------ tenant: Brightline Ways of Working (#1F4FE0) — addition
 * chroma clamped 0.226 → 0.17 for derived steps
 */
[data-tenant="brightline"] {
  --brand-raw: oklch(0.498 0.2256 264.74); /* addition */ /* #1F4FE0 as supplied */
  --brand-50: oklch(0.975 0.0117 264.74); /* addition */
  --brand-100: oklch(0.948 0.0246 264.74); /* addition */
  --brand-200: oklch(0.9 0.0482 264.74); /* addition */
  --brand-300: oklch(0.83 0.0842 264.74); /* addition */
  --brand-400: oklch(0.74 0.1275 264.74); /* addition */
  --brand-500: oklch(0.65 0.1564 264.74); /* addition */
  --brand-600: oklch(0.56 0.17 264.74); /* addition */
  --brand-700: oklch(0.48 0.17 264.74); /* addition */
  --brand-800: oklch(0.4 0.153 264.74); /* addition */
  --brand-900: oklch(0.32 0.1275 264.74); /* addition */
  --brand-950: oklch(0.25 0.102 264.74); /* addition */
  --brand-ink: oklch(0.498 0.2256 264.74); /* addition */ /* text-safe brand text, links, focus ring */
  --brand-ink-strong: oklch(0.4455 0.2256 264.74); /* addition */ /* 7:1 text on brand surfaces */
  --brand-on-ink: oklch(1 0 0); /* addition */ /* text on an ink fill: what stock bg-primary gets */
  --brand-fill: oklch(0.498 0.2256 264.74); /* addition */ /* primary button fill */
  --brand-fill-hover: oklch(0.448 0.2256 264.74); /* addition */
  --brand-on-fill: oklch(1 0 0); /* addition */
  --brand-fill-border: oklch(0.498 0.2256 264.74); /* addition */ /* = fill, or ink when the fill is too pale to hold its edge */
  --brand-surface: oklch(0.975 0.0117 264.74); /* addition */ /* tinted surface: selected rows, hover, callouts */
  --brand-surface-strong: oklch(0.948 0.0246 264.74); /* addition */ /* selected nav item */
  --brand-rule: oklch(0.498 0.2256 264.74); /* addition */ /* the 4px letterhead rule (decorative) */
  --brand-heat-1: oklch(0.948 0.0246 264.74); /* addition */
  --brand-heat-2: oklch(0.9 0.0482 264.74); /* addition */
  --brand-heat-3: oklch(0.83 0.0842 264.74); /* addition */
  --brand-heat-4: oklch(0.65 0.1564 264.74); /* addition */
  --brand-heat-5: oklch(0.48 0.17 264.74); /* addition */
  --brand-heat-1-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-2-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-3-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-4-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-5-foreground: oklch(1 0 0); /* addition */
  --data-bar: oklch(0.498 0.2256 264.74); /* addition */
  --series-1: oklch(0.498 0.2256 264.74); /* addition */
  --series-2: oklch(0.25 0 0); /* addition */
  --series-3: oklch(0.6 0.1615 264.74); /* addition */
  --series-4: oklch(0.56 0 0); /* addition */
  --series-5: oklch(0.34 0.136 264.74); /* addition */
  --series-6: oklch(0.42 0 0); /* addition */
  --tenant-radius: 0.125rem; /* addition */ /* preset: sharp */
  --tenant-font-heading: var(--font-lexend); /* addition */
  --heading-weight: 500; /* addition */
  --heading-tracking: -0.015em; /* addition */
}
.dark[data-tenant="brightline"],
.dark [data-tenant="brightline"] {
  --brand-raw: oklch(0.498 0.2256 264.74); /* addition */
  --brand-50: oklch(0.25 0.09 264.74); /* addition */
  --brand-100: oklch(0.3144 0.1125 264.74); /* addition */
  --brand-200: oklch(0.388 0.135 264.74); /* addition */
  --brand-300: oklch(0.4616 0.15 264.74); /* addition */
  --brand-400: oklch(0.5352 0.15 264.74); /* addition */
  --brand-500: oklch(0.618 0.138 264.74); /* addition */
  --brand-600: oklch(0.7008 0.1125 264.74); /* addition */
  --brand-700: oklch(0.7836 0.0825 264.74); /* addition */
  --brand-800: oklch(0.848 0.0525 264.74); /* addition */
  --brand-900: oklch(0.8922 0.027 264.74); /* addition */
  --brand-950: oklch(0.917 0.015 264.74); /* addition */
  --brand-ink: oklch(0.66 0.15 264.74); /* addition */ /* text-safe brand text, links, focus ring */
  --brand-ink-strong: oklch(0.77 0.1166 264.74); /* addition */ /* 7:1 text on brand surfaces */
  --brand-on-ink: oklch(0.18 0.05 264.74); /* addition */ /* text on an ink fill: what stock bg-primary gets */
  --brand-fill: oklch(0.66 0.15 264.74); /* addition */ /* primary button fill */
  --brand-fill-hover: oklch(0.71 0.15 264.74); /* addition */
  --brand-on-fill: oklch(0.18 0.05 264.74); /* addition */
  --brand-fill-border: oklch(0.66 0.15 264.74); /* addition */ /* = fill, or ink when the fill is too pale to hold its edge */
  --brand-surface: oklch(0.235 0.033 264.74); /* addition */ /* tinted surface: selected rows, hover, callouts */
  --brand-surface-strong: oklch(0.28 0.045 264.74); /* addition */ /* selected nav item */
  --brand-rule: oklch(0.498 0.2256 264.74); /* addition */ /* the 4px letterhead rule (decorative) */
  --brand-heat-1: oklch(0.28 0.0525 264.74); /* addition */
  --brand-heat-2: oklch(0.36 0.075 264.74); /* addition */
  --brand-heat-3: oklch(0.46 0.105 264.74); /* addition */
  --brand-heat-4: oklch(0.6 0.1275 264.74); /* addition */
  --brand-heat-5: oklch(0.76 0.1125 264.74); /* addition */
  --brand-heat-1-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-2-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-3-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-4-foreground: oklch(0.12 0 0); /* addition */
  --brand-heat-5-foreground: oklch(0.12 0 0); /* addition */
  --data-bar: oklch(0.66 0.15 264.74); /* addition */
  --series-1: oklch(0.66 0.15 264.74); /* addition */
  --series-2: oklch(0.9 0 0); /* addition */
  --series-3: oklch(0.64 0.135 264.74); /* addition */
  --series-4: oklch(0.66 0 0); /* addition */
  --series-5: oklch(0.86 0.0675 264.74); /* addition */
  --series-6: oklch(0.52 0 0); /* addition */
}

/* ------------------------------------------------------------------ tenant: Sorrel Leadership (#F0DC82) — addition
 * warm-yellow rule: hue rotates up to −20° as steps darken (ochre, not olive)
 * raw fails text contrast on light grounds (1.18:1) → ink derived
 * light primary: fill keeps the raw colour with dark text, and gains a 1px ink border (3:1 boundary)
 */
[data-tenant="sorrel"] {
  --brand-raw: oklch(0.8918 0.1129 97.15); /* addition */ /* #F0DC82 as supplied */
  --brand-50: oklch(0.975 0.0113 97.15); /* addition */
  --brand-100: oklch(0.948 0.0203 97.15); /* addition */
  --brand-200: oklch(0.9 0.0395 97.15); /* addition */
  --brand-300: oklch(0.83 0.0621 96.01); /* addition */
  --brand-400: oklch(0.74 0.0847 90.87); /* addition */
  --brand-500: oklch(0.65 0.1038 85.73); /* addition */
  --brand-600: oklch(0.56 0.1129 80.58); /* addition */
  --brand-700: oklch(0.48 0.1004 77.15); /* addition */
  --brand-800: oklch(0.4 0.0837 77.15); /* addition */
  --brand-900: oklch(0.32 0.0669 77.15); /* addition */
  --brand-950: oklch(0.25 0.0523 77.15); /* addition */
  --brand-ink: oklch(0.53 0.1108 77.15); /* addition */ /* text-safe brand text, links, focus ring */
  --brand-ink-strong: oklch(0.4325 0.0905 77.15); /* addition */ /* 7:1 text on brand surfaces */
  --brand-on-ink: oklch(1 0 0); /* addition */ /* text on an ink fill: what stock bg-primary gets */
  --brand-fill: oklch(0.8918 0.1129 97.15); /* addition */ /* primary button fill */
  --brand-fill-hover: oklch(0.8418 0.1129 97.15); /* addition */
  --brand-on-fill: oklch(0.2 0.0419 77.15); /* addition */
  --brand-fill-border: oklch(0.53 0.1108 77.15); /* addition */ /* = fill, or ink when the fill is too pale to hold its edge */
  --brand-surface: oklch(0.975 0.0113 97.15); /* addition */ /* tinted surface: selected rows, hover, callouts */
  --brand-surface-strong: oklch(0.948 0.0203 97.15); /* addition */ /* selected nav item */
  --brand-rule: oklch(0.8918 0.1129 97.15); /* addition */ /* the 4px letterhead rule (decorative) */
  --brand-heat-1: oklch(0.948 0.0203 97.15); /* addition */
  --brand-heat-2: oklch(0.9 0.0395 97.15); /* addition */
  --brand-heat-3: oklch(0.83 0.0621 96.01); /* addition */
  --brand-heat-4: oklch(0.65 0.1038 85.73); /* addition */
  --brand-heat-5: oklch(0.48 0.1004 77.15); /* addition */
  --brand-heat-1-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-2-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-3-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-4-foreground: oklch(0.18 0 0); /* addition */
  --brand-heat-5-foreground: oklch(1 0 0); /* addition */
  --data-bar: oklch(0.53 0.1108 77.15); /* addition */
  --series-1: oklch(0.53 0.1108 77.15); /* addition */
  --series-2: oklch(0.25 0 0); /* addition */
  --series-3: oklch(0.6 0.1072 82.87); /* addition */
  --series-4: oklch(0.56 0 0); /* addition */
  --series-5: oklch(0.34 0.0711 77.15); /* addition */
  --series-6: oklch(0.42 0 0); /* addition */
  --tenant-radius: 0.875rem; /* addition */ /* preset: round */
  --tenant-font-heading: var(--font-young-serif); /* addition */
  --heading-weight: 400; /* addition */
  --heading-tracking: 0em; /* addition */
}
.dark[data-tenant="sorrel"],
.dark [data-tenant="sorrel"] {
  --brand-raw: oklch(0.8918 0.1129 97.15); /* addition */
  --brand-50: oklch(0.25 0.0516 97.15); /* addition */
  --brand-100: oklch(0.3144 0.0649 97.15); /* addition */
  --brand-200: oklch(0.388 0.08 97.15); /* addition */
  --brand-300: oklch(0.4616 0.0952 97.15); /* addition */
  --brand-400: oklch(0.5352 0.1104 97.15); /* addition */
  --brand-500: oklch(0.618 0.1038 97.15); /* addition */
  --brand-600: oklch(0.7008 0.0847 97.15); /* addition */
  --brand-700: oklch(0.7836 0.0621 97.15); /* addition */
  --brand-800: oklch(0.848 0.0395 97.15); /* addition */
  --brand-900: oklch(0.8922 0.0203 97.15); /* addition */
  --brand-950: oklch(0.917 0.0113 97.15); /* addition */
  --brand-ink: oklch(0.8918 0.1129 97.15); /* addition */ /* text-safe brand text, links, focus ring */
  --brand-ink-strong: oklch(0.8918 0.1129 97.15); /* addition */ /* 7:1 text on brand surfaces */
  --brand-on-ink: oklch(0.18 0.0372 97.15); /* addition */ /* text on an ink fill: what stock bg-primary gets */
  --brand-fill: oklch(0.8918 0.1129 97.15); /* addition */ /* primary button fill */
  --brand-fill-hover: oklch(0.9418 0.104 97.15); /* addition */
  --brand-on-fill: oklch(0.18 0.0372 97.15); /* addition */
  --brand-fill-border: oklch(0.8918 0.1129 97.15); /* addition */ /* = fill, or ink when the fill is too pale to hold its edge */
  --brand-surface: oklch(0.235 0.0248 97.15); /* addition */ /* tinted surface: selected rows, hover, callouts */
  --brand-surface-strong: oklch(0.28 0.0339 97.15); /* addition */ /* selected nav item */
  --brand-rule: oklch(0.8918 0.1129 97.15); /* addition */ /* the 4px letterhead rule (decorative) */
  --brand-heat-1: oklch(0.28 0.0395 97.15); /* addition */
  --brand-heat-2: oklch(0.36 0.0564 97.15); /* addition */
  --brand-heat-3: oklch(0.46 0.079 97.15); /* addition */
  --brand-heat-4: oklch(0.6 0.0959 97.15); /* addition */
  --brand-heat-5: oklch(0.76 0.0847 97.15); /* addition */
  --brand-heat-1-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-2-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-3-foreground: oklch(0.955 0 0); /* addition */
  --brand-heat-4-foreground: oklch(0.12 0 0); /* addition */
  --brand-heat-5-foreground: oklch(0.12 0 0); /* addition */
  --data-bar: oklch(0.8918 0.1129 97.15); /* addition */
  --series-1: oklch(0.8918 0.1129 97.15); /* addition */
  --series-2: oklch(0.9 0 0); /* addition */
  --series-3: oklch(0.64 0.1016 97.15); /* addition */
  --series-4: oklch(0.66 0 0); /* addition */
  --series-5: oklch(0.86 0.0508 97.15); /* addition */
  --series-6: oklch(0.52 0 0); /* addition */
}
