/* Tide palette; selected by index.html and app/theme.ts. */

:root[data-theme="tide"] {
  /*
   * Accent — steel cyan on deep slate
   *
   * The first cool-primary theme in the set; every other palette accents warm.
   */
  --ring: #5ab6d8;
  --accent: #5ab6d8;
  --accent-hover: #7ac8e4;
  --accent-muted: #5ab6d8;
  --accent-subtle: rgba(90, 182, 216, 0.12);
  --accent-glow: rgba(90, 182, 216, 0.2);
  --primary: #5ab6d8;
  --primary-hover: #7ac8e4;
  --primary-foreground: #0b1116;
  --accent-foreground: #0b1116;

  /* Deepen only the text-bearing destructive fill; keep danger accents vivid. */
  --destructive: #d32f2f;
  --destructive-hover: #bc2a2a;

  --focus: rgba(90, 182, 216, 0.2);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in srgb, var(--ring) 70%, transparent);
  --focus-glow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ring), 0 0 16px var(--accent-glow);

  --bg-content: #10151b;

  --card-foreground: #eef3f8;
  --card-highlight: rgba(210, 232, 255, 0.04);
  --popover-foreground: #eef3f8;

  /* 12:1 on slate: the old #dce3ea sat at 14.2:1 and read glary on the cold
     canvas; --text-strong keeps the bright step for emphasis. */
  --text: #c9d2da;
  --text-strong: #f2f6fa;
  --chat-text: #c9d2da;
  --muted: #9dabb9;
  --muted-strong: #aab7c4;
  --muted-foreground: #9dabb9;

  --secondary-foreground: #eef3f8;
  --accent-2: #7f9bb5;
  --accent-2-muted: rgba(127, 155, 181, 0.7);
  --accent-2-subtle: rgba(127, 155, 181, 0.12);

  --shadow-sm: 0 1px 2px rgba(2, 6, 12, 0.4);
  --shadow-lg: 0 12px 32px rgba(2, 6, 12, 0.6);

  --grid-line: rgba(210, 232, 255, 0.03);
  /* Typography — IBM Plex Sans (fonts/ibm-plex-sans.css): an engineered humanist sans
     for the steel-cyan identity. Fallbacks keep text painting on failure. */
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="tide-light"] {
  /*
   * Accent — deep teal-blue on cool paper
   */
  --ring: #1f6f8f;
  --accent: #1f6f8f;
  --accent-hover: #175a75;
  --accent-muted: #1f6f8f;
  --accent-subtle: rgba(31, 111, 143, 0.1);
  --accent-glow: rgba(31, 111, 143, 0.14);
  --primary: #1f6f8f;
  --primary-hover: var(--accent-hover);
  --primary-foreground: #ffffff;
  --accent-foreground: #ffffff;

  --bg-content: #f1f3f5;

  --card-foreground: #1b232b;
  --card-highlight: rgba(20, 40, 60, 0.02);
  --popover-foreground: #1b232b;
  --session-hovercard-surface: var(--card);

  --text: #333c45;
  --text-strong: #1b232b;
  --chat-text: #333c45;
  --muted: #5f6b76;
  --muted-strong: #4c5761;
  --muted-foreground: #5f6b76;

  --secondary-foreground: #333c45;
  --accent-2: #3d6d88;
  --accent-2-muted: rgba(61, 109, 136, 0.75);
  --accent-2-subtle: rgba(61, 109, 136, 0.1);

  --shadow-sm: 0 1px 2px rgba(20, 40, 60, 0.05);
  --shadow-lg: 0 12px 28px rgba(20, 40, 60, 0.09);

  --grid-line: rgba(20, 40, 60, 0.04);
  /* Typography — IBM Plex Sans (fonts/ibm-plex-sans.css); see the dark block. */
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
