/* Owner-side pages (dashboard, Field App, pricing, /start sign-up, /partner, sign-in): easier to read and use
   (WCAG 2.1 AA, the standard the ADA and Ontario's AODA point to). Same ideas as guest-a11y.css:
   - Grey and colored text dark enough on white and light boxes (4.5 to 1), and light enough on dark boxes.
     owner-a11y.js looks at the real color behind each such text and marks it a11y-l (light) or a11y-d (dark).
   - White text on colored buttons: the button color is a shade darker so the words stand out.
   - Phones can zoom; form fields use 16px text on phones; a clear outline on whatever has keyboard focus. */

/* Grey and colored text on light backgrounds */
.a11y-l:is(.text-slate-300, .text-slate-400, .text-gray-400) { color: #5b6b80 !important; }
.a11y-l:is(.text-slate-500, .text-gray-500) { color: #4b5a6e !important; }
.a11y-l:is(.text-emerald-500, .text-emerald-600) { color: #047857 !important; }
.a11y-l:is(.text-green-500, .text-green-600) { color: #15803d !important; }
.a11y-l:is(.text-orange-500, .text-orange-600) { color: #c2410c !important; }
.a11y-l:is(.text-amber-500, .text-amber-600) { color: #b45309 !important; }
.a11y-l:is(.text-sky-500, .text-sky-600) { color: #0369a1 !important; }
.a11y-l:is(.text-teal-500, .text-teal-600) { color: #0f766e !important; }
.a11y-l:is(.text-cyan-500, .text-cyan-600) { color: #0e7490 !important; }
.a11y-l:is(.text-indigo-400, .text-indigo-500) { color: #4f46e5 !important; }
.a11y-l:is(.text-rose-400, .text-rose-500, .text-red-400, .text-red-500) { color: #be123c !important; }
/* Grey text on dark backgrounds */
.a11y-d:is(.text-slate-400, .text-slate-500, .text-gray-400, .text-gray-500) { color: #a3b1c4 !important; }
.a11y-d:is(.text-slate-600, .text-gray-600) { color: #b4c0d0 !important; }

/* White text on colored buttons and badges: a darker shade (also on hover) */
:is(.bg-emerald-400, .bg-emerald-500, .bg-emerald-600):is(.text-white, :has(> .text-white)) { background-color: #047857 !important; }
:is(.bg-emerald-400, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700).text-white:hover { background-color: #065f46 !important; }
:is(.bg-green-500, .bg-green-600):is(.text-white, :has(> .text-white)) { background-color: #15803d !important; }
:is(.bg-sky-400, .bg-sky-500, .bg-sky-600):is(.text-white, :has(> .text-white)) { background-color: #0369a1 !important; }
:is(.bg-sky-400, .bg-sky-500, .bg-sky-600, .bg-sky-700).text-white:hover { background-color: #075985 !important; }
:is(.bg-teal-500, .bg-teal-600):is(.text-white, :has(> .text-white)) { background-color: #0f766e !important; }
:is(.bg-teal-500, .bg-teal-600, .bg-teal-700).text-white:hover { background-color: #115e59 !important; }
:is(.bg-cyan-500, .bg-cyan-600):is(.text-white, :has(> .text-white)) { background-color: #0e7490 !important; }
:is(.bg-indigo-400, .bg-indigo-500):is(.text-white, :has(> .text-white)) { background-color: #4f46e5 !important; }
.bg-indigo-500.text-white:hover { background-color: #4338ca !important; }
:is(.bg-blue-400, .bg-blue-500):is(.text-white, :has(> .text-white)) { background-color: #2563eb !important; }
:is(.bg-violet-500, .bg-purple-500):is(.text-white, :has(> .text-white)) { background-color: #7c3aed !important; }
:is(.bg-orange-500, .bg-orange-600):is(.text-white, :has(> .text-white)) { background-color: #c2410c !important; }
:is(.bg-orange-500, .bg-orange-600, .bg-orange-700).text-white:hover { background-color: #9a3412 !important; }
:is(.bg-amber-400, .bg-amber-500):is(.text-white, :has(> .text-white)) { background-color: #b45309 !important; }
:is(.bg-pink-400, .bg-pink-500):is(.text-white, :has(> .text-white)) { background-color: #be185d !important; }
.bg-pink-500.text-white:hover { background-color: #9d174d !important; }
:is(.bg-rose-400, .bg-rose-500):is(.text-white, :has(> .text-white)) { background-color: #e11d48 !important; }
:is(.bg-red-400, .bg-red-500):is(.text-white, :has(> .text-white)) { background-color: #dc2626 !important; }
:is(.bg-lime-500, .bg-lime-600):is(.text-white, :has(> .text-white)) { background-color: #4d7c0f !important; }
.bg-\[\#1877f2\].text-white { background-color: #1565d8 !important; }
/* Bright gradient buttons with white text */
.bg-gradient-to-r.from-sky-500.text-white { background-image: linear-gradient(to right, #0369a1, #047857) !important; }

/* Phones: zoom allowed (no locked zoom anywhere), and 16px form text so iPhones don't jump-zoom on tap */
@media (max-width: 640px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { font-size: 16px !important; }
}
/* A clear outline on whatever has keyboard focus (many fields use outline-none) */
:focus-visible { outline: 3px solid #2563eb !important; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
