.page-news {
  --news-deep-bg: #1F073A;
}

.page-news .page-news__hero {
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 82%);
  padding: 26px 0 0;
  color: #FFFFFF;
  overflow: hidden;
}

.page-news .page-news__hero-inner {
  display: grid;
  gap: 24px;
  align-items: end;
}

.page-news .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.page-news .breadcrumb__link {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: 13px;
}

.page-news .breadcrumb__link:hover {
  color: var(--sun);
}

.page-news .breadcrumb__sep {
  color: rgba(255, 255, 255, .48);
  font-size: 13px;
}

.page-news .breadcrumb__current {
  color: rgba(255, 255, 255, .96);
  font-size: 13px;
  font-weight: 700;
}

.page-news .page-news__hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  line-height: 1.24;
  color: #FFFFFF;
  max-width: 880px;
  margin: 0 0 14px;
}

.page-news .page-news__hero-desc {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 0 22px;
}

.page-news .btn--ghost {
  color: #FFF;
  border-color: rgba(255, 255, 255, .62);
  background: transparent;
}

.page-news .btn--ghost:hover {
  background: rgba(255, 255, 255, .14);
  color: #FFF;
}

.page-news .page-news__hero-img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.page-news .page-news__tags {
  background: var(--page-bg);
  padding: 40px 0 44px;
}

.page-news .page-news__filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.page-news .page-news__filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(255, 255, 255, .4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-news .page-news__filter-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #FFF;
}

.page-news .page-news__filter-chip--new {
  background: var(--status-new);
}

.page-news .page-news__filter-chip--category {
  background: var(--berry);
}

.page-news .page-news__filter-chip--version {
  background: var(--accent);
}

.page-news .page-news__filter-chip--search {
  background: var(--status-updating);
}

.page-news .page-news__filter-chip--archive {
  background: var(--status-archived);
}

.page-news .page-news__timeline-section {
  background: var(--page-bg);
  padding: 46px 0 52px;
}

.page-news .page-news__timeline-bgimg {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: .25;
  margin-bottom: 24px;
}

.page-news .page-news__timeline-head {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.page-news .page-news__timeline-tip {
  color: var(--text-muted);
  font-size: 14px;
  margin: 8px 0 0;
}

.page-news .page-news__timeline-filter-wrap {
  position: relative;
  max-width: 560px;
}

.page-news .page-news__timeline-filter-wrap::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  transform: translateY(-70%);
  z-index: 1;
}

.page-news .page-news__timeline-filter-wrap::after {
  content: '';
  position: absolute;
  left: 25px;
  top: calc(50% + 3px);
  width: 7px;
  height: 2px;
  background: var(--text-muted);
  transform: rotate(45deg);
  z-index: 1;
}

.page-news .page-news__timeline-filter {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.page-news .page-news__timeline-filter:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(75, 0, 130, .15);
}

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

.page-news .page-news__tl-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 22px;
}

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

.page-news .page-news__tl-item::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 18px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #FFFFFF, 0 2px 6px rgba(0, 0, 0, .15);
  z-index: 2;
}

.page-news .page-news__tl-item::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: -6px;
  width: 3px;
  background: linear-gradient(180deg, #E0D8CF, rgba(224, 216, 207, .25));
  z-index: 1;
}

.page-news .page-news__tl-item:last-child::after {
  display: none;
}

.page-news .page-news__tl-item--new::before {
  background: var(--status-new);
}

.page-news .page-news__tl-item--category::before {
  background: var(--berry);
}

.page-news .page-news__tl-item--version::before {
  background: var(--accent);
}

.page-news .page-news__tl-item--search::before {
  background: var(--status-updating);
}

.page-news .page-news__tl-item--archive::before {
  background: var(--status-archived);
}

