.page-news {
  position: relative;
  min-height: 100vh;
  padding: 0 20px 56px;
  background-color: var(--kiwi-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M70 20 70 120M20 70 120 70M44 44 96 96M96 44 44 96' stroke='%23A0D8EF' stroke-width='1.2' opacity='0.07'/%3E%3Ccircle cx='70' cy='70' r='5' fill='none' stroke='%238BC34A' stroke-width='1' opacity='0.1'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  color: var(--kiwi-white);
  font-family: var(--font-body);
}

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

.page-news a:not([class]) {
  color: var(--kiwi-ice);
  text-underline-offset: 3px;
}

.page-news a:not([class]):hover {
  color: var(--kiwi-yellow);
}

.news-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--kiwi-gray);
}

.news-crumb__link {
  color: var(--kiwi-ice);
  text-decoration: none;
}

.news-crumb__link:hover {
  color: var(--kiwi-yellow);
  text-decoration: underline;
}

.news-crumb__current {
  color: var(--kiwi-gray);
}

.news-hero {
  display: grid;
  gap: 24px;
  padding: 18px 0 36px;
  align-items: center;
}

.news-hero__text {
  position: relative;
  z-index: 0;
  padding: 30px 26px 32px;
  background: linear-gradient(115deg, rgba(22, 33, 62, 0.88) 0%, rgba(22, 33, 62, 0.72) 52%, rgba(139, 195, 74, 0.22) 100%);
  border: 1px solid rgba(160, 216, 239, 0.18);
  border-left: 6px solid var(--kiwi-green);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
}

.news-hero__tag {
  margin-bottom: 8px;
}

.news-hero__title {
  margin: 10px 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--kiwi-white);
}

.news-hero__lead {
  margin: 0;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.news-hero__visual {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(160, 216, 239, 0.24);
  background: var(--kiwi-midnight);
}

.news-hero__img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.news-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 10px 0 36px;
}

.news-stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 18px 14px;
  background: rgba(22, 33, 62, 0.72);
  border: 1px solid rgba(160, 216, 239, 0.14);
  border-top: 3px solid var(--kiwi-green);
}

.news-stats__num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--kiwi-yellow);
}

.news-stats__label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--kiwi-gray);
}

.news-updates {
  padding-top: 10px;
}

.news-updates__head {
  padding: 4px 0 10px;
}

.news-updates__note {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--kiwi-gray);
}

.page-news .kiwi-section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--kiwi-white);
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0 26px;
}

.news-filter__link {
  padding: 6px 14px;
  border: 1px solid rgba(160, 216, 239, 0.3);
  border-radius: 999px;
  background: rgba(22, 33, 62, 0.4);
  color: var(--kiwi-ice);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.news-filter__link:hover {
  border-color: var(--kiwi-yellow);
  color: var(--kiwi-yellow);
}

.news-timeline {
  position: relative;
}

.news-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px 16px;
  margin-bottom: 30px;
  scroll-margin-top: 28px;
}

.news-timeline__rail {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  justify-content: center;
}

.news-timeline__rail::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -30px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--kiwi-yellow), rgba(249, 229, 71, 0.16));
}

.news-timeline__item:last-child .news-timeline__rail::before {
  display: none;
}

.news-timeline__dot {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--kiwi-yellow);
  box-shadow: 0 0 0 5px rgba(249, 229, 71, 0.18);
}

.news-timeline__dot--current {
  background: var(--kiwi-green);
  box-shadow: 0 0 0 6px rgba(139, 195, 74, 0.22);
}

.news-timeline__meta {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.news-timeline__ver {
  padding: 3px 10px;
  border: 1px solid rgba(249, 229, 71, 0.35);
  border-radius: 8px;
  background: rgba(22, 33, 62, 0.9);
  color: var(--kiwi-yellow);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.news-timeline__season {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--kiwi-white);
}

.news-timeline__period {
  flex-basis: 100%;
  margin-left: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--kiwi-gray);
}

