.news-archive-layout {
  display: grid;
  grid-template-columns: minmax(115px, 155px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: 0;
  padding-bottom: 0;
}

@media (min-width: 641px) {
  html[data-page="news"] .page-hero .eyebrow {
    margin-bottom: calc(var(--space-2) - 5px);
  }
}

.news-timeline-navigation {
  position: sticky;
  top: 7.5rem;
  padding-block: 0.35rem;
}

.news-timeline-navigation-years {
  display: grid;
  gap: 1.35rem;
}

.news-timeline-navigation-year {
  display: grid;
  gap: 0.5rem;
}

.news-timeline-navigation-year > strong {
  padding-left: 1.65rem;
  color: var(--color-primary);
  font-size: var(--size-sm);
  font-weight: 950;
}

.news-timeline-navigation-months {
  position: relative;
  display: grid;
  gap: 0;
}

.news-timeline-navigation-months::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  bottom: 0.8rem;
  left: 0.4rem;
  width: 3px;
  border-radius: 999px;
  background: var(--color-primary);
}

.news-timeline-navigation a {
  position: relative;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 42px;
  padding: 0.35rem 0 0.35rem 1.65rem;
  color: var(--color-muted);
  font-size: var(--size-sm);
  font-weight: 800;
  line-height: 1.25;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.news-timeline-navigation a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.5rem;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  background: var(--color-bg);
  transform: translate(-50%, -50%);
  transition:
    width 180ms ease,
    height 180ms ease,
    background-color 180ms ease;
}

.news-timeline-navigation a:hover,
.news-timeline-navigation a.is-active {
  color: var(--color-primary);
  transform: translateX(3px);
}

.news-timeline-navigation a:hover::before,
.news-timeline-navigation a.is-active::before {
  width: 15px;
  height: 15px;
  background: var(--color-primary);
}

.news-timeline-navigation a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
  outline-offset: 3px;
}

.news-timeline {
  --timeline-axis: 0.65rem;
  position: relative;
  display: grid;
  gap: clamp(2.8rem, 6vw, 5rem);
  padding-top: 0;
}

.news-timeline::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 1rem;
  left: var(--timeline-axis);
  width: 3px;
  border-radius: 999px;
  background: var(--color-primary);
}

.news-month {
  position: relative;
  padding-left: clamp(3rem, 6vw, 5.5rem);
  scroll-margin-top: 7.5rem;
}

.news-month-title {
  position: relative;
  margin: 0 0 var(--space-4);
  color: var(--color-primary);
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
}

.news-month-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1 * clamp(3rem, 6vw, 5.5rem) + var(--timeline-axis) - 0.45rem);
  width: 0.95rem;
  aspect-ratio: 1;
  border: 3px solid var(--color-bg);
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
  transform: translateY(-50%);
}

.news-month-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.news-month-items article {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(0deg, rgba(23, 27, 37, 0.86), rgba(23, 27, 37, 0.18)),
    var(--news-card-image) center / cover no-repeat,
    var(--color-ink);
}

.news-month-items article > a {
  position: relative;
  z-index: 1;
  min-height: 330px;
  display: grid;
  align-content: end;
  padding: var(--space-5);
  color: var(--color-bg);
}

.news-month-items article > a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(188, 44, 36, 0.36), rgba(23, 27, 37, 0));
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: -1;
}

.news-month-items article > a:hover h3 {
  color: var(--color-bg);
}

.news-month-items article > a:hover::before {
  opacity: 1;
}

.news-pdf-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - var(--space-6));
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(244, 244, 244, 0.44);
  border-radius: 999px;
  background: rgba(23, 27, 37, 0.42);
  color: rgba(244, 244, 244, 0.9);
  font-size: var(--size-xs);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.news-month-items time {
  margin-bottom: var(--space-1);
  color: rgba(244, 244, 244, 0.76);
  font-size: var(--size-xs);
  font-weight: 900;
  letter-spacing: 0;
}

.news-month-items h3 {
  font-size: 1.65rem;
}

.news-month-items p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: rgba(244, 244, 244, 0.76);
}

@media (max-width: 900px) {
  .news-archive-layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .news-timeline-navigation {
    position: static;
    padding: 0;
  }

  .news-timeline-navigation-years {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }

  .news-timeline-navigation-year {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .news-timeline-navigation-months {
    display: flex;
    gap: 1rem;
    padding-top: 1.1rem;
  }

  .news-timeline-navigation-months::before {
    top: 0.4rem;
    right: 0.5rem;
    bottom: auto;
    left: 0.5rem;
    width: auto;
    height: 3px;
  }

  .news-timeline-navigation a::before {
    top: -0.7rem;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .news-timeline-navigation-year > strong {
    padding-left: 0;
  }

  .news-timeline-navigation a {
    min-height: 38px;
    padding: 0.3rem 0;
  }

  .news-timeline-navigation a:hover,
  .news-timeline-navigation a.is-active {
    transform: translateY(-2px);
  }

  .news-month-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .news-timeline {
    --timeline-axis: 0.45rem;
  }

  .news-timeline::before {
    width: 2px;
  }

  .news-month {
    padding-left: 2.25rem;
  }

  .news-month-title::before {
    left: calc(-2.25rem + var(--timeline-axis) - 0.375rem);
    width: 0.8rem;
    border-width: 2px;
  }
}

.article-body {
  max-width: 780px;
  padding-top: var(--space-5);
  padding-bottom: 0;
}

.article-hero {
  position: relative;
  min-height: min(72vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--color-ink);
}

.article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 27, 37, 0.24), rgba(23, 27, 37, 0.58)),
    linear-gradient(0deg, rgba(23, 27, 37, 0.86), rgba(23, 27, 37, 0.08) 62%);
}

.article-hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(6rem, 12vw, 9rem) clamp(2.5rem, 7vw, 5rem);
  color: var(--color-bg);
}

.article-hero-content h1 {
  max-width: 860px;
  margin-bottom: var(--space-3);
}

.article-hero-content p {
  max-width: 680px;
  color: rgba(244, 244, 244, 0.78);
  font-size: var(--size-md);
}

.article-hero-content .eyebrow {
  margin-bottom: 4px;
  color: rgba(244, 244, 244, 0.72);
}

.article-body p {
  font-size: var(--size-md);
}

.article-body .button {
  margin-top: var(--space-4);
}

.article-pdf-preview {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--space-5);
}

.article-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  justify-self: center;
}

.article-pdf-actions .button {
  margin-top: 0;
  flex: 0 0 auto;
}

.article-pdf-actions .button-secondary {
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
}

.article-pdf-actions .button-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.article-pdf-frame {
  width: min(100%, 680px);
  height: auto;
  aspect-ratio: 210 / 297;
  justify-self: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

@media (max-width: 720px) {
  .article-pdf-actions {
    justify-content: center;
  }

  .article-pdf-frame {
    width: 100%;
  }
}
