.page-news {
  --news-night: #0d1b2a;
  --news-deep: #1b263b;
  --news-violet: #5a189a;
  --news-green: #00ff87;
  --news-cyan: #00b4d8;
  --news-orange: #ff6d00;
  --news-light: #e0e1dd;
  --news-radius: 24px;
  --news-rail-w: 300px;
  background: var(--news-night);
  color: var(--news-light);
}

.page-news .news-layout-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.page-news .news-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 14px;
  border-bottom: 1px solid rgba(224, 225, 221, .12);
  margin-bottom: 32px;
}

.page-news .news-topbar-slogan {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--news-green);
  white-space: nowrap;
}

.page-news .news-masthead {
  position: relative;
  margin-bottom: 44px;
  padding: 24px 0 8px 22px;
  border-left: 4px solid var(--news-green);
}

.page-news .news-masthead::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 74px;
  background: linear-gradient(135deg, rgba(90, 24, 154, .55), transparent 72%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
  border-radius: 0 22px 0 0;
}

.page-news .news-masthead > * {
  position: relative;
  z-index: 1;
}

.page-news .news-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--news-cyan);
}

.page-news .news-masthead h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 7vw, 62px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--news-light);
}

.page-news .news-h1-suffix {
  color: var(--news-green);
}

.page-news .news-lead {
  max-width: 660px;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(224, 225, 221, .76);
}

.page-news .news-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px 44px;
}

.page-news .news-rail {
  display: grid;
  gap: 16px;
  align-content: start;
  order: 2;
}

.page-news .news-content {
  order: 1;
  min-width: 0;
}

.page-news .news-rail-card {
  background: rgba(27, 38, 59, .7);
  border: 1px solid rgba(224, 225, 221, .12);
  border-radius: 22px;
  padding: 20px 18px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.page-news .news-rail-card:hover {
  border-color: rgba(0, 180, 216, .35);
}

.page-news .news-rail-title {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--news-light);
}

.page-news .news-rail-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--news-green);
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(0, 255, 135, .12);
}

.page-news .news-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-news .news-rail-list a {
  display: block;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 14px;
  color: rgba(224, 225, 221, .74);
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), padding-left .2s var(--ease);
}

.page-news .news-rail-list a:hover {
  background: rgba(0, 255, 135, .08);
  color: var(--news-green);
  padding-left: 18px;
}

.page-news .news-recommend-media {
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(224, 225, 221, .08);
}

.page-news .news-recommend-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news .news-recommend-card p,
.page-news .news-help-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(224, 225, 221, .66);
}

.page-news .news-section {
  margin-bottom: 70px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.page-news .news-section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(224, 225, 221, .14);
}

.page-news .news-section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--news-green);
}

.page-news .news-section-head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--news-light);
}

.page-news .news-section-head p {
  width: 100%;
  margin: 0;
  font-size: 14px;
  color: rgba(224, 225, 221, .58);
}

.page-news .news-tabs {
  position: relative;
}

.page-news .news-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.page-news .news-tab-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(224, 225, 221, .22);
  background: rgba(27, 38, 59, .8);
  color: var(--news-light);
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.page-news .news-tab-btn:hover {
  border-color: var(--news-cyan);
  color: var(--news-cyan);
}

.page-news .news-tab-btn[data-active],
.page-news .news-tab-btn[aria-selected="true"] {
  background: var(--news-green);
  border-color: var(--news-green);
  color: var(--news-night);
  font-weight: 800;
}

.page-news .news-tab-panel {
  min-height: 80px;
}

.page-news .news-tab-panel[data-active] {
  animation: news-fade-in .35s var(--ease) both;
}

@keyframes news-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-news .news-featured {
  position: relative;
  overflow: hidden;
  border-radius: var(--news-radius);
  border: 1px solid rgba(224, 225, 221, .14);
  margin-bottom: 30px;
  background: var(--news-deep);
  box-shadow: var(--shadow);
}

.page-news .news-featured-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news .news-featured-body {
  position: relative;
  padding: 22px 20px 24px;
  background: linear-gradient(180deg, var(--news-deep), rgba(13, 27, 42, .95));
}

.page-news .news-featured-body h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--news-light);
}

.page-news .news-featured-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(224, 225, 221, .72);
}

.page-news .news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.page-news .news-list-item {
  display: flex;
  gap: 0;
  background: rgba(27, 38, 59, .66);
  border: 1px solid rgba(224, 225, 221, .1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.page-news .news-list-dot {
  flex: 0 0 4px;
  background: var(--news-green);
  border-radius: 0 999px 999px 0;
}

.page-news .news-list-item:hover {
  transform: translateX(4px);
  border-color: rgba(0, 180, 216, .4);
  background: rgba(27, 38, 59, .85);
}

.page-news .news-list-content {
  padding: 18px 18px 18px 16px;
  min-width: 0;
}

.page-news .news-list-content .news-tags {
  margin-bottom: 8px;
}

.page-news .news-list-content h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--news-light);
}

.page-news .news-list-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(224, 225, 221, .64);
}

.page-news .changelog-banner {
  position: relative;
  border-radius: var(--news-radius);
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid rgba(90, 24, 154, .5);
}

