.page-news {
  --news-deep-lighter: #16304d;
  --news-dot: rgba(30, 58, 95, 0.05);
  --news-white-soft: rgba(255, 248, 240, 0.08);
  --news-white-line: rgba(255, 248, 240, 0.12);
  --news-white-hover: rgba(255, 248, 240, 0.13);
  --news-batch-accent: var(--seaweed);
  --news-card-radius: 28px;
  background-image: radial-gradient(circle at 1px 1px, var(--news-dot) 1px, transparent 0);
  background-size: 26px 26px;
}

.page-news .news-hero {
  position: relative;
  overflow: hidden;
  margin: 12px auto 0;
  max-width: 1200px;
  padding: 60px 20px 36px;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(145deg, var(--tint-coral) 0%, var(--tint-blush) 100%);
}

.page-news .news-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-news .news-hero-wave {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-news .news-hero .breadcrumb,
.page-news .news-hero-inner {
  position: relative;
  z-index: 2;
}

.page-news .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 248, 240, 0.7);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

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

.page-news .news-hero-copy h1 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  color: var(--deep);
}

.page-news .news-hero-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
}

.page-news .news-hero-meta {
  margin-top: 24px;
}

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

.page-news .hero-stat {
  background: var(--surface);
  border-radius: 20px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.1);
}

.page-news .hero-stat-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--deep);
}

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

.page-news .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-news .batch-updates {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 24px;
}

.page-news .batch-group-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-news .batch-group {
  position: relative;
  background: var(--surface);
  border-radius: var(--news-card-radius);
  border-left: 8px solid var(--news-batch-accent);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news .batch-group:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.page-news .batch-current {
  border-left-width: 10px;
  box-shadow: var(--shadow-lift);
}

.page-news .batch-pending {
  border-left-color: var(--pending);
}

.page-news .batch-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.page-news .batch-index {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-news .batch-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--deep);
}

.page-news .batch-timing {
  background: var(--tint-sand);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.page-news .batch-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-news .batch-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
}

.page-news .batch-group-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-news .batch-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.page-news .batch-entries {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-news .batch-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tint-blush);
  border-radius: 16px;
  padding: 10px 14px;
  transition: background 0.2s ease;
}

.page-news .batch-entry:hover {
  background: var(--surface-alt);
}

.page-news .status-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
}

.page-news .status-done {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(50, 205, 50, 0.15);
}

.page-news .status-progress {
  background: var(--pending);
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15);
}

.page-news .batch-entry-name {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.page-news .batch-entry-name a {
  color: var(--link);
  text-decoration: none;
}

.page-news .batch-entry-name a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.page-news .batch-entry-cat {
  flex: none;
  background: var(--tint-seaweed);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--seaweed);
  white-space: nowrap;
}

.page-news .batch-more {
  margin-top: 8px;
}

.page-news .batch-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  background: var(--tint-coral);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--link);
}

.page-news .batch-more summary::-webkit-details-marker {
  display: none;
}

.page-news .batch-more-list {
  margin: 12px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.87rem;
  color: var(--text-soft);
}

.page-news .version-history {
  position: relative;
  background: linear-gradient(180deg, var(--deep) 0%, var(--news-deep-lighter) 100%);
  color: var(--cream);
  border-radius: 52px 52px 0 0;
  margin-top: 32px;
  padding: 56px 16px 44px;
  overflow: hidden;
}

.page-news .version-history::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(255, 215, 0, 0.06) 0%, transparent 45%);
}

.page-news .version-history .section-head {
  position: relative;
}

.page-news .version-history .section-title {
  color: var(--cream);
}

.page-news .version-history .section-eyebrow {
  color: var(--gold);
}

.page-news .version-history .section-desc {
  color: var(--footer-text-soft);
}

.page-news .version-timeline {
  position: relative;
  max-width: 820px;
  margin: 24px auto 0;
  padding: 8px 0;
}

.page-news .version-timeline::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 4px;
  bottom: 4px;
  width: 4px;
  margin-left: -2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--sand) 55%, var(--coral) 100%);
}

