/**
 * Compatibility layer for Tailwind v3-style utilities used in templates
 * while the site still ships Tailwind v2.2 built CSS.
 * Loaded after tailwind-built.css / webnut-controls.css.
 */

/* Arbitrary font sizes */
.text-\[10px\] { font-size: 10px; line-height: 1.25; }
.text-\[11px\] { font-size: 11px; line-height: 1.3; }
.text-\[9px\] { font-size: 9px; line-height: 1.2; }

/* Fractional spacing used heavily on mobile */
.p-2\.5 { padding: 0.625rem; }
.p-3\.5 { padding: 0.875rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.pt-0\.5 { padding-top: 0.125rem; }
.pt-1\.5 { padding-top: 0.375rem; }
.pb-2\.5 { padding-bottom: 0.625rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.gap-0\.5 { gap: 0.125rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2\.5 { gap: 0.625rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.375rem * var(--tw-space-y-reverse)); }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.625rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.625rem * var(--tw-space-y-reverse)); }

/* Line clamp */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.line-clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

/* Backdrop blur (used with glass panels) */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* White / black opacity utilities */
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/30 { background-color: rgba(255, 255, 255, 0.3); }
.bg-white\/70 { background-color: rgba(255, 255, 255, 0.7); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\:bg-white\/30:hover { background-color: rgba(255, 255, 255, 0.3); }
.hover\:bg-white\/80:hover { background-color: rgba(255, 255, 255, 0.8); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.border-white\/40 { border-color: rgba(255, 255, 255, 0.4); }
.border-white\/45 { border-color: rgba(255, 255, 255, 0.45); }
.border-white\/50 { border-color: rgba(255, 255, 255, 0.5); }
.hover\:border-white\/50:hover { border-color: rgba(255, 255, 255, 0.5); }
.ring-white\/20 { --tw-ring-color: rgba(255, 255, 255, 0.2); }
.text-white\/25 { color: rgba(255, 255, 255, 0.25); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.hover\:text-white:hover { color: #fff; }
.bg-black\/25 { background-color: rgba(0, 0, 0, 0.25); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }

/* Blue / indigo / yellow / slate translucent text & borders */
.text-blue-100\/90 { color: rgba(219, 234, 254, 0.9); }
.text-blue-200\/80 { color: rgba(191, 219, 254, 0.8); }
.text-blue-200\/85 { color: rgba(191, 219, 254, 0.85); }
.text-blue-200\/90 { color: rgba(191, 219, 254, 0.9); }
.text-blue-200\/95 { color: rgba(191, 219, 254, 0.95); }
.text-yellow-200\/90 { color: rgba(253, 230, 138, 0.9); }
.text-yellow-200\/95 { color: rgba(253, 230, 138, 0.95); }
.border-blue-400\/30 { border-color: rgba(96, 165, 250, 0.3); }
.border-indigo-100 { border-color: #e0e7ff; }
.bg-indigo-50\/40 { background-color: rgba(238, 242, 255, 0.4); }
.bg-indigo-50\/50 { background-color: rgba(238, 242, 255, 0.5); }
.bg-indigo-50\/80 { background-color: rgba(238, 242, 255, 0.8); }
.hover\:bg-indigo-50\/80:hover { background-color: rgba(238, 242, 255, 0.8); }
.text-indigo-950 { color: #1e1b4b; }
.text-blue-950 { color: #172554; }
.focus-visible\:ring-yellow-300\/80:focus-visible { --tw-ring-color: rgba(253, 224, 71, 0.8); }
.focus\:ring-white\/30:focus { --tw-ring-color: rgba(255, 255, 255, 0.3); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3); }

/* Emerald / teal / violet (missing from many Tailwind v2 builds) */
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-600 { background-color: #059669; }
.hover\:bg-emerald-50:hover { background-color: #ecfdf5; }
.hover\:bg-emerald-200:hover { background-color: #a7f3d0; }
.hover\:bg-emerald-700:hover { background-color: #047857; }
.hover\:text-emerald-700:hover { color: #047857; }
.text-emerald-100 { color: #d1fae5; }
.text-emerald-200 { color: #a7f3d0; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-emerald-900 { color: #064e3b; }
.border-emerald-100 { border-color: #d1fae5; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-emerald-300\/50 { border-color: rgba(110, 231, 183, 0.5); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.hover\:bg-emerald-500\/20:hover { background-color: rgba(16, 185, 129, 0.2); }
.border-emerald-400\/25 { border-color: rgba(52, 211, 153, 0.25); }
.ring-emerald-200\/80 { --tw-ring-color: rgba(167, 243, 208, 0.8); }
.text-emerald-100\/80 { color: rgba(209, 250, 229, 0.8); }
.text-emerald-200\/95 { color: rgba(167, 243, 208, 0.95); }
.text-emerald-300\/90 { color: rgba(110, 231, 183, 0.9); }
.bg-teal-50 { background-color: #f0fdfa; }
.bg-teal-600 { background-color: #0d9488; }
.text-teal-700 { color: #0f766e; }
.bg-violet-50 { background-color: #f5f3ff; }
.bg-violet-100 { background-color: #ede9fe; }
.bg-violet-600 { background-color: #7c3aed; }
.text-violet-700 { color: #6d28d9; }
.text-violet-900 { color: #4c1d95; }
.text-sky-300\/90 { color: rgba(125, 211, 252, 0.9); }
.text-amber-300\/90 { color: rgba(252, 211, 77, 0.9); }
.bg-amber-50 { background-color: #fffbeb; }
.border-amber-200 { border-color: #fde68a; }
.text-amber-700 { color: #b45309; }
.text-amber-900 { color: #78350f; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.bg-slate-100 { background-color: #f1f5f9; }

/* Ring helpers used with icons */
.ring-1 { box-shadow: 0 0 0 1px var(--tw-ring-color, rgba(255, 255, 255, 0.2)); }

/* Sticky offset used on job sidebar */
.top-24 { top: 6rem; }

/* Safe max-height arbitrary used in search dropdown */
.max-h-\[min\(28rem\,70vh\)\] { max-height: min(28rem, 70vh); }

/* Arbitrary min-widths used on filter selects (missing from TW v2 build) */
.min-w-\[5rem\] { min-width: 5rem; }
.min-w-\[6rem\] { min-width: 6rem; }
.min-w-\[7rem\] { min-width: 7rem; }
.min-w-\[8rem\] { min-width: 8rem; }
.min-w-\[9rem\] { min-width: 9rem; }
.min-w-\[10rem\] { min-width: 10rem; }
.min-w-\[12rem\] { min-width: 12rem; }

/*
 * Tailwind Forms styles native <select> with appearance:none + SVG chevron and
 * padding-right: 2.5rem. Utility classes like px-2 / px-3 then reset padding-right
 * to ~0.5–0.75rem, so the label sits under the icon. Keep a chevron gutter.
 */
select:not([multiple]):not([size]) {
  padding-right: 2.25rem !important;
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.25em 1.25em;
}
