/*
 * tw-compat.css
 * Contains only the utility classes used by account.html and join-family.html.
 */

/* ── Display ──────────────────────────────── */
.block  { display: block; }
.flex   { display: flex; }
.inline-flex { display: inline-flex; }
.grid   { display: grid; }
.hidden { display: none !important; }

/* ── Position ─────────────────────────────── */
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0    { top: 0; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.left-1\/2 { left: 50%; }
.bottom-6 { bottom: 1.5rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.-translate-x-1\/2 { transform: translateX(-50%); }

/* ── Flex / Grid ──────────────────────────── */
.flex-col     { flex-direction: column; }
.flex-1       { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.items-start   { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1   { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2   { gap: 0.5rem; }
.gap-3   { gap: 0.75rem; }
.gap-4   { gap: 1rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Space-y ──────────────────────────────── */
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2    > * + * { margin-top: 0.5rem; }
.space-y-3    > * + * { margin-top: 0.75rem; }
.space-y-4    > * + * { margin-top: 1rem; }
.space-y-5    > * + * { margin-top: 1.25rem; }

/* ── Sizing ───────────────────────────────── */
.w-full { width: 100%; }
.w-5    { width: 1.25rem; }
.w-7    { width: 1.75rem; }
.w-10   { width: 2.5rem; }
.w-14   { width: 3.5rem; }
.w-16   { width: 4rem; }
.h-5    { height: 1.25rem; }
.h-7    { height: 1.75rem; }
.h-10   { height: 2.5rem; }
.h-14   { height: 3.5rem; }
.h-16   { height: 4rem; }
.max-w-md  { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-h-80  { max-height: 20rem; }
.min-w-0   { min-width: 0; }
.min-h-screen { min-height: 100vh; min-height: 100dvh; }

/* ── Margin ───────────────────────────────── */
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.-ml-1   { margin-left: -0.25rem; }
.-mt-7   { margin-top: -1.75rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1    { margin-top: 0.25rem; }
.mt-2    { margin-top: 0.5rem; }
.mt-3    { margin-top: 0.75rem; }
.mt-4    { margin-top: 1rem; }
.mb-1    { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2    { margin-bottom: 0.5rem; }
.mb-3    { margin-bottom: 0.75rem; }
.mb-4    { margin-bottom: 1rem; }
.mb-5    { margin-bottom: 1.25rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-8    { margin-bottom: 2rem; }

/* ── Padding ──────────────────────────────── */
.p-2  { padding: 0.5rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.px-1   { padding-left: 0.25rem;  padding-right: 0.25rem; }
.px-2   { padding-left: 0.5rem;   padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3   { padding-left: 0.75rem;  padding-right: 0.75rem; }
.px-4   { padding-left: 1rem;     padding-right: 1rem; }
.px-5   { padding-left: 1.25rem;  padding-right: 1.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.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; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3   { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-4   { padding-top: 1rem;     padding-bottom: 1rem; }
.py-6   { padding-top: 1.5rem;   padding-bottom: 1.5rem; }
.py-8   { padding-top: 2rem;     padding-bottom: 2rem; }
.py-10  { padding-top: 2.5rem;   padding-bottom: 2.5rem; }
.pb-2   { padding-bottom: 0.5rem; }
.pb-5   { padding-bottom: 1.25rem; }
.pb-10  { padding-bottom: 2.5rem; }
.pb-16  { padding-bottom: 4rem; }
.pt-2   { padding-top: 0.5rem; }
.pt-3   { padding-top: 0.75rem; }
.pt-4   { padding-top: 1rem; }
.pr-1   { padding-right: 0.25rem; }

/* ── Typography ───────────────────────────── */
.text-xs   { font-size: 0.75rem;   line-height: 1rem; }
.text-sm   { font-size: 0.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-3xl  { font-size: 1.875rem;  line-height: 2.25rem; }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}
.text-left   { text-align: left; }
.text-center { text-align: center; }
.uppercase       { text-transform: uppercase; }
.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-snug    { line-height: 1.375; }
.truncate        { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.break-all       { word-break: break-all; }
.resize-none     { resize: none; }

/* ── Borders ──────────────────────────────── */
.border   { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.rounded-lg  { border-radius: 0.5rem; }
.rounded-xl  { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Border colors */
.border-white      { border-color: #ffffff; }
.border-slate-100  { border-color: #f1f5f9; }
.border-slate-200  { border-color: #e2e8f0; }
.border-slate-300  { border-color: #cbd5e1; }
.border-gray-200   { border-color: #e5e7eb; }
.border-purple-100 { border-color: #f3e8ff; }
.border-purple-200 { border-color: #e9d5ff; }
.border-red-200    { border-color: #fecaca; }

/* ── Shadows ──────────────────────────────── */
.shadow    { box-shadow: 0 1px 3px 0 rgb(0 0 0/.10), 0 1px 2px -1px rgb(0 0 0/.10); }
.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/.10), 0 2px 4px -2px rgb(0 0 0/.10); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0/.10), 0 4px 6px -4px rgb(0 0 0/.10); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0/.10), 0 8px 10px -6px rgb(0 0 0/.10); }

/* ── Opacity ──────────────────────────────── */
.opacity-0  { opacity: 0; }
.opacity-40 { opacity: 0.4; }
.opacity-75 { opacity: 0.75; }

/* ── Overflow / Misc ──────────────────────── */
.overflow-hidden  { overflow: hidden; }
.overflow-y-auto  { overflow-y: auto; }
.outline-none     { outline: 2px solid transparent; outline-offset: 2px; }
.object-cover     { object-fit: cover; }
.cursor-pointer   { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.select-none      { user-select: none; -webkit-user-select: none; }
.pointer-events-none { pointer-events: none; }

/* ── Transitions ──────────────────────────── */
.transition {
  transition-property: color, background-color, border-color, opacity,
    box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color;
  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);
  transition-duration: 150ms;
}

/* ── Background Colors ────────────────────── */
.bg-white      { background-color: #ffffff; }
.bg-slate-50   { background-color: #f8fafc; }
.bg-slate-100  { background-color: #f1f5f9; }
.bg-blue-100   { background-color: #dbeafe; }
.bg-blue-600   { background-color: #2563eb; }
.bg-emerald-600 { background-color: #059669; }
.bg-green-100  { background-color: #dcfce7; }
.bg-green-500  { background-color: #22c55e; }
.bg-amber-50   { background-color: #fffbeb; }
.bg-amber-100  { background-color: #fef3c7; }
.bg-sky-100    { background-color: #e0f2fe; }
.bg-purple-50  { background-color: #faf5ff; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-purple-600 { background-color: #9333ea; }
.bg-red-600    { background-color: #dc2626; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-black\/40  { background-color: rgba(0, 0, 0, 0.4); }

/* Gradient */
.bg-gradient-to-r {
  background-image: linear-gradient(
    to right,
    var(--tw-gradient-from, transparent),
    var(--tw-gradient-to, transparent)
  );
}
.from-blue-500   { --tw-gradient-from: #3b82f6; }
.to-emerald-500  { --tw-gradient-to:   #10b981; }

/* ── Text Colors ──────────────────────────── */
.text-white      { color: #ffffff; }
.text-slate-300  { color: #cbd5e1; }
.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-slate-900  { color: #0f172a; }
.text-gray-400   { color: #9ca3af; }
.text-gray-500   { color: #6b7280; }
.text-gray-600   { color: #4b5563; }
.text-gray-700   { color: #374151; }
.text-gray-800   { color: #1f2937; }
.text-blue-600   { color: #2563eb; }
.text-emerald-600 { color: #059669; }
.text-green-500  { color: #22c55e; }
.text-green-600  { color: #16a34a; }
.text-amber-500  { color: #f59e0b; }
.text-amber-600  { color: #d97706; }
.text-sky-500    { color: #0ea5e9; }
.text-purple-400 { color: #c084fc; }
.text-purple-600 { color: #9333ea; }
.text-red-400    { color: #f87171; }
.text-red-500    { color: #ef4444; }
.text-red-600    { color: #dc2626; }
.text-orange-500 { color: #f97316; }

/* ── Hover States ─────────────────────────── */
.hover\:bg-blue-700:hover    { background-color: #1d4ed8; }
.hover\:bg-emerald-700:hover { background-color: #047857; }
.hover\:bg-gray-50:hover     { background-color: #f9fafb; }
.hover\:bg-green-600:hover   { background-color: #16a34a; }
.hover\:bg-purple-50:hover   { background-color: #faf5ff; }
.hover\:bg-purple-700:hover  { background-color: #7e22ce; }
.hover\:bg-red-50:hover      { background-color: #fef2f2; }
.hover\:bg-red-700:hover     { background-color: #b91c1c; }
.hover\:bg-slate-100:hover   { background-color: #f1f5f9; }
.hover\:bg-slate-200:hover   { background-color: #e2e8f0; }
.hover\:bg-slate-50:hover    { background-color: #f8fafc; }
.hover\:text-gray-600:hover  { color: #4b5563; }
.hover\:text-purple-600:hover { color: #9333ea; }
.hover\:text-purple-800:hover { color: #6b21a8; }
.hover\:text-red-500:hover   { color: #ef4444; }
.hover\:text-red-600:hover   { color: #dc2626; }
.hover\:text-slate-600:hover { color: #475569; }
.hover\:text-slate-700:hover { color: #334155; }
.hover\:text-slate-900:hover { color: #0f172a; }

/* ── Focus States ─────────────────────────── */
.focus\:outline-none:focus   { outline: none; }
/* ring-2 is always paired with a ring-color class; the color class applies the shadow */
.focus\:ring-2:focus         { /* width handled by paired color class */ }
.focus\:ring-blue-400:focus  { box-shadow: 0 0 0 3px rgba(96,  165, 250, 0.5); }
.focus\:ring-blue-500:focus  { box-shadow: 0 0 0 3px rgba(59,  130, 246, 0.5); }
.focus\:ring-emerald-500:focus { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5); }
.focus\:ring-green-400:focus { box-shadow: 0 0 0 3px rgba(74,  222, 128, 0.5); }
.focus\:ring-purple-400:focus { box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.5); }
.focus\:border-blue-500:focus    { border-color: #3b82f6; }
.focus\:border-emerald-500:focus { border-color: #10b981; }

/* ── Group hover ──────────────────────────── */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
