.library-search {
    margin: 1.5rem 0;
}
.library-search label {
    display: block;
    margin-bottom: .6rem;
    text-align: center;
    font-size: 1rem;
}
.search-controls {
    display: flex;
    gap: .6rem;
    max-width: 36rem;
    margin: auto;
}
.search-category {
    max-width: 36rem;
    margin: .8rem auto 0;
}
.search-category select {
    box-sizing: border-box;
    width: 100%;
    padding: .6rem;
    font: inherit;
    font-size: 1rem;
    color-scheme: dark;
    background: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #8a8a8a;
    border-radius: .25rem;
}
.search-controls input {
    box-sizing: border-box;
    min-width: 0;
    flex: 1;
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid #8a8a8a;
    border-radius: .25rem;
    background: #1e1e1e;
    color: #e0e0e0;
    font: inherit;
    font-size: 1rem;
}
.library-search button, .search-pagination button {
    border: 1px solid #8a8a8a;
    border-radius: .25rem;
    background: #1e1e1e;
    color: #90caf9;
    padding: .65rem .9rem;
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
}
.library-search button:hover, .search-pagination button:hover {
    background: #273342;
    border-color: #90caf9;
}
.library-search :focus-visible, .search-results a:focus-visible,
.search-pagination :focus-visible {
    outline: 2px solid #90caf9;
    outline-offset: 3px;
}
.search-help, #resultCount {
    font-size: .95rem;
    line-height: 1.5;
}
.search-help {
    color: #b8b8b8;
}
.search-results[hidden], .search-pagination[hidden], #hide[hidden] {
    display: none;
}
.search-result {
    border-bottom: 1px solid #454545;
    padding: 1.4rem 0;
}
.search-result h2 {
    margin: 0 0 .6rem;
    font-size: 1.25rem;
    line-height: 1.4;
    text-align: left;
}
.search-result p {
    text-align: left;
    line-height: 1.6;
    margin: .6rem 0;
}
.search-description, .search-format {
    font-size: .9rem;
    color: #b8b8b8;
}
.search-excerpt {
    font-size: 1rem;
}
.search-excerpt a:link, .search-excerpt a:visited {
    color: #e0e0e0;
}
.search-result mark {
    background: #e7ca72;
    color: #161616;
    padding: 0 .08em;
}
.search-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0 2.5rem;
    font-size: 1rem;
}
.search-pagination button:disabled {
    opacity: .65;
    cursor: wait;
}
@media (max-width: 420px) {
    .search-controls { gap: .4rem; }
    .search-controls input { padding: .65rem .5rem; }
    .library-search button { padding: .65rem .6rem; }
}
