/**
 * PM Media — Light theme lock (load LAST after uniform/neon)
 * Forces legible dark ink on light plates; keeps hero/cinematic dark.
 * Fixes white-on-white buttons, grayed forms, washed-out book fields.
 */
html[data-theme="light"] {
  --bg: #eef1f7 !important;
  --bg-brick: #e6eaf2 !important;
  --bg-elevated: #ffffff !important;
  --bg-card: #ffffff !important;
  --text: #0a0c12 !important;
  --text-soft: rgba(10, 12, 18, 0.78) !important;
  --text-faint: rgba(10, 12, 18, 0.55) !important;
  --border: rgba(0, 90, 110, 0.22) !important;
  color-scheme: light;
}

html[data-theme="light"] body,
html[data-theme="light"] body.pm-convert-lean {
  color: #0a0c12 !important;
  background-color: #eef1f7 !important;
  background-image:
    linear-gradient(rgba(238, 241, 247, 0.96), rgba(230, 234, 242, 0.98)) !important;
}

html[data-theme="light"] body::before {
  opacity: 0.25 !important;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(0, 160, 190, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 75%, rgba(200, 40, 120, 0.06), transparent 50%) !important;
}

/* Soft / form sections → white cards, dark ink */
html[data-theme="light"] body.pm-convert-lean .section-soft,
html[data-theme="light"] body.pm-convert-lean .section:not(.section-dark):not(.cta-band):not(.hero),
html[data-theme="light"] .section-soft,
html[data-theme="light"] .form-section,
html[data-theme="light"] #book,
html[data-theme="light"] #book .container,
html[data-theme="light"] .form-wrap,
html[data-theme="light"] .glass,
html[data-theme="light"] .on-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .q-card,
html[data-theme="light"] .video-card,
html[data-theme="light"] .lib-card,
html[data-theme="light"] .faq details,
html[data-theme="light"] .about-value-card,
html[data-theme="light"] .chat-panel,
html[data-theme="light"] .a11y-panel,
html[data-theme="light"] #book .form-wrap,
html[data-theme="light"] #book .glass,
html[data-theme="light"] .intake-card,
html[data-theme="light"] .book-card,
html[data-theme="light"] .book-callback-card,
html[data-theme="light"] .book-reassure-wrap,
html[data-theme="light"] .pm-book-panel {
  background: #ffffff !important;
  background-image: none !important;
  color: #0a0c12 !important;
  border-color: rgba(10, 12, 18, 0.12) !important;
  box-shadow: 0 8px 28px rgba(10, 20, 40, 0.08) !important;
  opacity: 1 !important;
  filter: none !important;
}

html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) h1,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) h2,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) h3,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) h4,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) .lead,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) p,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) li,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) label,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) .text-soft,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) .eyebrow,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) legend,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) span,
html[data-theme="light"] .section:not(.section-dark):not(.cta-band):not(.hero) strong,
html[data-theme="light"] .form-wrap h2,
html[data-theme="light"] .form-wrap h3,
html[data-theme="light"] .form-wrap p,
html[data-theme="light"] .form-wrap label,
html[data-theme="light"] .form-wrap legend,
html[data-theme="light"] .form-wrap .text-soft,
html[data-theme="light"] .form-wrap .form-qual-note,
html[data-theme="light"] .form-wrap .consent,
html[data-theme="light"] .form-wrap .consent label,
html[data-theme="light"] #book h2,
html[data-theme="light"] #book h3,
html[data-theme="light"] #book p,
html[data-theme="light"] #book label,
html[data-theme="light"] #book legend,
html[data-theme="light"] #book li,
html[data-theme="light"] #book .lead,
html[data-theme="light"] #book .eyebrow,
html[data-theme="light"] #book .pattern-interrupt,
html[data-theme="light"] #book .book-callback-title,
html[data-theme="light"] #book .callback-consent-label,
html[data-theme="light"] #book .biolum-zone-label,
html[data-theme="light"] .q-card,
html[data-theme="light"] .q-card *,
html[data-theme="light"] .service-card,
html[data-theme="light"] .service-card *:not(.btn):not(.btn *),
html[data-theme="light"] .on-card *:not(.btn):not(.btn *),
html[data-theme="light"] .video-card *:not(.btn):not(.btn *):not(.play-btn):not(.play-btn *) {
  color: #0a0c12 !important;
  -webkit-text-fill-color: #0a0c12 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
}

