/* Contrast repairs for the inlined "oem" design system.
 *
 * WHY THIS FILE EXISTS RATHER THAN A REBUILD
 * Each oem page inlines its own copy of the design-system stylesheet, so the
 * fix at source (oem_css.py) only reaches a page when that page is rebuilt and
 * republished. Rebuilding the 24 affected pages is not safe: several were
 * modified after their build scripts last ran (set_descriptions.py,
 * set_descriptions2.py, link_new.py, mod_content.py all write directly to
 * published content), so regenerating from build_*.py would silently revert
 * those edits. A stylesheet fixes the rendering and touches no content at all.
 *
 * oem_css.py carries the same rules, so pages rebuilt for other reasons in
 * future get them inline and this file simply becomes redundant for them.
 *
 * WHAT WAS WRONG
 * Three faults, all invisible text on 24 published pages, all measured against
 * rendered pixels rather than computed styles:
 *
 *   headings   .oem sets color:var(--paper), but INHERITED colour loses to any
 *              direct rule, and the parent theme styles h1-h6 dark for light
 *              backgrounds. Every heading without its own .oem rule rendered
 *              near-black on a dark band - 1.09:1, invisible not merely low.
 *   blockquote inherits the correct light text but picks up the theme's light
 *              blockquote background. Near-white on near-white.
 *   bare table the design system only ever styled .oem-table, so a plain
 *              <table> took the theme's white background under light text.
 *
 * SPECIFICITY IS LOAD-BEARING
 * The heading selector is doubled (.oem.oem) to reach (0,2,1). That is high
 * enough to beat the theme, and ties with .oem .oem-cell h3 and friends - which
 * are inlined in the body and therefore come later, so they still win and keep
 * their own sizing. Do not "simplify" this to .oem h3; it would stop overriding
 * the theme on pages whose own heading rules are more specific.
 */

.oem.oem h1,
.oem.oem h2,
.oem.oem h3,
.oem.oem h4,
.oem.oem h5,
.oem.oem h6 { color: var(--paper); }

.oem .oem-quote { background: transparent; }

.oem table { background: var(--deep); color: var(--muted); }
.oem table th { background: var(--bandA); color: var(--paper); }
.oem table td { background: transparent; }
