/* DiversIA Eternals — Custom Styles */
/* Despacho 6: WCAG AAA Accessibility + High Contrast Mode */
/* Despacho 7: Dark Mode + Touch Target Fix (#147, #148) */

:root {
  --primary: #046BD2;
  --primary-deep: #045CB4;
  --primary-dark: #034A9A;
  --black: #000000;
  --dark: #1E293B;
  --medium: #334155;
  --light: #E5E7EB;
  --white: #FFFFFF;
  --success: #059669;
  --warning: #D97706;
  --danger: #DC2626;

  /* Semantic actor colors (WCAG AAA compliant) */
  --color-candidate: #046BD2;
  --color-company: #D97706;
  --color-therapist: #7C3AED;
  --color-success: #059669;
  --color-alert: #D97706;
  --color-error: #DC2626;

  /* Focus ring */
  --focus-ring-color: var(--primary);
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
}

/* Navbar fixed offset */
main { padding-top: 80px; min-height: 100vh; }

/* Glassmorphism card */
.glass {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(4,107,210,0.08);
}

/* Hover lift */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(4,107,210,0.15);
}

/* Glow effect */
.glow { box-shadow: 0 0 20px rgba(4,107,210,0.25); }

/* Fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp 0.5s ease forwards; }

/* Pulse animation for badges */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }

/* Form styles */
.form-input {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4,107,210,0.15);
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 9999;
  min-width: 300px;
  padding: 16px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}
.toast.show { transform: translateX(0); }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }

/* Loading spinner */
.spinner {
  border: 3px solid var(--light);
  border-top-color: var(--primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   DESPACHO 6: WCAG AAA — Focus Visible
   ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="tab"]:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   DESPACHO 6: WCAG AAA — Dashboard Card Improvements
   ============================================================ */

.dash-card {
  background: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  padding: 1.5rem;
}

.dash-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75rem;
  color: var(--dark);
}

.dash-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
}

.dash-text-secondary {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
}

.dash-text-muted {
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: #4B5563;
}

/* ============================================================
   DESPACHO 6: WCAG AAA — Semantic Actor Colors
   ============================================================ */

.actor-candidate { color: var(--color-candidate); }
.actor-company { color: var(--color-company); }
.actor-therapist { color: var(--color-therapist); }

