/* Readability fixes for the light "paper" pages (body.atlas-paper).
   Older component styles still carry colours made for the dark background:
   pale greens, near-white and gold text on ivory. This file is loaded last and
   maps them to the paper palette (ink #183c49 / #34474e, teal #23616b,
   muted #526269, brown #635029). Generated pages copy it from work/phase1. */

/* bold and emphasis inside the reading column */
.atlas-paper main :is(strong, b),
.atlas-paper main :is(strong, b, i, em, span)[style*="color"] { color: #183c49 !important; }

/* ribosome article: references, lead-ins, codon tables */
.atlas-paper .ribo-references strong,
.atlas-paper .ribo-section strong,
.atlas-paper .hallmark-abduction strong { color: #183c49 !important; }
.atlas-paper .ribo-table code { color: #7a4a0c !important; background: #f3ead6; }

/* process flows, carbon details, diagrams on light panels */
.atlas-paper .system-process-flow strong,
.atlas-paper .carbon-detail strong { color: #183c49 !important; }
.atlas-paper figure.process-diagram h4 { color: #183c49 !important; }

/* small labels, numbers and breadcrumbs */
.atlas-paper .hallmark-tier,
.atlas-paper .origins-process span { color: #635029 !important; }
.atlas-paper :is(.breadcrumb, .breadcrumb span, .breadcrumb a),
.atlas-paper button.challenge-card span,
.atlas-paper a.atlas-search-launch span { color: #526269 !important; }
.atlas-paper :is(.atlas-toc-number, .assessment-grid span, p.intro-definition span, .scope-note span) { color: #23616b !important; }
.atlas-paper :is(.research-filters label, label.glossary-search) { color: #34474e !important; }

/* dark panels that sit inside light pages: light text on dark */
/* (doubled class outweighs the pages' own inline rules for these sections) */
.atlas-paper.atlas-paper main #central-pathways figure :is(p, li, figcaption, h2, h3, h4, i, em, b, strong, span),
.atlas-paper.atlas-paper main #secondary-diagram :is(p, li, figcaption, h2, h3, h4, i, em, b, strong, span) { color: #e8efe9 !important; }
.atlas-paper.atlas-paper main #central-pathways figure a,
.atlas-paper.atlas-paper main #secondary-diagram a { color: #c3e784 !important; }

/* the "in the tree" link box keeps its own dark background on paper pages */
.atlas-paper main p.tt-bridge, body p.tt-bridge { color: #c9d6d2 !important; }
.atlas-paper main p.tt-bridge a, body p.tt-bridge a { color: #c3e784 !important; }
