.cp-map-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 64px;
}
.cp-map-hero,
.cp-ba-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: center;
    margin-bottom: 22px;
}
.cp-map-hero.compact {
    grid-template-columns: minmax(0, 1fr) auto;
}
.cp-map-kicker {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.cp-map-hero h1,
.cp-ba-hero h1 {
    color: var(--black);
    font-size: 36px;
    line-height: 1.12;
    margin: 0;
}
.cp-map-hero p,
.cp-ba-hero p {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.7;
    max-width: 700px;
    margin: 12px 0 0;
}
.cp-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.cp-journey-visual,
.cp-ba-visual {
    min-height: 280px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .12), transparent 28%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, .14), transparent 30%),
        var(--white);
    position: relative;
    overflow: hidden;
}
.cp-journey-visual::before {
    content: '';
    position: absolute;
    inset: 52% 26px auto 26px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 999px;
}
.cp-journey-node {
    position: absolute;
    width: 122px;
    min-height: 76px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 6px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}
.cp-journey-node i { color: var(--primary); font-size: 18px; }
.cp-journey-node span { color: var(--gray-800); font-size: 12px; font-weight: 700; line-height: 1.3; }
.node-1 { left: 18px; top: 160px; }
.node-2 { left: 96px; top: 94px; }
.node-3 { left: 176px; top: 150px; }
.node-4 { right: 92px; top: 82px; }
.node-5 { right: 18px; top: 142px; }
.cp-roadmap-strip {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0 24px;
}
.cp-roadmap-dot {
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 10px 8px;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}
.cp-roadmap-dot span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 12px;
}
.cp-roadmap-dot strong {
    color: var(--gray-700);
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
}
.cp-stage-list {
    display: grid;
    gap: 14px;
}
.cp-stage-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 18px;
    scroll-margin-top: calc(var(--header-height) + 16px);
}
.cp-stage-rank {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 8px;
}
.cp-stage-rank span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-lighter);
    color: var(--primary);
    font-weight: 900;
}
.cp-stage-rank i { color: var(--gray-600); font-size: 22px; }
.cp-stage-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.cp-stage-head h2 {
    color: var(--black);
    font-size: 20px;
    margin: 0 0 5px;
}
.cp-stage-head p,
.cp-map-section-head p,
.cp-phase-card p,
.cp-learning-grid p {
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}
.cp-stage-time {
    align-self: start;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 700;
}
.cp-stage-grid,
.cp-learning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.cp-stage-grid h3,
.cp-stage-courses h3,
.cp-phase-card h3,
.cp-learning-grid h3,
.cp-matrix-col h3 {
    color: var(--gray-900);
    font-size: 13px;
    margin: 0 0 8px;
}
.cp-check-list {
    display: grid;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cp-check-list li {
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.45;
    padding-left: 18px;
    position: relative;
}
.cp-check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 10px;
}
.cp-inline-skill-link {
    color: var(--gray-800);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-light);
    font-weight: 700;
}
.cp-inline-skill-link:hover {
    color: var(--primary);
    border-bottom-style: solid;
}
.cp-stage-courses { margin-top: 14px; }
.cp-people-track {
    margin-top: 12px;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
    padding: 12px;
}
.cp-people-track h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--gray-900);
    font-size: 13px;
    margin: 0 0 8px;
}
.cp-people-track h3 i {
    color: var(--primary);
}
.cp-mini-course-list,
.cp-course-sequence {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.cp-mini-course-list a,
.cp-course-sequence a {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    color: var(--gray-800);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    background: var(--gray-50, #F9FAFB);
}
.cp-map-section,
.cp-skill-matrix {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 20px;
}
.cp-map-section-head { margin-bottom: 14px; }
.cp-map-section-head h2 {
    color: var(--black);
    font-size: 22px;
    margin: 0 0 6px;
}
.cp-matrix-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.cp-matrix-col {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}
.cp-matrix-col span {
    display: block;
    color: var(--gray-700);
    font-size: 12px;
    padding: 6px 0;
    border-top: 1px solid var(--border);
}
.cp-ba-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 22px;
}
.cp-ba-visual div {
    display: grid;
    align-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .84);
    padding: 14px;
}
.cp-ba-visual span { color: var(--primary); font-size: 12px; font-weight: 800; }
.cp-ba-visual strong { color: var(--black); font-size: 16px; }
.cp-phase-ladder {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.cp-phase-card,
.cp-learning-grid div,
.cp-role-deep-card,
.cp-empty-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 16px;
}
.cp-phase-label {
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.cp-phase-card h2 {
    color: var(--black);
    font-size: 18px;
    margin: 6px 0;
}
.cp-phase-card > span {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}
.cp-portfolio-proof {
    margin-top: 12px;
    color: var(--gray-800);
    font-size: 12px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}
.cp-course-sequence a {
    display: grid;
    gap: 5px;
}
.cp-course-sequence span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
}
.cp-course-sequence small { color: var(--gray-500); }
.cp-role-board {
    display: grid;
    gap: 14px;
}
.cp-role-deep-card.is-active { border-color: var(--primary); background: var(--primary-lighter); }
.cp-role-deep-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.cp-role-deep-card h2 {
    color: var(--black);
    font-size: 20px;
    margin: 5px 0 0;
}
.cp-role-deep-card header strong {
    color: var(--gray-800);
    font-size: 13px;
    white-space: nowrap;
}
.cp-role-level-pill {
    color: var(--primary);
    background: var(--primary-lighter);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 800;
}
.cp-role-deep-card p {
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.6;
}
.cp-role-facts,
.cp-role-skill-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.cp-role-facts span,
.cp-role-skill-strip a {
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--gray-700);
    padding: 6px 10px;
    font-size: 12px;
    text-decoration: none;
    background: var(--white);
}
.cp-role-facts .high { color: #B91C1C; background: #FEF2F2; border-color: #FECACA; }
.cp-role-facts .medium { color: #92400E; background: #FFFBEB; border-color: #FDE68A; }
.cp-role-facts .low { color: #047857; background: #ECFDF5; border-color: #A7F3D0; }
.cp-role-action { margin-top: 14px; }

@media (max-width: 980px) {
    .cp-map-hero,
    .cp-ba-hero,
    .cp-map-hero.compact,
    .cp-phase-ladder,
    .cp-matrix-grid {
        grid-template-columns: 1fr;
    }
    .cp-roadmap-strip {
        display: flex;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    .cp-roadmap-dot {
        width: 120px;
        flex: 0 0 auto;
    }
}
@media (max-width: 700px) {
    .cp-map-page { padding: 18px 12px 42px; }
    .cp-map-hero h1,
    .cp-ba-hero h1 { font-size: 28px; }
    .cp-stage-card,
    .cp-stage-grid,
    .cp-mini-course-list,
    .cp-course-sequence,
    .cp-learning-grid {
        grid-template-columns: 1fr;
    }
    .cp-stage-head,
    .cp-role-deep-card header {
        display: grid;
    }
    .cp-stage-time { justify-self: start; }
}

/* ── BA → PM roadmap: phone layout ─────────────────────────────────────────
   The page is 4,774px on a 844px screen — 5.7 screens — and had no way to skip
   ahead. Everything below is additive; the desktop rules above are untouched. */

/* The phase head is a button now, so it needs to look like the block it
   replaced rather than like a control. */
.cp-phase-head {
    display: block; width: 100%; padding: 0; margin: 0;
    background: none; border: 0; text-align: inherit; font: inherit;
    color: inherit; cursor: default;
}
.cp-phase-chev { display: none; }
.cp-phase-head .cp-phase-label { pointer-events: none; }

/* Section nav: hidden on desktop, where the whole page is scannable already. */
.cp-nav-top { height: 1px; }
.cp-nav { display: none; }

@media (max-width: 640px) {
    .cp-nav {
        display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: sticky; top: calc(var(--header-height, 56px) + 8px); z-index: 20;
        margin: 0 0 14px; padding: 8px 0;
        background: var(--white, #fff);
        -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
                mask-image: linear-gradient(90deg, #000 90%, transparent);
    }
    .cp-nav::-webkit-scrollbar { display: none; }
    .cp-nav.is-stuck { box-shadow: 0 6px 18px rgba(15, 23, 42, .10); }
    .cp-nav a {
        flex: 0 0 auto; white-space: nowrap; text-decoration: none;
        padding: 7px 13px; border-radius: 999px;
        background: var(--gray-100, #F3F4F6); border: 1px solid var(--border, #E5E7EB);
        color: var(--gray-700, #374151); font-size: 12px; font-weight: 700;
    }
    /* Anchored sections must clear the sticky nav when jumped to. */
    #cp-phases, #cp-learn, #cp-courses { scroll-margin-top: var(--cp-anchor-offset, 130px); }

    /* Two CTAs at 210px and 181px read as a mistake; equal full-width also
       clears the 44px touch target. */
    .cp-map-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
    .cp-map-actions .btn { width: 100%; justify-content: center; }

    /* Collapse the phases. All four fully expanded came to 1,127px — the reader
       cannot see the shape of the roadmap without scrolling past all of it. */
    .cp-phase-card { padding: 0; }
    .cp-phase-head {
        cursor: pointer; position: relative; padding: 14px 38px 14px 16px;
    }
    .cp-phase-head h2 { margin: 2px 0 4px; font-size: 16px; }
    .cp-phase-head .cp-phase-dur { display: none; }   /* already in the label line */
    .cp-phase-head p { margin: 0; font-size: 13px; line-height: 1.5; }
    .cp-phase-chev {
        display: block; position: absolute; right: 15px; top: 18px;
        color: var(--gray-400, #9CA3AF); font-size: 12px; transition: transform .18s ease;
    }
    .cp-phase-head[aria-expanded="true"] .cp-phase-chev { transform: rotate(180deg); }
    @media (prefers-reduced-motion: reduce) { .cp-phase-chev { transition: none; } }

    .cp-phase-body { display: none; padding: 0 16px 15px; }
    .cp-phase-card.is-open .cp-phase-body { display: block; }

    /* 108px per course card for two lines of text. */
    .cp-course-sequence a {
        display: flex; align-items: center; gap: 10px;
        padding: 10px 12px; min-height: 0;
    }
    .cp-course-sequence a > span { flex: 0 0 auto; margin: 0; }
    .cp-course-sequence a > strong { font-size: 13px; line-height: 1.35; }
    .cp-course-sequence a > small { display: block; font-size: 11px; margin-top: 1px; }
}
