.page-news {
  --news-grid: 28px 1fr;
  --channel-accent: var(--c-accent);
  background: linear-gradient(180deg, var(--c-deep) 0%, var(--c-ink) 100%);
  color: var(--c-text);
  overflow-x: hidden;
}

.page-news [id],
.page-news .news-channel,
.page-news .c-section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-news [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

.page-news [data-revealed="true"] {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---------- Hero ---------- */
.page-news .news-hero {
  position: relative;
  padding: 36px 0 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 107, 53, 0.16), transparent 36%),
    linear-gradient(135deg, var(--c-deep) 0%, var(--c-ink) 100%);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(106, 76, 158, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 76, 158, 0.14) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent 18%, #000 100%);
  pointer-events: none;
}

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

.page-news .news-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-news .news-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 10px 0 14px;
  color: var(--c-text);
  max-width: 12em;
}

.page-news .news-hero__title span {
  display: block;
  background: linear-gradient(90deg, var(--c-accent), var(--c-orange-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 4px 4px 0 rgba(0, 201, 167, 0.2);
}

.page-news .news-hero__lead {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(242, 237, 247, 0.82);
  max-width: 34em;
  margin: 0 0 22px;
}

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

.page-news .news-hero__media {
  position: relative;
  margin: 26px 0 0;
  max-width: 640px;
}

.page-news .news-hero__media::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border-right: 3px solid var(--c-accent);
  border-bottom: 3px solid var(--c-teal);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  pointer-events: none;
}

.page-news .news-hero__media img {
  position: relative;
  width: 100%;
  height: auto;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

/* ---------- Stats ---------- */
.page-news .news-stats {
  position: relative;
  z-index: 2;
  margin-top: -8px;
}

.page-news .news-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-news .news-stat {
  background: linear-gradient(135deg, var(--c-panel), rgba(11, 5, 18, 0.88));
  border-left: 4px solid var(--c-accent);
  padding: 16px 18px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-news .news-stat:hover {
  transform: translateY(-3px);
  border-left-color: var(--c-teal);
}

.page-news .news-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-accent);
  letter-spacing: -0.03em;
}

.page-news .news-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(242, 237, 247, 0.7);
}

/* ---------- Section head ---------- */
.page-news .c-section {
  padding: 50px 0;
}

.page-news .news-section-head {
  margin-bottom: 24px;
}

.page-news .news-section-title {
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 8px 0 8px;
  color: var(--c-text);
}

.page-news .news-section-desc {
  font-size: 0.96rem;
  line-height: 1.75;
  color: rgba(242, 237, 247, 0.7);
  max-width: 46em;
  margin: 0;
}

/* ---------- Filter ---------- */
.page-news .news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.page-news .news-filter a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(58, 33, 104, 0.65);
  border-left: 3px solid transparent;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.page-news .news-filter a::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  transform: rotate(45deg);
  flex: none;
}

.page-news .news-filter a:hover,
.page-news .news-filter a:focus-visible {
  border-left-color: var(--c-teal);
  background: var(--c-ink);
  color: var(--c-text);
}

/* ---------- Log timeline ---------- */
.page-news .news-log__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--news-grid);
  gap: 14px;
  padding-bottom: 30px;
}

.page-news .news-log__item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 36px;
  bottom: 6px;
  width: 2px;
  background-image: linear-gradient(to bottom, var(--c-subtle) 4px, transparent 4px);
  background-size: 2px 10px;
}

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

.page-news .news-log__marker {
  width: 28px;
  height: 28px;
  border: 2px solid var(--c-accent);
  background: var(--c-ink);
  transform: rotate(45deg);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.page-news .news-log__item:hover .news-log__marker {
  background: var(--c-accent);
  border-color: var(--c-teal);
  transform: rotate(45deg) scale(1.12);
}

.page-news .news-log__card {
  background: linear-gradient(135deg, rgba(58, 33, 104, 0.72), rgba(11, 5, 18, 0.72));
  border-left: 3px solid var(--c-accent);
  padding: 18px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.page-news .news-log__item.is-featured .news-log__card {
  border-left-width: 5px;
}

.page-news .news-log__card:hover {
  background: linear-gradient(135deg, rgba(58, 33, 104, 0.9), rgba(11, 5, 18, 0.88));
  border-left-color: var(--c-teal);
  transform: translateX(4px);
}

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

.page-news .news-log__time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--c-orange-soft);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.page-news .news-log__title {
  font-family: var(--font-head);
  font-size: 1.24rem;
  line-height: 1.18;
  margin: 0 0 8px;
  color: var(--c-text);
}

.page-news .news-log__sum {
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(242, 237, 247, 0.78);
  margin: 0 0 14px;
}

.page-news .news-log__media {
  margin: 0 0 14px;
}

.page-news .news-log__media img {
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.page-news .news-log__detail summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-teal);
  border: 1px solid rgba(0, 201, 167, 0.4);
  padding: 7px 14px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  width: fit-content;
  transition: background 0.25s ease, color 0.25s ease;
}

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

