.chart-rows-section {
  margin-top: 14px;
}

.chart-rows-section-title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.25;
  color: #003f7d;
}

.chart-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
}

.chart-rows-intro {
  margin-top: 14px;
  margin-bottom: 4px;
}

.chart-card--highlight {
  border-color: #9eb8d8;
  box-shadow: 0 2px 12px rgba(0, 63, 125, 0.08);
}

.chart-card--highlight .chart-card-figure {
  background: linear-gradient(180deg, #fff 0%, #f5fbff 100%);
  border-color: #c5d9ef;
}

.chart-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.chart-card {
  border: 1px solid #cfdbea;
  border-radius: 10px;
  background: #ffffff;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

.chart-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.chart-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #003f7d;
}

.chart-card-head h2 a {
  color: inherit;
  text-decoration: none;
}

.chart-card-head h2 a:hover,
.chart-card-head h2 a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.chart-card-link {
  font-size: 0.86rem;
  color: var(--iab-teal-link);
  text-decoration: none;
  white-space: nowrap;
}

.chart-card-link:hover,
.chart-card-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.chart-card-figure {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #f8fbff;
  border: 1px solid #d7e3f3;
  border-radius: 8px;
  padding: 8px;
  box-sizing: border-box;
}

.repository-chart-card .chart-card-figure {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chart-mock-svg {
  width: 100%;
  height: auto;
  min-height: 184px;
  display: block;
}

.home-spotlight-placeholder-text {
  margin: 0;
  padding: 8px 4px 4px;
  color: #355476;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .chart-rows,
  .chart-row {
    min-width: 0;
    max-width: 100%;
  }

  .chart-row {
    grid-template-columns: 1fr;
  }

  .chart-card-figure {
    min-height: 0;
  }

  .chart-card--highlight {
    border-width: 2px;
    border-color: #00a3ad;
    box-shadow: 0 4px 16px rgba(0, 163, 173, 0.22);
  }

  .chart-card--highlight .chart-card-figure {
    background: linear-gradient(180deg, #ffffff 0%, #eef9fa 100%);
  }
}

.chart-skeleton-title,
.chart-skeleton-line,
.chart-skeleton-figure {
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f4fa 0%, #e8eef6 50%, #f0f4fa 100%);
  background-size: 200% 100%;
  animation: chart-skeleton-shimmer 1.2s ease-in-out infinite;
}

.chart-skeleton-title {
  display: block;
  width: min(70%, 18rem);
  height: 1.1rem;
}

.chart-skeleton-line {
  display: block;
  height: 0.85rem;
}

.chart-skeleton-figure {
  border-radius: 8px;
}

@keyframes chart-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