.page-news .page-news__tl-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-notch);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.page-news .page-news__tl-item:hover .page-news__tl-card,
.page-news .page-news__tl-item:focus-within .page-news__tl-card {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.page-news .page-news__tl-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .page-news__tl-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

.page-news .page-news__type-badge {
  font-size: 12px;
  font-weight: 700;
  color: #FFF;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

.page-news .page-news__type-badge--new {
  background: var(--status-new);
}

.page-news .page-news__type-badge--category {
  background: var(--berry);
}

.page-news .page-news__type-badge--version {
  background: var(--accent);
}

.page-news .page-news__type-badge--search {
  background: var(--status-updating);
}

.page-news .page-news__type-badge--archive {
  background: var(--status-archived);
}

.page-news .page-news__tl-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  margin: 10px 0 6px;
  color: var(--text-main);
}

.page-news .page-news__tl-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.page-news .page-news__tl-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (hover: hover) {
  .page-news .page-news__tl-more {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height var(--transition), opacity var(--transition), margin-top var(--transition);
  }

  .page-news .page-news__tl-item:hover .page-news__tl-more,
  .page-news .page-news__tl-item:focus-within .page-news__tl-more {
    max-height: 90px;
    opacity: 1;
    margin-top: 12px;
  }
}

.page-news .page-news__tl-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-news .page-news__tl-link:hover {
  color: var(--cherry);
}

.page-news .page-news__versions {
  background: linear-gradient(150deg, var(--accent-deep) 0%, var(--news-deep-bg) 100%);
  padding: 48px 0 54px;
  color: #FFF;
}

.page-news .page-news__versions-head {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.page-news .page-news__versions-head .section-title {
  color: #FFF;
  margin: 0;
}

.page-news .page-news__versions-head .section-title__index {
  color: rgba(255, 255, 255, .48);
}

.page-news .page-news__versions-desc {
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  margin: 10px 0 0;
}

.page-news .page-news__versions-img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-news .page-news__version-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-news .page-news__version-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.page-news .page-news__version-table td {
  padding: 13px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, .92);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.page-news .page-news__version-table td:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--sun);
  white-space: nowrap;
}

.page-news .page-news__version-table tr:hover td {
  background: rgba(255, 255, 255, .05);
}

.page-news .page-news__recent {
  background: var(--accent-soft);
  padding: 48px 0 52px;
}

.page-news .page-news__recent-head {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.page-news .page-news__recent-img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-news .page-news__recent-head .section-title {
  margin: 0;
}

.page-news .page-news__recent-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 10px 0 0;
}

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

.page-news .page-news__recent-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.page-news .page-news__recent-card .media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.page-news .page-news__recent-body {
  background: var(--card-bg);
  padding: 12px 14px 14px;
}

.page-news .page-news__recent-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.page-news .page-news__recent-batch {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
}

.page-news .page-news__recent-title {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 4px;
  color: var(--text-main);
}

.page-news .page-news__recent-cat {
  font-size: 12px;
  color: var(--text-muted);
}

.page-news .page-news__recent-more {
  margin-top: 26px;
  text-align: center;
}

@media (min-width: 720px) {
  .page-news .page-news__hero-inner {
    grid-template-columns: 1.05fr .95fr;
  }

  .page-news .page-news__hero-img {
    height: 300px;
  }

  .page-news .page-news__timeline-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

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

  .page-news .page-news__versions-head {
    grid-template-columns: 1fr 300px;
    align-items: center;
  }

  .page-news .page-news__recent-head {
    grid-template-columns: 280px 1fr;
    align-items: center;
  }

  .page-news .page-news__versions-img {
    max-height: 220px;
  }

  .page-news .page-news__recent-img {
    max-height: 240px;
  }
}

@media (min-width: 1024px) {
  .page-news .page-news__recent-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-news .page-news__timeline {
    max-width: 900px;
  }

  .page-news .page-news__tl-card {
    padding: 18px 22px;
  }

  .page-news .page-news__versions-head {
    grid-template-columns: 1fr 380px;
  }

  .page-news .page-news__recent-head {
    grid-template-columns: 320px 1fr;
  }

  .page-news .page-news__hero-title {
    max-width: 760px;
  }
}
