/* ==========================================================================
   Need-oo design tokens
   --------------------------------------------------------------------------
   Everything visual is driven from here. To re-theme this app for another
   client, change ONLY the "Brand" and "Accent" blocks (and the font if wanted);
   components in app.css use the semantic tokens below and never raw colours.
   Palette idea: tailoring navy (suiting cloth) + muted brass (thread) on soft grey.
   ========================================================================== */
:root {
  color-scheme: light;

  /* ---- Brand (navy) ---- */
  --brand-900: #0E1A33;   /* header, deepest surfaces */
  --brand-800: #14264A;   /* primary buttons */
  --brand-700: #1B3566;   /* hover, links on light */
  --brand-600: #25457F;
  --brand-100: #E3E9F4;
  --brand-50:  #F1F4FA;

  /* ---- Accent (muted brass/gold). Decorative + on dark only: never body text on white ---- */
  --accent-600: #8E6F28;
  --accent-500: #B08D3C;
  --accent-300: #D8BC74;
  --accent-100: #F6EEDA;

  /* ---- Neutrals (soft grey) ---- */
  --bg:             #F5F6F8;
  --surface:        #FFFFFF;
  --surface-muted:  #EEF0F4;
  --border:         #D9DEE7;
  --border-strong:  #7E89A0;   /* form controls: >= 3:1 on white, page bg and muted panels (WCAG 1.4.11) */
  --text:           #18202F;
  --text-muted:     #52607A;
  --text-on-brand:  #FFFFFF;
  --text-on-brand-muted: #C4CCDD;

  /* ---- Status (text colour + tinted background pairs) ---- */
  --success: #17603C;  --success-bg: #E4F2EA;  --success-border: #B5D9C4;
  --warning: #7A4F00;  --warning-bg: #FBF0D9;  --warning-border: #E8CF98;
  --danger:  #9B2222;  --danger-bg:  #FBE8E8;  --danger-border:  #EBBABA;
  --info:    #1D4E89;  --info-bg:    #E6EEF9;  --info-border:    #BBCDE6;
  --neutral: #404B63;  --neutral-bg: #EAEDF3;  --neutral-border: #CBD1DD;

  --focus: #2A63C9;            /* focus ring on light surfaces */
  --focus-on-dark: #D8BC74;    /* focus ring on navy surfaces */

  /* ---- Typography ---- */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-xs: .8125rem;   /* 13px */
  --text-sm: .875rem;    /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2rem;
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.55;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---- Spacing (4px grid) ---- */
  --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;  --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem;  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;

  /* ---- Shape ---- */
  --radius-sm: 6px;  --radius-md: 10px;  --radius-lg: 14px;  --radius-pill: 999px;
  --border-width: 1px;

  /* ---- Elevation ---- */
  --shadow-sm: 0 1px 2px rgba(14,26,51,.06), 0 1px 1px rgba(14,26,51,.04);
  --shadow-md: 0 6px 18px rgba(14,26,51,.10);

  /* ---- Layout ---- */
  --container: 1040px;
  --header-h: 56px;
  --bottom-nav-h: 64px;
  --tap: 44px;               /* minimum touch target */

  /* ---- Motion (kept subtle; disabled for reduced-motion users) ---- */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 140ms;
}
