.page-news {
  --news-hero-bg: var(--green);
  --news-hero-accent: var(--red);
  --news-card-shadow: 6px 6px 0 rgba(11, 61, 46, 0.16);
  background:
    linear-gradient(rgba(11, 61, 46, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 61, 46, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  padding-bottom: 64px;
}

.page-news .section {
  margin: 0;
}

.page-news .news-hero {
  position: relative;
  overflow: hidden;
  background: var(--news-hero-bg);
  color: #fff;
  border: 4px solid var(--line);
  box-shadow: var(--shadow-green);
  margin-bottom: 40px;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: repeating-linear-gradient(180deg, var(--red) 0 12px, transparent 12px 20px);
  pointer-events: none;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  padding: 32px 20px;
}

.page-news .news-hero .page-kicker {
  color: var(--gold);
  border-left: 6px solid var(--news-hero-accent);
  padding-left: 14px;
}

.page-news .news-hero .page-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  color: #fff;
  margin: 14px 0 12px;
  letter-spacing: 0.01em;
  text-shadow: 3px 3px 0 rgba(230, 57, 70, 0.35);
}

.page-news .news-hero .page-lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.75;
  max-width: 58ch;
}

.page-news .news-hero__stats {
  display: grid;
  gap: 12px;
  margin: 0;
}

.page-news .news-hero__stat {
  background: var(--ink);
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 rgba(230, 57, 70, 0.55);
  padding: 14px 18px;
  min-width: 0;
}

.page-news .news-hero__stat dt {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.page-news .news-hero__stat dd {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin: 2px 0 0;
}

.page-news .news-layout {
  display: grid;
  gap: 32px;
}

.page-news .news-sidebar {
  background: var(--green);
  color: #fff;
  border: 4px solid var(--line);
  box-shadow: var(--shadow-green);
  padding: 24px 20px 22px;
  align-self: start;
}

.page-news .news-sidebar__kicker {
  color: var(--gold);
  border-bottom: 3px solid var(--red);
  padding-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-news .news-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.page-news .news-tag-list .tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.page-news .news-tag-list .tag:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
}

.page-news .news-tag-list .tag--gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.page-news .news-tag-list .tag--active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--gold);
}

.page-news .news-sidebar__figure {
  margin: 0 0 20px;
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 rgba(244, 163, 0, 0.45);
}

.page-news .news-sidebar__figure img,
.page-news .news-card__thumb img,
.page-news .news-feature-card__image img,
.page-news .news-timeline__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .news-sidebar__trust {
  position: relative;
  background: var(--ink);
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 rgba(244, 163, 0, 0.4);
  padding: 14px 14px 16px;
}

.page-news .news-sidebar__trust p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.page-news .news-sidebar__pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 6px;
  animation: news-pulse 1.6s ease-in-out infinite;
}

.page-news .news-context {
  border-top: 3px solid var(--red);
  padding-top: 14px;
  margin-top: 20px;
}

.page-news .news-context__label {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-news .news-context a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.page-news .news-context a:hover {
  color: var(--gold);
  padding-left: 8px;
}

.page-news .news-content {
  display: grid;
  gap: 56px;
  min-width: 0;
}

.page-news .news-toc {
  display: none;
  margin-bottom: -20px;
}

.page-news .news-section-heading {
  position: relative;
  padding-left: 60px;
  margin-bottom: 28px;
}

.page-news .news-section-heading__idx {
  position: absolute;
  left: 0;
  top: -8px;
  font-family: var(--font-mono);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.06em;
}

.page-news .news-section-heading .section-kicker {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.page-news .news-section-heading h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}

.page-news .news-list {
  display: grid;
  gap: 22px;
}

.page-news .news-card {
  position: relative;
  background: #fff;
  border: 3px solid var(--line);
  border-left: 8px solid var(--red);
  box-shadow: var(--news-card-shadow);
  padding: 20px 22px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  scroll-margin-top: 24px;
}

.page-news .news-card:hover {
  background: #fff8e9;
  transform: translateY(-3px);
  box-shadow: 10px 10px 0 rgba(11, 61, 46, 0.2);
}

.page-news .news-card--thumb {
  display: grid;
  gap: 18px;
}

.page-news .news-card__thumb {
  overflow: hidden;
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 rgba(244, 163, 0, 0.4);
}

.page-news .news-card__body {
  min-width: 0;
}

.page-news .news-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-news .news-card__num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--news-hero-accent);
  opacity: 0.58;
  letter-spacing: -0.06em;
}

