.page-news {
  --news-rail: 220px;
  --news-card: var(--panel);
  --news-soft: rgba(31, 79, 168, 0.06);
  --news-red-soft: rgba(200, 58, 46, 0.07);
  --news-shadow: 0 10px 28px rgba(17, 24, 32, 0.08);
  padding-bottom: clamp(52px, 8vw, 96px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}

.page-news .news-top {
  padding-top: clamp(16px, 3vw, 28px);
}

.page-news .news-head {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 42px) 0 clamp(28px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.page-news .news-head::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 76px;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0 48%, var(--blue) 48% 100%);
}

.page-news .news-head__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-news .news-head__stamp {
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
}

.page-news .news-head h1 {
  max-width: 15em;
  margin: 14px 0 16px;
  font-size: clamp(34px, 7.2vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-news .news-lede {
  max-width: 44em;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.78;
}

.page-news .news-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.page-news .news-status__clock {
  margin-left: 2px;
  color: var(--ink-2);
  font-size: 12px;
}

.page-news .news-layout {
  display: grid;
  gap: 24px;
  padding-top: clamp(22px, 4vw, 40px);
}

.page-news .news-filter {
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-news .news-filter__title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: var(--mono-track);
}

.page-news .news-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .news-filter__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-news .news-filter__link .rb-mono {
  color: var(--gold);
  font-size: 11px;
}

.page-news .news-filter__link:hover,
.page-news .news-filter__link:focus-visible {
  border-color: var(--line);
  background: var(--paper);
  outline: none;
}

.page-news .news-filter__note {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
}

.page-news .news-filter__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.page-news .news-log {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 6vw, 64px);
  min-width: 0;
}

.page-news .news-section {
  scroll-margin-top: calc(var(--topbar-h) + 18px);
  min-width: 0;
}

.page-news .news-section__head {
  --section-accent: var(--line);
  padding-top: 14px;
  border-top: 2px solid var(--section-accent);
}

.page-news .news-section--version .news-section__head {
  --section-accent: var(--blue);
}

.page-news .news-section--transfer .news-section__head {
  --section-accent: var(--red);
}

.page-news .news-section--calibration .news-section__head {
  --section-accent: var(--gold);
}

.page-news .news-section--topics .news-section__head {
  --section-accent: var(--ink);
}

.page-news .news-section--return .news-section__head {
  --section-accent: var(--cyan);
}

.page-news .news-section__head .rb-index {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: var(--mono-track);
}

.page-news .news-section__head h2 {
  max-width: 18em;
  margin: 0 0 10px;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.page-news .news-section__head p {
  max-width: 48em;
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.75;
}

.page-news .news-media,
.page-news .news-chart {
  margin: 20px 0 0;
}

.page-news .news-media {
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

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

.page-news .news-media__cap {
  padding: 8px 4px 2px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.page-news .news-entries {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.page-news .news-entry {
  --entry: var(--ink);
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.page-news .news-entry--blue {
  --entry: var(--blue);
}

.page-news .news-entry--red {
  --entry: var(--red);
}

.page-news .news-entry--gold {
  --entry: var(--gold);
}

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

.page-news .news-entry:last-child::before {
  display: none;
}

.page-news .news-entry__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--entry);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.page-news .news-entry__main {
  min-width: 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--entry);
  background: var(--news-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-news .news-entry:hover .news-entry__main {
  transform: translateY(-2px);
  box-shadow: var(--news-shadow);
}

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

.page-news .news-entry__time {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.page-news .news-entry h3 {
  margin: 0 0 6px;
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  line-height: 1.45;
}

.page-news .news-entry p {
  max-width: 64em;
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.72;
}

.page-news .news-entry__more {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.page-news .news-entry__more summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--entry);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

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

.page-news .news-entry__more summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.page-news .news-entry__more[open] summary::before {
  content: "–";
}

.page-news .news-entry__body {
  padding: 10px 0 0;
}

.page-news .news-entry__body dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.page-news .news-entry__body dl > div {
  display: grid;
  gap: 2px;
}

.page-news .news-entry__body dt {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.page-news .news-entry__body dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.page-news .news-transfer-tags {
  margin: 18px 0 0;
}

.page-news .news-chart {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-news .news-chart svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.page-news .news-chart figcaption {
  padding-top: 8px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.page-news .news-chart__grid line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0.75;
}

.page-news .news-chart__axis {
  stroke: var(--line);
  stroke-width: 1.5;
}

.page-news .news-chart__red {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-news .news-chart__blue {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-news .news-chart__dot--red {
  fill: var(--red);
}

.page-news .news-chart__dot--blue {
  fill: var(--blue);
}

.page-news .news-chart__label text,
.page-news .news-chart__legend text {
  fill: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.page-news .news-topics-layout {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.page-news .news-media--tall img {
  aspect-ratio: 3 / 4;
}

.page-news .news-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
}

.page-news .news-topic {
  --topic: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 142px;
  padding: 13px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--topic);
  background: var(--news-card);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.page-news .news-topic--blue {
  --topic: var(--blue);
}

.page-news .news-topic--red {
  --topic: var(--red);
}

.page-news .news-topic--gold {
  --topic: var(--gold);
}

.page-news .news-topic--cyan {
  --topic: var(--cyan);
}

.page-news .news-topic--ink {
  --topic: var(--ink);
}

.page-news .news-topic:hover,
.page-news .news-topic:focus-visible {
  transform: translateY(-2px);
  background: var(--paper);
  box-shadow: var(--news-shadow);
  outline: none;
}

.page-news .news-topic__k {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.page-news .news-topic h3 {
  margin: 6px 0 5px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.page-news .news-topic p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.62;
}

.page-news .news-topic__go {
  margin-top: auto;
  color: var(--topic);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.page-news .news-return {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}

.page-news .news-return__panel {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-news .news-return__panel--red {
  border-top: 4px solid var(--red);
  background: linear-gradient(180deg, var(--news-red-soft), var(--panel) 34%);
}

.page-news .news-return__panel--blue {
  border-top: 4px solid var(--blue);
  background: linear-gradient(180deg, var(--news-soft), var(--panel) 34%);
}

.page-news .news-return__panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.page-news .news-return__panel p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.72;
}

.page-news .news-return__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media (min-width: 640px) {
  .page-news .news-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-news .news-layout {
    grid-template-columns: var(--news-rail) minmax(0, 1fr);
    gap: 36px;
  }

  .page-news .news-filter {
    position: sticky;
    top: calc(var(--topbar-h) + 18px);
  }

  .page-news .news-filter__list {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .page-news .news-filter__link {
    width: 100%;
  }

  .page-news .news-topics-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }

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

@media (min-width: 1180px) {
  .page-news .news-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-entry__main,
  .page-news .news-topic,
  .page-news .news-filter__link {
    transition: none;
  }

  .page-news .news-entry:hover .news-entry__main,
  .page-news .news-topic:hover,
  .page-news .news-topic:focus-visible {
    transform: none;
  }
}