.page-news .version-node {
  position: relative;
  padding: 0 0 28px 88px;
}

.page-news .version-node:last-child {
  padding-bottom: 0;
}

.page-news .version-icon-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 2;
}

.page-news .version-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.page-news .version-icon-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--seaweed) 0%, var(--sand) 100%);
  padding: 0;
}

.page-news .version-wave-glyph {
  display: block;
  position: relative;
  width: 28px;
  height: 12px;
  border-radius: 999px;
  background: var(--tint-sand);
}

.page-news .version-wave-glyph::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 7px;
  width: 16px;
  height: 9px;
  border-radius: 999px;
  background: var(--tint-blush);
}

.page-news .version-card {
  position: relative;
  background: var(--news-white-soft);
  border: 1px solid var(--news-white-line);
  border-radius: 24px;
  padding: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-news .version-card:hover {
  transform: translateX(6px);
  background: var(--news-white-hover);
}

.page-news .version-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.page-news .version-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--cream);
}

.page-news .version-changelog {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--footer-text);
}

.page-news .version-changelog li::marker {
  color: var(--gold);
}

.page-news .category-changes {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

.page-news .category-change-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-news .category-change-visual img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  object-fit: cover;
  display: block;
}

.page-news .category-change-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-news .change-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px 12px;
  background: var(--tint-seaweed);
  border-left: 4px solid var(--seaweed);
  border-radius: 18px;
  padding: 12px 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news .change-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.page-news .change-type {
  grid-row: 1;
  background: var(--tint-sand);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.page-news .change-label {
  grid-row: 1;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

.page-news .change-count {
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

.page-news .change-desc {
  grid-column: 2 / 4;
  font-size: 0.79rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.page-news .latest-entries {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 60px;
}

.page-news .latest-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-news .latest-card {
  flex: none;
  width: 230px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border-top: 6px solid var(--coral);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news .latest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.page-news .latest-card:nth-child(3n+2) {
  border-top-color: var(--seaweed);
}

.page-news .latest-card:nth-child(3n+3) {
  border-top-color: var(--sand);
}

.page-news .latest-card:nth-child(3n+4) {
  border-top-color: var(--coral-red);
}

.page-news .latest-card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
}

.page-news .latest-card-meta {
  margin-top: auto;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-soft);
}

@media (min-width: 768px) {
  .page-news .news-hero {
    padding: 72px 48px 44px;
    border-radius: 0 0 52px 52px;
  }

  .page-news .news-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 40px;
  }

  .page-news .news-hero-meta {
    margin-top: 0;
  }

  .page-news .hero-stat-grid {
    max-width: 360px;
  }

  .page-news .hero-stat-num {
    font-size: 1.6rem;
  }

  .page-news .batch-updates {
    padding: 56px 32px 32px;
  }

  .page-news .batch-group {
    padding: 26px;
  }

  .page-news .batch-group-body {
    grid-template-columns: 240px 1fr;
  }

  .page-news .batch-image img {
    height: 100%;
    min-height: 200px;
  }

  .page-news .version-history {
    border-radius: 72px 72px 0 0;
    padding: 72px 32px 56px;
  }

  .page-news .version-timeline::before {
    left: 50%;
  }

  .page-news .version-node {
    width: 50%;
    padding: 0 56px 40px 0;
  }

  .page-news .version-node:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 40px 56px;
  }

  .page-news .version-node:nth-child(odd) .version-icon-wrap {
    left: auto;
    right: -32px;
  }

  .page-news .version-node:nth-child(even) .version-icon-wrap {
    left: -32px;
    right: auto;
  }

  .page-news .version-card:hover {
    transform: translateY(-4px);
  }

  .page-news .category-changes {
    padding: 56px 32px 40px;
  }

  .page-news .category-change-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
  }

  .page-news .category-change-visual img {
    height: 100%;
    min-height: 380px;
  }

  .page-news .latest-entries {
    padding: 40px 32px 72px;
  }

  .page-news .latest-card {
    width: 280px;
  }
}
