.page-news {
  --news-line: #22304A;
  --news-soft: rgba(168, 179, 196, .14);
  --news-ease: cubic-bezier(.22, .61, .36, 1);
  color: var(--mist);
}

.page-news .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-news .news-week,
.page-news .news-versions,
.page-news .news-topics,
.page-news .news-possession,
.page-news .news-notes,
.page-news .news-rhythm {
  padding-top: clamp(44px, 7vw, 92px);
  padding-bottom: clamp(44px, 7vw, 92px);
}

/* ---------- hero ---------- */

.page-news .news-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 5vw, 56px) 0 clamp(40px, 7vw, 96px);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background:
    radial-gradient(130% 150% at 8% -10%, #12233c 0%, var(--ink) 48%, var(--abyss) 100%);
}

.page-news .news-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 32, .48) 0%, rgba(10, 18, 32, .86) 62%, var(--abyss) 100%);
}

.page-news .news-hero-inner {
  position: relative;
  z-index: 1;
}

.page-news .news-hero-kicker {
  display: inline-block;
  margin: clamp(20px, 4vw, 34px) 0 0;
  padding: 6px 14px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.page-news .news-hero h1 {
  margin: 18px 0 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: clamp(32px, 7.4vw, 76px);
  line-height: 1.06;
  color: var(--white);
}

.page-news .news-hero .lede {
  margin: clamp(16px, 2.6vw, 26px) 0 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
  color: var(--mist);
}

.page-news .news-hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: clamp(26px, 4vw, 42px) 0 0;
  padding: 0;
  list-style: none;
}

.page-news .news-hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--news-line);
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(20, 29, 43, .92) 0%, rgba(10, 18, 32, .68) 100%);
}

.page-news .stat-num {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cyan);
}

.page-news .news-hero-stats li:last-child .stat-num {
  color: var(--amber);
}

.page-news .stat-label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.page-news .news-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3.4vw, 34px);
}

/* ---------- section head ---------- */

.page-news .news-head {
  display: flex;
  gap: 14px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.page-news .news-head-body {
  min-width: 0;
}

.page-news .news-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: clamp(23px, 4vw, 40px);
  line-height: 1.16;
  color: var(--white);
}

.page-news .news-sub {
  margin: 0;
  max-width: 64ch;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- sticky index ---------- */

.page-news .news-index {
  border-top: 1px solid var(--news-line);
  border-bottom: 1px solid var(--news-line);
  background: linear-gradient(180deg, rgba(20, 29, 43, .92) 0%, rgba(10, 18, 32, .55) 100%);
}

.page-news .news-index-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-news .news-index-inner::-webkit-scrollbar {
  display: none;
}

.page-news .spy-link {
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid var(--news-line);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--mist);
  text-decoration: none;
  transition: color .16s var(--news-ease), border-color .16s var(--news-ease), background-color .16s var(--news-ease);
}

.page-news .spy-link:hover,
.page-news .spy-link:focus-visible {
  color: var(--white);
  border-color: var(--cyan);
}

.page-news .spy-link[aria-current] {
  color: var(--abyss);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

/* ---------- weekly feed ---------- */

.page-news .news-feed {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--news-line);
}

.page-news .feed-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--news-line);
  position: relative;
  transition: background-color .16s var(--news-ease);
}

.page-news .feed-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .18s var(--news-ease);
}

.page-news .feed-row:hover::before,
.page-news .feed-row:focus-within::before {
  transform: scaleY(1);
}

.page-news .feed-tag {
  grid-column: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--cyan);
}

.page-news .feed-tag--clip,
.page-news .feed-tag--note {
  color: var(--amber);
}

.page-news .feed-tag--howto {
  color: var(--mist);
}

.page-news .feed-tag--observe {
  color: var(--cyan-deep);
}

.page-news .feed-text {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.72;
  color: var(--white);
}

.page-news .feed-time {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
  white-space: nowrap;
}

/* ---------- version log ---------- */

