/* SpinOut U Marketplace Browser Integrity v1
   Keeps post-homepage routes exploratory, indexed, and marketplace-first. */

html[data-marketplace-browser-integrity="spinoutu-marketplace-browser-integrity-v1"] .search-entry-chip-rail {
  display: none !important;
}

.marketplace-browser-page .route-curation-editorial,
.marketplace-browser-page .route-curation-participation {
  display: none !important;
}

.integrity-breadcrumb,
.marketplace-browser-page .destination-breadcrumb {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 1.4rem;
  color: #697386;
  font-size: .92rem;
}

.integrity-breadcrumb button,
.marketplace-browser-page .destination-breadcrumb button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #4e596b;
  cursor: pointer;
  font: inherit;
}

.integrity-breadcrumb button:hover,
.marketplace-browser-page .destination-breadcrumb button:hover {
  color: #1769ff;
}

.integrity-breadcrumb strong,
.marketplace-browser-page .destination-breadcrumb strong {
  color: #121722;
  font-weight: 760;
}

.marketplace-browser-page .direction-hero,
.marketplace-browser-page .generic-destination-hero {
  margin-bottom: 2rem;
}

.marketplace-browser-page .destination-section {
  padding-top: clamp(2.75rem, 6vw, 5.75rem);
  padding-bottom: clamp(2.75rem, 6vw, 5.75rem);
}

.marketplace-browser-page .destination-section header h2 {
  max-width: 980px;
}

.marketplace-browser-page .destination-section header p {
  max-width: 760px;
}

.integrity-search-page {
  background: #fff;
  color: #121722;
  min-height: 70vh;
}

.integrity-search-page .destination-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 7rem;
}

.integrity-search-hero {
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 5.5rem);
  background:
    radial-gradient(circle at 86% 20%, rgba(23, 105, 255, .12), transparent 32%),
    linear-gradient(135deg, #f6f9ff 0%, #ffffff 58%, #f5fbfb 100%);
  border: 1px solid #e1e7f0;
}

.integrity-search-hero > span,
.integrity-result-section > header > span,
.integrity-search-panel-results > header > span {
  display: block;
  color: #1769ff;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 900;
}

.integrity-search-hero h1 {
  max-width: 980px;
  margin: .7rem 0 1rem;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.integrity-search-hero p {
  max-width: 850px;
  margin: 0;
  color: #646e80;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}

.integrity-search-empty {
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 204, 53, .18), transparent 30%),
    linear-gradient(135deg, #fffaf0, #fff 58%, #f7f9fc);
}

.integrity-result-section {
  padding: clamp(3.5rem, 7vw, 7rem) 0 0;
}

.integrity-result-section > header {
  margin-bottom: 1.5rem;
}

.integrity-result-section > header h2 {
  margin: .45rem 0 .4rem;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  letter-spacing: -.04em;
}

.integrity-result-section > header p {
  margin: 0;
  color: #737d8e;
}

.integrity-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.integrity-result-card {
  min-width: 0;
}

.integrity-result-image {
  appearance: none;
  display: block;
  width: 100%;
  aspect-ratio: 1.22 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #eef2f7;
  cursor: pointer;
}

.integrity-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.integrity-result-card:hover .integrity-result-image img {
  transform: scale(1.025);
}

.integrity-result-card > div {
  padding: .95rem .15rem 0;
}

.integrity-result-card small {
  display: block;
  color: #1769ff;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .68rem;
  font-weight: 850;
}

.integrity-result-card h3 {
  margin: .35rem 0 .45rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.integrity-result-card h3 button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.integrity-result-card p {
  margin: 0;
  color: #6c7687;
  font-size: .92rem;
  line-height: 1.48;
}

.integrity-search-panel-results {
  padding: 1.55rem max(28px, calc((100vw - 1440px) / 2 + 20px)) 2.5rem;
  background: #fff;
}

.integrity-search-panel-results > header {
  margin-bottom: 1.15rem;
}

.integrity-search-panel-results > header h3 {
  margin: .4rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  letter-spacing: -.04em;
}

.integrity-search-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.integrity-search-panel-grid > button {
  appearance: none;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  min-width: 0;
  padding: .65rem;
  border: 1px solid #e2e7ef;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.integrity-search-panel-grid > button:hover {
  border-color: #9dbcf7;
  background: #f7faff;
}

.integrity-search-panel-grid img {
  width: 88px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.integrity-search-panel-grid span {
  min-width: 0;
}

.integrity-search-panel-grid small {
  display: block;
  margin-bottom: .3rem;
  color: #7b8492;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .62rem;
  font-weight: 850;
}

.integrity-search-panel-grid strong {
  display: block;
  overflow: hidden;
  color: #161c27;
  font-size: .92rem;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.integrity-search-panel-grid b {
  display: block;
  margin-top: .45rem;
  color: #1769ff;
  font-size: .75rem;
}

.integrity-view-all {
  appearance: none;
  margin-top: 1.25rem;
  border: 1px solid #172033;
  border-radius: 999px;
  padding: .8rem 1.15rem;
  background: #fff;
  color: #172033;
  font-weight: 820;
  cursor: pointer;
}

.integrity-view-all:hover {
  background: #172033;
  color: #fff;
}

@media (max-width: 1100px) {
  .integrity-result-grid,
  .integrity-search-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .integrity-search-page .destination-shell {
    width: min(100% - 28px, 1440px);
  }

  .integrity-search-hero {
    border-radius: 20px;
    padding: 2rem 1.25rem;
  }

  .integrity-search-hero h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.4rem);
  }

  .integrity-result-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .75rem;
  }

  .integrity-result-card {
    flex: 0 0 78vw;
    scroll-snap-align: start;
  }

  .integrity-search-panel-results {
    padding: 1.25rem 14px 2rem;
  }

  .integrity-search-panel-grid {
    display: flex;
    overflow-x: auto;
    gap: .85rem;
    scroll-snap-type: x mandatory;
    padding-bottom: .65rem;
  }

  .integrity-search-panel-grid > button {
    flex: 0 0 84vw;
    scroll-snap-align: start;
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .integrity-search-panel-grid img {
    width: 78px;
    height: 70px;
  }
}
