/**
 * Blog content readability on dark theme (khajenasir-theme).
 * Scoped to single posts / blog archives — does not touch Elementor pages.
 *
 * Cause: editor inline color:#000000 (and near-black) wins over prose-invert,
 * so mid-content address/phone text becomes invisible on dark backgrounds.
 */

/* Force near-black inline colors to inherit light prose text */
.single-post .prose [style*="color: #000"],
.single-post .prose [style*="color:#000"],
.single-post .prose [style*="color: #000000"],
.single-post .prose [style*="color:#000000"],
.single-post .prose [style*="color: black"],
.single-post .prose [style*="color:black"],
.single-post .prose [style*="color: rgb(0, 0, 0)"],
.single-post .prose [style*="color:rgb(0, 0, 0)"],
.single-post .prose [style*="color: rgb(0,0,0)"],
.single-post .prose [style*="color:rgb(0,0,0)"],
.blog .prose [style*="color: #000"],
.blog .prose [style*="color:#000"],
.blog .prose [style*="color: #000000"],
.blog .prose [style*="color:#000000"],
.blog .prose [style*="color: black"],
.blog .prose [style*="color:black"],
.archive .prose [style*="color: #000"],
.archive .prose [style*="color:#000"],
.archive .prose [style*="color: #000000"],
.archive .prose [style*="color:#000000"] {
  color: inherit !important;
}

/* Keep links readable; prefer theme link accent when present */
.single-post .prose a[style*="color: #000"],
.single-post .prose a[style*="color:#000"],
.single-post .prose a[style*="color: #000000"],
.single-post .prose a[style*="color:#000000"],
.single-post .prose a[style*="color: black"],
.single-post .prose a[style*="color:black"] {
  color: inherit !important;
}

/* Safety net if prose class missing on some templates */
.single-post article.glass-card [style*="color: #000000"],
.single-post article.glass-card [style*="color:#000000"],
.single-post article.glass-card [style*="color: #000"],
.single-post article.glass-card [style*="color:#000"],
.single-post article.glass-card [style*="color: black"],
.single-post article.glass-card [style*="color:black"] {
  color: #e5e7eb !important;
}

.single-post article.glass-card a[style*="color: #000000"],
.single-post article.glass-card a[style*="color:#000000"],
.single-post article.glass-card a[style*="color: #000"],
.single-post article.glass-card a[style*="color:#000"],
.single-post article.glass-card a[style*="color: black"],
.single-post article.glass-card a[style*="color:black"] {
  color: #7dd3fc !important;
}
