/* Minimal Tailwind-alike utility layer for the public dashboard.
 * Replaces the ~100KB cdn.tailwindcss.com runtime with ~3KB static CSS.
 * Only covers utilities actually referenced by our templates. Grep
 * template files if you need to add more.
 *
 * Responsive prefixes:
 *   md:  ≥ 768px
 *   lg:  ≥ 1024px
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; }

/* Display */
.block         { display: block; }
.inline-block  { display: inline-block; }
.flex          { display: flex; }
.grid          { display: grid; }

/* Flexbox */
.flex-wrap        { flex-wrap: wrap; }
.items-baseline   { align-items: baseline; }
.items-center     { align-items: center; }
.items-end        { align-items: flex-end; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }

/* Grid */
.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)); }
.grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5  { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.col-span-2    { grid-column: span 2 / span 2; }

/* Gap */
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem;  }
.gap-3 { gap: .75rem; } .gap-4 { gap: 1rem;    }

/* Space-y (vertical rhythm between siblings) */
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem;  }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem;   }

/* Margin */
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mt-1  { margin-top: .25rem; } .mt-2  { margin-top: .5rem; }
.mt-3  { margin-top: .75rem; } .mt-4  { margin-top: 1rem;   }
.mt-6  { margin-top: 1.5rem; } .mt-8  { margin-top: 2rem;   }
.mt-14 { margin-top: 3.5rem; } .mt-16 { margin-top: 4rem;   }
.mb-2  { margin-bottom: .5rem; }  .mb-3  { margin-bottom: .75rem; }
.mb-4  { margin-bottom: 1rem;  }  .mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem;  }  .mb-10 { margin-bottom: 2.5rem; }
.my-6  { margin-top: 1.5rem; margin-bottom: 1.5rem; }

/* Padding */
.p-4 { padding: 1rem;   } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-3  { padding-top: .75rem; padding-bottom: .75rem; }
.py-6  { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem;   padding-bottom: 3rem;   }
.py-16 { padding-top: 4rem;   padding-bottom: 4rem;   }
.pt-1  { padding-top: .25rem; }
.pt-6  { padding-top: 1.5rem; }

/* Width / max-width */
.w-full { width: 100%; }
.max-w-md          { max-width: 28rem; }
.max-w-lg          { max-width: 32rem; }
.max-w-2xl         { max-width: 42rem; }
.max-w-3xl         { max-width: 48rem; }
.max-w-4xl         { max-width: 56rem; }
.max-w-screen-2xl  { max-width: 1536px; }

/* Position (used in stat pill absolute) */
.absolute { position: absolute; }
.relative { position: relative; }

/* Typography */
.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-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem;  line-height: 2.5rem;  }
.text-5xl { font-size: 3rem;     line-height: 1;        }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Backdrop / cosmetics referenced by the header */
.backdrop-blur { backdrop-filter: blur(12px); }

/* -----------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------- */
@media (min-width: 768px) {
  .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\:col-span-2   { grid-column: span 2 / span 2; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-5  { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
