/* MarketBeacon Pro - accessibility overrides (v3).
   Copied by /usr/local/bin/mb_audit_fixes.py on every deploy; do not hand-edit the dist copy.
   Measured 2026-11-30 with computed styles on the live site:
     /contact    input #ffffff text on #f8f9fa surface  -> 1.05:1
     /contact    h2 text-white inside white card        -> 1.00:1
     /privacy    h1 #111111 on slate-950 hero           -> 1.07:1
     /about      #00d09c accent on #ffffff              -> 2.00:1
   Selectors use class~="..." (exact class token) so opacity variants like
   bg-[#00d09c]/10 are not caught. */

/* 1. Inputs authored for a dark surface, rendered on the light shell */
[class~="bg-[var(--bg-tertiary)]"] {
  background-color: #ffffff !important;
  color: #0f172a !important;
  caret-color: #0f172a;
}
[class~="bg-[var(--bg-tertiary)]"]::placeholder { color: #64748b !important; opacity: 1; }
[class~="bg-[var(--bg-tertiary)]"] option { color: #0f172a; background: #ffffff; }

/* 2a. Dark hero block on the legal pages (nav + header sit directly on bg-slate-950) */
.bg-slate-950 > header [class~="text-[var(--text-primary)]"],
.bg-slate-950 > nav [class~="text-[var(--text-primary)]"] { color: #f1f5f9 !important; }
.bg-slate-950 > header [class~="text-[var(--text-muted)]"],
.bg-slate-950 > nav [class~="text-[var(--text-muted)]"] { color: #cbd5e1 !important; }

/* 2b. White text authored for a dark card that renders light inside the shell */
.customer-shell [class~="bg-[var(--bg-secondary)]"] [class~="text-white"],
.customer-shell [class~="bg-[var(--bg-tertiary)]"] [class~="text-white"] { color: #0f172a !important; }

/* 3. Mint accent on light surfaces: #00d09c -> #047857 (5.48:1 on white) */
[class~="text-[#00d09c]"] { color: #047857 !important; }
[class~="bg-[#00d09c]"] { background-color: #047857 !important; }
.bg-slate-950 [class~="text-[#00d09c]"] { color: #00d09c !important; }

/* 4. Muted labels on light surfaces: #94a3b8 -> #475569 (7.58:1 on white) */
.customer-shell [class~="text-[var(--text-muted)]"] { color: #475569 !important; }
.bg-slate-950 [class~="text-[var(--text-muted)]"] { color: #cbd5e1 !important; }

/* 5. Keyboard focus must stay visible (the 404 route removed its ring) */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid #047857 !important;
  outline-offset: 2px !important;
}
