/*
 * article-v2.css - Baza Wiedzy artykuły (v2 DNA)
 * 67 artykułów w pages/baza-wiedzy/*.html.
 * Migracja z v1 (warmth brick + Playfair/Plus Jakarta + soft shadows)
 * do v2 (Geist + Instrument Serif italic accent + JetBrains Mono, #FF5630).
 *
 * Wymaga stacku v2: tokens.css + fonts.css + core.css + components.css + legacy.css
 *
 * DNA v2 artykułu:
 *  - Geist sans default, Instrument Serif italic TYLKO akcent
 *  - #FF5630 jedyny akcent (blockquote border, linki, highlight, CTA)
 *  - Border 1px solid var(--border) zamiast miękkich cieni
 *  - Radius jednolite 14px (--radius), 8px dla małych
 *  - Zero gradient blobów, zero dekoracyjnych ::before z tłem
 *  - text-wrap: balance na nagłówkach (unika orphan words)
 *  - Mobile-first, breakpointy na końcu
 */


/* ============================================================
   BODY / SHELL
   ============================================================ */
body.kb-page,
body.kb-page-article {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

.kb-shell,
.kb-shell-article {
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 2;
}


/* ============================================================
   ARTICLE PAGE (container)
   ============================================================ */
.kb-article-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    position: relative;
    z-index: 2;
}


/* ============================================================
   BREADCRUMBS
   ============================================================ */
.kb-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin-bottom: 36px;
}
.kb-breadcrumbs a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s ease;
    border-bottom: 1px solid transparent;
}
.kb-breadcrumbs a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent-line);
}
.kb-breadcrumbs span[aria-hidden="true"] {
    color: var(--text-mute);
    user-select: none;
}
.kb-breadcrumbs span[aria-current="page"] {
    color: var(--text);
    font-weight: 500;
}
.kb-breadcrumb-label {
    color: var(--text-faint);
    cursor: default;
}


/* ============================================================
   HEADER (kb-header + kb-article-header)
   ============================================================ */
.kb-header,
.kb-article-header {
    margin: 0 0 40px;
    padding: 0 0 32px;
    border-bottom: 1px solid var(--border);
    text-wrap: balance;
}
.kb-header h1,
.kb-article-header h1,
.kb-article-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 18px;
    text-wrap: balance;
    max-width: 22ch;
}
.kb-meta,
.kb-article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin: 0;
}
.kb-article-info span {
    display: inline-flex;
    align-items: center;
}
.kb-article-info span + span::before {
    content: '·';
    margin-right: 16px;
    color: var(--text-mute);
}


/* ============================================================
   TOC (spis treści)
   ============================================================ */
.kb-toc {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 0 0 40px;
}
.kb-toc h2 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}
.kb-toc ul,
.kb-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kb-toc li {
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-dim);
    counter-increment: kb-toc-counter;
}
.kb-toc ol {
    counter-reset: kb-toc-counter;
}
.kb-toc li::marker,
.kb-toc li::before {
    content: none;
}
.kb-toc a {
    color: var(--text-dim);
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.kb-toc a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent-line);
}


/* ============================================================
   ARTICLE CONTENT (typography)
   ============================================================ */
.kb-article-content,
.kb-article-page section {
    color: var(--text);
}

.kb-article-page h2,
.kb-article-content h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(1.5rem, 2.8vw, 1.95rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 56px 0 18px;
    scroll-margin-top: 80px;
    text-wrap: balance;
}
.kb-article-page h2:first-child,
.kb-article-content h2:first-child,
.kb-article-page section:first-of-type > h2:first-child {
    margin-top: 0;
}
.kb-article-page h3,
.kb-article-content h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.22rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 36px 0 12px;
    scroll-margin-top: 80px;
}
.kb-article-page h4,
.kb-article-content h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 28px 0 10px;
}
.kb-article-page h5,
.kb-article-content h5,
.kb-article-page h6,
.kb-article-content h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--text);
    margin: 24px 0 8px;
}

