section.step-section{
    max-width: 788px!important;
}
.step{
    position: relative!important;
    background-color: #1E214D!important;
    border-radius: 16px!important;
    padding: 1.25rem 1rem!important;
    margin-bottom: 0.5rem!important;
    margin-top: 0.5rem!important;
    display: flex!important;
    justify-content:flex-start!important;
    align-items: center!important;
}

.page-template-30-0-no .step{
    background-color: #1b1b1b!important;
}

.step__number{
    background-color: #4D5182!important;
    margin-right: 0.5rem!important;
    border-radius: 8px!important;
    width: 2.5rem!important;
    height: 2.5rem!important;
    display: flex!important;
    justify-content: center!important;
    align-items: center!important;
}

.page-template-30-0-no .step__number{
    background-color: #000!important;
}

.step__number span{
    color: #fff!important;
    font-size: 1.75rem!important;
    font-weight: 700!important;
}

/* ── Node types (merged in from WovenBase's Flow Chart) ────────────────────── */
/* Date and icon nodes stack their contents; the default number node does not. */
.step__number--date,
.step__number--icon{
    flex-direction: column!important;
    padding: 0.25rem!important;
}
.step__node-icon{
    max-width: 30px;
    max-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.step__number .step__node-month{
    color: #fff!important;
    font-size: 0.75rem!important;
    font-weight: 700!important;
    line-height: 1!important;
    text-transform: uppercase;
}
.step__number .step__node-day{
    color: #fff!important;
    font-size: 1.25rem!important;
    font-weight: 700!important;
    line-height: 1.1!important;
}
/* A full date needs the badge to grow — it is a line of text, not one or two
   characters, so the fixed 2.5rem square would clip it. */
.step__number .step__node-date--full{
    color: #fff!important;
    font-size: 0.7rem!important;
    font-weight: 700!important;
    line-height: 1.2!important;
    text-align: center;
    white-space: nowrap;
}
.step__number--date-full{
    width: auto!important;
    min-width: 2.5rem!important;
    padding: 0.25rem 0.5rem!important;
}

/* Optional display heading (howto_title stays schema-only and is never shown) */
.step-section__title,
#content-page h2.step-section__title,
#content-review h2.step-section__title{
    color: #fff!important;
    font-size: 20px!important;
    font-weight: 700!important;
    margin: 0 0 0.75rem!important;
    padding: 0!important;
}
.step__content{
    width: 100%!important;
}
.step__title,
h3.step__title,
#content-page h3.step__title,
#content-page .h3.step__title,
#content-review h3.step__title,
#content-review .h3.step__title,
#content-wrapper-homepage h3.step__title,
#content-wrapper-homepage .h3.step__title{
    color: #fff!important;
    font-size: 16px!important;
    font-weight: 700!important;
    margin-bottom: 16px!important;
    padding: 0!important;
    margin: 0!important;
    margin-bottom: 4px!important;
}

.step__subtitle,
#content-page div.step__subtitle,
#content-review div.step__subtitle,
#content-wrapper-homepage div.step__subtitle{
    color: #fff!important;
    font-size: 14px!important;
    line-height: 1.5!important;
    padding: 0!important;
    margin: 0!important;
    max-width: 85%!important;
}

.step__subtitle p,
#content-page .step__subtitle p,
#content-review .step__subtitle p,
#content-wrapper-homepage .step__subtitle p{
    color: #fff!important;
    font-size: 14px!important;
    line-height: 1.5!important;
    padding: 0!important;
    margin: 0!important;
}
.step__subtitle p + p{
    margin-top: 0.5rem!important;
}
/* The wysiwyg can now emit lists and links, which the plain text field could not. */
.step__subtitle ul,
.step__subtitle ol,
#content-page .step__subtitle ul,
#content-page .step__subtitle ol{
    margin: 0.5rem 0 0!important;
    padding-left: 1.25rem!important;
}
.step__subtitle li,
#content-page .step__subtitle li{
    color: #fff!important;
    font-size: 14px!important;
    line-height: 1.5!important;
    margin: 0!important;
}
.step__subtitle a,
#content-page .step__subtitle a{
    color: #76E48B!important;
    text-decoration: underline;
}
section.step-section.show_numbers .step-list{
    position: relative;
}
section.step-section.show_numbers .step-list .step{
    margin-left: 26px;
}
section.step-section.show_numbers .step-list .step::after{
    content: '';
    position: absolute;!important
    display: flex;
    align-self: center;
    justify-self: center;
    left: -26px;
    background-color: #76E48B!important;
    border: 1px solid #6065AA!important;
    border-radius: 100%;
    height: 10px;
    width: 10px;
}
section.step-section.show_numbers .step-list .step::before{
    content: '';
    position: absolute;
    display: flex;
    align-self: center;
    justify-self: center;
    left: -21px;
    background-color: #76E48B!important;
    height: calc(100% + 0.5rem);
    width: 2px;
}
/* Last step should be different*/
section.step-section.show_numbers .step-list .step:last-child::before{
    background-color: #76E48B;
    height: calc(51% + 0.5rem);
    top: -0.5rem;
}
/* First step should be different*/
section.step-section.show_numbers .step-list .step:first-child::before{
    background-color: #76E48B!important;
    height: calc(51% + 0.5rem);
    bottom: -0.5rem;
}
/* Steps with images need taller connecting line */
section.step-section.show_numbers .step-list .step.has-image::before{
    height: calc(100% + 1rem);
}
section.step-section.show_numbers .step-list .step.has-image:last-child::before{
    height: calc(51% + 0.5rem);
    top: -0.5rem;
}
section.step-section.show_numbers .step-list .step.has-image:first-child::before{
    height: calc(51% + 0.5rem);
    bottom: -0.5rem;
}
a.step{
    text-decoration: none;
}
a.step:hover{
    text-decoration: none;
    background-color: #2C2C69!important;
}
a.step .step__content .arrow-next{
    opacity: 1;
    right: 16px;
}
a.step .step__content .arrow-next::before{
    font-size: 24px;
    color: #76E48B!important;
}

