/* Homepage only. Keep the complete 4:5 image/print coordinate system inside a shorter viewport. */
body.home #trv-customer-front-review .trv-customer-front-crop {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
body.home #trv-customer-front-review .trv-customer-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
}
body.home #trv-customer-front-review .trv-customer-viewer {
    aspect-ratio: auto;
    align-self: center;
}
/* These immediately following carousels need their real dimensions at initialization.
   Keep the existing deferred-rendering optimization for sections farther down. */
body.home #trv-customer-front-review ~ .elementor-element-41f2a7c,
body.home #trv-customer-front-review ~ .elementor-element-54350c8 {
    content-visibility: visible;
    contain-intrinsic-size: none;
}
body.home #trv-home-discover {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 20px 40px;
    width: min(1160px, calc(100% - 64px));
    margin: 40px auto 0;
    padding: 28px 32px;
    border: 1px solid #e8e5e6;
    border-radius: 16px;
    background: #fff;
    color: #191919;
}
body.home #trv-home-discover h2 {
    margin: 0 0 6px;
    font-size: clamp(23px, 2.2vw, 30px);
    font-weight: 750;
    line-height: 1.3;
}
body.home #trv-home-discover p {
    margin: 0;
    color: #5c5659;
    font-size: 14px;
    line-height: 1.6;
}
body.home .trv-home-discover-search {
    display: flex;
    gap: 8px;
    margin: 0;
    min-width: 0;
}
body.home #trv-home-product-query {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid #bcb7ba;
    border-radius: 8px;
    background: #fff;
    color: #191919;
    font-size: 16px;
}
body.home .trv-home-discover-search button {
    flex: none;
    min-height: 48px;
    padding: 10px 22px;
    border: 1px solid #d01345;
    border-radius: 8px;
    background: #d01345;
    color: #fff;
    font-weight: 700;
}
body.home .trv-home-discover-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.home .trv-home-discover-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid #e3dce0;
    border-radius: 24px;
    background: #faf8f9;
    color: #30252a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
body.home .trv-home-discover-links a:hover {
    border-color: #d01345;
    color: #ad0e38;
    background: #fff5f8;
}
body.home #trv-home-discover :is(input, button, a):focus-visible {
    outline: 2px solid #831039;
    outline-offset: 3px;
}
@media (max-width: 767px) {
    body.home #trv-customer-front-review .trv-customer-pilot {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "visual" "teams" "content";
        gap: 0;
    }
    body.home #trv-customer-front-review .trv-customer-viewer {
        grid-area: visual;
        width: 100%;
        aspect-ratio: auto;
        min-height: 0;
        align-self: start;
    }
    body.home #trv-customer-front-review .trv-customer-front-crop {
        width: calc(100% - 64px);
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }
    body.home #trv-customer-front-review .trv-customer-teams {
        grid-area: teams;
        position: static;
        align-self: auto;
        height: auto;
        min-height: 68px;
        margin: 0;
        padding: 6px 8px;
        background: #fff;
    }
    body.home #trv-customer-front-review .trv-customer-controls {
        grid-area: content;
        padding: 18px 20px 24px;
    }
    body.home #trv-customer-front-review .trv-customer-controls h2 {
        display: block;
        margin: 0 0 14px;
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.1;
    }
    body.home #trv-home-discover {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 32px);
        margin-top: 24px;
        padding: 20px 16px;
        gap: 16px;
        border-radius: 12px;
    }
    body.home .trv-home-discover-search button { padding-inline: 16px; }
    body.home .trv-home-discover-links { gap: 8px; }
    body.home .trv-home-discover-links a { padding-inline: 14px; }
}
