/* Justify normal document text */
.rst-content p,
.rst-content li,
.rst-content dd {
    text-align: justify;
}

#home-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 20px;
    text-align: justify;
}

@media (max-width: 600px) {
    #home-head {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 1rem;
        text-align: center;
    }

    #home-head img {
        max-width: min(100%, 220px);
        height: auto;
    }

    #home-head > .docutils.container {
        width: 100%;
        min-width: 0;
    }

    #home-head h1 {
        margin-top: 0;
        font-size: 2.35rem !important;
        line-height: 1.1;
        overflow-wrap: normal;
    }

    #home-head h2 {
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.3;
        text-align: center;
    }

    .rst-content p,
    .rst-content li,
    .rst-content dd {
        text-align: left;
    }

    .container.buttons > p {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
        text-align: center;
    }

    .container.buttons > p > a {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        text-align: center;
    }
}

@media (max-width: 360px) {
    #home-head h1 {
        font-size: 1.9rem !important;
    }
}

#home-head h1 {
    font-size: 4.2rem;
    margin-top: 3.4rem;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.2;
}

#home-head h2 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
}

.version-switcher {
    margin-left: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}