/* CSS for komen.org global search */

.search-results .page-title, .search-no-results #search-banner .page-title {
    background-image: url("../img/global-search-header.png");
    color: white;
    margin-top: 0;
    text-align: center;
    font-weight: 100;
    font-size: 24px;
    padding-top: 35px;
    padding-bottom: 35px;
}

.search-results .page-header {
    padding-bottom: 40px;
    border-bottom: 1px solid #959595;
    margin-bottom: 45px;
}

.search-results main.site-main.search-main > article .entry-summary {
    border-bottom: 1px solid #cecece;
}

.search-results main.site-main.search-main > article {
    border: 0;
    margin: 0 auto;
    max-width: 90%;
}

main.site-main.search-main > article:last-of-type .entry-summary {
    border-bottom: 0 !important;
}

.search-query {
    display: inline;
}

form.search-form {
    float: right;
}

main.site-main.search-main form.search-form input.search-field {
    height: 50px;
}

.search-publish-date {
    color: #676767;
    font-size: 13px;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 0;
}

.search-results main.site-main.search-main > article h2.entry-title {
    margin-bottom: 5px;
    display: inline;
}

.search-post-type {
    display: block;
    color: #676767;
    font-size: 14px;
    font-weight: 500;
}

.search-post-type a, .search-post-type a:visited {
    color: #676767;
}

div.entry-summary p, .new-blog div.entry-summary {
    margin-top: 5px !important;
    margin-bottom: 20px !important;
    word-wrap: break-word;
}

main.site-main.search-main p.search-query span {
    color: #ad1f76;
    font-weight: normal !important;
}

@media screen and (min-width: 1200px) {
    p.search-query span {
        max-width: 50%;
        display: inline-block;
    }
}

@media screen and (max-width: 768px) {
    main.site-main.search-main p.search-query span {
        margin-left: 5px;
    }
    main.site-main.search-main form.search-form {
        float: left !important;
    }
    .search-query {
        display: flex;
        margin-bottom: 0;
    }
    .search-main header {
        display: flex;
        flex-direction: column;
    }

    .search-results header.entry-header {
        padding-top: 0;
    }

    .search-main h2.entry-title {
        margin-top: 0 !important;
    }

    .no-results p {
        display: inline-block;
        margin-bottom: 5px;
        margin-top: 10px;
    }

    .no-results b {
        display: block;
        margin-bottom: -35px;
    }

    main.site-main.search-main .no-results .page-header {
        border-bottom: 0;
        padding-bottom: 0;
        margin-bottom: 20px;
    }

    main.site-main.search-main .no-results .page-header h1 {
        margin-bottom: 0;
    }
}

@media (max-width: 420px) {
    main.site-main.search-main {
        padding-top: 15px !important;
    }

    .search-main .page-nav a, .search-main .page-nav span {
        margin-left: 0;
    }

    main.site-main.search-main .page-header {
        margin-bottom: 25px !important;
    }
}