/* Reading text is neutral; branding, diagrams and interactive colour stay intact. */
:root, html {
 --reading-black:#000000;
 --dogma-ink:var(--reading-black);--dogma-copy:var(--reading-black);--dogma-muted:#333333;
 --caption-ink:var(--reading-black);--caption-title:var(--reading-black);
 --reference-ink:#216A9E;--reference-link:#216A9E;
}

/* Explicit rules cover older content with hard-coded blue-gray colours. */
html body main :is(p,li,td), html body main :is(p,li,td) :is(strong,b,em,span,small), html body main .dogma-section-card :is(strong,b), html body main .signal-peptide-table tbody th, html body main .peptide-sequence, html body main .source13-panel .progress3-panel-label {
 color:var(--reading-black)!important;
}
html body main .dogma-section-card :is(h2,h3,h4,h5,h6), html body main.dogma-content-page :is(h2,h3,h4,h5,h6), html body main.members-roster :is(h3,h4,h5,h6) {
 --dogma-heading:var(--reading-black);
 color:var(--reading-black)!important;-webkit-text-fill-color:var(--reading-black)!important;
}
/* References remain blue, including nested emphasis and the heading theme layer. */
html body main .wiki-reference-heading.wiki-reference-heading {
 --dogma-heading:var(--reference-ink);color:var(--reference-ink)!important;-webkit-text-fill-color:var(--reference-ink)!important;
}
html body main .wiki-reference-content.wiki-reference-content, html body main .wiki-reference-content.wiki-reference-content :is(p,li,td,span,small,em,strong,b,a) {
 --dogma-copy:var(--reference-ink);--dogma-ink:var(--reference-ink);--dogma-muted:var(--reference-ink);
 color:var(--reference-ink)!important;
}
/* Shared pale footer: neutral reading text, branded headings unchanged. */
html body footer.dogma-footer { --footer-text:var(--reading-black); }
/* White labels on dark images/table headers and blue actions remain legible. */
html body main .signal-peptide-table thead th, html body main .confocal-group-label {color:#fff!important;}
