/* IDSA Search — public ecosystem discovery page */

.idsa-search-page {
  padding: 24px 0 48px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 45%);
}

.idsa-search-wrap {
  max-width: 920px;
}

.idsa-search-head {
  text-align: center;
  padding: 28px 0 18px;
}

.idsa-search-head--compact {
  padding-top: 12px;
  padding-bottom: 8px;
}

.idsa-search-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.idsa-search-title {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: #0f2744;
}

.idsa-search-subtitle {
  margin: 0 auto 18px;
  max-width: 36rem;
  color: #475569;
  line-height: 1.55;
  font-size: 15px;
}

.idsa-search-form {
  max-width: 640px;
  margin: 0 auto;
}

.idsa-search-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.idsa-search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8daf6;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 16px;
  color: #0f2744;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 75, 162, 0.08);
}

.idsa-search-input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-color: #2563eb;
}

.idsa-search-submit {
  min-height: 48px;
  min-width: 108px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: #0f4ba2;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.idsa-search-submit:hover {
  background: #0c3d86;
}

.idsa-search-submit:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.idsa-search-chips {
  margin-top: 22px;
  text-align: center;
}

.idsa-search-chips-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
}

.idsa-search-chips-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.idsa-search-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #cddcf3;
  background: #fff;
  color: #0f4ba2;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.idsa-search-chip:hover {
  border-color: #0f4ba2;
  background: #eef4ff;
}

.idsa-search-chip:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.idsa-search-results {
  margin-top: 18px;
}

.idsa-search-results-lead {
  margin: 0 0 14px;
  font-size: 15px;
  color: #334155;
}

.idsa-search-upgrade-banner {
  margin-bottom: 18px;
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.idsa-search-upgrade-banner .idsa-card__actions {
  flex-wrap: wrap;
}

.idsa-search-section {
  margin-bottom: 22px;
}

.idsa-search-section-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: #0f2744;
}

.idsa-search-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}

.idsa-search-result-card .idsa-card__title {
  font-size: 1rem;
}

.idsa-search-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.idsa-search-empty {
  padding: 18px;
  border: 1px solid #dce7f8;
  border-radius: 14px;
  background: #f8fbff;
}

.idsa-search-empty-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #0f2744;
}

.idsa-search-empty-text {
  margin: 0 0 10px;
  color: #475569;
}

.idsa-search-empty-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #0f4ba2;
  line-height: 1.7;
}

.idsa-search-empty-list a {
  color: #0f4ba2;
  font-weight: 700;
  text-decoration: none;
}

.idsa-search-empty-list a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.idsa-search-starter {
  margin-top: 28px;
  text-align: left;
}

.idsa-search-starter-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: #0f2744;
}

@media (max-width: 640px) {
  .idsa-search-page {
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  }

  .idsa-search-input-row {
    grid-template-columns: 1fr;
  }

  .idsa-search-submit {
    width: 100%;
  }

  .idsa-search-result-card .idsa-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .idsa-search-result-card .idsa-btn {
    width: 100%;
    justify-content: center;
  }
}
