/*
 * TopRoute ivory skin (trial, Chester 2026-11-12): every blue accent becomes off-white (米白).
 *
 * Activated per box by:
 *   THEME_CSS_URL=/brand/toproute-ivory.css
 * and worn by the enterprise landing preview (lib/landingPreviewBrand.ts).
 * Loaded via a <link> appended to the end of <head>, so it cascade-wins over index.css.
 *
 * Dark is the default palette (:root); `.light` flips the accent to ink so it stays visible on white.
 */
:root {
  --primary: #efe9dc;
  --primary-foreground: #1a1814;
  --ring: #efe9dc;
  --sidebar-primary: #efe9dc;
  --sidebar-primary-foreground: #1a1814;
  --sidebar-ring: #efe9dc;
  --hero-glow: rgba(239, 233, 220, 0.06);
  --btn-glow-from: #f4efe4;
  --btn-glow-to: #e6dfcf;
  --btn-glow-shadow: 239 233 220;
}

.light {
  --primary: #22211f;
  --primary-foreground: #ffffff;
  --ring: #22211f;
  --sidebar-primary: #22211f;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-ring: #22211f;
  --hero-glow: rgba(34, 33, 31, 0.04);
  --btn-glow-from: #2b2a27;
  --btn-glow-to: #1a1917;
  --btn-glow-shadow: 34 33 31;
}

/* The glow CTA hard-codes white text in places; it must follow the accent's foreground. */
.btn-glow {
  color: var(--primary-foreground) !important;
  box-shadow: 0 0 20px rgb(var(--btn-glow-shadow) / 0.18);
}

/* Hard-coded blue utility used for readable text on a primary tint (comparison table). */
.text-blue-300 {
  color: var(--primary);
}

/* The bundled bolt mark is a purple-to-blue gradient; render it in the accent's tone. */
img[src="/favicon.svg"] {
  filter: grayscale(1) brightness(2.6) sepia(0.12);
}
.light img[src="/favicon.svg"] {
  filter: grayscale(1) brightness(0.25);
}
