/* VERANT HOME — TABLET HERO TWO-COLUMN LAYOUT
   769–1080px: keep the portrait beside the copy. Mobile <=768px and
   approved desktop >=1081px remain unchanged.

   The portrait is an in-flow grid item here: no absolute overlap, no
   artificial height to compensate for text wrapping, and no second row. */
@media (min-width: 769px) and (max-width: 1080px) {
    .home-page .home-hero {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
        column-gap: clamp(12px, 2vw, 24px);
        align-items: start;
        min-height: auto;
        padding-top: clamp(112px, 12vw, 140px);
        padding-bottom: clamp(64px, 7vw, 96px);
    }

    /* Allow long Czech headline and copy to wrap INSIDE the left track. */
    .home-page .home-hero .home-hero__content {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        width: 100%;
        max-width: none;
        padding-right: 0;
    }

    .home-page .home-hero h1 {
        max-width: 100%;
        font-size: clamp(2.55rem, 5.1vw, 3.55rem);
        line-height: 1.02;
    }

    .home-page .home-hero .home-hero__lead {
        max-width: 100%;
        font-size: clamp(1rem, 1.6vw, 1.13rem);
        line-height: 1.58;
    }

    .home-page .home-hero__chips {
        gap: 7px;
        margin-top: 22px;
    }

    .home-page .home-hero__chips span {
        padding: 7px 10px;
        font-size: .8rem;
    }

    .home-page .home-hero__actions {
        gap: 12px;
        margin-top: 28px;
    }

    .home-page .home-hero__principle {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 30px;
        padding-right: 0;
    }

    /* Higher specificity than the interactive modal's generic position rule.
       Tablet portrait stays in the right grid track, next to the headline. */
    .home-page .home-hero__portrait[data-story-open] {
        position: relative;
        grid-column: 2;
        grid-row: 1;
        inset: auto;
        min-width: 0;
        width: 100%;
        max-width: none;
        margin: clamp(102px, 12vw, 138px) 0 0;
        justify-self: end;
        align-self: start;
    }
}