.page-news .version-list {
  border-top: 1px solid var(--news-line);
}

.page-news .version-item {
  border-bottom: 1px solid var(--news-line);
}

.page-news .version-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
}

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

.page-news .version-no {
  flex: 0 0 auto;
  font-size: clamp(19px, 3vw, 27px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--cyan);
}

.page-news .version-item[open] .version-no {
  color: var(--amber);
}

.page-news .version-line {
  flex: 1;
  min-width: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--white);
}

.page-news .version-plus {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s var(--news-ease);
}

.page-news .version-item[open] .version-plus {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.page-news .version-body {
  padding: 0 2px 22px;
  max-width: 68ch;
}

.page-news .version-body p {
  margin: 0 0 12px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.8;
  color: var(--mist);
}

.page-news .version-impact {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--news-line);
  font-size: 13px;
  color: var(--cyan);
}

/* ---------- topic rail ---------- */

.page-news .news-topics {
  background: linear-gradient(180deg, rgba(7, 12, 20, .55) 0%, rgba(10, 18, 32, 0) 100%);
}

.page-news .news-rail {
  padding-bottom: 8px;
}

.page-news .news-topic-track {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: 4px 2px 22px;
  list-style: none;
}

.page-news .topic-card {
  flex: 0 0 min(320px, 80vw);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--news-line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(20, 29, 43, .96) 0%, rgba(10, 18, 32, .84) 100%);
  transition: border-color .16s var(--news-ease), transform .16s var(--news-ease);
}

.page-news .topic-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.page-news .topic-card:nth-child(2) {
  margin-top: 20px;
}

.page-news .topic-card:nth-child(3) {
  margin-top: 40px;
}

.page-news .topic-media img {
  display: block;
  width: 100%;
  height: 172px;
  object-fit: cover;
}

.page-news .topic-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.page-news .topic-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.4;
  color: var(--white);
}

.page-news .topic-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-news .topic-meta {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--news-line);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
}

/* ---------- possession ---------- */

.page-news .news-poss-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.page-news .news-poss-copy > p {
  margin: 0 0 16px;
  max-width: 64ch;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.85;
  color: var(--mist);
}

.page-news .news-poss-copy .news-title {
  margin-top: 14px;
}

.page-news .band-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--news-line);
}

.page-news .band-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--news-line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-news .band-key {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.page-news .band-list li:first-child .band-key,
.page-news .band-list li:last-child .band-key {
  color: var(--amber);
}

.page-news .news-poss-figure {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--news-line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(20, 29, 43, .92) 0%, rgba(10, 18, 32, .7) 100%);
}

.page-news .news-poss-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
}

.page-news .band-bar {
  display: flex;
  gap: 3px;
  height: 16px;
  margin-top: 20px;
  border-radius: 999px;
  overflow: hidden;
}

.page-news .band-bar span {
  display: block;
  border-radius: 2px;
}

.page-news .band-bar span:nth-child(1),
.page-news .band-bar span:nth-child(5) {
  flex: 35;
  background: linear-gradient(90deg, var(--amber), #ffb37a);
}

.page-news .band-bar span:nth-child(2),
.page-news .band-bar span:nth-child(4) {
  flex: 10;
  background: var(--cyan-deep);
}

.page-news .band-bar span:nth-child(3) {
  flex: 10;
  background: var(--cyan);
}

.page-news .band-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--mist);
}

.page-news .news-poss-figure figcaption {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- editor's note ---------- */

.page-news .news-notes {
  background: linear-gradient(180deg, rgba(7, 12, 20, .5) 0%, rgba(10, 18, 32, 0) 100%);
}

.page-news .news-notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-news .news-notes-text .news-title {
  margin-top: 14px;
}

.page-news .news-notes-text p {
  margin: 0 0 16px;
  max-width: 62ch;
  font-size: clamp(14px, 1.5vw, 16.5px);
  line-height: 1.85;
  color: var(--mist);
}

.page-news .news-notes-text a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 230, 208, .4);
}

