.page-news {
  --news-line: rgba(255, 255, 255, 0.12);
  --news-tint: rgba(255, 255, 255, 0.05);
  --news-glow: 0 0 16px rgba(0, 219, 255, 0.18);
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-news .news-banner {
  position: relative;
  padding: 26px 0 22px;
  background:
    linear-gradient(135deg, rgba(0, 219, 255, 0.08), transparent 45%),
    var(--bg-light);
  border-bottom: 3px solid var(--primary);
}

.page-news .news-banner::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 34%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-magenta), var(--accent-cyan));
}

.page-news .news-banner__grid {
  display: grid;
  gap: 18px;
  align-items: end;
}

.page-news .news-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--done-gray);
}

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

.page-news .news-breadcrumb a:hover {
  text-decoration: underline;
}

.page-news .news-banner__lead {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: #33334d;
}

.page-news .news-banner__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.page-news .news-banner__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  background: var(--bg-purple);
  color: var(--text-light);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.page-news .news-banner__stat strong {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--primary);
}

.page-news .news-banner__stat span {
  font-size: 12px;
  opacity: 0.85;
}

.page-news .news-feed {
  background-color: var(--bg-purple);
  background-image:
    radial-gradient(ellipse at 85% 0%, rgba(155, 107, 255, 0.22), transparent 55%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 14px);
  color: var(--text-light);
}

.page-news .section--dark .section-kicker,
.page-news .section--crimson .section-kicker {
  color: var(--primary);
}

.page-news .section--dark .section-title,
.page-news .section--crimson .section-title {
  color: var(--text-light);
}

.page-news .section--dark .section-more,
.page-news .section--crimson .section-more {
  color: var(--accent-cyan);
}

.page-news .news-feed__layout {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.page-news .news-feed__timeline {
  display: grid;
  gap: 10px;
}

.page-news .feed-batch {
  border: 1px solid var(--news-line);
  background: var(--news-tint);
  margin: 0;
  padding: 0;
}

.page-news .feed-batch--new {
  border-color: rgba(0, 229, 160, 0.5);
  background: rgba(0, 229, 160, 0.06);
  box-shadow: var(--news-glow);
}

.page-news .feed-batch__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.page-news .feed-batch__head::-webkit-details-marker {
  display: none;
}

.page-news .feed-batch__head::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--primary);
}

.page-news .feed-batch[open] .feed-batch__head::after {
  content: "−";
}

.page-news .feed-batch__head:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.page-news .feed-batch__name {
  font-size: 16px;
  font-weight: 800;
}

.page-news .feed-batch__range {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--done-gray);
}

.page-news .feed-batch__list {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  border-top: 1px dashed var(--news-line);
}

.page-news .feed-batch__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 8px;
  border-bottom: 1px dashed var(--news-line);
}

.page-news .feed-batch__item:last-child {
  border-bottom: 0;
}

.page-news .feed-batch__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  flex: none;
  padding-top: 2px;
}

.page-news .feed-batch__body {
  flex: 1;
}

.page-news .feed-batch__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.page-news .feed-batch__title {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
}

.page-news .feed-batch__summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.page-news .news-feed__aside {
  display: grid;
  gap: 14px;
}

.page-news .news-feed__image {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.page-news .news-feed__note {
  padding: 12px 14px;
  background: #221336;
  border-left: 3px solid var(--accent-magenta);
  font-size: 13px;
}

.page-news .news-feed__note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--accent-cyan);
}

.page-news .news-feed__note p {
  margin: 0;
  opacity: 0.85;
  line-height: 1.6;
}

.page-news .news-batch__visual {
  margin: 6px 0 14px;
}

.page-news .news-batch__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
}

.page-news .news-batch__wrap {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.page-news .news-batch__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.page-news .news-batch__table th,
.page-news .news-batch__table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.page-news .news-batch__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-purple);
  color: var(--text-light);
  font-weight: 700;
}

.page-news .news-batch__table tbody tr:nth-child(even) {
  background: rgba(0, 219, 255, 0.04);
}

.page-news .news-batch__table tbody tr:hover {
  background: rgba(255, 179, 0, 0.08);
}

.page-news .news-batch__footer {
  display: inline-flex;
  margin: 14px 0 0;
  padding: 8px 14px;
  background: var(--bg-purple);
  color: var(--text-light);
  font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.page-news .news-batch__footer strong {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.page-news .news-versions {
  background-color: var(--bg-crimson);
  background-image:
    radial-gradient(ellipse at 90% 0%, rgba(255, 46, 136, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(255, 46, 136, 0.1), transparent 60%);
  color: var(--text-light);
}

.page-news .news-versions__grid {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.page-news .news-version {
  display: block;
  margin: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.page-news .news-version--current {
  background: linear-gradient(135deg, rgba(0, 219, 255, 0.14), rgba(255, 46, 136, 0.08));
  border-color: rgba(0, 219, 255, 0.4);
  box-shadow: 0 0 18px rgba(0, 219, 255, 0.08);
}

.page-news .news-version__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.page-news .news-version__head::-webkit-details-marker {
  display: none;
}

.page-news .news-version__head:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.page-news .news-version__image {
  display: block;
  width: 128px;
  height: 128px;
  overflow: hidden;
  background: #1d0e2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.page-news .news-version__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .news-version__name {
  font-family: var(--font-mono);
  font-size: 28px;
  letter-spacing: -1px;
  color: var(--primary);
}

.page-news .news-version--current .news-version__name {
  color: var(--accent-cyan);
}

.page-news .news-version__changes {
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 14px 0 12px;
  padding: 14px 0 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.page-news .news-version__changes li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.page-news .news-version__changes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent-magenta);
  transform: rotate(45deg);
}

.page-news .news-version__scope {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.page-news .news-categories__layout {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.page-news .news-categories__list {
  display: grid;
}

.page-news .migration-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border);
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.page-news .migration-row:hover {
  background: linear-gradient(90deg, rgba(255, 179, 0, 0.08), transparent);
  padding-left: 8px;
}

.page-news .migration-row__side {
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
}

.page-news .migration-row__side--old {
  justify-self: end;
  text-align: right;
  background: var(--done-gray);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.page-news .migration-row__side--new {
  justify-self: start;
  background: linear-gradient(135deg, var(--accent-cyan), #00b87a);
  color: #042116;
  clip-path: polygon(0 6px, 6px 0, 100% 0, 100% 100%, 0 100%);
}

.page-news .migration-row__arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-magenta);
}

.page-news .migration-row__count {
  grid-column: 1 / -1;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--done-gray);
  white-space: nowrap;
}

.page-news .news-categories__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .page-news .feed-batch__item {
    flex-direction: row;
    gap: 10px;
  }

  .page-news .feed-batch__time {
    flex: 0 0 82px;
  }

  .page-news .news-version__name {
    font-size: 32px;
  }
}

@media (min-width: 768px) {
  .page-news .news-banner__grid {
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
  }

  .page-news .news-banner__stats {
    gap: 6px;
  }

  .page-news .news-versions__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-news .news-categories__layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .page-news .news-categories__visual {
    position: sticky;
    top: 24px;
  }

  .page-news .migration-row {
    grid-template-columns: 1fr auto 1fr auto;
  }

  .page-news .migration-row__count {
    grid-column: auto;
  }
}

@media (min-width: 1100px) {
  .page-news .news-feed__layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }

  .page-news .news-feed__aside {
    position: sticky;
    top: 24px;
  }

  .page-news .news-batch__visual img {
    max-height: 220px;
    object-fit: cover;
  }

  .page-news .news-versions__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
