.page-news {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  overflow-x: hidden;
}
.page-news .page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(15, 17, 21, 0.18);
}
.page-news [id] {
  scroll-margin-top: 24px;
}

.news-masthead {
  background: var(--deep-slate);
  color: var(--paper);
  padding: 28px 0 22px;
  border-bottom: 6px solid var(--amber);
}
.page-news .breadcrumbs {
  margin: 0 0 18px;
  font-size: 13px;
}
.news-masthead .breadcrumbs a {
  color: var(--update-green);
  text-decoration: none;
  font-weight: 600;
}
.news-masthead .breadcrumbs span[aria-current="page"] {
  color: rgba(255, 253, 247, 0.75);
}
.news-masthead h1 {
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--paper);
}
.news-masthead__sepline {
  color: var(--amber);
  margin: 0 8px;
}
.news-masthead__lead {
  margin: 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 253, 247, 0.85);
}
.news-masthead__lead strong {
  color: var(--update-green);
  font-weight: 700;
}
.news-masthead__figure {
  margin-top: 20px;
  padding: 10px;
  background-image: radial-gradient(rgba(255, 253, 247, 0.18) 1px, transparent 1px);
  background-size: 14px 14px;
  border: 1px solid rgba(255, 253, 247, 0.18);
}
.news-masthead__figure img {
  mix-blend-mode: lighten;
  border: 0;
}

.page-news__section {
  padding: 40px 0 48px;
}
.page-news__section + .page-news__section {
  border-top: 1px solid rgba(15, 17, 21, 0.18);
}
.page-news__section--timeline {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(15, 17, 21, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.page-news__section--tags {
  background-color: var(--light-gray);
  background-image: linear-gradient(rgba(15, 17, 21, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 17, 21, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-news__section--versions {
  background-color: var(--cream);
}
.page-news__section--archive {
  background: var(--deep-slate);
  border-top: 8px solid var(--amber);
  color: var(--paper);
}

.page-news .section-head {
  margin-bottom: 20px;
}
.page-news .section-kicker {
  display: inline-block;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
  text-transform: uppercase;
}
.page-news .section-title {
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  font-weight: 900;
}
.section-sub {
  margin-top: 6px;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(15, 17, 21, 0.75);
}

.news-series-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}
.series-key-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
}
.series-key-item b {
  font-family: var(--font-data);
  font-size: 13px;
}
.series-key-item__dot {
  width: 10px;
  height: 10px;
  display: inline-block;
}
.series-key-item__dot--a {
  background: var(--signal-orange);
}
.series-key-item__dot--b {
  background: var(--teal);
}
.series-key-item__dot--c {
  background: var(--violet);
}
.series-key-item__total {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.news-timeline {
  display: flex;
  flex-direction: column;
}
.news-timeline__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 14px;
  margin-bottom: 22px;
  align-items: stretch;
}
.news-timeline__row:last-child {
  margin-bottom: 0;
}
.news-timeline__node-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
}
.news-timeline__node-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -22px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: var(--ink);
  opacity: 0.22;
}
.news-timeline__row:last-child .news-timeline__node-wrap::before {
  bottom: 20px;
}
.news-timeline__node {
  width: 14px;
  height: 14px;
  background: var(--amber);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--cream);
}
.news-timeline__node--now {
  background: var(--update-green);
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px rgba(94, 220, 76, 0.3);
}
.news-timeline__node--recent {
  background: var(--amber);
}
.news-timeline__node--past {
  background: var(--light-gray);
}
.news-timeline__tag {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  color: rgba(15, 17, 21, 0.7);
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
}

.batch-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(15, 17, 21, 0.12);
  padding: 15px 14px;
}
.batch-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.batch-card__id {
  font-family: var(--font-data);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.batch-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.batch-card__count {
  font-family: var(--font-data);
  font-size: 12px;
  color: rgba(15, 17, 21, 0.65);
}
.batch-card__link {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid var(--teal);
  padding: 2px 6px;
}
.batch-card__note {
  margin: 12px 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  background: var(--cream);
  border-left: 4px solid var(--signal-orange);
  padding: 6px 10px;
}
.batch-card__record-list {
  margin-top: 6px;
}

.record-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(15, 17, 21, 0.2);
}
.record-item:last-child {
  border-bottom: 0;
}
.record-series {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
}
.record-series--a {
  background: var(--signal-orange);
}
.record-series--b {
  background: var(--teal);
}
.record-series--c {
  background: var(--violet);
}
.record-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.record-tag {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(15, 17, 21, 0.65);
  background: var(--light-gray);
  padding: 2px 6px;
  border: 1px solid transparent;
}

.batch-card__more {
  margin-top: 10px;
  border-top: 1px solid var(--ink);
  padding-top: 10px;
}
.batch-card__more summary {
  cursor: pointer;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}
