/* Self-hosted replacement for the Tailwind CDN, scoped to the utilities map.html uses. */

/* Minimal preflight */
*, ::before, ::after { box-sizing: border-box; border: 0 solid #e5e7eb; }
h1, h4, p { margin: 0; font-size: inherit; font-weight: inherit; }
button { font: inherit; color: inherit; background: transparent; padding: 0; cursor: pointer; }
svg { display: block; vertical-align: middle; }

/* Layout */
.flex { display: flex; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.z-20 { z-index: 20; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.min-h-0 { min-height: 0; }

/* Sizing */
.w-full { width: 100%; }
.h-screen { height: 100vh; }
.h-1\/2 { height: 50%; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.mt-1 { margin-top: .25rem; }
.mb-1 { margin-bottom: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }

/* Typography */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-wide { letter-spacing: .025em; }
.leading-relaxed { line-height: 1.625; }

/* Colors */
.bg-white { background-color: #fff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.text-white { color: #fff; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-800 { color: #1e293b; }
.text-blue-600 { color: #2563eb; }

/* Borders & effects */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-400 { border-color: #94a3b8; }
.border-slate-800 { border-color: #1e293b; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
.cursor-pointer { cursor: pointer; }

/* Transitions */
.transition { transition-property: color, background-color, border-color, box-shadow, transform; transition-duration: .15s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.transition-all { transition-property: all; transition-duration: .15s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: .15s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.duration-200 { transition-duration: .2s; }
.ease-in-out { transition-timing-function: cubic-bezier(.4, 0, .2, 1); }

/* States */
.hover\:bg-slate-700:hover { background-color: #334155; }
.hover\:border-slate-400:hover { border-color: #94a3b8; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1); }
.group:hover .group-hover\:text-blue-600 { color: #2563eb; }

/* Responsive */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:w-1\/3 { width: 33.333333%; }
    .md\:w-2\/3 { width: 66.666667%; }
    .md\:h-auto { height: auto; }
}
@media (min-width: 1024px) {
    .lg\:w-1\/4 { width: 25%; }
    .lg\:w-3\/4 { width: 75%; }
}
