/* China Sourcing page-specific responsive guard.
   Keeps the four-step buyer process readable without changing global layouts. */

.china-buyer-hero {
  overflow: clip;
  padding: clamp(2.75rem, 6vw, 5.25rem) 0;
}

.china-buyer-hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(28rem, 0.82fr) !important;
  gap: clamp(2rem, 4vw, 4rem) !important;
  align-items: center !important;
}

.china-buyer-hero-grid > * {
  min-width: 0;
}

.china-buyer-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.8vw, 5.15rem);
  overflow-wrap: anywhere;
}

.china-buyer-hero p {
  max-width: 67ch;
}

.china-buyer-hero .actions a {
  min-height: 48px;
}

.sourcing-board {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(13rem, 1fr)) !important;
  align-self: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(16, 33, 29, 0.08);
}

.sourcing-board > * {
  position: relative;
  min-width: 0;
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 1.5rem 1.55rem 1.4rem;
  border: 0 !important;
}

.sourcing-board > *:nth-child(even) {
  border-left: 1px solid var(--line) !important;
}

.sourcing-board > *:nth-child(n + 3) {
  border-top: 1px solid var(--line) !important;
}

.sourcing-board > *::before {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: 0.2rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
}

.sourcing-board > *:nth-child(1)::before { content: "01"; }
.sourcing-board > *:nth-child(2)::before { content: "02"; }
.sourcing-board > *:nth-child(3)::before { content: "03"; }
.sourcing-board > *:nth-child(4)::before { content: "04"; }

.sourcing-board strong {
  display: block;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.sourcing-board span {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.product-path-row > div,
.sourcing-risk-grid > *,
.sourcing-questions > * {
  min-width: 0;
}

@media (max-width: 1120px) {
  .china-buyer-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2.25rem !important;
  }

  .china-buyer-hero h1 {
    max-width: 14ch;
  }

  .sourcing-board {
    max-width: 48rem;
  }
}

@media (max-width: 768px) {
  .china-buyer-hero {
    padding: 2.25rem 0 3rem;
  }

  .china-buyer-hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 12vw, 3.7rem);
    overflow-wrap: normal;
  }

  .china-buyer-hero .actions {
    align-items: stretch;
  }

  .china-buyer-hero .actions a {
    width: 100%;
    min-height: 48px;
    padding-inline: 1rem;
    text-align: center;
  }

  .sourcing-board {
    grid-template-columns: 1fr !important;
  }

  .sourcing-board > * {
    min-height: 0;
    padding: 1.25rem 1.3rem;
    border-left: 0 !important;
    border-top: 1px solid var(--line) !important;
  }

  .sourcing-board > *:first-child {
    border-top: 0 !important;
  }

  .product-path-row {
    grid-template-columns: minmax(4.75rem, 5.5rem) minmax(0, 1fr) !important;
    gap: 1rem !important;
  }

  .product-path-row a,
  .buyer-seller-split a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .china-buyer-hero-grid {
    gap: 1.6rem !important;
  }

  .china-buyer-hero h1 {
    font-size: clamp(2.25rem, 11.5vw, 3rem);
  }

  .sourcing-board > * {
    padding: 1.1rem 1.15rem;
  }

  .product-path-row {
    grid-template-columns: 1fr !important;
  }

  .product-path-row img {
    width: min(8rem, 42vw);
  }
}
