.page-news {
  --news-panel: rgba(18, 42, 74, 0.55);
  --news-line: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(1200px 600px at 85% -5%, rgba(46, 95, 142, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(11, 30, 59, 0.2) 0%, rgba(11, 30, 59, 0) 420px),
    var(--bg-deep);
}

.page-news .news-shell {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-pad);
  padding-top: 28px;
}

.page-news .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.page-news .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-news .breadcrumb a:hover {
  color: var(--gold);
}

.page-news .breadcrumb [aria-current="page"] {
  color: var(--white);
}

.page-news .news-hero {
  margin-bottom: 72px;
}

.page-news .news-hero__grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-news .news-hero__copy {
  position: relative;
  z-index: 2;
}

.page-news .news-hero__copy .index-label {
  color: var(--gold);
  margin-bottom: 18px;
}

.page-news .news-hero__copy h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 24px;
  max-width: 12em;
}

.page-news .news-hero__lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 32px;
}

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

.page-news .news-hero__actions .btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--bg-deep);
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news .news-hero__actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 107, 53, 0.35);
}

.page-news .news-hero__actions .btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(169, 191, 212, 0.35);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-news .news-hero__actions .btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-news .news-hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--news-line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.page-news .news-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 30, 59, 0.5) 0%, transparent 55%, rgba(255, 107, 53, 0.15) 100%);
  pointer-events: none;
}

.page-news .news-hero__visual img,
.page-news .feature-card__img img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .news-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.page-news .hero-stat {
  background: var(--news-panel);
  border: 1px solid var(--news-line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.page-news .hero-stat__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
}

.page-news .hero-stat__label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.page-news .news-radar {
  margin-bottom: 72px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.page-news .news-radar__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.page-news .news-radar__head .index-label {
  color: var(--orange);
  margin-bottom: 8px;
  display: inline-block;
}

.page-news .news-radar__head .section-heading {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 200;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.01em;
}

.page-news .news-radar__hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.page-news .news-radar__filter {
  position: relative;
}

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

.page-news .news-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.page-news .filter-label {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(169, 191, 212, 0.3);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  background: rgba(11, 30, 59, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.page-news .filter-label:hover {
  border-color: var(--gold);
  color: var(--white);
}

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

.page-news #filter-all:checked ~ .news-controls .filter-label[for="filter-all"],
.page-news #filter-version:checked ~ .news-controls .filter-label[for="filter-version"],
.page-news #filter-rule:checked ~ .news-controls .filter-label[for="filter-rule"],
.page-news #filter-access:checked ~ .news-controls .filter-label[for="filter-access"],
.page-news #filter-revisit:checked ~ .news-controls .filter-label[for="filter-revisit"],
.page-news #filter-record:checked ~ .news-controls .filter-label[for="filter-record"] {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-color: transparent;
  color: var(--bg-deep);
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.25);
}

.page-news .news-list {
  background: rgba(13, 32, 59, 0.6);
  border: 1px solid var(--news-line);
  border-radius: var(--radius-lg);
  padding: 6px 12px;
  backdrop-filter: blur(6px);
}

.page-news .news-item {
  display: grid;
  grid-template-columns: 36px 12px 1fr;
  gap: 8px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--news-line);
  border-radius: var(--radius-sm);
  transition: background 0.25s ease;
}

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

.page-news .news-item:hover {
  background: rgba(27, 58, 92, 0.3);
}

.page-news .news-item__num {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(169, 191, 212, 0.5);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.page-news .news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  display: block;
  box-shadow: 0 0 12px currentColor;
}

.page-news .news-dot--version { background: var(--gold); color: rgba(255, 179, 71, 0.5); }

.page-news .news-dot--rule { background: var(--orange); color: rgba(255, 107, 53, 0.5); }

.page-news .news-dot--access { background: var(--highlight); color: rgba(255, 217, 128, 0.5); }

.page-news .news-dot--revisit { background: var(--bg-accent); color: rgba(46, 95, 142, 0.5); }

.page-news .news-dot--record { background: var(--muted); color: rgba(169, 191, 212, 0.4); }

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

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

.page-news .news-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 179, 71, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 179, 71, 0.2);
}

.page-news .news-time {
  font-size: 12px;
  color: rgba(169, 191, 212, 0.65);
  font-family: var(--font-mono);
}

.page-news .news-item__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
  margin: 0 0 6px;
}

.page-news .news-item__summary {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 4px;
}

.page-news .news-more {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-news .news-more summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: color 0.2s ease;
}

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

.page-news .news-more summary::before {
  content: "↳";
  display: inline-block;
  transition: transform 0.2s ease;
}

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

