/*
 * W/B Investments — local utility stylesheet.
 * Hand-built subset of Tailwind covering exactly the classes used in the
 * templates, so the app loads instantly with NO external CDN dependency.
 * If you later add new utility classes in templates, add them here too
 * (or switch to a compiled Tailwind build for production).
 */

/* ---- minimal reset ---- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1 { font-size: inherit; font-weight: inherit; margin: 0; }

/* ---- layout ---- */
.flex { display: flex; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }
.grid { display: grid; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.items-end { align-items: flex-end; }
.self-end { align-self: flex-end; }
.min-h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.whitespace-nowrap { white-space: nowrap; }
.w-full { width: 100%; }
.w-28 { width: 7rem; }

/* max-width */
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-5xl { max-width: 64rem; }

/* ---- spacing ---- */
.p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pb-3 { padding-bottom: .75rem; }
.pl-5 { padding-left: 1.25rem; }
.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-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-6 { margin-top: 1.5rem; }
.my-1 { margin-top: .25rem; margin-bottom: .25rem; }
.ml-2 { margin-left: .5rem; }

/* ---- typography ---- */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.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-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: .025em; }
.leading-none { line-height: 1; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.list-disc { list-style: disc; }
.opacity-80 { opacity: .8; }
.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }

/* ---- borders / radius / shadow ---- */
.border { border: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-amber-200 { border-color: #fde68a; }
.divide-y > * + * { border-top: 1px solid #e2e8f0; }
.rounded { border-radius: .25rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06); }

/* ---- colours (backgrounds) ---- */
.bg-white { background:#fff; }
.bg-slate-50 { background:#f8fafc; } .bg-slate-100 { background:#f1f5f9; }
.bg-slate-200 { background:#e2e8f0; } .bg-slate-700 { background:#334155; }
.bg-slate-800 { background:#1e293b; }
.bg-teal-700 { background:#0f766e; } .bg-teal-800 { background:#115e59; }
.bg-amber-50 { background:#fffbeb; } .bg-amber-100 { background:#fef3c7; }
.bg-red-100 { background:#fee2e2; }
.bg-green-100 { background:#dcfce7; }
.bg-blue-100 { background:#dbeafe; }
.bg-purple-100 { background:#f3e8ff; }

/* ---- colours (text) ---- */
.text-white { color:#fff; }
.text-slate-400 { color:#94a3b8; } .text-slate-500 { color:#64748b; }
.text-slate-600 { color:#475569; } .text-slate-700 { color:#334155; }
.text-slate-800 { color:#1e293b; }
.text-teal-700 { color:#0f766e; }
.text-amber-600 { color:#d97706; } .text-amber-700 { color:#b45309; } .text-amber-800 { color:#92400e; }
.text-red-500 { color:#ef4444; } .text-red-600 { color:#dc2626; }
.text-red-700 { color:#b91c1c; } .text-red-800 { color:#991b1b; }
.text-green-700 { color:#15803d; } .text-green-800 { color:#166534; }
.text-blue-700 { color:#1d4ed8; }
.text-purple-700 { color:#7e22ce; }

/* ---- hover states ---- */
.hover\:bg-slate-50:hover { background:#f8fafc; }
.hover\:bg-slate-200:hover { background:#e2e8f0; }
.hover\:bg-slate-300:hover { background:#cbd5e1; }
.hover\:bg-slate-800:hover { background:#1e293b; }
.hover\:bg-slate-900:hover { background:#0f172a; }
.hover\:bg-teal-800:hover { background:#115e59; }
.hover\:bg-teal-900:hover { background:#134e4a; }

/* ---- body base colours (from base.html) ---- */
.text-slate-800 { color:#1e293b; }

/* ---- responsive: sm ≥640px ---- */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

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