/* Static replacement for the Tailwind Play CDN, covering only the classes used by
   the Fretboard & Mode Explorer page (including classes generated in JavaScript).
   If you add new Tailwind classes to the page, add matching rules here. */

/* ---- Base reset (subset of Tailwind "preflight") ---- */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
button { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit;
         margin: 0; padding: 0; background-color: transparent; background-image: none;
         -webkit-appearance: button; text-transform: none; cursor: pointer; }
svg { display: block; vertical-align: middle; }

/* ---- Layout ---- */
.relative { position: relative; }
.absolute { position: absolute; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.top-4 { top: 1rem; }
.-top-3 { top: -0.75rem; }
.left-0 { left: 0; }
.right-4 { right: 1rem; }
.z-10 { z-index: 10; }

/* ---- Spacing ---- */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* ---- Typography ---- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-\[10px\] { font-size: 10px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.text-center { text-align: center; }

/* ---- Colors ---- */
.text-white { color: #ffffff; }
.text-transparent { color: transparent; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-red-400 { color: #f87171; }
.text-emerald-400 { color: #34d399; }
.text-amber-300 { color: #fcd34d; }
.fill-slate-500 { fill: #64748b; }

.bg-red-500 { background-color: #ef4444; }
.bg-slate-700 { background-color: #334155; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-700\/50 { background-color: rgba(51, 65, 85, 0.5); }
.bg-slate-800\/50 { background-color: rgba(30, 41, 59, 0.5); }
.bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1); }
.bg-gradient-to-r { background-image: linear-gradient(to right, #60a5fa, #34d399); }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }

/* ---- Borders, radius, shadows ---- */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-slate-600 { border-color: #475569; }
.border-slate-700 { border-color: #334155; }
.border-red-400\/50 { border-color: rgba(248, 113, 113, 0.5); }
.border-slate-600\/50 { border-color: rgba(71, 85, 105, 0.5); }
.border-amber-500\/40 { border-color: rgba(245, 158, 11, 0.4); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.drop-shadow-md { filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06)); }

/* ---- Interaction, opacity, transitions ---- */
.cursor-pointer { cursor: pointer; }
.cursor-crosshair { cursor: crosshair; }
.select-none { -webkit-user-select: none; user-select: none; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.transition-colors { transition-property: color, background-color, border-color, fill, stroke;
                     transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity;
                      transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.duration-300 { transition-duration: 300ms; }

/* ---- Hover ---- */
.hover\:bg-slate-600:hover { background-color: #475569; }
.hover\:bg-slate-700:hover { background-color: #334155; }
.hover\:text-white:hover { color: #ffffff; }

/* ---- Visibility (kept late so it wins over display utilities) ---- */
.hidden { display: none; }

/* ---- Responsive: md (>=768px) ---- */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:text-left { text-align: left; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Responsive: lg (>=1024px) ---- */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
