/* ==========================================================
   ISHTIAQALI.COM — SHARED INSIGHT ARTICLE
   Load once from /assets/css/insight-article.css
   ========================================================== */

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

.insight-article {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 125px 0 100px;
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 13px;
    line-height: 1.5;
    opacity: .65;
}

.article-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    opacity: .8;
}

/* Header */
.article-header {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.article-category {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(127,127,127,.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.article-header h1 {
    margin: 0;
    max-width: 920px;
    font-family: "Plus Jakarta Sans","Manrope",sans-serif;
    font-size: clamp(38px,5.5vw,76px);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 800;
}

.article-deck {
    max-width: 780px;
    margin: 28px auto 0;
    font-family: "Manrope",sans-serif;
    font-size: clamp(17px,2vw,21px);
    line-height: 1.65;
    opacity: .72;
}

/* Meta */
.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    font-size: 14px;
    line-height: 1.5;
    opacity: .65;
}

.article-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-author a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

/* Hero */
.article-hero {
    width: 100%;
    max-width: 1180px;
    margin: 58px auto 0;
}

.article-hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 22px;
}

.article-hero figcaption {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    opacity: .55;
}

/* Reading area */
.article-content {
    width: min(100%,760px);
    margin: 64px auto 0;
}

.article-content p {
    margin: 0 0 24px;
    font-family: "Manrope",sans-serif;
    font-size: 18px;
    line-height: 1.85;
    font-weight: 400;
}

.article-content h2 {
    margin: 58px 0 20px;
    font-family: "Plus Jakarta Sans","Manrope",sans-serif;
    font-size: clamp(28px,4vw,42px);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 800;
}

.article-content h3 {
    margin: 40px 0 16px;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
}

.article-content strong {
    font-weight: 800;
}

.article-content a {
    color: inherit;
}

/* Timeline callout */
.timeline-callout {
    margin: 36px 0 46px;
    padding: 24px 26px;
    border: 1px solid rgba(127,127,127,.22);
    border-radius: 18px;
    background: rgba(127,127,127,.06);
    font-family: "Manrope",sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.timeline-callout strong {
    font-weight: 800;
}

.timeline-callout span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    opacity: .62;
}

/* Fact grid */
.fact-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    margin: 34px 0 50px;
}

.fact-card {
    padding: 22px;
    border: 1px solid rgba(127,127,127,.20);
    border-radius: 16px;
    background: rgba(127,127,127,.04);
}

.fact-card span {
    display: block;
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .52;
}

.fact-card h3 {
    margin: 0 0 9px;
    font-family: "Plus Jakarta Sans","Manrope",sans-serif;
    font-size: 22px;
}

.fact-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    opacity: .72;
}

/* Tables */
.spec-table-wrapper {
    width: 100%;
    margin: 38px 0 50px;
    overflow-x: auto;
    border: 1px solid rgba(127,127,127,.22);
    border-radius: 16px;
}

.spec-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-family: "Manrope",sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.spec-table caption {
    padding: 18px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    opacity: .7;
}

.spec-table th,
.spec-table td {
    padding: 15px 18px;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid rgba(127,127,127,.16);
}

.spec-table thead th {
    border-top: 0;
    font-weight: 800;
}

.spec-table tbody th {
    width: 30%;
    font-weight: 700;
}

/* Source */
.article-source {
    margin-top: 64px;
    padding: 28px;
    border: 1px solid rgba(127,127,127,.22);
    border-radius: 18px;
}

.article-source h2 {
    margin-top: 0;
    font-size: 24px;
}

.article-source p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
}

.article-source p:last-child {
    margin-bottom: 0;
}

/* Author */
.article-author-box {
    margin-top: 32px;
    padding: 34px 38px;
    border: 1px solid rgba(127,127,127,.22);
    border-radius: 22px;
}

.author-box-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.author-info h2 {
    margin: 0 0 24px;
    font-family: "Plus Jakarta Sans","Manrope",sans-serif;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.03em;
    font-weight: 800;
}

.author-info h3 {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans","Manrope",sans-serif;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
}

.author-info h3 a {
    color: inherit;
    text-decoration: none;
}

.author-info p {
    max-width: 680px;
    margin: 0;
    font-family: "Manrope",sans-serif;
    font-size: 15px;
    line-height: 1.7;
    opacity: .68;
}

.author-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.author-social {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(127,127,127,.2);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    font-family: "Manrope",sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: transform 180ms ease,border-color 180ms ease,background-color 180ms ease,opacity 180ms ease;
}

.author-social:hover {
    transform: translateY(-2px);
    border-color: rgba(127,127,127,.45);
    background: rgba(127,127,127,.08);
}

.author-social:focus-visible,
.article-share-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Floating share */
.article-share {
    position: fixed;
    z-index: 50;
    left: max(18px,calc((100vw - 1180px)/2 - 82px));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 12px 9px;
    border: 1px solid rgba(127,127,127,.22);
    border-radius: 16px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0,0,0,.10);
}

