.page-news {
  --news-rail: 208px;
  --news-gap: clamp(22px, 3vw, 34px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

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

/* ---------- Hero ---------- */
.page-news .news-hero {
  display: grid;
  gap: clamp(20px, 4vw, 36px);
  margin-top: clamp(18px, 3vw, 32px);
  align-items: start;
}

.page-news .news-hero__copy {
  min-width: 0;
}

.page-news .news-hero__copy h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 5.4vw, 46px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--white);
}

.page-news .news-hero__lead {
  margin: 16px 0 0;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--grey);
  max-width: 46em;
}

.page-news .hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.page-news .chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 2px solid var(--steel);
  background: var(--panel-2);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.page-news .chip:hover,
.page-news .chip:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
  outline: none;
}

.page-news .hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 2px solid var(--steel);
}

.page-news .hero-stat__num {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: -0.01em;
}

.page-news .hero-stat__unit {
  font-size: 14px;
  margin-left: 2px;
}

.page-news .hero-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey);
}

.page-news .media-frame {
  border: var(--edge);
  background: var(--panel-2);
  overflow: hidden;
  margin: 0;
}

.page-news .news-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-news .media-caption {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--grey);
  border-top: 2px solid var(--steel);
  background: var(--panel-2);
}

/* ---------- Layout ---------- */
.page-news .news-layout {
  display: grid;
  gap: var(--news-gap);
  margin-top: clamp(32px, 5vw, 56px);
}

.page-news .news-index {
  border: var(--edge);
  background: var(--panel-2);
  padding: 14px 16px;
  min-width: 0;
}

.page-news .news-index__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-news .news-index__link {
  display: inline-block;
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid var(--steel);
  color: var(--grey);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.page-news .news-index__link:hover,
.page-news .news-index__link:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  outline: none;
}

.page-news .news-stream {
  display: grid;
  gap: var(--news-gap);
  min-width: 0;
}

/* ---------- Panels ---------- */
.page-news .news-panel {
  padding: clamp(16px, 3vw, 28px);
  min-width: 0;
}

.page-news .news-panel > .panel__head {
  position: static;
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--steel);
}

.page-news .panel__index {
  position: static;
  justify-self: start;
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  background: var(--cyan);
  color: var(--ink);
}

.page-news .news-panel h2 {
  margin: 0;
  font-size: clamp(20px, 3.2vw, 27px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-news .news-panel__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--grey);
  max-width: 52em;
}

/* ---------- Feed ---------- */
.page-news .feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news .feed-list > li {
  border-bottom: 2px solid rgba(45, 74, 102, 0.7);
}

.page-news .feed-list > li:last-child {
  border-bottom: 0;
}

.page-news .feed-item summary {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 2px;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease;
}

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

.page-news .feed-item summary:hover {
  background: rgba(56, 232, 224, 0.04);
}

.page-news .feed-item summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-news .feed-num {
  font-size: 13px;
  color: var(--grey);
  padding-top: 4px;
}

.page-news .feed-main {
  display: block;
  min-width: 0;
}

.page-news .feed-title {
  display: block;
  font-size: 16.5px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--white);
}

.page-news .feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.page-news .tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--steel);
  background: transparent;
  color: var(--grey);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.page-news .tag--version {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

.page-news .tag--update {
  color: var(--orange);
  border-color: var(--orange);
  font-weight: 700;
}

.page-news .tag--alert {
  color: var(--red);
  border-color: var(--red);
  font-weight: 700;
}

.page-news .tag--prob {
  color: var(--lime);
  border-color: var(--lime);
  font-weight: 700;
}

.page-news .feed-plus {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--steel);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.page-news .feed-plus::before {
  content: "+";
}

.page-news .feed-item[open] .feed-plus {
  transform: rotate(45deg);
  border-color: var(--orange);
  color: var(--orange);
}

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

.page-news .feed-body p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--grey);
}

.page-news .feed-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid rgba(56, 232, 224, 0.35);
  padding-bottom: 2px;
}

.page-news .feed-link:hover,
.page-news .feed-link:focus-visible {
  border-bottom-color: var(--cyan);
  outline: none;
}

/* ---------- Track cards ---------- */
.page-news .track-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.page-news .track-card {
  border: var(--edge);
  border-top-width: 6px;
  background: var(--panel-2);
  padding: 18px;
}

.page-news .track-card--beta {
  border-top-color: var(--cyan);
}

