/* ==========================================================================
   Bamboo SSG - Standalone CSS (Tailwind Replacement)
   Complete implementation of all utility classes used in templates
   ========================================================================== */

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

:root {
  --header-height: 4rem;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button {
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}

img,
svg,
video,
iframe {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

details summary {
  cursor: pointer;
}

figure,
figcaption,
blockquote {
  margin: 0;
}

/* ==========================================================================
   Display Utilities
   ========================================================================== */

.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ==========================================================================
   Position Utilities
   ========================================================================== */

.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

/* Position values */
.top-0 { top: 0; }
.-top-3 { top: -0.75rem; }
.top-16 { top: 4rem; }
.top-24 { top: 6rem; }
.right-0 { right: 0; }
.right-6 { right: 1.5rem; }
.right-2rem { right: 2rem; }
.bottom-0 { bottom: 0; }
.bottom-6 { bottom: 1.5rem; }
.bottom-2rem { bottom: 2rem; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* ==========================================================================
   Z-Index Utilities
   ========================================================================== */

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }

/* ==========================================================================
   Flex Utilities
   ========================================================================== */

.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ==========================================================================
   Grid Utilities
   ========================================================================== */

.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)); }

/* ==========================================================================
   Width & Height Utilities
   ========================================================================== */

.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }

.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-full { height: 100%; }
.h-fit { height: fit-content; }
.h-px { height: 1px; }

.min-h-screen { min-height: 100vh; }
.min-h-\[calc\(100vh-4rem\)\] { min-height: calc(100vh - 4rem); }

.max-h-\[calc\(100vh-8rem\)\] { max-height: calc(100vh - 8rem); }

.min-w-0 { min-width: 0; }

/* ==========================================================================
   Spacing Utilities (Padding)
   ========================================================================== */

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.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-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }

.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }

.pl-3 { padding-left: 0.75rem; }
.pl-6 { padding-left: 1.5rem; }

/* ==========================================================================
   Spacing Utilities (Margin)
   ========================================================================== */

.m-0 { margin: 0; }

.mx-auto { margin-left: auto; margin-right: auto; }

.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.-ml-\[50vw\] { margin-left: -50vw; }
.-mt-\[calc\(var\(--header-height\)\+3rem\)\] { margin-top: calc(var(--header-height) + 3rem); }
.-mb-12 { margin-bottom: -3rem; }
.mb-0 { margin-bottom: 0; }
.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; }
.mb-12 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.mr-2 { margin-right: 0.5rem; }
.ml-6 { margin-left: 1.5rem; }

