.page-news {
  --news-gutter: clamp(16px, 3.4vw, 44px);
  --news-rule: 1px solid rgba(39, 70, 108, 0.7);
  --news-soft: rgba(12, 31, 58, 0.72);
}

.page-news .read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(39, 70, 108, 0.5);
  z-index: 40;
}
.page-news .read-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--signal-600), var(--signal-400));
}

.page-news .shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--news-gutter);
}

/* ---------- hero ---------- */
.page-news .notes-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-mid);
  padding-block: clamp(20px, 4vw, 46px) clamp(28px, 4vw, 52px);
  border-bottom: var(--news-rule);
}

.page-news .notes-hero__kicker {
  margin-bottom: 14px;
}

.page-news .notes-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 62px);
  line-height: 1.02;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ice-050);
  margin: 0 0 16px;
  text-wrap: balance;
}
.page-news .notes-hero__title em {
  font-style: italic;
  color: var(--signal-400);
}

.page-news .notes-hero__lede {
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.75;
  color: var(--steel-400);
  max-width: 46ch;
  margin: 0 0 22px;
}

.page-news .notes-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .notes-hero__media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: var(--news-rule);
}
.page-news .notes-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 38, 0.1), rgba(7, 19, 38, 0.75));
  pointer-events: none;
}
.page-news .notes-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}
.page-news .notes-hero__media .media-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 1;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel-400);
}

.page-news .notes-hero__strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.page-news .notes-hero__stat {
  background: var(--ink-800);
  border: var(--news-rule);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page-news .notes-hero__stat--heat {
  background: linear-gradient(160deg, rgba(255, 107, 53, 0.16), rgba(12, 31, 58, 0.9));
  border-color: rgba(255, 107, 53, 0.45);
}
.page-news .notes-hero__stat-num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  color: var(--signal-400);
  line-height: 1;
}
.page-news .notes-hero__stat--heat .notes-hero__stat-num {
  color: var(--heat-500);
}
.page-news .notes-hero__stat-num small {
  font-size: 12px;
  margin-left: 3px;
  color: var(--steel-400);
  font-weight: 500;
}
.page-news .notes-hero__stat-label {
  font-size: 12.5px;
  color: var(--steel-400);
  line-height: 1.4;
}

/* ---------- section head ---------- */
.page-news .section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}
.page-news .section-head__index {
  grid-row: span 2;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--line-600);
}
.page-news .section-head__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.1;
  color: var(--ice-050);
  margin: 0;
}
.page-news .section-head__note {
  grid-column: 2;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--steel-400);
}

/* ---------- focus ---------- */
.page-news .focus {
  padding-block: clamp(30px, 5vw, 58px) clamp(24px, 4vw, 44px);
}

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

.page-news .focus-lead {
  grid-column: 1 / -1;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 107, 53, 0.22), transparent 60%),
    var(--ink-700);
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.page-news .focus-lead__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 3.4vw, 31px);
  line-height: 1.16;
  color: var(--ice-050);
  margin: 0;
}
.page-news .focus-lead__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(242, 247, 255, 0.82);
  max-width: 58ch;
}
.page-news .focus-lead__link {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--heat-500);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.page-news .focus-lead__link:hover,
.page-news .focus-lead__link:focus-visible {
  border-bottom-color: var(--heat-500);
}

.page-news .focus-side {
  background: var(--ink-800);
  border: var(--news-rule);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}
.page-news .focus-side:hover {
  transform: translateY(-3px);
  border-color: var(--line-600);
}
.page-news .focus-side--bare {
  background: transparent;
}
.page-news .focus-side__title {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ice-050);
  margin: 0;
}
.page-news .focus-side__excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--steel-400);
}
.page-news .focus-side__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--signal-400);
  text-decoration: none;
}
.page-news .focus-side__link:hover,
.page-news .focus-side__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- archive ---------- */
.page-news .archive {
  padding-block: clamp(26px, 4vw, 50px);
  scroll-margin-top: 80px;
}

.page-news .archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-mid);
}

.page-news .archive-index {
  background: var(--ink-800);
  border: var(--news-rule);
  border-radius: var(--radius-md);
  padding: 18px;
  align-self: start;
}
.page-news .archive-index__label {
  margin: 0 0 12px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.page-news .archive-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-news .archive-index__link {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-600);
  font-size: 13px;
  color: var(--steel-400);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.page-news .archive-index__link:hover,
.page-news .archive-index__link:focus-visible {
  color: var(--ice-050);
  border-color: var(--signal-600);
}
.page-news .archive-index__link.is-active {
  background: var(--signal-400);
  border-color: var(--signal-400);
  color: var(--ink-900);
  font-weight: 700;
}
.page-news .archive-index__hint {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: var(--news-rule);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--steel-400);
}
.page-news .archive-index__hint div {
  display: inline;
  color: var(--signal-400);
}

