.news-listing {
    padding: 0;

    @at-root #{&}__item {
        padding: 10px;
        border-top: 1px solid rgba(15, 70, 100, 0.12);

        h3 {
            margin: 0 0 5px;
            color: #000;
            font-weight: normal;
            font-size: 1.6rem;
        }

        h4 {
            margin-top: 0;
            color: #808080;
            font-style: italic;
            font-weight: normal;
            font-size: 0.9rem;
        }

        &:first-child {
            border-top: none;
        }
    }

    @at-root #{&}__excerpt {
        color: #000;
        font-size: 1rem;
    }

    @at-root #{&}__readmore {
        margin-top: 5px;

        .btn {
            display: inline-block;
        }
    }
}

.news-post-header {
    padding: 20px;

    @media screen and (min-width: $screen-md-min) {
        padding-left: 10%;
        padding-right: 10%;
    }

    h1 {
        margin-bottom: 0;
        font-weight: normal;
        font-size: 2.5rem;
    }

    h2 {
        display: flex;
        align-items: center;
        margin-top: 0;
        color: #808080;
        font-style: italic;
        font-weight: normal;
        font-size: 0.9rem;

        .news-share-list {
            flex: 0 1 auto;
            margin-left: 5px;
        }
    }
}

.news-post {
    .block {
        margin-bottom: 0;
        box-shadow: none;
    }
}

.news-empty {
    padding: 50px 10px;
    text-align: center;
    color: #808080;
    font-style: italic;
}

.news-keyword-section {
    padding: 0 20px 20px;

    @media screen and (min-width: $screen-md-min) {
        padding-left: 10%;
        padding-right: 10%;
    }
}

.news-keyword-list {
    p {
        margin: 0 0 10px;
        font-size: 0.9rem;
        font-style: italic;
        color: #808080;
    }

    padding-bottom: 40px;

    .news-keyword {
        display: inline-flex;
        margin-right: 5px;
        margin-bottom: 5px;
    }
}

%share-button {
    @extend .icon;

    display: inline-block;
    margin-right: 5px;
    font-size: 1.8rem;
    text-decoration: none;

    &::after {
        content: "" !important;
    }

    &:hover, &:active, &:focus {
        text-decoration: none;
    }
}

.share-twitter {
    @extend %share-button;
    @extend .icon-twitter-square;

    color: #1da1f2;

    &:hover, &:active, &:focus {
        color: #1da1f2;
    }
}

.share-facebook {
    @extend %share-button;
    @extend .icon-facebook-square;

    color: #3b5998;

    &:hover, &:active, &:focus {
        color: #3b5998;
    }
}

// For the dedicated /news/ page.
.news-page {
    @media screen and (min-width: $screen-sm-min) {
        display: flex;
        flex-wrap: nowrap;
    }

    @at-root #{&}__previews {
        @media screen and (min-width: $screen-sm-min) {
            order: 1;
            flex: 0 1 70%;
            align-items: stretch;
            align-content: stretch;
        }

        @media screen and (min-width: $screen-md-min) {
            flex: 0 1 80%;
        }
    }

    @at-root #{&}__previews-title {
        border-bottom: 1px solid #a0a0a0;
        padding: 0 10px;

        h1 {
            margin-top: 0;
        }
    }

    @at-root #{&}__facets {
        @media screen and (min-width: $screen-sm-min) {
            order: 0;
            flex: 0 1 30%;
            padding-right: 20px;
        }

        @media screen and (min-width: $screen-md-min) {
            flex: 0 1 20%;
        }

        @media screen and (min-width: $screen-lg-min) {
            padding-right: 50px;
        }
    }
}

.news-facet__title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom: 1px solid #a0a0a0;
}

.news-facet__items {
    padding: 0;
    list-style: none;
}

.news-facet__item {
    margin: 2px 0;

    &:first-child {
        margin-top: 0;
    }

    a {
        display: block;
        padding: 2px 5px;
        color: #000;

        &:hover {
            color: $std-href-color;
            text-decoration: none;
        }

        &:focus {
            text-decoration: none;
        }

        &.selected {
            background-color: $std-href-color;
            color: #fff;

            .news-facet__item-count {
                color: #fff;
            }
        }
    }
}

.news-facet__item-title {
    font-weight: bold;
}

.news-facet__item-count {
    font-weight: normal;
    color: #808080;
}

.news-blank {
    text-align: center;
    padding-bottom: 20px !important;

    h2 {
        font-size: 1.5rem;
        font-style: italic;
        font-weight: normal;
        color: #808080;
    }
}
