/* ============================================================
   Biritex Insight Article
   ============================================================ */

.insight-article {
    width: 100%;
    overflow: hidden;
}


/* ============================================================
   Reading Progress
   ============================================================ */

.insight-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
    background: transparent;
}

.insight-reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent, #d6534d);
    transition: width .08s linear;
}


/* ============================================================
   Article Header
   ============================================================ */

.insight-article-header {
    padding-top: clamp(70px, 9vw, 120px);
    padding-bottom: clamp(45px, 7vw, 85px);
    background: var(--surface, #f7f7f5);
}

.insight-header-inner {
    width: min(900px, calc(100% - 40px));
    margin-inline: auto;
}

.insight-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 35px;
    color: inherit;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    opacity: .7;
    transition:
        opacity .25s ease,
        transform .25s ease;
}

.insight-back:hover {
    opacity: 1;
    transform: translateX(-4px);
}

.insight-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 24px;
    font-size: .82rem;
    font-weight: 600;
    opacity: .7;
}

.insight-meta span {
    display: inline-flex;
    align-items: center;
}

.insight-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 18px;
    opacity: .45;
}

.insight-category {
    color: var(--accent, #d6534d);
}

.insight-header-inner h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.35rem, 5.5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.insight-lead {
    max-width: 760px;
    margin: 30px 0 0;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.75;
    opacity: .72;
}


/* ============================================================
   Author
   ============================================================ */

.insight-author {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 35px;
}

.insight-author-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent, #d6534d);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
}

.insight-author strong,
.insight-author span {
    display: block;
}

.insight-author strong {
    font-size: .9rem;
}

.insight-author span {
    margin-top: 3px;
    font-size: .78rem;
    opacity: .6;
}


/* ============================================================
   Cover Image
   ============================================================ */

.insight-cover {
    padding: 0 clamp(20px, 5vw, 70px);
    background: var(--surface, #f7f7f5);
}

.insight-cover-inner {
    width: min(1280px, 100%);
    margin-inline: auto;
    overflow: hidden;
    border-radius: clamp(14px, 2vw, 26px);
}

.insight-cover img {
    display: block;
    width: 100%;
    height: clamp(280px, 48vw, 650px);
    object-fit: cover;
}


/* ============================================================
   Reading Area
   ============================================================ */

.insight-body-section {
    padding: clamp(70px, 9vw, 130px) 20px;
}

.insight-body-layout {
    display: grid;
    grid-template-columns: 160px minmax(0, 720px);
    gap: clamp(40px, 7vw, 100px);
    width: min(1040px, 100%);
    margin-inline: auto;
}

.insight-sidebar {
    position: relative;
}

.insight-sidebar-sticky {
    position: sticky;
    top: 110px;
}

.insight-sidebar-label {
    display: block;
    margin-bottom: 12px;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .55;
}

.insight-share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0,0,0,.12);
    background: transparent;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: .8rem;
    transition:
        background .25s ease,
        transform .25s ease;
}

.insight-share-button:hover {
    background: rgba(0,0,0,.05);
    transform: translateY(-2px);
}

.insight-copy-message {
    display: block;
    margin-top: 8px;
    font-size: .72rem;
    color: var(--accent, #d6534d);
}


/* ============================================================
   Article Content
   ============================================================ */

.insight-content {
    min-width: 0;
}

.insight-content > p {
    margin: 0 0 28px;
    font-size: 1.08rem;
    line-height: 1.9;
}

.insight-content > h2 {
    margin: 58px 0 22px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.insight-content > h3 {
    margin: 42px 0 18px;
    font-size: 1.35rem;
}

.insight-content ul {
    margin: 25px 0 32px;
    padding-left: 24px;
}

.insight-content li {
    margin-bottom: 12px;
    padding-left: 6px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.insight-content blockquote {
    margin: 45px 0;
    padding: 25px 28px;
    border-left: 4px solid var(--accent, #d6534d);
    background: var(--surface, #f7f7f5);
    border-radius: 0 12px 12px 0;
}

.insight-content blockquote p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 600;
}

.insight-content-image {
    margin: 45px 0;
}

.insight-content-image img {
    display: block;
    width: 100%;
    border-radius: 16px;
}

.insight-content-image figcaption {
    margin-top: 10px;
    font-size: .78rem;
    opacity: .6;
}

.insight-article-end {
    margin-top: 70px;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,.1);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .5;
}


/* ============================================================
   CTA
   ============================================================ */

.insight-article-cta {
    padding-top: clamp(70px, 9vw, 110px);
    padding-bottom: clamp(70px, 9vw, 110px);
    background: var(--surface, #f7f7f5);
}

.insight-cta-inner {
    width: min(800px, calc(100% - 40px));
    margin-inline: auto;
    text-align: center;
}

.insight-cta-inner h2 {
    margin: 10px auto 18px;
    max-width: 700px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.insight-cta-inner > p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: .7;
}

.insight-cta-inner .button-row {
    justify-content: center;
    margin-top: 30px;
}


/* ============================================================
   Related Insights
   ============================================================ */

.related-insights {
    padding-top: clamp(70px, 9vw, 110px);
    padding-bottom: clamp(80px, 10vw, 130px);
}

.related-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.related-insight-card {
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    background: #fff;
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.related-insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.related-insight-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.related-insight-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.related-insight-card:hover .related-insight-image img {
    transform: scale(1.05);
}

.related-insight-content {
    padding: 24px;
}

.related-insight-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 13px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .55;
}

.related-insight-content h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.related-insight-content h3 a {
    color: inherit;
    text-decoration: none;
}

.related-insight-content p {
    margin: 14px 0 20px;
    font-size: .9rem;
    line-height: 1.7;
    opacity: .7;
}

.insight-read-more {
    color: inherit;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 800;
}

.insight-read-more:hover {
    color: var(--accent, #d6534d);
}


/* ============================================================
   Not Found
   ============================================================ */

.insight-not-found {
    min-height: 65vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.insight-not-found-inner {
    width: min(650px, calc(100% - 40px));
}

.insight-not-found h1 {
    margin: 12px 0;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.insight-not-found p:not(.eyebrow) {
    line-height: 1.8;
    opacity: .7;
}

.insight-not-found .button-row {
    justify-content: center;
    margin-top: 30px;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {

    .insight-body-layout {
        grid-template-columns: 1fr;
    }

    .insight-sidebar {
        order: 2;
    }

    .insight-sidebar-sticky {
        position: static;
    }

    .related-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 640px) {

    .insight-header-inner {
        width: min(100% - 28px, 900px);
    }

    .insight-meta {
        gap: 7px 10px;
    }

    .insight-meta span:not(:last-child)::after {
        margin-left: 10px;
    }

    .insight-header-inner h1 {
        font-size: clamp(2.1rem, 11vw, 3.2rem);
    }

    .insight-lead {
        font-size: 1rem;
        line-height: 1.7;
    }

    .insight-cover {
        padding-inline: 14px;
    }

    .insight-cover-inner {
        border-radius: 12px;
    }

    .insight-cover img {
        height: 280px;
    }

    .insight-body-section {
        padding-inline: 16px;
    }

    .insight-content > p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .insight-content > h2 {
        margin-top: 45px;
        font-size: 1.7rem;
    }

    .related-insight-grid {
        grid-template-columns: 1fr;
    }

    .insight-article-cta {
        padding-inline: 16px;
    }

    .insight-cta-inner .button-row {
        flex-direction: column;
        align-items: stretch;
    }

}