/* Homepage only. Keep product information and the existing catalogue controls. */
body.is-active-route-frontend-home-page .qt-catalogue-notice,
body.is-active-route-frontend-home-page .qt-reference-trust,
body.is-active-route-frontend-home-page .qt-reference-scene-copy,
body.is-active-route-frontend-home-page .qt-software-panel,
body.is-active-route-frontend-home-page .qt-discovery-block {
    display: none;
}

/* One headline, one workspace photo, one own-product highlight. */
body.is-active-route-frontend-home-page .qt-reference-intro {
    justify-content: center;
    background: #fff;
}
body.is-active-route-frontend-home-page .qt-reference-hero,
body.is-active-route-frontend-home-page .qt-reference-intro,
body.is-active-route-frontend-home-page .qt-reference-own {
    border-color: #e2e8f0;
}
body.is-active-route-frontend-home-page .qt-reference-own {
    background: #fff;
}

/* Quiet section divisions instead of a second layer of framed panels. */
body.is-active-route-frontend-home-page .qt-reference-section-heading,
body.is-active-route-frontend-home-page .qt-product-cluster > header {
    padding: 10px 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #dce4ef;
}
body.is-active-route-frontend-home-page .qt-reference-section-heading {
    flex-wrap: wrap;
    gap: 6px 16px;
}
body.is-active-route-frontend-home-page .qt-reference-section-heading a,
body.is-active-route-frontend-home-page .qt-product-cluster > header a {
    font-size: 12px;
    font-weight: 700;
}
body.is-active-route-frontend-home-page .qt-product-cluster {
    border: 0;
}
body.is-active-route-frontend-home-page .qt-product-cluster > header {
    min-height: 0;
    flex-wrap: wrap;
}
body.is-active-route-frontend-home-page .qt-product-cluster > header p {
    display: none;
}
body.is-active-route-frontend-home-page .qt-reference-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}
body.is-active-route-frontend-home-page .qt-reference-lower .qt-product-cluster {
    margin-top: 0;
}
body.is-active-route-frontend-home-page .qt-highlight-grid,
body.is-active-route-frontend-home-page .qt-highlight-grid .product-box,
body.is-active-route-frontend-home-page .qt-cluster-products > div {
    border-color: #e5eaf1;
}

@media (min-width: 992px) {
    body.is-active-route-frontend-home-page .qt-reference-lower {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* On phones the opening should not occupy three full screens. */
@media (max-width: 767.98px) {
    body.is-active-route-frontend-home-page .qt-reference-hero,
    body.is-active-route-frontend-home-page .qt-reference-intro,
    body.is-active-route-frontend-home-page .qt-reference-own {
        min-height: 0;
    }
    body.is-active-route-frontend-home-page .qt-reference-intro {
        padding: 22px 20px;
    }
    body.is-active-route-frontend-home-page .qt-reference-scene,
    body.is-active-route-frontend-home-page .qt-reference-scene > img {
        min-height: 0;
        height: 180px;
    }
    body.is-active-route-frontend-home-page .qt-reference-own {
        padding: 18px 20px;
    }
    body.is-active-route-frontend-home-page .qt-own-product {
        margin-top: 12px;
    }
    body.is-active-route-frontend-home-page .qt-own-product > img {
        height: 130px;
    }
}