.page-news .news-log__detail summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.page-news .news-log__detail[open] summary::after {
  transform: rotate(45deg);
}

.page-news .news-log__detail p {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 2px dashed rgba(106, 76, 158, 0.5);
  font-size: 0.91rem;
  line-height: 1.75;
  color: rgba(242, 237, 247, 0.82);
}

/* ---------- Channel categories ---------- */
.page-news .news-channels {
  background:
    linear-gradient(140deg, rgba(0, 201, 167, 0.06), transparent 32%),
    var(--c-deep);
}

.page-news .news-channel {
  position: relative;
  --channel-accent: var(--c-accent);
  display: grid;
  gap: 16px;
  padding: 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(58, 33, 104, 0.68), rgba(11, 5, 18, 0.8));
  border-top: 3px solid var(--channel-accent);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.page-news .news-channel:nth-of-type(even) {
  --channel-accent: var(--c-teal);
}

.page-news .news-channel__num {
  position: absolute;
  right: 18px;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 107, 53, 0.22);
  letter-spacing: -0.04em;
}

.page-news .news-channel__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-right: 44px;
}

.page-news .news-channel__title {
  font-size: 1.22rem;
  line-height: 1.3;
  margin: 0;
  color: var(--c-text);
}

.page-news .news-channel__text {
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(242, 237, 247, 0.76);
  margin: 0;
  max-width: 44em;
}

.page-news .news-channel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ---------- Featured topics ---------- */
.page-news .news-featured__grid {
  display: grid;
  gap: 18px;
}

.page-news .news-feature {
  background: var(--c-panel);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: transform 0.25s ease, background 0.25s ease;
}

.page-news .news-feature:hover {
  transform: translateY(-4px);
  background: #452680;
}

.page-news .news-feature__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.page-news .news-feature__media img {
  width: 100%;
}

.page-news .news-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  flex: 1;
}

.page-news .news-feature__title {
  font-family: var(--font-head);
  font-size: 1.28rem;
  line-height: 1.2;
  margin: 0;
  color: var(--c-text);
}

.page-news .news-feature__text {
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(242, 237, 247, 0.78);
  margin: 0;
}

.page-news .news-feature__meta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--c-orange-soft);
  font-weight: 700;
}

.page-news .news-feature__meta::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--c-teal);
  transform: rotate(45deg);
}

/* ---------- Refresh ---------- */
.page-news .news-refresh {
  background:
    linear-gradient(120deg, rgba(0, 201, 167, 0.1), transparent 40%),
    var(--c-ink);
  border-top: 3px solid var(--c-accent);
  border-bottom: 3px solid var(--c-teal);
}

.page-news .news-refresh__grid {
  display: grid;
  gap: 26px;
}

.page-news .news-refresh__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-news .news-refresh__lead {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(242, 237, 247, 0.82);
  margin: 0 0 14px;
}

.page-news .news-refresh__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  width: 100%;
  border-top: 2px dashed rgba(106, 76, 158, 0.6);
}

.page-news .news-refresh__list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 2px dashed rgba(106, 76, 158, 0.4);
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(242, 237, 247, 0.84);
}

.page-news .news-refresh__list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  width: 9px;
  height: 9px;
  background: var(--c-teal);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

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

.page-news .news-refresh__media {
  position: relative;
  align-self: start;
  max-width: 480px;
  width: 100%;
}

.page-news .news-refresh__media::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  left: 12px;
  top: 12px;
  border: 2px solid var(--c-accent);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  pointer-events: none;
}

.page-news .news-refresh__media img {
  position: relative;
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

/* ---------- Tablet & Desktop ---------- */
@media (min-width: 720px) {
  .page-news .news-hero {
    padding: 76px 0 56px;
  }

  .page-news .news-hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    align-items: center;
  }

  .page-news .news-hero__media {
    margin: 0;
    max-width: none;
  }

  .page-news .news-stats {
    margin-top: -18px;
  }

  .page-news .news-stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .page-news .news-stat {
    padding: 20px 22px;
  }

  .page-news .news-stat__num {
    font-size: 2.3rem;
  }

  .page-news .c-section {
    padding: 70px 0;
  }

  .page-news .news-log__card {
    padding: 24px;
  }

  .page-news .news-log__title {
    font-size: 1.38rem;
  }

  .page-news .news-channel {
    grid-template-columns: 1fr 2fr;
    gap: 26px;
    padding: 28px 32px;
  }

  .page-news .news-channel__num {
    font-size: 3.4rem;
  }

  .page-news .news-refresh__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-news .news-featured__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-news .news-featured__grid .news-feature--wide {
    grid-column: 1 / -1;
  }

  .page-news .news-feature--wide .news-feature__link {
    flex-direction: row;
  }

  .page-news .news-feature--wide .news-feature__media {
    flex: 0 0 52%;
  }

  .page-news .news-feature--wide .news-feature__media img {
    height: 100%;
    object-fit: cover;
    min-height: 300px;
  }

  .page-news .news-feature--wide .news-feature__body {
    flex: 1;
    padding: 30px;
  }
}
