/*
 * 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.
 */

/* Prose styling for markdown content */
.prose {
  color: #374151;
  max-width: 65ch;
}

.prose h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1111111;
  margin-top: 0;
  margin-bottom: 2rem;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3333333;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.prose a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

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

.prose strong {
  font-weight: 600;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.625em;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.625em;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

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

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #e5e7eb;
  padding-left: 1rem;
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
  color: #6b7280;
}

.prose code {
  font-size: 0.875em;
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.prose pre {
  overflow-x: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  font-weight: 400;
}

.prose table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  line-height: 1.7142857;
}

.prose thead {
  border-bottom: 1px solid #d1d5db;
}

.prose thead th {
  vertical-align: bottom;
  padding-right: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-left: 0.5714286em;
  font-weight: 600;
}

.prose tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.prose tbody td {
  vertical-align: baseline;
  padding: 0.5714286em;
}

/* Code block styling */
.code-block {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0.375rem;
  background-color: #1e293b;
  overflow: hidden;
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
}

.highlight {
  background-color: #1e293b;
  color: #e2e8f0;
}

/* Rouge syntax highlighting */
.highlight .c { color: #64748b; font-style: italic } /* Comment */
.highlight .k { color: #c084fc; font-weight: bold } /* Keyword */
.highlight .o { color: #f8fafc } /* Operator */
.highlight .p { color: #f8fafc } /* Punctuation */
.highlight .cm { color: #64748b; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #64748b; font-style: italic } /* Comment.Preproc */
.highlight .c1 { color: #64748b; font-style: italic } /* Comment.Single */
.highlight .cs { color: #64748b; font-style: italic } /* Comment.Special */
.highlight .kc { color: #c084fc; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #c084fc; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #c084fc; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #c084fc; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #c084fc; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #f9a8d4; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #f87171 } /* Literal.Number */
.highlight .s { color: #86efac } /* Literal.String */
.highlight .na { color: #7dd3fc } /* Name.Attribute */
.highlight .nb { color: #fbbf24 } /* Name.Builtin */
.highlight .nc { color: #f9a8d4 } /* Name.Class */
.highlight .no { color: #f87171 } /* Name.Constant */
.highlight .nd { color: #a78bfa } /* Name.Decorator */
.highlight .ni { color: #f8fafc } /* Name.Entity */
.highlight .ne { color: #f87171 } /* Name.Exception */
.highlight .nf { color: #7dd3fc } /* Name.Function */
.highlight .nl { color: #f8fafc } /* Name.Label */
.highlight .nn { color: #f8fafc } /* Name.Namespace */
.highlight .nt { color: #c084fc } /* Name.Tag */
.highlight .nv { color: #fbbf24 } /* Name.Variable */
.highlight .ow { color: #c084fc; font-weight: bold } /* Operator.Word */
.highlight .w { color: #f8fafc } /* Text.Whitespace */
.highlight .mf { color: #f87171 } /* Literal.Number.Float */
.highlight .mh { color: #f87171 } /* Literal.Number.Hex */
.highlight .mi { color: #f87171 } /* Literal.Number.Integer */
.highlight .mo { color: #f87171 } /* Literal.Number.Oct */
.highlight .sb { color: #86efac } /* Literal.String.Backtick */
.highlight .sc { color: #86efac } /* Literal.String.Char */
.highlight .sd { color: #86efac } /* Literal.String.Doc */
.highlight .s2 { color: #86efac } /* Literal.String.Double */
.highlight .se { color: #f87171 } /* Literal.String.Escape */
.highlight .sh { color: #86efac } /* Literal.String.Heredoc */
.highlight .si { color: #f87171 } /* Literal.String.Interpol */
.highlight .sx { color: #86efac } /* Literal.String.Other */
.highlight .sr { color: #86efac } /* Literal.String.Regex */
.highlight .s1 { color: #86efac } /* Literal.String.Single */
.highlight .ss { color: #86efac } /* Literal.String.Symbol */