/* Step Image Styles */
.step.has-image{
    flex-wrap: wrap;
}
.step__image{
    flex-shrink: 0;
    margin-left: auto;
    width: 80px;
    height: 80px;
}
.step__image img{
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}
/* When step has image, adjust content width */
.step.has-image .step__content{
    flex: 1;
    min-width: 0;
}
.step.has-image .step__subtitle{
    max-width: 100%;
}

/* Mobile: Number above content for all steps */
@media (max-width: 767px) {
    .step{
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .step .step__number{
        flex-shrink: 0;
        margin-bottom: 1rem;
    }
    .step .step__content{
        width: 100%;
        flex-basis: 100%;
        margin-left: 0;
    }
    /* Steps with image: Number and Image on same row, content below */
    .step.has-image{
        align-items: center;
    }
    .step.has-image .step__number{
        order: 0;
        margin-bottom: 0;
    }
    .step.has-image .step__image{
        order: 1;
        margin-left: 0.5rem;
        width: 60px;
        height: 60px;
    }
    .step.has-image .step__image img{
        width: 60px;
        height: 60px;
    }
    .step.has-image .step__content{
        order: 2;
        flex: 0 0 100%;
        width: 100%;
        margin-top: 1rem;
    }
}

/* –– Timeline layout (ClickUp 86caxcz6y) –––––––––––––––––––––––––––––––––– */

.step-section--timeline{
    --kb-tl-rail:     #DCDDEE;
    --kb-tl-node-bg:  #EAECFB;
    --kb-tl-node-fg:  #1025FF;
    --kb-tl-index:    #8A8FC0;
    --kb-tl-title:    #1E214D;
    --kb-tl-date:     #1025FF;
    --kb-tl-text:     #4D5182;
}
.dark-theme .step-section--timeline{
    --kb-tl-rail:     #4D5182;
    --kb-tl-node-bg:  #2C2C69;
    --kb-tl-node-fg:  #ffffff;
    --kb-tl-index:    #76E48B;
    --kb-tl-title:    #ffffff;
    --kb-tl-date:     #76E48B;
    --kb-tl-text:     #C9CBE6;
}

/* ── Kongebonus x Wovenbase alignment ────────────────────────────────────── */

.step-section--timeline .step{
    background: none!important;
    border-radius: 0!important;
    padding: 0!important;
}
.step-section--timeline a.step:hover{
    background: none!important;
}
.step-section--timeline.show_numbers .step-list .step::before,
.step-section--timeline.show_numbers .step-list .step::after,
.step-section--timeline .arrow-next{
    display: none!important;
}
.step-section--timeline.show_numbers .step-list .step{
    margin-left: 0!important;
}

/* Node: a soft disc holding an icon or a date. */
.step-section--timeline .step__number{
    margin: 0!important;
    border-radius: 100%!important;
    width: 3.25rem!important;
    height: 3.25rem!important;
    flex-shrink: 0;
    background-color: var(--kb-tl-node-bg)!important;
    color: var(--kb-tl-node-fg)!important;
    z-index: 1;
}

.step-section--timeline .step__number--auto span{
    display: none;
}
.step-section--timeline .step__number span,
.step-section--timeline .step__number .step__node-month,
.step-section--timeline .step__number .step__node-day,
.step-section--timeline .step__number .step__node-date--full{
    color: var(--kb-tl-node-fg)!important;
}
.step-section--timeline .step__number--date-full{
    width: auto!important;
    min-width: 3.25rem!important;
    border-radius: 999px!important;
    padding: 0.4rem 0.85rem!important;
}
.step-section--timeline .step__node-icon{
    max-width: 26px;
    max-height: 26px;
}

.step-section--timeline .step__index{
    display: block;
    color: var(--kb-tl-index)!important;
    font-size: 12px!important;
    font-weight: 700!important;
    line-height: 1!important;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}
.step-section--timeline .step__title,
#content-page .step-section--timeline h3.step__title,
#content-page .step-section--timeline .h3.step__title,
#content-review .step-section--timeline h3.step__title,
#content-wrapper-homepage .step-section--timeline h3.step__title{
    color: var(--kb-tl-title)!important;
    font-size: 16px!important;
    margin-bottom: 0.35rem!important;
}
.step-section--timeline .step__subtitle,
.step-section--timeline .step__subtitle p,
.step-section--timeline .step__subtitle li,
#content-page .step-section--timeline div.step__subtitle,
#content-page .step-section--timeline .step__subtitle p,
#content-page .step-section--timeline .step__subtitle li,
#content-review .step-section--timeline .step__subtitle p,
#content-wrapper-homepage .step-section--timeline .step__subtitle p{
    color: var(--kb-tl-text)!important;
    font-size: 14px!important;
    max-width: 100%!important;
}
.step-section--timeline .step__subtitle a,
#content-page .step-section--timeline .step__subtitle a{
    color: var(--kb-tl-date)!important;
}
.step-section--timeline .step-section__title,
#content-page h2.step-section--timeline__title,
#content-page .step-section--timeline .step-section__title{
    color: var(--kb-tl-title)!important;
}

