.page-news {
  --news-gap: 2.5rem;
  --timeline-pad: 2.5rem;
  --timeline-node-size: 0.875rem;
  --news-side-width: 22rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(139, 0, 0, 0.18), transparent 24rem),
    linear-gradient(180deg, var(--color-bg) 0%, #150609 100%);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.8;
  overflow-x: hidden;
}

.page-news h1,
.page-news h2,
.page-news h3 {
  font-family: var(--font-heading);
}

.page-news h2[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.page-news img {
  max-width: 100%;
}

.page-news .news-hero {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2rem;
}

.page-news .breadcrumb {
  margin-bottom: 1.75rem;
  font-size: var(--fs-small);
  color: var(--color-muted);
}

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

.page-news .breadcrumb a:hover,
.page-news .breadcrumb a:focus-visible {
  color: var(--color-highlight);
  border-color: var(--color-highlight);
}

.page-news .breadcrumb-current {
  color: var(--color-text);
}

.page-news .news-hero-grid {
  display: grid;
  gap: 1.5rem;
}

.page-news .news-hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: var(--fs-h1);
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.page-news .lead {
  max-width: 38rem;
  margin: 0;
  font-size: 1.0625rem;
  color: var(--color-muted);
}

.page-news .news-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-secondary);
  background: linear-gradient(120deg, rgba(139, 0, 0, 0.22), transparent 70%);
}

.page-news .hero-metric {
  font-size: var(--fs-small);
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

.page-news .news-hero-meta strong {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--color-highlight);
  line-height: 1.1;
  margin: 0.25rem 0;
}

.page-news .hero-metric-label {
  font-size: var(--fs-small);
  color: var(--color-text);
}

.page-news .news-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  padding-top: 0.25rem;
}

.page-news .toc-label {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  color: var(--color-muted);
  letter-spacing: 0.12em;
  margin-right: 0.25rem;
}

.page-news .news-toc a {
  font-size: var(--fs-small);
  color: var(--color-primary);
  text-decoration: none;
  border: 1px solid var(--color-border);
  padding: 0.375rem 0.875rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-news .news-toc a:hover,
.page-news .news-toc a:focus-visible {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

.page-news .news-notice {
  padding: 0.875rem 1.125rem;
  background: rgba(27, 77, 62, 0.32);
  border-left: 4px solid var(--color-accent);
  font-size: var(--fs-small);
  color: var(--color-text);
  margin: 0;
}

.page-news .news-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3.5rem;
  display: grid;
  gap: var(--news-gap);
}

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

.page-news .section {
  margin-bottom: 3rem;
}

.page-news .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.page-news .section-kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.375rem;
  font-weight: 900;
}

.page-news .section-heading h2 {
  margin: 0 0 0.5rem;
  font-size: var(--fs-h2);
  font-weight: 900;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 0.5rem;
  line-height: 1.25;
}

.page-news .section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  background: var(--color-secondary);
}

.page-news .section-heading p {
  margin: 0.625rem 0 0;
  font-size: var(--fs-small);
  color: var(--color-muted);
  max-width: 34rem;
}

.page-news .section-icon {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0.9;
  flex-shrink: 0;
  transform: rotate(6deg);
}

.page-news .timeline {
  position: relative;
  padding-left: var(--timeline-pad);
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 1.1875rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--color-border);
}

.page-news .timeline-bg {
  position: absolute;
  right: -0.5rem;
  top: 0.75rem;
  width: 60%;
  max-width: 28rem;
  height: auto;
  object-fit: cover;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.page-news .timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
  z-index: 1;
}

.page-news .timeline-item:last-child {
  padding-bottom: 0;
}

.page-news .timeline-node {
  position: absolute;
  left: -1.6875rem;
  top: 0.35rem;
  width: var(--timeline-node-size);
  height: var(--timeline-node-size);
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.page-news .timeline-item:hover .timeline-node,
.page-news .timeline-item:focus-within .timeline-node {
  background: var(--color-highlight);
  transform: scale(1.18);
  box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.18);
}