html[data-theme="light"] .section:not(.section-dark) .eyebrow,
html[data-theme="light"] .form-wrap .eyebrow,
html[data-theme="light"] #book .eyebrow,
html[data-theme="light"] #book .biolum-zone-label {
  color: #007a92 !important;
  -webkit-text-fill-color: #007a92 !important;
}

/* Inputs — never grayed / invisible */
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .form-wrap input,
html[data-theme="light"] .form-wrap textarea,
html[data-theme="light"] .form-wrap select,
html[data-theme="light"] #book input,
html[data-theme="light"] #book textarea,
html[data-theme="light"] #book select,
html[data-theme="light"] .chat-foot input,
html[data-theme="light"] .callback-form input {
  background: #ffffff !important;
  color: #0a0c12 !important;
  -webkit-text-fill-color: #0a0c12 !important;
  border: 1.5px solid rgba(10, 12, 18, 0.22) !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
}
html[data-theme="light"] input:disabled,
html[data-theme="light"] textarea:disabled,
html[data-theme="light"] select:disabled {
  opacity: 1 !important;
  color: #0a0c12 !important;
  -webkit-text-fill-color: #0a0c12 !important;
  background: #f3f5f9 !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: rgba(10, 12, 18, 0.45) !important;
  -webkit-text-fill-color: rgba(10, 12, 18, 0.45) !important;
  opacity: 1 !important;
}
html[data-theme="light"] select option {
  color: #0a0c12 !important;
  background: #ffffff !important;
}

/* Buttons — invert white-on-light failures */
html[data-theme="light"] .btn-outline,
html[data-theme="light"] body.pm-convert-lean .btn-outline,
html[data-theme="light"] a.btn-outline,
html[data-theme="light"] button.btn-outline,
html[data-theme="light"] #book .btn-outline,
html[data-theme="light"] .form-section .btn-outline,
html[data-theme="light"] .form-wrap .btn-outline,
html[data-theme="light"] .dock-btn {
  background: #ffffff !important;
  background-image: none !important;
  color: #0a4a5c !important;
  -webkit-text-fill-color: #0a4a5c !important;
  border: 1.5px solid rgba(0, 140, 160, 0.55) !important;
  text-shadow: none !important;
  box-shadow: 0 4px 14px rgba(0, 80, 100, 0.1) !important;
  opacity: 1 !important;
  filter: none !important;
}
html[data-theme="light"] .btn-outline:hover,
html[data-theme="light"] body.pm-convert-lean .btn-outline:hover {
  background: rgba(0, 194, 232, 0.12) !important;
  color: #063844 !important;
  -webkit-text-fill-color: #063844 !important;
  border-color: #00a8c4 !important;
}
html[data-theme="light"] .btn-primary,
html[data-theme="light"] body.pm-convert-lean .btn-primary,
html[data-theme="light"] a.btn-primary,
html[data-theme="light"] button.btn-primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  opacity: 1 !important;
}
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .btn-link,
html[data-theme="light"] .text-link {
  color: #007a92 !important;
  -webkit-text-fill-color: #007a92 !important;
}

