/* CMDTek Tracearr branding override — reapply after Tracearr web-asset upgrades. */
:root {
  --accent-hue: 158;
  --cyan-core: 158 100% 34%;
  --cyan-deep: 160 100% 31%;
  --cyan-dark: 160 100% 28%;
  --blue-core: 206 24% 13%;
  --blue-steel: 205 13% 19%;
}

.dark {
  --background: 206 24% 13%;       /* #192229 */
  --foreground: 0 0% 98%;
  --card: 205 13% 19%;             /* #2A3136 */
  --card-foreground: 0 0% 98%;
  --popover: 205 13% 19%;
  --popover-foreground: 0 0% 98%;
  --primary: 158 100% 34%;         /* #00AE70 */
  --primary-foreground: 0 0% 100%;
  --secondary: 205 12% 24%;
  --secondary-foreground: 0 0% 98%;
  --muted: 205 12% 24%;
  --muted-foreground: 210 9% 72%;
  --accent: 205 12% 24%;
  --accent-foreground: 0 0% 98%;
  --border: 205 12% 28%;
  --input: 205 12% 28%;
  --ring: 158 100% 37%;            /* #00BF78 */
  --sidebar: 206 24% 13%;
  --sidebar-foreground: 0 0% 98%;
  --sidebar-primary: 158 100% 34%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 205 13% 19%;
  --sidebar-accent-foreground: 0 0% 98%;
  --sidebar-border: 205 12% 28%;
  --sidebar-ring: 158 100% 37%;
}

/* Login-page footer copy. */
#root > div > p.text-muted-foreground.mt-6.text-center.text-xs {
  font-size: 0 !important;
}
#root > div > p.text-muted-foreground.mt-6.text-center.text-xs::after {
  content: 'CMDTek | Media Insights';
  font-size: 0.75rem;
}

/* Never show Tracearr's own shield; use the CMDTek wordmark in its place. */
svg[viewBox="0 0 64 64"]:has(path.fill-blue-core) {
  display: block !important;
  background: url('/images/branding/cmdtek-primary-white.svg') center / contain no-repeat !important;
}
svg[viewBox="0 0 64 64"]:has(path.fill-blue-core) > * {
  display: none !important;
}
/* The login page's product heading is redundant beneath the CMDTek wordmark. */
#root > div > div.mb-8 > h1 {
  display: none !important;
}
svg[viewBox="0 0 64 64"].h-20:has(path.fill-blue-core),
svg[viewBox="0 0 64 64"].w-20:has(path.fill-blue-core) {
  width: 22rem !important;
  height: 7.25rem !important;
  margin-bottom: 1rem;
}
svg[viewBox="0 0 64 64"]:not(.h-20):not(.w-20):has(path.fill-blue-core) {
  width: 12rem !important;
  height: 2.8rem !important;
}
/* Logo.tsx renders this sibling as the Tracearr wordmark in the application sidebar. */
svg[viewBox="0 0 64 64"]:has(path.fill-blue-core) + span.font-bold {
  display: none !important;
}
