/* ==========================================================================
   MiiBanc Site-Wide Light Mode (html[data-theme="light"])
   High-contrast institutional light palette with full form & card support
   ========================================================================== */

html[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-navy-deep: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.94);

  --accent-ice: #0284c7;
  --accent-ice-bright: #0369a1;
  --accent-ice-dark: #075985;
  --accent-sky-deep: #0284c7;
  --accent-ice-rgb: 2, 132, 199;
  --accent-gold: #9a7424;
  --accent-gold-light: #855e14;
  --accent-gold-dark: #713f12;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --border-subtle: rgba(15, 23, 42, 0.11);
  --border-glow: rgba(2, 132, 199, 0.32);
  --border-gold: rgba(154, 116, 36, 0.35);
  --border-ice: rgba(2, 132, 199, 0.28);

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"],
html[data-theme="light"] body {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Header, Navbar & Mobile Drawer */
html[data-theme="light"] .site-header,
html[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) {
  background: linear-gradient(180deg, rgba(6, 15, 30, 0.52) 0%, rgba(6, 15, 30, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-item,
html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-dropdown-caret-btn {
  color: rgba(241, 245, 249, 0.9);
}

html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-item:hover,
html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-item.active,
html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-dropdown-caret-btn:hover {
  color: #ffffff;
}

html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-theme-toggle,
html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-btn-signin {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-theme-toggle:hover,
html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-btn-signin:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(143, 212, 248, 0.65) !important;
  color: #ffffff !important;
}

html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .mobile-toggle span {
  background: #ffffff;
}

html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-user-pill {
  background: rgba(14, 24, 44, 0.72);
  border-color: rgba(143, 212, 248, 0.35);
  color: #ffffff;
}

html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-user-name {
  color: #ffffff;
}

html[data-theme="light"] body.has-cinematic-hero .site-header:not(.scrolled) .nav-signout-link {
  color: #8fd4f8;
}

html[data-theme="light"] .nav-item,
html[data-theme="light"] .nav-dropdown-caret-btn {
  color: #334155;
}

html[data-theme="light"] .nav-item:hover,
html[data-theme="light"] .nav-item.active,
html[data-theme="light"] .nav-dropdown-caret-btn:hover {
  color: #0f172a;
}

html[data-theme="light"] .nav-dropdown-menu,
html[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .nav-dropdown-link,
html[data-theme="light"] .mobile-nav-sublink {
  color: #334155;
}

html[data-theme="light"] .nav-dropdown-link:hover,
html[data-theme="light"] .nav-dropdown-link.active,
html[data-theme="light"] .mobile-nav-sublink:hover {
  background: rgba(2, 132, 199, 0.08);
  color: #0f172a;
}

html[data-theme="light"] .mobile-toggle span {
  background: #0f172a;
}

html[data-theme="light"] .mobile-drawer .nav-item {
  color: #0f172a;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .nav-user-pill,
html[data-theme="light"] .site-header.scrolled .nav-user-pill {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .nav-user-name,
html[data-theme="light"] .site-header.scrolled .nav-user-name {
  color: #0f172a !important;
}

html[data-theme="light"] .nav-signout-link,
html[data-theme="light"] .site-header.scrolled .nav-signout-link {
  color: #0369a1 !important;
  font-weight: 600 !important;
}

/* Theme Toggle Button */
.nav-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-theme-toggle:hover {
  border-color: var(--accent-ice);
  color: #ffffff;
}

html[data-theme="light"] .nav-theme-toggle {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

html[data-theme="light"] .nav-theme-toggle:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

/* Hero Sections & Overlays (Inner pages use light surface; homepage .hero-section stays cinematic skyline) */
html[data-theme="light"] .mii-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mii-hero-scrim {
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.94) 0%, rgba(248, 250, 252, 0.86) 55%, rgba(241, 245, 249, 0.78) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 250, 252, 0.96) 100%) !important;
}

html[data-theme="light"] .mii-hero::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

html[data-theme="light"] .mii-hero-h1,
html[data-theme="light"] .section-title,
html[data-theme="light"] .mii-h2,
html[data-theme="light"] .mii-tile-title,
html[data-theme="light"] .service-card-title,
html[data-theme="light"] .strategy-card-title,
html[data-theme="light"] .mii-intel-title,
html[data-theme="light"] .mii-intel-title a,
html[data-theme="light"] .mii-exec-card-title,
html[data-theme="light"] .mii-wire-heading,
html[data-theme="light"] .mii-wire-item-title,
html[data-theme="light"] .mii-problem-quote,
html[data-theme="light"] .mii-faq-trigger,
html[data-theme="light"] .cta-title {
  color: #0f172a !important;
}

html[data-theme="light"] .mii-hero-sub,
html[data-theme="light"] .section-subtitle,
html[data-theme="light"] .mii-lead,
html[data-theme="light"] .mii-tile-desc,
html[data-theme="light"] .mii-exec-card-sub,
html[data-theme="light"] .mii-intel-summary,
html[data-theme="light"] .mii-wire-item-source,
html[data-theme="light"] .mii-faq-panel,
html[data-theme="light"] .mii-mandate-label,
html[data-theme="light"] .cta-text {
  color: #475569 !important;
}

html[data-theme="light"] .meta-pill {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #1e293b;
}

/* Sections & Surfaces */
html[data-theme="light"] .mii-section,
html[data-theme="light"] .section-dark,
html[data-theme="light"] .section-navy {
  background: #ffffff !important;
  color: #0f172a !important;
}

html[data-theme="light"] .mii-section-alt,
html[data-theme="light"] .mii-stat-strip,
html[data-theme="light"] .mii-mandate-strip,
html[data-theme="light"] #mca-spotlight-section {
  background: #f1f5f9 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .mii-stat-item {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 3px solid var(--prod-accent, #0284c7);
}

html[data-theme="light"] .mii-mandate-val {
  color: #0284c7;
}

/* Cards, Panels, Tables, Checklists */
html[data-theme="light"] .mii-tile,
html[data-theme="light"] .mii-step-card,
html[data-theme="light"] .mii-panel-card,
html[data-theme="light"] .mii-cta-band,
html[data-theme="light"] .mii-exec-hero-card,
html[data-theme="light"] .mii-intel-card,
html[data-theme="light"] .mii-wire-panel,
html[data-theme="light"] .mii-problem-box,
html[data-theme="light"] .mii-fact-box,
html[data-theme="light"] .loc-revolving-demo,
html[data-theme="light"] .mii-table-wrap,
html[data-theme="light"] .mii-check-item,
html[data-theme="light"] .mii-faq-item,
html[data-theme="light"] .strategy-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .consultation-cta-card,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .est-card,
html[data-theme="light"] .est-result-box,
html[data-theme="light"] .mii-brief-body-card,
html[data-theme="light"] .mii-brief-takeaway {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.11) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .mii-brief-body-card h2,
html[data-theme="light"] .mii-brief-hero-title,
html[data-theme="light"] .mii-brief-more-heading {
  color: #0f172a !important;
}

html[data-theme="light"] .mii-brief-body-card p,
html[data-theme="light"] .mii-brief-hero-summary,
html[data-theme="light"] .mii-brief-solutions-label {
  color: #334155 !important;
}

html[data-theme="light"] .mii-brief-takeaway {
  background: #fffbeb !important;
  border: 1px solid rgba(154, 116, 36, 0.28) !important;
  border-left: 3px solid #9a7424 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .mii-brief-takeaway p,
html[data-theme="light"] .mii-brief-takeaway-text {
  color: #0f172a !important;
}

html[data-theme="light"] .mii-track-link-item,
html[data-theme="light"] .mii-wire-item {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .mii-track-link-title {
  color: #0f172a !important;
}

html[data-theme="light"] .mii-track-link-desc {
  color: #475569 !important;
}

html[data-theme="light"] .mii-table th,
html[data-theme="light"] .mii-table thead th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .mii-table td {
  color: #334155 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mii-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

html[data-theme="light"] .mii-table tbody tr:hover {
  background: rgba(2, 132, 199, 0.05);
}

html[data-theme="light"] .est-disclaimer-note {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #475569 !important;
}

/* Forms, Inputs, Selects, Textareas & Estimator Controls */
html[data-theme="light"] .mii-field-label,
html[data-theme="light"] .mii-checkbox-row,
html[data-theme="light"] .est-label,
html[data-theme="light"] .est-q-title,
html[data-theme="light"] label {
  color: #0f172a !important;
}

html[data-theme="light"] .mii-input,
html[data-theme="light"] .mii-select,
html[data-theme="light"] .mii-textarea,
html[data-theme="light"] .est-card input[type="text"],
html[data-theme="light"] .est-card input[type="email"],
html[data-theme="light"] .est-card input[type="tel"],
html[data-theme="light"] .est-card input[type="number"],
html[data-theme="light"] .est-card select,
html[data-theme="light"] .est-card textarea,
html[data-theme="light"] .modal-content input,
html[data-theme="light"] .modal-content select,
html[data-theme="light"] .modal-content textarea {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .mii-input:focus,
html[data-theme="light"] .mii-select:focus,
html[data-theme="light"] .mii-textarea:focus,
html[data-theme="light"] .est-card input:focus,
html[data-theme="light"] .est-card select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
  outline: none;
}

html[data-theme="light"] .est-option-btn,
html[data-theme="light"] .est-choice-btn,
html[data-theme="light"] .mii-track-tab {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .est-option-btn.active,
html[data-theme="light"] .est-choice-btn.active,
html[data-theme="light"] .mii-track-tab.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* Buttons & Cross Links */
html[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-color: #0369a1 !important;
}

html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .mii-cross-pill {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .btn-secondary:hover,
html[data-theme="light"] .mii-cross-pill:hover {
  background: #f1f5f9 !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

/* Brand Logo Swap */
html[data-theme="light"] .brand-logo-dark {
  display: none !important;
}

html[data-theme="light"] .brand-logo-light {
  display: inline-block !important;
}

/* Desk Switcher, Estimator Tabs & High-Savings Protection Simulator */
html[data-theme="light"] .mii-desk-switcher,
html[data-theme="light"] .est-mode-tabs {
  background: #e2e8f0 !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .mii-desk-switch-btn,
html[data-theme="light"] .est-mode-tab {
  background: transparent !important;
  color: #475569 !important;
  border-color: transparent !important;
}

html[data-theme="light"] .mii-desk-switch-btn:hover,
html[data-theme="light"] .est-mode-tab:hover {
  color: #0f172a !important;
}

html[data-theme="light"] .mii-desk-switch-btn.active,
html[data-theme="light"] .est-mode-tab.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.22) !important;
}

html[data-theme="light"] .est-progress-bar-wrap {
  background: #e2e8f0 !important;
}

html[data-theme="light"] .simulator-wrapper {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .sim-control-panel {
  background: #ffffff !important;
  color: #0f172a !important;
}

html[data-theme="light"] .sim-output-panel {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .sim-segmented-control {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .sim-segment-btn {
  background: transparent !important;
  color: #475569 !important;
  border-color: transparent !important;
}

html[data-theme="light"] .sim-segment-btn:hover {
  color: #0f172a !important;
}

html[data-theme="light"] .sim-segment-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.22) !important;
}

html[data-theme="light"] .sim-segment-btn.active * {
  color: #ffffff !important;
}

html[data-theme="light"] .sim-metric-val {
  color: #0284c7 !important;
}

html[data-theme="light"] .sim-range-input {
  background: #cbd5e1 !important;
}

html[data-theme="light"] .sim-result-card,
html[data-theme="light"] .sim-visual-chart-wrap {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .sim-result-title,
html[data-theme="light"] .sim-chart-title,
html[data-theme="light"] .sim-bar-name {
  color: #475569 !important;
}

html[data-theme="light"] .sim-result-value {
  color: #0284c7 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .sim-bar-amount {
  color: #0f172a !important;
}

html[data-theme="light"] .sim-bar-track {
  background: #e2e8f0 !important;
}

html[data-theme="light"] .sim-guarantee-badge {
  background: rgba(154, 116, 36, 0.08) !important;
  border-color: rgba(154, 116, 36, 0.32) !important;
  color: #855e14 !important;
}

html[data-theme="light"] .sim-chart-rate-badge {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.28) !important;
  color: #0284c7 !important;
}

/* Market & Capital Intelligence Strip + Metrics + Cards */
html[data-theme="light"] .mii-intel-section,
html[data-theme="light"] .metrics-section {
  background: #f1f5f9 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .mii-score-row,
html[data-theme="light"] .mii-pillar-route-link,
html[data-theme="light"] .thesis-card,
html[data-theme="light"] .pillar-card,
html[data-theme="light"] .location-card,
html[data-theme="light"] .dropoff-card,
html[data-theme="light"] .v3-offering-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.11) !important;
  color: #0f172a !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .mii-tile-link,
html[data-theme="light"] .mii-intel-read-link {
  color: #0284c7 !important;
}

html[data-theme="light"] .mii-tile-link:hover,
html[data-theme="light"] .mii-intel-read-link:hover {
  color: #0369a1 !important;
}

html[data-theme="light"] .mii-intel-footer {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

/* Global Form Controls Across Pages & Modals */
html[data-theme="light"] .form-label {
  color: #334155 !important;
}

html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select,
html[data-theme="light"] main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]),
html[data-theme="light"] main select,
html[data-theme="light"] main textarea,
html[data-theme="light"] .modal-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]),
html[data-theme="light"] .modal-dialog select,
html[data-theme="light"] .modal-dialog textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .form-select,
html[data-theme="light"] select.form-control,
html[data-theme="light"] main select,
html[data-theme="light"] .modal-dialog select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 15px !important;
}

html[data-theme="light"] .form-select option,
html[data-theme="light"] select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #64748b !important;
  opacity: 1;
}

/* Modals, Qualifier Funnel, Calendar Modal, Cookie Banner & Toasts */
html[data-theme="light"] .modal-overlay {
  background: rgba(15, 23, 42, 0.5) !important;
}

html[data-theme="light"] .modal-dialog,
html[data-theme="light"] .cal-modal-dialog,
html[data-theme="light"] .qualifier-funnel-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .modal-close-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .modal-title,
html[data-theme="light"] .funnel-main-title,
html[data-theme="light"] .funnel-question,
html[data-theme="light"] .funnel-option-title {
  color: #0f172a !important;
}

html[data-theme="light"] .modal-subtitle,
html[data-theme="light"] .funnel-main-subtitle,
html[data-theme="light"] .funnel-q-context,
html[data-theme="light"] .funnel-option-sub {
  color: #475569 !important;
}

html[data-theme="light"] .pq-type-option-btn,
html[data-theme="light"] .pq-quick-amt-btn,
html[data-theme="light"] .funnel-btn-option,
html[data-theme="light"] .cal-date-cell,
html[data-theme="light"] .cal-slot-btn {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

html[data-theme="light"] .pq-type-option-btn:hover,
html[data-theme="light"] .pq-quick-amt-btn:hover,
html[data-theme="light"] .funnel-btn-option:hover,
html[data-theme="light"] .cal-date-cell:hover,
html[data-theme="light"] .cal-slot-btn:hover {
  background: #f1f5f9 !important;
  border-color: #0284c7 !important;
}

html[data-theme="light"] .cal-date-cell.selected,
html[data-theme="light"] .cal-slot-btn.selected {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

html[data-theme="light"] #pq-step3-range-banner {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.1) 0%, #f8fafc 100%) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: none !important;
  color: #0f172a !important;
}

html[data-theme="light"] #pq-step3-auth-card,
html[data-theme="light"] #pq-client-ai-rec-box,
html[data-theme="light"] #loan-doc-checklist,
html[data-theme="light"] #loan-upload-results-box,
html[data-theme="light"] #blueprint-summary-container,
html[data-theme="light"] .funnel-notice-box,
html[data-theme="light"] .funnel-result-box,
html[data-theme="light"] .cal-confirm-strip {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .toast-item {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .toast-title {
  color: #0f172a !important;
}

html[data-theme="light"] .toast-message,
html[data-theme="light"] .toast-close {
  color: #475569 !important;
}

html[data-theme="light"] #cookie-consent-banner {
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08) !important;
}

/* Holdings & Portfolio Cards (/services) */
html[data-theme="light"] .holdings-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.11) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .holdings-col-title,
html[data-theme="light"] .company-name-cell,
html[data-theme="light"] .donut-center-val {
  color: #0f172a !important;
}

html[data-theme="light"] .holdings-table th,
html[data-theme="light"] .holdings-table td,
html[data-theme="light"] .legend-item,
html[data-theme="light"] .donut-center-label,
html[data-theme="light"] .donut-center-sub {
  color: #475569 !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .ticker-badge,
html[data-theme="light"] .holdings-safeguard-strip {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

/* Inline Dark-Surface & Inline Light/Pastel Text Overrides (Pages & Modals) */
html[data-theme="light"] [style*="rgba(8, 12, 22"],
html[data-theme="light"] [style*="rgba(14, 17, 24"],
html[data-theme="light"] [style*="rgba(14, 20, 36"],
html[data-theme="light"] [style*="rgba(13, 18, 30"],
html[data-theme="light"] [style*="rgba(12, 22, 24"],
html[data-theme="light"] [style*="rgba(15, 23, 42, 0.55)"],
html[data-theme="light"] [style*="rgba(7, 11, 20"],
html[data-theme="light"] [style*="rgba(11, 17, 32"],
html[data-theme="light"] [style*="rgba(0, 0, 0, 0.25)"],
html[data-theme="light"] [style*="rgba(0, 0, 0, 0.35)"],
html[data-theme="light"] [style*="background: #0b1120"],
html[data-theme="light"] [style*="background: #0f172a"],
html[data-theme="light"] [style*="background:#0f172a"] {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-theme="light"] main [style*="color: #fff"],
html[data-theme="light"] main [style*="color: #ffffff"],
html[data-theme="light"] main [style*="color: #f1f5f9"],
html[data-theme="light"] main [style*="color: #f8fafc"],
html[data-theme="light"] main [style*="color: rgba(255, 255, 255, 0.9"],
html[data-theme="light"] main [style*="color: rgba(255, 255, 255, 0.8"],
html[data-theme="light"] .modal-dialog [style*="color: #fff"],
html[data-theme="light"] .modal-dialog [style*="color: #ffffff"],
html[data-theme="light"] .modal-dialog [style*="color: #f1f5f9"],
html[data-theme="light"] .modal-dialog [style*="color: #f8fafc"],
html[data-theme="light"] .modal-dialog [style*="color: rgba(255, 255, 255, 0.9"],
html[data-theme="light"] .modal-dialog [style*="color: rgba(255, 255, 255, 0.8"] {
  color: #0f172a !important;
}

html[data-theme="light"] main [style*="color: #cbd5e1"],
html[data-theme="light"] main [style*="color: #e2e8f0"],
html[data-theme="light"] main [style*="color: #94a3b8"],
html[data-theme="light"] main [style*="color: rgba(255, 255, 255, 0.7"],
html[data-theme="light"] main [style*="color: rgba(255, 255, 255, 0.6"],
html[data-theme="light"] .modal-dialog [style*="color: #cbd5e1"],
html[data-theme="light"] .modal-dialog [style*="color: #e2e8f0"],
html[data-theme="light"] .modal-dialog [style*="color: #94a3b8"],
html[data-theme="light"] .modal-dialog [style*="color: rgba(255, 255, 255, 0.7"],
html[data-theme="light"] .modal-dialog [style*="color: rgba(255, 255, 255, 0.6"] {
  color: #475569 !important;
}

html[data-theme="light"] [style*="#6ee7b7"],
html[data-theme="light"] [style*="#34d399"] {
  color: #047857 !important;
}

html[data-theme="light"] [style*="#fbbf24"] {
  color: #b45309 !important;
}

html[data-theme="light"] [style*="#38bdf8"],
html[data-theme="light"] [style*="#8fd4f8"] {
  color: #0284c7 !important;
}

html[data-theme="light"] [style*="#a78bfa"] {
  color: #6d28d9 !important;
}

html[data-theme="light"] [style*="#60a5fa"] {
  color: #1d4ed8 !important;
}

html[data-theme="light"] [style*="#fb923c"] {
  color: #c2410c !important;
}

html[data-theme="light"] [style*="#f87171"],
html[data-theme="light"] [style*="#fca5a5"] {
  color: #dc2626 !important;
}

html[data-theme="light"] .site-header .btn-primary,
html[data-theme="light"] .site-header .btn-primary *,
html[data-theme="light"] main .btn-primary,
html[data-theme="light"] main .btn-primary *,
html[data-theme="light"] .modal-dialog .btn-primary,
html[data-theme="light"] .modal-dialog .btn-primary *,
html[data-theme="light"] main .sim-segment-btn.active,
html[data-theme="light"] main .sim-segment-btn.active *,
html[data-theme="light"] main .mii-desk-switch-btn.active,
html[data-theme="light"] main .est-mode-tab.active,
html[data-theme="light"] main .est-option-btn.active,
html[data-theme="light"] main .est-choice-btn.active,
html[data-theme="light"] main .mii-track-tab.active,
html[data-theme="light"] .cal-date-cell.selected,
html[data-theme="light"] .cal-date-cell.selected *,
html[data-theme="light"] .cal-slot-btn.selected,
html[data-theme="light"] .cal-slot-btn.selected *,
html[data-theme="light"] [style*="background: #ef4444"],
html[data-theme="light"] [style*="background: #ef4444"] * {
  color: #ffffff !important;
}

html[data-theme="light"] main .btn-gold,
html[data-theme="light"] main .btn-gold * {
  color: #0f172a !important;
}

/* Footer */
html[data-theme="light"] .site-footer {
  background: #f1f5f9 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
}

html[data-theme="light"] .site-footer h3,
html[data-theme="light"] .site-footer h4,
html[data-theme="light"] .site-footer strong {
  color: #0f172a !important;
}

html[data-theme="light"] .site-footer a {
  color: #334155 !important;
}

html[data-theme="light"] .site-footer a:hover {
  color: #0284c7 !important;
}

html[data-theme="light"] .footer-disclaimer-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #475569 !important;
}