/* ==========================================================================
   Gap Utilities
   ========================================================================== */

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.space-x-8 > * + * { margin-left: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* ==========================================================================
   Max Width Utilities
   ========================================================================== */

.max-w-none { max-width: none; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

/* Font Family */
.font-sans { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; }

/* Font Size */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.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; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

/* Font Weight */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Line Height */
.leading-relaxed { line-height: 1.625; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Transform */
.uppercase { text-transform: uppercase; }

/* Tracking */
.tracking-wider { letter-spacing: 0.05em; }

/* Text Decoration */
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }

/* Line Clamp */
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Tabular Nums */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }

/* ==========================================================================
   Color Utilities - Text
   ========================================================================== */

.text-white { color: #ffffff; }
.text-gray-100 { color: #f3f4f6; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }

.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }

.text-purple-400 { color: #a78bfa; }
.text-purple-500 { color: #8b5cf6; }
.text-purple-600 { color: #7c3aed; }

.text-pink-400 { color: #f472b6; }
.text-pink-500 { color: #ec4899; }
.text-pink-600 { color: #db2777; }

.text-emerald-400 { color: #34d399; }
.text-emerald-600 { color: #059669; }

.text-teal-500 { color: #14b8a6; }

.text-red-400 { color: #f87171; }
.text-red-600 { color: #dc2626; }

/* Dark mode text colors */
.dark .dark\:text-white { color: #ffffff; }
.dark .dark\:text-gray-100 { color: #f3f4f6; }
.dark .dark\:text-gray-200 { color: #e5e7eb; }
.dark .dark\:text-gray-300 { color: #d1d5db; }
.dark .dark\:text-gray-400 { color: #9ca3af; }
.dark .dark\:text-gray-500 { color: #6b7280; }
.dark .dark\:text-gray-600 { color: #4b5563; }
.dark .dark\:text-gray-900 { color: #111827; }

.dark .dark\:text-blue-300 { color: #93c5fd; }
.dark .dark\:text-blue-400 { color: #60a5fa; }

.dark .dark\:text-purple-400 { color: #a78bfa; }
.dark .dark\:text-purple-500 { color: #8b5cf6; }

.dark .dark\:text-pink-400 { color: #f472b6; }

.dark .dark\:text-emerald-400 { color: #34d399; }

.dark .dark\:text-red-400 { color: #f87171; }

/* ==========================================================================
   Color Utilities - Background
   ========================================================================== */

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-transparent { background-color: transparent; }

.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-600 { background-color: #2563eb; }

.bg-purple-50 { background-color: #faf5ff; }
.bg-purple-500 { background-color: #8b5cf6; }

.bg-emerald-400 { background-color: #34d399; }
.bg-emerald-500 { background-color: #10b981; }

.bg-teal-500 { background-color: #14b8a6; }

.bg-red-100 { background-color: #fee2e2; }

.bg-pink-500 { background-color: #ec4899; }
.bg-pink-600 { background-color: #db2777; }

.bg-indigo-500 { background-color: #6366f1; }
.bg-indigo-600 { background-color: #4f46e5; }

/* Background opacity */
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-black\/75 { background-color: rgba(0, 0, 0, 0.75); }

/* Dark mode background colors */
.dark .dark\:bg-gray-700 { background-color: #374151; }
.dark .dark\:bg-gray-800 { background-color: #1f2937; }
.dark .dark\:bg-gray-900 { background-color: #111827; }
.dark .dark\:bg-gray-950 { background-color: #030712; }
.dark .dark\:bg-black { background-color: #000000; }

.dark .dark\:bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5); }
.dark .dark\:bg-gray-900\/95 { background-color: rgba(17, 24, 39, 0.95); }

.dark .dark\:bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.dark .dark\:bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }

.dark .dark\:bg-blue-400 { background-color: #60a5fa; }
.dark .dark\:bg-blue-500 { background-color: #3b82f6; }
.dark .dark\:bg-blue-500\/10 { background-color: rgba(59, 130, 246, 0.1); }
.dark .dark\:bg-blue-500\/20 { background-color: rgba(59, 130, 246, 0.2); }

.dark .dark\:bg-purple-500\/10 { background-color: rgba(139, 92, 246, 0.1); }
.dark .dark\:bg-purple-500\/20 { background-color: rgba(139, 92, 246, 0.2); }

.dark .dark\:bg-emerald-400 { background-color: #34d399; }
.dark .dark\:bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }

.dark .dark\:bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }

/* ==========================================================================
   Gradient Utilities
   ========================================================================== */

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

.from-gray-100 { --tw-gradient-from: #f3f4f6; --tw-gradient-to: rgba(243, 244, 246, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-gray-200 { --tw-gradient-from: #e5e7eb; --tw-gradient-to: rgba(229, 231, 235, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-gray-700 { --tw-gradient-from: #374151; --tw-gradient-to: rgba(55, 65, 81, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-gray-900 { --tw-gradient-from: #111827; --tw-gradient-to: rgba(17, 24, 39, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.from-blue-500\/5 { --tw-gradient-from: rgba(59, 130, 246, 0.05); --tw-gradient-to: rgba(59, 130, 246, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-blue-500\/10 { --tw-gradient-from: rgba(59, 130, 246, 0.1); --tw-gradient-to: rgba(59, 130, 246, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-blue-600 { --tw-gradient-from: #2563eb; --tw-gradient-to: rgba(37, 99, 235, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.from-purple-500\/5 { --tw-gradient-from: rgba(139, 92, 246, 0.05); --tw-gradient-to: rgba(139, 92, 246, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-purple-500\/10 { --tw-gradient-from: rgba(139, 92, 246, 0.1); --tw-gradient-to: rgba(139, 92, 246, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-purple-600 { --tw-gradient-from: #7c3aed; --tw-gradient-to: rgba(124, 58, 237, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.to-gray-200 { --tw-gradient-to: #e5e7eb; }
.to-gray-800 { --tw-gradient-to: #1f2937; }
.to-transparent { --tw-gradient-to: transparent; }

.to-blue-500\/5 { --tw-gradient-to: rgba(59, 130, 246, 0.05); }
.to-blue-500\/10 { --tw-gradient-to: rgba(59, 130, 246, 0.1); }

.to-purple-500\/5 { --tw-gradient-to: rgba(139, 92, 246, 0.05); }
.to-purple-500\/10 { --tw-gradient-to: rgba(139, 92, 246, 0.1); }
.to-purple-600 { --tw-gradient-to: #7c3aed; }

.to-emerald-400 { --tw-gradient-to: #34d399; }
.to-emerald-600 { --tw-gradient-to: #059669; }

/* Dark mode gradients */
.dark .dark\:from-white { --tw-gradient-from: #ffffff; --tw-gradient-to: rgba(255, 255, 255, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.dark .dark\:from-gray-700 { --tw-gradient-from: #374151; --tw-gradient-to: rgba(55, 65, 81, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.dark .dark\:from-gray-800 { --tw-gradient-from: #1f2937; --tw-gradient-to: rgba(31, 41, 55, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.dark .dark\:from-gray-900 { --tw-gradient-from: #111827; --tw-gradient-to: rgba(17, 24, 39, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.dark .dark\:from-blue-400 { --tw-gradient-from: #60a5fa; --tw-gradient-to: rgba(96, 165, 250, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.dark .dark\:from-blue-500\/10 { --tw-gradient-from: rgba(59, 130, 246, 0.1); --tw-gradient-to: rgba(59, 130, 246, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.dark .dark\:from-purple-400 { --tw-gradient-from: #a78bfa; --tw-gradient-to: rgba(167, 139, 250, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.dark .dark\:from-purple-500\/10 { --tw-gradient-from: rgba(139, 92, 246, 0.1); --tw-gradient-to: rgba(139, 92, 246, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.dark .dark\:to-gray-800 { --tw-gradient-to: #1f2937; }
.dark .dark\:to-blue-400 { --tw-gradient-to: #60a5fa; }
.dark .dark\:to-blue-500\/10 { --tw-gradient-to: rgba(59, 130, 246, 0.1); }
.dark .dark\:to-purple-400 { --tw-gradient-to: #a78bfa; }
.dark .dark\:to-purple-500\/10 { --tw-gradient-to: rgba(139, 92, 246, 0.1); }
.dark .dark\:to-emerald-400 { --tw-gradient-to: #34d399; }

/* Background Clip */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.text-transparent {
  color: transparent;
}

/* ==========================================================================
   Border Utilities
   ========================================================================== */

.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l { border-left-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-2 { border-width: 2px; }

/* Border Colors */
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }

.border-blue-100 { border-color: #dbeafe; }
.border-blue-500 { border-color: #3b82f6; }

.border-purple-100 { border-color: #f3e8ff; }
.border-purple-500 { border-color: #8b5cf6; }

.border-emerald-400 { border-color: #34d399; }
.border-emerald-500 { border-color: #10b981; }

.border-red-200 { border-color: #fecaca; }

/* Dark mode borders */
.dark .dark\:border-gray-700 { border-color: #374151; }
.dark .dark\:border-gray-700\/50 { border-color: rgba(55, 65, 81, 0.5); }
.dark .dark\:border-gray-800 { border-color: #1f2937; }

.dark .dark\:border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.dark .dark\:border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.dark .dark\:border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }

.dark .dark\:border-blue-400 { border-color: #60a5fa; }
.dark .dark\:border-blue-500 { border-color: #3b82f6; }
.dark .dark\:border-blue-500\/20 { border-color: rgba(59, 130, 246, 0.2); }
.dark .dark\:border-blue-500\/30 { border-color: rgba(59, 130, 246, 0.3); }

.dark .dark\:border-purple-500\/20 { border-color: rgba(139, 92, 246, 0.2); }

.dark .dark\:border-emerald-400 { border-color: #34d399; }
.dark .dark\:border-emerald-400\/50 { border-color: rgba(52, 211, 153, 0.5); }
.dark .dark\:border-emerald-500\/50 { border-color: rgba(16, 185, 129, 0.5); }

.dark .dark\:border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }

/* Border Radius */
.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; }

/* Border Collapse */
.border-collapse { border-collapse: collapse; }

/* ==========================================================================
   Shadow Utilities
   ========================================================================== */

.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 -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.shadow-emerald-500\/30 { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3); }
.shadow-blue-500\/5 { box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.05); }
.shadow-blue-500\/10 { box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.1); }

.dark .dark\:shadow-none { box-shadow: none; }
.dark .dark\:shadow-emerald-400\/30 { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3); }
.dark .dark\:shadow-blue-500\/10 { box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.1); }

/* ==========================================================================
   Opacity Utilities
   ========================================================================== */

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

/* ==========================================================================
   Transition Utilities
   ========================================================================== */

.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-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; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* ==========================================================================
   Transform Utilities
   ========================================================================== */

.scale-105 { transform: scale(1.05); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-0\.5 { transform: translateY(-0.125rem); }
.-translate-y-1 { transform: translateY(-0.25rem); }
.-translate-y-3 { transform: translateY(-0.75rem); }
.translate-x-\[-50\%\] { transform: translateX(-50%); }

.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }

.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* ==========================================================================
   Backdrop Utilities
   ========================================================================== */

.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* ==========================================================================
   Overflow Utilities
   ========================================================================== */

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* ==========================================================================
   Cursor Utilities
   ========================================================================== */

.cursor-pointer { cursor: pointer; }

.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ==========================================================================
   Shrink Utilities
   ========================================================================== */

.shrink-0 { flex-shrink: 0; }

/* ==========================================================================
   Object Utilities
   ========================================================================== */

.object-cover { object-fit: cover; }

/* ==========================================================================
   Content Utilities (for pseudo-elements)
   ========================================================================== */

.prose-code\:before\:content-none code::before { content: none !important; }
.prose-code\:after\:content-none code::after { content: none !important; }

/* ==========================================================================
   Last Child Utilities
   ========================================================================== */

.last\:mb-0:last-child { margin-bottom: 0; }
.last\:border-b-0:last-child { border-bottom-width: 0; }

/* ==========================================================================
   First Child Utilities
   ========================================================================== */

.prose-h2\:first\:mt-0 h2:first-child { margin-top: 0; }

/* ==========================================================================
   Responsive Utilities - Medium Screens (md: 768px)
   ========================================================================== */

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

/* ==========================================================================
   Responsive Utilities - Large Screens (lg: 1024px)
   ========================================================================== */

@media (min-width: 1024px) {
  .lg\:sticky { position: sticky; }
  .lg\:top-24 { top: 6rem; }
  .lg\:h-fit { height: fit-content; }
  .lg\:max-h-\[calc\(100vh-8rem\)\] { max-height: calc(100vh - 8rem); }
  .lg\:overflow-y-auto { overflow-y: auto; }
  .lg\:grid-cols-\[280px_1fr\] { grid-template-columns: 280px 1fr; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:hidden { display: none; }
  .lg\:px-16 { padding-left: 4rem; padding-right: 4rem; }
  .lg\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
}

/* ==========================================================================
   Hover State Utilities
   ========================================================================== */

.hover\:underline:hover { text-decoration: underline; }
.hover\:no-underline:hover { text-decoration: none; }

.hover\:text-blue-300:hover { color: #93c5fd; }
.hover\:text-blue-400:hover { color: #60a5fa; }
.hover\:text-blue-500:hover { color: #3b82f6; }
.hover\:text-blue-600:hover { color: #2563eb; }

.hover\:text-emerald-600:hover { color: #059669; }

.hover\:text-pink-600:hover { color: #db2777; }

.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-600:hover { background-color: #4b5563; }

.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-blue-100:hover { background-color: #dbeafe; }
.hover\:bg-blue-500:hover { background-color: #3b82f6; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }

.hover\:bg-purple-100:hover { background-color: #f3e8ff; }
.hover\:bg-purple-600:hover { background-color: #7c3aed; }

.hover\:bg-pink-600:hover { background-color: #db2777; }

.hover\:bg-indigo-600:hover { background-color: #4f46e5; }

.hover\:bg-emerald-600:hover { background-color: #059669; }

.hover\:bg-teal-600:hover { background-color: #0d9488; }

.hover\:border-gray-300:hover { border-color: #d1d5db; }
.hover\:border-blue-300:hover { border-color: #93c5fd; }
.hover\:border-emerald-500\/50:hover { border-color: rgba(16, 185, 129, 0.5); }

.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.hover\:shadow-emerald-500\/30:hover { box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.3); }
.hover\:shadow-blue-500\/5:hover { box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.05), 0 10px 10px -5px rgba(59, 130, 246, 0.02); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Dark mode hover states */
.dark .dark\:hover\:text-blue-300:hover { color: #93c5fd; }
.dark .dark\:hover\:text-blue-400:hover { color: #60a5fa; }
.dark .dark\:hover\:text-emerald-400:hover { color: #34d399; }

.dark .dark\:hover\:bg-gray-600:hover { background-color: #4b5563; }
.dark .dark\:hover\:bg-gray-700:hover { background-color: #374151; }
.dark .dark\:hover\:bg-gray-800:hover { background-color: #1f2937; }
.dark .dark\:hover\:bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05); }

.dark .dark\:hover\:bg-blue-500\/10:hover { background-color: rgba(59, 130, 246, 0.1); }
.dark .dark\:hover\:bg-blue-500\/20:hover { background-color: rgba(59, 130, 246, 0.2); }
.dark .dark\:hover\:bg-blue-600:hover { background-color: #2563eb; }

.dark .dark\:hover\:bg-purple-500\/20:hover { background-color: rgba(139, 92, 246, 0.2); }

.dark .dark\:hover\:bg-emerald-300:hover { background-color: #6ee7b7; }

.dark .dark\:hover\:border-white\/30:hover { border-color: rgba(255, 255, 255, 0.3); }
.dark .dark\:hover\:border-blue-500:hover { border-color: #3b82f6; }
.dark .dark\:hover\:border-emerald-400\/50:hover { border-color: rgba(52, 211, 153, 0.5); }

.dark .dark\:hover\:shadow-emerald-400\/30:hover { box-shadow: 0 10px 15px -3px rgba(52, 211, 153, 0.3), 0 4px 6px -2px rgba(52, 211, 153, 0.3); }
.dark .dark\:hover\:shadow-blue-500\/10:hover { box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.05); }

/* Group hover states */
.group:hover .group-hover\:text-blue-600 { color: #2563eb; }
.group:hover .group-hover\:text-emerald-600 { color: #059669; }

.dark .group:hover .dark\:group-hover\:text-blue-400 { color: #60a5fa; }
.dark .group:hover .dark\:group-hover\:text-emerald-400 { color: #34d399; }

.group:hover .group-hover\:opacity-100 { opacity: 1; }

/* Hover prose utilities */
.hover\:prose-a\:underline a:hover { text-decoration: underline !important; }

/* ==========================================================================
   Focus State Utilities
   ========================================================================== */

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
.focus\:ring-blue-500:focus { --tw-ring-color: #3b82f6; }
.focus\:border-transparent:focus { border-color: transparent; }

/* ==========================================================================
   Peer State Utilities
   ========================================================================== */

.peer:checked ~ .peer-checked\:flex { display: flex; }
.peer:checked ~ .peer-checked\:flex-col { flex-direction: column; }
.peer:checked ~ .peer-checked\:absolute { position: absolute; }
.peer:checked ~ .peer-checked\:top-16 { top: 4rem; }
.peer:checked ~ .peer-checked\:left-0 { left: 0; }
.peer:checked ~ .peer-checked\:right-0 { right: 0; }
.peer:checked ~ .peer-checked\:bg-gray-100 { background-color: #f3f4f6; }
.peer:checked ~ .peer-checked\:border-b { border-bottom-width: 1px; }
.peer:checked ~ .peer-checked\:border-gray-300 { border-color: #d1d5db; }
.peer:checked ~ .peer-checked\:p-4 { padding: 1rem; }
.peer:checked ~ .peer-checked\:space-y-4 > * + * { margin-top: 1rem; }

.dark .peer:checked ~ .dark\:peer-checked\:bg-gray-800 { background-color: #1f2937; }
.dark .peer:checked ~ .dark\:peer-checked\:border-gray-700 { border-color: #374151; }

/* ==========================================================================
   Prose/Typography Plugin Styles
   ========================================================================== */

.prose {
  color: #374151;
  max-width: 65ch;
}

.prose :where(p):not(:where([class~="not-prose"] *)) {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)) {
  color: #4b5563;
  font-size: 1.25em;
  line-height: 1.6;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
}

.prose :where(a):not(:where([class~="not-prose"] *)) {
  color: #3b82f6;
  text-decoration: underline;
  font-weight: 500;
}

.prose :where(strong):not(:where([class~="not-prose"] *)) {
  color: #111827;
  font-weight: 600;
}

.prose :where(ol):not(:where([class~="not-prose"] *)) {
  list-style-type: decimal;
  padding-left: 1.625em;
}

.prose :where(ul):not(:where([class~="not-prose"] *)) {
  list-style-type: disc;
  padding-left: 1.625em;
}

.prose :where(li):not(:where([class~="not-prose"] *)) {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose :where(ol > li):not(:where([class~="not-prose"] *)) {
  padding-left: 0.375em;
}

.prose :where(ul > li):not(:where([class~="not-prose"] *)) {
  padding-left: 0.375em;
}

.prose :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) {
  margin-top: 1.25em;
}

.prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) {
  margin-bottom: 1.25em;
}

.prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"] *)) {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose :where(hr):not(:where([class~="not-prose"] *)) {
  border-color: #e5e7eb;
  border-top-width: 1px;
  margin-top: 3em;
  margin-bottom: 3em;
}

.prose :where(blockquote):not(:where([class~="not-prose"] *)) {
  font-weight: 500;
  font-style: italic;
  color: #111827;
  border-left-width: 0.25rem;
  border-left-color: #e5e7eb;
  quotes: "\201C""\201D""\2018""\2019";
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
}

.prose :where(h1):not(:where([class~="not-prose"] *)) {
  color: #111827;
  font-weight: 800;
  font-size: 2.25em;
  margin-top: 0;
  margin-bottom: 0.8888889em;
  line-height: 1.1111111;
}

.prose :where(h2):not(:where([class~="not-prose"] *)) {
  color: #111827;
  font-weight: 700;
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3333333;
}

.prose :where(h3):not(:where([class~="not-prose"] *)) {
  color: #111827;
  font-weight: 600;
  font-size: 1.25em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.prose :where(h4):not(:where([class~="not-prose"] *)) {
  color: #111827;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.prose :where(img):not(:where([class~="not-prose"] *)) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(figure):not(:where([class~="not-prose"] *)) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(figcaption):not(:where([class~="not-prose"] *)) {
  color: #6b7280;
  font-size: 0.875em;
  line-height: 1.4285714;
  margin-top: 0.8571429em;
}

.prose :where(code):not(:where([class~="not-prose"] *)) {
  color: #111827;
  font-weight: 600;
  font-size: 0.875em;
}

.prose :where(code):not(:where([class~="not-prose"] *))::before {
  content: "`";
}

.prose :where(code):not(:where([class~="not-prose"] *))::after {
  content: "`";
}

.prose :where(a code):not(:where([class~="not-prose"] *)) {
  color: #111827;
}

.prose :where(pre):not(:where([class~="not-prose"] *)) {
  color: #e5e7eb;
  background-color: #1f2937;
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.375rem;
  padding: 0.8571429em 1.1428571em;
}

.prose :where(pre code):not(:where([class~="not-prose"] *)) {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}

.prose :where(pre code):not(:where([class~="not-prose"] *))::before {
  content: none;
}

.prose :where(pre code):not(:where([class~="not-prose"] *))::after {
  content: none;
}

.prose :where(table):not(:where([class~="not-prose"] *)) {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
  line-height: 1.7142857;
}

.prose :where(thead):not(:where([class~="not-prose"] *)) {
  border-bottom-width: 1px;
  border-bottom-color: #d1d5db;
}

.prose :where(thead th):not(:where([class~="not-prose"] *)) {
  color: #111827;
  font-weight: 600;
  vertical-align: bottom;
  padding-right: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-left: 0.5714286em;
}

.prose :where(tbody tr):not(:where([class~="not-prose"] *)) {
  border-bottom-width: 1px;
  border-bottom-color: #e5e7eb;
}

.prose :where(tbody tr:last-child):not(:where([class~="not-prose"] *)) {
  border-bottom-width: 0;
}

.prose :where(tbody td):not(:where([class~="not-prose"] *)) {
  vertical-align: baseline;
  padding: 0.5714286em;
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.7777778;
}

.prose-lg :where(p):not(:where([class~="not-prose"] *)) {
  margin-top: 1.3333333em;
  margin-bottom: 1.3333333em;
}

.prose-lg :where(h1):not(:where([class~="not-prose"] *)) {
  font-size: 2.6666667em;
  margin-top: 0;
  margin-bottom: 0.8333333em;
  line-height: 1;
}

.prose-lg :where(h2):not(:where([class~="not-prose"] *)) {
  font-size: 1.6666667em;
  margin-top: 1.8666667em;
  margin-bottom: 1.0666667em;
  line-height: 1.3333333;
}

.prose-lg :where(h3):not(:where([class~="not-prose"] *)) {
  font-size: 1.3333333em;
  margin-top: 1.6666667em;
  margin-bottom: 0.6666667em;
  line-height: 1.5;
}

/* Prose modifiers */
.prose-headings\:text-gray-900 :where(h1, h2, h3, h4, h5, h6):not(:where([class~="not-prose"] *)) {
  color: #111827 !important;
}

.prose-headings\:font-bold :where(h1, h2, h3, h4, h5, h6):not(:where([class~="not-prose"] *)) {
  font-weight: 700 !important;
}

.prose-h1\:text-3xl :where(h1):not(:where([class~="not-prose"] *)) {
  font-size: 1.875rem !important;
  line-height: 2.25rem !important;
}

.prose-h1\:text-4xl :where(h1):not(:where([class~="not-prose"] *)) {
  font-size: 2.25rem !important;
  line-height: 2.5rem !important;
}

.prose-h1\:mb-6 :where(h1):not(:where([class~="not-prose"] *)) {
  margin-bottom: 1.5rem !important;
}

.prose-h1\:pb-4 :where(h1):not(:where([class~="not-prose"] *)) {
  padding-bottom: 1rem !important;
}

.prose-h1\:border-b :where(h1):not(:where([class~="not-prose"] *)) {
  border-bottom-width: 1px !important;
}

.prose-h1\:border-gray-200 :where(h1):not(:where([class~="not-prose"] *)) {
  border-color: #e5e7eb !important;
}

.prose-h2\:text-2xl :where(h2):not(:where([class~="not-prose"] *)) {
  font-size: 1.5rem !important;
  line-height: 2rem !important;
}

.prose-h2\:text-xl :where(h2):not(:where([class~="not-prose"] *)) {
  font-size: 1.25rem !important;
  line-height: 1.75rem !important;
}

.prose-h2\:mt-10 :where(h2):not(:where([class~="not-prose"] *)) {
  margin-top: 2.5rem !important;
}

.prose-h2\:mt-8 :where(h2):not(:where([class~="not-prose"] *)) {
  margin-top: 2rem !important;
}

.prose-h2\:mb-4 :where(h2):not(:where([class~="not-prose"] *)) {
  margin-bottom: 1rem !important;
}

.prose-h2\:text-blue-600 :where(h2):not(:where([class~="not-prose"] *)) {
  color: #2563eb !important;
}

.prose-h2\:text-emerald-600 :where(h2):not(:where([class~="not-prose"] *)) {
  color: #059669 !important;
}

.prose-h2\:first\:mt-0 :where(h2:first-child):not(:where([class~="not-prose"] *)) {
  margin-top: 0 !important;
}

.prose-h3\:text-xl :where(h3):not(:where([class~="not-prose"] *)) {
  font-size: 1.25rem !important;
  line-height: 1.75rem !important;
}

.prose-h3\:text-lg :where(h3):not(:where([class~="not-prose"] *)) {
  font-size: 1.125rem !important;
  line-height: 1.75rem !important;
}

.prose-h3\:mt-8 :where(h3):not(:where([class~="not-prose"] *)) {
  margin-top: 2rem !important;
}

.prose-h3\:mt-6 :where(h3):not(:where([class~="not-prose"] *)) {
  margin-top: 1.5rem !important;
}

.prose-h3\:mb-3 :where(h3):not(:where([class~="not-prose"] *)) {
  margin-bottom: 0.75rem !important;
}

.prose-p\:text-gray-600 :where(p):not(:where([class~="not-prose"] *)) {
  color: #4b5563 !important;
}

.prose-p\:leading-relaxed :where(p):not(:where([class~="not-prose"] *)) {
  line-height: 1.625 !important;
}

.prose-li\:text-gray-600 :where(li):not(:where([class~="not-prose"] *)) {
  color: #4b5563 !important;
}

.prose-li\:mb-2 :where(li):not(:where([class~="not-prose"] *)) {
  margin-bottom: 0.5rem !important;
}

.prose-li\:marker\:text-gray-400 :where(li)::marker:not(:where([class~="not-prose"] *)) {
  color: #9ca3af !important;
}

.prose-ol\:text-gray-600 :where(ol):not(:where([class~="not-prose"] *)) {
  color: #4b5563 !important;
}

.prose-ol\:my-4 :where(ol):not(:where([class~="not-prose"] *)) {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.prose-ol\:pl-6 :where(ol):not(:where([class~="not-prose"] *)) {
  padding-left: 1.5rem !important;
}

.prose-ul\:text-gray-600 :where(ul):not(:where([class~="not-prose"] *)) {
  color: #4b5563 !important;
}

.prose-ul\:my-4 :where(ul):not(:where([class~="not-prose"] *)) {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.prose-ul\:pl-6 :where(ul):not(:where([class~="not-prose"] *)) {
  padding-left: 1.5rem !important;
}

.prose-a\:text-blue-500 :where(a):not(:where([class~="not-prose"] *)) {
  color: #3b82f6 !important;
}

.prose-a\:text-blue-600 :where(a):not(:where([class~="not-prose"] *)) {
  color: #2563eb !important;
}

.prose-a\:text-emerald-600 :where(a):not(:where([class~="not-prose"] *)) {
  color: #059669 !important;
}

.prose-a\:no-underline :where(a):not(:where([class~="not-prose"] *)) {
  text-decoration: none !important;
}

.prose-strong\:text-gray-900 :where(strong):not(:where([class~="not-prose"] *)) {
  color: #111827 !important;
}

.prose-code\:text-pink-600 :where(code):not(:where([class~="not-prose"] *)) {
  color: #db2777 !important;
}

.prose-code\:text-emerald-600 :where(code):not(:where([class~="not-prose"] *)) {
  color: #059669 !important;
}

.prose-code\:bg-gray-100 :where(:not(pre) > code):not(:where([class~="not-prose"] *)) {
  background-color: #f3f4f6 !important;
}

.prose-code\:px-1\.5 :where(:not(pre) > code):not(:where([class~="not-prose"] *)) {
  padding-left: 0.375rem !important;
  padding-right: 0.375rem !important;
}

.prose-code\:py-0\.5 :where(:not(pre) > code):not(:where([class~="not-prose"] *)) {
  padding-top: 0.125rem !important;
  padding-bottom: 0.125rem !important;
}

.prose-code\:rounded :where(:not(pre) > code):not(:where([class~="not-prose"] *)) {
  border-radius: 0.25rem !important;
}

.prose-code\:text-sm :where(code):not(:where([class~="not-prose"] *)) {
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
}

.prose-code\:font-normal :where(code):not(:where([class~="not-prose"] *)) {
  font-weight: 400 !important;
}

.prose-code\:before\:content-none :where(:not(pre) > code):not(:where([class~="not-prose"] *))::before {
  content: none !important;
}

.prose-code\:after\:content-none :where(:not(pre) > code):not(:where([class~="not-prose"] *))::after {
  content: none !important;
}

.prose-pre\:bg-gray-900 :where(pre):not(:where([class~="not-prose"] *)) {
  background-color: #111827 !important;
}

.prose-pre\:border :where(pre):not(:where([class~="not-prose"] *)) {
  border-width: 1px !important;
}

.prose-pre\:border-gray-200 :where(pre):not(:where([class~="not-prose"] *)) {
  border-color: #e5e7eb !important;
}

.prose-pre\:rounded-xl :where(pre):not(:where([class~="not-prose"] *)) {
  border-radius: 0.75rem !important;
}

.prose-pre\:rounded-lg :where(pre):not(:where([class~="not-prose"] *)) {
  border-radius: 0.5rem !important;
}

.prose-pre\:my-6 :where(pre):not(:where([class~="not-prose"] *)) {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.prose-blockquote\:border-blue-500 :where(blockquote):not(:where([class~="not-prose"] *)) {
  border-left-color: #3b82f6 !important;
}

.prose-blockquote\:text-gray-600 :where(blockquote):not(:where([class~="not-prose"] *)) {
  color: #4b5563 !important;
}

.prose-img\:rounded-xl :where(img):not(:where([class~="not-prose"] *)) {
  border-radius: 0.75rem !important;
}

.prose-table\:text-gray-600 :where(table):not(:where([class~="not-prose"] *)) {
  color: #4b5563 !important;
}

.prose-table\:border-collapse :where(table):not(:where([class~="not-prose"] *)) {
  border-collapse: collapse !important;
}

.prose-table\:w-full :where(table):not(:where([class~="not-prose"] *)) {
  width: 100% !important;
}

.prose-th\:bg-gray-100 :where(th):not(:where([class~="not-prose"] *)) {
  background-color: #f3f4f6 !important;
}

.prose-th\:text-gray-900 :where(th):not(:where([class~="not-prose"] *)) {
  color: #111827 !important;
}

.prose-th\:p-3 :where(th):not(:where([class~="not-prose"] *)) {
  padding: 0.75rem !important;
}

.prose-th\:border :where(th):not(:where([class~="not-prose"] *)) {
  border-width: 1px !important;
}

.prose-th\:border-gray-200 :where(th):not(:where([class~="not-prose"] *)) {
  border-color: #e5e7eb !important;
}

.prose-th\:text-left :where(th):not(:where([class~="not-prose"] *)) {
  text-align: left !important;
}

.prose-th\:font-semibold :where(th):not(:where([class~="not-prose"] *)) {
  font-weight: 600 !important;
}

.prose-td\:p-3 :where(td):not(:where([class~="not-prose"] *)) {
  padding: 0.75rem !important;
}

.prose-td\:border :where(td):not(:where([class~="not-prose"] *)) {
  border-width: 1px !important;
}

.prose-td\:border-gray-200 :where(td):not(:where([class~="not-prose"] *)) {
  border-color: #e5e7eb !important;
}

.prose-td\:text-gray-600 :where(td):not(:where([class~="not-prose"] *)) {
  color: #4b5563 !important;
}

.prose-hr\:border-gray-200 :where(hr):not(:where([class~="not-prose"] *)) {
  border-color: #e5e7eb !important;
}

/* Dark mode prose */
.dark .dark\:prose-invert {
  --tw-prose-body: #d1d5db;
  --tw-prose-headings: #ffffff;
  --tw-prose-lead: #9ca3af;
  --tw-prose-links: #60a5fa;
  --tw-prose-bold: #ffffff;
  --tw-prose-counters: #9ca3af;
  --tw-prose-bullets: #4b5563;
  --tw-prose-hr: #374151;
  --tw-prose-quotes: #f3f4f6;
  --tw-prose-quote-borders: #374151;
  --tw-prose-captions: #9ca3af;
  --tw-prose-code: #ffffff;
  --tw-prose-pre-code: #d1d5db;
  --tw-prose-pre-bg: #1f2937;
  --tw-prose-th-borders: #4b5563;
  --tw-prose-td-borders: #374151;
}

.dark .dark\:prose-headings\:text-white :where(h1, h2, h3, h4, h5, h6):not(:where([class~="not-prose"] *)) {
  color: #ffffff !important;
}

.dark .dark\:prose-h1\:border-gray-700 :where(h1):not(:where([class~="not-prose"] *)) {
  border-color: #374151 !important;
}

.dark .dark\:prose-h2\:text-blue-400 :where(h2):not(:where([class~="not-prose"] *)) {
  color: #60a5fa !important;
}

.dark .dark\:prose-h2\:text-emerald-400 :where(h2):not(:where([class~="not-prose"] *)) {
  color: #34d399 !important;
}

.dark .dark\:prose-p\:text-gray-300 :where(p):not(:where([class~="not-prose"] *)) {
  color: #d1d5db !important;
}

.dark .dark\:prose-li\:text-gray-300 :where(li):not(:where([class~="not-prose"] *)) {
  color: #d1d5db !important;
}

.dark .dark\:prose-li\:marker\:text-gray-500 :where(li)::marker:not(:where([class~="not-prose"] *)) {
  color: #6b7280 !important;
}

.dark .dark\:prose-ol\:text-gray-300 :where(ol):not(:where([class~="not-prose"] *)) {
  color: #d1d5db !important;
}

.dark .dark\:prose-ul\:text-gray-300 :where(ul):not(:where([class~="not-prose"] *)) {
  color: #d1d5db !important;
}

.dark .dark\:prose-a\:text-blue-400 :where(a):not(:where([class~="not-prose"] *)) {
  color: #60a5fa !important;
}

.dark .dark\:prose-a\:text-emerald-400 :where(a):not(:where([class~="not-prose"] *)) {
  color: #34d399 !important;
}

.dark .dark\:prose-strong\:text-white :where(strong):not(:where([class~="not-prose"] *)) {
  color: #ffffff !important;
}

.dark .dark\:prose-code\:text-pink-400 :where(code):not(:where([class~="not-prose"] *)) {
  color: #f472b6 !important;
}

.dark .dark\:prose-code\:text-emerald-400 :where(code):not(:where([class~="not-prose"] *)) {
  color: #34d399 !important;
}

.dark .dark\:prose-code\:bg-gray-800 :where(:not(pre) > code):not(:where([class~="not-prose"] *)) {
  background-color: #1f2937 !important;
}

.dark .dark\:prose-code\:bg-white\/10 :where(:not(pre) > code):not(:where([class~="not-prose"] *)) {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .dark\:prose-pre\:bg-gray-950 :where(pre):not(:where([class~="not-prose"] *)) {
  background-color: #030712 !important;
}

.dark .dark\:prose-pre\:border-gray-700 :where(pre):not(:where([class~="not-prose"] *)) {
  border-color: #374151 !important;
}

.dark .dark\:prose-blockquote\:text-gray-400 :where(blockquote):not(:where([class~="not-prose"] *)) {
  color: #9ca3af !important;
}

.dark .dark\:prose-table\:text-gray-300 :where(table):not(:where([class~="not-prose"] *)) {
  color: #d1d5db !important;
}

.dark .dark\:prose-th\:bg-gray-800 :where(th):not(:where([class~="not-prose"] *)) {
  background-color: #1f2937 !important;
}

.dark .dark\:prose-th\:text-white :where(th):not(:where([class~="not-prose"] *)) {
  color: #ffffff !important;
}

.dark .dark\:prose-th\:border-gray-700 :where(th):not(:where([class~="not-prose"] *)) {
  border-color: #374151 !important;
}

.dark .dark\:prose-td\:border-gray-700 :where(td):not(:where([class~="not-prose"] *)) {
  border-color: #374151 !important;
}

.dark .dark\:prose-td\:text-gray-300 :where(td):not(:where([class~="not-prose"] *)) {
  color: #d1d5db !important;
}

.dark .dark\:prose-hr\:border-gray-700 :where(hr):not(:where([class~="not-prose"] *)) {
  border-color: #374151 !important;
}

/* ==========================================================================
   After/Before Pseudo-element Utilities
   ========================================================================== */

.after\:absolute::after {
  content: '';
  position: absolute;
}

.after\:inset-0::after {
  content: '';
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* ==========================================================================
   Special Element Utilities
   ========================================================================== */

[class*="&>p"] > p:last-child {
  margin-bottom: 0;
}

.\[\&\>p\]\:mb-8 > p {
  margin-bottom: 2rem;
}

.\[\&\>p\]\:mb-3 > p {
  margin-bottom: 0.75rem;
}

.\[\&\>p\:last-child\]\:mb-0 > p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Visibility Utilities
   ========================================================================== */

.visible { visibility: visible; }

/* ==========================================================================
   Placeholder Utilities
   ========================================================================== */

.placeholder-gray-400::placeholder { color: #9ca3af; }
.dark .dark\:placeholder-gray-500::placeholder { color: #6b7280; }

/* ==========================================================================
   SVG Utilities
   ========================================================================== */

.stroke-2 { stroke-width: 2; }

/* ==========================================================================
   Heading Anchor Links
   ========================================================================== */

/* parsing.rs emits <a class="anchor" href="#id">#</a> before each heading
   text so every heading is linkable. Hide it by default so the hash isn't
   visible as text; fade in on heading hover. */
.prose :where(h1, h2, h3, h4, h5, h6) .anchor,
:where(h1, h2, h3, h4, h5, h6) > .anchor {
    display: inline-block;
    margin-left: -1.25rem;
    padding-right: 0.25rem;
    width: 1rem;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 400;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}

.prose :where(h1, h2, h3, h4, h5, h6):hover .anchor,
:where(h1, h2, h3, h4, h5, h6):hover > .anchor,
.prose :where(h1, h2, h3, h4, h5, h6) .anchor:focus,
:where(h1, h2, h3, h4, h5, h6) > .anchor:focus {
    opacity: 1;
}

.dark .prose :where(h1, h2, h3, h4, h5, h6) .anchor,
.dark :where(h1, h2, h3, h4, h5, h6) > .anchor {
    color: #6b7280;
}

/* ==========================================================================
   Shortcode Styles - Dark Mode
   ========================================================================== */

.bamboo-note-info { background: #eff6ff; }
.bamboo-note-warning { background: #fffbeb; }
.bamboo-note-error { background: #fef2f2; }

.dark .bamboo-note-info { background: rgba(59, 130, 246, 0.1); color: #d1d5db; }
.dark .bamboo-note-info strong { color: #93c5fd !important; }
.dark .bamboo-note-warning { background: rgba(245, 158, 11, 0.1); color: #d1d5db; }
.dark .bamboo-note-warning strong { color: #fbbf24 !important; }
.dark .bamboo-note-error { background: rgba(239, 68, 68, 0.1); color: #d1d5db; }
.dark .bamboo-note-error strong { color: #fca5a5 !important; }

/* ==========================================================================
   Portfolio Skills pills
   ========================================================================== */

.bamboo-skill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.bamboo-skill-row-top {
    margin-bottom: 1.5rem;
}

.bamboo-skill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 150ms ease-in-out, color 150ms ease-in-out, box-shadow 150ms ease-in-out, transform 150ms ease-in-out;
    cursor: default;
    line-height: 1.2;
}

.bamboo-skill:hover {
    border-color: #3b82f6;
    color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transform: scale(1.04);
}

.dark .bamboo-skill {
    background-color: #111827;
    color: #e5e7eb;
    border-color: #374151;
}

.dark .bamboo-skill:hover {
    border-color: #60a5fa;
    color: #93c5fd;
}

.bamboo-skill-top {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25), 0 2px 4px -1px rgba(59, 130, 246, 0.15);
}

.bamboo-skill-top:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.2);
    transform: scale(1.06);
}

.dark .bamboo-skill-top {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #ffffff;
    border-color: transparent;
}

.dark .bamboo-skill-top:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%);
    color: #ffffff;
    border-color: transparent;
}

/* ==========================================================================
   Code Blocks: copy button + toggleable line numbers
   ========================================================================== */

.bamboo-code-block {
    position: relative;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.bamboo-code-block pre {
    margin: 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
}

.bamboo-code-block pre code {
    counter-reset: bamboo-line;
    display: block;
    background: transparent;
    padding: 0;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.bamboo-line {
    counter-increment: bamboo-line;
    display: inline;
}

.bamboo-code-block[data-line-numbers] .bamboo-line::before {
    content: counter(bamboo-line);
    display: inline-block;
    width: 2.5ch;
    margin-right: 1rem;
    padding-right: 0.5rem;
    text-align: right;
    color: rgba(160, 174, 192, 0.6);
    border-right: 1px solid rgba(160, 174, 192, 0.25);
    user-select: none;
    -webkit-user-select: none;
}

.bamboo-code-toolbar {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
    z-index: 1;
}

.bamboo-code-block:hover .bamboo-code-toolbar,
.bamboo-code-block:focus-within .bamboo-code-toolbar {
    opacity: 1;
}

.bamboo-code-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: rgba(30, 41, 59, 0.55);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 120ms ease-in-out, color 120ms ease-in-out, transform 120ms ease-in-out;
}

.bamboo-code-button:hover {
    background: rgba(30, 41, 59, 0.85);
    color: #ffffff;
}

.bamboo-code-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.bamboo-code-button[data-active] {
    background: #3b82f6;
    color: #ffffff;
    border-color: transparent;
}

.bamboo-code-button[data-copied] {
    background: #10b981;
    color: #ffffff;
    border-color: transparent;
}

.bamboo-code-icon {
    width: 1rem;
    height: 1rem;
}

.bamboo-code-icon-check {
    display: none;
}

.bamboo-code-button[data-copied] .bamboo-code-icon-copy {
    display: none;
}

.bamboo-code-button[data-copied] .bamboo-code-icon-check {
    display: inline-block;
}

/* ==========================================================================
   End of Bamboo SSG Standalone CSS
   ========================================================================== */