@media (max-width: 991px) {
    .step-section--timeline .step-list{
        position: relative;
        display: block;
        padding-left: 0;
    }
    /* The rail, running through the node centres. 1.625rem = half the node. */
    .step-section--timeline .step-list::before{
        content: '';
        position: absolute;
        left: 1.625rem;
        top: 1.625rem;
        bottom: 1.625rem;
        width: 2px;
        background-color: var(--kb-tl-rail);
    }
    .step-section--timeline .step{
        display: grid!important;
        grid-template-columns: 3.25rem 1fr;
        column-gap: 1rem;
        align-items: start;
        margin: 0 0 1.75rem!important;
        min-height: 0;
    }
    .step-section--timeline .step:last-child{
        margin-bottom: 0!important;
    }
    .step-section--timeline .step__content{
        width: auto!important;
        text-align: left;
        padding-top: 0.35rem;
    }
    /* No stalk on this axis — the rail already connects the nodes. */
    .step-section--timeline .step__content::after{
        display: none;
    }
    .step-section--timeline .step__image{
        grid-column: 2;
        margin: 0.5rem 0 0!important;
    }
    /* Arrows belong to the scrolling desktop axis only. */
    .step-section--timeline .step-list__arrow{
        display: none!important;
    }
}

/* ── ≥ 992px: horizontal, alternating above and below the rule ────────────── */
@media (min-width: 992px) {
    section.step-section--timeline{
        max-width: 100%!important;
    }

    .step-section--timeline{
        position: relative;
    }
    .step-section--timeline .step-list{
        display: flex;
        align-items: center;
        gap: 0;
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        scroll-behavior: smooth;
    }
    .step-section--timeline .step-list::-webkit-scrollbar{
        display: none;
    }

    /* The rule. Drawn on the track so it scrolls with the steps. */
    .step-section--timeline .step-list::before{
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 2px;
        background-color: var(--kb-tl-rail);
        z-index: 0;
    }

    .step-section--timeline .step{
        position: relative;
        flex: 1 0 220px;
        min-width: 220px;
        margin: 0!important;
        display: grid!important;
        grid-template-rows: 1fr auto 1fr;
        justify-items: start;
        align-items: center;
        z-index: 1;
        min-height: 340px;
    }

    .step-section--timeline .step__number{
        grid-row: 2;
    }
    .step-section--timeline .step:nth-child(odd) .step__content{
        grid-row: 1;
        align-self: end;
        padding-bottom: 1.25rem;
    }
    .step-section--timeline .step:nth-child(even) .step__content{
        grid-row: 3;
        align-self: start;
        padding-top: 1.25rem;
    }

    .step-section--timeline .step__content::after{
        content: '';
        position: absolute;
        left: 1.625rem;
        width: 2px;
        height: 1.25rem;
        background-color: var(--kb-tl-rail);
    }
    .step-section--timeline .step:nth-child(odd) .step__content::after{
        bottom: 0;
    }
    .step-section--timeline .step:nth-child(even) .step__content::after{
        top: 0;
    }

    .step-section--timeline .step__content{
        position: relative;
        width: 100%!important;
        max-width: 15rem;
        padding-right: 1.25rem;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }
    .step-section--timeline .step:nth-child(even) .step__content{
        justify-content: flex-start;
    }

    .step-section--timeline .step__image{
        margin: 0 auto 0.5rem!important;
    }

    .step-section--timeline .step-list__arrow{
        display: none;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 2.25rem;
        height: 2.25rem;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--kb-tl-rail);
        border-radius: 100%;
        background-color: var(--kb-tl-node-bg);
        color: var(--kb-tl-node-fg);
        cursor: pointer;
        padding: 0;
    }
    .step-section--timeline .step-list__arrow:hover{
        filter: brightness(0.95);
    }
    .step-section--timeline .step-list__arrow--left{ left: -0.5rem; }
    .step-section--timeline .step-list__arrow--right{ right: -0.5rem; }
}
