.page-news {
  --news-rail-w: 300px;
  --news-card-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  --news-tag-purple: #A78BFA;
  position: relative;
  background:
    radial-gradient(1100px 420px at 88% -4%, rgba(123, 47, 190, 0.09), transparent 70%),
    var(--bg-deep);
}

.page-news::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 100vh;
  background: linear-gradient(180deg, var(--accent-green) 0%, var(--accent-orange) 100%);
  opacity: 0.7;
  z-index: 20;
  pointer-events: none;
}

.page-news .page-head {
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.page-news .head-grid {
  display: grid;
  gap: 1.25rem;
  align-items: end;
  margin-top: 1rem;
}

.page-news .head-main {
  max-width: 800px;
}

.page-news .page-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.75rem;
}

.page-news .page-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 64ch;
  margin: 0;
}

.page-news .head-meta {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 240px;
  position: relative;
}

.page-news .head-meta::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 1rem;
  width: 3px;
  height: 2.4rem;
  background: var(--accent-orange);
}

.page-news .live-pulse {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
}

.page-news .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pageNewsPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pageNewsPulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 255, 80, 0.4); }
  70% { box-shadow: 0 0 0 0.7rem rgba(15, 255, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 255, 80, 0); }
}

.page-news .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-news .meta-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 0.3rem 0.5rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.page-news .meta-item strong {
  color: var(--accent-orange);
  font-weight: 700;
}

.page-news .news-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.page-news .news-rail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-news .rail-widget {
  background: rgba(22, 33, 62, 0.3);
  border: 1px solid var(--line);
  padding: 1rem;
}

.page-news .rail-widget.rail-cta {
  background: linear-gradient(135deg, rgba(123, 47, 190, 0.12), transparent 80%);
  border-color: rgba(123, 47, 190, 0.3);
}

.page-news .rail-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-main);
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-news .rail-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  transform: skew(-20deg);
  flex-shrink: 0;
}

.page-news .filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-news .filter-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-news .filter-chip::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--line);
  transition: color 0.2s ease;
}

.page-news .filter-chip:hover,
.page-news .filter-chip:focus-visible {
  background: var(--bg-card);
  border-left-color: var(--accent-green);
  color: var(--text-main);
}

.page-news .filter-chip:hover::after,
.page-news .filter-chip:focus-visible::after {
  color: var(--accent-green);
}

.page-news .filter-chip.active {
  background: var(--bg-card);
  border-left-color: var(--accent-orange);
  color: var(--text-main);
}

.page-news .filter-chip.active::after {
  color: var(--accent-orange);
}

.page-news .ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.page-news .ticker-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.page-news .ticker-item:hover {
  color: var(--text-main);
}

.page-news .ticker-dot {
  width: 6px;
  height: 6px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(15, 255, 80, 0.12);
  flex-shrink: 0;
}

.page-news .rail-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 0.9rem;
}

.page-news .news-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page-news .news-section {
  margin-bottom: 3rem;
}

.page-news .news-section-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-news .news-section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3.5rem;
  height: 2px;
  background: var(--accent-green);
}

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

.page-news .section-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-orange);
  border: 1px solid var(--line);
  padding: 0.15rem 0.4rem;
  line-height: 1.3;
}

.page-news .section-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-news .feature-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.page-news .feature-media {
  position: relative;
  background: var(--bg-dark);
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.page-news .feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, rgba(10, 17, 40, 0.55) 100%);
  pointer-events: none;
}

.page-news .feature-body {
  position: relative;
  padding: 1.5rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-news .feature-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.page-news .feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin: 0;
}

.page-news .feature-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.page-news .feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.page-news .feature-num {
  position: absolute;
  right: 1rem;
  bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  opacity: 0.8;
  pointer-events: none;
}

.page-news .feature-facts {
  background: rgba(10, 17, 40, 0.35);
  border: 1px solid var(--line);
  margin-top: 0.25rem;
}

.page-news .feature-facts summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0.6rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.page-news .feature-facts summary:hover {
  background: rgba(255, 107, 53, 0.06);
}

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

.page-news .feature-facts summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent-green);
  font-size: 1.1rem;
  line-height: 1;
}

.page-news .feature-facts[open] summary::after {
  content: "−";
  color: var(--accent-orange);
}

.page-news .feature-facts ul {
  margin: 0;
  padding: 0 0.75rem 0.75rem 1.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-news .news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.page-news .news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-news .news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 255, 80, 0.3);
  box-shadow: var(--news-card-shadow);
}

.page-news .news-media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: var(--bg-dark);
}

.page-news .news-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.page-news .news-card:hover .news-media-frame img {
  transform: scale(1.02);
}

.page-news .news-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 75%, rgba(10, 17, 40, 0.5) 100%);
  pointer-events: none;
}

.page-news .news-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.15rem 1.35rem;
  flex: 1;
}

.page-news .news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-news .news-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-news .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.page-news .tag--green {
  color: var(--accent-green);
  border-color: rgba(15, 255, 80, 0.35);
}

.page-news .tag--orange {
  color: var(--accent-orange);
  border-color: rgba(255, 107, 53, 0.35);
}

.page-news .tag--purple {
  color: var(--news-tag-purple);
  border-color: rgba(123, 47, 190, 0.45);
}

.page-news .news-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}

.page-news .news-title a {
  color: var(--text-main);
  text-decoration: none;
  background-image: linear-gradient(var(--accent-green), var(--accent-green));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left bottom;
  transition: background-size 0.25s ease;
}

.page-news .news-title a:hover,
.page-news .news-title a:focus-visible {
  background-size: 100% 1px;
}

.page-news .news-excerpt {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.page-news .news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  margin-top: 0.25rem;
  padding-top: 0.7rem;
}

.page-news .news-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.page-news .news-more:hover,
.page-news .news-more:focus-visible {
  color: var(--accent-green);
}

.page-news .news-kicker {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.page-news .archive-details {
  margin-top: 1rem;
  border: 1px dashed var(--line);
  background: rgba(22, 33, 62, 0.35);
}

.page-news .archive-summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  transition: background 0.2s ease;
}

.page-news .archive-summary:hover {
  background: rgba(22, 33, 62, 0.6);
}

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

.page-news .archive-toggle {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent-orange);
}

.page-news .archive-details[open] .archive-toggle {
  color: var(--accent-green);
}

.page-news .archive-body {
  border-top: 1px solid var(--line);
  padding: 0.25rem 1.25rem 0.75rem;
}

.page-news .archive-entry {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

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

.page-news .archive-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-orange);
  white-space: nowrap;
}

@media (min-width: 760px) {
  .page-news .head-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page-news .head-meta {
    margin-bottom: 0.25rem;
  }
}

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

  .page-news .news-card:last-child:nth-child(odd) {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .page-news .news-card:last-child:nth-child(odd) .news-media-frame {
    aspect-ratio: auto;
    height: 100%;
    min-height: 180px;
  }

  .page-news .news-card:last-child:nth-child(odd) .news-media-frame img {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}

@media (min-width: 860px) {
  .page-news .feature-card {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .page-news .feature-media {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
    position: relative;
  }

  .page-news .feature-media img {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .page-news .feature-body {
    padding: 2rem 1.75rem 2.5rem;
  }
}

@media (min-width: 1000px) {
  .page-news .news-layout {
    grid-template-columns: minmax(0, var(--news-rail-w)) minmax(0, 1fr);
    gap: 2.75rem;
  }

  .page-news .news-rail {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

  .page-news .section-note {
    max-width: 22ch;
    text-align: right;
    overflow-wrap: break-word;
  }
}
