/*
 * Local compatibility layer for residual utility markup.
 *
 * This file replaces the runtime portion previously supplied by CDN Tailwind.
 * It is intentionally scoped to the utility tokens still present in legacy
 * templates and is loaded before component/page CSS so semantic owners win.
 */

.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-w-max { min-width: max-content; }
.shrink-0 { flex-shrink: 0; }
.self-start { align-self: flex-start; }
.self-center { align-self: center; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.whitespace-nowrap { white-space: nowrap; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }

/* Tailwind container equivalent used by the header and legacy page markup. */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}

@media (min-width: 768px) {
  .container { max-width: 768px; }
}

@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

@media (min-width: 1536px) {
  .container { max-width: 1536px; }
}

.gap-1 { gap: .25rem; }
.gap-1\.5 { gap: .375rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: .25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: .375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: .5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: .625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: .5rem; }

.p-1\.5 { padding: .375rem; }
.p-2 { padding: .5rem; }
.p-2\.5 { padding: .625rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-1\.5 { padding-inline: .375rem; }
.px-2 { padding-inline: .5rem; }
.px-2\.5 { padding-inline: .625rem; }
.px-3 { padding-inline: .75rem; }
.px-4 { padding-inline: 1rem; }
.py-0\.5 { padding-block: .125rem; }
.py-1 { padding-block: .25rem; }
.py-1\.5 { padding-block: .375rem; }
.py-2 { padding-block: .5rem; }
.py-2\.5 { padding-block: .625rem; }
.py-3 { padding-block: .75rem; }
.py-4 { padding-block: 1rem; }
.pb-1 { padding-bottom: .25rem; }
.pb-2 { padding-bottom: .5rem; }
.pb-3 { padding-bottom: .75rem; }
.pt-2 { padding-top: .5rem; }
.pt-3 { padding-top: .75rem; }
.pt-4 { padding-top: 1rem; }
.pl-4 { padding-left: 1rem; }
.lg\:pl-6 { padding-left: 1.5rem; }
.m-auto, .mx-auto { margin-inline: auto; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-auto { margin-top: auto; }

.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-relaxed { line-height: 1.625; }
.tracking-wider { letter-spacing: .05em; }
.opacity-10 { opacity: .1; }
.opacity-20 { opacity: .2; }
.opacity-60 { opacity: .6; }
.transition { transition: all .15s ease-in-out; }
.transition-all { transition: all .15s ease-in-out; }
.transition-colors { transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out; }

.rounded { border-radius: .25rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t { border-top-left-radius: .25rem; border-top-right-radius: .25rem; }
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06); }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }

