/* ==========================================================================
   Valunxt – "How it works" as an editorial schedule (QA 2026-11-21).
   Markup: px_process(..., 'schedule') in includes/practice-parts.php.
   Shared by the practice pages and the sub-service pages; one source so the
   two read alike. Sits beside the sub-service Scope section (.ssc): square
   corners, no cards, no shadows, no numerals, rows on hairlines, a 2px blue
   bar on the inline-start edge of the row under the pointer.
   The timing of each step leads, in large light type in its own column.
   Wide screens: heading (sticky) | schedule. Tablet: heading above, the
   schedule in two columns. Phones: compact rows, timing above the name.
   ========================================================================== */
.pxs {
    --pxs-ease: cubic-bezier(.2, .7, .2, 1);
    --pxs-line: rgba(10, 30, 90, .12);
    position: relative;
    padding: var(--space-sec, clamp(56px, 7vw, 104px)) 0;
    background: linear-gradient(180deg, #f6f8fe 0%, #fff 100%);
    color: var(--ink, #0a1230);
}

.pxs__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(40px, 6vw, 112px);
}

/* heading: kicker, title, lead and the span from the first timing to the last */
.pxs__head {
    position: sticky;
    top: 112px;
}

.pxs .pxs__kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink, #0a1230);
}

.pxs .pxs__kicker::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    background: var(--blue, #0b2dbe);
}

.pxs .pxs__title {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: var(--ink, #0a1230);
    text-wrap: balance;
}

.pxs .pxs__lead {
    max-width: 30em;
    margin: 22px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-70, rgba(10, 18, 48, .7));
    text-wrap: pretty;
}

.pxs .pxs__span {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 30em;
    margin: 34px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--pxs-line);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--blue, #0b2dbe);
}

.pxs__span-line {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, var(--blue, #0b2dbe), rgba(11, 45, 190, .15));
}

/* the schedule */
.pxs .pxs__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--pxs-line);
}

.pxs .pxs__row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
    align-items: baseline;
    gap: 24px;
    margin: 0;
    padding: clamp(26px, 2.4vw, 34px) 0 clamp(26px, 2.4vw, 34px) 26px;
    border-bottom: 1px solid var(--pxs-line);
}

/* the row marker: a 2px bar that draws down the inline-start edge */
.pxs__row::before {
    content: "";
    position: absolute;
    inset-block: -1px;
    inset-inline-start: 0;
    width: 2px;
    background: var(--blue, #0b2dbe);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .6s var(--pxs-ease);
}

.pxs .pxs__when {
    margin: 0;
    font-size: clamp(26px, 2.6vw, 40px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--blue, #0b2dbe);
    text-wrap: balance;
}

/* a second step on the same day reads as part of the first */
.pxs .pxs__when--same {
    color: rgba(11, 45, 190, .38);
}

.pxs .pxs__name {
    margin: 0;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ink, #0a1230);
    transition: color .4s var(--pxs-ease);
}

.pxs .pxs__text {
    max-width: 36em;
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-70, rgba(10, 18, 48, .7));
    text-wrap: pretty;
}

@media (hover: hover) and (pointer: fine) {
    .pxs__row:hover::before {
        transform: scaleY(1);
    }

    .pxs__row:hover .pxs__name {
        color: var(--blue, #0b2dbe);
    }
}

/* entrances: rows rise 24px in turn (the site's [data-reveal]) */
.js .pxs [data-reveal="up"]:not(.is-in) {
    transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
    .js .pxs [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .pxs__row::before,
    .pxs .pxs__name {
        transition: none;
    }
}

/* tablets: heading above, the schedule full width */
@media (max-width: 1099px) {
    .pxs__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .pxs__head {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: end;
        column-gap: 40px;
    }

    .pxs .pxs__kicker,
    .pxs .pxs__title {
        grid-column: 1;
    }

    .pxs .pxs__lead,
    .pxs .pxs__span {
        grid-column: 2;
        margin-top: 0;
    }

    .pxs .pxs__lead {
        grid-row: 1 / span 2;
        align-self: end;
    }

    .pxs .pxs__span {
        grid-row: 3;
        margin-top: 22px;
    }

    .pxs .pxs__title {
        max-width: none;
    }

    .pxs .pxs__row {
        grid-template-columns: minmax(0, 32fr) minmax(0, 68fr);
        padding-left: 22px;
    }
}

/* phones: compact rows, the timing above the name */
@media (max-width: 767px) {
    .pxs__grid {
        gap: 26px;
    }

    .pxs__head {
        display: block;
    }

    .pxs .pxs__lead {
        margin-top: 14px;
        font-size: 15px;
    }

    .pxs .pxs__span {
        margin-top: 18px;
        padding-top: 14px;
    }

    .pxs .pxs__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 18px 0 18px 16px;
    }

    .pxs .pxs__when {
        font-size: 22px;
    }

    .pxs .pxs__name {
        font-size: 17px;
    }

    .pxs .pxs__text {
        margin-top: 4px;
        font-size: 14.5px;
        line-height: 1.55;
    }
}
