/* Upcycling & Exchange Program (/pages/upcycling-program) — premium
   redesign. Reuses the shared gold/charcoal/ivory tokens from
   shop-premium-tokens.css (same palette as the other redesigned policy
   pages) so this stays visually one brand rather than the old plain
   Shopify-extract layout. */

.upc {
  background: var(--pdp-ivory, #faf6ef);
  padding-bottom: 6rem;
}

/* --- Hero --- */

.upc__hero {
  text-align: center;
  padding: 5.5rem 1.5rem 3.5rem;
}

.upc__eyebrow {
  display: inline-block;
  font-size: 1.2rem;
  letter-spacing: 0.32rem;
  text-transform: uppercase;
  color: var(--pdp-gold, #b8860b);
  margin-bottom: 1.4rem;
}

.upc__title {
  margin: 0;
  font-family: var(--font-heading-family, serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  color: var(--pdp-ink, #2b241d);
}

.upc__rule {
  display: block;
  width: 6.4rem;
  height: 2px;
  margin: 2rem auto 0;
  background: linear-gradient(90deg, transparent, var(--pdp-gold, #b8860b), transparent);
}

.upc__wrap {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
}

.upc__section {
  background: var(--pdp-card, #fff);
  border: 1px solid var(--pdp-line, #e8dcc8);
  border-radius: var(--pdp-radius-lg, 16px);
  box-shadow: var(--pdp-shadow-sm, 0 2px 10px rgba(43, 36, 29, 0.06));
  padding: 2.8rem clamp(1.6rem, 4vw, 3.4rem);
}

.upc__heading {
  margin: 0 0 1.6rem;
  font-family: var(--font-heading-family, serif);
  font-weight: 400;
  font-size: 2rem;
  color: var(--pdp-ink, #2b241d);
}

/* --- Generic rich-text prose (used for every admin-authored HTML blob) --- */

.upc__prose {
  color: var(--pdp-ink-soft, rgba(43, 36, 29, 0.66));
  font-size: 1.5rem;
  line-height: 1.65;
}

.upc__prose p {
  margin: 0 0 1.2rem;
}

.upc__prose p:last-child {
  margin-bottom: 0;
}

.upc__prose b,
.upc__prose strong {
  color: var(--pdp-ink, #2b241d);
  font-weight: 700;
}

.upc__prose a {
  color: var(--pdp-gold-dark, #8a6508);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

/* Unordered lists — a small gold dot bullet. */
.upc__prose ul {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.upc__prose ul li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.7rem;
}

.upc__prose ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pdp-gold, #b8860b);
}

/* Ordered lists — numbered gold-ring badges, built with CSS counters so
   the admin's plain <ol><li> markup renders as a mini step sequence
   without needing any structured "steps" data for this page. */
.upc__prose ol {
  counter-reset: upc-step;
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.upc__prose ol:last-child {
  margin-bottom: 0;
}

.upc__prose ol li {
  counter-increment: upc-step;
  position: relative;
  padding-left: 3.6rem;
  min-height: 2.8rem;
}

.upc__prose ol li::before {
  content: counter(upc-step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1.5px solid var(--pdp-gold, #b8860b);
  background: rgba(var(--pdp-gold-rgb, 184, 134, 11), 0.08);
  color: var(--pdp-gold-dark, #8a6508);
  font-family: var(--font-heading-family, serif);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upc__prose ul:last-child,
.upc__prose ol:last-child {
  margin-bottom: 0;
}

/* --- Highlighted panel (Have Questions?) --- */

.upc__highlight {
  text-align: center;
  background: linear-gradient(180deg, var(--pdp-cream, #f4ece0), var(--pdp-ivory, #faf6ef));
  border-color: var(--pdp-gold, #b8860b);
}

.upc__highlight .upc__prose {
  max-width: 52rem;
  margin: 0 auto;
}

@media screen and (max-width: 640px) {
  .upc__hero {
    padding: 3.6rem 1.2rem 2.6rem;
  }

  .upc__section {
    padding: 2.2rem 1.6rem;
  }
}
