/* ────────────────────────────────────────────────────────────────
   Article body — scoped typography for blog posts and press releases.

   Required because the site's global h1/h2/h3 styles use Clash Display
   uppercase tracking — perfect for marquee headlines, brutal inside a
   reading article. Same pattern as leanpivotlearning's .guide-content.
   These rules only apply inside elements marked .article-body so they
   never bleed into the rest of the site.
   ──────────────────────────────────────────────────────────────── */

.article-body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2937;
    font-size: 1.0625rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
}

.article-body > *:first-child { margin-top: 0; }
.article-body > *:last-child { margin-bottom: 0; }

/* Paragraphs */
.article-body p {
    margin: 0 0 1.25rem;
    color: #374151;
    font-size: 1.0625rem;
    line-height: 1.75;
}

/* Headings — sans, sentence case, tight (override global Clash Display) */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    text-transform: none;
    letter-spacing: -0.02em;
    color: #111827;
    line-height: 1.3;
    font-weight: 700;
    margin: 2.25rem 0 0.85rem;
}
.article-body h1 { font-size: 2rem; }
.article-body h2 { font-size: 1.625rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body h4 { font-size: 1.1rem; }

/* Lists */
.article-body ul,
.article-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}
.article-body ul { list-style: disc outside; }
.article-body ol { list-style: decimal outside; }
.article-body li {
    margin: 0.45rem 0;
    color: #374151;
    line-height: 1.65;
}
.article-body li::marker { color: #9ca3af; }
.article-body li > p { margin: 0; }
.article-body li > strong:first-child { color: #111827; }

/* Inline emphasis */
.article-body strong { color: #111827; font-weight: 700; }
.article-body em { font-style: italic; }

/* Links — accent purple, accessible underline */
.article-body a {
    color: #6d28d9;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 500;
}
.article-body a:hover {
    color: #5b21b6;
    text-decoration-thickness: 2px;
}

/* Blockquote */
.article-body blockquote {
    margin: 1.75rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 3px solid #a78bfa;
    background: #faf5ff;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #4b5563;
    font-style: italic;
}
.article-body blockquote p { margin: 0; }

/* Inline + block code */
.article-body code {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.92em;
    background: #f3f4f6;
    padding: 0.15em 0.4em;
    border-radius: 0.3em;
    color: #6d28d9;
}
.article-body pre {
    background: #111827;
    color: #f3f4f6;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.75rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}
.article-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Rule */
.article-body hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0;
}

/* Media */
.article-body img,
.article-body video,
.article-body iframe {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.75rem 0;
    display: block;
}

/* Tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.95em;
}
.article-body th,
.article-body td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}
.article-body th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}
