/* Blog and Help Center Custom Styles */

.prose h2, .prose h3, .prose h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: oklch(var(--bc));
}

.prose h2 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-top: 3rem;
}

.prose h3 {
    font-size: 1.3rem;
    line-height: 1.35;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    list-style-type: disc;
}

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

.prose a {
    color: oklch(var(--p));
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose strong {
    color: oklch(var(--bc));
}

.prose pre {
    background-color: oklch(var(--b3));
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

.prose pre code {
    background: none;
    padding: 0;
    color: oklch(var(--bc));
    white-space: pre;
}

.prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
}

.prose th, .prose td {
    border: 1px solid oklch(var(--b3));
    /* The table scrolls sideways on phones; without a floor the columns collapse to one word per line. */
    min-width: 9rem;
    padding: 0.6rem 0.9rem;
    text-align: left;
    vertical-align: top;
}

.prose th {
    background-color: oklch(var(--b3) / 0.6);
    color: oklch(var(--bc));
    font-weight: 700;
}

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

.prose blockquote {
    border-left: 4px solid oklch(var(--p));
    padding-left: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    color: oklch(var(--bc) / 0.7);
}

.prose img {
    border-radius: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.prose code {
    background-color: oklch(var(--b3));
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: monospace;
    color: oklch(var(--p));
}

/* Glassmorphism utility for blog cards */
.blog-card-glass {
    background: rgba(var(--b2), 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
