.esg-section-header,
.esg-ratings,
.esg-awards {
  margin-bottom: 2.125rem;
}

.esg-section-header__inner,
.esg-ratings__inner,
.esg-awards__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.esg-section-header__title {
  margin: 0.5rem 0 0.25rem;
  color: var(--sjm-color-text);
  font-family: var(--sjm-font-sans);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  scroll-margin-top: 7.5rem;
}

.esg-section-header__content {
  color: #333;
  font-size: 18px;
  line-height: 1.8;
  text-wrap: pretty;
}

.esg-section-header__content p {
  margin: 0 0 18px;
}

.esg-section-header__content p:last-child {
  margin-bottom: 0;
}

.esg-section-header__content a {
  border-bottom: 1px solid currentColor;
  color: var(--sjm-color-accent);
  text-decoration: none;
}

.esg-section-header__awards-label {
  margin: 0 0 18px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.esg-ratings .view-content,
.esg-ratings .views-element-container > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.875rem, 1fr));
  gap: 0.875rem;
}

.esg-ratings .views-row {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 1.375rem 1.25rem;
  border: 1px solid #d8d8d5;
  background: #fff;
}

.esg-ratings .views-field-field-weight,
.esg-awards .views-field-field-weight {
  display: none;
}

.esg-ratings .views-field-field-list-image {
  order: 1;
}

.esg-ratings .views-field-title {
  order: 2;
}

.esg-ratings .views-row > .views-field:has(img) {
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 7.5rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f6f6f4;
}

.esg-ratings .views-row > .views-field:has(img),
.esg-ratings .views-row > .views-field:has(img) .field-content,
.esg-ratings .views-row > .views-field:has(img) .field-content > div,
.esg-ratings .views-row > .views-field:has(img) .field-content > div > div,
.esg-ratings .views-row > .views-field:has(img) .field-content > div > div > div {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.site-content .esg-ratings .views-row > .views-field:has(img) img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.esg-ratings .views-row > .views-field:not(:has(img)) {
  color: var(--sjm-color-text);
  font-family: var(--sjm-font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-wrap: pretty;
}

.esg-ratings .views-row > .views-field:not(:has(img)) a {
  color: inherit;
  text-decoration: none;
}

.esg-awards .view-content,
.esg-awards .views-element-container > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 0.875rem;
}

.esg-awards .views-row {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.625rem 1.5rem 1.75rem;
  border: 1px solid #d8d8d5;
  background: #fff;
}

.esg-awards .views-field-field-publish-date,
.esg-awards .views-field-field-year,
.esg-awards .views-field-field-award-year {
  order: 1;
}

.esg-awards .views-field-title {
  order: 2;
}

.esg-awards .views-field-field-subtitle {
  order: 3;
}

.esg-awards .views-field-field-publish-date,
.esg-awards .views-field-field-year,
.esg-awards .views-field-field-award-year {
  color: var(--sjm-color-gold);
  font-family: var(--sjm-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.esg-awards .views-field-title {
  color: var(--sjm-color-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}

.esg-awards .views-field-title a {
  color: inherit;
  text-decoration: none;
}

.esg-awards .views-row > .views-field:not(.views-field-title):not(.views-field-field-publish-date):not(.views-field-field-year):not(.views-field-field-award-year) {
  color: #666;
  font-size: 15.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

@media (max-width: 47.9375rem) {
  .esg-section-header__inner,
  .esg-ratings__inner,
  .esg-awards__inner {
    padding-inline: var(--sjm-mobile-gutter);
  }

  .site-content .esg-section-header__title {
    font-size: 38px !important;
    line-height: 1.26 !important;
  }

  .site-content .esg-section-header__content,
  .site-content .esg-section-header__content p,
  .site-content .esg-section-header__content li,
  .site-content .esg-section-header__awards-label {
    font-size: 24px !important;
    line-height: 1.62 !important;
  }

  .esg-awards .view-content,
  .esg-awards .views-element-container > div {
    grid-template-columns: 1fr;
  }

  .site-content .esg-ratings .views-row > .views-field:not(:has(img)),
  .site-content .esg-awards .views-field-field-publish-date,
  .site-content .esg-awards .views-field-field-year,
  .site-content .esg-awards .views-field-field-award-year,
  .site-content .esg-awards .views-field-title,
  .site-content .esg-awards .views-row > .views-field:not(.views-field-title):not(.views-field-field-publish-date):not(.views-field-field-year):not(.views-field-field-award-year) {
    font-size: 20px !important;
  }
}
