Dev Log
Fix dark-on-dark contrast in moonshots.botgui.de callout
What was done
- Bumped specificity on
.moonshots-cta p,.moonshots-cta h3, and.moonshots-cta .disclosureto.article .moonshots-cta ...so they beat the later-declared.article p { color: var(--color-text); }rule on source-order tie-breaking. - Added a comment explaining the specificity dance so a future editor doesn’t trip over it again.
Why
Ryan reported the callout on /dev-iq/ai-iq/staying-current-with-ai/ had black text on a black background. Cause: .article p and .moonshots-cta p both have specificity 0,1,1; .article p is declared later in the stylesheet, so it won the cascade and forced text back to --color-text (dark) on the charcoal callout.
Files affected
src/pages/dev-iq/ai-iq/staying-current-with-ai.astro(CSS only)