.actor-candidate-bg { background-color: #EFF6FF; border-color: #BFDBFE; }
.actor-company-bg { background-color: #FFFBEB; border-color: #FDE68A; }
.actor-therapist-bg { background-color: #F5F3FF; border-color: #DDD6FE; }

.actor-candidate-accent { border-left: 4px solid var(--color-candidate); }
.actor-company-accent { border-left: 4px solid var(--color-company); }
.actor-therapist-accent { border-left: 4px solid var(--color-therapist); }

/* ============================================================
   DESPACHO 6: WCAG AAA — Minimum Touch Target 44x44px
   FIXED: Removed display:inline-flex to prevent overriding md:hidden (#148)
   ============================================================ */

.touch-target {
  min-width: 44px;
  min-height: 44px;
}

/* Icon minimum size 24x24 */
.icon-accessible {
  min-width: 24px;
  min-height: 24px;
}

/* ============================================================
   DESPACHO 7: Dark Mode Toggle Button
   ============================================================ */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  background: #F9FAFB;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
  min-width: 44px;
}

.theme-toggle:hover {
  background: #E5E7EB;
  border-color: #9CA3AF;
}

/* ============================================================
   DESPACHO 6: High Contrast Mode (KEPT AS-IS)
   ============================================================ */

.high-contrast,
.high-contrast * {
  --tw-bg-opacity: 1 !important;
}

.high-contrast body {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}

.high-contrast .glass,
.high-contrast .dash-card {
  background: #FFFFFF !important;
  border: 2px solid #000000 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.high-contrast .hover-lift:hover {
  box-shadow: 0 0 0 2px #000000 !important;
  transform: none !important;
}

.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast h5,
.high-contrast h6,
.high-contrast p,
.high-contrast span,
.high-contrast div,
.high-contrast label,
.high-contrast a {
  color: #000000 !important;
}

.high-contrast .text-green-600,
.high-contrast .text-green-700 {
  color: #065F46 !important;
}

.high-contrast .text-red-500,
.high-contrast .text-red-600 {
  color: #991B1B !important;
}

.high-contrast .text-primary {
  color: #034A9A !important;
}

.high-contrast .actor-company,
.high-contrast .text-amber-600 {
  color: #92400E !important;
}

.high-contrast .actor-therapist,
.high-contrast .text-purple-600 {
  color: #5B21B6 !important;
}

.high-contrast .rounded-full[class*="bg-"] {
  border: 2px solid #000000 !important;
}

.high-contrast a:focus-visible,
.high-contrast button:focus-visible,
.high-contrast [role="tab"]:focus-visible,
.high-contrast [tabindex]:focus-visible {
  outline: 3px solid #000000 !important;
  outline-offset: 2px !important;
}

.high-contrast nav {
  background-color: #FFFFFF !important;
  border-bottom: 2px solid #000000 !important;
  backdrop-filter: none !important;
}

.high-contrast .border,
.high-contrast .border-gray-100,
.high-contrast .border-gray-200 {
  border-color: #000000 !important;
}

.high-contrast .bg-gray-200 {
  background-color: #D1D5DB !important;
}

/* High contrast toggle button */
.hc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  background: #F9FAFB;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
  min-width: 44px;
}

.hc-toggle:hover {
  background: #E5E7EB;
  border-color: #9CA3AF;
}

.hc-toggle[aria-pressed="true"] {
  background: #1F2937;
  color: #FFFFFF;
  border-color: #000000;
}

.high-contrast .hc-toggle {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
}

/* ============================================================
   DESPACHO 6: OS-level prefers-contrast support
   ============================================================ */

@media (prefers-contrast: more) {
  body {
    background-color: #FFFFFF;
    color: #000000;
  }

  .glass {
    background: #FFFFFF;
    border: 2px solid #000000;
    backdrop-filter: none;
  }

  .hover-lift:hover {
    box-shadow: 0 0 0 2px #000000;
  }

  a:focus-visible,
  button:focus-visible,
  [role="tab"]:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 2px;
  }
}

/* ============================================================
   DESPACHO 6: Screen reader only utility
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   DESPACHO 7: DARK MODE — Tailwind Class Overrides (#147)

   These use !important to override Tailwind utility classes
   that are hardcoded in styles.css. This section MUST load
   after styles.css in the cascade.
   ============================================================ */

/* --- Body & Root --- */
html.dark body {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
}

/* --- Text Colors --- */
html.dark .text-dark {
  color: #f1f5f9 !important;
}
html.dark .text-gray-700 {
  color: #cbd5e1 !important;
}
html.dark .text-gray-600 {
  color: #94a3b8 !important;
}
html.dark .text-gray-500 {
  color: #94a3b8 !important;
}
html.dark .text-gray-400 {
  color: #94a3b8 !important;
}
html.dark .text-gray-300 {
  color: #94a3b8 !important;
}

/* Keep brand/actor text colors but brighten for dark bg */
html.dark .text-primary {
  color: #3b82f6 !important;
}
html.dark .text-amber-600 {
  color: #fbbf24 !important;
}
html.dark .text-purple-600 {
  color: #a78bfa !important;
}
html.dark .text-purple-700 {
  color: #a78bfa !important;
}
html.dark .text-green-600 {
  color: #34d399 !important;
}
html.dark .text-green-700 {
  color: #34d399 !important;
}
html.dark .text-red-500,
html.dark .text-red-600 {
  color: #f87171 !important;
}
html.dark .text-cyan-600 {
  color: #22d3ee !important;
}
html.dark .text-blue-600,
html.dark .text-blue-700 {
  color: #60a5fa !important;
}
html.dark .text-indigo-600 {
  color: #818cf8 !important;
}
html.dark .text-indigo-700 {
  color: #a5b4fc !important;
}
html.dark .text-indigo-900 {
  color: #c7d2fe !important;
}
html.dark .text-pink-500,
html.dark .text-pink-600 {
  color: #f472b6 !important;
}
html.dark .text-orange-500,
html.dark .text-orange-600 {
  color: #fb923c !important;
}
html.dark .text-yellow-600,
html.dark .text-yellow-700,
html.dark .text-yellow-800 {
  color: #fbbf24 !important;
}
html.dark .text-teal-600 {
  color: #2dd4bf !important;
}
html.dark .text-white {
  color: #ffffff !important;
}

