/* ==========================================================================
   Search Page (Wave: Search + A11y + Token Discipline)
   - Shared finder shell now lives in css/style.css
   - This file keeps search-page-specific measure, results rhythm, and utility calmness
   ========================================================================== */

body.search-page .search-hero .page-hero__inner {
  text-align: center;
}

.search-form {
  width: min(100%, 920px);
  margin: var(--space-4) auto 0;
}

.search-input {
  min-height: 48px;
}

.search-help {
  margin: var(--space-3) auto 0;
  max-width: min(100%, 920px);
  font-size: 0.95rem;
}

.results-summary {
  margin: var(--space-3) auto 0;
  max-width: min(100%, 920px);
}

.search-hero .finder-summary {
  max-width: min(100%, 980px);
}

/* Search scope + suggestions (Wave V10-38)
   - Chip-based scope clamp for faster scanning.
   - Suggested query chips add a premium "start here" moment without noise.
*/
.search-scope-bar {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.finder-summary__suggest {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.results-empty__suggest {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.results-empty__suggest-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.search-hero .finder-summary .search-help,
.search-hero .finder-summary .results-summary {
  margin: 0;
  max-width: none;
}

.search-results .search-group {
  margin-top: var(--space-6);
}

.search-results .search-group:first-of-type {
  margin-top: var(--space-4);
}

.search-results .results-empty {
  margin-top: var(--space-6);
}

@media (min-width: 1601px) {
  .search-form {
    width: min(100%, 980px);
  }

  .search-help,
  .results-summary {
    max-width: min(100%, 980px);
  }

  .search-hero .finder-summary {
    max-width: min(100%, 1040px);
  }

  .search-results .search-group {
    margin-top: calc(var(--space-6) + 8px);
  }
}


@media (min-width: 360px) and (max-width: 699px) {
  .search-scope-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .search-scope-bar .chip {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .search-scope-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .search-scope-bar .chip {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 359px) {
  .search-scope-bar {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .search-scope-bar .chip {
    width: 100%;
    justify-content: center;
  }
}
