/* Asperger / TSA screening pages — adult + child.
   Page-specific only. modern.css remains untouched. */

body.asperger-screening-page #banner.modern-hero {
    display: flex !important;
    align-items: center !important;
    gap: 2.25rem !important;
    padding-top: 2.2rem !important;
    padding-bottom: 1.25rem !important;
}

body.asperger-screening-page #banner.modern-hero .content {
    width: auto !important;
    flex: 1 1 60% !important;
    min-width: 0 !important;
}

body.asperger-screening-page #banner.modern-hero .image.object {
    flex: 0 1 420px !important;
    width: min(38%, 420px) !important;
    max-width: 420px !important;
    height: 400px !important;
    max-height: 400px !important;
    min-height: 0 !important;
    margin: 0 0 0 1.5rem !important;
    align-self: center !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.asperger-screening-page #banner.modern-hero .image.object img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 400px !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Remove the large HTML5 UP section gap directly after the hero. */
body.asperger-screening-page #banner.modern-hero + section {
    padding-top: 1.25rem !important;
}

body.asperger-screening-page #banner.modern-hero + section > .asperger-screening {
    margin-top: 0 !important;
}

body.asperger-screening-page .asperger-screening .trust-strip {
    margin-top: 0.5rem !important;
}

/* 4 steps = true 2 × 2 grid. */
body.asperger-screening-page .asperger-screening .steps-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 760px !important;
}

body.asperger-screening-page .asperger-screening .steps-grid .step-card {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* Long email addresses remain within cards/sidebar. */
body.asperger-screening-page .asperger-screening a[href^="mailto:"],
body.asperger-screening-page #sidebar a[href^="mailto:"] {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

/* Questionnaire link inside the purchase box. */
body.asperger-screening-page .asperger-screening .purchase-questionnaire-action {
    justify-content: center !important;
    text-align: center !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

body.asperger-screening-page .asperger-screening .purchase-questionnaire-action .button {
    margin-left: auto !important;
    margin-right: auto !important;
}

@media screen and (max-width: 980px) {
    body.asperger-screening-page #banner.modern-hero {
        flex-direction: column-reverse !important;
        align-items: flex-start !important;
    }

    body.asperger-screening-page #banner.modern-hero .content {
        width: 100% !important;
    }

    body.asperger-screening-page #banner.modern-hero .image.object {
        width: min(100%, 440px) !important;
        max-width: 440px !important;
        height: 330px !important;
        max-height: 330px !important;
        margin: 0 auto 1rem !important;
    }

    body.asperger-screening-page #banner.modern-hero .image.object img {
        max-height: 330px !important;
    }
}

@media screen and (max-width: 736px) {
    body.asperger-screening-page .asperger-screening .steps-grid {
        grid-template-columns: 1fr !important;
        max-width: none !important;
    }

    body.asperger-screening-page #banner.modern-hero .image.object {
        height: 260px !important;
        max-height: 260px !important;
    }

    body.asperger-screening-page #banner.modern-hero .image.object img {
        max-height: 260px !important;
    }

    body.asperger-screening-page #banner.modern-hero + section {
        padding-top: 0.8rem !important;
    }
}
