/* ==========================================================================
   Projects Overview — /project-category and /projects/{slug}
   Filter bar, section padding and the filter's empty state.

   The card grid and the cards themselves live in projects-shared.css, which the project
   detail page loads too. Both pages that load this file also load that one.
   ClickUp: 86ey7ftf3
   ========================================================================== */


/* Filter bar
   ========================================================================== */

/* Full-bleed band. Deliberately not floated — article#main has no clearfix, so a
   floated child here collapses the content wrapper and the footer rides up under it. */
.projects-filter-bar {
    background-color: #f1f1f1;
    border-bottom: 1px solid #e4e4e4;
    padding: 24px 0;
    width: 100%;
}

.projects-filter-inner:after {
    clear: both;
    content: '';
    display: table;
}

.projects-filter-control {
    float: left;
}

.projects-filter-label {
    color: #464646;
    display: inline-block;
    font-family: "Open Sans", Verdana, Geneva, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin: 0 18px 0 0;
    text-transform: uppercase;
    vertical-align: middle;
}

.projects-filter-select {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.projects-filter-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23f87836' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 11px auto;
    border: 1px solid #d7d7d7;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    color: #464646;
    cursor: pointer;
    font-family: "Open Sans", Verdana, Geneva, sans-serif;
    font-size: 14px;
    height: auto;
    line-height: 20px;
    margin: 0;
    max-width: 100%;
    min-width: 220px;
    padding: 11px 38px 11px 14px;
    text-overflow: ellipsis;
}

/* IE 10/11 draw their own arrow on top of the background image. */
.projects-filter-select select::-ms-expand {
    display: none;
}

.projects-filter-select select:focus {
    border-color: #f87836;
    outline: none;
}

.projects-filter-count {
    color: #767676;
    float: right;
    font-family: "Open Sans", Verdana, Geneva, sans-serif;
    font-size: 14px;
    line-height: 44px;
    margin: 0;
}

.projects-filter-count strong {
    color: #464646;
    font-weight: 700;
}


/* Grid section padding
   ========================================================================== */

.projects-overview {
    padding-bottom: 20px;
    padding-top: 60px;
}


/* Empty state — only reachable with JS, when a filter matches nothing
   ========================================================================== */

.projects-empty {
    color: #767676;
    display: none;
    font-family: "Open Sans", Verdana, Geneva, sans-serif;
    font-size: 16px;
    padding: 40px 0 20px;
    text-align: center;
}

.projects-empty.is-visible {
    display: block;
}


/* Breakpoints
   ========================================================================== */

@media only screen and (max-width: 959px) {
    .projects-overview {
        padding-top: 45px;
    }
}

@media only screen and (max-width: 767px) {
    .projects-filter-control,
    .projects-filter-count {
        float: none;
        text-align: center;
    }

    .projects-filter-label {
        display: block;
        margin: 0 0 10px;
    }

    .projects-filter-select,
    .projects-filter-select select {
        width: 100%;
    }

    .projects-filter-count {
        line-height: 20px;
        margin-top: 14px;
    }
}

@media only screen and (max-width: 599px) {
    .projects-overview {
        padding-top: 35px;
    }
}