.article-share-label {
    margin-bottom: 3px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: .45;
}

.article-share-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: inherit;
    background: rgba(127,127,127,.08);
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease,background-color 180ms ease,opacity 180ms ease;
}

.article-share-link svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: currentColor;
}

.article-share-link:hover {
    transform: translateY(-2px);
    background: rgba(127,127,127,.16);
}

[data-theme="dark"] .article-share,
.dark-theme .article-share {
    background: rgba(18,23,42,.78);
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 12px 35px rgba(0,0,0,.30);
}

/* Mobile */
@media (max-width: 900px) {
    .article-share {
        left: 50%;
        top: auto;
        bottom: 16px;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 8px 10px;
        border-radius: 16px;
        gap: 7px;
    }

    .article-share-label {
        writing-mode: horizontal-tb;
        transform: none;
        margin: 0 3px 0 1px;
        font-size: 9px;
    }

    .article-share-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 700px) {
    .insight-article {
        width: min(100% - 28px,1180px);
        padding-top: 115px;
        padding-bottom: 70px;
    }

    .article-header {
        text-align: left;
    }

    .article-header h1 {
        font-size: clamp(34px,10vw,52px);
    }

    .article-deck {
        margin-left: 0;
        margin-right: 0;
        font-size: 16px;
    }

    .article-meta {
        justify-content: flex-start;
    }

    .article-hero {
        margin-top: 38px;
    }

    .article-hero img {
        border-radius: 14px;
    }

    .article-content {
        margin-top: 44px;
    }

    .article-content p {
        font-size: 16px;
        line-height: 1.8;
    }

    .article-content h2 {
        margin-top: 44px;
        font-size: 30px;
    }

    .timeline-callout {
        padding: 20px;
    }

    .fact-grid {
        grid-template-columns: 1fr;
    }

    .article-source,
    .article-author-box {
        padding: 22px;
    }

    .author-info h2 {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .author-info h3 {
        font-size: 21px;
    }

    .author-socials {
        gap: 8px;
    }

    .author-social {
        min-height: 40px;
        padding: 0 12px;
    }
}

/* =========================================================
   RELATED INSIGHTS
   ---------------------------------------------------------
   IshtiaqAli.com
   Theme-aware editorial recommendation component

   Uses the existing design system only:
   --surface-card
   --surface-elevated
   --text-primary
   --text-secondary
   --text-muted
   --border-default
   --brand-primary
   --brand-accent
   --shadow-sm
   --shadow-md
   --radius-lg
   --space-*
   --heading-*
   --body-*
   ========================================================= */


/* =========================================================
   SECTION
   ========================================================= */

.related-insights {

    margin-block:
        var(--space-10)
        var(--space-9);

    padding-top:
        var(--space-8);

    border-top:
        1px solid var(--border-default);

}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.related-insights-header {

    margin-bottom:
        var(--space-6);

}


.related-insights-header .section-label {

    display: inline-block;

    margin-bottom:
        var(--space-3);

    color:
        var(--brand-accent);

    font-family:
        var(--font-body);

    font-size:
        var(--body-xs);

    font-weight:
        var(--weight-bold);

    line-height:
        1.3;

    letter-spacing:
        var(--tracking-wide);

    text-transform:
        uppercase;

}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.related-insights-header h2 {

    margin: 0 0 var(--space-2);

    color:
        var(--text-primary);

    font-family:
        var(--font-heading);

    font-size:
        var(--heading-2);

    font-weight:
        var(--weight-extra-bold);

    line-height:
        var(--leading-heading);

    letter-spacing:
        var(--tracking-tight);

}


/* =========================================================
   SECTION DESCRIPTION
   ========================================================= */

.related-insights-header p {

    max-width:
        60ch;

    margin: 0;

    color:
        var(--text-secondary);

    font-family:
        var(--font-body);

    font-size:
        var(--body-md);

    font-weight:
        var(--weight-regular);

    line-height:
        var(--leading-body);

}


/* =========================================================
   GRID
   ========================================================= */

.related-insights-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        var(--content-gap);

}


/* =========================================================
   CARD
   ========================================================= */

.related-insight-card {

    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border:
        1px solid var(--border-default);

    border-radius:
        var(--radius-lg);

    background:
        var(--surface-card);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform var(--transition-base) var(--ease),
        border-color var(--transition-base) var(--ease),
        box-shadow var(--transition-base) var(--ease);

}


/* =========================================================
   CARD HOVER
   ========================================================= */

.related-insight-card:hover {

    transform:
        translateY(-4px);

    border-color:
        var(--brand-primary);

    box-shadow:
        var(--shadow-md);

}


/* =========================================================
   IMAGE LINK
   ========================================================= */

.related-insight-image-link {

    display: block;

    width: 100%;

    overflow: hidden;

    aspect-ratio:
        16 / 9;

    background:
        var(--surface-elevated);

}


/* =========================================================
   IMAGE
   ========================================================= */

