body {
    background-color: #000000;
}

/* Scope all styles under .prose only to avoid affecting outer React app */
.prose { max-width: 768px; font-size: 1.125rem; line-height: 1.8; padding: 0; margin: 0 auto; color: #e5e7eb; }

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 { color: #ffffff; font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; }

.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.5rem; }

.prose p { color: #a3a3a3; margin-bottom: 1rem; }

.prose a { color: #60a5fa; text-decoration: none; }
.prose a:hover { text-decoration: underline; }

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

.prose code { color: #fca5a5; background-color: #111827; padding: 0.125rem 0.25rem; border-radius: 0.25rem; font-size: 0.875rem; font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; }

.prose pre { background-color: #0b1220; color: #e5e7eb; padding: 1.5rem; border-radius: 0.5rem; overflow-x: auto; margin: 1.5rem 0; border: 1px solid #1f2937; }

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

.prose blockquote { border-left: 4px solid #60a5fa; background-color: #0f172a; padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 0.25rem; color: #cbd5e1; }

.prose ul,
.prose ol { color: #cbd5e1; margin-bottom: 1.5rem; padding-left: 1.5rem; }

.prose li { color: #cbd5e1; margin-bottom: 0.5rem; }

.prose table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 0.875rem; background-color: #0b1220; color: #e5e7eb; }

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

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

.prose img { border-radius: 0.5rem; box-shadow: 0 10px 20px -10px rgba(0,0,0,0.6); margin: 1.5rem auto; max-width: 100%; height: auto; }

.prose iframe { width: 100%; max-width: 560px; height: 315px; margin: 1.5rem auto; border-radius: 0.5rem; border: none; display: block; }

/* Enhanced blockquotes with attribution */
.prose blockquote {
    position: relative;
    padding: 1.5rem 2rem 1.5rem 3rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
}

.prose blockquote::before { content: '"'; font-size: 4rem; color: #334155; position: absolute; top: -0.5rem; left: 0.5rem; font-family: serif; }

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

.prose blockquote p:last-of-type {
    margin-bottom: 1rem;
}

/* Enhanced table styling */
.prose table th { background-color: #0b1220; color: #e5e7eb; font-weight: 600; }

.prose table tr:nth-child(even) { background-color: #0f172a; }

.prose table tr:hover { background-color: #111827; }

/* Use default list styles */
.prose ol { list-style: decimal; padding-left: 1.5rem; }
.prose ol > li { padding-left: 0; margin-bottom: 0.5rem; }

.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose ul > li { padding-left: 0; margin-bottom: 0.5rem; }

/* Link styling enhancements */
.prose a[href^="http"]::after { content: " ↗"; font-size: 0.8em; color: #94a3b8; }

.prose a[href^="mailto:"]::after { content: " ✉"; font-size: 0.8em; color: #94a3b8; }

/* Article Footer */
.article-footer {
    margin-top: 2rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.share-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.share-button-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.share-button-primary:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

.share-button-secondary {
    background-color: #6b7280;
    color: #ffffff;
}

.share-button-secondary:hover {
    background-color: #4b5563;
    color: #ffffff;
}

.share-icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: 4rem;
}

.footer-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
    color: #6b7280;
}

.footer-links {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.footer-link {
    color: #6b7280;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #111827;
}

/* Utilities */
.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .prose { font-size: 1rem; }
    .prose h1 { font-size: 1.75rem; }
    .prose h2 { font-size: 1.5rem; }
    .prose h3 { font-size: 1.25rem; }
    .prose iframe { max-width: 100%; height: 240px; }
    .prose pre { padding: 1rem; font-size: 0.875rem; }
}