@keyframes oversized-number {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.section.chart-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    margin: 0 auto;
}

.chart-section > * {
  flex: 1 1 100%;
}

@media (min-width: 1200px) {
  .up-2 > div:not(.section-metadata) {
    width: calc(50% - 8px);
    max-width: calc(50% - 8px);
    flex: 1 1 auto;
  }

  .up-3 > div:not(.section-metadata) {
    width: calc(33% - 8px);
    max-width: calc(33% - 8px);
    flex: 1 1 auto;
  }
}

.chart {
  --white: rgb(255 255 255);
  --black: rgb(0 0 0);
  --chart-padding: 32px 32px 40px 32px;
  --spectrum-grey-900: rgb(44 44 44 / 100%);
}

.chart .title  * {
  color: var(--spectrum-grey-900);
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 16px;
  font-weight: 700;
}

.chart .subtitle *,
.chart .subheading * {
  color: var(--spectrum-grey-900);
  font-weight: normal;
  font-size: 18px;
  line-height: 1.5;
  display: block;
}

.chart .footnote * {
  margin-top: 24px;
  text-align: right;
  font-size: 14px;
  color: #767676;
  display: block;
}

@media only screen and (min-width: 75rem) {
  .chart [data-chart-type="area"] > div {
    height: 900px;
  }
}

.border {
  border-radius: 8px;
  background-color: var(--white);
  box-shadow: 0 3px 10px 0 rgb(0 0 0 / 10%);
  padding: var(--chart-padding);
  box-sizing: border-box;
}

.chart.small.border,
.chart.medium.border {
  padding: var(--chart-padding);
}

.chart .tooltip-icon {
  height: 16px;
  width: 16px;
  background-color: var(--black);
  position: absolute;
  bottom: -8px;
  right: 20px;
  transform: rotate(45deg);
  z-index: 0;
}

.chart .chart-container,
.chart .chart-wrapper {
  width: 100%;
}

.chart .chart-container {
  margin-top: 40px;
}

.chart.oversized-number .chart-wrapper {
  max-width: 430px;
  margin: auto;
  animation-name: oversizedNumber;
  animation-duration: 1s;
}

.chart.oversized-number svg {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
}

.chart.oversized-number .number,
.chart.oversized-number .subtitle {
  line-height: 1;
  fill: var(--white);
  text-anchor: middle;
}

.chart.oversized-number .number {
  font-weight: 800;
}

.chart.oversized-number .subtitle {
  font-size: 28px;
  font-weight: 700;
}

.chart[data-responsive-size=small] .chart-container,
.chart[data-responsive-size=small] .chart-wrapper {
  height: 290px;
}

.chart[data-responsive-size=medium] .chart-container,
.chart[data-responsive-size=medium] .chart-wrapper {
  height: 295px;
}

.chart[data-responsive-size=large] .chart-container,
.chart[data-responsive-size=large] .chart-wrapper {
  height: 350px;
}

.chart.list .chart-container,
.chart.list .chart-wrapper,
.chart.oversized-number .chart-container,
.chart.oversized-number .chart-wrapper {
  height: auto;
}

.chart.area[data-responsive-size=small] .chart-container,
.chart.area[data-responsive-size=small] .chart-wrapper {
  height: 345px;
}

.chart.area[data-responsive-size=medium] .chart-container,
.chart.area[data-responsive-size=medium] .chart-wrapper {
  height: 310px;
}

.chart.area[data-responsive-size=large] .chart-container,
.chart.area[data-responsive-size=large] .chart-wrapper {
  height: 512px;
}

.chart.donut[data-responsive-size=small] .chart-container,
.chart.donut[data-responsive-size=small] .chart-wrapper,
.chart.pie[data-responsive-size=small] .chart-container,
.chart.pie[data-responsive-size=small] .chart-wrapper {
  height: 345px;
}

.chart.donut[data-responsive-size=medium] .chart-container,
.chart.donut[data-responsive-size=medium] .chart-wrapper,
.chart.pie[data-responsive-size=medium] .chart-container,
.chart.pie[data-responsive-size=medium] .chart-wrapper {
  height: 450px;
}

.chart.donut[data-responsive-size=large] .chart-container,
.chart.donut[data-responsive-size=large] .chart-wrapper,
.chart.pie[data-responsive-size=large] .chart-container,
.chart.pie[data-responsive-size=large] .chart-wrapper {
  height: 512px;
}

