/* Global search page. Reuses .filter-bar, .photo-grid and .tile from
   style.css so results look identical to the gallery and archive; only the
   prose (history) results and the group headings need new rules. */

.search-head { padding-top: 46px; }
.search-head h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: normal; color: var(--navy); }

.search-group {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: normal;
  margin: 30px 0 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.search-empty {
  color: var(--muted);
  font-style: italic;
  padding: 26px 0 6px;
}

.search-more {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---- history (prose) results ---- */

.search-chapters { display: grid; gap: 12px; }

.search-chap {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  padding: 14px 16px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.search-chap:hover {
  box-shadow: 0 3px 14px rgba(14, 33, 54, .10);
  border-color: var(--line);
  border-left-color: var(--rust);
}

.search-chap .sc-label {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.search-chap .sc-title {
  font-size: 18px;
  color: var(--navy);
  margin: 3px 0 6px;
}
.search-chap .sc-ex {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* the matched terms, in both prose and tile captions */
#s-results mark {
  background: rgba(184, 137, 45, .26);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* result tiles are links here, not click-handlers */
#s-results .photo-grid .tile { text-decoration: none; color: inherit; display: block; }

@media (max-width: 640px) {
  .search-head { padding-top: 30px; }
  .search-chap .sc-title { font-size: 16px; }
  .search-chap .sc-ex { font-size: 14px; }
}
