/*search box */
.ais-SearchBox {
    margin: 1rem 0 2rem 0;
    border: none;
}

.ais-SearchBox-input {
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid #cc4857;
    border-radius: 10px;
    min-height: 50px;
    font-size: large;
}

.ais-SearchBox-input:focus {
    outline: none !important;
    color: #cc4857;
    border-bottom: 2px solid #cc4857;
}

#hit-anchor3,
#hit-anchor2,
#hit-anchor {
    color: inherit; /*disable text hover effect*/
}

/*the grid of the cards. width: calc(50% - 1rem) if you just want 2 cards side by sdie */
.ais-Hits-item {
    border-radius: 10px;
    border-width: 0px;
    overflow: hidden;
    margin-bottom: 2px;
    width: 100% !important; /*must label important otherwise default overides*/
    box-shadow: none;
}

.ais-Hits-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, .3), 0 0 1px 0 rgba(0, 0, 0, .25);
    transition: all 300ms;
}

.hit-title {
    font-weight: bold;
}

.hit-speaker {
    font-family: "AvenirLTStd-Roman";
    font-weight: bold;
    padding-bottom: 2px;
    color: #1FA2FF;
}

.hit-date {
    font-family: "AvenirLTStd-Book";
    font-weight: bold;
    color: #5B86E5;
}

.hit-abstract {
    font-family: "AvenirLTStd-Book";
    font-weight: normal;
}

.ais-toggle–item__active {
    background-color: #eee;
}

.ais-toggle–checkbox {
    display: none;
}

.ais-toggle–item {
    border: 1px solid red;
    text-align: center;
    border-radius: 5px;
}

/* ToggleRefinement */

.ais-ToggleRefinement-label {
    display: inline-block;
    flex-direction: row-reverse;
    justify-content: right;
}

.ais-ToggleRefinement-checkbox {
    font: inherit;
    margin-left: 2rem;
    margin-right: 0;
    position: relative;
}

.ais-ToggleRefinement-checkbox:checked::before {
    color: #e2a400;
}

.ais-ToggleRefinement-checkbox::before {
    align-items: center;
    color: rgba(33, 36, 61, 0.32);
    content: 'No';
    display: flex;
    font-size: 0.8rem;
    height: 16px;
    position: absolute;
    right: 38px;
}

.ais-ToggleRefinement-checkbox:checked::before {
    content: 'Yes';
}

.ais-ToggleRefinement-count {
    display: none;
}

.ais-ToggleRefinement-label {
    cursor: pointer;
    display: none;
}

.ais-ToggleRefinement-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(65, 66, 71, 0.08);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    height: 16px;
    margin-right: 16px;
    min-width: 30px;
    transition: background 150ms ease-out;
}

.ais-ToggleRefinement-checkbox:checked {
    background: #e2a400;
}

.ais-ToggleRefinement-checkbox::after {
    background-image: linear-gradient(to top, #f5f5fa, #fff);
    border-radius: 100%;
    box-shadow: 0 4px 11px 0 rgba(37, 44, 97, 0.15),
    0 2px 3px 0 rgba(93, 100, 148, 0.2);
    content: '';
    height: 16px;
    position: absolute;
    transition: transform 150ms ease-out;
    width: 16px;
}

.ais-ToggleRefinement-checkbox:checked::after {
    transform: translateX(100%);
}

/*sticky top. the attribute `top` defines when sticky happens larger the ealier*/
.sticky-lg-top {
    top: 4rem;
}

@media (max-width: 767px) {
    .ais-Hits-item {
        margin-bottom: 2px;
        width: 100%;
    }

    p.lead, h2 {
        text-align: center;
    }
}