/* M-Pesa Tours design tokens: the single source of truth for colour, type and shape (Rules 55, 57).
   Palette: Option B "Balanced M-Pesa red + Tanzanian safari identity" (approved 10 Nov 2026).
   - M-Pesa red is the brand and the action colour: primary buttons, booking, sign-in, payment, active
     navigation, selected states. Fills use --brand; small red text uses --brand-strong (6.0:1 on white).
   - Safari gold, savannah earth and warm neutrals carry the Tanzanian character, used selectively.
   - Status colours are separate from the brand: success green, warning amber, information blue, and
     error/destructive oxblood (never brand red).
   Change a colour here and it changes everywhere. Contrast ratios are against white unless stated. */
:root{
  /* Brand: M-Pesa red */
  --brand:#E60000;        /* fills: buttons, logo mark, selected date (white text 4.8:1) */
  --brand-strong:#C90000; /* hover/pressed fills, links, small red text, active nav text (6.0:1) */
  --brand-tint:#FDECEC;   /* active navigation / tab background (brand-strong text 5.3:1) */
  --brand-line:#F3C4C4;   /* outline-button and tinted borders */
  --brand-shadow:rgba(201,0,0,.45);

  /* Safari */
  --gold:#D4A853;         /* decoration and fills behind dark text only (2.2:1 on white) */
  --gold-ink:#7A5A12;     /* gold as text (6.4:1; 5.5:1 on --gold-tint) */
  --gold-tint:#F7EEDC;
  --gold-soft:#F1D18F;    /* gold text on earth / night backgrounds (8.9:1 on --earth) */
  --earth:#3B2F1D;        /* savannah earth: partner header, KPI strip, Rafiki card */
  --earth2:#5A4527;
  --earth-deep:#2E2416;

  /* Neutrals (warm) */
  --ink:#1F2421;          /* main text (14.7:1 on --bg) */
  --ink2:#46423A;         /* secondary text (10.0:1) */
  --mut:#6B6457;          /* muted text (5.5:1 on --bg, 5.9:1 on white) */
  --faint:#A59E91;        /* placeholders and disabled only, never information */
  --bg:#FAF7F1;           /* page */
  --card:#FFFFFF;
  --line:#EAE2D4;         /* dividers */
  --field:#8A8070;        /* form field edges (3.9:1, meets 3:1 for boundaries) */
  --stage:#E7DECD;
  --tint:#F3EEE5;         /* neutral notes and badges */
  --seg:#EFE7D8;          /* segmented controls (view toggles) */
  --thead:#F6F1E7;        /* table headers */
  --thead-soft:#FCFAF6;
  --night:#1A1713;        /* dark device mock-ups (simulated phone, SMS) */
  --night2:#2A251E;
  --night-line:#3D362C;
  --night-ink:#F3EFE6;
  --scrim:rgba(45,28,10,.45);        /* photo shading (warm) */
  --scrim-strong:rgba(35,22,8,.62);
  --shade:rgba(31,26,18,.28);        /* shadows */

  /* Status (never brand red) */
  --ok:#1E7B46;     --ok-tint:#E7F4EC;      /* success: confirmed, verified, ticks (4.7:1 on tint) */
  --warn:#7A4C00;   --warn-tint:#FFF4DC;    --warn-edge:#C98A00;  /* warning (6.7:1 on tint) */
  --info:#1E5F7A;   --info-tint:#E3F3FA;    /* information, sky blue tint (6.2:1 on tint) */
  --danger:#9E1C12; --danger-tint:#F9E4DE;  --danger-strong:#7F160E;  /* errors, delete (6.9:1 on tint) */
  --sim:#A04A00;    /* simulation warnings ("no real money moved"): a caution, not an error (6.0:1). PDFs use it now. */

  /* Map pins and other category colours */
  --blocked:#E7E3F5;      /* room-calendar blocked days */
  --cat-tour:var(--brand); --cat-stay:var(--info); --cat-transport:var(--gold-ink); --cat-site:#8A4FBF;

  /* Older names kept so every existing rule follows the palette */
  --g:var(--brand); --g2:var(--brand-strong); --g3:var(--brand-tint); --g4:var(--brand-line);
  --gold2:var(--gold-tint); --red:var(--danger); --red2:var(--danger-tint); --blue:var(--info); --blue2:var(--info-tint);

  --shadow:0 10px 30px -12px var(--shade);
  --r:20px;
  --gutter:max(16px, env(safe-area-inset-left, 0px));
  --f:"Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:"JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme:light;
}
