/* smallbuss: design tokens of the Linka brand (DEC-036).
   The interface has a single theme in the brand colours (DEC-012): Signal yellow and Ink.
   Primary actions are ink; the soft accent is a pale yellow with ink text. Yellow is never
   text on a light background, and every text colour meets WCAG AA on its background.
   Source: docs/design/brand-redesign/assets/linka.css. The fonts are declared in FontFaces.razor. */

:root {
  /* Brand */
  --sb-signal:         #F5B82E;
  --sb-signal-hover:   #E8A915;
  --sb-signal-text:    #7A5300;   /* signal as text on a light background */
  --sb-ink:            #15171C;

  /* Primary role: ink actions with a pale yellow soft accent */
  --sb-primary:        #15171C;
  --sb-primary-hover:  #22252C;
  --sb-primary-soft:   #FDEFCC;
  --sb-primary-tint:   #FFF8E8;   /* an even softer background for active rows */
  --sb-primary-text:   #FFFFFF;

  /* Warm neutrals */
  --sb-bg:             #F6F5F1;
  --sb-surface:        #FFFFFF;
  --sb-surface-alt:    #FAF9F6;
  --sb-sidebar:        #FBF8F1;
  --sb-border:         #EAE7E0;
  --sb-border-strong:  #DAD6CC;

  --sb-text:           #15171C;
  --sb-text-muted:     #5F5C55;   /* 6.1 : 1 on the background */
  --sb-text-faint:     #726E67;   /* 4.6 : 1 on the background; the lightest text */
  --sb-neutral-soft:   #EFEDE8;

  /* Charts */
  --sb-chart-series:   var(--sb-primary);   /* current period */
  --sb-chart-compare:  #8C8982;
  --sb-chart-grid:     var(--sb-border);

  /* Semantic states */
  --sb-success:        #17804A;  --sb-success-soft: #E5F4EA;
  --sb-warning:        #A86200;  --sb-warning-soft: #FFF1D9;
  --sb-danger:         #C93A22;  --sb-danger-soft:  #FCEAE6;
  --sb-info:           #2563D9;  --sb-info-soft:    #EAF0FD;
  /* Order states of the brand guide: confirmed is amber, ready is violet */
  --sb-amber:          #D39200;  --sb-amber-soft:   #FDEFCC;  --sb-amber-text: #7A5300;
  --sb-violet:         #5B47C9;  --sb-violet-soft:  #EFECFC;

  /* Focus: an ink border with a yellow halo */
  --sb-focus:          0 0 0 4px rgba(245,184,46,.38);

  /* Shape */
  --sb-radius-sm: 8px;
  --sb-radius:    10px;
  --sb-radius-lg: 16px;
  --sb-radius-pill: 999px;

  /* Shadows: soft and warm */
  --sb-shadow-sm: 0 1px 2px rgba(21,23,28,.05);
  --sb-shadow:    0 1px 2px rgba(21,23,28,.04), 0 8px 24px -12px rgba(21,23,28,.12);
  --sb-shadow-lg: 0 30px 60px -24px rgba(21,23,28,.28);

  /* Typography */
  --sb-font-brand: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  --sb-font-ui:    Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sb-font-num:   Inter, system-ui, sans-serif;

  /* Shell dimensions */
  --sb-sidebar-w: 256px;
  --sb-topbar-h:  64px;
}
