.page-news {
  --news-gap: 24px;
  --news-pad: 20px;
  background: var(--bg-dark);
  color: var(--text-primary);
}

.page-news img {
  max-width: 100%;
  height: auto;
}

.page-news .container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 16px;
}

.page-news h1,
.page-news h2,
.page-news h3 {
  overflow-wrap: break-word;
}

.page-news-breadcrumb {
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.page-news-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-color);
}

.page-news-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.page-news-breadcrumb a:hover {
  color: var(--text-primary);
}

.page-news-breadcrumb a[aria-current] {
  color: var(--text-primary);
}

.page-news-heading {
  position: relative;
  padding-top: 56px;
  padding-bottom: 44px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-color);
}

.page-news-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 128px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-red));
}

.page-news-heading .eyebrow {
  color: var(--gold);
  font-family: var(--font-mono);
  letter-spacing: .12em;
}

.page-news-heading h1 {
  font-family: var(--font-headline);
  font-size: var(--h1-size);
  line-height: 1.1;
  margin: .2em 0 .35em;
  letter-spacing: .04em;
}

.page-news-intro {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  border-left: 4px solid var(--primary-red);
  padding-left: 16px;
}

.page-news-speedline {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-red) 60%, transparent 100%);
  margin: 0;
}

.page-news-section {
  padding-top: 36px;
  padding-bottom: 20px;
}

.page-news .section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-color);
}

.page-news .section-title {
  font-family: var(--font-headline);
  font-size: var(--h2-size);
  line-height: 1.2;
  margin: 0;
  padding-left: 14px;
  position: relative;
}

.page-news .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 5px;
  height: .9em;
  background: var(--primary-red);
}

.filter-help {
  margin: 0;
  font-size: 14px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-tag {
  position: relative;
  padding: 10px 16px;
  border: 1px solid var(--line-color);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  transition: transform .2s, border-color .2s, color .2s;
}

.filter-tag::before {
  content: "/ ";
  color: var(--primary-green);
}

.filter-tag:hover,
.filter-tag:focus-visible {
  color: var(--text-primary);
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

.filter-tag.tag-feature {
  border-left: 4px solid var(--primary-red);
}

.filter-tag.tag-update {
  border-left: 4px solid var(--primary-green);
}

.filter-tag.tag-report {
  border-left: 4px solid var(--gold);
}

.filter-tag.tag-announce {
  border-left: 4px solid var(--highlight);
}

.latest-articles {
  background: rgba(255, 255, 255, .015);
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
}

.journal-stack {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}

.article-card {
  position: relative;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding: var(--news-pad);
  background: var(--bg-surface);
  border: 1px solid var(--line-color);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.article-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  border-top: 22px solid var(--primary-green);
  border-right: 22px solid transparent;
}

.article-card.is-feature::before {
  border-top-color: var(--primary-red);
}

.article-card.is-update::before {
  border-top-color: var(--primary-green);
}

.article-card.is-report::before {
  border-top-color: var(--gold);
}

.article-card.is-announce::before {
  border-top-color: var(--highlight);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-green);
  box-shadow: 12px 12px 0 0 rgba(0, 166, 81, .12);
}

.article-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.article-cat {
  padding: 3px 8px;
  border: 1px solid;
  font-weight: 700;
}

.cat-feature {
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.cat-update {
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.cat-report {
  color: var(--gold);
  border-color: var(--gold);
}

.cat-announce {
  color: var(--highlight);
  border-color: var(--highlight);
}

.article-round {
  color: var(--text-secondary);
}

.article-title {
  font-family: var(--font-headline);
  font-size: var(--h3-size);
  line-height: 1.35;
  margin: 16px 0 12px;
  letter-spacing: .02em;
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.article-footer {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}

.article-media {
  position: relative;
  overflow: hidden;
}

.article-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.article-media::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--gold), var(--primary-green));
}

.popular-grid {
  display: grid;
  gap: var(--news-gap);
  grid-template-columns: 1fr;
}

.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-color);
}

.popular-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-color);
  transition: background .2s, padding-left .2s;
}

.popular-list li:hover {
  background: rgba(255, 255, 255, .03);
  padding-left: 12px;
}

.popular-rank {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-red);
}

.popular-list h3 {
  font-family: var(--font-headline);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 6px;
}

.popular-list .text-muted {
  font-size: 13px;
}

.popular-note {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line-color);
  background: var(--bg-surface);
}

.popular-note::before {
  content: "◤";
  position: absolute;
  top: 10px;
  right: 14px;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

.popular-note .eyebrow {
  color: var(--gold);
  font-family: var(--font-mono);
}

.popular-note h3 {
  font-family: var(--font-headline);
  font-size: 18px;
  margin: 0;
}

.popular-note p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.page-news .popular-note a:not(.btn) {
  color: var(--gold);
  text-decoration-color: var(--primary-red);
  text-underline-offset: 4px;
}

.page-news .popular-note a:not(.btn):hover {
  color: var(--text-primary);
}

.subscribe-entry {
  margin: 40px 0 8px;
  background: linear-gradient(135deg, var(--primary-green), #008c40 45%, var(--primary-red) 130%);
  color: var(--text-primary);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.subscribe-inner {
  display: grid;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.subscribe-copy .eyebrow {
  color: var(--bg-dark);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .12em;
}

.subscribe-copy h2 {
  font-family: var(--font-headline);
  font-size: var(--h2-size);
  margin: 0 0 12px;
  letter-spacing: .02em;
}

.subscribe-copy p:last-child {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, .92);
  line-height: 1.8;
}

.subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.subscribe-actions .btn {
  min-width: 160px;
  justify-content: center;
}

.subscribe-actions .btn--primary {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--text-primary);
}

.subscribe-actions .btn--primary:hover {
  background: #b30510;
  border-color: #b30510;
}

.subscribe-actions .btn--ghost {
  background: transparent;
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.subscribe-actions .btn--ghost:hover {
  background: var(--text-primary);
  color: var(--primary-green);
}

@media (min-width: 820px) {
  .page-news-breadcrumb {
    padding-top: 20px;
  }

  .page-news-heading {
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .page-news-section {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .page-news .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
  }

  .filter-help {
    text-align: right;
  }

  .journal-stack {
    gap: 32px;
  }

  .article-card {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    column-gap: 32px;
    padding: 24px;
  }

  .article-card > * {
    grid-row: 1;
  }

  .article-card .article-text {
    grid-column: 1 / 8;
  }

  .article-card .article-media {
    grid-column: 8 / 13;
  }

  .article-card--narrow .article-text {
    grid-column: 1 / 7;
  }

  .article-card--narrow .article-media {
    grid-column: 7 / 13;
  }

  .article-card--right .article-text {
    grid-column: 7 / 13;
  }

  .article-card--right .article-media {
    grid-column: 1 / 7;
  }

  .article-excerpt {
    font-size: 16px;
  }

  .popular-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }

  .subscribe-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
  }

  .subscribe-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .filter-tag {
    flex: 1 1 auto;
  }

  .article-card {
    padding: 16px;
  }

  .popular-rank {
    font-size: 26px;
  }

  .subscribe-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news * {
    transition: none !important;
    animation: none !important;
  }
}
