/* Extend each story link over its card without adding duplicate links. */
#stories .news-card {
  position: relative;
}

#stories .news-card-body > a.rise-link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

#stories .news-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#stories .news-card:focus-within {
  outline: 2px solid var(--rise-green);
  outline-offset: 3px;
}

/* Compact News landing and archive controls for smaller screens. */
.news-mobile-controls,
.news-mobile-title {
  display: none;
}

@media (max-width: 479.98px), (max-width: 767.98px) and (orientation: portrait), (max-width: 767.98px) and (min-height: 520.01px) {
  .rise-site.news-index .rise-section-hero-news {
    --hero-photo-height: clamp(104px, 28vw, 154px);
    --hero-copy-top: calc(var(--hero-photo-height) + 15px);
    --hero-focus: 50% 42%;
    --hero-gradient: linear-gradient(0deg, #0c342b, rgba(12, 52, 43, .24) 35%, transparent 70%);
  }

  .rise-site.news-index .rise-section-hero-news > .rise-wrap {
    padding-bottom: 22px;
  }

  .news-index .rise-section-hero-news .rise-page-title {
    margin-bottom: 7px;
    font-size: clamp(36px, 9vw, 46px);
  }

  .news-index .rise-section-hero-news .rise-page-lede {
    font-size: 15px;
    line-height: 1.45;
  }
}

@media (max-width: 991.98px), (min-width: 992px) and (max-width: 1399.98px) and (max-height: 900px) {
  .rise-site.news-index main > .rise-section-hero + #stories {
    padding-top: 20px;
  }

  .news-index #stories.news-mobile-controls-ready > .rise-wrap > :is(.rise-eyebrow, .rise-section-title, .rise-intro) {
    display: none;
  }

  #stories.news-mobile-controls-ready > .rise-wrap > :is(.rise-filter-links, #news-topic-filter) {
    display: none;
  }

  #stories.news-mobile-controls-ready:not(.news-topic-active) #news-topic-status {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  #stories.news-topic-active #news-topic-status {
    margin: 2px 0 0;
    font-size: 13px;
  }

  #stories.news-mobile-controls-ready .news-mobile-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
  }

  .news-mobile-controls > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    color: #315e50;
    font-size: 13px;
    font-weight: 650;
  }

  .news-mobile-controls select {
    width: 100%;
    min-height: 44px;
    padding: 5px 8px;
    border: 1px solid #bdd0c3;
    border-radius: 4px;
    background: #f2f6f1;
    color: #16392f;
    font-size: 16px;
  }

  .news-mobile-controls select:focus-visible {
    outline: 2px solid #315e50;
    outline-offset: 2px;
  }

  .news-index #stories .news-year {
    padding-top: 12px;
  }

  .news-index #stories .year-heading {
    margin-bottom: 12px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px), (min-width: 992px) and (max-width: 1399.98px) and (max-height: 900px) {
  #stories.news-mobile-controls-ready .news-mobile-controls {
    max-width: 34rem;
  }
}

@media (max-width: 767.98px), (min-width: 480px) and (max-width: 991.98px) and (max-height: 520px) and (orientation: landscape) {
  .news-index .rise-section-hero-news .rise-eyebrow,
  .news-desktop-title {
    display: none;
  }

  .news-mobile-title {
    display: inline;
  }

  .news-index #stories {
    background: #fbfcf9;
  }

  .news-index #stories .year-heading {
    color: #16392f;
    font-size: 26px;
    font-weight: 650;
  }

  .news-index #stories .news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 0;
  }

  .news-index #stories .news-card-image {
    height: auto;
    aspect-ratio: 2.1 / 1;
  }

  .news-index #stories .news-card-body {
    padding: 16px 18px;
  }

  .news-index #stories .news-card-body .rise-eyebrow {
    margin-bottom: 5px;
    line-height: 1.5;
  }
}

@media (min-width: 480px) and (max-width: 991.98px) and (max-height: 520px) and (orientation: landscape) {
  .rise-site.news-index main > .rise-section-hero + #stories {
    padding-top: 16px;
  }

  #stories.news-mobile-controls-ready .news-mobile-controls {
    max-width: 34rem;
  }
}

@media (min-width: 560px) and (max-width: 991.98px) and (max-height: 520px) and (orientation: landscape) {
  .news-index #stories .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 560px) and (max-width: 991.98px) and (max-height: 320px) and (orientation: landscape) {
  .news-mobile-controls > div {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 7px;
  }
}
