/* Final production geometry overrides for the Systems grid. */
.systems-main .p1-art,
.systems-main .p1-art img {
    min-height: 280px !important;
    max-height: 280px !important;
}

/* Systems has no hero image, so its first content section starts text | image. */
@media (min-width: 901px) {
    .systems-main .p1-sections {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .systems-main .p1-section {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 72px;
        min-height: 420px;
        padding: 56px;
    }

    .systems-main .p1-section--reverse .p1-section-copy {
        order: 2;
    }

    .systems-main .p1-section--reverse .p1-art {
        order: 1;
    }

    .systems-main .p1-art {
        width: 100%;
        height: 280px !important;
        margin: 0;
    }

    .systems-main .p1-art img {
        width: 100%;
        height: 280px !important;
        margin: 0;
    }
}

/* The desktop artwork has a fixed reference size. On tablet and mobile it
   must follow the inner card width, otherwise it creates horizontal scroll. */
@media (max-width: 900px) {
    html:has(.systems-main) {
        overflow-x: clip;
    }

    .systems-main,
    .systems-main .p1-section,
    .systems-main .p1-section-copy,
    .systems-main .p1-art {
        min-width: 0;
        max-width: 100%;
    }

    .systems-main {
        overflow-x: clip;
    }

    .systems-main .p1-art {
        width: 100%;
        max-width: 437px;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 24px auto 0;
    }

    .systems-main .p1-art img {
        width: 100%;
        max-width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0;
    }

    .systems-main .p1-closing {
        height: auto;
        margin-top: 1px;
        padding: 36px 28px;
        background: var(--night);
        color: #fff;
    }

    .systems-main .p1-closing .eyebrow {
        color: var(--lime);
    }

    .systems-main .p1-closing h2 {
        margin: 16px 0 0;
        color: #fff;
        font-size: clamp(28px, 8vw, 42px);
        line-height: 1.04;
    }

    .systems-main .p1-closing .button {
        display: inline-flex;
        margin-top: 24px;
    }
}
