/* Phase 1 backwards-compat shim.
 * Maps old dark-theme custom properties to the new light tokens so
 * untouched templates (job_detail, profile, ingest, etc.) render
 * sensibly until each gets its dedicated phase.
 *
 * This file disappears after Phase 12 (Admin restyle) when no template
 * still references --ne-* / --primary / --bg / etc.
 */

:root {
  /* === Legacy custom properties from base.html === */
  --primary: var(--accent);
  --primary-light: var(--accent-3);
  --bg: var(--paper);
  --surface: var(--paper);
  --surface-high: var(--paper-2);
  --surface-highest: var(--paper-3);
  --border: var(--rule);
  --border-strong: var(--rule-strong);
  --text: var(--ink);
  --muted: var(--ink-4);

  /* === Neural Editorial direct tokens === */
  --ne-primary: var(--accent);
  --ne-primary-dim: var(--accent-2);
  --ne-on-primary: #ffffff;
  --ne-background: var(--paper);
  --ne-surface-low: var(--paper);
  --ne-surface: var(--paper-2);
  --ne-surface-high: var(--paper-2);
  --ne-surface-highest: var(--paper-3);
  --ne-surface-bright: var(--paper-3);
  --ne-on-surface: var(--ink);
  --ne-on-surface-variant: var(--ink-4);
  --ne-outline: var(--ink-5);
  --ne-outline-variant: var(--rule-strong);
  --ne-tertiary: var(--accent);
  --ne-on-tertiary: #ffffff;
  --ne-error: var(--danger);
}

/* Dark theme decorations flatten to plain paper */
.glass-card,
.glass-panel {
  background: var(--paper);
  backdrop-filter: none;
}
.neural-gradient {
  background: var(--paper);
}
.neural-glow {
  box-shadow: var(--shadow-sm);
}

/* Legacy `dark:` Tailwind-like utilities used inline in templates: keep
 * the body light. */
html.dark, html[class~="dark"] {
  background: var(--paper);
  color: var(--ink);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }
