/* search.css — the site-wide search results page (/search) */

.search-page {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.search-page h1 {
    text-align: center;
    margin-bottom: 20px;
}

.page-search-form {
    margin: 0 auto 14px;
}

.page-search-form input {
    font-size: 20px;
    padding: 10px 14px;
}

.search-mode {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
    font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #d2d2d2;
    margin-bottom: 26px;
}

.mode-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.mode-option input {
    accent-color: #FFB719;
}

.group-note {
    font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    color: #9a9a9a;
    padding: 0;
    margin: -4px 0 12px;
    text-align: left;
}

.result-pages {
    display: block;
    font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    color: #9a9a9a;
    margin-top: 6px;
}

.result-pages a {
    display: inline-block;
    color: #FFB719;
    text-decoration: none;
    border: 1px solid rgba(255, 183, 25, 0.5);
    padding: 0 7px;
    margin: 0 4px 4px 0;
}

.result-pages a:hover { background: #FFB719; color: #171717; }

.search-summary {
    font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    color: #bdbdbd;
    text-align: center;
    padding: 0;
    margin: 0 0 30px;
}

.result-group {
    margin-bottom: 34px;
}

.result-group .section-heading {
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 8px;
}

.group-count {
    color: #bdbdbd;
    font-size: 14px;
    margin-left: 6px;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    text-decoration: none;
    font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
    transition: border-color 0.2s, background-color 0.2s;
}

.result:hover,
.result:focus-visible {
    border-color: #FFB719;
    background-color: rgba(255, 255, 255, 0.05);
}

.result-img {
    width: 64px;
    height: 84px;
    object-fit: cover;
    flex: 0 0 auto;
    background: #222;
}

.result-body {
    min-width: 0;
}

/* title line: name/title left, accession number right */
.result-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.result-title {
    display: block;
    font-size: 19px;
    line-height: 1.25;
    color: #FFB719;
}

.result-no {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #bdbdbd;
    white-space: nowrap;
}

.result-line { display: block; margin-top: 3px; }

.result-rank {
    font-size: 14px;
    color: white;
}

.result-kind {
    font-size: 12px;
    color: #bdbdbd;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.result-snippet {
    font-size: 15px;
    color: #d2d2d2;
}

.result mark {
    background: rgba(255, 183, 25, 0.28);
    color: inherit;
    padding: 0 1px;
}

.show-all {
    display: block;
    margin: 14px auto 0;
    font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: white;
    background: none;
    border: 1px solid white;
    padding: 6px 18px;
    cursor: pointer;
}

.show-all:hover,
.show-all:focus-visible {
    background: white;
    color: #FFB719;
}

.show-all[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .search-page { width: 92%; }
    .result-img { width: 48px; height: 64px; }
    .result-title { font-size: 17px; }
}
