.blog-prose {
    font-family: "payda", ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.9;
    text-align: right;
    color: #1e293b;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* Quill / paste sometimes inject nowrap or inline layout — force readable wrap on the public site */
.blog-prose :where(p, h1, h2, h3, h4, h5, h6, li, blockquote, td, th, figcaption) {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal !important;
}

.blog-prose span {
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal !important;
}

.blog-prose :where(p, h1, h2, h3, h4, h5, h6, li, blockquote, pre, ol, ul, .ql-code-block-container) {
    display: block;
}

.blog-prose table {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.blog-prose :where(strong, b, em, i, u, s, a, code):not(pre code) {
    white-space: normal !important;
}

.blog-prose h1,
.blog-prose h2 {
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    scroll-margin-top: 7rem;
    color: #0f172a;
}

.blog-prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    scroll-margin-top: 6rem;
    color: #0f172a;
}

.blog-prose p {
    margin-bottom: 1rem;
    background: transparent !important;
    color: inherit;
}

.blog-prose ul,
.blog-prose ol {
    margin: 1rem 0 1.25rem;
    padding-right: 1.5rem;
    list-style: none;
}

.blog-prose li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-right: 0.25rem;
    background: transparent !important;
    border: none !important;
    color: inherit;
}

.blog-prose .ql-ui {
    display: none !important;
}

.blog-prose ol > li[data-list="bullet"]::before {
    content: "•";
    position: absolute;
    right: -1rem;
    color: #004ac6;
    font-weight: 700;
}

.blog-prose ol > li[data-list="ordered"] {
    counter-increment: blog-ol;
}

.blog-prose ol {
    counter-reset: blog-ol;
}

.blog-prose ol > li[data-list="ordered"]::before {
    content: counter(blog-ol) ".";
    position: absolute;
    right: -1.35rem;
    font-weight: 600;
    color: #64748b;
}

.blog-prose ul > li::before {
    content: "•";
    position: absolute;
    right: -1rem;
    color: #004ac6;
    font-weight: 700;
}

.blog-prose blockquote {
    margin: 1.5rem 0;
    border-right: 4px solid rgb(0 74 198 / 0.4);
    background: rgb(0 74 198 / 0.06);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    color: #334155;
}

.blog-prose img {
    margin: 1.5rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    border: 1px solid rgb(226 232 240 / 0.8);
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.04);
}

.blog-prose pre,
.blog-prose .ql-code-block-container {
    margin: 1.5rem 0;
    overflow-x: auto;
    border-radius: 1rem;
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    white-space: pre-wrap !important;
    word-break: break-word;
}

.blog-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
}

.blog-prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.blog-prose th,
.blog-prose td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: right;
}

.blog-prose a {
    color: #004ac6;
    font-weight: 600;
}

.blog-prose [class*="ql-"] {
    background: transparent !important;
    color: inherit !important;
}