/* Scoped context and laptop/tablet navigation layout for block 703002573AA. */
body.ci-install-shell .ci-wizard--t7-573 > .install-guide-context {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
        "media details"
        "change change";
    align-items: center;
    gap: .45rem .6rem;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: .55rem;
}

body.ci-install-shell .ci-wizard--t7-573 .install-guide-context__media {
    grid-area: media;
    box-sizing: border-box;
    width: 100%;
    height: 58px;
    min-width: 0;
    flex: initial;
}

body.ci-install-shell .ci-wizard--t7-573 .install-guide-context__details {
    grid-area: details;
    min-width: 0;
}

body.ci-install-shell .ci-wizard--t7-573 .install-guide-context__make {
    overflow: visible;
    text-overflow: clip;
}

body.ci-install-shell .ci-wizard--t7-573 .install-guide-context__model {
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

body.ci-install-shell .ci-wizard--t7-573 .install-guide-context__part {
    display: block;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(.62rem, 1.25vw, .76rem);
    line-height: 1.3;
}

body.ci-install-shell .ci-wizard--t7-573 .install-guide-context__change {
    grid-area: change;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    margin: 0;
}

@media (min-width: 701px) {
    body.ci-install-shell .ci-wizard--t7-573 .ci-stage-actions {
        display: grid;
        grid-template-columns: minmax(90px, auto) minmax(0, 1fr) minmax(90px, auto);
        align-items: center;
        gap: clamp(.4rem, 1vw, .75rem);
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-stage-actions > [data-ci-back] {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-stage-actions > .ci-progress-wrap {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        width: 100%;
        margin: 0;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-stage-actions > :is([data-ci-next], [data-ci-finish]) {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
        justify-self: end;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-stage-actions .ci-progress-label {
        gap: .4rem;
        margin-bottom: .2rem;
        font-size: clamp(.68rem, .9vw, .82rem);
    }
}

@media (min-width: 901px) {
    body.ci-install-shell .ci-wizard--t7-573 {
        display: grid;
        grid-template-columns: minmax(220px, .28fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        align-items: stretch;
        column-gap: clamp(.7rem, 1.25vw, 1.15rem);
        row-gap: .45rem;
    }

    body.ci-install-shell .ci-wizard--t7-573 > .install-guide-context {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    body.ci-install-shell .ci-wizard--t7-573 > [data-ci-downloads] {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        align-self: start;
        flex-direction: column;
        gap: .55rem;
        width: 100%;
        margin: 0;
    }

    body.ci-install-shell .ci-wizard--t7-573 > [data-ci-downloads] .ci-button {
        width: 100%;
        min-height: 2.8rem;
        text-align: center;
    }

    body.ci-install-shell .ci-wizard--t7-573 > [data-ci-wizard] {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        min-width: 0;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step:not([hidden]) {
        min-width: 0;
        overflow: hidden;
        padding: clamp(.55rem, 1vh, .85rem);
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step h3 {
        margin: 0 0 .3rem;
        font-size: clamp(1.08rem, 1.45vw, 1.4rem);
        line-height: 1.18;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-stage-images {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-rows: auto;
        align-content: start;
        height: auto;
        min-height: 0;
        flex: 0 0 auto;
        gap: .35rem;
        margin: .15rem 0;
        overflow: visible;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-step-image {
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 0;
        flex: none;
        margin: 0;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-step-image .install-guide-image-open {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        flex: none;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-step-image img {
        width: 100%;
        height: auto;
        min-height: 0;
        flex: none;
        object-fit: contain;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-guide-copy {
        max-height: 34%;
        flex: 0 1 auto;
        overflow: auto;
        overscroll-behavior: contain;
        margin: .15rem 0 0;
        padding: 0 .2rem;
        font-size: clamp(.9rem, 1vw, .98rem);
        line-height: 1.38;
    }

    body.ci-install-shell .ci-wizard--t7-573 .install-guide-video {
        width: auto;
        margin-top: .3rem;
    }

    body.ci-install-shell .ci-wizard--t7-573 > .ci-stage-actions {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 700px) {
    body.ci-install-shell .ci-wizard--t7-573 .ci-stage-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* TENET: keep vehicle and navigation anchored while letting the complete step scroll. */
@media (min-width: 901px) {
    body.ci-install-shell .ci-wizard--t7-573 {
        grid-template-rows: min-content min-content min-content;
    }

    body.ci-install-shell .ci-wizard--t7-573 > .install-guide-context {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    body.ci-install-shell .ci-wizard--t7-573 > .ci-progress-wrap {
        grid-column: 1;
        grid-row: 3;
        align-self: end;
        width: 100%;
    }

    body.ci-install-shell .ci-wizard--t7-573 > [data-ci-wizard] {
        grid-column: 2;
        grid-row: 1;
    }

    body.ci-install-shell .ci-wizard--t7-573 > .ci-stage-actions {
        grid-column: 2;
        grid-row: 3;
        align-self: end;
        align-content: end;
        width: 100%;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step:not([hidden]) {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step .ci-guide-copy {
        max-height: none;
        flex: 0 0 auto;
        overflow: visible;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step--password .ci-password-details {
        flex: 0 0 auto;
        overflow: visible;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step.install-media-fit .ci-stage-images.install-media-fit__gallery {
        height: auto;
        min-height: 0;
        flex: 0 0 auto;
        grid-template-rows: none;
        grid-auto-rows: auto;
        align-content: start;
        overflow: visible;
    }
}

/* Keep the optional video hint at the lower-left edge of the desktop step card. */
@media (min-width: 901px) {
    body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step .install-guide-video {
        align-self: flex-start;
        margin-top: auto;
    }
}

/* The T7-specific layout also lets the document, rather than its inner card, scroll. */
@media (min-width: 901px) {
    body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step:not([hidden]) {
        overflow: visible;
    }
}
/* Keep the shared desktop footer across both columns for the T7 guide. */
@media (min-width: 901px) {
    body.ci-install-shell .ci-wizard--t7-573 {
        grid-template-areas:
            "context guide"
            "downloads ."
            "navigation navigation";
    }

    body.ci-install-shell .ci-wizard--t7-573 > .ci-stage-actions {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step .ci-guide-copy {
        font-size: clamp(1rem, 1.05vw, 1.08rem);
    }
}/* Keep the T7 controls under the guide column on landscape desktop too. */
@media (min-width: 901px) and (orientation: landscape) {
    body.ci-install-shell .ci-wizard--t7-573 {
        grid-template-rows: min-content minmax(min-content, 1fr);
        grid-template-areas:
            "context guide"
            "downloads navigation";
        align-content: stretch;
        height: auto;
        min-height: calc(100svh - 74px);
    }

    body.ci-install-shell .ci-wizard--t7-573 > [data-ci-downloads] {
        align-self: end;
    }

    body.ci-install-shell .ci-wizard--t7-573 > .ci-stage-actions {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        width: 100%;
        margin-top: .5rem;
    }
}
/* Keep every illustration in the T7 guide as a compact, enlargable thumbnail. */
body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step.install-media-fit .ci-stage-images.install-media-fit__gallery {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    align-content: start;
    justify-items: center;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    overflow: visible;
}

body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step :is(.ci-step-image, .install-guide-inline-image) {
    box-sizing: border-box;
    display: block;
    width: min(100%, 420px);
    max-width: 420px;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: .45rem auto;
    flex: none;
}

body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step :is(.ci-step-image, .install-guide-inline-image) .install-guide-image-open {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: none;
}

body.ci-install-shell .ci-wizard--t7-573 .ci-wizard-step :is(.ci-step-image, .install-guide-inline-image) img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}