.page-news .track-card--stable {
  border-top-color: var(--orange);
}

.page-news .track-card--hotfix {
  border-top-color: var(--red);
}

.page-news .track-card h3 {
  margin: 8px 0 10px;
  font-size: 16.5px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--white);
}

.page-news .track-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--grey);
}

/* ---------- Notices ---------- */
.page-news .notice-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.page-news .notice-row {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 2px solid var(--steel);
}

.page-news .notice-row:first-child {
  border-top: 0;
}

.page-news .notice-time {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--lime);
}

.page-news .notice-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--white);
}

.page-news .notice-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--grey);
}

.page-news .news-band {
  margin-top: 22px;
}

.page-news .news-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Schedule topic ---------- */
.page-news .news-topic {
  border: var(--edge);
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.page-news .news-topic__split {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

.page-news .news-topic__copy {
  min-width: 0;
}

.page-news .news-topic h2 {
  margin: 10px 0 0;
  font-size: clamp(20px, 3.2vw, 27px);
  line-height: 1.28;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

.page-news .news-topic__lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--grey);
}

.page-news .timeline {
  list-style: none;
  margin: 20px 0 0;
  padding: 0 0 0 22px;
  position: relative;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--steel);
}

.page-news .timeline-node {
  position: relative;
  padding-bottom: 18px;
}

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

.page-news .timeline-node::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--cyan);
  box-shadow: 0 0 0 2px var(--ink);
}

.page-news .timeline-node h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--white);
}

.page-news .timeline-node p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--grey);
}

.page-news .news-topic__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- Probability ---------- */
.page-news .news-prob {
  border: var(--edge);
  background: var(--panel-2);
  padding: clamp(16px, 3vw, 28px);
  border-left: 6px solid var(--lime);
  min-width: 0;
}

.page-news .news-prob__split {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

.page-news .news-prob__copy {
  min-width: 0;
}

.page-news .news-prob h2 {
  margin: 10px 0 12px;
  font-size: clamp(20px, 3.2vw, 27px);
  line-height: 1.28;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

.page-news .news-prob__copy > p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--grey);
}

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

.page-news .prob-item {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-left: 3px solid var(--lime);
  background: rgba(168, 255, 96, 0.06);
}

.page-news .prob-item > span:first-child {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white);
}

.page-news .prob-weight {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--lime);
}

.page-news .news-prob__note {
  font-size: 13.5px !important;
  color: var(--grey);
  border-top: 2px solid var(--steel);
  padding-top: 14px;
  margin-top: 4px !important;
}

.page-news .news-prob__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

/* ---------- Follow ---------- */
.page-news .follow-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.page-news .follow-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 2px solid var(--steel);
  background: var(--panel);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.page-news .follow-card:hover,
.page-news .follow-card:focus-visible {
  border-color: var(--cyan);
  transform: translateY(-2px);
  outline: none;
}

.page-news .follow-card__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-news .follow-card__title {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--white);
}

.page-news .follow-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
}

.page-news .follow-note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey);
}

.page-news .news-toplink {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 2px solid var(--steel);
  padding-bottom: 3px;
}

.page-news .news-toplink:hover,
.page-news .news-toplink:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  outline: none;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .page-news .feed-body {
    padding-left: calc(2.2em + 12px);
  }

  .page-news .notice-row {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
  }

  .page-news .prob-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

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

@media (min-width: 900px) {
  .page-news .news-hero {
    grid-template-columns: 7fr 5fr;
  }

  .page-news .news-hero__media img {
    aspect-ratio: 4 / 5;
  }

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

  .page-news .news-topic__split,
  .page-news .news-prob__split {
    grid-template-columns: 7fr 5fr;
  }

  .page-news .split--reverse.news-prob__split {
    grid-template-columns: 5fr 7fr;
  }
}

@media (min-width: 980px) {
  .page-news .news-layout {
    grid-template-columns: var(--news-rail) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
  }

  .page-news .news-index {
    position: sticky;
    top: 92px;
  }

  .page-news .news-index__list {
    flex-direction: column;
    overflow: visible;
  }

  .page-news .news-index__link {
    display: block;
    white-space: normal;
  }
}

@media (min-width: 1180px) {
  .page-news .news-hero__copy h1 {
    font-size: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .chip,
  .page-news .feed-plus,
  .page-news .follow-card,
  .page-news .news-index__link {
    transition: none;
  }

  .page-news .chip:hover,
  .page-news .follow-card:hover {
    transform: none;
  }
}
