/* v2 learning path presentation, scoped to the migrated course section. */
.learning-path {
    position: relative;
    isolation: isolate;
    width: min(1310px, calc(100% - 64px));
    margin: 0 auto;
    padding-top: clamp(48px, 5.4vw, 76px);
    padding-bottom: clamp(62px, 6vw, 92px);
    color: #102d56;
    --zby-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.legacy-course-outline,
.legacy-course-upgrade {
    display: none !important;
}

.learning-path__intro {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}

.learning-path__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 11px;
    color: #1572ec;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.learning-path__eyebrow > span {
    display: inline-block;
    width: 6px;
    height: 16px;
    border-radius: 99px;
    background: #1377f2;
    transform: rotate(28deg);
}

.learning-path__intro h2 {
    margin: 0;
    color: #071c42;
    font-size: clamp(30px, 3.35vw, 45px);
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.16;
}

.learning-path__description {
    max-width: 720px;
    margin: 10px 0 0;
    color: #6981a5;
    font-size: 16px;
    line-height: 1.6;
}

.learning-path__motto {
    position: relative;
    display: block;
    width: 220px;
    height: 126px;
    flex: 0 0 220px;
    margin: 0 4px -4px 0;
}

.learning-path__motto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

.learning-path__layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.learning-path__stage-column,
.learning-path__stage-card-shell {
    min-width: 0;
}

.learning-path__stage-card-shell {
    overscroll-behavior: contain;
}

.learning-path__stage-card-shell:focus-visible {
    outline: 3px solid #6aa3ff;
    outline-offset: 4px;
    border-radius: 17px;
}

/* Progress rail */
.learning-path__rail.rb-progress-rail {
    position: sticky;
    top: 100px;
    display: block;
    min-height: 434px;
    padding: 29px 0 18px 22px;
}

.rb-progress-rail__track {
    position: absolute;
    top: 37px;
    bottom: 55px;
    left: 4px;
    width: 1px;
    overflow: hidden;
    background: #c9ddf7;
}

.rb-progress-rail__fill {
    display: block;
    width: 100%;
    height: calc(100% - 100px);
    background: #2e83ed;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 240ms ease;
}

.rb-progress-rail__list {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 29px;
    right: 0;
    bottom: 145px;
    left: 22px;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rb-progress-rail__list li {
    position: relative;
    flex: 0 0 20px;
    min-height: 20px;
    height: 20px;
    color: #7890b4;
    font-size: 13px;
    line-height: 1.4;
    transition: color 200ms ease, transform 200ms ease;
}

.rb-progress-rail__button {
    position: relative;
    display: flex;
    width: 100%;
    height: 20px;
    min-height: 20px;
    align-items: center;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.rb-progress-rail__button:hover {
    color: #3c69a7;
}

.rb-progress-rail__dot {
    position: absolute;
    top: 50%;
    left: -22px;
    width: 10px;
    height: 10px;
    border: 2px solid #9bbce9;
    border-radius: 50%;
    background: #f7fbff;
    box-shadow: 0 0 0 2px rgb(247 251 255 / 88%);
    transform: translateY(-50%);
    transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.rb-progress-rail__list li.is-active {
    color: #143c77;
    font-weight: 700;
    transform: translateX(3px);
}

.rb-progress-rail__list li.is-active .rb-progress-rail__dot {
    width: 13px;
    height: 13px;
    border: 3px solid #d7eaff;
    background: #1b7cf1;
    box-shadow: 0 0 0 1px #3e91f5, 0 0 0 4px rgb(62 145 245 / 12%);
    transform: translate(-2px, -50%);
}

.rb-progress-rail__list li.is-complete .rb-progress-rail__dot {
    border-color: #7eb4ec;
    background: #7eb4ec;
}

.rb-progress-rail__count {
    display: none;
}

/* Stage card */
.learning-path__stage-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 94%);
    border-radius: 17px;
    background: #edf6ff;
    box-shadow: 0 20px 44px rgb(64 121 206 / 14%), inset 0 1px 0 rgb(255 255 255 / 72%);
}

.learning-path__stage-card.is-entering {
    animation: learning-path-stage-enter 360ms cubic-bezier(.16, 1, .3, 1);
}

.learning-path__stage-card.is-leaving {
    animation: learning-path-stage-exit 360ms cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
}

.learning-path__stage-card::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgb(255 255 255 / 55%) 0%, rgb(255 255 255 / 24%) 52%, rgb(226 239 255 / 43%) 100%);
    content: "";
    pointer-events: none;
}

.learning-path__stage-background {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .96;
    pointer-events: none;
}

.learning-path__stage-hero,
.learning-path__curriculum,
.learning-path__outcome {
    position: relative;
    z-index: 1;
}

.learning-path__stage-hero {
    display: grid;
    min-height: 173px;
    grid-template-columns: minmax(0, 1fr) 285px;
    align-items: center;
    padding: 22px 26px 17px 28px;
}

