.page-news {
  --news-deep: #061224;
  --news-card: #0D203A;
  --news-raise: #122A4A;
  --news-border: rgba(245, 247, 250, .14);
  --news-line: rgba(163, 255, 18, .30);
  background: var(--news-deep);
  color: var(--signal);
  min-height: 100vh;
  padding-bottom: 88px;
}

.page-news .container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.page-news .breadcrumbs {
  padding: 20px 0 0;
  color: rgba(245, 247, 250, .55);
  font-family: var(--font-mono);
  font-size: 14px;
}

.page-news .breadcrumbs a {
  color: rgba(245, 247, 250, .55);
  text-decoration: none;
}

.page-news .breadcrumbs a:hover {
  color: var(--lime);
}

.page-news .breadcrumbs-sep {
  margin: 0 8px;
  color: rgba(245, 247, 250, .3);
}

.page-news .news-hero {
  position: relative;
  padding: 48px 0 56px;
  background-image:
    linear-gradient(rgba(163, 255, 18, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 255, 18, .06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-news .news-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-news .news-hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--lime);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.page-news .news-hero-kicker span {
  display: inline-flex;
  padding: 2px 8px;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-size: 13px;
}

.page-news h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5.2vw, 52px);
  line-height: 1.15;
  margin: 0 0 20px;
  color: #FFFFFF;
}

.page-news .news-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245, 247, 250, .82);
  max-width: 640px;
  margin-bottom: 28px;
}

.page-news .news-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-news .news-stats li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-left: 3px solid var(--orange);
  background: rgba(255, 79, 26, .08);
}

.page-news .news-stats strong {
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 1;
  color: var(--orange);
}

.page-news .news-stats span {
  font-size: 14px;
  color: rgba(245, 247, 250, .75);
}

.page-news .news-terminal {
  border: 1px solid var(--news-border);
  background: #030D1C;
  box-shadow: 8px 8px 0 rgba(163, 255, 18, .06);
}

.page-news .news-terminal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0A1A30;
  border-bottom: 1px solid var(--news-border);
}

.page-news .news-terminal-dots {
  display: inline-flex;
}

.page-news .news-terminal-dots i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 4px;
}

.page-news .news-terminal-dots i:nth-child(2) {
  background: var(--lime);
}

.page-news .news-terminal-dots i:nth-child(3) {
  background: var(--teal);
}

.page-news .news-terminal-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 247, 250, .8);
}

.page-news .news-terminal-body {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}

.page-news .news-terminal-body p {
  margin: 0 0 4px;
}

.page-news .term-kw {
  color: var(--lime);
  margin-right: 4px;
}

.page-news .term-code {
  color: var(--teal);
  padding-left: 18px;
}

.page-news .term-clean {
  color: var(--lime);
}

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

.page-news h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  color: #FFFFFF;
  margin-bottom: 8px;
}

.page-news h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.page-news .section-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.page-news .section-index {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--lime);
  line-height: 1;
  border: 2px solid rgba(163, 255, 18, .5);
  padding: 8px 10px;
  background: rgba(163, 255, 18, .06);
  flex: none;
}

.page-news .section-desc {
  font-size: 15px;
  color: rgba(245, 247, 250, .6);
  margin: 0;
}

.page-news .news-card {
  background: var(--news-card);
  border: 1px solid var(--news-border);
  border-top: 4px solid var(--lime);
  padding: 24px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .18);
}

.page-news .news-card--fix {
  border-top-color: var(--orange);
}

.page-news .news-card--feature {
  border-top-color: var(--teal);
}

.page-news .news-card--sync {
  border-top-color: var(--lime);
}

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

.page-news .news-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid var(--news-border);
}

.page-news .news-card--fix .news-tag {
  color: var(--orange);
  border-color: rgba(255, 79, 26, .4);
}

.page-news .news-card--feature .news-tag {
  color: var(--teal);
  border-color: rgba(0, 194, 215, .4);
}

.page-news .news-card--sync .news-tag {
  color: var(--lime);
  border-color: rgba(163, 255, 18, .4);
}

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

.page-news .news-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 247, 250, .55);
}

.page-news .news-changelog {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 14px;
  color: rgba(245, 247, 250, .72);
}

.page-news .news-changelog li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-news .news-changelog li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lime);
}

.page-news .news-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.page-news .button--ghost {
  border-color: var(--lime);
  color: var(--lime);
  background: transparent;
}

.page-news .button--ghost:hover {
  background: var(--lime);
  color: var(--deep);
}

.page-news .text-link {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 194, 215, .4);
  padding-bottom: 2px;
}

.page-news .text-link:hover {
  border-bottom-color: var(--teal);
  color: var(--lime);
}

.page-news .news-fix-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.page-news .news-feature-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.page-news .news-feature-cards {
  display: grid;
  gap: 16px;
}

.page-news .news-sync-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

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

