/* 1. Header & Navigation */
/* ==========================================================================
   Comprehensive Light Theme Precision Overrides (Executive Alabaster)
   ========================================================================== */
[data-theme="light"] nav#siteNavigation {
  background-color: var(--nav-bg) !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] nav#siteNavigation .text-white { color: #0B1120 !important; }

[data-theme="light"] nav#siteNavigation .hover\:text-white:hover, [data-theme="light"] nav#siteNavigation .nav-dropdown-trigger:hover, [data-theme="light"] nav#siteNavigation a:hover { color: #0B1120 !important; }

[data-theme="light"] .hover\:text-white:hover { color: var(--text-heading) !important; }

[data-theme="light"] .hover\:text-emerald-300:hover { color: #047857 !important; }

[data-theme="light"] .nav-dropdown-menu {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .nav-dropdown-menu a:hover { background-color: rgba(166, 124, 46, 0.08) !important; }

[data-theme="light"] .nav-dropdown-menu .w-8.h-8 {
  background-color: #F1F5F9 !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  color: #8E651E !important;
}

[data-theme="light"] #mobileMenuPanel {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] #mobileMenuPanel a { color: #1E293B !important; }

[data-theme="light"] #mobileMenuPanel a:hover { background-color: #F1F5F9 !important; }

/* 2. Typography & Colors */
[data-theme="light"] .text-white { color: var(--text-heading) !important; }

[data-theme="light"] .gold-text-gradient {
  background: linear-gradient(135deg, #0B1120 0%, #1E3A8A 55%, #8E651E 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
}

[data-theme="light"] .metric-value { color: #0B1120 !important; }

[data-theme="light"] .metrics-ribbon {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .metric-item { border-color: rgba(15, 23, 42, 0.06) !important; }

[data-theme="light"] .text-emerald-400, [data-theme="light"] .text-emerald-300 { color: #047857 !important; }

[data-theme="light"] .bg-emerald-500\/10, [data-theme="light"] .bg-emerald-500\/15, [data-theme="light"] .bg-emerald-500\/20 {
  background-color: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

[data-theme="light"] .text-slate-300, [data-theme="light"] .text-slate-200 { color: var(--text-primary) !important; }

[data-theme="light"] .text-slate-400 { color: var(--text-secondary) !important; }

[data-theme="light"] .text-slate-500 { color: var(--text-muted) !important; }

[data-theme="light"] [class*="text-[#DFBE7A]"], [data-theme="light"] [class*="text-[#C5A059]"], [data-theme="light"] .text-\[\#DFBE7A\], [data-theme="light"] .text-\[\#DFBE7A\]\/90, [data-theme="light"] .text-\[\#C5A059\], [data-theme="light"] .text-\[\#C5A059\]\/90 { color: var(--text-gold) !important; }

[data-theme="light"] .gold-badge, [data-theme="light"] .gold-badge * {
  background-color: rgba(166, 124, 46, 0.09) !important;
  color: var(--text-gold) !important;
  border-color: rgba(166, 124, 46, 0.28) !important;
}

/* 3. Cards, Gradients & Background Inversion */
[data-theme="light"] .luxury-card, [data-theme="light"] .credential-luxury-card {
  background-color: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 16px -2px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .luxury-card:hover, [data-theme="light"] .credential-luxury-card:hover {
  background-color: #FFFFFF !important;
  border-color: var(--gold-border) !important;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(166, 124, 46, 0.3) !important;
}

[data-theme="light"] .practice-card-icon {
  background: #F1F5F9 !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  color: #0B1120 !important;
}

[data-theme="light"] .luxury-card:hover .practice-card-icon {
  background: rgba(166, 124, 46, 0.12) !important;
  border-color: rgba(166, 124, 46, 0.35) !important;
  color: #8E651E !important;
}

[data-theme="light"] .practice-card-pill {
  background: #F8FAFC !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}

[data-theme="light"] .card-action-link { color: #0B1120 !important; }

[data-theme="light"] .card-action-link i { color: #8E651E !important; }

[data-theme="light"] .card-action-link:hover { color: #8E651E !important; }

[data-theme="light"] .persona-tab-btn:not(.active), [data-theme="light"] .dossier-tab-btn:not(.active) {
  background-color: #F1F5F9 !important;
  color: #334155 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .persona-tab-btn:not(.active):hover, [data-theme="light"] .dossier-tab-btn:not(.active):hover {
  background-color: #E2E8F0 !important;
  color: #0F172A !important;
  border-color: rgba(166, 124, 46, 0.4) !important;
}

[data-theme="light"] .persona-tab-btn.active, [data-theme="light"] .dossier-tab-btn.active {
  background-color: #8E651E !important;
  color: #FFFFFF !important;
  border-color: #8E651E !important;
  box-shadow: 0 4px 14px -2px rgba(142, 101, 30, 0.35) !important;
}

[data-theme="light"] [class*="bg-gradient-to-"] {
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 60%, #F1F5F9 100%) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .bg-\[\#070B14\], [data-theme="light"] .bg-\[\#070B14\]\/80, [data-theme="light"] .bg-\[\#070B14\]\/90, [data-theme="light"] .bg-\[\#070B14\]\/95, [data-theme="light"] .bg-\[\#0A101D\], [data-theme="light"] .bg-\[\#0E1626\], [data-theme="light"] .bg-\[\#0E1626\]\/95, [data-theme="light"] .bg-\[\#141E34\], [data-theme="light"] .bg-\[\#141E34\]\/80 { background-color: #FFFFFF !important; }

[data-theme="light"] .bg-white\/5, [data-theme="light"] .bg-white\/10, [data-theme="light"] .bg-white\/\[0\.03\], [data-theme="light"] .bg-white\/\[0\.05\], [data-theme="light"] [class*="bg-black/"] {
  background-color: #F8FAFC !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .hover\:bg-white\/5:hover, [data-theme="light"] .hover\:bg-white\/10:hover { background-color: #F1F5F9 !important; }

[data-theme="light"] .border-white\/10, [data-theme="light"] .border-white\/5, [data-theme="light"] .border-white\/15, [data-theme="light"] .border-white\/20, [data-theme="light"] .border-white\/30, [data-theme="light"] .border-white\/40, [data-theme="light"] .border-white\/50, [data-theme="light"] .border-white\/\[0\.03\], [data-theme="light"] .border-white\/\[0\.05\] { border-color: #E2E8F0 !important; }

[data-theme="light"] .bg-\[\#C5A059\]\/10, [data-theme="light"] .bg-\[\#C5A059\]\/15, [data-theme="light"] .bg-\[\#C5A059\]\/20 { background-color: rgba(166, 124, 46, 0.08) !important; }

[data-theme="light"] .border-\[\#C5A059\]\/30, [data-theme="light"] .border-\[\#C5A059\]\/40, [data-theme="light"] .border-\[\#C5A059\]\/50 { border-color: rgba(166, 124, 46, 0.35) !important; }

/* Preserve intentional gold borders on priority cards & banners in light mode */
[data-theme="light"] .border-2.border-\[\#C5A059\], [data-theme="light"] .border-\[\#C5A059\], [data-theme="light"] .border-2.border-\[\#DFBE7A\], [data-theme="light"] .border-\[\#DFBE7A\] { border-color: #C5A059 !important; }

/* Stat cards & micro metrics within cards */
[data-theme="light"] .stat-card, [data-theme="light"] .luxury-card .p-4.rounded-xl, [data-theme="light"] .luxury-card .p-3\.5.rounded-xl {
  background-color: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .stat-card:hover {
  border-color: rgba(166, 124, 46, 0.4) !important;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08) !important;
}

/* 4. Form Inputs in Light Mode */
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .services-sticky-bar {
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] #serviceSearchInput {
  background-color: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] #serviceSearchInput:focus {
  background-color: #FFFFFF !important;
  border-color: #C5A059 !important;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18) !important;
}

[data-theme="light"] input::placeholder, [data-theme="light"] textarea::placeholder { color: #94A3B8 !important; }

/* 5. High-Contrast Executive Tones for Legacy Accent Utilities (WCAG 2.1 AAA) */
[data-theme="light"] [class*="text-sky-"], [data-theme="light"] [class*="text-blue-"], [data-theme="light"] .text-sky-400, [data-theme="light"] .text-sky-300, [data-theme="light"] .text-sky-500, [data-theme="light"] .text-blue-400, [data-theme="light"] .text-blue-300 { color: #1D4ED8 !important; }

[data-theme="light"] [class*="text-amber-"], [data-theme="light"] .text-amber-400, [data-theme="light"] .text-amber-400\/90, [data-theme="light"] .text-amber-300, [data-theme="light"] .text-amber-500, [data-theme="light"] .text-yellow-500 { color: #92400E !important; }

[data-theme="light"] [class*="text-purple-"], [data-theme="light"] [class*="text-indigo-"], [data-theme="light"] .text-purple-400, [data-theme="light"] .text-purple-400\/90, [data-theme="light"] .text-purple-300, [data-theme="light"] .text-purple-500, [data-theme="light"] .text-indigo-400 { color: #6B21A8 !important; }

[data-theme="light"] [class*="text-rose-"], [data-theme="light"] [class*="text-pink-"], [data-theme="light"] [class*="text-red-"], [data-theme="light"] .text-rose-400, [data-theme="light"] .text-rose-300, [data-theme="light"] .text-rose-500, [data-theme="light"] .text-pink-400, [data-theme="light"] .text-red-400, [data-theme="light"] .text-red-400\/90 { color: #9F1239 !important; }

[data-theme="light"] [class*="text-cyan-"], [data-theme="light"] [class*="text-teal-"], [data-theme="light"] .text-cyan-400, [data-theme="light"] .text-cyan-300, [data-theme="light"] .text-teal-400 { color: #0E7490 !important; }

[data-theme="light"] .bg-sky-500\/10, [data-theme="light"] .bg-sky-500\/15, [data-theme="light"] .bg-sky-500\/20 {
  background-color: #EFF6FF !important;
  border-color: #BFDBFE !important;
}

[data-theme="light"] .bg-amber-500\/10, [data-theme="light"] .bg-amber-500\/15, [data-theme="light"] .bg-amber-500\/20 {
  background-color: #FEF3C7 !important;
  border-color: #FDE68A !important;
}

[data-theme="light"] .bg-purple-500\/10, [data-theme="light"] .bg-purple-500\/15, [data-theme="light"] .bg-purple-500\/20 {
  background-color: #F3E8FF !important;
  border-color: #E9D5FF !important;
}

[data-theme="light"] .bg-rose-500\/10, [data-theme="light"] .bg-rose-500\/15, [data-theme="light"] .bg-rose-500\/20 {
  background-color: #FFE4E6 !important;
  border-color: #FECDD3 !important;
}

[data-theme="light"] .bg-cyan-500\/10, [data-theme="light"] .bg-cyan-500\/15, [data-theme="light"] .bg-cyan-500\/20 {
  background-color: #ECFEFF !important;
  border-color: #A5F3FC !important;
}

[data-theme="light"] .border-sky-500\/30, [data-theme="light"] .border-sky-500\/20 { border-color: #BFDBFE !important; }

[data-theme="light"] .border-amber-500\/30, [data-theme="light"] .border-amber-500\/20 { border-color: #FDE68A !important; }

[data-theme="light"] .border-purple-500\/30, [data-theme="light"] .border-purple-500\/20 { border-color: #E9D5FF !important; }

[data-theme="light"] .border-emerald-500\/30, [data-theme="light"] .border-emerald-500\/20 { border-color: #A7F3D0 !important; }

[data-theme="light"] .border-teal-500\/30, [data-theme="light"] .border-teal-500\/20 { border-color: #99F6E4 !important; }

[data-theme="light"] .border-rose-500\/30, [data-theme="light"] .border-rose-500\/20 { border-color: #FECDD3 !important; }

/* 9. Light Theme Statutory Tables & Compliance Matrices */
[data-theme="light"] table {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  border-color: #CBD5E1 !important;
}
[data-theme="light"] table thead, [data-theme="light"] table thead tr {
  background-color: #F1F5F9 !important;
  color: #0B1120 !important;
  border-bottom: 2px solid #CBD5E1 !important;
}
[data-theme="light"] table th {
  color: #0B1120 !important;
  font-weight: 700 !important;
}
[data-theme="light"] table tbody tr { border-bottom-color: #E2E8F0 !important; }
[data-theme="light"] table tbody tr:hover { background-color: #F8FAFC !important; }
[data-theme="light"] table td { color: #1E293B !important; }
[data-theme="light"] table td .text-slate-300, [data-theme="light"] table td .text-slate-400 { color: #475569 !important; }
[data-theme="light"] .bg-\[\#0E1626\], [data-theme="light"] .bg-\[\#070B14\] { background-color: #FFFFFF !important; }
[data-theme="light"] .border-white\/10, [data-theme="light"] .border-white\/5 { border-color: #E2E8F0 !important; }
[data-theme="light"] .divide-white\/5 > :not([hidden]) ~ :not([hidden]) { border-color: #E2E8F0 !important; }

/* 10. Sticky Evaluator Sidebar Viewport Bounds */
.evaluator-sticky-panel {
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}

