/* Employee Lifecycle widget */

.elc {
    --elc-navy: #253D8B;
    --elc-purple: #666766;
    --elc-blue: #5b8fe0;
    --elc-halo: #dde7f9;
    --elc-purple: #b64198;
    --elc-text: #555;
    --elc-border: 2px;
    --elc-icon: 36px;
    --elc-pad-left: 4.25rem;
    --elc-line-width: 2px;

    position: relative;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    font-family: var(--elc-font, "Poppins", system-ui, -apple-system, sans-serif);
}

.elc *,
.elc *::before,
.elc *::after {
    box-sizing: border-box;
}

/* Cards */
.elc .elc__card {
    --elc-card: var(--elc-purple);
    overflow: hidden;
    background: #fff;
    border: var(--elc-border) solid var(--elc-card);
    border-radius: 1.75rem;
}

.elc .elc__card--assessment {
    --elc-card: var(--elc-navy);
}

.elc .elc__card+.elc__card {
    margin-top: 1.5rem;
}

/* H2 doubles as the coloured header band */
.elc .elc__title {
    margin: 0;
    padding: 0.6rem 1rem;
    background: var(--elc-card);
    color: #fff;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: uppercase;
}

/* Items */
.elc .elc__list {
    display: flex;
    flex-direction: column;
    gap: 3.25rem;
    margin: 0;
    padding: 2.25rem 1.5rem 2.25rem var(--elc-pad-left);
    list-style: none;
}

.elc .elc__item {
    display: grid;
    grid-template-columns: var(--elc-icon) minmax(0, 1fr);
    column-gap: 1.75rem;
    align-items: start;
    margin: 0;
    padding: 0;
}

.elc .elc__icon {
    position: relative;
    z-index: 2;
    /* sits above the vertical line */
    display: block;
    width: var(--elc-icon);
    height: var(--elc-icon);
    margin-top: -0.3rem;
    will-change: transform;
}

.elc .elc__svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.elc .elc__heading {
    max-width: 7.5em;
    margin: 0;
    color: var(--elc-navy);
    font-family: inherit;
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.2;
}

.elc .elc__text {
    max-width: 13rem;
    margin: 0.6rem 0 0;
    color: var(--elc-text);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
    text-wrap: balance;
}

/* Vertical line: geometry (top/height) is set by JS from the icon positions */
.elc .elc__line {
    position: absolute;
    z-index: 1;
    top: 0;
    left: calc(var(--elc-border) + var(--elc-pad-left) + (var(--elc-icon) / 2) - (var(--elc-line-width) / 2));
    width: var(--elc-line-width);
    height: 0;
    pointer-events: none;
}

.elc .elc__line-fill {
    position: absolute;
    inset: 0;
    display: block;
    background: var(--elc-blue);
    transform-origin: top center;
    will-change: transform;
}

/* Hidden until JS prepares the animation (prevents a flash of the final state) */
.elc--pending .elc__icon,
.elc--pending .elc__line {
    opacity: 0;
}

/* Small screens */
@media (max-width: 480px) {
    .elc {
        --elc-pad-left: 3.25rem;
    }

    .elc .elc__item {
        column-gap: 1.25rem;
    }

    .elc .elc__heading {
        font-size: 1.25rem;
    }
}