.search-page main { font-family: var(--serif); }
.search-page .page-intro { padding-bottom: 1.4rem; }
.search-page .lead { max-width: 760px; }
.search-workspace { padding: 0 0 4.8rem; }
.search-form { max-width: 880px; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule); padding: 1.4rem 0 1.6rem; }
.search-query-label { display: block; margin-bottom: .5rem; }
.search-query-row { display: flex; gap: .7rem; }
.search-query-row input { flex: 1; min-width: 0; border: 1px solid var(--rule-dark); background: #fff; color: var(--ink); border-radius: 0; padding: .8rem .9rem; font: inherit; font-size: 1.13rem; }
.search-submit { color: #fff; background: var(--ink); border: 1px solid var(--ink); padding: .7rem 1.4rem; font: inherit; cursor: pointer; }
.search-submit:hover { background: #383833; }
.search-modes { border: 0; padding: 0; margin: 1.1rem 0 .65rem; display: flex; flex-wrap: wrap; gap: .55rem 1.7rem; }
.search-modes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-modes label { display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.search-modes input { accent-color: var(--ink); margin: 0; }
.search-help { margin: 0; color: var(--muted); font-size: .96rem; max-width: 780px; }
.search-filters { display: flex; flex-wrap: wrap; gap: .75rem 1.6rem; margin-top: 1.1rem; }
.search-filter { display: flex; align-items: center; gap: .6rem; }
.search-filter select { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--rule); border-radius: 0; padding: .25rem .5rem; max-width: 230px; }
.search-examples { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin: 1.25rem 0 1.5rem; color: var(--muted); font-size: .95rem; }
.search-example { border: 0; border-bottom: 1px solid var(--rule); background: transparent; padding: 0 0 .05rem; color: var(--text); cursor: pointer; font: inherit; }
.search-example:hover { color: #000; border-color: #333; }
.search-results-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; margin-top: 2.2rem; border-bottom: 1px solid var(--rule-dark); padding-bottom: .65rem; }
.search-results-heading h2 { font-size: 1.5rem; }
.search-status { color: var(--muted); font-size: .93rem; margin: 0; }
.search-detected { color: var(--muted); margin: .85rem 0 0; font-size: .94rem; }
.search-results { margin: 0; padding: 0; list-style: none; max-width: 900px; }
.search-result { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.search-result-meta { color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; margin: 0 0 .4rem; }
.search-result h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; }
.search-result h3 a { text-decoration: none; }
.search-result h3 a:hover { text-decoration: underline; }
.search-result-authors { margin: .45rem 0 0; color: var(--muted); font-size: .95rem; }
.search-result-excerpt { margin: .6rem 0; overflow-wrap: anywhere; }
.search-result-reason { color: var(--muted); font-size: .9rem; margin: .55rem 0; }
.search-result-actions { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin: .6rem 0 0; }
.search-page mark { color: inherit; background: #eeeadb; padding: .03rem .09rem; }
.search-empty { padding: 1.5rem 0; max-width: 760px; }
.search-coverage { max-width: 880px; margin-top: 2rem; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.search-coverage summary { cursor: pointer; color: var(--text); }
.search-coverage p { margin: .6rem 0 0; }
.search-error { color: #792929; }
.search-preview-banner { padding: .65rem 1rem; background: var(--wash); border-bottom: 1px solid var(--rule); text-align: center; font-family: var(--serif); }
@media (max-width: 620px) {
  .search-query-row { flex-direction: column; }
  .search-submit { align-self: flex-start; }
  .search-results-heading { display: block; }
  .search-status { margin-top: .4rem; }
  .search-filter { flex: 1 1 100%; justify-content: space-between; }
  .search-filter select { flex: 1; max-width: 65%; }
}