.page-news .archive-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-news .entry {
  position: relative;
  padding: 18px 16px 18px 18px;
  border-bottom: var(--news-rule);
  transition: background 0.22s var(--ease);
}
.page-news .entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: transparent;
  transition: background 0.22s var(--ease);
}
.page-news .entry:hover {
  background: rgba(20, 52, 92, 0.35);
}
.page-news .entry:hover::before {
  background: var(--signal-400);
}
.page-news .entry__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.page-news .entry__tag {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-600);
  color: var(--steel-400);
}
.page-news .entry__tag--pre {
  color: var(--signal-400);
  border-color: rgba(182, 255, 59, 0.4);
}
.page-news .entry__tag--stats {
  color: var(--heat-500);
  border-color: rgba(255, 107, 53, 0.4);
}
.page-news .entry__tag--version {
  color: var(--confirm-400);
  border-color: rgba(43, 232, 197, 0.4);
}
.page-news .entry__tag--class {
  color: var(--warn-500);
  border-color: rgba(255, 176, 32, 0.4);
}
.page-news .entry__time {
  font-size: 12px;
  color: var(--steel-400);
}
.page-news .entry__title {
  font-size: clamp(16.5px, 2.2vw, 20px);
  line-height: 1.4;
  font-weight: 700;
  color: var(--ice-050);
  margin: 0 0 8px;
}
.page-news .entry__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--steel-400);
  max-width: 72ch;
}
.page-news .entry__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--steel-400);
}
.page-news .entry__sep {
  color: var(--line-600);
}
.page-news .entry--wide .entry__excerpt {
  font-size: 14.5px;
}
.page-news .entry--quiet {
  opacity: 0.92;
}
.page-news .entry--quiet .entry__title {
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 600;
}

/* ---------- topics rail ---------- */
.page-news .topics {
  padding-block: clamp(26px, 4vw, 48px);
  scroll-margin-top: 80px;
}
.page-news .topics-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.page-news .topics-rail::-webkit-scrollbar {
  height: 6px;
}
.page-news .topics-rail::-webkit-scrollbar-thumb {
  background: var(--line-600);
  border-radius: var(--radius-pill);
}

.page-news .topic-card {
  flex: 0 0 min(86%, 480px);
  scroll-snap-align: start;
  background: var(--ink-700);
  border: var(--news-rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 90px;
}
.page-news .topic-card__media {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}
.page-news .topic-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
}
.page-news .topic-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.page-news .topic-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(19px, 2.8vw, 25px);
  line-height: 1.16;
  color: var(--ice-050);
  margin: 0;
}
.page-news .topic-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(242, 247, 255, 0.8);
}
.page-news .topic-card__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.page-news .topic-card__points li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel-400);
}
.page-news .topic-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-600);
}

/* ---------- spotlight ---------- */
.page-news .spotlight {
  padding-block: clamp(26px, 4vw, 52px);
}
.page-news .spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-mid);
}
.page-news .spotlight-text p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(242, 247, 255, 0.84);
  margin: 0 0 16px;
}
.page-news .spotlight-text p:last-child {
  margin-bottom: 0;
}
.page-news .spotlight-aside {
  background: var(--ink-800);
  border: var(--news-rule);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.page-news .spotlight-aside__title {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-400);
}
.page-news .spotlight-faq {
  margin: 0;
}
.page-news .spotlight-faq__row {
  padding: 12px 0;
  border-top: 1px dashed rgba(39, 70, 108, 0.9);
}
.page-news .spotlight-faq__row:first-child {
  border-top: 0;
  padding-top: 0;
}
.page-news .spotlight-faq dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--ice-050);
  margin-bottom: 5px;
}
.page-news .spotlight-faq dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--steel-400);
}

/* ---------- version ---------- */
.page-news .version {
  padding-block: clamp(26px, 4vw, 52px);
  scroll-margin-top: 80px;
}
.page-news .version-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-mid);
}
.page-news .version-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--news-rule);
}
.page-news .version-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-news .version-media .media-frame__caption {
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--steel-400);
  background: var(--ink-800);
}

