/* Design tokens. The only place for colours and measures.
   Hosts inject BrandingStyle after this file so a tenant accent and logo override these defaults.
   Visual reference: docs/banani/*.png (UI refresh, October 2026). */

:root {
  --brand-accent: #1A5F4A;
  --brand-accent-soft: #E8EFED;
  --brand-logo-url: none;

  /* Surfaces and text */
  --color-bg: #F4F6F9;
  --color-bg-public: #EEF2F1;
  --color-surface: #FFFFFF;
  --color-surface-muted: #EEF0F4;
  --color-surface-sunken: #F7F8FA;
  --color-text: #111827;
  --color-text-muted: #6B7280;
  --color-border: #DDE1E8;
  --color-border-strong: #C5CBD5;

  /* Status */
  --color-success: #15803D;
  --color-success-bg: #DCFCE7;
  --color-warning: #B45309;
  --color-warning-strong: #92400E;
  --color-warning-bg: #FEF3C7;
  --color-warning-bg-strong: #FDE9B4;
  --color-warning-border: #F5D27A;
  --color-danger: #DC2626;
  --color-danger-strong: #B91C1C;
  --color-danger-bg: #FEE2E2;
  --color-info: #2563EB;
  --color-info-bg: #DBEAFE;
  --color-on-accent: #FFFFFF;
  --color-on-solid: #FFFFFF;

  /* Portal sidebar (dark) */
  --color-sidebar: #111827;
  --color-sidebar-raised: #1F2937;
  --color-sidebar-border: #1F2937;
  --color-sidebar-text: #F9FAFB;
  --color-sidebar-muted: #9CA3AF;

  /* Typography */
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-size-base: 15px;
  --font-size-sm: 14px;
  --font-size-xs: 12px;
  --font-size-h1: 26px;
  --font-size-h2: 17px;
  --font-size-display: 30px;
  --font-size-kpi: 28px;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;

  /* Controls and elevation */
  --control-height: 48px;
  --control-height-sm: 44px;
  --control-height-lg: 52px;
  --icon-size: 20px;
  --icon-size-sm: 16px;
  --tile-size: 40px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.05);
  --shadow-raised: 0 12px 32px rgba(16, 24, 40, 0.10);

  /* Layout */
  --sidebar-width: 264px;
  --topbar-height: 72px;
  --content-max: 1120px;
  --content-max-table: 1280px;
  --content-max-narrow: 840px;
  --aside-width: 340px;
  --content-max-public: 560px;
  --content-max-public-wide: 680px;
}

body.t-public {
  --color-bg: var(--color-bg-public);
  --font-size-base: 16px;
  --font-size-h1: 24px;
  --font-size-h2: 18px;
  --control-height: 48px;
  --control-height-lg: 56px;
}
