﻿/*#region  Insights List 
--------------------------  */

div.article-grid.flex {
    gap: 1em;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-align-items: flex-start;
    align-items: stretch;
}

    div.article-grid.flex > article.legal-article {
        flex: 0 0 100%;
    }

article.legal-article {
    border: solid 1px var(--color-grey);
    background-color: var(--color-white);
    flex: 0 0 100%;
    border-radius: 0.5em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-transition: all linear .2s;
    -o-transition: all linear .2s;
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
}

    article.legal-article picture.article-media {
        flex: 0 0 auto;
        position: relative;
    }

        article.legal-article picture.article-media span.categories {
            position: absolute;
            left: 0.5em; 
            bottom: -0.75em;
            z-index: 2;
        }

        article.legal-article picture.article-media span.article-category {
            font-size: var(--font-size-p-vsml);
            font-weight: var(--font-weight-semibold);
            display: inline-block;
            background: var(--color-very-light-blue);
            color: var(--color-blue);
            border-radius: 0.5em;
            padding: 0.25em 0.5em;
            margin: 0 0.25em;
        }

        article.legal-article picture.article-media img {
            width: 100%;
        }

    article.legal-article > div {
        padding: 1em;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -ms-flex: 0 0 auto;
        -webkit-flex: 0 0 auto;
        flex: 0 0 auto;
    }

    article.legal-article div.article-footer.flex {
        justify-content: space-between;
        border-top: solid 1px var(--color-grey);
        padding-top: 1em;
        margin-top: auto;
        position: relative;
    }

    article.legal-article h2 {
        font-size: var(--font-size-h3);
        margin-bottom: 0;
    }

    article.legal-article div.article-content p {
        margin-bottom: 1em;
    }

    article.legal-article p {
        font-size: var(--font-size-p-sml);
        margin-bottom: 1em;
    }

    article.legal-article div.article-footer.flex {
        font-size: var(--font-size-p-vsml);
        justify-content: flex-start;
    }

        article.legal-article div.article-footer.flex > * {
            flex: 0 0 auto;
        }

        article.legal-article div.article-footer.flex span.separator {
            display: inline-block;
            margin: 0 0.5em;
        }

        span.article-category {
            display: inline-block;
            background: var(--color-light-blue-20);
            color: var(--color-blue);
            border-radius: 0.5em;
            padding: 0.25em 0.5em;
            margin: 0;
        }

    article.legal-article div.article-footer:after {
        content: "";
        -webkit-mask-image: var(--icon-arrow-long);
        mask: var(--icon-arrow-long);
        background-repeat: no-repeat;
        display: block;
        width: 1em;
        height: 1em;
        position: absolute;
        right: 0.75em;
        bottom: 1.25em;
        opacity: 0;
        background-color: var(--color-light-blue);
        -moz-transition: all linear .2s;
        -o-transition: all linear .2s;
        -webkit-transition: all linear .2s;
        transition: all linear .2s;
    }

    article.legal-article:hover div.article-footer:after {
        opacity: 1;
    }

