/**
 * ThikKoro — hand-rolled utility layer (replaces the Tailwind CDN runtime)
 * Only the utilities actually used by the 12 public pages are declared here,
 * matching Tailwind's default values so existing markup keeps working.
 * Breakpoints: sm 640 / md 768 / lg 1024. Brand #0a56f0.
 * Squad/admin panels keep their own Tailwind CDN (admin-header.php).
 */

/* ---------- Display & position ---------- */
.block { display: block; }
.inline { display: inline; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-1\/2 { top: 50%; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }
.left-4 { left: 1rem; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* ---------- Flex / grid ---------- */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* ---------- Sizing ---------- */
.w-2 { width: 0.5rem; }
.w-10 { width: 2.5rem; }
.w-full { width: 100%; }
.h-2 { height: 0.5rem; }
.h-10 { height: 2.5rem; }
.h-72 { height: 18rem; }
.h-full { height: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }

/* ---------- Spacing ---------- */
.p-2\.5 { padding: 0.625rem; }
.p-6 { padding: 1.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-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-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pl-12 { padding-left: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-10 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.my-14 { margin-top: 3.5rem; margin-bottom: 3.5rem; }

/* ---------- 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-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }

/* ---------- Colours ---------- */
.text-white { color: #ffffff; }
.text-brand { color: #0a56f0; }
.text-muted { color: var(--pub-ink-muted); }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-emerald-600 { color: #059669; }
.text-amber-600 { color: #d97706; }
.text-\[var\(--pub-ink\)\] { color: var(--pub-ink); }
.text-\[var\(--pub-ink-muted\)\] { color: var(--pub-ink-muted); }
.text-\[var\(--pub-ink-soft\)\] { color: var(--pub-ink-soft); }

.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-500 { background-color: #10b981; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-\[var\(--pub-accent\)\] { background-color: var(--pub-accent); }
.bg-\[var\(--pub-nav-bg\)\] { background-color: var(--pub-nav-bg); }
.bg-\[var\(--pub-surface-2\)\] { background-color: var(--pub-surface-2); }

/* ---------- Borders, radius, shadow, effects ---------- */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; }
.border-\[var\(--pub-line\)\] { border-color: var(--pub-line); }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-blue-100 { border-color: #dbeafe; }
.border-blue-200 { border-color: #bfdbfe; }
.rounded-md { border-radius: 0.375rem; }
.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; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-xs { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.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-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.animate-pulse { animation: util-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes util-pulse { 50% { opacity: 0.5; } }

/* ---------- Focus (ring replaces outline-none pair) ---------- */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { outline: 2px solid #0a56f0; outline-offset: 2px; }
.focus\:ring-brand:focus { outline-color: #0a56f0; }

/* ---------- Interactive states ---------- */
.hover\:bg-brand:hover { background-color: #0a56f0; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-\[var\(--pub-surface-2\)\]:hover { background-color: var(--pub-surface-2); }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:text-brand:hover { color: #0a56f0; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:border-blue-300:hover { border-color: #93c5fd; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

/* ---------- Breakpoints (Tailwind defaults) ---------- */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:h-80 { height: 20rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .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\:text-5xl { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .lg\:inline-flex { display: inline-flex; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
