/**
 * DEVASA MEDIA — Blog Detail Readability + Keyword Highlight LOCK
 * Production constitution: dark theme white body, orange keywords, zero gray body text.
 * Load AFTER dm-portal-theme.css / dm-blog-list.css.
 */

/* Body / lists — white on dark */
html[data-dm-portal-theme="dark"] .blog-details.blog-section .blog-details__text-2,
html[data-dm-portal-theme="dark"] .blog-details.blog-section .dm-blog-optimized-content,
html[data-dm-portal-theme="dark"] .blog-details.blog-section .dm-blog-optimized-content :where(p, li, ul, ol, td, span:not(.dm-blog-keyword-highlight):not(.dm-blog-number-marker):not(.dm-blog-label-accent):not(.dm-brand-orange)),
html:not([data-dm-portal-theme="light"]) .blog-details.blog-section .blog-details__text-2,
html:not([data-dm-portal-theme="light"]) .blog-details.blog-section .dm-blog-optimized-content,
html:not([data-dm-portal-theme="light"]) .blog-details.blog-section .dm-blog-optimized-content :where(p, li, ul, ol, td, span:not(.dm-blog-keyword-highlight):not(.dm-blog-number-marker):not(.dm-blog-label-accent):not(.dm-brand-orange)) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}

/* Secondary / muted info still readable (open white) */
html[data-dm-portal-theme="dark"] .blog-details.blog-section .dm-blog-optimized-content .dm-blog-secondary,
html:not([data-dm-portal-theme="light"]) .blog-details.blog-section .dm-blog-optimized-content .dm-blog-secondary {
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
}

/* Focus / SEO keywords — brand orange (strong OR highlight span) */
html[data-dm-portal-theme="dark"] .blog-details.blog-section .dm-blog-optimized-content :where(strong, b, .dm-blog-keyword-highlight, .dm-blog-label-accent, .dm-blog-number-marker),
html:not([data-dm-portal-theme="light"]) .blog-details.blog-section .dm-blog-optimized-content :where(strong, b, .dm-blog-keyword-highlight, .dm-blog-label-accent, .dm-blog-number-marker),
.blog-details.blog-section .dm-blog-optimized-content :where(strong, b, .dm-blog-keyword-highlight, .dm-blog-label-accent, .dm-blog-number-marker) {
  color: var(--theme-color1) !important;
  -webkit-text-fill-color: var(--theme-color1) !important;
  opacity: 1 !important;
  font-weight: 600;
}

/* Headings remain orange */
html[data-dm-portal-theme="dark"] .blog-details.blog-section .dm-blog-optimized-content :where(h1, h2, h3),
html:not([data-dm-portal-theme="light"]) .blog-details.blog-section .dm-blog-optimized-content :where(h1, h2, h3),
.blog-details.blog-section .blog-details__title {
  color: var(--theme-color1) !important;
  -webkit-text-fill-color: var(--theme-color1) !important;
}

/* Light theme: keep readable dark ink for body; keywords still orange */
html[data-dm-portal-theme="light"] .blog-details.blog-section .dm-blog-optimized-content :where(p, li, ul, ol, td) {
  color: var(--dm-portal-ink, #181411) !important;
  -webkit-text-fill-color: var(--dm-portal-ink, #181411) !important;
  opacity: 1 !important;
}

html[data-dm-portal-theme="light"] .blog-details.blog-section .dm-blog-optimized-content :where(strong, b, .dm-blog-keyword-highlight, .dm-blog-label-accent) {
  color: var(--theme-color1) !important;
  -webkit-text-fill-color: var(--theme-color1) !important;
}
