/* Site search (page D). Builds on kit.css and base.css. */

.srch { padding-bottom: 24px; }
.srch-head { padding: clamp(32px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.srch-head h1 { margin-bottom: 12px; color: var(--brand); }
.srch-head .warm-line { margin-bottom: 14px; }

html:not(.js) .srch-form { display: none; }
.srch-form { margin-bottom: 8px; }
/* The form appears once the script runs; its space is kept (even without JavaScript) so nothing jumps. */
.srch-slot { min-height: 94px; }
@media (max-width: 480px) { .srch-slot { min-height: 160px; } }
.srch-form[hidden] { display: none; }
.srch-form__label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.srch-form__row { display: flex; gap: 10px; }
.srch-form__row .input { flex: 1 1 auto; min-width: 0; font-size: 1.125rem; min-height: 56px; padding-inline: 22px; border-radius: var(--radius-pill); background: var(--surface); }
.srch-form__row .btn { min-height: 56px; flex: none; }
.srch-count { min-height: 1.6em; margin: 12px 0 6px; font-family: var(--font-body); font-weight: 600; font-size: .9375rem; color: var(--fg); }

mark { background: var(--warm); color: var(--ground); border-radius: 2px; padding: 0 .12em; }

.srch-group { margin-top: clamp(24px, 4vw, 40px); }
.srch-group h2 { margin-bottom: 8px; color: var(--brand); }
.srch-group__n { display: inline-grid; place-items: center; min-width: 1.6em; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--accent); font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-transform: none; vertical-align: .5em; margin-left: .4em; }

.srch-list { list-style: none; margin: 0; padding: 0; }
.srch-item { padding: 16px 20px; margin-bottom: 8px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 4px; }
.srch-item__t { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; line-height: 1.2; text-decoration: none; justify-self: start; display: inline-block; padding-block: 10px; margin-block: -2px; min-height: 44px; min-width: 44px; }
.srch-item__t:hover, .srch-item__t:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.srch-item__m { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--accent); }
.srch-item__d { margin: 0; }

.srch-none { margin: 24px 0 0; padding: 18px 20px; border: 2px solid var(--warm); border-radius: var(--radius); background: var(--surface); }
.srch-all { margin-top: clamp(32px, 5vw, 56px); }
.srch-all[hidden] { display: none; }
.srch-all h2 { margin-bottom: 8px; }
.srch-all > p { margin-bottom: 8px; }

@media (max-width: 480px) {
  .srch-form__row { flex-direction: column; }
  .srch-form__row .btn { width: 100%; }
}