.page-news .version-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
  position: relative;
}
.page-news .version-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--signal-600), var(--line-600));
}
.page-news .version-node {
  position: relative;
  padding: 0 0 22px 6px;
}
.page-news .version-node:last-child {
  padding-bottom: 0;
}
.page-news .version-node::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--signal-400);
}
.page-news .version-node--muted::before {
  border-color: var(--steel-400);
}
.page-news .version-node__ver {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--signal-400);
  margin-bottom: 6px;
}
.page-news .version-node--muted .version-node__ver {
  color: var(--steel-400);
}
.page-news .version-node__title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ice-050);
  margin: 0 0 6px;
}
.page-news .version-node__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--steel-400);
}

/* ---------- next ---------- */
.page-news .next {
  padding-block: clamp(26px, 4vw, 60px) clamp(36px, 5vw, 64px);
}
.page-news .next-panel {
  background:
    radial-gradient(110% 160% at 0% 0%, rgba(182, 255, 59, 0.14), transparent 62%),
    var(--ink-700);
  border: 1px solid rgba(182, 255, 59, 0.28);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.page-news .next-panel__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(23px, 3.8vw, 36px);
  line-height: 1.1;
  color: var(--ice-050);
  margin: 0;
}
.page-news .next-panel__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(242, 247, 255, 0.84);
  max-width: 62ch;
}
.page-news .next-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.page-news .next-panel__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--steel-400);
  padding-top: 12px;
  border-top: var(--news-rule);
  width: 100%;
}

/* ---------- reveal ---------- */
.page-news [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.page-news [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .page-news [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-news .focus-side:hover {
    transform: none;
  }
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .page-news .notes-hero__strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-news .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-news .focus-lead {
    grid-column: 1 / -1;
  }
  .page-news .archive-index__list {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-news .entry {
    padding: 20px 20px 20px 22px;
  }
  .page-news .version-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  .page-news .notes-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "text media"
      "strip media";
    column-gap: clamp(24px, 3vw, 44px);
    row-gap: 18px;
    align-items: start;
  }
  .page-news .notes-hero__text {
    grid-area: text;
  }
  .page-news .notes-hero__media {
    grid-area: media;
    height: 100%;
    min-height: 300px;
  }
  .page-news .notes-hero__strip {
    grid-area: strip;
    align-self: end;
  }
  .page-news .notes-hero__lede {
    font-size: 17px;
  }

  .page-news .focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "lead lead side1"
      "lead lead side2"
      "side3 . .";
    align-items: stretch;
  }
  .page-news .focus-lead {
    grid-area: lead;
    justify-content: center;
  }
  .page-news .focus-side:nth-of-type(2) {
    grid-area: side1;
  }
  .page-news .focus-side:nth-of-type(3) {
    grid-area: side2;
  }
  .page-news .focus-side:nth-of-type(4) {
    grid-area: side3;
  }

  .page-news .archive-layout {
    grid-template-columns: minmax(190px, 3fr) minmax(0, 9fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
  }
  .page-news .archive-index {
    position: sticky;
    top: 88px;
  }
  .page-news .entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 22px;
    padding: 22px 20px 22px 24px;
  }
  .page-news .entry__meta {
    grid-column: 1;
    margin-bottom: 6px;
  }
  .page-news .entry__title {
    grid-column: 1;
  }
  .page-news .entry__excerpt {
    grid-column: 1;
  }
  .page-news .entry__foot {
    grid-column: 2;
    grid-row: 1 / span 3;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0;
    padding-left: 14px;
    border-left: var(--news-rule);
    min-width: 92px;
  }
  .page-news .entry__sep {
    display: none;
  }
  .page-news .entry--wide {
    background: rgba(20, 52, 92, 0.28);
  }

  .page-news .topic-card {
    flex-basis: min(46%, 520px);
    flex-direction: row;
    align-items: stretch;
  }
  .page-news .topic-card__media {
    flex: 0 0 42%;
  }
  .page-news .topic-card__media img {
    height: 100%;
    aspect-ratio: auto;
  }
  .page-news .topic-card__body {
    padding: 22px;
  }

  .page-news .spotlight-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 3vw, 42px);
    align-items: start;
  }
  .page-news .spotlight-text p {
    font-size: 16px;
  }

  .page-news .version-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(24px, 3vw, 44px);
  }
  .page-news .version-media {
    position: sticky;
    top: 88px;
  }
}