/* --- Background Colors --- */
html.dark .bg-white {
  background-color: #0f172a !important;
}
html.dark .bg-white\/95 {
  background-color: rgba(15, 23, 42, 0.95) !important;
}
html.dark .bg-white\/70 {
  background-color: rgba(15, 23, 42, 0.7) !important;
}
html.dark .bg-gray-50 {
  background-color: #1e293b !important;
}
html.dark .bg-gray-100 {
  background-color: #1e293b !important;
}
html.dark .bg-gray-200 {
  background-color: #334155 !important;
}
html.dark .bg-dark {
  background-color: #0f172a !important;
}

/* Actor/accent backgrounds — darker versions */
html.dark .bg-blue-50 {
  background-color: #172554 !important;
}
html.dark .bg-blue-100 {
  background-color: #1e3a5f !important;
}
html.dark .bg-indigo-50 {
  background-color: #1e1b4b !important;
}
html.dark .bg-indigo-100 {
  background-color: #312e81 !important;
}
html.dark .bg-green-50 {
  background-color: #052e16 !important;
}
html.dark .bg-green-100 {
  background-color: #064e3b !important;
}
html.dark .bg-amber-100 {
  background-color: #451a03 !important;
}
html.dark .bg-yellow-50 {
  background-color: #422006 !important;
}
html.dark .bg-yellow-100 {
  background-color: #451a03 !important;
}
html.dark .bg-red-50 {
  background-color: #450a0a !important;
}
html.dark .bg-red-100 {
  background-color: #7f1d1d !important;
}
html.dark .bg-purple-50 {
  background-color: #2e1065 !important;
}
html.dark .bg-purple-100 {
  background-color: #3b0764 !important;
}
html.dark .bg-pink-50 {
  background-color: #500724 !important;
}
html.dark .bg-pink-100 {
  background-color: #831843 !important;
}
html.dark .bg-cyan-50 {
  background-color: #083344 !important;
}
html.dark .bg-cyan-100 {
  background-color: #164e63 !important;
}
html.dark .bg-orange-50 {
  background-color: #431407 !important;
}
html.dark .bg-orange-100 {
  background-color: #7c2d12 !important;
}
html.dark .bg-teal-50 {
  background-color: #042f2e !important;
}
html.dark .bg-teal-100 {
  background-color: #134e4a !important;
}

/* Gradient overrides for hero sections */
html.dark .bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
}
html.dark .from-blue-50 {
  --tw-gradient-from: #172554 !important;
}
html.dark .from-white {
  --tw-gradient-from: #0f172a !important;
}
html.dark .to-white {
  --tw-gradient-to: #0f172a !important;
}
html.dark .via-white {
  --tw-gradient-stops: var(--tw-gradient-from), #0f172a, var(--tw-gradient-to) !important;
}
html.dark .from-primary\/10 {
  --tw-gradient-from: rgba(4,107,210,0.2) !important;
}
html.dark .from-primary\/20 {
  --tw-gradient-from: rgba(4,107,210,0.3) !important;
}
html.dark .to-primary\/5 {
  --tw-gradient-to: rgba(4,107,210,0.15) !important;
}
html.dark .to-primary-dark\/10 {
  --tw-gradient-to: rgba(3,74,154,0.2) !important;
}
html.dark .from-green-50 {
  --tw-gradient-from: #052e16 !important;
}
html.dark .to-green-50 {
  --tw-gradient-to: #052e16 !important;
}
html.dark .from-purple-50 {
  --tw-gradient-from: #2e1065 !important;
}
html.dark .to-purple-50 {
  --tw-gradient-to: #2e1065 !important;
}
html.dark .to-blue-50 {
  --tw-gradient-to: #172554 !important;
}
html.dark .from-indigo-50 {
  --tw-gradient-from: #1e1b4b !important;
}
html.dark .via-blue-50 {
  --tw-gradient-stops: var(--tw-gradient-from), #172554, var(--tw-gradient-to) !important;
}

