.page-news {
  display: block;
}

/* ===== Hero ===== */
.page-news .news-hero {
  position: relative;
  padding: 0 0 44px;
  background:
    radial-gradient(circle at 88% 24%, rgba(255, 77, 41, 0.22), transparent 42%),
    radial-gradient(circle at 12% 78%, rgba(0, 194, 209, 0.14), transparent 38%),
    linear-gradient(160deg, #1A0B2E 0%, #0D2B2A 82%, rgba(57, 255, 20, 0.06) 100%);
  overflow: hidden;
}

.page-news .news-hero__visual {
  display: block;
  width: 100%;
  height: clamp(150px, 22vw, 400px);
  object-fit: cover;
  opacity: 0.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 28px;
}

.page-news .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: #B8B0C4;
}

.page-news .breadcrumb a {
  color: #B8B0C4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-news .breadcrumb a:hover {
  color: #39FF14;
  border-color: #39FF14;
}

.page-news .news-hero__kicker {
  margin-bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #39FF14;
}

.page-news .news-hero__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: #E0E0E0;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

.page-news .news-hero__title span {
  display: block;
  margin-top: 8px;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #FFD700;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.32);
}

.page-news .news-hero__lead {
  max-width: 780px;
  margin: 0 0 22px;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #B8B0C4;
}

.page-news .news-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 580px;
  margin-bottom: 22px;
}

.page-news .stat-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(26, 11, 46, 0.66);
  padding: 12px 10px;
  text-align: center;
}

.page-news .stat-item__num {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFD700;
}

.page-news .stat-item__label {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #B8B0C4;
}

.page-news .hero-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Section head badge ===== */
.page-news .news-section__badge {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  vertical-align: middle;
  border-radius: 999px;
  color: #1A0B2E;
  background: #39FF14;
}

/* ===== Recent batches ===== */
.page-news .news-batches {
  background:
    linear-gradient(180deg, rgba(57, 255, 20, 0.04), transparent 180px),
    linear-gradient(160deg, #1A0B2E 0%, #150826 100%);
}

.page-news .batch-timeline {
  position: relative;
  padding-left: 26px;
}

.page-news .batch-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #39FF14 0 6px, transparent 6px 12px);
  opacity: 0.5;
}

.page-news .batch-card {
  --batch-accent: #00C2D1;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--batch-accent);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.038);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.page-news .batch-card::after {
  content: "";
  position: absolute;
  left: -23px;
  top: 26px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #39FF14;
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.16);
}

.page-news .batch-card--yellow {
  --batch-accent: #FFD700;
}

.page-news .batch-card--orange {
  --batch-accent: #FF4C29;
}

.page-news .batch-card--cyan {
  --batch-accent: #00C2D1;
}

.page-news .batch-card__cover {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.page-news .batch-card__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

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

.page-news .batch-card__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--batch-accent);
}

.page-news .batch-card__time {
  font-size: 0.85rem;
  color: #B8B0C4;
}

.page-news .batch-card__kind {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1A0B2E;
  background: #FFB800;
}

.page-news .batch-card__kind--collection {
  background: #00C2D1;
}

.page-news .batch-card__count {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #39FF14;
}

.page-news .batch-card__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-news .batch-card__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 2px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.page-news .batch-card__item:first-child {
  border-top: 0;
}

.page-news .batch-card__title {
  min-width: 150px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #E0E0E0;
}

.page-news .batch-card__meta {
  font-size: 0.78rem;
  color: #B8B0C4;
}

/* ===== Category changes ===== */
.page-news .change-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-news .change-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #39FF14 0 6px, transparent 6px 12px);
  opacity: 0.45;
}

.page-news .change-row {
  position: relative;
  padding: 0 0 0 34px;
  margin-bottom: 24px;
}

.page-news .change-row:last-child {
  margin-bottom: 0;
}

.page-news .change-row__dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #39FF14;
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.16);
}

.page-news .change-row__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.page-news .change-row__type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1A0B2E;
  background: #FFB800;
}

.page-news .change-row__type--merge {
  background: #FF4C29;
}