.news-timeline__card {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

.news-detail {
  overflow: hidden;
  border: 1px solid rgba(160, 216, 239, 0.18);
  border-radius: 14px;
  background-color: rgba(22, 33, 62, 0.9);
  background-image: linear-gradient(rgba(160, 216, 239, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 216, 239, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.news-detail:hover {
  transform: translateY(-2px);
}

.news-timeline__item--winter .news-detail {
  border-color: rgba(139, 195, 74, 0.55);
  box-shadow: inset 4px 0 0 rgba(139, 195, 74, 0.7);
}

.news-timeline__item--feature .news-detail {
  border-color: rgba(160, 216, 239, 0.5);
  box-shadow: inset 4px 0 0 rgba(160, 216, 239, 0.7);
}

.news-timeline__item--data .news-detail {
  border-color: rgba(249, 229, 71, 0.38);
  box-shadow: inset 4px 0 0 rgba(249, 229, 71, 0.6);
}

.news-timeline__item--next .news-detail {
  border-style: dashed;
  border-color: rgba(249, 229, 71, 0.55);
  box-shadow: inset 4px 0 0 rgba(249, 229, 71, 0.6);
}

.news-detail__summary {
  position: relative;
  display: block;
  padding: 18px 46px 14px 18px;
  cursor: pointer;
  list-style: none;
}

.news-detail__summary::-webkit-details-marker {
  display: none;
}

.news-detail__summary::marker {
  content: none;
}

.news-detail__title {
  margin: 8px 0 6px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--kiwi-white);
}

.news-detail__desc {
  display: block;
  max-width: 68ch;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--kiwi-gray);
}

.news-detail__open {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(249, 229, 71, 0.4);
  border-radius: 50%;
  color: var(--kiwi-yellow);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s;
}

.news-detail[open] .news-detail__open {
  transform: rotate(45deg);
}

.news-detail__content {
  display: grid;
  gap: 14px;
  padding: 16px 18px 22px;
  border-top: 1px dashed rgba(160, 216, 239, 0.22);
}

.news-detail__content p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.news-detail__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 18px;
}

.news-detail__list li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--kiwi-gray);
}

.news-detail__list strong {
  color: var(--kiwi-white);
}

.news-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(224, 224, 224, 0.25);
  border-radius: 999px;
  background: rgba(22, 33, 62, 0.75);
  color: var(--kiwi-gray);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
  vertical-align: middle;
}

.news-tag--feature {
  border-color: rgba(139, 195, 74, 0.5);
  color: var(--kiwi-green);
}

.news-tag--data {
  border-color: rgba(160, 216, 239, 0.5);
  color: var(--kiwi-ice);
}

.news-tag--fix {
  border-color: rgba(255, 82, 82, 0.45);
  color: var(--kiwi-red);
}

.news-tag--roadmap {
  border-color: rgba(249, 229, 71, 0.5);
  color: var(--kiwi-yellow);
}

.news-img--panel {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(160, 216, 239, 0.2);
}

.news-img--flow {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(160, 216, 239, 0.2);
}

.news-feature-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.news-img--tall {
  flex: 0 0 auto;
  width: min(180px, 100%);
  height: 320px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid rgba(160, 216, 239, 0.2);
}

.news-feature-split .news-detail__list {
  flex: 1 1 260px;
  margin: 0;
}

.news-league-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-league-grid__item {
  padding: 7px 10px;
  border: 1px solid rgba(160, 216, 239, 0.18);
  border-radius: 8px;
  background: rgba(160, 216, 239, 0.08);
  color: var(--kiwi-ice);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

@media (min-width: 640px) {
  .news-league-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 920px) {
  .page-news {
    padding: 0 44px 72px;
  }

  .news-crumb {
    padding-top: 24px;
  }

  .news-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 30px;
    padding-bottom: 44px;
  }

  .news-hero__text {
    padding: 42px 36px 44px;
  }

  .news-hero__title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
  }

  .news-hero__lead {
    font-size: 1.06rem;
  }

  .news-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .news-stats__item {
    padding: 22px 18px;
  }

  .news-timeline__item {
    grid-template-columns: 230px 64px minmax(0, 1fr);
    gap: 0 26px;
    margin-bottom: 44px;
  }

  .news-timeline__meta {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-content: flex-start;
    justify-items: end;
    padding-top: 20px;
    text-align: right;
  }

  .news-timeline__period {
    flex-basis: auto;
  }

  .news-timeline__rail {
    grid-column: 2;
    grid-row: 1;
  }

  .news-timeline__rail::before {
    bottom: -44px;
  }

  .news-timeline__card {
    grid-column: 3;
    grid-row: 1;
  }

  .news-timeline__dot {
    margin-top: 24px;
  }

  .news-detail__summary {
    padding: 22px 56px 18px 28px;
  }

  .news-detail__content {
    padding: 20px 28px 26px;
  }

  .news-img--tall {
    width: 200px;
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-detail,
  .page-news .news-filter__link,
  .page-news .news-detail__open {
    transition: none;
  }
}