.kb-article-page p,
.kb-article-content p {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    letter-spacing: -0.005em;
    margin: 0 0 18px;
    max-width: none;
}

.kb-article-page strong,
.kb-article-content strong {
    color: var(--text);
    font-weight: 600;
}
.kb-article-page em,
.kb-article-content em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text);
}

/* Inline links */
.kb-article-page a,
.kb-article-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-line);
    transition: border-color 0.15s ease, color 0.15s ease;
}
.kb-article-page a:hover,
.kb-article-content a:hover {
    border-bottom-color: var(--accent);
}

/* Lists */
.kb-article-page ul,
.kb-article-content ul,
.kb-article-page ol,
.kb-article-content ol {
    margin: 0 0 22px;
    padding-left: 28px;
    color: var(--text);
    font-size: 1.05rem;
}
.kb-article-page li,
.kb-article-content li {
    margin-bottom: 8px;
    line-height: 1.65;
}
.kb-article-page li::marker,
.kb-article-content li::marker {
    color: var(--accent);
}
.kb-article-page ul ul,
.kb-article-page ol ol,
.kb-article-content ul ul,
.kb-article-content ol ol {
    margin: 8px 0 8px;
}

/* Blockquote */
.kb-article-page blockquote,
.kb-article-content blockquote {
    margin: 32px 0;
    padding: 8px 0 8px 24px;
    border-left: 1px solid var(--border-strong);
    background: transparent;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.55;
    letter-spacing: -0.005em;
    color: var(--text);
}
.kb-article-page blockquote p,
.kb-article-content blockquote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0 0 12px;
    color: var(--text);
}
.kb-article-page blockquote p:last-child,
.kb-article-content blockquote p:last-child {
    margin-bottom: 0;
}
.kb-article-page blockquote strong,
.kb-article-content blockquote strong {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

/* Code blocks (pre/code) */
.kb-article-page pre,
.kb-article-content pre {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text);
}
.kb-article-page code,
.kb-article-content code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--text);
}
.kb-article-page pre code,
.kb-article-content pre code {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 0.88rem;
}

/* HR separators */
.kb-article-page hr,
.kb-article-content hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}


/* ============================================================
   HIGHLIGHT (kolorowy box z tipem/frameworkiem)
   ============================================================ */
.kb-highlight {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 28px 0;
}
.kb-highlight h3,
.kb-highlight h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px;
    font-size: 1.1rem;
    letter-spacing: -0.015em;
}
.kb-highlight p {
    color: var(--text);
    margin: 0 0 10px;
}
.kb-highlight p:last-child {
    margin-bottom: 0;
}
.kb-highlight ul,
.kb-highlight ol {
    margin: 10px 0 10px;
    padding-left: 24px;
    color: var(--text);
}
.kb-highlight li::marker {
    color: var(--accent);
}


/* ============================================================
   NOTE (info box - neutralny)
   ============================================================ */
.kb-note {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 28px 0;
}
.kb-note h3,
.kb-note h4 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 10px;
}
.kb-note p {
    color: var(--text-dim);
    font-size: 1rem;
    margin: 0 0 8px;
}
.kb-note p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   WARNING (info box - ostrzeżenie)
   ============================================================ */
.kb-warning {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 28px 0;
}
.kb-warning h3,
.kb-warning h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    text-transform: none;
}
.kb-warning p {
    color: var(--text);
    font-size: 1rem;
    margin: 0 0 8px;
}
.kb-warning p:last-child {
    margin-bottom: 0;
}
.kb-warning ul,
.kb-warning ol {
    margin: 10px 0 10px;
    padding-left: 24px;
    color: var(--text);
}


/* ============================================================
   TAKEAWAYS (kluczowe wnioski)
   ============================================================ */
