.page-news {
  --cat-data: var(--clr-green);
  --cat-version: var(--clr-orange);
  --cat-observe: #4CC9F0;
  --cat-guide: #FFD166;
  --news-rail-w: 236px;
  padding: 28px 0 72px;
  background:
    radial-gradient(circle at 88% 0%, rgba(57, 255, 20, 0.08), transparent 340px),
    linear-gradient(180deg, var(--clr-navy-2), var(--clr-navy) 420px);
  color: var(--clr-text);
  font-family: var(--font-body);
}

.page-news [id] {
  scroll-margin-top: 24px;
}

.news-breadcrumbs {
  margin-bottom: 24px;
}

.news-breadcrumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.news-breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-breadcrumbs-list li + li::before {
  content: "/";
  color: var(--clr-muted);
}

.news-breadcrumbs a {
  color: var(--clr-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.news-breadcrumbs a:hover {
  color: var(--clr-green);
}

.news-breadcrumbs [aria-current="page"] {
  color: var(--clr-text);
  font-weight: 600;
}

.news-hero {
  position: relative;
  padding: 28px 0 36px;
  overflow: hidden;
}

.news-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 132px;
  height: 132px;
  border-top: 2px solid var(--clr-green);
  border-right: 2px solid var(--clr-green);
  opacity: 0.35;
  pointer-events: none;
}

.news-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-green);
  border: 1px solid var(--clr-green);
  padding: 6px 12px;
}

.news-overline::before {
  content: "●";
  font-size: 10px;
}

.news-h1 {
  font-family: var(--font-title);
  font-size: clamp(58px, 16vw, 128px);
  line-height: 0.86;
  font-weight: 900;
  margin: 20px 0 14px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 rgba(57, 255, 20, 0.06);
}

.news-h1-goal {
  display: block;
  font-size: 0.3em;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--clr-green);
  margin-bottom: 10px;
}

.news-lede {
  font-size: 16px;
  line-height: 1.75;
  color: var(--clr-muted);
  max-width: 600px;
  margin: 0;
}

.news-counter {
  margin-top: 28px;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  border: 1px dashed var(--clr-green);
  background: rgba(57, 255, 20, 0.06);
  padding: 14px 20px;
  position: relative;
  z-index: 1;
}

.news-counter-num {
  font-family: var(--font-mono);
  font-size: 68px;
  line-height: 0.82;
  color: var(--clr-green);
}

.news-counter-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--clr-muted);
  text-transform: uppercase;
}

.news-hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border-top: 2px solid var(--clr-border);
  padding-top: 18px;
}

.news-stat {
  background: var(--clr-navy-3);
  border: 1px solid var(--clr-border);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-stat-num {
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1;
  color: var(--clr-text);
}

.news-stat-label {
  font-size: 12px;
  color: var(--clr-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 34px;
}

.news-filter-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  background: rgba(19, 45, 79, 0.5);
  padding: 9px 16px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.news-filter-link::before {
  content: "#";
  color: var(--clr-green);
  font-weight: 700;
}

.news-filter-link:hover,
.news-filter-link:focus {
  border-color: var(--clr-green);
  color: var(--clr-green);
  background: rgba(57, 255, 20, 0.08);
}

.news-top {
  margin-bottom: 40px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-navy-2);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(57, 255, 20, 0.4);
}

.post-card-top {
  position: relative;
  background: var(--clr-navy-2);
}

.post-card-top .p-card-media {
  order: 1;
}

.post-card-top .p-card-body {
  order: 2;
}

.p-card-media {
  position: relative;
  overflow: hidden;
  background: var(--clr-navy-3);
  flex: 1 1 auto;
}

.p-card-media::before {
  content: "";
  display: block;
  padding-bottom: 66.67%;
}

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

.p-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 26px;
  flex: 1;
}

.p-card-pin {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--clr-navy);
  background: var(--clr-green);
  padding: 4px 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.p-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.p-card-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-green);
}

