/* OCD accessibility overrides for the vendored Ketcher build.
 *
 * Ketcher renders its atom-shortcut toolbar labels in CPK element colors on a
 * white background; the light ones fail WCAG 2.1 AA contrast (4.5:1) — O 3.95,
 * S 2.59, P 2.52, F 2.32, Cl 2.08. We darken ONLY those five to same-hue
 * AA-compliant shades (>=4.6:1), preserving the color-coding cue. H/C (black),
 * N (blue), Br/I already pass and are left alone.
 *
 * Targets the stable data-testid hooks (NOT the emotion css-* hashes), so this
 * survives within the pinned build. This file is loaded by index.html AFTER the
 * main bundle; if Ketcher is ever re-vendored, re-add the <link> in index.html.
 * Tracked: OCD WCAG sweep, 2026-06-16.
 */
/* Hide the "Molecules ⇄ Macromolecules" mode toggle. We only ever edit small
 * molecules in these psets, so the macromolecule editor is irrelevant — and the
 * vendored standalone build gives no URL/prop hook for Ketcher's
 * disableMacromoleculesEditor option. Hiding the single-button switcher
 * (display:none) removes the unused feature AND drops it from the a11y tree,
 * which clears an irreducible button-name false-positive (the toggle re-renders
 * unnamed for a beat before it self-labels "Molecules"). Stable title hook. */
[title="Switch to Macromolecule mode"] { display: none !important; }

button[data-testid="O-button"]  span { color: #e80c0c !important; }
button[data-testid="S-button"]  span { color: #916f12 !important; }
button[data-testid="P-button"]  span { color: #b85c00 !important; }
button[data-testid="F-button"]  span { color: #52802d !important; }
button[data-testid="Cl-button"] span { color: #148714 !important; }
