/* ============================================
   Article Content — Typography & Spacing
   ============================================ */

.article-content {
    overflow-wrap: break-word;
    word-break: break-word;
    color: #464555;
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: -0.003em;
}

/* --- Headings --- */

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #181a31;
    font-weight: 700;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin: 56px 0 24px;
    letter-spacing: -0.025em;
}
.article-content h1:first-child {
    margin-top: 0;
}

.article-content h2 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    margin: 48px 0 20px;
    letter-spacing: -0.015em;
}

.article-content h3 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    margin: 40px 0 16px;
}

.article-content h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    margin: 32px 0 14px;
}

.article-content h5 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 28px 0 12px;
}

.article-content h6 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 24px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Paragraphs --- */

.article-content p {
    margin: 0 0 24px;
    line-height: 1.8;
    color: #464555;
}
.article-content p:last-child {
    margin-bottom: 0;
}

/* --- Inline text --- */

.article-content strong {
    font-weight: 700;
    color: #181a31;
}

.article-content em {
    font-style: italic;
}

.article-content u {
    text-decoration: underline;
}

.article-content s {
    text-decoration: line-through;
}

/* --- Links --- */

.article-content a {
    color: #4231d0;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease;
}
.article-content a:hover {
    color: #5b4fe9;
}

/* --- Lists --- */

.article-content ul,
.article-content ol {
    padding-left: 28px;
    margin: 0 0 24px;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ul ul {
    list-style-type: circle;
}

.article-content ul ul ul {
    list-style-type: square;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content ol ol {
    list-style-type: lower-alpha;
}

.article-content ol ol ol {
    list-style-type: lower-roman;
}

.article-content li {
    margin: 10px 0;
    line-height: 1.75;
    color: #464555;
}
.article-content li:first-child {
    margin-top: 0;
}
.article-content li:last-child {
    margin-bottom: 0;
}

.article-content li p {
    margin: 0;
}

.article-content ul > li::marker {
    color: #4231d0;
}

.article-content ol > li::marker {
    color: #4231d0;
    font-weight: 600;
}

/* --- Task lists --- */

.article-content ul[data-type="taskList"] {
    list-style: none;
    padding-left: 0;
}

.article-content ul[data-type="taskList"] li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.article-content ul[data-type="taskList"] li > label {
    flex-shrink: 0;
    margin-top: 3px;
}

.article-content ul[data-type="taskList"] li > label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4231d0;
}

.article-content ul[data-type="taskList"] li > div {
    flex: 1;
}

/* --- Blockquote --- */

.article-content blockquote {
    border-left: 4px solid #4231d0;
    padding: 20px 24px;
    margin: 28px 0;
    background: #f4f2ff;
    border-radius: 0 12px 12px 0;
    color: #464555;
    font-style: italic;
}

.article-content blockquote p {
    margin: 0 0 10px;
    color: #464555;
}
.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content blockquote cite,
.article-content blockquote footer {
    font-style: normal;
    font-size: 14px;
    color: #777587;
    margin-top: 8px;
    display: block;
}

/* --- Callouts --- */

.article-content .callout-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 12px;
    border: 1px solid #c8c4d8;
    background: #f4f2ff;
}

.article-content .callout-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1.4;
}

.article-content .callout-content {
    flex: 1;
    min-width: 0;
}

.article-content .callout-content p {
    margin: 0;
    color: #464555;
}

.article-content .callout-block[data-callout-type="info"] {
    background: #eff6ff;
    border-color: #93c5fd;
}

.article-content .callout-block[data-callout-type="warning"] {
    background: #fffbeb;
    border-color: #fcd34d;
}

.article-content .callout-block[data-callout-type="danger"] {
    background: #fef2f2;
    border-color: #fca5a5;
}

.article-content .callout-block[data-callout-type="success"] {
    background: #f0fdf4;
    border-color: #86efac;
}

/* --- Button --- */

.article-content .button-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    margin: 8px 0 24px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', 'Baloo Da 2', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-underline-offset: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.article-content .button-block[data-button-style="primary"] {
    background: #4231d0;
    color: #ffffff;
}

.article-content .button-block[data-button-style="primary"]:hover {
    background: #3824c8;
}

.article-content .button-block[data-button-style="secondary"] {
    background: #5a5d76;
    color: #ffffff;
}

.article-content .button-block[data-button-style="secondary"]:hover {
    background: #42455d;
}

.article-content .button-block[data-button-style="outline"] {
    background: transparent;
    color: #4231d0;
    border: 2px solid #4231d0;
}

.article-content .button-block[data-button-style="outline"]:hover {
    background: #4231d0;
    color: #ffffff;
}

/* --- Code --- */

.article-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    color: #dc2626;
    font-weight: 500;
    word-break: break-word;
}

.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 28px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    word-break: normal;
}

/* --- Images --- */

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 28px 0;
    display: block;
}

.article-content figure {
    margin: 28px 0;
}

.article-content figure img {
    margin: 0;
}

.article-content figure figcaption {
    text-align: center;
    font-size: 14px;
    color: #777587;
    margin-top: 8px;
    font-style: italic;
}

/* --- Horizontal Rule --- */

.article-content hr {
    border: none;
    border-top: 2px solid #e4e4e7;
    margin: 40px 0;
}

/* --- Tables --- */

.article-content .overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 28px 0;
}

.article-content .overflow-x-auto table {
    margin: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e4e4e7;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.article-content table th {
    background: #f4f2ff;
    font-weight: 600;
    color: #181a31;
}

.article-content table td {
    color: #464555;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .article-content {
        font-size: 17px;
        line-height: 1.75;
    }
    .article-content h1 {
        font-size: 34px;
        margin: 40px 0 18px;
    }
    .article-content h2 {
        font-size: 28px;
        margin: 36px 0 16px;
    }
    .article-content h3 {
        font-size: 24px;
        margin: 32px 0 14px;
    }
    .article-content h4 {
        font-size: 20px;
        margin: 28px 0 12px;
    }
    .article-content h5 {
        font-size: 18px;
    }
    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .article-content blockquote {
        padding: 16px 20px;
    }
    .article-content pre {
        padding: 16px 20px;
    }
}

