/* SEARCH BAR */
#search-input {
    height: 40px;
    width: 100%;
    border-width: 0;
    font-size: 18px;
    font-family: 'Noto Serif', serif;
    background-color: rgb(237, 237, 237);
    padding: 15px;
    box-sizing: border-box;
}

#search-input:focus {
    outline: none;
}

/* -------------------------------------------------- */

/* ADVANCED SEARCH PANEL */

/* Advanced search container */
.adv-search-container {
    width: 100%;
    box-sizing: border-box;
    font-family: calibri;
}

/* Advanced search dropdown */
#adv-search-btn {
    cursor: pointer;
    padding: 10px;
    margin-top: 10px;
    border: none;
    text-align: left;
    outline: none;
    background-color: #eee;
    font-size: 14px;
}

#adv-search-btn:hover {
    text-decoration: underline;
}

#adv-search-panel {
    max-width: 100%;
    box-sizing: border-box;
    background-color: #eee;
    overflow: hidden;
    display: none;
}

.inner-panel {
    display: grid;
    grid-template-rows: auto;
    row-gap: 15px;
    padding: 20px;
}

#adv-search-panel select {
    min-width: 75px;
    padding: 0 1px;
    font-size: 14px;
}

#adv-search-panel select:focus {
    outline: none;
}

#adv-search-panel fieldset {
    border: none;
    padding: 0;
}

#adv-search-panel legend {
    margin-bottom: 5px;
    font-weight: bold;
}

/* Filter Dates */
.filter-dates-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 150px;
}

@media only screen and (min-width: 350px) {
    .filter-dates-panel {
        flex-direction: row;
        align-items: center;
    }
}

/* Filter Categories */

.filter-categories {
    display: grid;
    max-width: 400px;
    gap: 5px 20px;
}

@media only screen and (min-width: 400px) {
    .filter-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checklist-category {
    display: flex;
    align-items: center;
    flex-basis: content;
    font-size: 16px;
}

.checklist-category input {
    height: 16px;
    width: 16px;
    cursor: pointer;
}

.checklist-category label {
    cursor: pointer;
    padding-left: 5px;
}

/* Clear Filters */
.clear-filters-btn {
    all: unset;
    margin-left: auto;
    text-align: right;
    cursor: pointer;
    font-size: 14px;
}

.clear-filters-btn:hover {
    text-decoration: underline;
}



/* -------------------------------------------------- */

/* SEARCH SPINNER */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #567e46;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -------------------------------------------------- */

/* SEARCH RESULTS */
#datafetch {
    margin-top: 40px;
}

.oaw-no-results {
    font-family: 'Noto Serif', serif;
}

/* -------------------------------------------------- */

/* PAGINATION */
.oaw-mobile-pagination-links {
    display: flex;
    visibility: visible;
}

.oaw-pagination-links {
    display: none;
    visibility: hidden;
}

.oaw-pagination-links,
.oaw-mobile-pagination-links {
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 0;
    list-style-type: none;
    font-size: 12px;
    font-family: futura-pt;
    font-weight: bold;
    text-transform: uppercase;
}

.oaw-mobile-pagination-msg {
    margin: 0 10px;
}

.oaw-pagination-links li a,
.oaw-mobile-pagination-links li a {
    padding: 10px;
}

.oaw-pagination-links li a:hover,
.oaw-mobile-pagination-links li a:hover {
    cursor: pointer;
}

.oaw-pagination-links li a:hover {
    background-color: #eee;
}

.oaw-active-page-link {
    cursor: default !important;
    background-color: #eee;
}

.oaw-pagination-ellipsis {
    padding: 0 5px;
}

@media screen and (min-width: 600px) {
    .oaw-mobile-pagination-links {
        display: none;
        visibility: hidden;
    }

    .oaw-pagination-links {
        display: flex;
        visibility: visible;
    }
}

/* -------------------------------------------------- */

/* Wrapper */
.oaw-story-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 7px;
}

/* Title link */
.oaw-story-wrapper a {
    text-decoration: none;
}

.oaw-story-wrapper a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------- */

/* THUMBNAIL IMAGE */
.oaw-story-img,
.oaw-story-img-link,
.oaw-story-img-link-default {
    width: 100%;
    aspect-ratio: 16/9;
}

.oaw-story-img {
    object-fit: cover;
}

/* Default image */
.oaw-story-img-link-default {
    padding: 20px;
    box-sizing: border-box;
    background-color: #eee;
}

.oaw-story-img-default {
    width: 100%;
    object-fit: contain;
}

/* -------------------------------------------------- */

/* TEXT */
.oaw-story-text {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.oaw-story-title {
    font-size: 16px;
    font-family: 'Noto Serif', serif;
}

.oaw-story-meta {
    font-size: 14px;
    font-family: calibri;
}

.oaw-story-excerpt {
    font-size: 13px;
}

/* -------------------------------------------------- */

/* DESKTOP LAYOUT */

@media only screen and (min-width: 500px) {
    .oaw-story-wrapper {
        flex-direction: row;
        gap: 20px;
    }

    .oaw-story-img,
    .oaw-story-img-link,
    .oaw-story-img-link-default {
        height: 135px;
        width: 180px;
    }
    .oaw-story-text {
        margin: 0;
    }
}