.bg-white { background-color: #fff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-850 { background-color: #172033; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-600 { background-color: #2563eb; }
.bg-amber-500 { background-color: #f59e0b; }
.bg-emerald-500 { background-color: #10b981; }
.bg-rose-500 { background-color: #f43f5e; }
.bg-emerald-500\/10 { background-color: rgb(16 185 129 / .1); }
.bg-emerald-500\/20 { background-color: rgb(16 185 129 / .2); }
.bg-blue-500\/10 { background-color: rgb(59 130 246 / .1); }
.bg-amber-500\/10 { background-color: rgb(245 158 11 / .1); }
.bg-rose-950\/20 { background-color: rgb(76 5 25 / .2); }
.bg-rose-500\/10 { background-color: rgb(244 63 94 / .1); }
.bg-emerald-500\/40 { background-color: rgb(16 185 129 / .4); }
.bg-emerald-500\/50 { background-color: rgb(16 185 129 / .5); }
.bg-emerald-500\/60 { background-color: rgb(16 185 129 / .6); }
.bg-rose-500\/60 { background-color: rgb(244 63 94 / .6); }
.bg-amber-600 { background-color: #d97706; }
.text-white { color: #fff; }
.text-gray-500, .text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900, .text-slate-950 { color: #0f172a; }
.text-slate-455, .text-slate-655 { color: #475569; }
.text-slate-850, .text-slate-955 { color: #0f172a; }
.text-blue-500, .text-blue-600 { color: #2563eb; }
.text-emerald-500, .text-emerald-600 { color: #059669; }
.text-amber-500, .text-amber-600 { color: #d97706; }
.text-rose-500, .text-rose-600 { color: #e11d48; }
.border-slate-50 { border-color: #f8fafc; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-150 { border-color: #e7edf3; }
.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1e293b; }
.border-emerald-500\/20 { border-color: rgb(16 185 129 / .2); }
.border-blue-500\/20 { border-color: rgb(59 130 246 / .2); }
.border-rose-500\/20 { border-color: rgb(244 63 94 / .2); }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top: 1px solid #f1f5f9; }
.divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: #f1f5f9; }
.object-contain { object-fit: contain; }
.h-1\.5 { height: .375rem; }
.h-2 { height: .5rem; }
.h-2\.5 { height: .625rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.h-32 { height: 8rem; }
.h-36 { height: 9rem; }
.h-44 { height: 11rem; }
.h-56 { height: 14rem; }
.h-60 { height: 15rem; }
.h-64 { height: 16rem; }
.w-1\.5 { width: .375rem; }
.w-2\.5 { width: .625rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }

.hover\:underline:hover { text-decoration: underline; }
.hover\:opacity-90:hover { opacity: .9; }
.hover\:bg-slate-200:hover { background-color: #e2e8f0; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:text-sm { font-size: .875rem; line-height: 1.25rem; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .md\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:flex-row { flex-direction: row; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:border-t-0 { border-top-width: 0; }
    .lg\:border-l { border-left-width: 1px; border-left-style: solid; }
    .lg\:pt-0 { padding-top: 0; }
    .lg\:text-sm { font-size: .875rem; line-height: 1.25rem; }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

body.dark-mode .dark\:text-white { color: #fff; }
body.dark-mode .dark\:text-gray-200 { color: #e5e7eb; }
body.dark-mode .dark\:text-gray-400,
body.dark-mode .dark\:text-slate-400 { color: #94a3b8; }
body.dark-mode .dark\:text-slate-200 { color: #e2e8f0; }
body.dark-mode .dark\:text-slate-300 { color: #cbd5e1; }
body.dark-mode .dark\:text-slate-500 { color: #64748b; }
body.dark-mode .dark\:bg-slate-700 { background-color: #334155; }
body.dark-mode .dark\:bg-slate-800 { background-color: #1e293b; }
body.dark-mode .dark\:bg-slate-850 { background-color: #172033; }
body.dark-mode .dark\:bg-slate-800\/50 { background-color: rgb(30 41 59 / .5); }
body.dark-mode .dark\:bg-slate-800\/30 { background-color: rgb(30 41 59 / .3); }
body.dark-mode .dark\:bg-emerald-950\/20 { background-color: rgb(2 44 34 / .2); }
body.dark-mode .dark\:bg-rose-950\/20 { background-color: rgb(76 5 25 / .2); }
body.dark-mode .dark\:border-slate-700 { border-color: #334155; }
body.dark-mode .dark\:border-slate-800 { border-color: #1e293b; }
body.dark-mode .dark\:divide-slate-800 > :not([hidden]) ~ :not([hidden]) { border-color: #1e293b; }
body.dark-mode .dark\:hover\:bg-slate-700:hover { background-color: #334155; }
body.dark-mode .dark\:hover\:text-white:hover { color: #fff; }

/* Additional native equivalents for visual utilities still present in legacy markup. */
.flex-1 { flex: 1 1 0%; }
.justify-around { justify-content: space-around; }
.tracking-wide { letter-spacing: .025em; }
.duration-200 { transition-duration: .2s; }
.duration-300 { transition-duration: .3s; }
.font-black { font-weight: 900; }
.underline { text-decoration-line: underline; }
.w-px { width: 1px; }
.text-gray-700 { color: #374151; }
.text-blue-800 { color: #1e40af; }
.text-emerald-800 { color: #065f46; }
.text-rose-800 { color: #9f1239; }
.text-green-600 { color: #16a34a; }
.text-purple-600 { color: #9333ea; }
.text-\[\#666\] { color: #666; }
.border-slate-300 { border-color: #cbd5e1; }
.hover\:bg-amber-600:hover { background-color: #d97706; }
.hover\:border-slate-400:hover { border-color: #94a3b8; }
.hover\:opacity-50:hover { opacity: .5; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-blue-700:hover { color: #1d4ed8; }
.hover\:text-slate-500:hover { color: #64748b; }
.hover\:text-slate-900:hover { color: #0f172a; }
.h-14 { height: 3.5rem; }
.h-40 { height: 10rem; }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .sm\:col-span-1 { grid-column: span 1 / span 1; }
}

@media (min-width: 768px) {
    .md\:inline-block { display: inline-block; }
    .md\:flex { display: flex; }
    .md\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .md\:grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}

/* Final visual tokens found by the theme-wide utility audit. */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.h-3\.5 { height: .875rem; }
.h-80 { height: 20rem; }
.pb-1\.5 { padding-bottom: .375rem; }
.pb-4 { padding-bottom: 1rem; }
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: .875rem; }
.border-4 { border-width: 4px; border-style: solid; }
.border-dashed { border-style: dashed; }
.border-t-slate-200 { border-top-color: #e2e8f0; }
.bg-amber-500\/20 { background-color: rgb(245 158 11 / .2); }
.bg-blue-100 { background-color: #dbeafe; }
.bg-emerald-500\/70 { background-color: rgb(16 185 129 / .7); }
.bg-green-500\/10 { background-color: rgb(34 197 94 / .1); }
.bg-rose-500\/20 { background-color: rgb(244 63 94 / .2); }
.bg-rose-500\/30 { background-color: rgb(244 63 94 / .3); }
.bg-rose-500\/50 { background-color: rgb(244 63 94 / .5); }
.bg-rose-500\/70 { background-color: rgb(244 63 94 / .7); }
.bg-slate-400 { background-color: #94a3b8; }
.hover\:text-blue-100:hover { color: #dbeafe; }
.text-slate-550,
.text-slate-555 { color: #64748b; }

body.dark-mode .dark\:bg-\[\#1a2332\] { background-color: #1a2332; }
body.dark-mode .dark\:bg-blue-950\/40 { background-color: rgb(23 37 84 / .4); }
body.dark-mode .dark\:bg-slate-800\/40 { background-color: rgb(30 41 59 / .4); }
body.dark-mode .dark\:border-slate-800\/40 { border-color: rgb(30 41 59 / .4); }
body.dark-mode .dark\:border-slate-850 { border-color: #172033; }
body.dark-mode .dark\:divide-slate-800\/60 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(30 41 59 / .6); }
body.dark-mode .dark\:hover\:text-slate-400:hover { color: #94a3b8; }
body.dark-mode .dark\:opacity-20 { opacity: .2; }
body.dark-mode .dark\:text-blue-300 { color: #93c5fd; }
body.dark-mode .dark\:text-blue-400 { color: #60a5fa; }
body.dark-mode .dark\:text-emerald-400 { color: #34d399; }
body.dark-mode .dark\:text-purple-400 { color: #c084fc; }
body.dark-mode .dark\:text-rose-400 { color: #fb7185; }
body.dark-mode .dark\:text-rose-455 { color: #fb7185; }
body.dark-mode .dark\:text-slate-600 { color: #475569; }
