/*
 * Typography for staff-authored article bodies (help centre) and the long
 * prose fields on a scam directory entry.
 *
 * The markup asked for Tailwind's `prose` classes, but this build loads the
 * standalone Tailwind runtime from public/js/tailwind.js, which does not carry
 * the @tailwindcss/typography plugin — so `prose` resolved to nothing and every
 * heading, list and paragraph rendered at body size with no spacing. Rebuilding
 * the Vite bundle is not an option on shared hosting with no npm, so these
 * rules ship as a plain stylesheet and are scoped to .kb-prose.
 */

.kb-prose {
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
}

.kb-prose > :first-child {
    margin-top: 0;
}

.kb-prose > :last-child {
    margin-bottom: 0;
}

.kb-prose p {
    margin: 0 0 1.15em;
}

.kb-prose h2 {
    margin: 2em 0 0.75em;
    color: #0f172a;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.kb-prose h3 {
    margin: 1.6em 0 0.6em;
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

.kb-prose ul,
.kb-prose ol {
    margin: 0 0 1.3em;
    padding-left: 1.5rem;
}

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

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

.kb-prose li {
    margin: 0.45em 0;
    padding-left: 0.25rem;
}

.kb-prose li::marker {
    color: #0284c7;
}

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

.kb-prose em {
    font-style: italic;
}

.kb-prose a {
    color: #0284c7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kb-prose a:hover {
    color: #0369a1;
}

.kb-prose blockquote {
    margin: 1.5em 0;
    padding: 0.25rem 0 0.25rem 1.15rem;
    border-left: 3px solid #0ea5e9;
    color: #475569;
    font-style: italic;
}

.kb-prose code {
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    background: #f1f5f9;
    font-size: 0.875em;
}

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

.kb-prose table {
    width: 100%;
    margin: 0 0 1.4em;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

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

.kb-prose th {
    color: #0f172a;
    font-weight: 700;
}

/* Wide tables must scroll inside the article rather than the page. */
.kb-prose .table-scroll {
    overflow-x: auto;
}

@media (min-width: 768px) {
    .kb-prose {
        font-size: 1.0625rem;
    }

    .kb-prose h2 {
        font-size: 1.5rem;
    }
}
