/* D-LIGHT-CANON guard — standard contraste WEVADS. Additif, ne force JAMAIS le dark.
   Anti white-on-white & dark-on-dark. Voir /opt/obsidian-vault/doctrines/D-LIGHT-CANON.md */

/* 1. Fallback light (specificite 0 via :where -> n'ecrase pas le theme de la page) */
:where(html,body){background:#f8fafc;color:#1a1613}

/* 2. Textes quasi-blancs (restes de themes dark) rendus lisibles sur fond clair */
[style*="color:#e2e8f0"],[style*="color:#cbd5e1"],[style*="color:#f1f5f9"],
[style*="color:#e8e8ef"],[style*="color: #e2e8f0"]{color:#475569 !important}

/* 3. Badges pales statut: texte assombri pour lisibilite (WCAG AA) */
[style*="background:#fef3c7"]{color:#92400e !important}
[style*="background:#fee2e2"]{color:#991b1b !important}
[style*="background:#f0fdf4"]{color:#166534 !important}
[style*="background:#e2e8f0"]{color:#334155 !important}

/* 4. Garde anti white-on-white: si bg explicitement blanc et texte herite trop clair */
[style*="background:#fff"],[style*="background:#ffffff"],[style*="background: #fff"]{color:#1a1613}

/* 5. Anti dark-on-dark: si un element force un fond sombre, son texte passe clair */
[style*="background:#0f172a"],[style*="background:#07070c"],[style*="background:#1e293b"],
[style*="background:#13131f"],[style*="background:#0e0e16"]{color:#e8e8ef !important}
