/* Text that was too pale for what is behind it (IS 5568, level AA: 4.5 to 1, and 3 to 1 for large text).
   Loaded last on the agent site. Every rule answers a failure that was measured; each one only changes a colour.
   None of it applies while the visitor has high contrast on: that mode sets every colour itself. */

/* every layout */
html:not(.a11y-contrast)[data-template] .card-location span:nth-of-type(2),html:not(.a11y-contrast)[data-template] #process .section-head p{color:var(--muted)!important}
html:not(.a11y-contrast)[data-template] .values :is(p,span),html:not(.a11y-contrast)[data-template] #about .section-label{opacity:1!important}

/* urban: the pale lilac-grey of the small print, a few shades deeper */
html:not(.a11y-contrast)[data-template=urban]{--soft-ink:#6a637b}
html:not(.a11y-contrast)[data-template=urban] :is(.section-intro p,#about .about-content p,.property-toolbar .tabs button:not(.active),.specs span,.card-compare,.card-location span,.brand small,.demo-note,.filter-row label,.number-fields label,.agent-line small,.values p,.values span,.faq-list details p,.calculator-title span,.range-extents span,.calculator-note),
html:not(.a11y-contrast)[data-template=urban] body>footer>span,html:not(.a11y-contrast)[data-template=urban] body>footer>a:last-of-type{color:var(--soft-ink)!important}
html:not(.a11y-contrast)[data-template=urban] .button>span{background:#ffffff14!important}

/* a dark panel inside a light page: the brand colour is for light paper, so here the lighter partner speaks */
html:not(.a11y-contrast):is([data-template=urban],[data-template=atelier]) :is(.neighborhood-copy .section-label,#neighborhood-properties,#neighborhood-properties span){color:var(--lime)!important}

/* atelier */
html:not(.a11y-contrast)[data-template=atelier] .atelier-work-copy .button>span,html:not(.a11y-contrast)[data-template=atelier] .demo-pill{color:var(--ink)!important}

/* studio: three coloured cards, each with ink that can be read on it */
html:not(.a11y-contrast)[data-template=studio] .steps article:nth-of-type(1) p,html:not(.a11y-contrast)[data-template=studio] .steps article:nth-of-type(2) :is(p,span){color:var(--ink)!important}
html:not(.a11y-contrast)[data-template=studio] .steps article:nth-of-type(3) :is(p,span){color:#fff!important}
