.upc-palmares {
  --upc-burgundy: #963b3f;
  --upc-ink: #27231f;
  --upc-muted: #756e67;
  --upc-line: #e4d8c9;
  --upc-paper: #fbf8f2;
  color: var(--upc-ink);
  margin: 2.5rem 0;
}

.upc-heading {
  margin: 0 0 2.4rem;
  text-align: center;
}

.upc-eyebrow {
  margin-bottom: 1.45rem;
  color: #8b6b49;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.upc-heading h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
}

.upc-heading p {
  margin: 1.15rem 0 0;
  color: var(--upc-muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-style: italic;
}

.upc-kpis,
.upc-charts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.upc-kpi {
  min-width: 0;
  padding: 28px 12px 24px;
  text-align: center;
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--upc-line);
  border-radius: 13px;
}

.upc-kpi-label {
  min-height: 2.6em;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .07em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #75624d;
}

.upc-kpi-value {
  margin: .55rem 0 .35rem;
  overflow-wrap: anywhere;
  color: var(--upc-burgundy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 2.5vw, 2.55rem);
  font-weight: 700;
  line-height: 1;
}

.upc-kpi-detail {
  color: var(--upc-muted);
  font-size: .9rem;
  line-height: 1.35;
}

.upc-divider {
  margin: 2.6rem auto 2rem;
  width: min(180px, 30%);
  border-top: 1px solid var(--upc-line);
}

.upc-title {
  margin: 0;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
}

.upc-subtitle {
  margin: .65rem 0 2rem;
  text-align: center;
  color: var(--upc-muted);
  font-style: italic;
}

.upc-continent {
  min-width: 0;
  padding: 18px 11px 22px;
  background: var(--upc-paper);
  border: 1px solid var(--upc-line);
  border-radius: 13px;
}

.upc-continent h3 {
  margin: 0 0 1rem;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 600;
}

.upc-donut-wrap {
  display: flex;
  justify-content: center;
}

.upc-donut {
  display: grid;
  place-items: center;
  width: min(170px, 82%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--upc-gradient));
  box-shadow: 0 7px 22px rgba(73, 53, 37, .09);
}

.upc-donut-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 58%;
  aspect-ratio: 1;
  text-align: center;
  background: #fffdf9;
  border-radius: 50%;
}

.upc-donut-center strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1;
}

.upc-donut-center span {
  margin-top: .25rem;
  color: var(--upc-muted);
  font-size: .72rem;
}

.upc-legend {
  display: grid;
  gap: .5rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .76rem;
}

.upc-legend li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.upc-swatch {
  width: 8px;
  height: 8px;
  background: var(--upc-color);
  border-radius: 50%;
}

.upc-legend a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: inherit;
  text-decoration: none;
}

.upc-legend a:hover,
.upc-legend a:focus {
  color: var(--upc-burgundy);
  text-decoration: underline;
}

.upc-legend li > span:last-child {
  white-space: nowrap;
  color: var(--upc-muted);
}

.upc-empty {
  margin: 1.3rem 0 0;
  text-align: center;
  color: var(--upc-muted);
  font-style: italic;
  font-size: .82rem;
}

.upc-error {
  padding: 1rem;
  border: 1px solid #b94a48;
  color: #8a2927;
  background: #fff5f5;
}

@media (max-width: 1100px) {
  .upc-kpis,
  .upc-charts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .upc-kpis,
  .upc-charts {
    grid-template-columns: 1fr;
  }

  .upc-donut {
    width: min(210px, 75%);
  }
}