.page-news .news-notes-text a:hover,
.page-news .news-notes-text a:focus-visible {
  border-bottom-color: var(--cyan);
}

.page-news .news-notes-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--news-line);
  border-radius: var(--r-lg);
  background: rgba(20, 29, 43, .72);
}

.page-news .news-notes-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
}

.page-news .news-notes-figure figcaption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- rhythm ---------- */

.page-news .rhythm-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--news-line);
}

.page-news .rhythm-node {
  position: relative;
  padding: 22px 2px 22px 26px;
  border-bottom: 1px solid var(--news-line);
}

.page-news .rhythm-node::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--news-line);
}

.page-news .rhythm-dot {
  position: absolute;
  left: 1px;
  top: 28px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 230, 208, .14);
}

.page-news .rhythm-dot--warm {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, .16);
}

.page-news .rhythm-key {
  display: block;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-news .rhythm-node:nth-child(2) .rhythm-key {
  color: var(--amber);
}

.page-news .rhythm-title {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
}

.page-news .rhythm-desc {
  margin: 0 0 10px;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.78;
  color: var(--mist);
}

.page-news .rhythm-hint {
  margin: 0;
  display: inline-block;
  padding: 5px 11px;
  border: 1px dashed var(--news-line);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(168, 179, 196, .85);
  transition: border-color .16s var(--news-ease), color .16s var(--news-ease);
}

.page-news .rhythm-node:hover .rhythm-hint,
.page-news .rhythm-node:focus-within .rhythm-hint {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-news .rhythm-foot {
  margin-top: clamp(24px, 4vw, 40px);
  padding: 22px;
  border: 1px solid var(--news-line);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(20, 29, 43, .9) 0%, rgba(10, 18, 32, .6) 100%);
}

.page-news .rhythm-foot p {
  margin: 0;
  max-width: 68ch;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.85;
  color: var(--mist);
}

.page-news .rhythm-foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 230, 208, .4);
}

.page-news .rhythm-foot a:hover,
.page-news .rhythm-foot a:focus-visible {
  border-bottom-color: var(--cyan);
}

.page-news .rhythm-foot-note {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid var(--news-line);
  font-size: 13px !important;
}

.page-news .rhythm-foot .rhythm-foot-note {
  margin-top: 14px;
}

/* ---------- responsive ---------- */

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

  .page-news .band-list li {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
  }
}

@media (min-width: 800px) {
  .page-news .feed-row {
    grid-template-columns: 132px minmax(0, 1fr) 92px;
    gap: 24px;
    padding: 20px 4px;
    align-items: baseline;
  }

  .page-news .feed-text {
    grid-column: 2;
    grid-row: 1;
  }

  .page-news .feed-tag {
    grid-column: 1;
    grid-row: 1;
  }

  .page-news .feed-time {
    grid-column: 3;
  }

  .page-news .version-item summary {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 24px;
    gap: 26px;
    padding: 22px 4px;
  }

  .page-news .version-plus {
    justify-self: end;
  }

  .page-news .version-body {
    padding-left: 136px;
  }

  .page-news .news-notes-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }

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

  .page-news .rhythm-node {
    padding: 74px 22px 22px;
    border-bottom: 0;
    border-top: 1px solid var(--news-line);
  }

  .page-news .rhythm-node::before {
    left: 0;
    right: 0;
    top: 28px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: var(--news-line);
  }

  .page-news .rhythm-node:first-child::before {
    left: 50%;
  }

  .page-news .rhythm-node:last-child::before {
    right: 50%;
  }

  .page-news .rhythm-dot {
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
  }
}

@media (min-width: 1024px) {
  .page-news .news-poss-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }

  .page-news .topic-card {
    flex: 0 0 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .feed-row::before,
  .page-news .topic-card,
  .page-news .version-plus,
  .page-news .rhythm-hint,
  .page-news .spy-link {
    transition: none;
  }

  .page-news .topic-card:hover {
    transform: none;
  }
}