.page-news .news-more[open] summary {
  color: var(--orange);
}

.page-news .news-more p {
  margin: 10px 0 0;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 179, 71, 0.25);
}

.page-news .news-more a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 179, 71, 0.3);
  transition: border-color 0.2s ease;
}

.page-news .news-more a:hover {
  border-color: var(--gold);
}

.page-news .news-list__footer {
  padding: 20px 12px 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.page-news .news-list__footer a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 179, 71, 0.3);
}

.page-news .news-list__footer a:hover {
  color: var(--highlight);
}

.page-news .news-feature {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.page-news .news-feature__head {
  margin-bottom: 32px;
}

.page-news .news-feature__head .index-label {
  color: var(--highlight);
  margin-bottom: 10px;
  display: inline-block;
}

.page-news .news-feature__head .section-heading {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 200;
  color: var(--white);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.page-news .news-feature__intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
}

.page-news .news-feature__grid {
  display: grid;
  gap: 24px;
}

.page-news .feature-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-panel) 0%, rgba(11, 30, 59, 0.85) 100%);
  border: 1px solid var(--news-line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.page-news .feature-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.14), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.page-news .feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
  z-index: 3;
}

.page-news .feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 179, 71, 0.3);
}

.page-news .feature-card:hover::before {
  transform: scaleX(1);
}

.page-news .feature-card__img {
  position: relative;
  z-index: 1;
  padding: 16px;
}

.page-news .feature-card__img img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 7 / 4;
  background: var(--bg-hover);
}

.page-news .feature-card--wide .feature-card__img img {
  aspect-ratio: 5 / 3;
}

.page-news .feature-card__content {
  position: relative;
  z-index: 2;
  padding: 8px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.page-news .feature-card__content .news-tag {
  margin-bottom: 14px;
}

.page-news .feature-card__content h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.page-news .feature-card__content blockquote {
  margin: 0 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
}

.page-news .feature-card__content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 20px;
}

.page-news .feature-card__content .btn {
  margin-top: auto;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(169, 191, 212, 0.35);
  color: var(--white);
  background: transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.page-news .feature-card__content .btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-news .feature-card__stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(11, 30, 59, 0.55);
  border: 1px solid var(--news-line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.page-news .feature-card__stat-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.page-news #filter-all:checked ~ .news-list .news-item { display: grid; }

.page-news #filter-version:checked ~ .news-list .news-item[data-category="version"] { display: grid; }
.page-news #filter-version:checked ~ .news-list .news-item:not([data-category="version"]) { display: none; }

.page-news #filter-rule:checked ~ .news-list .news-item[data-category="rule"] { display: grid; }
.page-news #filter-rule:checked ~ .news-list .news-item:not([data-category="rule"]) { display: none; }

.page-news #filter-access:checked ~ .news-list .news-item[data-category="access"] { display: grid; }
.page-news #filter-access:checked ~ .news-list .news-item:not([data-category="access"]) { display: none; }

.page-news #filter-revisit:checked ~ .news-list .news-item[data-category="revisit"] { display: grid; }
.page-news #filter-revisit:checked ~ .news-list .news-item:not([data-category="revisit"]) { display: none; }

.page-news #filter-record:checked ~ .news-list .news-item[data-category="record"] { display: grid; }
.page-news #filter-record:checked ~ .news-list .news-item:not([data-category="record"]) { display: none; }

@media (min-width: 768px) {
  .page-news .news-hero__grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }

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

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

  .page-news .news-radar__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-news .news-radar__hint {
    text-align: right;
    max-width: 36ch;
  }

  .page-news .news-item {
    grid-template-columns: 56px 20px 1fr;
    gap: 16px;
    padding: 24px 16px;
  }

  .page-news .news-item__num {
    font-size: 15px;
  }

  .page-news .news-item__title {
    font-size: 18px;
  }

  .page-news .news-list {
    padding: 8px 20px;
  }
}

@media (min-width: 900px) {
  .page-news .news-feature__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .page-news .feature-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }

  .page-news .feature-card--wide .feature-card__img {
    width: 42%;
    display: flex;
    align-items: center;
    padding: 20px;
  }

  .page-news .feature-card--wide .feature-card__content {
    width: 58%;
    padding: 36px 40px 36px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-item,
  .page-news .feature-card,
  .page-news .filter-label,
  .page-news .news-hero__actions .btn-primary,
  .page-news .news-hero__actions .btn-secondary {
    transition: none;
  }

  .page-news .feature-card:hover {
    transform: none;
  }
}
