/*
 * Author: Yogabrata Mukhopadhyay
 * Organization: ManjuLab
 * Copyright (c) 2026 ManjuLab. All rights reserved.
 */
/* Light & monochrome palette readability fixes */

html[data-cosmic-theme="dawn"] .navbar,
html[data-cosmic-theme="paper"] .navbar {
  background: color-mix(in srgb, var(--bg-card) 92%, transparent) !important;
  border-bottom-color: var(--border) !important;
}

html[data-cosmic-theme="dawn"] .csr-agent-grid .portal-core,
html[data-cosmic-theme="paper"] .csr-agent-grid .portal-core {
  background: linear-gradient(145deg, #ffffff, var(--bg-subtle)) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

html[data-cosmic-theme="dawn"] .csr-agent-grid .portal-title,
html[data-cosmic-theme="paper"] .csr-agent-grid .portal-title,
html[data-cosmic-theme="dawn"] .home-orbit-node-label,
html[data-cosmic-theme="paper"] .home-orbit-node-label {
  color: var(--text-1) !important;
}

html[data-cosmic-theme="dawn"] .csr-agent-grid .portal-sub,
html[data-cosmic-theme="paper"] .csr-agent-grid .portal-sub {
  color: var(--text-3) !important;
}

html[data-cosmic-theme="dawn"] .trust-card,
html[data-cosmic-theme="paper"] .trust-card {
  background: var(--bg-card);
  border-color: var(--border);
}

html[data-cosmic-theme="dawn"] .home-orbit-node-core,
html[data-cosmic-theme="paper"] .home-orbit-node-core {
  background: var(--bg-card);
  border-color: var(--border);
}

html[data-cosmic-theme="dawn"] .word-ai,
html[data-cosmic-theme="paper"] .word-ai {
  background: linear-gradient(135deg, var(--text-1), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-cosmic-theme="dawn"] .sec-title .accent,
html[data-cosmic-theme="paper"] .sec-title .accent {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-cosmic-theme="paper"] .btn-primary {
  background: linear-gradient(135deg, #171717, #404040);
  color: #fafafa !important;
}

html[data-cosmic-theme="paper"] .btn-primary:hover {
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

html[data-cosmic-theme="noir"] .btn-primary {
  background: linear-gradient(135deg, #fafafa, #d4d4d4);
  color: #0a0a0a !important;
}

html[data-cosmic-theme="noir"] .word-ai,
html[data-cosmic-theme="noir"] .sec-title .accent {
  background: linear-gradient(135deg, #fafafa, #a3a3a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-cosmic-theme="paper"] body::before,
html[data-cosmic-theme="dawn"] body::before {
  opacity: 0.5;
}

html[data-cosmic-theme="paper"] .customer-hero-img::before {
  opacity: 0.35;
  mix-blend-mode: multiply;
}

html[data-cosmic-theme="dawn"] .marquee-wrap,
html[data-cosmic-theme="paper"] .marquee-wrap {
  background: var(--bg-subtle);
  border-color: var(--border);
}

html[data-cosmic-theme="dawn"] .pdf-page-sheet,
html[data-cosmic-theme="paper"] .pdf-page-sheet {
  /* iframe apps unchanged */
}

html[data-cosmic-theme="dawn"] .cosmic-theme-swatch,
html[data-cosmic-theme="paper"] .cosmic-theme-swatch {
  color: var(--text-1);
}

html[data-cosmic-theme="noir"] .cosmic-theme-swatch[data-theme="noir"] {
  color: #0a0a0a;
}
