/* What we source — commodity image / text rows (after Food & commodities) */

.scope-commodity-gallery {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.scope-gallery-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.25rem;
}

.scope-metals-lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.scope-gallery-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
}

.scope-gallery-figure {
  margin: 0;
  flex: 0 1 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.scope-gallery-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.scope-gallery-copy {
  flex: 1;
  min-width: 0;
}

.scope-gallery-heading {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.scope-gallery-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.scope-gallery-text + .scope-gallery-text,
.scope-gallery-text + .scope-metals-spec-label {
  margin-top: 1rem;
}

.scope-metals-spec-label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.scope-metals-spec-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.scope-metals-spec-table {
  width: 100%;
  min-width: 16rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.45;
}

.scope-metals-spec-table caption {
  padding: 0;
}

.scope-metals-spec-table th,
.scope-metals-spec-table td {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.scope-metals-spec-table thead th {
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
}

.scope-metals-spec-table tbody th {
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
}

.scope-metals-spec-table tbody td {
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .scope-gallery-row {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .scope-gallery-row--reverse {
    flex-direction: row-reverse;
  }

  .scope-gallery-figure {
    flex: 0 0 min(42%, 22rem);
  }

  /* Tall spec tables: align image to top */
  .scope-gallery-row--spec {
    align-items: flex-start;
  }
}
