/**
 * utility-classes.css
 *
 * Hand-authored, static replacement for the Tailwind CDN build + inline
 * config script that used to run in functions.php (violated the "no
 * inline JS/CSS" and "no CDN framework in production" rules in CLAUDE.md).
 * Every selector here matches a utility class name that already exists in
 * the theme's template markup, so no template markup had to change —
 * only the CSS engine behind those class names did. Mobile-first: base
 * rules are unprefixed, breakpoint variants (sm:/md:/lg:) layer on top
 * via min-width media queries.
 *
 * @package UI_Sucks_Theme
 * @version 1.1.0
 */

/* ==========================================================================
   1. Display & Position
   ========================================================================== */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }

/* ==========================================================================
   2. Flexbox & Grid
   ========================================================================== */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.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)); }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-12 { gap: 3rem; }
.gap-y-1 { row-gap: 0.25rem; }

.space-x-0\.5 > * + * { margin-left: 0.125rem; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-1\.5 > * + * { margin-left: 0.375rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-20 > * + * { margin-top: 5rem; }

/* ==========================================================================
   3. Spacing (margin / padding)
   ========================================================================== */
.mx-auto { margin-left: auto; margin-right: auto; }
.-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.my-12 { margin-top: 3rem; margin-bottom: 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-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.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; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.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-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.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-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pr-4 { padding-right: 1rem; }

/* ==========================================================================
   4. Sizing
   ========================================================================== */
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-full { width: 100%; }

.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-full { height: 100%; }
.h-\[400px\] { height: 400px; }
.min-h-\[140px\] { min-height: 140px; }
.min-h-\[260px\] { min-height: 260px; }

.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }

/* ==========================================================================
   5. Typography
   ========================================================================== */
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.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-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.prose { color: var(--uis-text-secondary); }
.prose > * + * { margin-top: 1rem; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--uis-text-primary); font-weight: 700; line-height: 1.3; }
.prose a { color: var(--uis-color-brand-blue); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.5rem; list-style: revert; }

/* ==========================================================================
   6. Colors

   Per Sue, 2026-09-21 ("full enchilada... keep going" on Customizer color
   control): every class below that maps 1:1 to one of the 16 --uis-* CSS
   custom properties (see style.css :root, and class-ui-customizer.php's
   Interactive Color Palette section) now reads that variable instead of a
   hardcoded hex value. No template markup had to change (same principle
   as this file's original purpose per the header comment above) -- every
   .bg-white, .text-slate-600, .bg-blue-600, etc. already in header.php,
   footer.php, templates/*.php, archive-*.php, single-*.php becomes
   Customizer-controllable automatically, on both this site and the forum
   (class-uis-forum-branding-sync.php syncs the same 16 variables).

   Deliberately NOT variable-driven, left as literal hex/rgba (documented
   limitation, not an oversight):
   - Opacity-suffixed variants (bg-white/90, bg-slate-900/80, etc.) --
     these are translucency/glass effects layered on a base color, not a
     standalone brand color choice; tying them to a var without a
     color-mix()-based approach would need one new variable per opacity
     step for no real customization benefit.
   - Light color TINTS used as badge backgrounds (bg-blue-50, bg-amber-100)
     paired with their own darker text (text-amber-800, etc.) -- these are
     fixed light/dark pairs for badge contrast, not swapped independently.
   - hover:* color states (Section 9 below) -- still hardcode a hover
     shade of the ORIGINAL default brand color. If brand_blue is changed
     in the Customizer, buttons using it pick up the new color immediately
     but their :hover state still darkens toward the old default blue
     rather than a darker shade of the new color. A correct fix needs
     either a dedicated "hover" variant of each brand color or a
     filter: brightness()-based hover instead of a color swap -- flagged
     as a follow-up, not attempted here to avoid changing interactive
     behavior on every button in the theme in the same pass as color
     values.
   - Single-use decorative icon colors with no brand meaning (text-red-500
     heart icon, text-green-500 checkmark, text-orange-500 RSS icon,
     text-blue-400 lock icon, border-amber-300/400 badge borders).
   - text-white -- used for text ON dark/colored surfaces for contrast,
     not as a standalone color choice; pairs contextually with whatever
     dark background surrounds it.
   ========================================================================== */
.bg-white { background-color: var(--uis-bg-card); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-slate-100 { background-color: var(--uis-bg-secondary); }
.bg-slate-200 { background-color: var(--uis-bg-secondary); }
.bg-slate-300 { background-color: var(--uis-bg-secondary); }
.bg-slate-800 { background-color: var(--uis-color-brand-dark); }
.bg-slate-800\/80 { background-color: rgba(30, 41, 59, 0.8); }
.bg-slate-900 { background-color: var(--uis-color-brand-dark); }
.bg-slate-900\/80 { background-color: rgba(15, 23, 42, 0.8); }
.bg-slate-950 { background-color: var(--uis-footer-bg); }
.bg-slate-950\/40 { background-color: rgba(2, 6, 23, 0.4); }
.bg-slate-950\/80 { background-color: rgba(2, 6, 23, 0.8); }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-600 { background-color: var(--uis-color-brand-blue); }
.bg-blue-600\/20 { background-color: rgba(37, 99, 235, 0.2); }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-600 { background-color: var(--uis-color-brand-orange); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--uis-gradient-from), var(--uis-gradient-to)); }
.from-amber-600 { --uis-gradient-from: var(--uis-color-brand-orange); }
.to-amber-700 { --uis-gradient-to: #b45309; }

.text-white { color: #ffffff; }
.text-slate-300 { color: var(--uis-text-muted); }
.text-slate-400 { color: var(--uis-text-muted); }
.text-slate-500 { color: var(--uis-text-secondary); }
.text-slate-600 { color: var(--uis-text-secondary); }
.text-slate-700 { color: var(--uis-text-secondary); }
.text-slate-900 { color: var(--uis-text-primary); }
.text-amber-100 { color: #fef3c7; }
.text-amber-400 { color: #fbbf24; }
.text-amber-500 { color: #f59e0b; }
.text-amber-600 { color: var(--uis-color-brand-orange); }
.text-amber-800 { color: #92400e; }
.text-amber-900 { color: #78350f; }
.text-blue-400 { color: #60a5fa; }
.text-blue-600 { color: var(--uis-color-brand-blue); }
.text-green-500 { color: #22c55e; }
.text-red-500 { color: #ef4444; }
.text-orange-500 { color: #f97316; }

.border-slate-100 { border-color: var(--uis-border-color); }
.border-slate-200 { border-color: var(--uis-border-color); }
.border-slate-300 { border-color: var(--uis-border-color); }
.border-slate-700 { border-color: var(--uis-dark-border-color); }
.border-slate-800 { border-color: var(--uis-dark-border-color); }
.border-slate-900 { border-color: var(--uis-dark-border-color); }
.border-amber-300 { border-color: #fcd34d; }
.border-amber-400\/30 { border-color: rgba(251, 191, 36, 0.3); }

.fill-current { fill: currentColor; }

/* ==========================================================================
   7. Borders, Radius & Shadows
   ========================================================================== */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05); }

/* ==========================================================================
   8. Effects, Transforms & Transitions
   ========================================================================== */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.transform { transform: translate(0, 0); }
.group-hover\:scale-105 { transition: transform 0.3s; }
.group-hover\:scale-110 { transition: transform 0.2s; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

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

.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

/* ==========================================================================
   9. Interactive States (hover / focus / disabled)
   ========================================================================== */
.hover\:bg-amber-700:hover { background-color: #b45309; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-slate-50:hover { background-color: var(--uis-bg-secondary); }
.hover\:bg-slate-100:hover { background-color: var(--uis-bg-secondary); }
.hover\:bg-slate-950:hover { background-color: var(--uis-footer-bg); }
.hover\:bg-white:hover { background-color: var(--uis-bg-card); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.hover\:text-blue-500:hover { color: #3b82f6; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-blue-700:hover { color: #1d4ed8; }
.hover\:text-slate-900:hover { color: var(--uis-text-primary); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:underline:hover { text-decoration: underline; }

.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--uis-focus-ring-color, #3b82f6); }
.focus\:ring-blue-500:focus { --uis-focus-ring-color: var(--uis-color-brand-blue); }

.disabled\:bg-slate-200:disabled { background-color: var(--uis-bg-secondary); }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ==========================================================================
   10. Responsive Variants (mobile-first: base rules above are the phone
   layout; each breakpoint below only adds overrides for wider screens)
   ========================================================================== */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .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\:items-center { align-items: center; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:text-left { text-align: left; }
    .md\:p-12 { padding: 3rem; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:col-span-6 { grid-column: span 6 / span 6; }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
