.page-news {
  max-width: 1480px;
  margin-inline: auto;
  padding: 28px 20px 96px;
  position: relative;
}

.page-news .breadcrumb {
  margin-bottom: 36px;
}

.page-news .news-hero {
  position: relative;
  margin-bottom: 64px;
}

.page-news .section-kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-news .page-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  transform: skew(-2deg);
  color: var(--text);
  margin: 0 0 16px;
  max-width: 760px;
}

.page-news .page-title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 0.72em;
  margin-right: 14px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: skew(-8deg);
}

.page-news .page-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 32px;
}

.page-news .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
}

.page-news .stat-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px 16px;
  transition: border-color 0.25s ease;
}

.page-news .stat-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.8;
}

.page-news .stat-card:hover {
  border-color: rgba(0, 255, 157, 0.5);
}

.page-news .stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}

.page-news .stat-value .stat-suffix {
  color: var(--primary);
  font-size: 0.62em;
  margin-left: 2px;
}

.page-news .stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.page-news .news-feature {
  margin-bottom: 64px;
}

.page-news .feature-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-bottom: 24px;
}

.page-news .feature-head .section-title {
  margin: 0;
  font-size: 1.5rem;
}

.page-news .feature-head-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.page-news .feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  transition: border-color 0.3s ease;
}

.page-news .feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(0, 255, 157, 0.06), rgba(0, 212, 255, 0.05), transparent 45%);
}

.page-news .feature-card:hover {
  border-color: rgba(0, 255, 157, 0.4);
}

.page-news .feature-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-news .feature-body {
  position: relative;
  padding: 26px 22px 28px;
}

.page-news .feature-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.page-news .feature-title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 14px;
}

.page-news .feature-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.page-news .news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 76px;
}

.page-news .filter-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.page-news .filter-panel {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px 20px;
}

.page-news .filter-heading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 18px;
}

.page-news .filter-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.page-news .filter-label {
  display: inline-flex;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  user-select: none;
}

.page-news .filter-label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-news .news-layout:has(#filter-all:checked) label[for="filter-all"],
.page-news .news-layout:has(#filter-update:checked) label[for="filter-update"],
.page-news .news-layout:has(#filter-feature:checked) label[for="filter-feature"],
.page-news .news-layout:has(#filter-version:checked) label[for="filter-version"],
.page-news .news-layout:has(#filter-analysis:checked) label[for="filter-analysis"] {
  color: #0A0E17;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  font-weight: 600;
}

.page-news .filter-note {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.page-news .filter-note-kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hot);
}

.page-news .filter-note-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text);
  margin: 10px 0;
}

.page-news .filter-note-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-news .filter-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .filter-note-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 20px;
}

.page-news .term-plate {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--hot);
  border-radius: 8px;
  padding: 16px;
}

.page-news .term-plate-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 8px;
}

.page-news .term-plate p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.page-news .term-plate strong {
  color: var(--text);
}

.page-news .article-stream {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-news .article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-news .article-card::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-news .article-card:hover,
.page-news .article-card:focus-within {
  border-color: rgba(0, 255, 157, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 255, 157, 0.08);
}

.page-news .article-card:hover::before,
.page-news .article-card:focus-within::before {
  opacity: 1;
}

.page-news .article-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-news .article-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 20px 18px 18px;
}

.page-news .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.page-news .article-meta-time {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-news .article-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 12px;
}

.page-news .article-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--primary), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 1px);
  background-size: 0% 2px;
  transition: background-size 0.35s ease, color 0.35s ease;
}

.page-news .article-card:hover .article-title a,
.page-news .article-card:focus-within .article-title a {
  color: var(--primary);
  background-size: 100% 2px;
}

.page-news .article-excerpt {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
  max-height: 72px;
  overflow: hidden;
  transition: max-height 0.45s ease;
  margin-bottom: 14px;
}

.page-news .article-card:hover .article-excerpt,
.page-news .article-card:focus-within .article-excerpt {
  max-height: 220px;
}

.page-news .article-read {
  margin-top: auto;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news .article-card:hover .article-read,
.page-news .article-card:focus-within .article-read {
  color: var(--accent);
}

.page-news #filter-update:checked ~ .article-stream .article-card:not([data-category="update"]),
.page-news #filter-feature:checked ~ .article-stream .article-card:not([data-category="feature"]),
.page-news #filter-version:checked ~ .article-stream .article-card:not([data-category="version"]),
.page-news #filter-analysis:checked ~ .article-stream .article-card:not([data-category="analysis"]) {
  display: none;
}

.page-news .changelog-section {
  margin-bottom: 40px;
}

.page-news .changelog-head {
  margin-bottom: 32px;
}

.page-news .changelog-head .section-title {
  margin: 0 0 12px;
}

.page-news .section-desc {
  color: var(--muted);
  max-width: 600px;
}

.page-news .changelog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-news .log-rail {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 2px solid rgba(0, 255, 157, 0.35);
  display: flex;
  flex-direction: column;
}

.page-news .log-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 28px;
}

.page-news .log-item:last-child {
  margin-bottom: 0;
}

.page-news .log-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-space);
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.5);
}

.page-news .log-marker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(0, 255, 157, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.page-news .log-title {
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
}

.page-news .log-summary {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

.page-news .log-detail {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease;
}

.page-news .log-item:hover .log-detail,
.page-news .log-item:focus-within .log-detail {
  max-height: 140px;
  opacity: 1;
  margin-top: 8px;
}

.page-news .log-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 26px 22px;
}

.page-news .log-visual img {
  align-self: center;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.page-news .log-cta {
  width: 100%;
}

.page-news .log-cta h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
}

.page-news .log-cta p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-news .log-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .page-news {
    padding: 36px 40px 110px;
  }

  .page-news .news-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: end;
  }

  .page-news .page-subtitle {
    margin-bottom: 0;
  }

  .page-news .hero-stats {
    max-width: none;
    justify-self: stretch;
  }

  .page-news .feature-card {
    grid-template-columns: 1.05fr 1fr;
    min-height: 380px;
  }

  .page-news .feature-media img {
    height: 100%;
    aspect-ratio: auto;
  }

  .page-news .feature-body {
    padding: 34px 32px 32px;
  }

  .page-news .news-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
  }

  .page-news .filter-panel {
    grid-column: 1;
    position: sticky;
    top: 24px;
  }

  .page-news .article-stream {
    grid-column: 2;
    gap: 20px;
  }

  .page-news .article-card {
    flex-basis: calc(50% - 10px);
  }

  .page-news .article-card--wide {
    flex-basis: 100%;
  }

  .page-news .changelog-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}
