/* One continuous path: expertise becomes sustainable growth. */
.change-design-path {
    --path-surface: #f8f8f3;
    margin-top: 38px;
    padding: 34px clamp(20px, 3.2vw, 44px) 28px;
    border: 1px solid #e5e6db;
    border-radius: 20px;
    background: linear-gradient(120deg, #faf9f3, #f5f7f2);
    min-width: 0;
}

.change-design-path > .change-design-path-intro {
    max-width: 680px;
    margin: 0;
    font-family: var(--subheading, sans-serif);
    font-size: clamp(1rem, 1.4vw, 1.1875rem);
    font-weight: 500;
    line-height: 1.65;
    color: var(--ink, #252725);
    text-wrap: pretty;
}

.change-design-path > ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 38px -10px 32px;
    padding: 0;
    list-style: none;
    counter-reset: change-step;
}

.change-design-path > ol > li {
    --step-color: #CC4E00;
    --next-step-color: #49326B;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: 0 8px;
    font-family: var(--subheading, sans-serif);
    font-size: clamp(.9375rem, 1.4vw, 1.125rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink, #252725);
    text-align: center;
    overflow-wrap: anywhere;
    counter-increment: change-step;
}

.change-design-path > ol > li:nth-child(2) { --step-color: #49326B; --next-step-color: #1F628E; }
.change-design-path > ol > li:nth-child(3) { --step-color: #1F628E; --next-step-color: #68902B; }
.change-design-path > ol > li:nth-child(4) { --step-color: #68902B; --next-step-color: #E2B808; }
.change-design-path > ol > li:nth-child(5) { --step-color: #E2B808; }

.change-design-path > ol > li::before {
    content: counter(change-step, decimal-leading-zero);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    box-sizing: border-box;
    border: 1px solid var(--step-color);
    border-top-width: 3px;
    border-radius: 50%;
    background: #fff;
    color: var(--step-color);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: .025em;
    line-height: 1;
}

/* Gold remains an accent; the last number uses dark ink for contrast. */
.change-design-path > ol > li:last-child::before {
    color: #655109;
    background: #fffdf1;
}

.change-design-path > ol > li:nth-child(4)::before { color: #48651f; }

.change-design-path > ol > li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 31px;
    left: calc(50% + 42px);
    width: calc(100% - 84px);
    height: 2px;
    background: linear-gradient(90deg, var(--step-color), var(--next-step-color));
    opacity: .38;
}

/* Preserve the existing editable text nodes and arrow spans. */
.change-design-path > ol > li > span { display: none; }

.change-design-path > .change-design-path-closing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid #dedfd4;
    color: #4d544a;
    font-size: .9375rem;
    line-height: 1.7;
}

.change-design-path > .change-design-path-closing::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E2B808;
    box-shadow: 0 0 0 4px #e2b8081a;
}

@media (max-width: 760px) {
    .change-design-path { margin-top: 28px; padding-block: 26px 24px; }
    .change-design-path > ol { position: relative; grid-template-columns: minmax(0, 1fr); margin: 25px 0; }
    .change-design-path > ol::before {
        content: "";
        position: absolute;
        top: 39px;
        bottom: 39px;
        left: 25px;
        width: 2px;
        background: linear-gradient(180deg, #CC4E00, #49326B 25%, #1F628E 50%, #68902B 75%, #E2B808);
        opacity: .38;
    }
    .change-design-path > ol > li {
        flex-direction: row;
        justify-content: flex-start;
        gap: 22px;
        min-height: 78px;
        padding: 10px 0;
        text-align: left;
        font-size: 1.0625rem;
    }
    .change-design-path > ol > li::before { width: 52px; height: 52px; font-size: 1rem; }
    .change-design-path > ol > li:not(:last-child)::after { content: none; }
    .change-design-path > .change-design-path-closing { align-items: baseline; padding-top: 20px; font-size: .875rem; }
}

@media (prefers-contrast: more) {
    .change-design-path { border-color: #9a9d91; }
    .change-design-path > ol::before,
    .change-design-path > ol > li:not(:last-child)::after { opacity: 1; }
}
