/*
  SoloSoft utility layer — replaces Tailwind CDN for Core Web Vitals.
  Only the classes used by layouts/templates. Color tokens come from head.html.
*/

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

@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
}

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.left-4 { left: 1rem; }
.right-3 { right: 0.75rem; }
.inset-y-0 { top: 0; bottom: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

/* Flex / grid */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Sizing */
.w-0 { width: 0; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-\[18px\] { width: 18px; }
.w-full { width: 100%; }
.w-100 { width: 100%; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-14 { height: 3.5rem; }
.h-\[2px\] { height: 2px; }
.h-\[18px\] { height: 18px; }
.min-h-\[60vh\] { min-height: 60vh; }
.min-h-\[70vh\] { min-height: 70vh; }
.max-w-3xl { max-width: 48rem; }

/* Spacing */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.mt-3 { margin-top: 0.75rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.p-5 { padding: 1.25rem; }
.px-0 { padding-left: 0; padding-right: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.pt-0 { padding-top: 0; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-12 { padding-left: 3rem; }
.pr-14 { padding-right: 3.5rem; }

@media (min-width: 768px) {
  .md\:p-6 { padding: 1.5rem; }
}

/* Typography */
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.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-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.leading-relaxed { line-height: 1.625; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  .md\:text-\[17px\] { font-size: 17px; }
}

/* Colors (token-backed) */
.bg-background { background-color: var(--color-background); }
.bg-surface { background-color: var(--color-surface); }
.bg-primary { background-color: var(--color-primary); }
.text-on-background { color: var(--color-on-background); }
.text-on-surface { color: var(--color-on-surface); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-primary { color: var(--color-primary); }
.border-outline-variant { border-color: var(--color-outline-variant); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-0 { border-width: 0; }

/* Radius / overflow / effects */
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.overflow-hidden { overflow: hidden; }
.opacity-50 { opacity: 0.5; }
.pointer-events-none { pointer-events: none; }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-lift { box-shadow: var(--shadow-lift); }

/* Transitions */
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.transition-transform { transition: transform 0.2s ease; }
.transition-\[width\] { transition: width 0.1s ease-out; }
.duration-100 { transition-duration: 100ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

/* Group hover helper (minimal) */
.group:hover .group-hover\:text-primary { color: var(--color-primary); }

/* Selection */
.selection\:bg-primary\/25::selection,
.selection\:bg-primary\/25 *::selection {
  background: color-mix(in srgb, var(--color-primary) 25%, transparent);
}
.selection\:text-on-surface::selection,
.selection\:text-on-surface *::selection {
  color: var(--color-on-surface);
}

/* Focus ring helpers used on search */
.focus\:border-primary:focus { border-color: var(--color-primary) !important; }
.focus\:ring-4:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 15%, transparent); }
.focus\:ring-primary\/15:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 15%, transparent); }

/* Hover helpers used in search */
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:bg-primary\/10:hover { background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.hover\:border-primary\/40:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.hover\:shadow-lift:hover { box-shadow: var(--shadow-lift); }

/* before absolute overlay for stretched links */
.before\:absolute::before { content: ""; position: absolute; }
.before\:inset-0::before { inset: 0; }
