.page-news {
  --news-card: rgba(17, 26, 51, 0.72);
  --news-grid-bg: rgba(42, 53, 86, 0.16);
  --news-hero-deco-stroke: rgba(42, 53, 86, 0.55);
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-2) var(--space-2) var(--space-5);
  font-family: var(--font-body);
  color: var(--c-cream);
}

.page-news .breadcrumb {
  padding: var(--space-2) 0 var(--space-1);
}

.page-news .news-hero {
  position: relative;
  padding: var(--space-3) 0 var(--space-4);
  border-bottom: 1px solid var(--c-line);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.page-news .news-hero__deco {
  position: absolute;
  right: 0;
  bottom: -10px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(3.5rem, 14vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--news-hero-deco-stroke);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  opacity: 0.45;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
}

.page-news .news-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.page-news .news-hero__kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-neon);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.page-news .news-hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: var(--space-1) 0 var(--space-2);
  color: var(--c-cream);
}

.page-news .news-hero__desc {
  max-width: 60ch;
  color: var(--c-stone);
  line-height: 1.8;
  margin: 0 0 var(--space-2);
}

.page-news .news-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.page-news .news-hero__count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-stone);
  border-left: 1px solid var(--c-line);
  padding-left: var(--space-2);
}

.page-news .news-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.page-news .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--news-card);
  padding: var(--space-1) var(--space-2);
  min-width: 110px;
}

.page-news .hero-stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-neon);
}

.page-news .hero-stat__label {
  font-size: 12px;
  color: var(--c-stone);
}

.page-news .news-layout {
  display: block;
}

.page-news .news-main {
  min-width: 0;
}

.page-news .news-section {
  margin-bottom: var(--space-5);
}

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

.page-news .section-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--c-line);
}

.page-news .section-head__num {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-neon);
  background: var(--news-card);
}

.page-news .section-head__text h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--c-cream);
  margin: 0;
}

.page-news .section-head__text p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--c-stone);
  line-height: 1.5;
}

.page-news .news-media,
.page-news .hot-figure {
  margin: var(--space-3) 0;
}

.page-news .news-media img,
.page-news .hot-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  object-fit: cover;
}

.page-news .news-media figcaption,
.page-news .hot-figure figcaption {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-stone);
  text-align: right;
}

.page-news .news-media--featured {
  margin-top: 0;
}

.page-news .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--c-line);
}

.page-news .timeline__item {
  position: relative;
  padding: 0 0 var(--space-3) 46px;
}

.page-news .timeline__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-midnight);
  color: var(--c-neon);
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-news .post {
  background: var(--news-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--space-2);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.page-news .post:hover {
  border-color: var(--c-hover);
  background: var(--c-hover);
  transform: translateY(-2px);
}

.page-news .post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: 8px;
}

.page-news .post__icon {
  color: var(--c-neon);
  flex-shrink: 0;
  display: block;
}

.page-news .post__time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-stone);
}

.page-news .post__title {
  font-size: 1.125rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--c-cream);
  margin: 0 0 6px;
}

.page-news .post__excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-stone);
  margin: 0 0 var(--space-1);
}

.page-news .post__detail {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-stone);
  border-top: 1px dashed var(--c-line);
  padding-top: 8px;
  margin-top: 8px;
}

.page-news .post__detail summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-neon);
}

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

.page-news .post__detail summary::before {
  content: "+ ";
}

.page-news .post__detail[open] summary::before {
  content: "− ";
}

.page-news .post__detail p {
  margin: 10px 0 0;
}

.page-news .version-list {
  display: flex;
  flex-direction: column;
}

.page-news .version-item {
  position: relative;
  border-left: 2px solid var(--c-line);
  padding: 0 0 var(--space-2) var(--space-2);
  margin-bottom: var(--space-1);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.page-news .version-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-midnight);
  border: 2px solid var(--c-neon);
}

.page-news .version-item:target {
  background: rgba(59, 255, 140, 0.06);
  border-left-color: var(--c-neon);
}

.page-news .version-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: 6px;
}

.page-news .version-item__link {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-neon);
  text-decoration: none;
  background: rgba(59, 255, 140, 0.08);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 2px 10px;
  transition: background 0.2s ease;
}

.page-news .version-item__link:hover,
.page-news .version-item:target .version-item__link {
  background: var(--c-neon);
  color: var(--c-midnight);
}

.page-news .version-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-cream);
  margin: 0 0 4px;
}

.page-news .version-item__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-stone);
  margin: 0;
}

.page-news .version-figure {
  margin: var(--space-3) 0 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--news-card);
  padding: var(--space-2);
  text-align: center;
}

.page-news .version-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.page-news .version-figure__note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-stone);
  margin: var(--space-1) 0 0;
}

.page-news .hot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.page-news .hot-item {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--news-card);
  padding: var(--space-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-news .hot-item:hover {
  border-color: var(--c-hover);
  background: var(--c-hover);
}

.page-news .hot-item__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-neon);
  margin-bottom: var(--space-2);
}

.page-news .hot-item__icon svg {
  width: 20px;
  height: 20px;
}

.page-news .hot-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-cream);
  margin: 0 0 6px;
}

.page-news .hot-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-stone);
  margin: 0;
}

.page-news .subscribe-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.page-news .subscribe-card__item {
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  background: rgba(17, 26, 51, 0.5);
  padding: var(--space-2);
}

.page-news .subscribe-card__item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-cream);
  margin: 0 0 6px;
}

.page-news .subscribe-card__item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-stone);
  margin: 0 0 var(--space-2);
}

.page-news .news-sidebar {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.page-news .news-toc {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--news-card);
  padding: var(--space-2);
}

.page-news .news-toc h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-neon);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-2);
}

.page-news .news-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news .news-toc li {
  border-bottom: 1px dashed var(--c-line);
}

.page-news .news-toc li:last-child {
  border-bottom: 0;
}

.page-news .news-toc a {
  display: block;
  padding: 10px 8px;
  color: var(--c-stone);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.page-news .news-toc a:hover {
  color: var(--c-neon);
  padding-left: 14px;
}

.page-news .news-sidebar__figure {
  margin: 0;
}

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

.page-news .news-sidebar__figure figcaption {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-stone);
}

.page-news .news-sidebar__block {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--news-card);
  padding: var(--space-2);
}

.page-news .news-sidebar__block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-cream);
  margin: 0 0 6px;
}

.page-news .news-sidebar__block p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-stone);
  margin: 0 0 var(--space-2);
}

@media (min-width: 700px) {
  .page-news {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

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

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

  .page-news .versions-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: var(--space-3);
    align-items: start;
  }

  .page-news .version-figure {
    margin: 0;
  }

  .page-news .news-hero__deco {
    opacity: 0.8;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

@media (min-width: 960px) {
  .page-news .news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: var(--space-4);
    align-items: start;
  }

  .page-news .news-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    margin-top: 0;
  }

  .page-news .news-hero h1 {
    font-size: 3.5rem;
  }
}
