/* STOREDX EXPLORE R3 — Layout only.
   Existing research logic and authenticated APIs unchanged. */

.sx-explore {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.sx-explore-hero {
  padding: 36px 40px;
  border-radius: 20px;
  background: linear-gradient(115deg,#eaf3ff,#fff 76%);
  border: 1px solid #dbe7f8;
  margin-bottom: 24px;
}

.sx-explore-hero h1 {
  font-size: clamp(27px,3vw,38px);
  font-weight: 800;
  line-height: 1.2;
}

.sx-explore-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
  align-items: start;
}

.sx-explore-grid > .sx-explore-panel {
  min-width: 0;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid #dfe7f3;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15,44,84,.04);
}

/* Product discovery deserves full-width presentation. */
.sx-explore-grid > .sx-explore-panel:first-child {
  grid-column: 1 / -1;
}

/* Creator and video research share a balanced row. */
.sx-explore-grid > .sx-explore-panel:nth-child(2),
.sx-explore-grid > .sx-explore-panel:nth-child(3) {
  grid-column: auto;
}

/* LIVE rankings need room for names, ranges and controls. */
.sx-explore-grid > .sx-explore-panel:nth-child(4) {
  grid-column: 1 / -1;
}

.sx-explore-panel h2 {
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 16px;
}

.sx-explore-panel input,
.sx-explore-panel select {
  max-width: 100%;
  min-width: 0;
}

.sx-explore-panel button {
  cursor: pointer;
}

.sx-explore-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e9eef5;
}

.sx-explore-person:last-child {
  border-bottom: 0;
}

.sx-explore-note {
  line-height: 1.55;
  color: #64748b;
}

@media (max-width: 900px) {
  .sx-explore-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sx-explore-grid > .sx-explore-panel {
    grid-column: 1 / -1 !important;
  }

  .sx-explore-hero {
    padding: 26px 22px;
  }
}

@media (max-width: 600px) {
  .sx-explore-grid > .sx-explore-panel {
    padding: 18px;
  }

  .sx-explore-person {
    flex-wrap: wrap;
  }

  .sx-explore-panel h2 {
    font-size: 19px;
  }
}