.page-news .timeline-body {
  background: rgba(45, 27, 46, 0.45);
  border: 1px solid rgba(58, 42, 58, 0.7);
  border-left: 2px solid var(--color-primary);
  padding: 1.25rem 1.25rem 1.35rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-news .timeline-body:hover {
  background: rgba(45, 27, 46, 0.8);
  border-left-color: var(--color-highlight);
  transform: translateX(3px);
}

.page-news .timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}

.page-news .badge {
  font-size: 0.75rem;
  color: var(--color-primary);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.25rem 0.625rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.page-news .timeline-meta time {
  font-size: var(--fs-small);
  color: var(--color-muted);
}

.page-news .timeline-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
}

.page-news .timeline-body p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--color-muted);
  line-height: 1.75;
}

.page-news .section-changelog {
  background: linear-gradient(140deg, rgba(139, 0, 0, 0.28), rgba(45, 27, 46, 0.55) 60%, transparent);
  padding: 2rem 1.25rem;
}

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

.page-news .changelog-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-news .changelog-item::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 4.5rem;
  height: 4.5rem;
  background: repeating-linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.16) 0,
    rgba(212, 175, 55, 0.16) 0.3rem,
    transparent 0.3rem,
    transparent 0.6rem
  );
  transform: rotate(12deg);
}

.page-news .changelog-count {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 900;
  color: var(--color-highlight);
  background: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.5rem) 100%, 0 100%);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.page-news .changelog-body h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: 1.45;
}

.page-news .changelog-body p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--color-muted);
  line-height: 1.75;
}

.page-news .section-activities {
  display: grid;
  gap: 1.25rem;
}

.page-news .section-activities .section-heading {
  margin-bottom: 0;
}

.page-news .activity-poster {
  width: 100%;
  height: auto;
  max-height: 16rem;
  object-fit: cover;
  border: 1px solid var(--color-border);
  display: block;
}

.page-news .activity-card {
  background: rgba(45, 27, 46, 0.6);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-secondary);
  padding: 1.25rem;
}

.page-news .activity-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--color-text);
  line-height: 1.45;
}

.page-news .activity-card p {
  margin: 0 0 1rem;
  font-size: var(--fs-small);
  color: var(--color-muted);
  line-height: 1.75;
}

.page-news .activity-card .btn {
  margin-top: 0.25rem;
}

.page-news .news-index {
  margin-top: 2.25rem;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(27, 77, 62, 0.2), transparent);
  padding: 1.25rem;
}

.page-news .news-index h2 {
  margin: 0 0 1rem;
  font-size: var(--fs-h3);
  color: var(--color-primary);
  line-height: 1.3;
}

.page-news .index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.page-news .index-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: var(--fs-small);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.page-news .index-list a::after {
  content: "→";
  color: var(--color-primary);
  font-size: var(--fs-small);
  margin-left: 0.5rem;
}

.page-news .index-list a:hover,
.page-news .index-list a:focus-visible {
  color: var(--color-highlight);
  border-color: var(--color-border);
  background: rgba(212, 175, 55, 0.08);
}

@media (min-width: 768px) {
  .page-news .news-hero {
    padding: 3.5rem 2rem 2.5rem;
  }

  .page-news .news-hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.75rem 2.5rem;
    align-items: end;
  }

  .page-news .news-toc,
  .page-news .news-notice {
    grid-column: 1 / -1;
  }

  .page-news .news-layout {
    grid-template-columns: minmax(0, 1fr) var(--news-side-width);
    gap: 3rem;
    padding: 0.75rem 2rem 4rem;
  }

  .page-news .section-changelog {
    padding: 2.75rem 2rem;
    margin: 0 -2rem 3.5rem;
  }

  .page-news .changelog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .page-news .section-icon {
    width: 4rem;
    height: 4rem;
  }
}

@media (min-width: 992px) {
  .page-news .news-side {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    align-self: start;
  }

  .page-news .section-icon {
    width: 4.5rem;
    height: 4.5rem;
  }
}
