/* Search all records (design 003, page search-all): layout only.
   Grid, flex and gaps via --fm-* tokens. Colours, borders, radii, shadows and fonts live in the shared fm-* components
   (assets/d3/components.css). */
.sx { display: flex; flex-direction: column; gap: var(--fm-space-4); }
.sx-lede { max-width: 60ch; }

.sx-form { display: flex; align-items: stretch; gap: var(--fm-space-3); }
.sx-form .fm-search { flex: 1 1 auto; min-width: 0; }

.sx-filters { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: var(--fm-space-3) var(--fm-space-5); }
.sx-chips { display: flex; flex-wrap: wrap; gap: var(--fm-space-2); min-width: 0; }
.sx-side[hidden] { display: none; }
.sx-side { display: flex; align-items: flex-start; flex-wrap: wrap; gap: var(--fm-space-3); }

.sx-results { display: flex; flex-direction: column; gap: var(--fm-space-3); }
.sx-hit .fm-card__head { align-items: flex-start; }
.sx-snippet { overflow-wrap: anywhere; }
.sx-limits { margin-block: var(--fm-space-2) 0; padding-inline-start: var(--fm-space-5); }

@media (max-width: 480px) {
  .sx-form { flex-direction: column; }
  .sx-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--fm-space-1); }
  .sx-side { width: 100%; }
}