.p-card-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 3px 8px;
}

.p-card-cat-data {
  color: var(--cat-data);
}

.p-card-cat-version {
  color: var(--cat-version);
}

.p-card-cat-observe {
  color: var(--cat-observe);
}

.p-card-cat-guide {
  color: var(--cat-guide);
}

.p-card-read {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clr-muted);
}

.p-card-title {
  font-family: var(--font-title);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.02em;
}

.p-card-title-sm {
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.01em;
}

.p-card-text {
  font-size: 15px;
  line-height: 1.68;
  color: var(--clr-muted);
  margin: 0;
}

.p-card-facts {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.p-card-facts li {
  background: var(--clr-navy-3);
  border: 1px solid var(--clr-border);
  padding: 14px 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--clr-muted);
}

.p-card-facts strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1;
  color: var(--clr-text);
  margin-bottom: 6px;
}

.p-card-link {
  color: var(--clr-green);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.p-card-link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.p-card-link:hover::after {
  transform: translateX(4px);
}

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

.post-card-wide .p-card-media {
  order: 5;
}

.post-card-wide .p-card-body {
  order: 1;
}

.post-card-mini {
  position: relative;
  background: linear-gradient(150deg, rgba(57, 255, 20, 0.05), transparent 46%), var(--clr-navy-3);
  border-top: 2px solid var(--clr-green);
}

.post-card-mini .p-card-body {
  padding: 18px 18px 20px;
}

.post-card-mini .p-card-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 42px;
  line-height: 1;
  color: var(--clr-green);
  opacity: 0.18;
  pointer-events: none;
}

.post-card-mini .p-card-meta {
  padding-right: 44px;
}

.post-card-mini .p-card-title-sm {
  font-size: 18px;
  line-height: 1.3;
}

.post-card-mini .p-card-text {
  font-size: 14px;
}

.news-archive {
  display: block;
}

.news-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--clr-border);
}

.news-rail-title {
  flex: 0 0 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.news-rail-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--clr-muted);
  border: 1px solid var(--clr-border);
  padding: 7px 12px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.news-rail-link:hover {
  color: var(--clr-green);
  border-color: var(--clr-green);
  background: rgba(57, 255, 20, 0.07);
}

.news-feed {
  min-width: 0;
}

.feed-segment {
  margin-bottom: 52px;
}

.feed-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--clr-border);
}

.feed-index {
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1;
  color: var(--clr-green);
}

.feed-head-copy {
  flex: 1;
}

.feed-title {
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.02em;
}

.feed-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--clr-muted);
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .news-hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .post-grid {
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .news-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .news-hero-copy {
    max-width: 720px;
  }

  .news-counter {
    margin-top: 0;
    flex-shrink: 0;
  }

  .news-archive {
    display: grid;
    grid-template-columns: var(--news-rail-w) 1fr;
    column-gap: 44px;
    align-items: start;
  }

  .news-rail {
    position: sticky;
    top: 24px;
    display: block;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .news-rail-title {
    margin-bottom: 16px;
  }

  .news-rail-link {
    display: block;
    margin-bottom: 8px;
    padding: 8px 12px;
  }

  .post-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
  }

  .post-card-wide {
    grid-column: span 8;
    flex-direction: row;
  }

  .post-card-mini {
    grid-column: span 4;
  }

  .post-card-top {
    flex-direction: row;
    align-items: stretch;
  }

  .post-card-top .p-card-media {
    flex: 0 0 48%;
  }

  .post-card-top .p-card-body {
    flex: 1;
    justify-content: center;
  }

  .post-card-wide .p-card-media {
    order: 2;
    flex: 0 0 45%;
  }

  .post-card-wide .p-card-body {
    order: 1;
    flex: 1;
    justify-content: center;
  }

  .post-card-wide .p-card-media::before {
    display: none;
  }

  .post-card-wide .p-card-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
  }
}
