/*
 * Copyright 2020, White River Computing LLC. All rights reserved.
 * For licensing information, please contact Charlie Flock (cflock@whiterivercomputing.com or 888-802-6340)
 */

/* hide author info */
#search-results span.documentAuthor {
    display: none;
}

/* WRC footer */
#portal-footer-wrapper {
    padding: 15px!important;
    position: relative;
}
#portal-footer-wrapper a:hover {
    color: white;
}
div#portal-footer::after {
    background-image: url(WhiteRiverComputing-165x45.png);
    bottom: calc(50% - 45px / 2);
    content: '';
    display: block;
    height: 45px;
    position: absolute;
    right: 0;
    width: 165px;
}
@media only screen and (max-width: 910px) {
    div#portal-footer {
        text-align: left;
    }
}
@media only screen and (max-width: 650px) {
    div#portal-footer::after {
        position: static;
    }
}
#portal-siteactions {
    padding-inline-start: 0;
    padding-left: 0;
}

/* pad date fields like other inputs */
input[type="date"] {
    padding-left: 12px;
}

/* Sticky headers */
#mainnavigation-wrapper,
#above-content-wrapper {
    position: sticky;
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    top: 0;
    z-index: 1;
}
#above-content-wrapper {
    top: 50px;
}

/* Fix ugly wrapping of long breadcrumbs */
nav.plone-breadcrumb div.container {
    overflow: hidden;
    white-space: nowrap;
}

.wrc-faceted-badge {
    font-size: 80%;
    background-color: rgb(163, 167, 169);
    border-radius: 4px;
    color: white;
    display: inline-block;
    font-weight: 455;
    margin: 2px 1px;
    padding: .25em .5em;
    white-space: nowrap;
}
.wrc-data-collection::after { 
    font-family: "Fontello";
    content: '\e808';
}
.wrc-data-dataset::after { 
    font-family: "Fontello";
    content: '\e825';
}
.wrc-data-file::after { 
    font-family: "Fontello";
    content: '\e80e';
}
.facet-annot {
    font-size: 90%;
}
.widget-fieldset legend {
    border-bottom: none;
    font-size: 120%;
    padding-left: 1rem;
}

/* to make sure facet widgets are clickable */
#left-area {
    padding: 0;
}
#center-area {
    float: left;
    height: max-content;
    margin-left: 0;
    width: calc(100% - 25em);
}
#center-area .left-area-js {
    margin-left: 0;
}

.stat-boxes {
    list-style: none;
    padding-left: 0;
    white-space: nowrap;
    width: fit-content;
}
.stat-box {
    display: inline-block;
    padding: 0.5rem;
    border: solid rgb(176, 178, 181) 1px;
}
.stat-box:not(:last-child) {
    margin-right: 0.5rem;
}
.stat-box h3 {
    font-size: 100%;
    font-weight: bold;
    padding-top: 0;
    margin-top: 0;
    text-align: center;
}
.stat-box-value {
    text-align: center;
}
.stat-box-value .stat-box-total {
    display: none;
}

#faceted-results {
    background: #fafafa;
    width: fit-content;
}

/* not sure why eea.facetednavigation's version is broken */
.faceted_loading {
    background: url(++plone++facetednavigation/++unique++None/ajax-loader.gif) no-repeat 50% 1.5em !important;
}
#center-area {
    background: url(++plone++facetednavigation/++unique++None/ajax-loader.gif) no-repeat 75% 100px !important;
}