.learning-path__stage-copy {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.learning-path__stage-copy h3 {
    margin: 1px 0 5px;
    color: #071b43;
    font-size: clamp(23px, 2vw, 29px);
    font-weight: 760;
    line-height: 1.25;
}

.learning-path__stage-copy p {
    max-width: 590px;
    margin: 0;
    color: #7187a9;
    font-size: 13px;
    line-height: 1.55;
}

.learning-path__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.learning-path__tag {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid #d4e7fc;
    border-radius: 999px;
    color: #35629a;
    background: rgb(255 255 255 / 55%);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.learning-path__tag i,
.learning-path__curriculum-icon,
.learning-path__module-caret,
.learning-path__outcome i {
    color: #1680f1;
}

.learning-path__stage-art {
    position: relative;
    width: 100%;
    height: 178px;
    margin-top: -6px;
}

.learning-path__stage-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 20px rgb(35 114 229 / 11%));
    transform: scale(1.28);
}

/* Curriculum rows */
.learning-path__curriculum {
    margin: 0 12px 12px;
    padding: 16px 13px 14px;
    border: 1px solid rgb(255 255 255 / 98%);
    border-radius: 15px;
    background: rgb(255 255 255 / 86%);
    box-shadow: 0 8px 20px rgb(73 127 195 / 5%), inset 0 1px 0 rgb(255 255 255 / 96%);
}

.learning-path__curriculum-heading {
    display: flex;
    min-height: 33px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 6px 11px;
}

.learning-path__curriculum-heading > div {
    display: grid;
    min-width: 0;
    grid-template-columns: 31px minmax(0, auto);
    align-items: center;
    column-gap: 10px;
}

.learning-path__curriculum-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    font-size: 19px;
}

.learning-path__curriculum-heading h4 {
    margin: 0;
    color: #102e62;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.3;
}

.learning-path__curriculum-heading p {
    grid-column: 2;
    margin: 2px 0 0;
    color: #7390b7;
    font-size: 12px;
    line-height: 1.35;
}

.learning-path__curriculum-heading > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    color: #6a84ac;
    font-size: 12px;
    white-space: nowrap;
}

.learning-path__curriculum-heading > span:last-child i {
    display: inline-block;
    width: 22px;
    height: 4px;
    border-radius: 999px;
    background: #1479ee;
}

.learning-path__modules {
    display: grid;
    gap: 4px;
}

