/* ===== Base Component ===== */
.c-infographic-tiles {
  font-family: Inter, sans-serif;
  background-color: #f4f7fb;
  border-radius: 8px;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.c-infographic-tiles .component-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Heading ===== */
.c-infographic-tiles__subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 4px;
}

.c-infographic-tiles__title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* ===== Chart Row ===== */
.c-infographic-tiles__chart-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

/* ===== Legend Items ===== */
.c-infographic-tiles__legend-item {
  text-align: center;
  max-width: 100px;
}

.c-infographic-tiles__legend-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 4px;
}

.c-infographic-tiles__legend-label {
  font-weight: bold;
}

.c-infographic-tiles__legend-value {
  font-size: 0.85rem;
  color: #666;
}

/* ===== Donut Chart ===== */
.c-infographic-tiles__chart {
  position: relative;
  width: 180px;
  height: 180px;
}

.c-infographic-tiles__chart-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.c-infographic-tiles__chart-text-value {
  font-size: 1.8rem;
  font-weight: bold;
}

.c-infographic-tiles__chart-text-label {
  font-size: 0.8rem;
  color: #666;
}

/* ===== Tabs ===== */
.c-infographic-tiles__tabs {
  position: relative; /* needed for highlight positioning */
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  align-items: center;
}

.c-infographic-tiles__highlight {
  position: absolute;
  top: 5px; /* matches tab margin */
  bottom: 5px;
  left: 0;
  width: 0;
  background: #000A1E;
  border-radius: 6px;
  transition: all 0.3s ease;
  z-index: 0;
}

.c-infographic-tiles__tab {
  position: relative;
  z-index: 1; /* keep text above highlight */
  font-weight: 600;
  flex: 1;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #737373;
  text-align: center;
  text-wrap: nowrap;
  margin: 5px;
}

.c-infographic-tiles__tab--active {
  color: #fff;
}
