/* Universal dark mode PDF styling */ .theme-dark .markdown-preview-view iframe[src$=".pdf"], .theme-dark .markdown-reading-view iframe[src$=".pdf"], .theme-dark .markdown-embed-content iframe[src$=".pdf"], .theme-dark .internal-embed iframe[src$=".pdf"], .theme-dark .pdf-viewer, .theme-dark .markdown-preview-view embed[type="application/pdf"], .theme-dark .markdown-reading-view embed[type="application/pdf"], .theme-dark .markdown-embed-content embed[type="application/pdf"], .theme-dark .internal-embed embed[type="application/pdf"] { filter: invert(0.87) hue-rotate(180deg) brightness(0.95) contrast(0.95) !important; opacity: 0.95; } /* Handle canvas and other potential PDF rendering methods */ .theme-dark .markdown-preview-view canvas, .theme-dark .markdown-reading-view canvas, .theme-dark .markdown-embed-content canvas, .theme-dark .internal-embed canvas { filter: invert(0.87) hue-rotate(180deg) brightness(0.95) contrast(0.95) !important; opacity: 0.95; } /* Reset for light mode */ .theme-light iframe[src$=".pdf"], .theme-light embed[type="application/pdf"], .theme-light .pdf-viewer, .theme-light canvas { filter: none !important; opacity: 1; } /* Additional specificity for good measure */ .theme-dark .markdown-preview-view .internal-embed[src$=".pdf"], .theme-dark .markdown-reading-view .internal-embed[src$=".pdf"] { filter: invert(0.87) hue-rotate(180deg) brightness(0.95) contrast(0.95) !important; }