/* ==========================================================================
   Shared rich-text typography (product description + article body).
   Tailwind's preflight resets headings/lists/tables; this restores them.
   ========================================================================== */

.bsche-prose {
    color: #334155;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.bsche-prose > * + * {
    margin-top: 1em;
}

.bsche-prose h2,
.bsche-prose h3,
.bsche-prose h4 {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 1.6em;
}

.bsche-prose h2 { font-size: 1.25rem; }
.bsche-prose h3 { font-size: 1.1rem; }
.bsche-prose h4 { font-size: 1rem; }

.bsche-prose > :first-child {
    margin-top: 0;
}

.bsche-prose a,
.bsche-prose a:visited {
    color: var(--primary-color, #0284c7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bsche-prose strong {
    color: #0f172a;
    font-weight: 700;
}

.bsche-prose ul,
.bsche-prose ol {
    padding-left: 1.4em;
}

.bsche-prose ul { list-style: disc; }
.bsche-prose ol { list-style: decimal; }

.bsche-prose li + li {
    margin-top: 0.35em;
}

.bsche-prose img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.bsche-prose figure {
    margin-left: 0;
    margin-right: 0;
}

.bsche-prose figcaption {
    margin-top: 0.5em;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

.bsche-prose blockquote {
    border-left: 3px solid var(--primary-color, #0284c7);
    background: #f8fafc;
    padding: 0.75em 1em;
    color: #475569;
}

.bsche-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    display: block;
    overflow-x: auto;
}

.bsche-prose th,
.bsche-prose td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

.bsche-prose thead th,
.bsche-prose th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
}

.bsche-prose code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9em;
    background: #f1f5f9;
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.bsche-prose hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.bsche-prose h2,
.bsche-prose h3 {
    scroll-margin-top: 140px;
}

.bsche-prose p {
    margin-top: 0;
}
