/* =========================
   MOBILE VERSION
========================= */

.instances-permanents {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 2rem;
}

.instances-permanents p {
    font-size: 1.6rem;
}

.instances-permanents .instances {
    display:flex;
    flex-direction: column;
}

.instances-permanents .instances > ul {
    background-color: #f8f8f8;
    /* border: 1px solid #F15A22; */
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 1rem 1.5rem;
    list-style-type: disc;
    list-style-position: inside;
}

.instances-permanents .instances section:first-of-type {
    background-color: rgba(241,90,34, 0.3);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.instances-permanents .instances dt {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: .5rem;
}

.instances-permanents .instances section:nth-of-type(2) div ul {
    background-color:#f8f8f8;
    /* border: 1px solid #F15A22; */
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 1rem;
}

.instances-permanents .instances section:nth-of-type(3) div {
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f8f8f8;
    border-radius:6px;
    /* border: 1px solid #F15A22; */
    border: 1px solid #e8e8e8;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.instances-permanents .instances section:nth-of-type(3) div span {
    font-weight: 600;
}

.instances-permanents .instances > div {
    background-color: rgba(241,90,34, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.instances-permanents .permanents h2 {
    line-height: 3rem;
}

.instances-permanents .permanents article {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    margin-top: 1.5rem;
}

.instances-permanents .permanents article h5,  
.instances-permanents .permanents article p {
    align-self: center;
    text-align: center;
}

.instances-permanents .permanents article img {
    width: 50%;
    border-radius:50%;
    border: 2px solid #0B8293;
    align-self: center;
    margin: 1rem 0;
}

.instances-permanents .permanents article ul {
    background-color: rgba(241,90,34, 0.3);
    padding: 1rem 1.5rem;
    border-radius:6px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    flex-grow: 1;
    list-style-type: disc;
    list-style-position: inside;
    /* width: fit-content; */
    align-self: center;
    width:85%;
}


/* =========================
   TABLET VERSION
========================= */

@media(min-width: 768px) {

    .instances-permanents .instances section:nth-of-type(2) div {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }

    .instances-permanents .permanents {
        display:flex;
        justify-content: space-between;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3rem;
    }

    .instances-permanents .permanents h2 {
        width: 100%;
    }

    .instances-permanents .permanents article {
        width: 45%;
    }

    .instances-permanents .permanents article img {
        width: 50%;
    }
}


/* =========================
   DESKTOP VERSION
========================= */

@media(min-width: 1024px) {
    .instances-permanents {
        width: 70%;
    }

    .instances-permanents .instances {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* grid-template-rows: repeat(5, 1fr); */
        gap: 1rem;
    }

    .instances-permanents .instances h2 {
        grid-column: span 3 / span 3;
    }

    .instances-permanents .instances > ul {
        grid-column: span 2 / span 2;
        grid-row-start: 2;
    }

    .instances-permanents .instances section:first-of-type {
        grid-column-start: 3;
        grid-row-start: 2;
        margin-top: 0;
    }

    .instances-permanents .instances section:nth-of-type(2) {
        grid-column: span 3 / span 3;
        grid-row-start: 3;
    }

    .instances-permanents .instances section:nth-of-type(2) div {
        display:flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .instances-permanents .instances section:nth-of-type(2) div ul {
        width: 28%;
        margin-bottom: 0;
    }

    .instances-permanents .instances section:nth-of-type(3) {
        grid-column: span 3 / span 3;
        grid-row-start: 4;
    }

    .instances-permanents .instances section:nth-of-type(3) div {
        flex-direction: row;
    }

    .instances-permanents .instances section:nth-of-type(3) div ul {
        flex:1;
    }

    .instances-permanents .instances > div {
        grid-column: span 3 / span 3;
        grid-row-start: 5;
    }

    .instances-permanents .permanents {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* grid-template-rows: repeat(2, 1fr); */
        column-gap: 2rem;
        margin-bottom: 2rem;
        margin-top:1.5rem;
        align-items: stretch;
    }

    .instances-permanents .permanents h2 {
        grid-column: 1/4;
        text-align: end;
        margin-top: 5rem;
    }

    .instances-permanents .permanents article {
        grid-row-start: 2;
        margin-top: 0;
        justify-self: center;
        width: 85%;
    }

    .instances-permanents .permanents article ul {
        background-color: rgba(241,90,34, 0.3);
        padding: 1rem 1.5rem;
        border-radius:6px;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        flex-grow: 1;
        list-style-type: disc;
        list-style-position: inside;
        /* width: fit-content; */
        align-self: center;
        width:90%;
    }

    .instances-permanents .permanents article img {
        width: 70%;
    }

    .instances-permanents .supports h2 {
        text-align: start;
    }

    .instances-permanents .supports {
        margin-top:3rem;
    }
}


/* =========================
   BIG DESKTOP VERSION
========================= */
@media (min-width: 1440px) {
    .instances-permanents {
        width: 60vw;
    }
}