/*
 * Colour contrast corrections — WCAG 2.1 AA.
 *
 * Loaded last, after pages.css, because that is what these rules have to beat.
 * The mockup was drawn for looks and several of its colours fail as TEXT: at
 * worst 2.66:1 where 4.5:1 is required. Measured across twelve pages on
 * 18 August 2026; re-run the audit after changing anything here.
 *
 * Only the letters are darkened. Every fill, tint and border is untouched, so
 * the pages look the same at a glance and the colour coding still codes.
 *
 * !important is used for two reasons only. The Key findings headings carry
 * their colour as an inline style attribute, which no stylesheet can override
 * without it. And the About tags are coloured by page-scoped rules in pages.css
 * — "body.asc-page-about .ds-pnk .ds-tag" — which outrank anything reasonable
 * that could be written here; matching that specificity by hand would make this
 * file depend on how port_pages.py happens to scope things.
 */

/* Page footer: #8a8a96 -> #6b7280 (was 3.41:1 on white, on every page). */
.foot, .foot span, .foot a { color: #6b7280; }

/* Key findings headings, coloured inline per card. The amber and orange ones
   failed; the others already passed but are set together so the four stay a
   family. */
.fcard .f-h[style*="#c26a00"] { color: #8a4a00 !important; }
.fcard .f-h[style*="#c99700"] { color: #856400 !important; }
.fcard .f-h[style*="#b3006b"] { color: #99005b !important; }

/* Indicator change pills and headline figures using the gold. */
[style*="--gold"], .val[style*="#c99700"] { color: #856400 !important; }

/* About: data-source tags. Each keeps its hue, darkened until it passes on its
   own tint rather than being flattened to one colour. */
.ds-blu  .ds-tag { color: #17456f!important; }
.ds-grn  .ds-tag { color: #2c5f30!important; }
.ds-gold .ds-tag { color: #6d5010!important; }
.ds-tel  .ds-tag { color: #175f57!important; }
.ds-pnk  .ds-tag { color: #8a2d45!important; }
.ds-tag         { color: #14213d!important; }

/* About: model-factor tags. */
.tg-grn { color: #1e5429!important; }
.tg-tel { color: #0f4740!important; }
.tg-blu { color: #17456f!important; }
.tg-pnk { color: #93324b!important; }
.tg-gold{ color: #6d5010!important; }

/* The "ASC_LD forecast" label on About. */
.mf-forecast{ color: #1d4f47!important; }