/* Feature */
    article.legal-article.featured-article {
        position: relative;
        padding: 1em;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

        article.legal-article.featured-article span.feature-label {
            background-color: var(--color-blue);
            width: auto;
            display: inline-block;
            flex-basis: auto;
            position: absolute;
            color: var(--color-white);
            padding: 0.25em 0.5em;
            top: 1.25rem;
            left: 1.25rem;
            border-radius: 0.25em;
            font-weight: var(--font-weight-semilight);
            font-size: var(--font-size-p-sml);
            z-index: 2;
        }

        article.legal-article.featured-article h2 {
            color: var(--color-blue);
            font-size: var(--font-size-h2);
            margin-bottom: 0.5em;
        }

        article.legal-article.featured-article p {
            font-size: var(--font-size-p);
        }

        article.legal-article.featured-article picture img {
            border-radius: 0.5em;
        }

        article.legal-article.featured-article > div {
            padding: 1em 0 0 0;
        }

            article.legal-article.featured-article div div.article-footer {
                margin-top: 1em;
            }

        article.legal-article.featured-article div.article-footer:after {
            bottom: 0.5em;
        }

button.insights-load-button {
    margin: 0 auto 2em auto;
    display: block;
    padding: 0.5em 1.5em;
    line-height: 1em;
    background: var(--color-light);
    border: solid 1px var(--color-dark-grey);
    color: var(--color-black);
    border-radius: 0.25em;
    font-size: var(--font-size-p-sml);
    font-weight: var(--font-weight-regular);
}

    button.insights-load-button.complete {
        display: none;
    }

    button.insights-load-button:hover {
        background-color: var(--color-light-blue-20);
        border-color: var(--color-light-blue-40);
        -moz-box-shadow: 0 4px 20px var(--color-dark-grey-30);
        -webkit-box-shadow: 0 4px 20px var(--color-dark-grey-30);
        box-shadow: 0 4px 20px var(--color-dark-grey-30)
    }

@media screen and (min-width: 450px) {
    div.article-grid.flex > article.legal-article {
        flex: 0 0 calc((100% - 1em) / 2);
    }
}

@media screen and (min-width: 550px) {
    article.legal-article.featured-article {
        -ms-flex-direction: row;
        -webkit-flex-direction: row;
        flex-direction: row;
        -ms-flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-align-items: stretch;
        align-items: stretch;
    }

        article.legal-article.featured-article h2 {
            flex: 0 0 100%;
        }

        article.legal-article.featured-article picture.article-media {
            flex: 0 0 50%;
        }

        article.legal-article.featured-article picture.article-media img {
            height: 100%;
            object-fit: cover;
        }

        article.legal-article.featured-article > div {
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            -ms-flex-direction: column;
            -webkit-flex-direction: column;
            flex-direction: column;
            flex: 0 0 50%;
            padding: 0 0 0 1em;
        }

        article.legal-article.featured-article div div.article-footer {
            margin-top: auto;
        }

}

@media screen and (min-width: 800px) {
    div.article-grid.flex > article.legal-article {
        flex: 0 0 calc((100% - 2em) / 3);
    }

    article.legal-article.featured-article picture.article-media {
        flex-basis: 35%;
    }

    article.legal-article.featured-article > div {
        flex-basis: 65%;
    }

}

/*#endregion */

/*#region  Insights Details 
--------------------------  */

/* Header */
div.insight-article section.article-header {
    padding-top: 0;
}

div.insight-article section.article-header h1 {
    text-align: left;
}

div.insight-article div.article-descriptors {
    font-size: var(--font-size-p-vsml);
    justify-content: flex-start;
}

div.insight-article div.article-descriptors.flex > * {
    flex-basis: auto;
}

    div.insight-article div.article-descriptors.flex span.separator {
        display: inline-block;
        margin: 0 0.5em;
    }

/* Banner */
div.insight-article picture.insight-article-banner {
    display: block;
    padding: 0;
}

    div.insight-article picture.insight-article-banner img {
        width: 100%;
        max-height: 35vh;
        object-fit: cover;
    }

/* Body */
div.insight-article section.article-body.flex {
    align-items: flex-start;
    gap: 1em;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

div.insight-article section.article-body div.article-content {
    flex: 1 1 calc(100%);
    order: 2;
}

div.insight-article section.article-body div.article-content > *[id] {
    scroll-margin-top: 4.5em;
}

/* Aside */
div.insight-article section.article-body aside.article-aside {
    flex-basis: 100%;
    margin-top: -5em;
    max-height: calc(100vh - 5.5em);
    order: 1;
}

/* TOC */
div.insight-article section.article-body aside.article-aside div.article-toc {
    background-color: var(--color-off-white);
    padding: 1em;
    border-radius: 0.5em;
    overflow: auto;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-box-shadow: 1px 1px 3px var(--color-grey), -1px 0px 1px var(--color-dark-grey-30);
    -webkit-box-shadow: 1px 1px 3px var(--color-grey), -1px 0px 1px var(--color-dark-grey-30);
    box-shadow: 1px 1px 3px var(--color-grey), -1px 0px 1px var(--color-dark-grey-30);
}

    div.insight-article section.article-body aside.article-aside div.article-toc div.toc-title {
        font-size: var(--font-size-p);
        font-weight: var(--font-weight-semibold);
        margin-bottom: 1em;
    }

    div.insight-article section.article-body aside.article-aside div.article-toc ol {
        margin: 0;
        padding: 0;
        list-style-position: inside;
    }

        div.insight-article section.article-body aside.article-aside div.article-toc ol li {
            font-size: var(--font-size-p-vsml);
        }

            div.insight-article section.article-body aside.article-aside div.article-toc ol li:not(:last-child) {
                border-bottom: solid 1px var(--color-grey);
                padding-bottom: 0.5em;
                margin-bottom: 0.5em;
            }

            div.insight-article section.article-body aside.article-aside div.article-toc ol li a {
                max-width: calc(100% - 2em);
                margin-left: 0.5em;
                vertical-align: top;
                line-height: 1.5em;
            }

                div.insight-article section.article-body aside.article-aside div.article-toc ol li a:after {
                    display: none;
                }

/* CTA */
    div.insight-article section.article-body aside.article-aside div.cta-box {
        margin-top: 1em;
    }

    div.insight-article section.article-body aside.article-aside button.contact-button {
        width: 100%;
        margin-top: 1em;
    }

@media screen and (min-width: 520px) {
    div.insight-article section.article-body aside.article-aside {
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -ms-flex-direction: row;
        -webkit-flex-direction: row;
        flex-direction: row;
        -ms-flex-wrap: nowrap;
        -webkit-flex-wrap: nowrap;
        flex-wrap: nowrap;
        gap: 1em;
        align-items: flex-start;
    }

        div.insight-article section.article-body aside.article-aside div.article-toc {
            flex: 0 0 60%;
        }

        div.insight-article section.article-body aside.article-aside div.cta-box {
            margin-top: 0;
            flex: 0 0 calc(40% - 1em);
        }
}

@media screen and (min-width: 750px) {
    div.insight-article picture.insight-article-banner {
        padding-left: 1.25em;
        padding-right: 1.25em;
    }

        div.insight-article picture.insight-article-banner img {
            width: calc(100% - 2em);
        }

    div.insight-article section.article-body.flex {
        -ms-flex-wrap: nowrap;
        -webkit-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }

    div.insight-article section.article-body div.article-content {
        order: 1;
    }

    div.insight-article section.article-body aside.article-aside {
        display: block;
        flex-basis: 15em;
        order: 2;
        position: sticky;
        top: 5em;
    }

        div.insight-article section.article-body aside.article-aside div.cta-box {
            margin-top: 2em;
        }

}

/*#endregion */