/* Primary bg with transparency */
html.dark .bg-primary\/5 {
  background-color: rgba(4,107,210,0.15) !important;
}
html.dark .bg-primary\/10 {
  background-color: rgba(4,107,210,0.2) !important;
}

/* --- Border Colors --- */
html.dark .border-gray-100 {
  border-color: #1e293b !important;
}
html.dark .border-gray-200 {
  border-color: #334155 !important;
}
html.dark .border-gray-300 {
  border-color: #475569 !important;
}
html.dark .border-gray-700 {
  border-color: #475569 !important;
}
html.dark .border-indigo-200 {
  border-color: #3730a3 !important;
}
html.dark .border-green-200 {
  border-color: #064e3b !important;
}
html.dark .border-red-200 {
  border-color: #7f1d1d !important;
}
html.dark .border-pink-200 {
  border-color: #831843 !important;
}
html.dark .border-primary\/30 {
  border-color: rgba(59,130,246,0.4) !important;
}

/* --- Navbar (dark mode) --- */
html.dark nav {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border-bottom-color: #1e293b !important;
  backdrop-filter: blur(12px) !important;
}

/* --- Glass cards (dark mode) --- */
html.dark .glass {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(71, 85, 105, 0.4) !important;
  backdrop-filter: blur(12px) !important;
}

/* --- Dashboard cards (dark mode) --- */
html.dark .dash-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html.dark .dash-section-title {
  color: #f1f5f9 !important;
}
html.dark .dash-text {
  color: #cbd5e1 !important;
}
html.dark .dash-text-secondary {
  color: #94a3b8 !important;
}
html.dark .dash-text-muted {
  color: #94a3b8 !important;
}

/* --- Hover lift (dark mode) --- */
html.dark .hover-lift:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
}

/* --- Shadows (dark mode) --- */
html.dark .shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.3) !important;
}
html.dark .shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.4) !important;
}

/* --- Form inputs (dark mode) --- */
html.dark .form-input,
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="password"],
html.dark select,
html.dark textarea {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}
html.dark .form-input:focus,
html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25) !important;
}
html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #94a3b8 !important;
}

/* --- Actor backgrounds (dark mode) --- */
html.dark .actor-candidate-bg {
  background-color: #172554 !important;
  border-color: #1d4ed8 !important;
}
html.dark .actor-company-bg {
  background-color: #451a03 !important;
  border-color: #b45309 !important;
}
html.dark .actor-therapist-bg {
  background-color: #2e1065 !important;
  border-color: #6d28d9 !important;
}

