/* ════════════════════════════════════════════════════
   Softline News Generator — Article Styles v1.0.2
   Підключається тільки на постах, згенерованих плагіном.
   Відповідає дизайн-системі softline.company.
   ════════════════════════════════════════════════════ */

:root {
    --sfng-blue:       #2F80ED;
    --sfng-navy:       #0F243D;
    --sfng-bg:         #f5f7fb;
    --sfng-border:     #E3E8EF;
    --sfng-divider:    #EEF1F6;
    --sfng-text:       #0F243D;
    --sfng-muted:      #5A6B7F;
    --sfng-hint:       #8B97A8;
}

/* ══════════════════════════════════════
   ARTICLE BODY WRAPPER
══════════════════════════════════════ */
.sfng-article-body {
    line-height: 1.75;
    color: var(--sfng-muted);
    font-size: 16px;
}
.sfng-article-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--sfng-navy);
    margin: 2.2em 0 .75em;
    padding-left: 16px;
    border-left: 4px solid var(--sfng-blue);
    line-height: 1.35;
}
.sfng-article-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--sfng-navy);
    margin: 1.8em 0 .5em;
}
.sfng-article-body p { margin: 0 0 1.2em; }
.sfng-article-body strong { color: var(--sfng-navy); font-weight: 600; }
.sfng-article-body a { color: var(--sfng-blue); text-decoration: underline; text-underline-offset: 2px; }
.sfng-article-body ul,
.sfng-article-body ol { margin: .75em 0 1.25em; padding-left: 1.6em; }
.sfng-article-body li { margin-bottom: .45em; line-height: 1.65; }
.sfng-article-body ul > li::marker { color: var(--sfng-blue); }
.sfng-article-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 14px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--sfng-border); }
.sfng-article-body thead th { background: var(--sfng-navy); color: #e8eef8; font-weight: 600; padding: 12px 16px; text-align: left; font-size: 13px; letter-spacing: .02em; }
.sfng-article-body tbody tr:nth-child(even) td { background: var(--sfng-bg); }
.sfng-article-body tbody td { padding: 11px 16px; border-bottom: 1px solid var(--sfng-border); vertical-align: top; }
.sfng-article-body tbody tr:last-child td { border-bottom: none; }
.sfng-article-body code { font-family: 'IBM Plex Mono', monospace; font-size: 13px; background: #eef2fb; color: var(--sfng-navy); padding: 2px 6px; border-radius: 4px; }
.sfng-article-body blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--sfng-bg); border-left: 4px solid var(--sfng-blue); border-radius: 0 8px 8px 0; color: var(--sfng-muted); font-style: italic; font-size: 15px; }
.sfng-article-body hr { border: none; border-top: 2px solid var(--sfng-border); margin: 2em 0; }

/* ════════════════════════════════════════════════════
   EXPERT COMMENT CARD
   Важливо: .sfng-expert-comment ПОЗА .sfng-article-body,
   але всередині .entry-content теми.
   Всі правила мають достатню специфічність
   щоб перебити .entry-content blockquote теми.
   ════════════════════════════════════════════════════ */
.sfng-expert-comment {
    margin: 48px 0 8px;
}

.sfng-expert-comment .sfng-ec__card {
    background: #ffffff;
    border: 1px solid #E3E8EF;
    border-left: 4px solid #2F80ED;
    border-radius: 0 14px 14px 0;
    padding: 26px 30px 22px;
    box-shadow: 0 2px 14px rgba(15, 36, 61, .06);
    position: relative;
    overflow: hidden;
}

/* Декоративна лапка — фон */
.sfng-expert-comment .sfng-ec__card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 22px;
    font-size: 84px;
    color: rgba(47, 128, 237, .07);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

/* Бейдж "Коментар експерта" / "Expert comment" */
.sfng-expert-comment .sfng-ec__badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: #2F80ED !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
.sfng-expert-comment .sfng-ec__badge::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E3E8EF;
}

/* Текст цитати — <p>, не <blockquote>, щоб уникнути override теми */
.sfng-expert-comment .sfng-ec__quote-text {
    font-size: 15.5px !important;
    line-height: 1.78 !important;
    color: #0F243D !important;
    font-style: italic !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
}

/* Рядок автора */
.sfng-expert-comment .sfng-ec__author {
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    padding-top: 16px !important;
    margin-top: 0 !important;
    border-top: 1px solid #EEF1F6 !important;
}

/* Фото */
.sfng-expert-comment .sfng-ec__photo {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border: 2px solid #E3E8EF !important;
    display: block !important;
}
.sfng-expert-comment .sfng-ec__photo--initials {
    background: linear-gradient(135deg, #1a3660, #2F80ED) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    border: none !important;
}

/* Дані автора */
.sfng-expert-comment .sfng-ec__author-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0;
}
.sfng-expert-comment .sfng-ec__name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0F243D !important;
    display: block !important;
}
.sfng-expert-comment .sfng-ec__name-link {
    color: #0F243D !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(47, 128, 237, .35) !important;
    transition: color .15s, border-color .15s !important;
}
.sfng-expert-comment .sfng-ec__name-link:hover {
    color: #2F80ED !important;
    border-color: #2F80ED !important;
}
.sfng-expert-comment .sfng-ec__position {
    font-size: 12px !important;
    color: #8B97A8 !important;
    line-height: 1.4 !important;
    font-style: normal !important;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .sfng-expert-comment .sfng-ec__card { padding: 20px 18px 18px; }
    .sfng-expert-comment .sfng-ec__quote-text { font-size: 14.5px !important; }
    .sfng-expert-comment .sfng-ec__card::before { font-size: 56px; top: 12px; right: 16px; }
}
