/* WCAG AA text contrast fixes (Gaston, art direction; #111 / palettes-mono follow-up). Loaded last.
   Measured with docs/qa/contrast-sweep.js + pixel verification (docs/ux/CONTRAST_AA.md): every palette
   (light, dark, ember, neon, Clay Citron, Clay Ambre) × base tabs × FR/EN, iPhone size. */

/* Planner: paid rows were dimmed with opacity .62 (2.8–4.5:1). They stay calm through colour tokens
   that are AA in every palette, and keep the tick as the "paid" signal. */
tr.done-row td{opacity:1}
tr.done-row td,tr.done-row td .note{color:var(--muted)}
tr.done-row td.num.pos,tr.done-row .tick{color:var(--green-text)}
tr.done-row td.num.neg{color:var(--red-text)}

/* Tools hub hero (light pink card in every palette): kicker 3.99:1 → 6.1:1, intro 4.67:1 → 5.8:1. */
#tab-insights .tools-v42-hero .tools-v42-kicker{color:#6a4290}
#tab-insights .tools-v42-hero p{color:#46558a}

/* Install prompt button: white on the brand gradient's light stops measured 2.0–3.3:1; same three hues,
   deeper stops (≥ 5:1 everywhere under the text). Visible only on the web install prompt. */
.cbi-go{background:linear-gradient(100deg,#b8307a,#7d3fcc 55%,#1b74b3)}
/* Premium / Platinum hub and tools — WCAG AA 4.5:1 for normal text (sweep docs/qa/contrast-tools-sweep.js, 2026-11-24).
   White on the brand gradient measured 3.51–3.66 at its pink end (button) and 3.88–4.05 (Platinum badge): same hues, deeper. */
#tab-insights .tools-v42-cta:not(:disabled){background:linear-gradient(110deg,#c42a7f,#6a34cf)}
html:not([data-theme="mono-yellow"]):not([data-theme="mono-orange"]) #tab-insights .scan-badge{background:linear-gradient(90deg,#c42a7f,#6a34cf)}
/* Segmented control (My summaries): white on the light/dark accent measured 3.12 */
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights .pp-seg button[aria-pressed="true"]{background:#6b3fd4;color:#fff}
/* Ember / Neon are dark palettes: the light-theme green (#1f7a50) measured 2.55–3.16 there — use the dark-theme tones */
:root:is([data-theme="ember"],[data-theme="neon"]) .ins-ok{color:#7fdcae}
:root:is([data-theme="ember"],[data-theme="neon"]) .ins-warn{color:#ffb86b}
/* B1 (#118, build 29 feedback) — Clay palettes in Settings. The Clay card treatment (gradient, white rim, shadow,
   19px radius) was applied to every .s-row, so each setting INSIDE a section became its own box and its text
   ran into the box edges. Rows go back to what every other palette shows: flat rows on the section card,
   separated by a hairline. Same card gradient behind the text, so the D13 contrast values are unchanged. */
html:is([data-theme="mono-yellow"],[data-theme="mono-orange"]) :is(.s-list,.s-sec,.settings-screen) .s-row{
 background:none!important;border:0!important;border-top:1px solid rgba(70,82,104,.16)!important;box-shadow:none!important;border-radius:0!important}
html:is([data-theme="mono-yellow"],[data-theme="mono-orange"]) .s-list>.s-row:first-child{border-top:0!important}
html:is([data-theme="mono-yellow"],[data-theme="mono-orange"]) .palette-card:not([aria-pressed=true]){border-color:transparent;background:transparent}
/* The sub-screen title is focused programmatically so VoiceOver announces where you are; it is not a control
   (tabindex=-1), so it must not draw a focus box around itself after a tap — in every palette. */
#settings-sub-title:focus{outline:none}