.related-insight-image-link img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform var(--transition-slow) var(--ease);

}


/* =========================================================
   IMAGE HOVER
   ========================================================= */

.related-insight-card:hover
.related-insight-image-link img {

    transform:
        scale(1.035);

}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.related-insight-content {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding:
        var(--space-5);

    background:
        var(--surface-card);

}


/* =========================================================
   CARD META
   ========================================================= */

.related-insight-meta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap:
        var(--space-2);

    margin-bottom:
        var(--space-3);

}


/* =========================================================
   CATEGORY
   ========================================================= */

.related-insight-category {

    display: inline-block;

    color:
        var(--brand-primary);

    font-family:
        var(--font-body);

    font-size:
        var(--body-xs);

    font-weight:
        var(--weight-semibold);

    line-height:
        1.3;

    letter-spacing:
        var(--tracking-wide);

    text-transform:
        uppercase;

}


/* =========================================================
   DATE
   ========================================================= */

.related-insight-date {

    color:
        var(--text-muted);

    font-family:
        var(--font-body);

    font-size:
        var(--body-xs);

    font-weight:
        var(--weight-medium);

}


/* =========================================================
   CARD TITLE
   ========================================================= */

.related-insight-content h3 {

    margin:
        0 0 var(--space-5);

    color:
        var(--text-primary);

    font-family:
        var(--font-heading);

    font-size:
        var(--heading-4);

    font-weight:
        var(--weight-extra-bold);

    line-height:
        var(--leading-heading);

    letter-spacing:
        var(--tracking-tight);

}


/* =========================================================
   CARD TITLE LINK
   ========================================================= */

.related-insight-content h3 a {

    color:
        var(--text-primary);

    text-decoration:
        none;

}


/* =========================================================
   CARD TITLE HOVER
   ========================================================= */

.related-insight-content h3 a:hover {

    color:
        var(--brand-primary);

}


/* =========================================================
   OPTIONAL DESCRIPTION
   ---------------------------------------------------------
   If a related card contains a description, this will
   automatically inherit the correct light/dark colors.
   ========================================================= */

.related-insight-description {

    margin:
        0 0 var(--space-5);

    color:
        var(--text-secondary);

    font-family:
        var(--font-body);

    font-size:
        var(--body-sm);

    line-height:
        var(--leading-body);

}


/* =========================================================
   READ LINK
   ========================================================= */

.related-insight-read {

    display: inline-flex;

    align-items: center;

    align-self: flex-start;

    gap:
        var(--space-2);

    margin-top:
        auto;

    color:
        var(--text-primary);

    font-family:
        var(--font-body);

    font-size:
        var(--body-sm);

    font-weight:
        var(--weight-semibold);

    line-height:
        1.4;

    text-decoration:
        none;

}


/* =========================================================
   READ LINK HOVER
   ========================================================= */

.related-insight-read:hover {

    color:
        var(--brand-primary);

}


/* =========================================================
   READ ARROW
   ========================================================= */

.related-insight-read span {

    display: inline-block;

    transition:
        transform var(--transition-fast) var(--ease);

}


/* =========================================================
   READ ARROW HOVER
   ========================================================= */

.related-insight-read:hover span {

    transform:
        translateX(4px);

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.related-insight-image-link:focus-visible,
.related-insight-content h3 a:focus-visible,
.related-insight-read:focus-visible {

    outline:
        2px solid var(--brand-primary);

    outline-offset:
        4px;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .related-insights-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .related-insights {

        margin-block:
            var(--space-9)
            var(--space-8);

        padding-top:
            var(--space-7);

    }


    .related-insights-header {

        margin-bottom:
            var(--space-5);

    }


    .related-insights-header h2 {

        font-size:
            var(--heading-3);

    }


    .related-insights-header p {

        font-size:
            var(--body-sm);

    }


    .related-insights-grid {

        grid-template-columns:
            1fr;

        gap:
            var(--space-5);

    }


    .related-insight-content {

        padding:
            var(--space-5);

    }


    .related-insight-content h3 {

        font-size:
            var(--heading-4);

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .related-insights {

        margin-block:
            var(--space-8)
            var(--space-7);

        padding-top:
            var(--space-6);

    }


    .related-insights-header .section-label {

        margin-bottom:
            var(--space-2);

    }


    .related-insights-header h2 {

        font-size:
            1.75rem;

    }


    .related-insight-content {

        padding:
            var(--space-4);

    }


    .related-insight-meta {

        margin-bottom:
            var(--space-2);

    }


    .related-insight-content h3 {

        margin-bottom:
            var(--space-4);

        font-size:
            1.25rem;

    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .related-insight-card,
    .related-insight-image-link img,
    .related-insight-read span {

        transition:
            none;

    }


    .related-insight-card:hover {

        transform:
            none;

    }


    .related-insight-card:hover
    .related-insight-image-link img {

        transform:
            none;

    }


    .related-insight-read:hover span {

        transform:
            none;

    }

}