/* Tap targets (WCAG 2.5.8): >=24px everywhere, ~44px on touch screens */
a, button, summary, [role="button"], input:not([type="hidden"]), select, textarea { min-height: 24px; }
a:not(.inline-text) { min-width: 24px; }
@media (pointer: coarse), (max-width: 767px) {
  button, summary, [role="button"], input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select { min-height: 44px; }
  nav a, footer li a, footer a { display: inline-flex; align-items: center; min-height: 44px; }
  input[type="checkbox"], input[type="radio"] { min-width: 24px; min-height: 24px; }
}
/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
  body, .bg-white, .bg-white\/95 { background-color: #0A0E1F !important; color: #E2E8F0; }
  header.bg-white, header[class*="bg-white"] { background-color: #0F172A !important; }
  .bg-ink-50\/40, .bg-ink-50, .to-white { background-color: #0F172A !important; --tw-gradient-to: #0F172A !important; }
  .from-brand-100, .to-cyan-100 { --tw-gradient-from: #1E1B4B !important; --tw-gradient-to: #0F172A !important; }
  .text-ink-900, .text-ink-800, .text-ink-700 { color: #F1F5F9 !important; }
  .text-ink-600, .text-ink-500 { color: #CBD5E1 !important; }
  .text-brand-700, .text-brand-600 { color: #A5B4FC !important; }
  .text-cyan-600 { color: #22D3EE !important; }
  .text-amber-700 { color: #FCD34D !important; }
  .border-ink-100, .border-ink-200 { border-color: #334155 !important; }
  input, select, textarea { background-color: #0F172A; color: #F1F5F9; border-color: #475569; }
  img[src$="logo.png"]:not(.invert) { filter: brightness(0) invert(1); }
}
