﻿/*#region  Insights List 
--------------------------  */

div.article-grid.flex {
    gap: 1em;
    margin-bottom: 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;
    -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 > a, article.legal-article > a:hover {
        color: inherit;
        text-decoration: none;
        height: 100%;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -ms-flex-direction: column;
        -webkit-flex-direction: column;
        flex-direction: column;
    }

    article.legal-article > a:after {
        content: "";
        display: none;
    }

    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%;
            max-height: 15em;
            object-fit: cover;
        }

    article.legal-article > a > 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;
        }

        a.article-category, 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;
            font-weight: var(--font-weight-semibold);
        }

            a.article-category:not(:first-child), span.article-category {
                margin-left: 0.5em;
            }

            a.article-category:after {
                content: "";
                display: none;
            }

            a.article-category:hover {
                background-color: var(--color-light-blue-40);
            }

    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;
    }

/* Filter */
section.legal-insights h2.flex {
    justify-content: space-between;
    position: relative;
}

section.legal-insights h2 button.filter-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: var(--font-size-p-vsml);
    color: var(--color-blue);
    cursor: pointer;
    flex: 0 0 auto;
}

    section.legal-insights h2 button.filter-button:before {
        content: url(/_resources/files/icons/filter.svg);
        display: block;
        width: 2em;
        height: 2em;
    }

section.legal-insights h2 div.filter-tag-list {
    display: none;
}

section.legal-insights.show-filters h2 div.filter-tag-list {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    width: 10em;
    z-index: 3;
    padding: 1em;
    background-color: var(--color-light);
    border-radius: 0.5em;
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.14), 0 3px 10px rgba(17, 24, 39, 0.06);
}

    section.legal-insights.show-filters h2 div.filter-tag-list button {
        display: block;
        width: 100%;
        background: var(--color-light);
        color: var(--color-blue);
        border: 0;
        border-radius: 0.35em;
        padding: 0.25em 0.5em;
        margin: 0.15em 0;
        font-size: var(--font-size-p-msml);
        text-align: left;
        line-height: 1.5em;
    }

    section.legal-insights.show-filters h2 div.filter-tag-list button:hover, section.legal-insights h2 div.filter-tag-list button.insight-tag.active {
        background: var(--color-light-blue-20);
    }

/* 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;
            max-height: none !important;
        }

        article.legal-article.featured-article > a > 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)
    }

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-4px);
    }
}

@media screen and (min-width: 450px) {
    div.article-grid.flex > article.legal-article {
        flex: 0 0 calc((100% - 1em) / 2);
    }

    article.legal-article picture.article-media img {
        max-height: 8em;
    }
}

@media screen and (min-width: 550px) {
    article.legal-article.featured-article > a {
        -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 > a > 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: 600px) {
    article.legal-article picture.article-media img {
        max-height: 10em;
    }
}

@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 > a > div {
        flex-basis: 65%;
    }

}

/* Loading diabling and animations */

section.legal-insights.loading {
    position: relative;
}

    section.legal-insights.loading:before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        z-index: 4;
    }

button.insights-load-button[disabled] {
    background-color: var(--color-light);
    border-color: var(--color-grey);
    color: var(--color-dark-grey);
    cursor: not-allowed;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

    button.insights-load-button[disabled] span.text {
        display: none;
    }

button.insights-load-button span.dots {
    display: none;
}

button.insights-load-button[disabled] span.dots {
    display: inline;
}

    button.insights-load-button[disabled] span.dots span {
        display: inline-block;
        animation: bounceUp 0.8s ease-in-out infinite;
    }

        button.insights-load-button[disabled] span.dots span:nth-child(2) {
            animation-delay: 0.15s;
        }

        button.insights-load-button[disabled] span.dots span:nth-child(3) {
            animation-delay: 0.3s;
        }


/*#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: 50vh;
        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;
    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 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: 8em;
        margin-top: 0;
    }

        div.insight-article section.article-body aside.article-aside div.article-toc {
            max-height: calc(100vh - 9em);
        }

        div.insight-article section.article-body aside.article-aside div.cta-box {
            margin-top: 2em;
        }

}

@media screen and (max-height: 550px) {
    div.insight-article section.article-body aside.article-aside div.cta-box {
        display: none;
    }
}

@media screen and (min-height: 551px) and (max-height: 780px) and (min-width: 749px) {
    div.insight-article section.article-body aside.article-aside div.article-toc {
        max-height: calc(100vh - 23em);
    }
}

/*#endregion */