.kb-takeaways {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    margin: 48px 0;
}
.kb-takeaways h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 18px;
    text-transform: none;
    scroll-margin-top: 80px;
}
.kb-takeaways ul,
.kb-takeaways ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text);
    font-size: 1rem;
}
.kb-takeaways li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text);
}
.kb-takeaways li::marker {
    color: var(--accent);
}
.kb-takeaways li strong {
    color: var(--text);
    font-weight: 600;
}


/* ============================================================
   CHECKLIST
   ============================================================ */
.kb-checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.kb-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--text);
    transition: border-color 0.15s ease;
}
.kb-checklist-item:hover {
    border-color: var(--border-strong);
}
.kb-checklist-item::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
    background: var(--bg);
    margin-top: 2px;
}
.kb-checklist-item.is-checked::before,
.kb-checklist-item[data-checked="true"]::before {
    background: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
}


/* ============================================================
   CTA (końcowy blok)
   ============================================================ */
.kb-cta {
    background: var(--bg-elev-1);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius);
    padding: 32px 36px;
    margin: 48px 0 0;
    position: relative;
    overflow: hidden;
}
.kb-cta > * {
    position: relative;
    z-index: 1;
}
.kb-cta h2,
.kb-cta h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text);
    margin: 0 0 14px;
    letter-spacing: -0.015em;
}
.kb-cta p {
    color: var(--text-dim);
    font-size: 1rem;
    margin: 0 0 12px;
}
.kb-cta p:last-child {
    margin-bottom: 0;
}
.kb-cta a {
    color: var(--accent);
    font-weight: 500;
    border-bottom: 1px solid var(--accent-line);
}
.kb-cta a:hover {
    border-bottom-color: var(--accent);
}


/* ============================================================
   AUTHOR BIO
   ============================================================ */
.kb-author-bio {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 48px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--border);
}
.kb-author-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.kb-author-info {
    flex: 1;
    min-width: 0;
}
.kb-author-info h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}
.kb-author-info p {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-dim);
    margin: 0;
    max-width: 54ch;
}


/* ============================================================
   LEAD MAGNET (opt-in form)
   ============================================================ */
.kb-lead-magnet {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    margin: 56px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.kb-lead-magnet > * {
    position: relative;
    z-index: 1;
}
.kb-lead-magnet__header {
    margin-bottom: 28px;
}
.kb-lead-magnet__header h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 10px;
    text-wrap: balance;
}
.kb-lead-magnet__subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-dim);
    margin: 0 auto 10px;
    max-width: 54ch;
}
.kb-lead-magnet__audience {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--accent);
    margin: 0 auto;
    max-width: 48ch;
}
.kb-lead-magnet__audience strong {
    color: var(--accent);
    font-weight: 500;
}
.kb-lead-magnet__form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}
.kb-lead-magnet__inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.kb-lead-magnet__inputs input,
.kb-lead-magnet__form input[type="text"],
.kb-lead-magnet__form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kb-lead-magnet__inputs input:focus,
.kb-lead-magnet__form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.kb-lead-magnet__inputs input::placeholder {
    color: var(--text-mute);
}
.kb-lead-magnet__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-dim);
    cursor: pointer;
}
.kb-lead-magnet__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}
.kb-lead-magnet__checkbox a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent-line);
}
.kb-lead-magnet__checkbox a:hover {
    border-bottom-color: var(--accent);
}
.kb-lead-magnet__submit {
    margin-top: 6px;
    padding: 13px 22px;
    background: var(--accent);
    color: #0A0A0A;
    border: 1px solid var(--accent);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: all 0.18s ease;
    width: 100%;
    text-align: center;
}
.kb-lead-magnet__submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -8px var(--accent-line);
}
.kb-lead-magnet__submit span {
    color: #0A0A0A;
    font-weight: 600;
}