/* --- Actor text colors brightened for dark bg --- */
html.dark .actor-candidate { color: #60a5fa !important; }
html.dark .actor-company { color: #fbbf24 !important; }
html.dark .actor-therapist { color: #a78bfa !important; }

/* --- Toggle buttons (dark mode) --- */
html.dark .theme-toggle {
  background: #334155 !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}
html.dark .theme-toggle:hover {
  background: #475569 !important;
  border-color: #94a3b8 !important;
}

html.dark .hc-toggle {
  background: #334155 !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}
html.dark .hc-toggle:hover {
  background: #475569 !important;
}

/* --- Mobile menu (dark mode) --- */
html.dark .md\:hidden + div,
html.dark [x-show="open"] {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

/* --- Focus ring (dark mode) --- */
html.dark a:focus-visible,
html.dark button:focus-visible,
html.dark [role="tab"]:focus-visible,
html.dark [tabindex]:focus-visible {
  outline-color: #60a5fa !important;
}

/* --- Misc elements (dark mode) --- */
html.dark .border {
  border-color: #334155 !important;
}
html.dark .border-t {
  border-top-color: #334155 !important;
}
html.dark .border-b {
  border-bottom-color: #334155 !important;
}
html.dark .border-y {
  border-top-color: #334155 !important;
  border-bottom-color: #334155 !important;
}

/* Badges and pills with bg colors */
html.dark .bg-green-100.text-green-700 {
  background-color: #064e3b !important;
  color: #34d399 !important;
}
html.dark .bg-blue-100.text-blue-700 {
  background-color: #1e3a5f !important;
  color: #60a5fa !important;
}
html.dark .bg-yellow-100.text-yellow-700 {
  background-color: #451a03 !important;
  color: #fbbf24 !important;
}

/* Footer (dark mode) */
html.dark footer {
  background-color: #0f172a !important;
  color: #94a3b8 !important;
  border-top-color: #1e293b !important;
}
html.dark footer a {
  color: #60a5fa !important;
}
html.dark footer h3,
html.dark footer h4,
html.dark footer span {
  color: #e2e8f0 !important;
}

/* Logo text in dark mode */
html.dark .font-display.text-dark,
html.dark span.text-dark {
  color: #f1f5f9 !important;
}

/* Hover states (dark mode) */
html.dark .hover\:bg-gray-100:hover {
  background-color: #334155 !important;
}
html.dark .hover\:text-primary:hover {
  color: #60a5fa !important;
}
html.dark .hover\:border-primary:hover {
  border-color: #3b82f6 !important;
}
html.dark .hover\:text-gray-700:hover {
  color: #e2e8f0 !important;
}

/* Chart.js canvas containers */
html.dark canvas {
  filter: none;
}

/* Scrollbar (dark mode) */
html.dark ::-webkit-scrollbar {
  width: 8px;
}
html.dark ::-webkit-scrollbar-track {
  background: #1e293b;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}
html.dark ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ============================================================
   SPRINT 1: Typography — Inter como font-body
   Rajdhani queda solo para labels uppercase y font-display queda Orbitron
   ============================================================ */

/* Override global: body usa Inter, no Rajdhani */
body,
.font-body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Rajdhani se mantiene disponible como clase utilitaria para labels */
.font-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Tamaño mínimo legible para texto descriptivo en cards */
.glass p,
.glass span:not(.badge):not([class*="text-xs"]):not([class*="font-bold"]),
.dash-card p,
.dash-card span:not([class*="text-xs"]):not([class*="font-bold"]) {
  font-size: 0.9375rem; /* 15px en vez de 14px (text-sm) */
  line-height: 1.6;
}

/* Aumentar contraste de texto secundario en modo claro */
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4B5563; }

/* Dark mode: texto secundario más legible */
.dark .glass,
.dark .dash-card {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .text-dark { color: #F1F5F9; }
.dark .text-gray-700 { color: #CBD5E1; }
.dark .text-gray-600 { color: #94A3B8; }
.dark .text-gray-500 { color: #94A3B8; }
.dark .text-gray-400 { color: #94A3B8; }

/* Chart.js labels en charts del admin: usar Inter */

/* ============================================================
   Reduced motion preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hover-lift { transition: none; }
  .animate-fade-in { animation: none; }
  .pulse-soft { animation: none; }
}

/* ============================================================
   Brain Suite Accessibility — WCAG 2.5.5 Touch Target ≥48px
   These CSS classes back Tailwind arbitrary-value classes used
   in games.html / brain_suite_insights.html. The compiled
   styles.css does not include JIT arbitrary values so we
   provide them here.
   ============================================================ */

/* Minimum touch target sizes */
.min-h-\[48px\] { min-height: 48px; }
.min-w-\[48px\] { min-width: 48px; }
.min-h-\[44px\] { min-height: 44px; }
.min-w-\[44px\] { min-width: 44px; }
.min-h-\[80px\] { min-height: 80px; }
.min-h-\[224px\] { min-height: 224px; }
.min-h-\[32px\] { min-height: 32px; }

/* Simon Says stimulus text size */
.text-\[10rem\] { font-size: 10rem; line-height: 1; }

/* Overflow scroll for Path Finder maze on small screens */
.overflow-x-auto { overflow-x: auto; }

/* focus-visible ring utilities (Tailwind v3 JIT not in compiled snapshot)
   Note: the global rule at line ~113 already covers button:focus-visible with
   outline. These classes reinforce it when the element suppresses outline. */
.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* When focus-visible:outline-none + ring-2 + ring-primary + ring-offset-2 are
   all applied together the browser needs box-shadow for the ring. The global
   rule uses outline; elements that set outline:none need box-shadow fallback. */
.focus-visible\:ring-2:focus-visible {
  box-shadow: 0 0 0 2px #046BD2;
}

.focus-visible\:ring-offset-1:focus-visible {
  box-shadow: 0 0 0 1px #fff, 0 0 0 3px #046BD2;
}

.focus-visible\:ring-offset-2:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #046BD2;
}