/* Sticky / dock / twin chrome in light */
html[data-theme="light"] .pm-sticky-cta,
html[data-theme="light"] .pm-action-dock,
html[data-theme="light"] .pm-twin__fab,
html[data-theme="light"] .pm-twin__grip,
html[data-theme="light"] .pm-twin__tray {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0a0c12 !important;
  border-color: rgba(10, 12, 18, 0.14) !important;
}
html[data-theme="light"] .pm-twin__tray button,
html[data-theme="light"] .pm-twin__tray a,
html[data-theme="light"] .pm-twin__tray small,
html[data-theme="light"] .pm-sticky-cta *:not(.btn-primary):not(.btn-primary *),
html[data-theme="light"] .dock-btn {
  color: #0a0c12 !important;
  -webkit-text-fill-color: #0a0c12 !important;
}
html[data-theme="light"] .pm-sticky-cta .btn-primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Keep cinematic dark plates light-on-dark */
html[data-theme="light"] .hero,
html[data-theme="light"] .section-dark,
html[data-theme="light"] .cta-band,
html[data-theme="light"] .site-footer,
html[data-theme="light"] .neon-marquee,
html[data-theme="light"] .pm-noon-marquee {
  color: #f4fbff !important;
}
html[data-theme="light"] .hero *:not(.btn-primary):not(.btn-primary *):not(input):not(textarea):not(select),
html[data-theme="light"] .section-dark *:not(.btn-primary):not(.btn-primary *):not(input):not(textarea):not(select),
html[data-theme="light"] .cta-band *:not(.btn-primary):not(.btn-primary *),
html[data-theme="light"] .site-footer *,
html[data-theme="light"] .neon-marquee *,
html[data-theme="light"] .pm-noon-marquee * {
  color: #f4fbff !important;
  -webkit-text-fill-color: #f4fbff !important;
}
html[data-theme="light"] body.pm-convert-lean .section-dark,
html[data-theme="light"] body.pm-convert-lean .cta-band {
  background: #080810 !important;
  color: #f4fbff !important;
}
html[data-theme="light"] .hero .btn-outline,
html[data-theme="light"] .section-dark .btn-outline,
html[data-theme="light"] .cta-band .btn-outline {
  background: rgba(8, 14, 28, 0.88) !important;
  color: #f4fbff !important;
  -webkit-text-fill-color: #f4fbff !important;
  border-color: rgba(0, 212, 238, 0.65) !important;
}
html[data-theme="light"] .hero .btn-primary,
html[data-theme="light"] .section-dark .btn-primary,
html[data-theme="light"] .cta-band .btn-primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Chat panel light */
html[data-theme="light"] .chat-panel,
html[data-theme="light"] .chat-panel .chat-head,
html[data-theme="light"] .chat-panel .chat-messages,
html[data-theme="light"] .chat-panel .chat-foot {
  background: #ffffff !important;
  color: #0a0c12 !important;
}
html[data-theme="light"] .chat-panel p,
html[data-theme="light"] .chat-panel .chat-head-title,
html[data-theme="light"] .chat-panel .chat-head-sub,
html[data-theme="light"] .chat-panel .chat-disclosure,
html[data-theme="light"] .chat-panel .chat-mic-hint,
html[data-theme="light"] .chat-panel label,
html[data-theme="light"] .chat-panel span {
  color: #0a0c12 !important;
  -webkit-text-fill-color: #0a0c12 !important;
}
html[data-theme="light"] .chat-toggle {
  background: linear-gradient(135deg, #00c8e8, #e8328a) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
}

/* Consent gate readable in both themes */
.pm-lilly-consent-gate {
  z-index: 2147483000 !important;
}
html[data-theme="light"] .pm-lilly-consent-gate-card {
  background: #ffffff !important;
  color: #0a0c12 !important;
  border-color: rgba(0, 140, 160, 0.35) !important;
}
html[data-theme="light"] .pm-lilly-consent-gate-card *,
html[data-theme="light"] .pm-lilly-consent-gate-title,
html[data-theme="light"] .pm-lilly-consent-gate-check {
  color: #0a0c12 !important;
  -webkit-text-fill-color: #0a0c12 !important;
}
html[data-theme="light"] .pm-lilly-consent-gate .btn-outline {
  color: #0a4a5c !important;
  -webkit-text-fill-color: #0a4a5c !important;
  background: #fff !important;
}
html[data-theme="light"] .pm-lilly-consent-gate .btn-primary {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
