/* ══════════════════════════════════════════════════════
   Intecracy News Generator — Article Styles v2.6.3
   Dark theme, intecracy.com design system
══════════════════════════════════════════════════════ */

:root {
    --ivng-teal:   #00c9a7;
    --ivng-navy:   #0b1a30;
    --ivng-navy2:  #0f2240;
    --ivng-text:   rgba(232,240,248,0.88);
    --ivng-muted:  rgba(232,240,248,0.55);
    --ivng-border: rgba(255,255,255,0.08);
    --ivng-code-font: 'Fira Code', 'IBM Plex Mono', monospace;
}

/* ── Article body ────────────────────────────────── */
.ivng-article-body {
    line-height: 1.82;
    color: var(--ivng-text);
    font-size: 17px;
}
.ivng-article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 2.2em 0 .7em;
    padding-left: 16px;
    border-left: 3px solid var(--ivng-teal);
    line-height: 1.3;
}
.ivng-article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 1.8em 0 .5em;
}
.ivng-article-body p  { margin: 0 0 1.2em; }
.ivng-article-body strong { color: #fff; font-weight: 600; }
.ivng-article-body a  { color: var(--ivng-teal); text-decoration: underline; text-underline-offset: 2px; }
.ivng-article-body ul,
.ivng-article-body ol { margin: .75em 0 1.25em; padding-left: 1.6em; }
.ivng-article-body li { margin-bottom: .45em; line-height: 1.65; }
.ivng-article-body ul > li::marker { color: var(--ivng-teal); }

/* ── Tables ─────────────────────────────────────── */
.ivng-article-body table {
    width: 100%; border-collapse: collapse;
    margin: 1.5em 0; font-size: 15px;
    background: rgba(15,34,64,0.7);
    border: 1px solid var(--ivng-border);
    border-radius: 8px; overflow: hidden;
}
.ivng-article-body thead th {
    background: rgba(0,201,167,0.10);
    color: var(--ivng-teal);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    padding: 13px 16px; text-align: left;
    border-bottom: 1px solid rgba(0,201,167,0.2);
}
.ivng-article-body tbody tr { border-bottom: 1px solid var(--ivng-border); }
.ivng-article-body tbody tr:last-child { border-bottom: none; }
.ivng-article-body tbody tr:nth-child(even) { background: rgba(255,255,255,0.025); }
.ivng-article-body tbody tr:hover { background: rgba(0,201,167,0.04); }
.ivng-article-body tbody td {
    padding: 11px 16px;
    color: var(--ivng-text);
    vertical-align: top; line-height: 1.55;
}
.ivng-article-body tbody td:first-child { font-weight: 600; color: rgba(232,240,248,0.95); }

/* ── Code ───────────────────────────────────────── */
.ivng-article-body code {
    font-family: var(--ivng-code-font);
    font-size: 13px;
    background: rgba(0,201,167,0.08);
    color: var(--ivng-teal);
    padding: 2px 6px; border-radius: 3px;
}
.ivng-article-body pre {
    background: rgba(15,34,64,0.85);
    border: 1px solid var(--ivng-border);
    border-radius: 6px;
    padding: 16px 20px;
    overflow-x: auto;
    font-family: var(--ivng-code-font);
    font-size: 13px;
    line-height: 1.5;
    margin: 1.5em 0;
}

/* ══════════════════════════════════════════════════════
   EXPERT COMMENT — v5 (no left-border conflict with h2)
   Дизайн: рамка з усіх сторін teal-кольору + декоративна
   лапка зліва вгорі. НЕ використовує border-left, бо це
   конфліктує з border-left у h2 шаблону статті.
══════════════════════════════════════════════════════ */

.ivng-expert-comment {
    margin: 2.6em 0;
    /* Витягуємо за межі контентного потоку щоб виглядав як full-bleed callout */
    position: relative;
}

.ivng-ec__card {
    /* Рамка teal з усіх сторін, без акцентної лінії зліва */
    border: 1px solid rgba(0, 201, 167, 0.28);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(0, 201, 167, 0.04), rgba(0, 201, 167, 0.015)),
        rgba(15, 34, 64, 0.4);
    padding: 26px 28px 28px;
    position: relative;
    /* Subtle teal glow, як на Stripe/Linear callout */
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.02) inset,
        0 8px 24px -8px rgba(0, 0, 0, 0.3);
}

/* Декоративна велика лапка вгорі-зліва — впізнаваний editorial-знак */
.ivng-ec__card::before {
    content: '"';
    position: absolute;
    top: 6px;
    left: 18px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 64px;
    line-height: 1;
    color: var(--ivng-teal);
    opacity: 0.22;
    pointer-events: none;
    user-select: none;
}

/* 1. Label — еyebrow зверху */
.ivng-ec__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ivng-teal);
    opacity: 0.85;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.ivng-ec__label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--ivng-teal);
    flex-shrink: 0;
}

/* 2. Quote text — найголовніше, тому йде зверху, шрифт побільший */
.ivng-ec__quote,
.ivng-article-body .ivng-ec__quote {
    margin: 0 0 22px;
    padding: 0;
    border: none !important;
    border-left: none !important;
    background: none;
    border-radius: 0;
    position: relative;
}
.ivng-ec__quote-text {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(232, 240, 248, 0.92);
    margin: 0;
    /* НЕ italic — italic + Manrope/Inter виглядає неоковирно у тексті */
    font-style: normal;
    font-weight: 400;
}

/* 3. Divider — тонкий, між цитатою і автором */
.ivng-ec__divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 201, 167, 0.22), transparent 70%);
    margin: 0 0 18px;
    border: none;
}

/* 4. Author block — фото + ім'я + посада знизу як підпис */
.ivng-ec__header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ivng-ec__photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 201, 167, 0.4);
    flex-shrink: 0;
    display: block;
}
.ivng-ec__photo--initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 201, 167, 0.12);
    border: 1px solid rgba(0, 201, 167, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--ivng-teal);
    flex-shrink: 0;
}
.ivng-ec__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.ivng-ec__name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.005em;
}
.ivng-ec__name-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.ivng-ec__name-link:hover {
    color: var(--ivng-teal);
    border-bottom-color: var(--ivng-teal);
}
.ivng-ec__position {
    font-size: 12px;
    color: rgba(232, 240, 248, 0.5);
    line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .ivng-expert-comment { margin: 2em 0; }
    .ivng-ec__card { padding: 22px 20px 22px; }
    .ivng-ec__card::before { font-size: 52px; top: 4px; left: 14px; }
    .ivng-ec__label { margin-bottom: 14px; }
    .ivng-ec__quote-text { font-size: 16px; line-height: 1.65; }
    .ivng-ec__photo,
    .ivng-ec__photo--initials { width: 42px; height: 42px; }
}
