/* News listing page. All selectors are scoped to the redesigned page. */

.news-redesign {
  --news-ink: #172033;
  --news-muted: #66758b;
  --news-green: #55cb99;
  --news-green-dark: #007b60;
  --news-mint: #ecfff8;
  width: 100%;
  overflow: hidden;
  background: #fff;
  color: var(--news-ink);
}

.news-hero {
  min-height: 803px;
  position: relative;
  overflow: hidden;
  padding: 82px 24px 190px;
  background: #fff;
}

.news-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--news-mint);
  clip-path: polygon(0 0, 100% 0, 100% 51%, 0 82%);
  pointer-events: none;
}

.news-hero-inner {
  width: min(1080px, 100%);
  position: relative;
  z-index: 3;
  margin: 0 auto;
  text-align: center;
}

.news-hero h1 {
  margin: 0;
  color: #1b614d;
  font-size: 58px;
  line-height: 68px;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

.news-hero p {
  max-width: 620px;
  margin: 18px auto 0;
  color: #373737;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
}

.news-filter {
  width: min(380px, 100%);
  margin: 42px auto 0;
}

.news-filter-control {
  position: relative;
  display: block;
}

.news-filter select {
  width: 100%;
  min-height: 44px;
  display: block;
  padding: 0 44px 0 18px;
  border: 1px solid #aaa;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .28);
  color: #40514d;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.news-filter-control > svg {
  position: absolute;
  top: 50%;
  right: 20px;
  color: #344d47;
  pointer-events: none;
  transform: translateY(-50%);
}

.news-filter select:focus-visible,
.news-filter button:focus-visible,
.news-load-more:focus-visible {
  outline: 3px solid #008d70 !important;
  outline-offset: 3px !important;
}

.news-filter noscript button {
  min-height: 44px;
  margin-top: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--news-green);
  color: #062f26;
  font-weight: 700;
}

.news-hero-band {
  width: 120%;
  height: 71px;
  position: absolute;
  left: -10%;
  z-index: 1;
  transform-origin: center;
  transform: rotate(-10deg);
  pointer-events: none;
}

.news-hero-band-back {
  top: 84.3%;
  background: #d0ffed;
}

.news-hero-band-middle {
  top: 75.5%;
  background: #b2ffe1;
}

.news-hero-band-front {
  top: 66.6%;
  background: #6af3b9;
}

.news-results {
  position: relative;
  z-index: 4;
  margin-top: -358px;
  padding: 0 24px 108px;
}

.news-results-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 32px;
}

.news-empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
  border: 1px solid #dfe8e4;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.news-empty-state h2 {
  margin: 0;
  color: var(--news-ink);
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
}

.news-empty-state p {
  margin: 10px 0 0;
  color: var(--news-muted);
  font-size: 16px;
  line-height: 24px;
}

.news-load-more-wrap {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-top: 38px;
}

.news-load-more {
  min-width: 174px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid var(--news-green) !important;
  border-radius: 8px;
  background: var(--news-green);
  color: #063e31 !important;
  font-size: 14px;
  line-height: 20px;
  font-weight: 750;
  text-decoration: none !important;
}

.news-load-more.is-loading {
  cursor: wait;
  opacity: .72;
}

.news-load-more.has-error {
  border-color: #b42318 !important;
  background: #fff;
  color: #b42318 !important;
}

.news-load-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--news-muted);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

@media (max-width: 1199px) {
  .news-hero {
    min-height: 500px;
    padding-top: 72px;
  }

  .news-hero h1 {
    font-size: 50px;
    line-height: 60px;
  }

  .news-results {
    margin-top: -112px;
  }

  .news-hero-band {
    height: 60px;
  }

  .news-grid {
    gap: 30px 24px;
  }
}

@media (max-width: 991px) {
  .news-hero {
    min-height: 474px;
    padding: 64px 24px 168px;
  }

  .news-hero h1 {
    font-size: 46px;
    line-height: 56px;
    white-space: normal;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-hero-band {
    height: 52px;
  }
}

@media (max-width: 767px) {
  .news-hero {
    min-height: 430px;
    padding: 48px 18px 146px;
  }

  .news-hero h1 {
    font-size: 38px;
    line-height: 46px;
  }

  .news-hero p {
    margin-top: 14px;
    font-size: 17px;
    line-height: 25px;
  }

  .news-filter {
    margin-top: 26px;
  }

  .news-hero-band {
    height: 42px;
  }

  .news-results {
    margin-top: -76px;
    padding: 0 18px 82px;
  }

  .news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 359px) {
  .news-hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .news-hero h1 {
    font-size: 34px;
    line-height: 41px;
  }

  .news-results {
    padding-right: 14px;
    padding-left: 14px;
  }
}