.page-news .changelog-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 27, 42, .85) 0%, rgba(13, 27, 42, .15) 55%, rgba(90, 24, 154, .25) 100%);
  pointer-events: none;
}

.page-news .changelog-banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news .changelog-timeline {
  position: relative;
}

.page-news .changelog-item.accordion-item {
  background: rgba(27, 38, 59, .72);
  border: 1px solid rgba(224, 225, 221, .1);
  border-radius: 20px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.page-news .changelog-item.accordion-item:hover {
  border-color: rgba(0, 180, 216, .35);
}

.page-news .changelog-item.accordion-item.changelog-current {
  border-color: rgba(0, 255, 135, .5);
  box-shadow: 0 0 0 1px rgba(0, 255, 135, .12), 0 12px 32px rgba(90, 24, 154, .22);
}

.page-news .changelog-btn.accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--news-light);
  text-align: left;
}

.page-news .changelog-version {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-news .changelog-current .changelog-version {
  color: var(--news-green);
}

.page-news .changelog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.page-news .changelog-tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--news-orange);
  background: rgba(255, 109, 0, .16);
  border: 1px solid rgba(255, 109, 0, .28);
  padding: 4px 14px;
  border-radius: 999px;
}

.page-news .changelog-toggle {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(224, 225, 221, .55);
  background: rgba(224, 225, 221, .08);
  padding: 4px 12px;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.page-news .changelog-item[data-open] .changelog-toggle {
  color: var(--news-green);
  background: rgba(0, 255, 135, .12);
}

.page-news .accordion-panel.changelog-panel {
  padding: 0 20px 18px;
}

.page-news .changelog-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-news .changelog-panel li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(224, 225, 221, .76);
}

.page-news .changelog-panel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--news-cyan);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, .12);
}

.page-news .changelog-foot {
  margin-top: 26px;
  padding: 24px 22px;
  border-radius: var(--news-radius);
  background: linear-gradient(120deg, rgba(90, 24, 154, .3), rgba(13, 27, 42, .72) 62%, rgba(0, 180, 216, .16));
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.page-news .changelog-foot p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(224, 225, 221, .72);
}

.page-news .special-grid {
  display: grid;
  gap: 18px;
}

.page-news .special-card {
  background: rgba(27, 38, 59, .72);
  border: 1px solid rgba(224, 225, 221, .1);
  border-radius: var(--news-radius);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.page-news .special-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 216, .4);
  box-shadow: var(--shadow);
}

.page-news .special-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news .special-body {
  padding: 20px;
}

.page-news .special-body .news-tags {
  margin-bottom: 10px;
}

.page-news .special-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--news-light);
}

.page-news .special-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(224, 225, 221, .68);
}

.page-news .news-footnote {
  margin-top: 12px;
  padding: 28px 22px;
  border-radius: var(--news-radius);
  background: linear-gradient(120deg, rgba(0, 255, 135, .12), rgba(90, 24, 154, .22));
  text-align: center;
}

.page-news .news-footnote p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(224, 225, 221, .8);
}

.page-news .news-footnote-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .page-news .special-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-news .special-card:last-child {
    grid-column: 1 / -1;
  }

  .page-news .special-card:last-child .special-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px 20px;
  }

  .page-news .special-card:last-child .special-body h3 {
    grid-column: 1;
  }

  .page-news .special-card:last-child .special-body p {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (min-width: 992px) {
  .page-news .news-layout-shell {
    padding: 0 40px 80px;
  }

  .page-news .news-masthead {
    padding-left: 32px;
    padding-top: 34px;
    margin-bottom: 50px;
  }

  .page-news .news-lead {
    font-size: 17px;
  }

  .page-news .news-main-grid {
    grid-template-columns: var(--news-rail-w) minmax(0, 1fr);
  }

  .page-news .news-rail {
    order: 1;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .page-news .news-content {
    order: 2;
  }

  .page-news .news-section {
    margin-bottom: 84px;
  }

  .page-news .news-section-index {
    font-size: 14px;
  }

  .page-news .news-section-head h2 {
    font-size: 34px;
  }

  .page-news .news-tabs-list {
    flex-wrap: nowrap;
  }

  .page-news .news-featured {
    margin-bottom: 34px;
  }

  .page-news .news-featured-media img {
    aspect-ratio: 2 / 1;
  }

  .page-news .news-featured-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 64px 28px 26px;
    background: linear-gradient(0deg, rgba(13, 27, 42, .94) 30%, rgba(13, 27, 42, .38) 74%, transparent);
  }

  .page-news .news-list-content h3 {
    font-size: 18px;
  }

  .page-news .changelog-btn.accordion-btn {
    padding: 20px 24px;
  }

  .page-news .changelog-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 26px 28px;
  }

  .page-news .changelog-foot p {
    max-width: 640px;
  }

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

  .page-news .special-card:last-child {
    grid-column: auto;
  }

  .page-news .special-card:last-child .special-body {
    display: block;
  }

  .page-news .news-footnote {
    clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 44px 100%, 0 calc(100% - 44px));
    padding: 44px 30px;
  }
}
