/*
 * Blueprint To Progress — Generative AI article page
 * Page-specific CSS only.
 * Global BTP article/header styles remain in:
 * https://blueprinttoprogress.com/wp-content/uploads/btp/btp-career-articles-V9.4-CLEAN-PRODUCTION.css
 */

.btp-generative-ai-article {
    padding-top: 36px;
    --btp-article-max-width: 1180px;
    --btp-article-tablet-gutter: 46px;
    --btp-article-mobile-gutter: 16px;

    --btp-h1-size-desktop: 56px;
    --btp-h1-size-tablet: 36px;
    --btp-h1-size-mobile: 38px;

    --btp-h2-size-desktop: 38px;
    --btp-h2-size-tablet: 32px;
    --btp-h2-size-mobile: 30px;

    --btp-h3-size-desktop: 30px;
    --btp-h3-size-tablet: 27px;
    --btp-h3-size-mobile: 24px;

    --btp-body-size-desktop: 18px;
    --btp-body-size-tablet: 17px;
    --btp-body-size-mobile: 17px;

    --btp-body-line-height: 1.55;
    --btp-mobile-line-height: 1.6;
}

.btp-generative-ai-article .article-container {
    width: 100%;
    max-width: var(--btp-article-max-width);
    margin-left: auto;
    margin-right: auto;
}

.btp-generative-ai-article .article-content {
    width: 100%;
}

.btp-generative-ai-article .article-category {
    margin: 0 0 22px;
    padding-left: 17px;
}

.btp-generative-ai-article .article-category-badge {
    display: inline-block;
    padding: 7px 14px 6px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #2563eb;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.btp-generative-ai-article h1 {
    margin: 0 0 28px;
    font-size: var(--btp-h1-size-desktop);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.btp-generative-ai-article .lead {
    margin: 0 0 30px;
    font-size: 20px;
    line-height: 1.55;
}

.btp-generative-ai-article p,
.btp-generative-ai-article li {
    font-size: var(--btp-body-size-desktop);
    line-height: var(--btp-body-line-height);
    color: #3e4b5e;
}

.btp-generative-ai-article p {
    margin: 0 0 24px;
}

.btp-generative-ai-article h2 {
    margin: 56px 0 12px;
    font-size: var(--btp-h2-size-desktop);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.8px;
    scroll-margin-top: 110px;
}

.btp-generative-ai-article h3 {
    margin: 32px 0 4px;
    font-size: var(--btp-h3-size-desktop);
    line-height: 1.2;
    font-weight: 700;
    scroll-margin-top: 110px;
}

.btp-generative-ai-article ul,
.btp-generative-ai-article ol {
    padding-left: 32px;
    margin: 0 0 24px;
}

.btp-generative-ai-article li {
    margin-bottom: 4px;
}

.btp-generative-ai-article strong {
    font-weight: 700;
}

.btp-generative-ai-article a {
    text-decoration: none;
}

.btp-generative-ai-article a:hover {
    text-decoration: underline;
}

.btp-generative-ai-article figure {
    width: 100%;
    margin: 30px 0 34px;
}

.btp-generative-ai-article img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.btp-generative-ai-article figcaption {
    text-align: center;
    font-size: 15px;
    line-height: 1.45;
    margin-top: 10px;
}

.btp-generative-ai-article .article-hero-image {
    margin-top: 0;
}

.btp-generative-ai-article .article-image {
    margin-top: 32px;
    margin-bottom: 38px;
}

.btp-generative-ai-article .article-toc {
    width: calc(100% - 310px);
    max-width: 920px;
    margin: 36px auto 8px;
    padding: 30px 34px;
    border: 1px solid #d9e0e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(24, 54, 86, 0.06);
}

.btp-generative-ai-article .article-toc h2 {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 0;
    color: #1f2937;
}

.btp-generative-ai-article .article-toc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 4px;
}

.btp-generative-ai-article .article-toc-list a {
    font-size: 17px;
    line-height: 1.6;
}

.btp-generative-ai-article .article-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 8px 0 30px;
    -webkit-overflow-scrolling: touch;
}

.btp-generative-ai-article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 17px;
    line-height: 1.5;
    border: 1px solid #d9e0e8;
    border-radius: 10px;
    overflow: hidden;
}

.btp-generative-ai-article table caption {
    caption-side: top;
    padding: 0 0 4px;
    color: #1f4f7b;
    font-size: 17px;
    line-height: 1.4;
    text-align: center;
}

.btp-generative-ai-article th,
.btp-generative-ai-article td {
    padding: 13px 16px;
    border-right: 1px solid #d7e0e8;
    border-bottom: 1px solid #d7e0e8;
    text-align: left;
    vertical-align: top;
}

.btp-generative-ai-article th:last-child,
.btp-generative-ai-article td:last-child {
    border-right: 0;
}

