/* F4g (04 §3.1): /search. Field in the page head, jump chips, groups of hits that arrive in sequence
   (data-stagger). The match highlight is a pale gold mark behind ink text (gold as a mark, never as text). */
.search-page .page-head, .search-page > :not(.page-head) { max-width: 880px; }
.search-page .field { margin-top: var(--s6); }
.search-page .field .btn { flex: none; }
.search-note { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.search-note b { color: var(--ink); font-weight: 600; }
.search-jump { margin-top: var(--s5); }
.group { margin-top: var(--s8); scroll-margin-top: calc(var(--header-h) + 16px); }
.group > h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 var(--s4); font-size: 1.5rem; }
.group > h2 .meta { font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.hits { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hit { position: relative; padding: 20px var(--s5); border-radius: var(--r-lg); background: #fff; box-shadow: 0 1px 0 var(--line); transition: background var(--t-fast) var(--ease); }
.hit:hover { background: var(--surface); }
.hit h3 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.hit h3 a { color: var(--ink); text-decoration: none; }
.hit h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* the whole row is the link */
.hit:hover h3 a { color: var(--blue); text-decoration: underline; }
.hit .snip { margin: 6px 0 0; color: var(--ink-2); max-width: var(--measure); overflow-wrap: anywhere; }
.hit .meta { margin: 6px 0 0; }
.hit mark, .search-page mark { padding: 0 2px; border-radius: 4px; background: rgb(212 172 97 / .32); color: var(--ink); }
.search-more { margin: var(--s4) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }

@media (max-width: 600px) {
  .search-page .field { padding-left: 16px; }
  .hit { padding: 16px; background: var(--surface); box-shadow: none; }
  .group { margin-top: var(--s7); }
}
