/* ═══════════════════════════════════════════════════════════
   KB Single Article — light, brand-aligned, readable
   ═══════════════════════════════════════════════════════════ */
.kb-breadcrumb-wrapper--article { padding: 90px 0 0; }

.kba-hero {
    padding: 24px 0 36px;
    background: transparent;
}
.kba-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e8347a;
    text-decoration: none;
    background: rgba(232, 52, 122, 0.08);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(232, 52, 122, 0.22);
    margin-bottom: 18px;
    transition: all 0.18s ease;
}
.kba-eyebrow:hover {
    background: rgba(232, 52, 122, 0.14);
    transform: translateY(-1px);
}
.kba-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #1a1a1a;
    margin: 0 0 14px;
    max-width: 880px;
}
.kba-excerpt {
    font-size: 17px;
    line-height: 1.55;
    color: rgba(42, 42, 42, 0.7);
    max-width: 700px;
    margin: 0;
    font-weight: 300;
}

/* ─── Layout (sticky TOC rail + body) ─── */
.kba-article { padding-bottom: 80px; }
.kba-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 1024px) {
    .kba-layout {
        grid-template-columns: 240px 1fr;
        gap: 64px;
    }
}

/* ─── TOC ─── */
.kba-toc-rail {
    align-self: start;
}
@media (min-width: 1024px) {
    .kba-toc-rail {
        position: sticky;
        top: 96px;
    }
}
.kba-toc {
    background: #fff;
    border: 1px solid rgba(205, 160, 127, 0.25);
    border-radius: 14px;
    padding: 18px 20px;
}
.kba-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(42, 42, 42, 0.55);
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(205, 160, 127, 0.22);
}
.kba-toc-list { list-style: none; padding: 0; margin: 0; }
.kba-toc-item { margin: 0; padding: 0; }
.kba-toc-item--h3 { padding-left: 14px; }
.kba-toc-link {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(42, 42, 42, 0.7);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 10px;
    margin-left: -10px;
    transition: all 0.18s ease;
}
.kba-toc-link:hover {
    color: #1a1a1a;
    border-left-color: rgba(232, 52, 122, 0.4);
}
.kba-toc-link.is-active {
    color: #e8347a;
    border-left-color: #e8347a;
    font-weight: 600;
}

/* ─── Body typography ─── */
.kba-body {
    max-width: 760px;
    color: #2a2a2a;
    font-size: 16px;
    line-height: 1.7;
}
.kba-body p { margin: 0 0 18px; }
.kba-body p.kb-lead {
    font-size: 18.5px;
    line-height: 1.55;
    color: rgba(42, 42, 42, 0.85);
    font-weight: 400;
    border-left: 3px solid #e8347a;
    padding-left: 18px;
    margin: 4px 0 32px;
    background: linear-gradient(90deg, rgba(232, 52, 122, 0.04), transparent);
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 0 8px 8px 0;
}
.kba-body h2,
.kba-body .kb-heading[id^="toc-"] {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 44px 0 16px;
    scroll-margin-top: 96px;
}
.kba-body h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 28px 0 10px;
    scroll-margin-top: 96px;
}
.kba-body ul,
.kba-body ol {
    margin: 0 0 22px;
    padding-left: 22px;
}
.kba-body li { margin: 0 0 8px; line-height: 1.6; }
.kba-body strong { color: #1a1a1a; font-weight: 600; }
.kba-body a {
    color: #e8347a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.18s;
}
.kba-body a:hover { color: #d0266e; }
.kba-body code {
    background: rgba(232, 52, 122, 0.08);
    color: #b91c5c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ─── Bottom CTA ─── */
.kba-cta {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, #fdf2f8 0%, #fff 50%, #fef6e9 100%);
    border: 1px solid rgba(232, 52, 122, 0.22);
    border-radius: 18px;
    text-align: center;
}
.kba-cta-ttl {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: -0.015em;
}
.kba-cta-sub {
    font-size: 15px;
    color: rgba(42, 42, 42, 0.7);
    max-width: 540px;
    margin: 0 auto 22px;
    line-height: 1.55;
}
.kba-cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
/* CTA buttons — explicit overrides defeat .kba-body a inheritance */
.kba-body .kba-cta-btn,
.kba-body .kba-cta-btn:hover,
.kba-body .kba-cta-btn:focus,
.kba-body .kba-cta-btn:visited {
    text-decoration: none !important;
}
.kba-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
}
.kba-body .kba-cta-btn-primary,
.kba-cta-btn-primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff !important;
    border: 1px solid #1a1a1a;
}
.kba-body .kba-cta-btn-primary:hover,
.kba-cta-btn-primary:hover {
    background: linear-gradient(135deg, #e8347a 0%, #f472b6 100%);
    border-color: #e8347a;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -12px rgba(232, 52, 122, 0.5);
}
.kba-body .kba-cta-btn-ghost,
.kba-cta-btn-ghost {
    background: #fff;
    color: #1a1a1a !important;
    border: 1px solid rgba(42, 42, 42, 0.15);
}
.kba-body .kba-cta-btn-ghost:hover,
.kba-cta-btn-ghost:hover {
    border-color: rgba(232, 52, 122, 0.5);
    color: #e8347a !important;
}

/* Related cards — also inside .kba-body, kill underline + reset color */
.kba-body .kba-related-card,
.kba-body .kba-related-card:hover {
    text-decoration: none !important;
    color: inherit !important;
}
.kba-body .kba-related-card h4 { color: #1a1a1a !important; }
.kba-body .kba-related-card:hover h4 { color: #e8347a !important; }

/* ─── Related ─── */
.kba-related { margin-top: 56px; padding-top: 36px; border-top: 1px solid rgba(205, 160, 127, 0.25); }
.kba-related-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(42, 42, 42, 0.55);
    margin: 0 0 18px;
}
.kba-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 720px) { .kba-related-grid { grid-template-columns: 1fr 1fr; } }

.kba-related-card {
    position: relative;
    display: block;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(205, 160, 127, 0.25);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.kba-related-card:hover {
    border-color: rgba(232, 52, 122, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -22px rgba(232, 52, 122, 0.3);
}
.kba-related-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.3;
}
.kba-related-card p {
    font-size: 13px;
    color: rgba(42, 42, 42, 0.65);
    margin: 0;
    line-height: 1.45;
}
.kba-related-card-arrow {
    position: absolute;
    top: 16px; right: 18px;
    color: rgba(232, 52, 122, 0.5);
    font-size: 16px;
    line-height: 1;
    transition: transform 0.18s, color 0.18s;
}
.kba-related-card:hover .kba-related-card-arrow {
    color: #e8347a;
    transform: translate(2px, -2px);
}

@media (max-width: 540px) {
    .kba-cta { padding: 24px 18px; }
    .kba-cta-btn { width: 100%; }
    .kba-body { font-size: 15.5px; }
    .kba-body h2 { font-size: 22px; margin-top: 36px; }
    .kba-body h3 { font-size: 17px; }
}
