.el-nino-article {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.el-nino-article .article-title {
  max-width: 1000px;
  line-height: 1.5;
  letter-spacing: 0;
  text-wrap: pretty;
}

.el-nino-article .article-lead {
  margin-top: 18px;
}

.el-nino-article .article-body {
  font-size: 17px;
  line-height: 2;
  overflow-wrap: break-word;
}

.el-nino-article .article-body > p {
  margin-bottom: 26px;
}

.el-nino-article [id] {
  scroll-margin-top: 120px;
}

.el-nino-article .climate-citation {
  margin-left: 4px;
  font-size: 11px;
  line-height: 0;
  white-space: nowrap;
}

.el-nino-article .climate-citation a,
.el-nino-article .climate-figure a,
.el-nino-article .climate-sources a {
  color: #126b99;
  text-underline-offset: 3px;
}

.el-nino-article .climate-figure {
  margin: 30px 0 40px;
  background: #fff;
  border: 1px solid #e1e8ed;
}

.el-nino-article .climate-figure__link {
  display: block;
  padding: 12px;
  cursor: zoom-in;
}

.el-nino-article .climate-figure img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Fit the two NOAA charts to their content bounds, retaining their original files. */
.el-nino-article #figure-pacific-sea-temperature {
  --chart-width: 1564;
  --chart-height: 1025;
  --chart-left: 112;
  --chart-top: 24;
}

.el-nino-article #figure-pacific-subsurface-temperature {
  --chart-width: 1557;
  --chart-height: 970;
  --chart-left: 111;
  --chart-top: 32;
}

.el-nino-article :is(#figure-pacific-sea-temperature, #figure-pacific-subsurface-temperature) .climate-figure__link {
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: var(--chart-width) / var(--chart-height);
}

.el-nino-article :is(#figure-pacific-sea-temperature, #figure-pacific-subsurface-temperature) img {
  position: absolute;
  width: calc(100% * 2295 / var(--chart-width));
  max-width: none;
  left: calc(-100% * var(--chart-left) / var(--chart-width));
  top: calc(-100% * var(--chart-top) / var(--chart-height));
}

.el-nino-article .climate-figure figcaption {
  padding: 14px 18px;
  background: #f5f8fa;
  border-top: 1px solid #e1e8ed;
  color: #465563;
  font-size: 13px;
  line-height: 1.8;
}

.el-nino-article .climate-figure__number {
  margin-right: 10px;
  color: #126b99;
  font-weight: 600;
}

.el-nino-article .climate-figure__source {
  display: block;
  margin-top: 5px;
}

.el-nino-article .climate-sources {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e1e8ed;
}

.el-nino-article .climate-sources h2 {
  font-size: 20px;
  font-weight: 500;
}

.el-nino-article .climate-sources > p {
  color: #667583;
  font-size: 13px;
  line-height: 1.8;
}

.el-nino-article .climate-back {
  display: inline-block;
  padding: 16px 0;
  margin-top: 18px;
  color: #126b99;
  text-underline-offset: 5px;
}

.el-nino-article a:focus-visible {
  outline: 2px solid #126b99;
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .el-nino-article .article-body {
    font-size: 16px;
    line-height: 1.95;
  }

  .el-nino-article .climate-figure__link {
    padding: 5px;
  }

  .el-nino-article .climate-figure figcaption {
    padding: 12px;
    font-size: 12px;
  }
}
