/* Keep the About copy and Contact form in content-sized rows on smaller screens. */
@media (max-width: 920px) {
    #zDhDnE > .block-layout {
        grid-template-rows: 40px auto 20px auto 20px auto 32px auto;
    }

    #zDhDnE .layout-element:has(> #zc-kuQ) {
        grid-row: 4;
    }

    #zDhDnE .layout-element:has(> #zWl2gY) {
        grid-row: 6;
    }

    #ai-MQEfdU > .block-layout {
        grid-template-rows: 36px auto 6px auto 12px auto 16px auto 40px;
    }

    #ai-MQEfdU .layout-element:has(> #ai-io4Z_A) {
        grid-column: 1 / -1;
        grid-row: 6;
    }

    #ai-MQEfdU .layout-element:has(> #ai-rl40xc) {
        grid-row: 8;
    }

    #ai-io4Z_A .form__button {
        max-inline-size: 100%;
        min-inline-size: 0;
        padding-inline: clamp(16px, 8vw, 40px);
        white-space: normal;
    }
}

/* Center the Services sample heading above its download buttons. */
.layout-element:has(> #z_p1VH) {
    grid-column: 1 / -1;
}

#z_p1VH h2 {
    text-align: center;
    text-wrap: balance;
}

#ai-YCLajI .footer-location {
    margin-block-start: 8px;
    color: #fff;
    text-transform: none;
}

.footer-location a {
    color: inherit;
}

/* Give the footer email the same column width as the inquiry form below it. */
@media (min-width: 921px) {
    #zSiG-O .layout-element:has(> #ai-KBqswO) {
        grid-column: 4 / 8;
    }

    #ai-YCLajI {
        position: relative;
    }

    #ai-YCLajI .footer-location {
        position: absolute;
        inset-block-start: 100%;
        inset-inline: 0;
    }
}

/* The two Services download buttons share a narrower grid at laptop widths. */
@media (min-width: 921px) and (max-width: 1286px) {
    #zVBmzE,
    #zlGk4z {
        font-size: clamp(18px, 2.1vw, 27px);
    }
}
