/*
 * Blueprint To Progress — AI Resume article
 * Corrected page-specific CSS.
 *
 * Load after:
 * 1. BTP global CSS
 * 2. Common BTP article CSS
 *
 * Only page-specific geometry/components are reinforced here where the
 * rendered page demonstrated that the common rules were not reaching
 * this article wrapper. Global header/back-to-top remain untouched.
 */

/* =========================================================
   ARTICLE GEOMETRY — BTP STANDARD
   ========================================================= */

.ai-resume-page {
    width: 100%;
}

.ai-resume-page .article-container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* =========================================================
   ARTICLE HEADER / EYEBROW
   ========================================================= */

.ai-resume-page .article-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 38px;
    margin-bottom: 18px;
    padding: 7px 13px;
    background: #e8f2ff;
    color: #2563eb;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-resume-page .article-category + h1 {
    margin-top: 0;
}

/* =========================================================
   HERO / ARTICLE IMAGES
   ========================================================= */

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

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

/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

.ai-resume-page .article-toc {
    width: 100%;
    box-sizing: border-box;
    margin: 30px 0 34px;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid #d7dce2;
    border-radius: 14px;
    box-shadow: none;
}

.ai-resume-page .article-toc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ai-resume-page .article-toc-list li {
    margin: 0 0 8px;
}

.ai-resume-page .article-toc a {
    color: var(--btp-link, #2563eb);
    text-decoration: none;
    font-size: 17px;
    line-height: 1.6;
}

.ai-resume-page .article-toc a:hover {
    text-decoration: underline;
}

/* =========================================================
   COMPARISON TABLE
   ========================================================= */

.ai-resume-page .comparison-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0 28px;
    background: #ffffff;
    border: 1px solid #d7dce2;
    border-radius: 14px;
}

.ai-resume-page .comparison-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.ai-resume-page .comparison-table th,
.ai-resume-page .comparison-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #d7dce2;
    border-bottom: 1px solid #d7dce2;
    background: #ffffff;
}

.ai-resume-page .comparison-table th {
    background: #0879d1;
    color: #ffffff;
    font-weight: 700;
    border-right-color: rgba(255,255,255,.55);
    border-bottom-color: #0879d1;
}

.ai-resume-page .comparison-table th:last-child,
.ai-resume-page .comparison-table td:last-child {
    border-right: 0;
}

.ai-resume-page .comparison-table tbody tr:last-child td {
    border-bottom: 0;
}

.ai-resume-page .comparison-table td:first-child {
    width: 18%;
    font-weight: 700;
}

/* =========================================================
   CONTEXTUAL INTERNAL RESOURCE LINKS
   ========================================================= */

.ai-resume-page .article-inline-link,
.ai-resume-page .resource-link-card {
    color: var(--btp-link, #2563eb);
}

.ai-resume-page .article-inline-link {
    text-decoration: none;
}

.ai-resume-page .article-inline-link:hover {
    text-decoration: underline;
}

.ai-resume-page .resource-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 34px 0 10px;
}

.ai-resume-page .resource-link-card {
    display: block;
    padding: 20px 20px 18px;
    border: 1px solid #d7dce2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    text-decoration: none;
}

.ai-resume-page .resource-link-card strong {
    display: block;
    margin-bottom: 7px;
    color: var(--btp-link, #2563eb);
}

.ai-resume-page .resource-link-card span {
    display: block;
    color: var(--btp-text, #334155);
    font-size: 15px;
    line-height: 1.5;
}

/* =========================================================
   CTA — BENCHMARK-STYLE LIGHT BLUE PANEL + BUTTON
   ========================================================= */

.ai-resume-page .article-cta {
    margin: 48px 0 24px;
    padding: 30px 30px 28px;
    background: #eef7ff;
    border: 1px solid #9dcbff;
    border-radius: 0;
    text-align: center;
}

.ai-resume-page .article-cta h2 {
    margin-top: 0;
}

.ai-resume-page .article-cta p:last-of-type {
    margin-bottom: 20px;
}

.ai-resume-page .article-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 22px;
    background: #2563eb;
    color: #ffffff !important;
    border: 1px solid #2563eb;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color .2s ease, border-color .2s ease;
}

.ai-resume-page .article-cta-button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* =========================================================
   RESPONSIVE STANDARD
   ========================================================= */

@media (min-width: 768px) and (max-width: 1023px) {
    .ai-resume-page .article-container {
        width: calc(100% - 92px);
        max-width: 1180px;
    }
}

@media (max-width: 767px) {
    .ai-resume-page .article-container {
        width: calc(100% - 32px);
        max-width: none;
    }

    .ai-resume-page .article-category {
        margin-top: 38px;
    }

    .ai-resume-page .article-toc {
        padding: 24px 20px;
    }

    .ai-resume-page .article-toc-list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .ai-resume-page .article-toc a {
        font-size: 16px;
    }

    .ai-resume-page .comparison-table-scroll {
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
    }

    .ai-resume-page .comparison-table {
        min-width: 640px;
    }

    .ai-resume-page .comparison-table th,
    .ai-resume-page .comparison-table td {
        padding: 12px 14px;
    }

    .ai-resume-page .resource-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ai-resume-page .article-cta {
        margin-top: 40px;
        padding: 24px 20px 22px;
    }

    .ai-resume-page .article-cta-button {
        width: 100%;
        max-width: 280px;
    }
}
