/*
 * Utilities — Tailwind-compatible utility classes used by this theme.
 * Scoped to classes actually present in the HTML to keep file size minimal.
 */

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

/* ── Flex Direction / Wrap ── */
.flex-col  { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* ── Flex Grow / Shrink ── */
.flex-1        { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* ── Align / Justify ── */
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }

/* ── Gap ── */
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* ── Grid Columns (base) ── */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-2  { grid-column: span 2 / span 2; }

/* ── Padding ── */
.p-2   { padding: 0.5rem; }
.p-7   { padding: 1.75rem; }
.p-8   { padding: 2rem; }
.px-4  { padding-left: 1rem;    padding-right: 1rem; }
.px-6  { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8  { padding-left: 2rem;    padding-right: 2rem; }
.py-3  { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-4  { padding-top: 1rem;     padding-bottom: 1rem; }
.py-12 { padding-top: 3rem;     padding-bottom: 3rem; }
.py-24 { padding-top: 6rem;     padding-bottom: 6rem; }
.py-28 { padding-top: 7rem;     padding-bottom: 7rem; }
.pt-6  { padding-top: 1.5rem; }
.pt-8  { padding-top: 2rem; }
.pb-4  { padding-bottom: 1rem; }

/* ── Margin ── */
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1    { margin-top: 0.25rem; }
.mt-2    { margin-top: 0.5rem; }
.mt-4    { margin-top: 1rem; }
.mt-5    { margin-top: 1.25rem; }
.mt-6    { margin-top: 1.5rem; }
.mt-7    { margin-top: 1.75rem; }
.mt-8    { margin-top: 2rem; }
.mt-10   { margin-top: 2.5rem; }
.mt-12   { margin-top: 3rem; }
.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; }
.mb-10   { margin-bottom: 2.5rem; }
.mb-12   { margin-bottom: 3rem; }
.mb-14   { margin-bottom: 3.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

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

/* ── Width / Height ── */
.w-full { width: 100%; }
.w-12   { width: 3rem; }
.w-16   { width: 4rem; }
.h-12   { height: 3rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-xs  { max-width: 20rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* ── 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; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-display  { font-family: 'Syne', sans-serif; }
.leading-none    { line-height: 1; }
.leading-snug    { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-loose   { line-height: 2; }
.tracking-wide    { letter-spacing: 0.025em; }
.tracking-widest  { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.whitespace-nowrap { white-space: nowrap; }

/* ── Border Radius ── */
.rounded      { border-radius: 4px; }
.rounded-lg   { border-radius: 0.5rem; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ── Border ── */
.border   { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }

/* ── Overflow ── */
.overflow-hidden { overflow: hidden; }

/* ── Position ── */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.left-0   { left: 0; }
.right-0  { right: 0; }
.bottom-0 { bottom: 0; }

/* ── Z-Index ── */
.z-0   { z-index: 0; }
.z-10  { z-index: 10; }
.z-20  { z-index: 20; }

/* ── Cursor ── */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

/* ── Pointer Events ── */
.pointer-events-none { pointer-events: none; }

/* ── Opacity ── */
.opacity-0  { opacity: 0; }
.opacity-50 { opacity: 0.5; }

/* ── Will Change ── */
.will-change-transform { will-change: transform; }

/* ── Transition ── */
.transition-all    { transition: all 0.15s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }

/* ── RESPONSIVE BREAKPOINTS ── */

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

/* md: 768px+ */
@media (min-width: 768px) {
	.md\:flex         { display: flex !important; }
	.md\:block        { display: block !important; }
	.md\:hidden       { display: none !important; }
	.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; }
}

/* lg: 1024px+ */
@media (min-width: 1024px) {
	.lg\:flex         { display: flex !important; }
	.lg\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lg\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lg\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tailwind-style 0.5 decimal escape */
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
