.news-hero {
  margin-bottom: 2rem;
}

.news-title {
  margin: 0.35rem 0 0;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.news-lead {
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 52rem;
  margin-top: 0.65rem;
}

.news-lead > :first-child {
  margin-top: 0;
}

.news-lead > :last-child {
  margin-bottom: 0;
}

.news-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.16);
}

.news-category-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-strong);
  text-decoration: none;
  background: #fff;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.news-category-link:hover,
.news-category-link:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.news-category-link.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.news-month {
  margin-bottom: 2rem;
}

.news-month-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--ink-rgb), 0.16);
}

.news-month-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  text-transform: capitalize;
}

.news-month-count {
  margin: 0;
  color: rgba(var(--text-rgb), 0.77);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  background: #fffdf9;
  box-shadow: none;
  transition: border-color 140ms ease;
}

.news-card:hover {
  border-color: rgba(var(--ink-rgb), 0.28);
}

.news-card.has-image {
  padding: 0;
  overflow: hidden;
}

.news-card-media {
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.14);
  background: rgba(var(--ink-rgb), 0.04);
}

.news-card-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 16rem;
  object-fit: cover;
}

.news-card.has-image .news-card-copy {
  padding: 1.2rem;
}

.news-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.news-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.news-topline .pill {
  background: rgba(var(--ink-rgb), 0.08);
}

.news-card-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.news-date {
  font-size: 0.88rem;
  color: rgba(var(--text-rgb), 0.76);
}

.news-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(var(--text-rgb), 0.91);
}

.news-card-text > :first-child {
  margin-top: 0;
}

.news-card-text > :last-child {
  margin-bottom: 0;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.news-card-link:hover {
  text-decoration: underline;
}

.news-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.news-lightbox-trigger img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 16rem;
  object-fit: cover;
}

.news-lightbox-trigger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

body.news-lightbox-open {
  overflow: hidden;
}

.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.news-lightbox[hidden] {
  display: none;
}

.news-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 24, 0.93);
}

.news-lightbox-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  width: min(100%, 88rem);
}

.news-lightbox-close,
.news-lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--paper);
  background: rgba(12, 20, 32, 0.78);
}

.news-lightbox-close {
  justify-self: end;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.news-lightbox-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.news-lightbox-nav {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-pill);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.news-lightbox-nav[disabled] {
  opacity: 0.45;
  cursor: default;
}

.news-lightbox-figure {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.news-lightbox-image {
  display: block;
  width: 100%;
  max-height: min(74vh, 60rem);
  border-radius: var(--radius-xl);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

.news-lightbox-caption {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(12, 20, 32, 0.5);
  color: var(--paper);
}

.news-lightbox-caption[hidden] {
  display: none;
}

.news-lightbox-caption-title,
.news-lightbox-caption-description,
.news-lightbox-counter {
  margin: 0;
}

.news-lightbox-caption-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.news-lightbox-caption-description,
.news-lightbox-counter {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.news-lightbox-counter {
  justify-self: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(12, 20, 32, 0.42);
}

.news-lightbox-close:focus-visible,
.news-lightbox-nav:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-month-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-lightbox-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .news-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .news-lightbox-nav-prev {
    left: 0.4rem;
  }

  .news-lightbox-nav-next {
    right: 0.4rem;
  }

  .news-lightbox-image {
    max-height: 68vh;
  }
}

@media (max-width: 560px) {
  .news-lightbox {
    padding: 0.75rem;
  }

  .news-lightbox-shell {
    gap: 0.7rem;
  }

  .news-lightbox-close {
    width: 2.6rem;
    height: 2.6rem;
  }

  .news-lightbox-nav {
    width: 3rem;
    height: 3rem;
    font-size: 1.7rem;
  }

  .news-lightbox-image {
    border-radius: var(--radius-md);
    max-height: 62vh;
  }

  .news-lightbox-caption {
    font-size: 0.95rem;
  }
}