.page-news {
  --news-frame: 3px solid var(--steel);
  --news-rule: 2px solid var(--line);
  display: block;
  background: var(--ink);
  color: var(--warm);
}

/* ---------- hero ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 6vw, 60px) 0 clamp(30px, 6vw, 56px);
  border-bottom: var(--news-frame);
  background:
    radial-gradient(120% 90% at 6% 0%, rgba(46, 242, 208, 0.14), transparent 58%),
    radial-gradient(90% 80% at 96% 10%, rgba(255, 122, 26, 0.13), transparent 62%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 82%);
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -70px;
  width: 74%;
  height: 230px;
  background: repeating-linear-gradient(115deg, rgba(46, 242, 208, 0.09) 0 2px, transparent 2px 22px);
  transform: skewY(-6deg);
  pointer-events: none;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(22px, 4vw, 36px);
  align-items: start;
}

.page-news .breadcrumb {
  margin-bottom: 18px;
}

.page-news .news-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-news .news-kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.18);
}

.page-news .news-hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 6.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--warm);
}

.page-news .news-hero__title em {
  font-style: normal;
  color: var(--cyan);
}

.page-news .news-hero__text {
  max-width: 48ch;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--fog);
}

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

/* ---------- hero board ---------- */
.page-news .news-board {
  border: var(--news-frame);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(29, 44, 63, 0.6) 0%, rgba(5, 10, 18, 0.92) 78%);
  box-shadow: var(--shadow-hard);
  padding: clamp(16px, 3vw, 22px);
}

.page-news .news-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.page-news .news-board__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--fog);
}

.page-news .news-board__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.page-news .news-board__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(29, 44, 63, 0.9);
}

.page-news .news-board__row:last-child {
  border-bottom: 0;
}

.page-news .news-board__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cyan);
  line-height: 1.1;
}

.page-news .news-board__row--hot .news-board__num {
  color: var(--orange);
}

.page-news .news-board__unit {
  font-size: 13px;
  margin-left: 2px;
}

.page-news .news-board__label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fog);
}

.page-news .news-board__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

/* ---------- layout ---------- */
.page-news .news-layout {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  padding-top: clamp(26px, 5vw, 52px);
  padding-bottom: clamp(40px, 7vw, 80px);
}

/* ---------- rail ---------- */
.page-news .news-rail {
  border: var(--news-rule);
  border-radius: var(--radius-md);
  background: rgba(11, 23, 38, 0.75);
  padding: 14px;
}

.page-news .news-rail__title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fog);
}

.page-news .news-rail__nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.page-news .news-rail__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--warm);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.page-news .news-rail__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
}

.page-news .news-rail__foot {
  display: none;
}

/* ---------- section ---------- */
.page-news .news-sec {
  margin-top: clamp(34px, 5vw, 54px);
  padding-top: clamp(22px, 4vw, 36px);
  border-top: var(--news-rule);
  scroll-margin-top: 104px;
}

.page-news .news-sec:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.page-news .news-sec__head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}

.page-news .news-sec__num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  line-height: 1;
  color: rgba(46, 242, 208, 0.42);
  border-bottom: 3px solid var(--cyan);
  padding-bottom: 6px;
}

.page-news .news-sec__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(21px, 3.6vw, 31px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--warm);
  transition: color 200ms ease;
}

.page-news .news-sec:target .news-sec__title {
  color: var(--cyan);
}

.page-news .news-sec:target .news-sec__num {
  color: rgba(255, 122, 26, 0.7);
  border-bottom-color: var(--orange);
}

.page-news .news-sec__desc {
  margin: 0;
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--fog);
}

/* ---------- figure ---------- */
.page-news .news-figure {
  margin: 0 0 22px;
  border: var(--news-frame);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: var(--shadow-soft);
}

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

.page-news .news-figure--phone img {
  aspect-ratio: 12 / 7;
}

.page-news .news-figure--board img {
  aspect-ratio: 3 / 2;
}

.page-news .news-figure--devices img {
  aspect-ratio: 10 / 7;
}

.page-news .news-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(29, 44, 63, 0.5);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--fog);
}

/* ---------- list ---------- */
.page-news .news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-news .news-item {
  padding: 16px 16px 16px 18px;
  border: 2px solid var(--line);
  border-left: 4px solid var(--steel);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, rgba(11, 23, 38, 0.92) 0%, rgba(5, 10, 18, 0.88) 100%);
  transition: border-left-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.page-news .news-item:hover {
  border-left-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.page-news .news-item--flag {
  border-left-color: var(--orange);
}

.page-news .news-item--flag:hover {
  border-left-color: var(--orange);
}

.page-news .news-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
}

.page-news .news-item__when {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--fog);
}

.page-news .news-item__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16.5px, 2.6vw, 20px);
  line-height: 1.42;
  color: var(--warm);
}

.page-news .news-item__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 100%;
  transition: background-size 220ms ease, color 160ms ease;
}

.page-news .news-item__title a:hover,
.page-news .news-item__title a:focus-visible {
  color: var(--cyan);
  background-size: 100% 2px;
  outline: none;
}

.page-news .news-item__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--fog);
}

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

.page-news .news-sec__more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(46, 242, 208, 0.45);
  font-size: 13.5px;
  color: var(--cyan);
  text-decoration: none;
}

.page-news .news-sec__more a::after {
  content: "\2192";
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ---------- meter ---------- */
.page-news .news-meter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0 0 20px;
  border: var(--news-rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
}

.page-news .news-meter__cell {
  padding: 14px 14px 12px;
  background: var(--ink-2);
}

.page-news .news-meter__cell dt {
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fog);
}

.page-news .news-meter__cell dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(19px, 3vw, 25px);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.page-news .news-meter__cell dd span {
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--fog);
}

/* ---------- cadence ---------- */
.page-news .news-cadence__grid {
  display: grid;
  gap: 2px;
  margin-bottom: 20px;
  border: var(--news-rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--line);
}

.page-news .news-cadence__cell {
  padding: 20px 18px;
  background: var(--ink-2);
}

.page-news .news-cadence__mark {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-news .news-cadence__cell h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--warm);
}

.page-news .news-cadence__cell p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--fog);
}

.page-news .news-sub {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
  border: var(--news-frame);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 26, 0.16), transparent 62%),
    var(--ink-2);
}

.page-news .news-sub__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 2.6vw, 24px);
  line-height: 1.3;
  color: var(--warm);
}

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

.page-news .news-sub .btn {
  justify-self: start;
}

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  .page-news .news-cadence__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .page-news .news-sub {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-news .news-hero__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.85fr);
  }

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

  .page-news .news-rail {
    position: sticky;
    top: 112px;
    padding: 18px;
  }

  .page-news .news-rail__nav {
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-news .news-rail__link {
    border: 0;
    border-left: 3px solid var(--line);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: transparent;
    padding: 10px 10px 10px 12px;
    font-size: 14px;
    white-space: normal;
    line-height: 1.5;
  }

  .page-news .news-rail__link:hover,
  .page-news .news-rail__link:focus-visible {
    border-left-color: var(--cyan);
    transform: translateX(3px);
  }

  .page-news .news-rail__foot {
    display: block;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
  }

  .page-news .news-rail__foot p {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.75;
    color: var(--fog);
  }

  .page-news .news-rail__foot .btn {
    width: 100%;
    justify-content: center;
  }

  .page-news .news-sec__head {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-item,
  .page-news .news-rail__link,
  .page-news .news-item__title a {
    transition: none;
  }

  .page-news .news-item:hover {
    transform: none;
  }
}