.page-news .news-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--news-border);
  background: var(--news-raise);
}

.page-news .news-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 247, 250, .55);
  padding-left: 12px;
  border-left: 2px solid var(--lime);
}

.page-news .news-sync-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.page-news .news-sync-badges li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(163, 255, 18, .06);
  border-left: 3px solid var(--lime);
}

.page-news .news-sync-badges strong {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--lime);
}

.page-news .news-sync-badges span {
  font-size: 14px;
  color: rgba(245, 247, 250, .7);
}

.page-news .news-sync-cert {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(245, 247, 250, .65);
  line-height: 1.7;
}

.page-news .news-archive-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  border: 1px solid var(--news-border);
  background: var(--news-raise);
}

.page-news .news-archive {
  margin-top: 28px;
}

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

.page-news .news-filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-news .news-filter-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  border: 1px solid var(--news-border);
  color: rgba(245, 247, 250, .7);
  background: rgba(10, 29, 58, .45);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.page-news .news-filter-input:focus-visible + .news-filter-label {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.page-news .news-archive:has(#filter-all:checked) .news-filter-label[for="filter-all"],
.page-news .news-archive:has(#filter-fix:checked) .news-filter-label[for="filter-fix"],
.page-news .news-archive:has(#filter-feature:checked) .news-filter-label[for="filter-feature"],
.page-news .news-archive:has(#filter-sync:checked) .news-filter-label[for="filter-sync"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--deep);
  font-weight: 700;
}

.page-news .news-filter-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 247, 250, .4);
}

.page-news .news-archive-list {
  position: relative;
  margin-left: 6px;
  padding-left: 24px;
  border-left: 1px dashed var(--news-line);
}

.page-news .news-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 20px;
  margin-bottom: 16px;
  background: rgba(13, 32, 58, .72);
  border: 1px solid var(--news-border);
  transition: border-color .2s, background .2s;
}

.page-news .news-entry:hover {
  border-color: rgba(163, 255, 18, .4);
  background: rgba(13, 32, 58, .9);
}

.page-news .news-entry::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(163, 255, 18, .14);
}

.page-news .news-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.page-news .news-entry-version {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--orange);
}

.page-news .news-entry-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 247, 250, .55);
}

.page-news .news-entry-cat {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid currentColor;
  padding: 2px 8px;
}

.page-news .news-entry-cat--fix {
  color: var(--orange);
}

.page-news .news-entry-cat--feature {
  color: var(--teal);
}

.page-news .news-entry-cat--sync {
  color: var(--lime);
}

.page-news .news-entry-body p {
  font-size: 15px;
  color: rgba(245, 247, 250, .75);
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-news .news-entry-details {
  margin-top: 6px;
}

.page-news .news-entry-details summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  list-style: none;
}

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

.page-news .news-entry-details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 4px;
  transition: transform .2s;
}

.page-news .news-entry-details[open] summary::before {
  transform: rotate(90deg);
}

.page-news .news-entry-details ul {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 14px;
  color: rgba(245, 247, 250, .7);
  line-height: 1.7;
}

.page-news .news-archive:has(.news-filter-input:checked) .news-entry,
.page-news .news-archive:has(#filter-fix:checked) .news-entry:not([data-cat="fix"]),
.page-news .news-archive:has(#filter-feature:checked) .news-entry:not([data-cat="feature"]),
.page-news .news-archive:has(#filter-sync:checked) .news-entry:not([data-cat="sync"]) {
  display: none;
}

.page-news .news-archive:has(#filter-all:checked) .news-entry,
.page-news .news-archive:has(#filter-fix:checked) .news-entry[data-cat="fix"],
.page-news .news-archive:has(#filter-feature:checked) .news-entry[data-cat="feature"],
.page-news .news-archive:has(#filter-sync:checked) .news-entry[data-cat="sync"] {
  display: grid;
}

.page-news .news-archive-note {
  margin-top: 24px;
  padding: 16px;
  font-size: 14px;
  color: rgba(245, 247, 250, .6);
  border: 1px dashed var(--news-border);
  line-height: 1.7;
}

.page-news .news-archive-note a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 194, 215, .4);
}

.page-news .news-archive-note a:hover {
  color: var(--lime);
}

@media (min-width: 600px) {
  .page-news .news-sync-badges {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .page-news .news-hero-grid {
    grid-template-columns: 6fr 6fr;
    gap: 48px;
  }

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

  .page-news .news-fix-grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }

  .page-news .news-feature-grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }

  .page-news .news-sync-grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }

  .page-news .news-feature-cards .news-card {
    padding: 28px;
  }

  .page-news .news-entry {
    grid-template-columns: 240px 1fr;
    gap: 20px 32px;
    padding: 24px;
  }

  .page-news .news-entry-meta {
    flex-direction: column;
    align-items: flex-start;
    border-right: 1px solid var(--news-border);
    padding-right: 24px;
  }
}