.page-news .news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.page-news .news-card__tag {
  display: inline-block;
  border: 2px solid var(--muted);
  padding: 2px 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-news .news-card h3 {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 14px 0 8px;
}

.page-news .news-card__excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.page-news .news-card__link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  text-decoration: none;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-news .news-card__link:hover {
  color: var(--gold);
  border-color: var(--red);
}

.page-news .news-featured__grid {
  display: grid;
  gap: 28px;
}

.page-news .news-feature-card {
  overflow: hidden;
  background: #fff;
  border: 4px solid var(--line);
  box-shadow: var(--shadow-green);
  scroll-margin-top: 24px;
}

.page-news .news-feature-card--light {
  background:
    linear-gradient(165deg, rgba(244, 163, 0, 0.22) 0%, var(--paper) 42%, #fff 100%);
  box-shadow: 8px 8px 0 rgba(11, 61, 46, 0.18);
}

.page-news .news-feature-card__image {
  border-bottom: 4px solid var(--line);
}

.page-news .news-feature-card__content {
  padding: 24px;
}

.page-news .news-feature-card__content .news-card__meta {
  margin-bottom: 6px;
}

.page-news .news-feature-card h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 12px 0 10px;
}

.page-news .news-feature-card .news-card__excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 22px;
}

.page-news .news-feature-card .button {
  margin-top: auto;
}

.page-news .news-timeline__list {
  position: relative;
  margin-top: 26px;
  padding-left: 28px;
  border-left: 4px solid var(--green);
}

.page-news .news-timeline__item {
  position: relative;
  padding-bottom: 36px;
}

.page-news .news-timeline__item:last-child {
  padding-bottom: 0;
}

.page-news .news-timeline__item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 16px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 4px solid var(--line);
  box-shadow: 0 0 0 2px var(--red);
  transform: rotate(45deg);
}

.page-news .news-timeline__node {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--red);
  padding: 5px 12px;
  margin-bottom: 14px;
}

.page-news .news-timeline__version {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold);
}

.page-news .news-timeline__type {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  border-left: 2px solid var(--red);
  padding-left: 8px;
}

.page-news .news-timeline__body {
  background: #fff;
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 rgba(11, 61, 46, 0.15);
  padding: 20px;
}

.page-news .news-timeline__title {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-news .news-timeline__body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.page-news .news-timeline__image {
  margin-top: 16px;
  border: 3px solid var(--green);
  box-shadow: 5px 5px 0 rgba(230, 57, 70, 0.25);
}

.page-news .tag--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.page-news .tag--active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@keyframes news-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.78);
  }
}

@media (min-width: 720px) {
  .page-news .news-hero__inner {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 40px;
    padding: 48px 32px;
  }

  .page-news .news-hero__stats {
    grid-template-columns: 1fr;
  }

  .page-news .news-card--thumb {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }

  .page-news .news-timeline__list {
    padding-left: 34px;
  }

  .page-news .news-timeline__item::before {
    left: -42px;
    width: 16px;
    height: 16px;
  }

  .page-news .news-section-heading h2 {
    font-size: 34px;
  }
}

@media (min-width: 900px) {
  .page-news .news-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .page-news .news-sidebar {
    position: sticky;
    top: 24px;
  }

  .page-news .news-tag-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-news .news-toc {
    display: block;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-news .news-sidebar__pulse,
  .page-news .news-hero::before {
    animation: none;
  }
}
