/* PHR EHS Suite design tokens. Every colour, size and radius used by the UI
   is defined here and referenced by name everywhere else; change a brand
   value once and the whole suite follows. Palette source: powerhouserecycling.com
   theme (primary #006633, secondary #88CC33, text #002211) and the logo greens. */
:root {
  /* Brand greens */
  --brand-900: #02301A;
  --brand-800: #044A27;
  --brand-700: #006633;   /* primary: buttons, links, active states */
  --brand-600: #0B7A3E;
  --brand-500: #0B9048;   /* logo mid-green: accents, progress */
  --brand-100: #DFF0E5;
  --brand-50:  #F1F8F3;
  --lime-600:  #6FAF22;
  --lime-500:  #88CC33;   /* secondary accent: highlights on dark surfaces */
  --lime-100:  #EEF8DD;

  /* Neutrals */
  --ink:     #002211;     /* headings */
  --text:    #1E2C25;     /* body copy */
  --muted:   #5E6D66;     /* secondary text, labels */
  --faint:   #66746D;     /* placeholders, footers: the lightest text still 4.5:1 on white */
  --line:    #DEE4E1;     /* borders, dividers (decorative) */
  --line-strong: #C5CEC9; /* dividers that need to read as edges */
  --line-control: #7E8C86; /* the border of a control: 3:1 on white, per WCAG 1.4.11 */
  --surface: #FFFFFF;
  --surface-2: #F7F9F8;   /* subtle panels inside cards */
  --bg:      #F4F5F7;     /* page background (brand light bg) */

  /* Status */
  --ok:      #166534;  --ok-bg:   #DCFCE7;  --ok-line:   #A7E3BC;
  --warn:    #92400E;  --warn-bg: #FEF3C7;  --warn-line: #F5D98A;
  --bad:     #991B1B;  --bad-bg:  #FEE2E2;  --bad-line:  #F5B5B5;
  --info:    #075985;  --info-bg: #E0F2FE;  --info-line: #A5D8F6;

  /* Sidebar (dark surface) */
  --side-bg:      #03361E;
  --side-bg-2:    #05452A;
  --side-text:    #D5E6DB;
  --side-muted:   #86A894;
  --side-hover:   rgba(255,255,255,.06);
  --side-active:  rgba(255,255,255,.10);
  --side-accent:  var(--lime-500);

  /* Focus ring: a solid outline (3:1 on white; an outline is never clipped by
     a scrolling ancestor the way a box-shadow is) plus a soft halo on inputs. */
  --focus-ring: 2px solid var(--brand-600);
  --focus: 0 0 0 3px rgba(11,144,72,.35);

  /* Type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-sig: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14.5px;   /* body */
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;
  --lh: 1.55;

  /* Space (4px base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

  /* Shape */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,34,17,.06);
  --shadow-md: 0 4px 16px rgba(0,34,17,.08);
  --shadow-lg: 0 16px 48px rgba(0,34,17,.18);

  /* Layout */
  --sidebar-w: 256px;
  --topbar-h: 56px;
  --content-max: 1240px;
  --narrow-max: 720px;
  --reading-max: 860px;
}