.learning-path__module-row {
    display: grid;
    min-height: 57px;
    grid-template-columns: 151px 1px minmax(0, 1fr) 33px;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 12px;
    border: 1px solid #dfebf8;
    border-radius: 12px;
    background: linear-gradient(105deg, rgb(251 253 255 / 98%), rgb(248 252 255 / 78%));
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.learning-path__module-row:hover {
    border-color: #bcd9fb;
    background: #fff;
    box-shadow: 0 6px 16px rgb(83 142 215 / 7%);
}

.learning-path__module-row strong {
    min-width: 0;
    color: #102c60;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.learning-path__module-divider {
    display: block;
    width: 1px;
    height: 25px;
    background: #b7cbe6;
}

.learning-path__module-row ul {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 15px;
    margin: 0;
    padding: 0;
    color: #7892b8;
    font-size: 12px;
    line-height: 1.25;
    list-style: none;
}

.learning-path__module-row li {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding-left: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learning-path__module-row li::before {
    position: absolute;
    top: .43em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8fb8f3;
    content: "";
}

.learning-path__module-caret {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid #d4e7fb;
    border-radius: 50%;
    background: #f9fcff;
    box-shadow: 0 3px 8px rgb(74 137 218 / 9%);
}

.learning-path__module-caret i {
    font-size: 13px;
}

.learning-path__outcome {
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    padding: 11px 23px;
    border-top: 1px solid rgb(207 228 252 / 73%);
    background: linear-gradient(95deg, rgb(222 239 255 / 73%), rgb(245 251 255 / 62%));
}

.learning-path__outcome > strong {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    color: #124b9d;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.learning-path__outcome > strong > span {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 2px solid #1d82f0;
    border-radius: 50%;
}

.learning-path__outcome > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: #4873ad;
    font-size: 12px;
}

.learning-path__outcome > div > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.learning-path__outcome > div > span:not(:last-child)::after {
    width: 1px;
    height: 15px;
    margin-left: 8px;
    background: #a1c2e9;
    content: "";
}

.learning-path__outcome > div i {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #1878eb;
    box-shadow: 0 4px 9px rgb(27 120 235 / 19%);
}

@keyframes learning-path-stage-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes learning-path-stage-exit {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

@media (min-width: 1121px) {
    .learning-path__rail.rb-progress-rail {
        transform: translateX(15px);
    }
}

@media (max-width: 1120px) {
    .learning-path {
        width: min(100% - 40px, 980px);
    }

    .learning-path__layout {
        grid-template-columns: 166px minmax(0, 1fr);
        gap: 18px;
    }

    .learning-path__stage-hero {
        grid-template-columns: minmax(0, 1fr) 220px;
        padding-inline: 20px;
    }

    .learning-path__module-row {
        grid-template-columns: 126px 1px minmax(0, 1fr) 30px;
        gap: 6px;
        padding-left: 8px;
    }

    .learning-path__module-row ul {
        gap: 5px 8px;
        font-size: 11px;
    }

    .learning-path__module-row li {
        padding-left: 9px;
    }
}

@media (max-width: 900px) {
    .learning-path__layout {
        display: block;
    }

    .learning-path__rail.rb-progress-rail {
        position: relative;
        top: auto;
        min-height: 0;
        padding: 0 0 12px;
        transform: none;
    }

    .learning-path__rail .rb-progress-rail__track {
        display: none;
    }

    .learning-path__rail .rb-progress-rail__list {
        position: relative;
        display: flex;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        height: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        padding: 3px 2px 7px;
        scrollbar-width: thin;
    }

    .learning-path__rail .rb-progress-rail__list li {
        flex: 0 0 142px;
        min-height: 38px;
        padding: 8px 9px 8px 18px;
        border: 1px solid transparent;
        border-radius: 9px;
        background: rgb(255 255 255 / 50%);
    }

    .learning-path__rail .rb-progress-rail__list li.is-active {
        border-color: #a9d0ff;
        background: linear-gradient(135deg, rgb(248 252 255 / 96%), rgb(229 242 255 / 83%));
        transform: none;
    }

    .learning-path__rail .rb-progress-rail__dot,
    .learning-path__rail .rb-progress-rail__list li.is-active .rb-progress-rail__dot {
        top: .65em;
        left: 2px;
        width: 9px;
        height: 9px;
        border-width: 2px;
        box-shadow: none;
        transform: none;
    }

    .learning-path__rail .rb-progress-rail__list li.is-active .rb-progress-rail__dot {
        border-width: 3px;
        background: #1b7cf1;
    }

    .learning-path__stage-hero {
        grid-template-columns: minmax(0, 1fr) 175px;
    }

    .learning-path__stage-art {
        height: 150px;
    }
}

@media (max-width: 620px) {
    .learning-path {
        width: min(100% - 28px, 520px);
        padding-top: 42px;
        padding-bottom: 56px;
    }

    .learning-path__motto {
        display: none;
    }

    .learning-path__intro {
        margin-bottom: 18px;
    }

    .learning-path__intro h2 {
        font-size: 29px;
        line-height: 1.25;
    }

    .learning-path__description {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.55;
    }

    .learning-path__stage-card {
        border-radius: 14px;
    }

    .learning-path__stage-hero {
        display: block;
        min-height: 0;
        padding: 20px 16px 6px;
    }

    .learning-path__stage-copy h3 {
        margin-top: 2px;
        font-size: 21px;
    }

    .learning-path__stage-copy p {
        font-size: 11px;
        line-height: 1.5;
    }

    .learning-path__tags {
        gap: 6px;
        margin-top: 10px;
    }

    .learning-path__tag {
        min-height: 27px;
        gap: 5px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .learning-path__stage-art {
        width: 185px;
        height: 132px;
        margin: -4px 0 -4px auto;
    }

    .learning-path__curriculum {
        margin: 0 7px 7px;
        padding: 12px 7px 8px;
        border-radius: 12px;
    }

    .learning-path__curriculum-heading {
        display: block;
        padding: 0 4px 9px;
    }

    .learning-path__curriculum-heading h4 {
        font-size: 15px;
    }

    .learning-path__curriculum-heading p {
        margin-top: 3px;
        font-size: 10px;
    }

    .learning-path__curriculum-heading > span:last-child {
        display: none;
    }

    .learning-path__module-row {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) 27px;
        align-items: start;
        gap: 5px;
        padding: 8px 6px;
    }

    .learning-path__module-row strong {
        align-self: center;
        font-size: 12px;
    }

    .learning-path__module-divider {
        display: none;
    }

    .learning-path__module-row ul {
        grid-column: 1 / 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px 8px;
        padding-top: 5px;
        font-size: 10px;
    }

    .learning-path__module-row li {
        padding-left: 9px;
    }

    .learning-path__module-caret {
        grid-column: 2;
        grid-row: 1;
        width: 27px;
        height: 27px;
    }

    .learning-path__outcome {
        display: block;
        min-height: 0;
        padding: 12px 13px 14px;
    }

    .learning-path__outcome > div {
        gap: 8px 12px;
        margin-top: 10px;
        font-size: 10px;
    }

    .learning-path__outcome > div > span:not(:last-child)::after {
        display: none;
    }

    .learning-path__outcome > div i {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 420px) {
    .learning-path__rail .rb-progress-rail__list li {
        flex-basis: 130px;
    }

    .learning-path__module-row ul {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .learning-path__stage-card,
    .rb-progress-rail__fill,
    .rb-progress-rail__list li {
        animation: none;
        transition: none;
    }

    .learning-path__stage-card.is-leaving {
        pointer-events: auto;
    }
}
