html {
  font-size: 16px;
}

body {
  margin: 0;
}

.ifla-projection-chart {
  margin-top: 1rem;
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.ifla-projection-shell {
  min-height: 11rem;
}

.ifla-projection-loading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ifla-projection-loading__spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #d5d9de;
  border-top-color: #005fb8;
  border-radius: 50%;
  animation: ifla-projection-spin 0.8s linear infinite;
}

.ifla-projection-loading__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.ifla-button-busy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.ifla-button-spinner {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ifla-projection-spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.ifla-button-busy-label,
.ifla-button-elapsed {
  line-height: 1;
}

.ifla-projection-status {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

@keyframes ifla-projection-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ifla-projection-chart__container {
  width: 100%;
}

.ifla-projection-chart__svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.ifla-projection-chart__grid-line {
  stroke: #d5d9de;
  stroke-width: 1;
}

.ifla-projection-chart__grid-line--vertical {
  stroke-dasharray: 2 3;
}

.ifla-projection-chart__axis {
  stroke: #5f6670;
  stroke-width: 1.5;
}

.ifla-projection-chart__axis-label,
.ifla-projection-chart__axis-title,
.ifla-projection-chart__caption,
.ifla-projection-chart__legend {
  font-family: inherit;
  color: #24292d;
}

.ifla-projection-chart__axis-label {
  font-size: 0.78rem;
}

.ifla-projection-chart__axis-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.ifla-projection-chart__line,
.ifla-projection-chart__marker,
.ifla-projection-chart__legend-swatch {
  stroke-width: 2;
  fill: none;
}

.ifla-series-current-p1 {
  stroke: #005fb8;
}

.ifla-series-scenario-p1 {
  stroke: #005fb8;
  stroke-dasharray: 6 4;
}

.ifla-series-current-p2 {
  stroke: #4d5560;
  stroke-dasharray: 2 4;
}

.ifla-series-scenario-p2 {
  stroke: #4d5560;
  stroke-dasharray: 8 3 2 3;
}

.ifla-projection-chart__marker {
  fill: #fff;
}

.ifla-projection-chart__caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.ifla-projection-chart__legend {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.ifla-projection-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.ifla-projection-chart__legend-swatch {
  width: 1.4rem;
  height: 0;
  border-top-style: solid;
  border-top-width: 2px;
  display: inline-block;
}

@media (max-width: 768px) {
  .ifla-projection-chart__axis-label {
    font-size: 0.72rem;
  }

  .ifla-projection-shell {
    min-height: 9rem;
  }

  .ifla-projection-chart__axis-title,
  .ifla-projection-chart__legend-item,
  .ifla-projection-chart__caption {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ifla-projection-loading__spinner {
    animation: none;
  }
}
