/* ===================================================================
   CAIZUN Home / Production Process V8.1
   Uses Bootstrap 5 + common_base.css V2. Scoped to the homepage only.
   =================================================================== */
.cz-home-2026 .cz-home-process {
    background: #f7f7f6;
    border-top: 1px solid rgba(17, 17, 17, .035);
    padding-block: clamp(3.5rem, 5vw, 5rem);
    overflow: hidden;
    --cz-process-square: 3.75rem;
}
.cz-home-2026 .cz-home-process__intro {
    margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
}
.cz-home-2026 .cz-home-process__eyebrow {
    color: var(--cz-muted, #77736d);
}
.cz-home-2026 .cz-home-process__title {
    font-size: clamp(2rem, 2.75vw, 3rem);
    line-height: 1.14;
    margin: 0;
}
.cz-home-2026 .cz-home-process__title em { font-weight: 400; }
.cz-home-2026 .cz-home-process__description {
    margin: 0;
    min-height: 5.75rem;
    font: 400 .9375rem/1.8 var(--cz-font-sans, Arial, sans-serif);
    color: var(--cz-body-color, #383838);
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.cz-home-2026 .cz-home-process__description--empty {
    color: var(--cz-muted, #77736d);
}
.cz-home-2026 .cz-home-process__track-outer {
    width: 100%;
    max-width: 100%;
}
.cz-home-2026 .cz-home-process__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--cz-process-count, 8), minmax(0, 1fr));
    gap: .5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
/* The fine line passes through the CENTER of every square; squares cover it. */
.cz-home-2026 .cz-home-process__track::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: calc(var(--cz-process-square) / 2 + .125rem);
    left: 0;
    right: 0;
    height: 1px;
    background: #deddda;
    pointer-events: none;
}
.cz-home-2026 .cz-home-process__item {
    position: relative;
    z-index: 1;
    min-width: 0;
    text-align: center;
}
.cz-home-2026 .cz-home-process__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .75rem;
    width: 100%;
    min-height: 7rem;
    padding: .125rem .1rem .625rem;
    border: 0;
    background: transparent;
    color: #aaa8a5;
    cursor: pointer;
    text-align: center;
    font-family: var(--cz-font-sans, Arial, sans-serif);
    transition: color 180ms ease;
}
.cz-home-2026 .cz-home-process__step-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: var(--cz-process-square);
    height: var(--cz-process-square);
    border: 1px solid #deddda;
    background: #fff; /* opaque so the connector runs BEHIND squares */
    color: #aaa8a5;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.cz-home-2026 .cz-home-process__step-label {
    display: block;
    width: 100%;
    font-size: clamp(.6875rem, .9vw, .875rem);
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.cz-home-2026 .cz-home-process__step:is(.is-active, [aria-pressed="true"]) {
    color: var(--cz-ink, #111);
}
.cz-home-2026 .cz-home-process__step:is(.is-active, [aria-pressed="true"]) .cz-home-process__step-number {
    background: var(--cz-ink, #111);
    border-color: var(--cz-ink, #111);
    color: #fff;
}
.cz-home-2026 .cz-home-process__step:is(.is-active, [aria-pressed="true"]) .cz-home-process__step-label {
    font-weight: 600;
}
.cz-home-2026 .cz-home-process__step:hover:not(.is-active) {
    color: var(--cz-ink, #111);
}
.cz-home-2026 .cz-home-process__step:hover:not(.is-active) .cz-home-process__step-number {
    border-color: #77736d;
    color: var(--cz-ink, #111);
}
.cz-home-2026 .cz-home-process__step:focus-visible {
    outline: 2px solid var(--cz-ink, #111);
    outline-offset: 3px;
}
.cz-home-2026 .cz-home-process__swipe-tip { display: none; }

/* Bootstrap lg breakpoint: keep all steps readable by horizontally scrolling. */
@media (max-width: 991.98px) {
    .cz-home-2026 .cz-home-process__intro { margin-bottom: 2rem; }
    .cz-home-2026 .cz-home-process__description { min-height: 0; }
    .cz-home-2026 .cz-home-process__track-outer {
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #c6c4c0 transparent;
        padding: .25rem 0 .5rem;
    }
    .cz-home-2026 .cz-home-process__track {
        display: flex;
        width: max-content;
        min-width: 100%;
        gap: .35rem;
    }
    .cz-home-2026 .cz-home-process__item {
        flex: 0 0 6.75rem;
        scroll-snap-align: start;
    }
    .cz-home-2026 .cz-home-process__step-label { font-size: .8125rem; }
    .cz-home-2026 .cz-home-process__swipe-tip {
        display: block;
        margin: .45rem 0 0;
        color: var(--cz-muted, #77736d);
        text-align: right;
        font: 400 .6875rem/1.6 var(--cz-font-sans, Arial, sans-serif);
    }
}
@media (max-width: 575.98px) {
    .cz-home-2026 .cz-home-process { --cz-process-square: 3.25rem; padding-block: 3.5rem; }
    .cz-home-2026 .cz-home-process__title { font-size: clamp(1.875rem, 8.5vw, 2.5rem); }
    .cz-home-2026 .cz-home-process__description { font-size: .875rem; }
    .cz-home-2026 .cz-home-process__intro { margin-bottom: 1.75rem; }
    .cz-home-2026 .cz-home-process__item { flex-basis: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .cz-home-2026 .cz-home-process__step,
    .cz-home-2026 .cz-home-process__step-number { transition: none; }
}
