/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Markdown Prose Styles */
.prose {
  color: #374151;
  line-height: 1.625;
}

.prose p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.prose p:first-child {
  margin-top: 0;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #111827;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose h1:first-child, .prose h2:first-child, .prose h3:first-child,
.prose h4:first-child, .prose h5:first-child, .prose h6:first-child {
  margin-top: 0;
}

.prose h1 { font-size: 1.5rem; }
.prose h2 { font-size: 1.25rem; }
.prose h3 { font-size: 1.125rem; }
.prose h4 { font-size: 1rem; }
.prose h5 { font-size: 0.875rem; }
.prose h6 { font-size: 0.875rem; }

.prose strong {
  color: #111827;
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose code {
  color: #111827;
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

.prose pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.prose ul, .prose ol {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.prose blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #6b7280;
}

.prose a {
  color: #3b82f6;
  text-decoration: underline;
}

.prose a:hover {
  color: #1d4ed8;
}

.prose table {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.prose th, .prose td {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  text-align: left;
}

.prose th {
  background-color: #f9fafb;
  font-weight: 600;
}

.prose hr {
  border: none;
  border-top: 1px solid #d1d5db;
  margin: 1.5rem 0;
}

/* Small prose variant */
.prose-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

.prose-sm p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose-sm h1, .prose-sm h2, .prose-sm h3, .prose-sm h4, .prose-sm h5, .prose-sm h6 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.prose-sm h1 { font-size: 1.25rem; }
.prose-sm h2 { font-size: 1.125rem; }
.prose-sm h3 { font-size: 1rem; }
.prose-sm h4 { font-size: 0.875rem; }
.prose-sm h5 { font-size: 0.75rem; }
.prose-sm h6 { font-size: 0.75rem; }

.prose-sm ul, .prose-sm ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

.prose-sm blockquote {
  margin: 0.75rem 0;
}

.prose-sm table {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.prose-sm th, .prose-sm td {
  padding: 0.375rem;
}

/* Max width override */
.max-w-none {
  max-width: none;
}
