/* Keep the public home page's introduction and actions in the first viewport. */
.pg-shell-home.pg-shell-home .home-page {
    align-items: flex-start;
    padding: clamp(84px, 17svh, 164px) 24px 32px;
    background-size: cover;
}

.pg-shell-home.pg-shell-home .home-seal {
    width: 88px;
    height: 88px;
}

.pg-shell-home.pg-shell-home .home-intro::before {
    inset-block-start: 48px;
}

@media (max-width: 767px) {
    .pg-shell-home.pg-shell-home .pg-logo-home {
        min-width: 0;
        max-width: min(46vw, 180px);
        flex-shrink: 1;
    }

    .pg-shell-home.pg-shell-home .pg-header-cta {
        flex-shrink: 0;
        gap: 8px;
    }

    .pg-shell-home.pg-shell-home .pg-header-cta > a:is(.pg-btn-primary, .pg-btn-secondary) {
        min-height: 44px;
    }

    .pg-shell-home.pg-shell-home .home-page {
        padding: clamp(48px, 13svh, 112px) 14px 24px;
        background-size: auto max(390px, 76%);
    }

    .pg-shell-home.pg-shell-home .home-intro {
        padding: 12px 14px 20px;
    }

    .pg-shell-home.pg-shell-home .home-intro::before {
        inset-block-start: 36px;
    }

    .pg-shell-home.pg-shell-home .home-seal {
        width: 70px;
        height: 70px;
    }

    .pg-shell-home.pg-shell-home .home-intro > p {
        margin-block: 8px 14px;
    }

    .pg-shell-home.pg-shell-home .home-actions {
        gap: 8px;
    }

    .pg-shell-home.pg-shell-home .home-btn {
        min-height: 48px;
    }
}

@media (max-height: 640px) {
    .pg-shell-home.pg-shell-home .home-page {
        padding-block-start: 24px;
    }

    .pg-shell-home.pg-shell-home .home-seal,
    .pg-shell-home.pg-shell-home .home-ornament {
        display: none;
    }

    .pg-shell-home.pg-shell-home .home-intro::before {
        inset-block-start: 0;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .pg-shell-home.pg-shell-home .home-actions {
        flex-direction: row;
    }

    .pg-shell-home.pg-shell-home .home-btn {
        flex: 1;
        min-width: 0;
    }

    body:has(.pg-shell-home) #n9r-approved-banner {
        display: none;
    }
}

@media (max-width: 360px) {
    .pg-shell-home.pg-shell-home .pg-logo-home {
        gap: 6px !important;
        max-width: none;
    }

    .pg-shell-home.pg-shell-home .pg-logo-home > img {
        width: 44px !important;
        height: 44px !important;
    }

    .pg-shell-home.pg-shell-home .pg-logo-home > span {
        width: 96px !important;
        background-size: 138px auto !important;
    }
}
