/*
 * TERA design tokens. Calm warm neutrals, one deep-green accent, soft tints per event colour.
 * Components reference only these variables, so theming (incl. a later dark mode) happens here.
 */
:root {
  --canvas: #fafaf8;
  --sidebar: #f3f3f0;
  --surface: #ffffff;
  --surface-muted: #f6f6f3;
  --border: #e8e7e2;
  --border-strong: #d8d7d0;
  --ink: #1c2320;
  --ink-muted: #5c6460;
  --ink-subtle: #8a908c;
  --primary: #2f5d54;
  --primary-hover: #264c45;
  --primary-soft: #e5eeea;
  --primary-ink: #ffffff;
  --danger: #b84a44;

  --tint-blue: #e9f0fb;    --ink-blue: #3d6fc2;
  --tint-green: #e6f2ea;   --ink-green: #3a7b55;
  --tint-orange: #fdeee3;  --ink-orange: #d27630;
  --tint-violet: #efebfb;  --ink-violet: #7057c7;
  --tint-amber: #fbf1dc;   --ink-amber: #b98319;
  --tint-teal: #e2f1ef;    --ink-teal: #2c7f74;
  --tint-rose: #fbeae8;    --ink-rose: #c0524b;
  --tint-slate: #eef0ef;   --ink-slate: #5e6a67;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgb(28 35 32 / 0.04);
  --shadow-panel: 0 1px 2px rgb(28 35 32 / 0.04), 0 8px 24px -8px rgb(28 35 32 / 0.08);
  --shadow-overlay: 0 24px 64px -16px rgb(28 35 32 / 0.25);
  --sidebar-width: 288px;
}

/* Event colour helpers: .tone-blue sets --tint/--tone-ink for icons and badges. */
.tone-blue   { --tone-bg: var(--tint-blue);   --tone-ink: var(--ink-blue); }
.tone-green  { --tone-bg: var(--tint-green);  --tone-ink: var(--ink-green); }
.tone-orange { --tone-bg: var(--tint-orange); --tone-ink: var(--ink-orange); }
.tone-violet { --tone-bg: var(--tint-violet); --tone-ink: var(--ink-violet); }
.tone-amber  { --tone-bg: var(--tint-amber);  --tone-ink: var(--ink-amber); }
.tone-teal   { --tone-bg: var(--tint-teal);   --tone-ink: var(--ink-teal); }
.tone-rose   { --tone-bg: var(--tint-rose);   --tone-ink: var(--ink-rose); }
.tone-slate  { --tone-bg: var(--tint-slate);  --tone-ink: var(--ink-slate); }
.tone-neutral { --tone-bg: var(--surface-muted); --tone-ink: var(--ink-muted); }
.tone-primary { --tone-bg: var(--primary-soft); --tone-ink: var(--primary); }