.score-compare {
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-data);
  font-size: 12px;
}
.score-compare__row {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) repeat(6, minmax(38px, 1fr));
  gap: 4px;
  padding: 7px 8px;
  align-items: center;
}
.score-compare__row + .score-compare__row {
  border-top: 1px dashed rgba(15, 17, 21, 0.18);
}
.score-compare__row--head {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.score-compare__row > span:first-child {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.score-compare__row > span:not(:first-child) {
  text-align: center;
}

.news-tags-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-tags-layout__main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.news-tags-layout__figure {
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 12px;
  align-self: stretch;
}
.news-tags-layout__figure img {
  width: 100%;
  height: auto;
  display: block;
}
.news-tags-layout__caption {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 8px;
  color: rgba(15, 17, 21, 0.8);
}

.tune-group__title {
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 8px;
  border-left: 6px solid var(--teal);
  padding-left: 10px;
}
.tune-group__title--add {
  border-left-color: var(--update-green);
}
.tune-group__title--merge {
  border-left-color: var(--signal-orange);
}
.tune-group__title--alias {
  border-left-color: var(--violet);
}
.tune-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(56px, auto) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(15, 17, 21, 0.15);
  font-size: 13px;
}
.tune-row:last-child {
  border-bottom: 0;
}
.tune-row__name {
  min-width: 0;
}
.tune-row__action {
  justify-self: start;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--light-gray);
  color: var(--ink);
  text-align: center;
}
.tune-row__action--add {
  background: var(--update-green);
  color: var(--ink);
}
.tune-row__action--merge {
  background: var(--signal-orange);
  color: var(--ink);
}
.tune-row__action--alias {
  background: var(--violet);
  color: #fff;
}
.tune-row__batch {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 6px;
  white-space: nowrap;
}

.news-versions-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
.version-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-top: 6px solid var(--ink);
  padding: 16px;
  box-shadow: 4px 4px 0 rgba(15, 17, 21, 0.1);
}
.version-card--active {
  border-top-color: var(--update-green);
}
.version-card__version {
  font-family: var(--font-data);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.version-card__batch {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-data);
  font-size: 11px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  padding: 2px 6px;
}
.version-card ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.version-card li {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(15, 17, 21, 0.2);
  font-size: 13px;
  line-height: 1.6;
  align-items: baseline;
}
.module-tag {
  flex: 0 0 auto;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  background: var(--light-gray);
  color: var(--ink);
  padding: 1px 5px;
}

.news-upgrade {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
  padding: 14px;
  background: var(--ink);
}
.news-upgrade__figure img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 253, 247, 0.25);
}
.news-adapter {
  display: grid;
  gap: 1px;
  background: var(--ink);
}
.news-adapter__cell {
  background: var(--light-gray);
  color: var(--ink);
  padding: 12px;
}
.news-adapter__label {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.news-adapter__value {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 2px;
  font-weight: 600;
}

.page-news__section--archive .section-kicker {
  color: var(--amber);
  border-bottom-color: var(--amber);
}
.page-news__section--archive .section-title {
  color: var(--paper);
}

.news-archive-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border: 1px solid rgba(255, 253, 247, 0.3);
  background: rgba(255, 253, 247, 0.06);
  padding: 20px;
}
.news-archive-card__figure {
  max-width: 200px;
}
.news-archive-card__figure img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 253, 247, 0.3);
}
.news-archive-card__label {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.news-archive-card__count {
  font-family: var(--font-data);
  font-size: 64px;
  font-weight: 700;
  line-height: 0.95;
  color: var(--update-green);
  margin-top: 6px;
}
.news-archive-card__unit {
  font-size: 24px;
  margin-left: 4px;
}
.news-archive-card__desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 253, 247, 0.8);
  max-width: 600px;
}
.news-archive-card__desc strong {
  color: var(--paper);
}
.page-news__section--archive .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
}
.page-news__section--archive .btn-primary {
  background: var(--update-green);
  color: var(--ink);
  border-color: var(--ink);
}

.archive-preview {
  border-top: 1px solid rgba(255, 253, 247, 0.2);
  margin-top: 4px;
  padding-top: 8px;
}
.archive-preview summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--amber);
  font-size: 13px;
}
.archive-preview__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.archive-preview__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 253, 247, 0.2);
  font-size: 13px;
}
.archive-preview__series {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.archive-preview__series--a {
  background: var(--signal-orange);
}
.archive-preview__series--b {
  background: var(--teal);
}
.archive-preview__series--c {
  background: var(--violet);
}
.archive-preview__score {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--update-green);
}

.news-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 247, 0.2);
}
.news-related > span {
  font-weight: 700;
  font-size: 14px;
  margin-right: auto;
  color: var(--paper);
}

@media (min-width: 768px) {
  .news-masthead {
    padding: 40px 0 28px;
  }
  .news-masthead h1 {
    font-size: 34px;
  }
  .news-masthead__lead {
    font-size: 15px;
  }
  .page-news__section {
    padding: 52px 0 64px;
  }
  .page-news .section-title {
    font-size: 28px;
  }
  .news-timeline__row {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 22px;
  }
  .news-timeline__tag {
    writing-mode: horizontal-tb;
  }
  .batch-card {
    padding: 20px;
    box-shadow: 8px 8px 0 rgba(15, 17, 21, 0.12);
  }
  .batch-card__id {
    font-size: 34px;
  }
  .record-name {
    font-size: 15px;
  }
  .news-archive-card {
    grid-template-columns: 200px 1fr;
  }
  .news-archive-card .archive-preview {
    grid-column: 1 / -1;
  }
}

@media (min-width: 840px) {
  .news-versions-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  .news-upgrade {
    grid-template-columns: 260px 1fr;
  }
}

@media (min-width: 960px) {
  .news-tags-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .news-tags-layout__main {
    flex: 1 1 auto;
  }
  .news-tags-layout__figure {
    flex: 0 0 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news {
    scroll-behavior: auto;
  }
}
