/* Article Content Styling (Prose) */
.prose {
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.75;
}

.prose-slate {
    color: #334155;
}

html.dark .prose-invert {
    color: #e2e8f0 !important;
}

html.dark .prose-invert *:not(code):not(pre) {
    color: #e2e8f0 !important;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
    line-height: 1.25;
    scroll-margin-top: 2rem;
}

.prose h1 {
    font-size: 2.25em;
    color: #0f172a;
}

.prose h2 {
    font-size: 1.875em;
    color: #0f172a;
}

.prose h3 {
    font-size: 1.5em;
    color: #0f172a;
}

.prose h4 {
    font-size: 1.25em;
    color: #0f172a;
}

.prose h5 {
    font-size: 1.125em;
    color: #0f172a;
}

.prose h6 {
    font-size: 1em;
    color: #0f172a;
}

.dark .prose-invert h1,
.dark .prose-invert h2,
.dark .prose-invert h3,
.dark .prose-invert h4,
.dark .prose-invert h5,
.dark .prose-invert h6 {
    color: #f1f5f9 !important;
}

html.dark .prose-invert h1,
html.dark .prose-invert h2,
html.dark .prose-invert h3,
html.dark .prose-invert h4,
html.dark .prose-invert h5,
html.dark .prose-invert h6 {
    color: #f1f5f9 !important;
}

.prose p {
    margin-bottom: 1.25em;
    color: inherit;
}

.dark .prose-invert p {
    color: #e2e8f0 !important;
}

html.dark .prose-invert p {
    color: #e2e8f0 !important;
}

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

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

.dark .prose-invert a {
    color: #60a5fa;
}

.dark .prose-invert a:hover {
    color: #93c5fd;
}

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

.dark .prose-invert strong {
    color: #f1f5f9;
}

.prose em {
    font-style: italic;
}

.prose ul,
.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

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

.prose ul>li::marker {
    color: #64748b;
}

.dark .prose-invert ul>li::marker {
    color: #94a3b8;
}

.prose ol>li::marker {
    color: #64748b;
    font-weight: 600;
}

.dark .prose-invert ol>li::marker {
    color: #94a3b8;
}

.prose blockquote {
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
    border-left: 4px solid #e2e8f0;
    font-style: italic;
    color: #64748b;
}

.dark .prose-invert blockquote {
    border-left-color: #334155;
    color: #94a3b8;
}

.prose code {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.dark .prose-invert code {
    background-color: #1e293b;
    color: #f1f5f9;
}

.prose pre {
    margin-top: 1.7em;
    margin-bottom: 1.7em;
    padding: 1em;
    border-radius: 0.5rem;
    background-color: #0f172a;
    overflow-x: auto;
}

.dark .prose-invert pre {
    background-color: #0f172a;
}

.prose pre code {
    background-color: transparent;
    color: #e2e8f0;
    padding: 0;
    font-weight: 400;
    font-size: 0.875em;
}

.dark .prose-invert pre code {
    color: #e2e8f0;
}

.prose table {
    width: 100%;
    margin-top: 2em;
    margin-bottom: 2em;
    border-collapse: collapse;
    font-size: 0.875em;
    line-height: 1.7;
}

.prose thead {
    border-bottom: 2px solid #cbd5e1;
}

.dark .prose-invert thead {
    border-bottom-color: #475569;
}

.prose thead th {
    color: #0f172a;
    font-weight: 600;
    vertical-align: bottom;
    padding: 0.5714em;
    text-align: left;
}

.dark .prose-invert thead th {
    color: #f1f5f9;
}

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

.dark .prose-invert tbody tr {
    border-bottom-color: #334155;
}

.prose tbody td {
    padding: 0.5714em;
    vertical-align: top;
}

.prose hr {
    margin-top: 3em;
    margin-bottom: 3em;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.dark .prose-invert hr {
    border-top-color: #334155;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.prose figure {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose figcaption {
    color: #64748b;
    font-size: 0.875em;
    margin-top: 0.8571em;
    text-align: center;
}

.dark .prose-invert figcaption {
    color: #94a3b8;
}

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