/* Стили поиска. Цвета только из theme.css. */

.srch { display: flex; flex-direction: column; gap: 16px; }
.srch-form { display: flex; gap: 8px; align-items: center; }
.srch-box { flex: 1; min-width: 0; max-width: 560px; } /* the field gives way, «Найти» stays on the screen */
.srch-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.srch-body { display: flex; flex-direction: column; gap: 20px; }
.srch-group { display: flex; flex-direction: column; gap: 4px; }
.srch-row { flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; }
.srch-text { font-size: 14px; line-height: 22px; color: var(--foreground); min-width: 0; overflow-wrap: anywhere; }
.srch-hit { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.srch-lock { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; line-height: 18px; color: var(--muted-foreground); }
.srch-lock .w-i { width: 12px; height: 12px; }

/* The item of the summary and the short summary a result of the search opens (?item=): lit until the page is left. */
.w-item.is-found, .w-short.is-found { background: var(--accent-soft); }

@media (max-width: 760px) {
  .srch-box, .srch-form > .w-btn { height: 44px; }
  .srch-box input { height: 100%; }
}

@media (max-width: 720px) {
  .srch-box { max-width: none; }
  .srch-filter { flex: 1 1 140px; min-width: 0; } /* two filters fit across the 288px content area at 320px */
}

@media (max-width: 420px) {
  .srch-filter .w-pick-btn { gap: 6px; padding-inline: 8px; }
}