.btp-generative-ai-article tbody tr:last-child td {
    border-bottom: 0;
}

.btp-generative-ai-article th {
    background: #0077c8;
    color: #fff;
    font-weight: 700;
    border-color: #0077c8;
}

.btp-generative-ai-article .article-cta-box {
    margin-top: 56px;
    padding: 28px 36px 34px;
    border: 1px solid #b9dfff;
    border-left: 4px solid #0077c8;
    border-radius: 10px;
    background: #eaf6ff;
    text-align: center;
}

.btp-generative-ai-article .article-cta-box h2 {
    margin: 0 0 22px;
    color: #1f4775;
}

.btp-generative-ai-article .article-cta-box p {
    color: #244a73;
}

.btp-generative-ai-article .article-cta {
    margin: 26px 0 0;
}

.btp-generative-ai-article .btp-button {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 6px;
    background: #0077c8;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.btp-generative-ai-article .btp-button:hover {
    text-decoration: none;
}

/* Tablet — 768–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .btp-generative-ai-article .article-container {
        width: calc(100% - 92px);
        max-width: var(--btp-article-max-width);
    }

    .btp-generative-ai-article h1 {
        font-size: var(--btp-h1-size-tablet);
        line-height: 1.08;
        letter-spacing: -0.8px;
    }

    .btp-generative-ai-article h2 {
        font-size: var(--btp-h2-size-tablet);
        line-height: 1.15;
        letter-spacing: -0.5px;
        margin-top: 48px;
    }

    .btp-generative-ai-article h3 {
        font-size: var(--btp-h3-size-tablet);
    }

    .btp-generative-ai-article p,
    .btp-generative-ai-article li {
        font-size: var(--btp-body-size-tablet);
        line-height: 1.6;
    }

    .btp-generative-ai-article .lead {
        font-size: 20px;
        line-height: 1.55;
    }
}

/* Mobile — 0–767px */
@media (max-width: 767px) {
    .btp-generative-ai-article {
        padding-top: 28px;
    }

    .btp-generative-ai-article .article-container {
        width: calc(100% - 32px);
        max-width: none;
    }

    .btp-generative-ai-article h1 {
        font-size: var(--btp-h1-size-mobile);
        line-height: 1.08;
        letter-spacing: -0.7px;
    }

    .btp-generative-ai-article h2 {
        font-size: var(--btp-h2-size-mobile);
        line-height: 1.15;
        letter-spacing: -0.4px;
        margin-top: 44px;
    }

    .btp-generative-ai-article h3 {
        font-size: var(--btp-h3-size-mobile);
        line-height: 1.2;
        margin-top: 28px;
    }

    .btp-generative-ai-article p,
    .btp-generative-ai-article li {
        font-size: var(--btp-body-size-mobile);
        line-height: var(--btp-mobile-line-height);
    }

    .btp-generative-ai-article .lead {
        font-size: 18px;
        line-height: 1.6;
    }

    .btp-generative-ai-article .article-toc {
        width: 100%;
        padding: 22px 20px;
    }

    .btp-generative-ai-article .article-category {
        padding-left: 0;
        margin-bottom: 20px;
    }

    .btp-generative-ai-article .article-toc-list {
        grid-template-columns: 1fr;
    }

    .btp-generative-ai-article .article-toc-list a {
        font-size: 16px;
    }

    .btp-generative-ai-article ul,
    .btp-generative-ai-article ol {
        padding-left: 28px;
    }

    .btp-generative-ai-article .article-image {
        margin-top: 28px;
        margin-bottom: 32px;
    }

    .btp-generative-ai-article table {
        min-width: 620px;
    }

    .btp-generative-ai-article .article-cta-box {
        margin-top: 44px;
        padding: 26px 20px 30px;
    }
}



/* Comparison table caption: remains outside the horizontal-scroll viewport */
.btp-generative-ai-article .article-table-caption {
  width: 100%;
  margin: 0 0 10px;
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
  color: #1f4f80;
}

/* Final responsive corrections */
@media (min-width: 768px) and (max-width: 1023px) {
  .btp-generative-ai-article .article-toc {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .btp-generative-ai-article .article-toc-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px;
  }
}

@media (max-width: 767px) {
  .btp-generative-ai-article .article-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .btp-generative-ai-article .article-table-wrap table {
    width: 620px;
    min-width: 620px;
  }

  .btp-generative-ai-article .article-table-caption {
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}


/* V7 mobile table correction: keep the full comparison table inside the viewport */
@media (max-width: 767px) {
  .btp-generative-ai-article .article-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
  }

  .btp-generative-ai-article .article-table-wrap table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    font-size: 15px;
    line-height: 1.45;
  }

  .btp-generative-ai-article .article-table-wrap th,
  .btp-generative-ai-article .article-table-wrap td {
    padding: 11px 10px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .btp-generative-ai-article .article-table-caption {
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
  }
}