.page-news .change-row__type--order {
  background: #00C2D1;
}

.page-news .change-row__time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  color: #B8B0C4;
}

.page-news .change-row__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #E0E0E0;
}

/* ===== Versions ===== */
.page-news .news-versions {
  background:
    radial-gradient(circle at 86% 18%, rgba(69, 123, 157, 0.24), transparent 42%),
    linear-gradient(135deg, #0D2B2A 0%, #1A0B2E 100%);
}

.page-news .versions-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-news .versions-wrap__visual {
  order: 1;
}

.page-news .versions-wrap__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

.page-news .version-list {
  list-style: none;
  margin: 0;
  padding: 0;
  order: 2;
  display: grid;
  gap: 14px;
}

.page-news .version-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 6px 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-width: 3px;
  border-radius: 16px;
  background: rgba(26, 11, 46, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news .version-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.page-news .version-row--current {
  border-left-color: #E63946;
}

.page-news .version-row:not(.version-row--current) {
  border-left-color: #457B9D;
}

.page-news .version-row__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFD700;
}

.page-news .version-row--current .version-row__code {
  color: #E63946;
}

.page-news .version-row__flag {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1A0B2E;
  background: #E63946;
}

.page-news .version-row:not(.version-row--current) .version-row__flag {
  color: #E0E0E0;
  background: #457B9D;
}

.page-news .version-row__body {
  grid-column: 1 / -1;
}

.page-news .version-row__title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #E0E0E0;
}

.page-news .version-row__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #B8B0C4;
}

/* ===== Maintenance log ===== */
.page-news .news-maintenance {
  background:
    radial-gradient(circle at 10% 90%, rgba(0, 194, 209, 0.12), transparent 40%),
    linear-gradient(160deg, #150826 0%, #1A0B2E 100%);
}

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

.page-news .maintenance-grid__visual {
  order: 1;
}

.page-news .maintenance-grid__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

.page-news .log-list {
  order: 2;
  display: grid;
  gap: 10px;
}

.page-news .log-entry {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 14px 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.page-news .log-entry:last-child {
  border-bottom: 0;
}

.page-news .log-entry__idx {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-weight: 800;
  color: #39FF14;
  margin-top: 3px;
}

.page-news .log-entry__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.page-news .log-entry__type {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1A0B2E;
  background: #00C2D1;
}

.page-news .log-entry__type--search {
  background: #39FF14;
}

.page-news .log-entry__type--ui {
  background: #FFB800;
}

.page-news .log-entry__type--content {
  background: #F72585;
}

.page-news .log-entry__type--perf {
  background: #7209B7;
}

.page-news .log-entry__type--a11y {
  background: #FFD700;
}

.page-news .log-entry__time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  color: #B8B0C4;
}

.page-news .log-entry__title {
  margin: 0 0 3px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #E0E0E0;
}

.page-news .log-entry__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #B8B0C4;
}

/* ===== Desktop layout ===== */
@media (min-width: 720px) {
  .page-news .news-hero__lead {
    font-size: 1.02rem;
  }

  .page-news .batch-card {
    grid-template-columns: 250px 1fr;
    padding: 18px;
  }

  .page-news .batch-card__cover {
    align-self: start;
  }

  .page-news .change-timeline {
    padding-right: 20px;
  }

  .page-news .version-row {
    grid-template-columns: 120px 80px 1fr;
    align-items: center;
  }

  .page-news .version-row__body {
    grid-column: auto;
  }

  .page-news .maintenance-grid {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }

  .page-news .maintenance-grid__visual {
    order: 0;
  }

  .page-news .log-list {
    order: 0;
  }
}

@media (min-width: 1024px) {
  .page-news .news-hero {
    padding-bottom: 56px;
  }

  .page-news .versions-wrap {
    grid-template-columns: 340px 1fr;
    align-items: start;
  }

  .page-news .versions-wrap__visual {
    order: 0;
  }

  .page-news .version-list {
    order: 0;
  }

  .page-news .maintenance-grid {
    grid-template-columns: 300px 1fr;
  }

  .page-news .batch-card {
    grid-template-columns: 280px 1fr;
  }
}
