/* insight.css — styles for /insights/[slug]/ pages */

/* ── Layout ────────────────────────────────────────────────────────────────── */

.insight-main {
    padding-top: calc(var(--nav-h, 64px) + var(--space-12));
    padding-bottom: var(--space-24);
    min-height: calc(100vh / var(--page-zoom, 1));
}

.insight-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */

.insight-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--ink-muted);
    text-decoration: none;
    margin-bottom: var(--space-8);
    transition: color var(--dur-fast) var(--ease-out);
}
.insight-back:hover,
.insight-back:focus-visible {
    color: var(--accent);
}

/* ── Article ───────────────────────────────────────────────────────────────── */

.insight-article {
    margin-bottom: var(--space-16);
}

.insight-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border);
}

.insight-title {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.insight-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.insight-date {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--ink-muted);
}

.insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.insight-tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    opacity: 0.7;
}

/* ── Body prose ────────────────────────────────────────────────────────────── */

.insight-body {
    font-size: var(--text-base);
    line-height: 1.75;
    color: var(--ink-muted);
}

.insight-body p {
    margin-bottom: var(--space-5);
}

.insight-body p:last-child {
    margin-bottom: 0;
}

/* ── LinkedIn link (in header meta row) ───────────────────────────────────── */

.insight-li-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    padding: 3px var(--space-2);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    transition:
        box-shadow var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out);
}
.insight-li-link:hover,
.insight-li-link:focus-visible {
    background: rgba(0, 255, 209, 0.18);
    box-shadow: 0 0 10px 1px var(--accent-glow);
}

/* ── CTA section ───────────────────────────────────────────────────────────── */

.insight-cta-section {
    padding: var(--space-10) var(--space-8);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.insight-cta-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--ink-subtle);
    margin-bottom: var(--space-4);
}

.insight-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .insight-main {
        padding-top: calc(var(--nav-h, 64px) + var(--space-8));
    }

    .insight-container {
        padding: 0 var(--space-4);
    }

    .insight-cta-section {
        padding: var(--space-6) var(--space-5);
    }

    .insight-cta-btns {
        flex-direction: column;
    }

    .insight-cta-btns .btn {
        justify-content: center;
    }
}
