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

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

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

/* ── Tables ─────────────────────────────────────── */
.igng-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(--igng-border);
    border-radius: 8px; overflow: hidden;
}
.igng-article-body thead th {
    background: rgba(0,201,167,0.10);
    color: var(--igng-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);
}
.igng-article-body tbody tr { border-bottom: 1px solid var(--igng-border); }
.igng-article-body tbody tr:last-child { border-bottom: none; }
.igng-article-body tbody tr:nth-child(even) { background: rgba(255,255,255,0.025); }
.igng-article-body tbody tr:hover { background: rgba(0,201,167,0.04); }
.igng-article-body tbody td {
    padding: 11px 16px;
    color: var(--igng-text);
    vertical-align: top; line-height: 1.55;
}
.igng-article-body tbody td:first-child { font-weight: 600; color: rgba(232,240,248,0.95); }

/* ── Code ───────────────────────────────────────── */
.igng-article-body code {
    font-family: var(--igng-code-font);
    font-size: 13px;
    background: rgba(0,201,167,0.08);
    color: var(--igng-teal);
    padding: 2px 6px; border-radius: 3px;
}
.igng-article-body pre {
    background: #061020;
    border: 1px solid rgba(0,201,167,0.15);
    border-radius: 6px; padding: 20px;
    overflow-x: auto;
    font-family: var(--igng-code-font); font-size: 14px;
    margin: 1.5em 0;
}

/* ── Blockquote in body ─────────────────────────── */
.igng-article-body blockquote {
    margin: 1.5em 0; padding: 16px 20px;
    background: rgba(0,201,167,0.06);
    border-left: 3px solid var(--igng-teal);
    border-radius: 0 6px 6px 0;
    color: var(--igng-text); font-style: italic;
    font-size: 16px;
}
.igng-article-body hr { border: none; border-top: 1px solid var(--igng-border); margin: 2em 0; }

/* ══════════════════════════════════════════════════════
   EXPERT COMMENT — v4
   Layout: label → expert (photo+name) → divider → quote
══════════════════════════════════════════════════════ */

.igng-expert-comment {
    margin: 2.4em 0;
}
.igng-ec__card {
    border: 1px solid rgba(0,201,167,0.18);
    border-left: 3px solid #00c9a7;
    border-radius: 0 8px 8px 0;
    background: rgba(0,201,167,0.03);
    padding: 20px 24px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 1. Label — very top */
.igng-ec__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00c9a7;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}
.igng-ec__label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background: #00c9a7;
    flex-shrink: 0;
}

/* 2. Expert: photo + name/position */
.igng-ec__header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.igng-ec__photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0,201,167,0.3);
    flex-shrink: 0;
    display: block;
}
.igng-ec__photo--initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,201,167,0.1);
    border: 2px solid rgba(0,201,167,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #00c9a7;
    flex-shrink: 0;
}
.igng-ec__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.igng-ec__name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.igng-ec__name-link { color: #fff; text-decoration: none; }
.igng-ec__name-link:hover { color: #00c9a7; }
.igng-ec__position {
    font-size: 12px;
    color: rgba(232,240,248,0.45);
}

/* 3. Divider */
.igng-ec__divider {
    height: 1px;
    background: rgba(0,201,167,0.12);
    margin: 2px 0;
}

/* 4. Quote */
.igng-ec__quote,
.igng-article-body .igng-ec__quote {
    margin: 0;
    padding: 0;
    border: none !important;
    border-left: none !important;
    background: none;
    border-radius: 0;
}
.igng-ec__quote-text {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(232,240,248,0.85);
    font-style: italic;
    margin: 0;
}

@media (max-width: 600px) {
    .igng-ec__card { padding: 16px 16px 18px; gap: 12px; }
    .igng-ec__quote-text { font-size: 15px; }
}