/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.kb-related-articles {
    margin: 56px 0 0;
    padding: 32px 0 0;
    border-top: 1px solid var(--border);
}
.kb-related-articles h2,
.kb-related-articles h3 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 20px;
}
.kb-related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.kb-related-articles li {
    margin: 0;
    padding: 0;
}
.kb-related-articles li::marker {
    content: none;
}
.kb-related-articles a {
    display: block;
    padding: 18px 20px;
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.kb-related-articles a:hover {
    border-color: var(--accent-line);
    color: var(--accent);
    transform: translateY(-2px);
}


/* ============================================================
   ALIASY LEGACY (nadpisują zmienne z inline-styles-extracted.css)
   Cel: is-* klasy z hardcoded v1 kolorami (--warmth-*, --index-*)
   automatycznie podmienią się na v2 accent.
   ============================================================ */
:root {
    --warmth-primary: #FF5630;
    --warmth-secondary: #8E8E8E;
    --warmth-accent: #FF5630;
    --warmth-gold: #FF5630;
    --warmth-cream: #FAFAFA;
    --warmth-charcoal: #0A0A0A;
    --warmth-plum: #FF5630;
    --index-charcoal: #0A0A0A;
    --index-charcoal-80: rgba(10, 10, 10, 0.8);
    --index-font-serif: 'Instrument Serif', serif;
}


/* ============================================================
   MOBILE (< 820px)
   ============================================================ */
@media (max-width: 820px) {
    .kb-article-page {
        padding: 32px 20px 64px;
    }
    .kb-header,
    .kb-article-header {
        margin-bottom: 28px;
        padding-bottom: 24px;
    }
    .kb-header h1,
    .kb-article-header h1,
    .kb-article-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
    .kb-article-page h2,
    .kb-article-content h2 {
        font-size: clamp(1.3rem, 5vw, 1.65rem);
        margin: 40px 0 14px;
    }
    .kb-article-page h3,
    .kb-article-content h3 {
        font-size: 1.1rem;
        margin: 28px 0 10px;
    }
    .kb-article-page p,
    .kb-article-content p,
    .kb-article-page ul,
    .kb-article-content ul,
    .kb-article-page ol,
    .kb-article-content ol {
        font-size: 1rem;
    }
    .kb-article-page blockquote,
    .kb-article-content blockquote {
        padding: 16px 0 16px 20px;
        margin: 24px 0;
    }
    .kb-article-page blockquote p,
    .kb-article-content blockquote p {
        font-size: 1.08rem;
    }
    .kb-toc {
        padding: 20px 22px;
    }
    .kb-highlight,
    .kb-takeaways {
        padding: 22px 22px;
    }
    .kb-note,
    .kb-warning {
        padding: 18px 20px;
    }
    .kb-cta,
    .kb-lead-magnet {
        padding: 28px 22px;
    }
    .kb-lead-magnet__inputs {
        grid-template-columns: 1fr;
    }
    .kb-related-articles ul {
        grid-template-columns: 1fr;
    }
    .kb-author-bio {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .kb-author-info p {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .kb-article-page {
        padding: 24px 16px 56px;
    }
    .kb-breadcrumbs {
        font-size: 0.72rem;
        gap: 6px;
    }
    .kb-article-page pre,
    .kb-article-content pre {
        padding: 14px 16px;
        font-size: 0.82rem;
    }
}


/* ============================================================
   LEGACY IS-* OVERRIDES (neutralize warmth v1 decorations)
   Aplikowane WEWNATRZ .kb-article-page (tylko artykuly baza-wiedzy)
   Usuwa:
   - kolorowe border-left (v1 warmth-primary/#C94A2A)
   - jaskrawe tla (kremowe #fff8e6, #FBF7F2 gradients)
   - dekoracyjne kolorowe akcenty
   ============================================================ */
.kb-article-page [class*="is-"],
.kb-article-content [class*="is-"] {
    border-left-width: 0 !important;
    border-left-color: transparent !important;
    border-left: 0 !important;
    box-shadow: none !important;
}

/* Neutralizuj jaskrawe warmth tla na is-* klasach */
.kb-article-page [class*="is-"][class*="0d5da397"],
.kb-article-page [class*="is-"][class*="1a36a4db"],
.kb-article-page [class*="is-"][class*="1bf16321"],
.kb-article-page [class*="is-"][class*="1da7a6ad"],
.kb-article-page [class*="is-"][class*="220be712"],
.kb-article-page [class*="is-"][class*="2b9e5a3f"],
.kb-article-page [class*="is-"][class*="3cae61b1"],
.kb-article-page [class*="is-"][class*="4158e895"],
.kb-article-page [class*="is-"][class*="12582889"],
.kb-article-page [class*="is-"][class*="1aceef8d"] {
    background: var(--bg-elev-1) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
}


/* ============================================================
   NARZEDZIA/ ARTICLE-* CLASSES (aliasy do kb-* stylu)
   Strony z narzedzia/*.html uzywaja article-wrapper, article-header,
   article-content, article-breadcrumbs, article-meta, article-hero-img,
   article-cta zamiast kb-*. Stylujemy identycznie.
   ============================================================ */

body:has(.article-wrapper) {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

.article-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    position: relative;
    z-index: 2;
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin-bottom: 36px;
}
.article-breadcrumbs a {
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.article-breadcrumbs a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent-line);
}
.article-breadcrumbs span {
    color: var(--text-mute);
}
.article-breadcrumbs > span:last-child {
    color: var(--text);
    font-weight: 500;
}

.article-header {
    margin: 0 0 32px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--border);
    text-wrap: balance;
}
.article-header h1 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 18px;
    text-wrap: balance;
    max-width: 22ch;
}
.article-header h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin: 0;
}
.article-meta span + span::before {
    content: '·';
    margin-right: 20px;
    color: var(--text-mute);
}

