/* --- Core Page Layout & Typography Fast Fix --- */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #090f1e !important;
  color: #ffffff !important;
  margin: 0;
  padding: 0;
}
.bg-slate-950 { background-color: #090f1e !important; }
.bg-slate-900 { background-color: #0f172a !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.border-slate-800 { border-color: #1e293b !important; }
.text-white { color: #ffffff !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-sky-400 { color: #38bdf8 !important; }

.prose h2 {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.65rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid #38bdf8;
  padding-left: 1rem;
}
.prose h3 {
  color: #f1f5f9 !important;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.prose p {
  color: #94a3b8 !important;
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  text-align: justify;
}
.prose ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
  color: #94a3b8;
  font-size: 0.95rem;
}
.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}
.prose strong { color: #ffffff !important; }
.hidden { display: none !important; }

/* --- Tailwind Native Utilities Fallback For Isolated Components --- */
.my-12 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mt-8 { margin-top: 2rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.sm\:p-8 { padding: 2rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-full { border-radius: 9999px !important; }
.w-full { width: 100% !important; }
.h-1\.5 { height: 0.375rem !important; }
.space-y-3 > * + * { margin-top: 0.75rem !important; }

/* --- Grid & Flexbox Mapping Engine --- */
.grid { display: grid !important; }
.gap-4 { gap: 1rem !important; }
.flex { display: flex !important; }
.items-center { align-items: center !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.justify-between { justify-content: space-between !important; }
.flex-wrap { flex-wrap: wrap !important; }

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* --- FIX: High Contrast Quiz Container Visuals (Matches 1000356305.jpg) --- */
.sleep-quiz-container {
  background-color: #0f172a !important; /* Slate-900 Box */
  border: 1px solid #1e293b !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}
.sleep-quiz-container h2 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}
.sleep-quiz-start-btn {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  padding: 1rem !important;
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 0.75rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
}
.sleep-quiz-start-btn:hover {
  background-color: #0369a1 !important;
}

/* --- Affiliate Presentation Card Styling Matrix --- */
.bg-gradient-to-br {
  background: linear-gradient(135deg, #090f1e 0%, #064e3b 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  border-radius: 1rem !important;
}
