/* Treść artykułu — edytor TinyMCE i widok publiczny (.article-content) */

.article-content,
.mce-content-body {
    line-height: 1.65;
}

.article-content > *:first-child,
.mce-content-body > *:first-child {
    margin-top: 0;
}

.article-content p,
.mce-content-body p {
    margin-bottom: 1rem;
}

.article-content .jz-lead,
.mce-content-body .jz-lead {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--jz-color-text-muted, #64748b);
    margin-bottom: 1.25rem;
}

.article-content .jz-highlight,
.mce-content-body .jz-highlight {
    background: color-mix(in srgb, var(--jz-color-accent, #f59e0b) 20%, transparent);
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--jz-color-accent, #f59e0b);
    border-radius: 0 0.25rem 0.25rem 0;
}

.article-content blockquote.jz-quote,
.mce-content-body blockquote.jz-quote {
    margin: 1.25rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid var(--jz-color-primary, #2563eb);
    background: var(--jz-color-surface, #f8fafc);
    color: var(--jz-color-text, #0f172a);
    font-style: italic;
}

.article-content blockquote.jz-quote p:last-child,
.mce-content-body blockquote.jz-quote p:last-child {
    margin-bottom: 0;
}

.article-content .jz-box,
.mce-content-body .jz-box {
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
}

.article-content .jz-box::before,
.mce-content-body .jz-box::before {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.article-content .jz-box--note,
.mce-content-body .jz-box--note {
    background: var(--jz-color-info-bg, #eff6ff);
    border-color: var(--jz-color-info-border, #93c5fd);
    color: var(--jz-color-info-text, #1e3a5f);
}

.article-content .jz-box--note::before,
.mce-content-body .jz-box--note::before {
    content: 'Uwaga';
}

.article-content .jz-box--warning,
.mce-content-body .jz-box--warning {
    background: var(--jz-color-warning-bg, #fffbeb);
    border-color: var(--jz-color-warning-border, #fcd34d);
    color: var(--jz-color-warning-text, #78350f);
}

.article-content .jz-box--warning::before,
.mce-content-body .jz-box--warning::before {
    content: 'Ostrzeżenie';
}

.article-content .jz-box p:last-child,
.mce-content-body .jz-box p:last-child {
    margin-bottom: 0;
}

.article-content .jz-caption,
.mce-content-body .jz-caption,
.article-content figcaption.jz-caption,
.mce-content-body figcaption.jz-caption {
    font-size: 0.875rem;
    color: var(--jz-color-text-muted, #64748b);
    text-align: center;
    margin: 0.5rem 0 1.25rem;
    font-style: italic;
}

.article-content .jz-footnote,
.mce-content-body .jz-footnote,
.article-content aside.jz-footnote,
.mce-content-body aside.jz-footnote {
    font-size: 0.875rem;
    color: var(--jz-color-text-muted, #64748b);
    border-top: 1px dashed var(--jz-color-border, #cbd5e1);
    padding-top: 0.75rem;
    margin-top: 1.5rem;
}

.article-content ul.jz-checklist,
.mce-content-body ul.jz-checklist {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.article-content ul.jz-checklist li,
.mce-content-body ul.jz-checklist li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.35rem;
}

.article-content ul.jz-checklist li::before,
.mce-content-body ul.jz-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--jz-color-primary, #2563eb);
    border-radius: 0.2rem;
    background: var(--jz-color-bg, #fff);
}

.article-content table,
.mce-content-body table {
    margin-bottom: 1rem;
}

.article-content figure,
.mce-content-body figure {
    margin: 1.25rem 0;
}

.article-content pre.jz-code,
.mce-content-body pre.jz-code {
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: var(--jz-color-surface, #f8fafc);
    color: var(--jz-color-text, #0f172a);
    border: 1px solid var(--jz-color-border, #e2e8f0);
    border-radius: 0.375rem;
}

.article-content code.jz-code-inline,
.mce-content-body code.jz-code-inline {
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: var(--jz-color-surface, #f1f5f9);
    color: var(--jz-color-text, #0f172a);
    border-radius: 0.25rem;
}

.jz-article-header .article-byline {
    letter-spacing: 0.01em;
}

.jz-article-header .article-hero,
.jz-article-header .jz-article-hero {
    margin-bottom: 1rem;
}

.jz-article-header .lead {
    margin-top: 0.75rem;
}