.article-hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 0 0 40px;
    display: block;
}

/* Article content typography (same as kb-article-content) */
.article-content {
    color: var(--text);
}
.article-content h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(1.5rem, 2.8vw, 1.95rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 56px 0 18px;
    scroll-margin-top: 80px;
    text-wrap: balance;
}
.article-content h2:first-child {
    margin-top: 0;
}
.article-content h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.22rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 36px 0 12px;
    scroll-margin-top: 80px;
}
.article-content h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin: 28px 0 10px;
}
.article-content p {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 18px;
}
.article-content strong { color: var(--text); font-weight: 600; }
.article-content em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text);
}
.article-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-line);
    transition: border-color 0.15s ease, color 0.15s ease;
}
.article-content a:hover {
    border-bottom-color: var(--accent);
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
    color: var(--text);
}
.article-content li {
    margin-bottom: 10px;
    line-height: 1.65;
}
.article-content li::marker {
    color: var(--accent);
}
.article-content li strong {
    color: var(--text);
    font-weight: 600;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 8px 0 8px 24px;
    border-left: 1px solid var(--border-strong);
    background: transparent;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--text);
}

/* Tables w article-content */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.95rem;
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.article-content th {
    font-family: var(--font-sans);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-elev-2);
    color: var(--text);
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--border);
}
.article-content td {
    padding: 12px 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.55;
}
.article-content tbody tr:last-child td {
    border-bottom: 0;
}

/* Code/pre w article-content */
.article-content code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--bg-elev-2);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text);
}
.article-content pre {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    overflow-x: auto;
    margin: 28px 0;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Article CTA */
.article-cta {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    margin: 48px 0 0;
}
.article-cta h2,
.article-cta h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text);
    margin: 0 0 14px;
    letter-spacing: -0.015em;
}
.article-cta p {
    color: var(--text-dim);
    font-size: 1rem;
    margin: 0 0 12px;
}
.article-cta a {
    color: var(--accent);
    font-weight: 500;
    border-bottom: 1px solid var(--accent-line);
}
.article-cta a:hover {
    border-bottom-color: var(--accent);
}

@media (max-width: 820px) {
    .article-wrapper {
        padding: 32px 20px 60px;
    }
    .article-content h2 {
        margin-top: 40px;
    }
    .article-content table {
        font-size: 0.88rem;
    }
    .article-content th,
    .article-content td {
        padding: 10px 12px;
    }
}
