/**
 * News & Blog detail v2 — dark magazine layout
 * public/news_detail.php
 */

.nd-v2-page {
  background: transparent;
  color: var(--fx-text);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.nd-v2-wrap {
  max-width: min(1720px, 96vw);
  margin: 0 auto;
  padding-left: clamp(1.35rem, 3vw, 2.5rem);
  padding-right: clamp(1.15rem, 2.5vw, 2.25rem);
}

/* ── Hero split ── */
.nd-v2-hero {
  padding: clamp(0.75rem, 1.5vw, 1.25rem) 0 clamp(0.65rem, 1.2vw, 1rem);
  border-bottom: 1px solid var(--fx-border);
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.05), transparent 70%);
}

.nd-v2-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.nd-v2-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-text-dim);
}

.nd-v2-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.nd-v2-breadcrumb a:hover {
  color: var(--fx-accent-bright);
}

.nd-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: var(--fx-radius-pill);
  background: rgba(255, 102, 0, 0.14);
  border: 1px solid rgba(255, 102, 0, 0.32);
  color: var(--fx-accent-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nd-v2-title {
  margin: 0 0 0.5rem;
  font-family: var(--fx-font-display);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--fx-text);
}

.nd-v2-deck {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--fx-text-muted);
  max-width: 70ch;
}

.nd-v2-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0;
  padding: 0.55rem 0 0;
  list-style: none;
  border-top: 1px solid var(--fx-border);
  font-size: 0.72rem;
  color: var(--fx-text-muted);
}

.nd-v2-meta i {
  color: var(--fx-accent-bright);
  margin-right: 0.25rem;
}

.nd-v2-hero__media {
  margin: 0;
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--fx-border);
  box-shadow: var(--fx-shadow-glass);
}

.nd-v2-hero__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ── 3-column layout ── */
.nd-v2-body-section {
  padding: clamp(0.75rem, 1.5vw, 1.25rem) 0;
}

.nd-v2-layout {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr) minmax(0, 260px);
  gap: clamp(1rem, 1.8vw, 1.35rem);
  align-items: start;
}

.nd-v2-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--fx-header-h, 72px) + var(--fx-topbar-h, 36px) + 0.75rem);
}

.nd-v2-rail-card {
  padding: 0.65rem 0.85rem;
  background: var(--fx-bg-glass);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-md);
  backdrop-filter: blur(12px);
}

.nd-v2-rail-title {
  margin: 0 0 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-text-dim);
}

/* Share rail */
.nd-v2-share-rail__btns {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nd-v2-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  color: var(--fx-text-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.nd-v2-share-btn:hover {
  border-color: var(--fx-border-accent);
  color: var(--fx-accent-bright);
  box-shadow: 0 0 14px rgba(255, 102, 0, 0.2);
}

/* TOC */
.nd-v2-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nd-v2-toc__item {
  margin-bottom: 0.4rem;
}

.nd-v2-toc__item--h3 {
  padding-left: 0.75rem;
}

.nd-v2-toc__item a {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--fx-text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  transition: color 0.2s, border-color 0.2s;
}

.nd-v2-toc__item a:hover {
  color: var(--fx-accent-bright);
  border-left-color: var(--fx-accent);
}

/* Mobile TOC (left rail hidden on tablet) */
.nd-v2-toc-mobile {
  display: none;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-md);
}

.nd-v2-toc-mobile__summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-text-muted);
  cursor: pointer;
  list-style: none;
}

.nd-v2-toc-mobile__summary::-webkit-details-marker {
  display: none;
}

.nd-v2-toc-mobile[open] .nd-v2-toc-mobile__summary {
  margin-bottom: 0.55rem;
  color: var(--fx-accent-bright);
}

.nd-v2-toc-mobile .nd-v2-toc__list {
  padding-top: 0.15rem;
}

/* Article card */
.nd-v2-article__card {
  background: var(--fx-bg-glass);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  padding: clamp(1rem, 1.8vw, 1.35rem) clamp(1.1rem, 2vw, 1.5rem);
  box-shadow: var(--fx-shadow-glass);
  margin-bottom: 1rem;
}

/* Prose / rich embeds */
.nd-v2-prose,
.nd-v2-prose.article-content {
  color: var(--fx-text-muted);
  font-size: 0.84rem;
  line-height: 1.62;
  word-wrap: break-word;
}

.nd-v2-prose h2,
.nd-v2-prose h2.article-content__section-title {
  margin: 1.15rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--fx-border);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--fx-text);
  scroll-margin-top: calc(var(--fx-header-h, 72px) + var(--fx-topbar-h, 36px) + 1rem);
}

.nd-v2-prose h3 {
  margin: 0.95rem 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fx-text);
  scroll-margin-top: calc(var(--fx-header-h, 72px) + var(--fx-topbar-h, 36px) + 1rem);
}

.nd-v2-prose p { margin-bottom: 0.75rem; }
.nd-v2-prose a { color: var(--fx-accent-bright); }
.nd-v2-prose strong { color: var(--fx-text); }

.nd-v2-prose img,
.nd-v2-prose figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--fx-radius-md);
  border: 1px solid var(--fx-border);
  margin: 1rem auto;
  display: block;
}

.nd-v2-prose figure {
  margin: 1rem 0;
}

.nd-v2-prose figure.image figcaption,
.nd-v2-prose figcaption {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--fx-text-dim);
  text-align: center;
}

.nd-v2-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.nd-v2-prose th,
.nd-v2-prose td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--fx-border);
  text-align: left;
}

.nd-v2-prose th {
  background: rgba(255, 102, 0, 0.1);
  color: var(--fx-accent-bright);
}

.nd-v2-prose blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--fx-accent);
  background: rgba(255, 102, 0, 0.06);
  border-radius: 0 var(--fx-radius-sm) var(--fx-radius-sm) 0;
  color: var(--fx-text-muted);
}

.nd-v2-embed {
  position: relative;
  margin: 1.5rem 0;
  border-radius: var(--fx-radius-md);
  overflow: hidden;
  border: 1px solid var(--fx-border);
  background: rgba(0, 0, 0, 0.35);
}

.nd-v2-embed--video {
  aspect-ratio: 16 / 9;
}

.nd-v2-embed iframe,
.nd-v2-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.nd-v2-prose .article-visual {
  width: 100%;
  clear: both;
  margin: 0.65rem 0;
}

.nd-v2-prose .article-stat-row,
.nd-v2-prose .article-spec-grid,
.nd-v2-prose .article-icon-grid {
  margin: 0.65rem 0;
  width: 100%;
}

.nd-v2-prose .article-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.nd-v2-prose .article-stat {
  min-height: 0;
  padding: 0.5rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm);
}

.nd-v2-prose .article-stat__icon {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.7rem;
  border-radius: 6px;
  background: rgba(255, 102, 0, 0.14);
  color: var(--fx-accent-bright);
}

.nd-v2-prose .article-stat__label {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--fx-text-dim);
}

.nd-v2-prose .article-stat__value {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fx-text);
  line-height: 1.25;
}

.nd-v2-prose .article-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.nd-v2-prose .article-spec-card {
  padding: 0.45rem 0.55rem;
  font-size: 0.76rem;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm);
  color: var(--fx-text-muted);
}

.nd-v2-prose .article-spec-card__dot {
  width: 6px;
  height: 6px;
  margin-top: 0.28rem;
  background: var(--fx-accent-bright);
}

.nd-v2-prose .article-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 0.4rem;
}

.nd-v2-prose .article-icon-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-pill);
  font-size: 0.7rem;
  line-height: 1.25;
  color: var(--fx-text-muted);
  text-align: left;
}

.nd-v2-prose .article-icon-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nd-v2-prose .article-icon-chip__icon {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.62rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 102, 0, 0.14);
  color: var(--fx-accent-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nd-v2-prose .article-figure {
  margin: 0.65rem 0;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.nd-v2-prose .article-figure figcaption {
  padding: 0.4rem 0.6rem;
  font-size: 0.72rem;
  color: var(--fx-text-dim);
  border-top: 1px solid var(--fx-border);
}

.nd-v2-prose .article-cta-panel {
  padding: 0.65rem 0.75rem;
  gap: 0.55rem;
  border-radius: var(--fx-radius-sm);
}

.nd-v2-prose .article-cta-panel p {
  font-size: 0.8rem !important;
}

.nd-v2-prose .article-cta-panel__btn {
  font-size: 0.75rem;
  padding: 0.45rem 0.75rem;
}

.nd-v2-prose .article-stat__value { color: var(--fx-text); }

/* Ads */
.nd-v2-ad {
  margin: 1.25rem 0;
}

.nd-v2-ad__eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-text-dim);
}

.nd-v2-ad__frame {
  border: 1px dashed rgba(255, 102, 0, 0.28);
  border-radius: var(--fx-radius-md);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.nd-v2-ad--skyscraper .nd-v2-ad__frame {
  min-height: 280px;
}

.nd-v2-ad--inline .nd-v2-ad__frame {
  min-height: 120px;
}

.nd-v2-ad__frame--live {
  border-style: solid;
  border-color: rgba(255, 102, 0, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.nd-v2-ad__link,
.nd-v2-ad__media {
  display: block;
  line-height: 0;
}

.nd-v2-ad__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.nd-v2-ad--skyscraper .nd-v2-ad__img {
  min-height: 200px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.15);
}

.nd-v2-ad--inline .nd-v2-ad__frame--live {
  min-height: 0;
}

.nd-v2-ad__html {
  padding: 0.75rem;
  font-size: 0.82rem;
  color: var(--fx-text-muted);
}

.nd-v2-ad__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: inherit;
  padding: 1rem;
  text-align: center;
  color: var(--fx-text-dim);
  font-size: 0.78rem;
}

.nd-v2-ad__placeholder i {
  font-size: 1.5rem;
  color: rgba(255, 102, 0, 0.45);
}

.nd-v2-ad__slot-name {
  font-weight: 600;
  color: var(--fx-text-muted);
  text-transform: capitalize;
}

/* Author */
.nd-v2-author {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fx-border);
}

.nd-v2-author__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-bright));
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.nd-v2-author__name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--fx-text);
}

.nd-v2-author__bio {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fx-text-muted);
  line-height: 1.5;
}

.nd-v2-article__share-mobile {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--fx-text-dim);
}

.nd-v2-article__share-mobile a {
  color: var(--fx-text-muted);
  font-size: 1.1rem;
}

/* Comments */
.nd-v2-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--fx-text);
}

.nd-v2-comments {
  margin-bottom: 1.5rem;
}

.nd-v2-comment-form,
.nd-v2-comment__reply-form {
  margin-bottom: 1.25rem;
}

.nd-v2-comment__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.nd-v2-comment-form input[type="text"],
.nd-v2-comment-form input[type="email"],
.nd-v2-comment-form textarea,
.nd-v2-comment__reply-form input,
.nd-v2-comment__reply-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--fx-radius-sm);
  border: 1px solid var(--fx-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--fx-text);
  font-family: inherit;
  font-size: 0.88rem;
}

.nd-v2-comment-form textarea,
.nd-v2-comment__reply-form textarea {
  margin-bottom: 0.55rem;
  resize: vertical;
}

.nd-v2-comment__form-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.nd-v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--fx-radius-pill);
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.nd-v2-btn--primary {
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-bright));
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.28);
}

.nd-v2-btn--ghost {
  background: transparent;
  border-color: var(--fx-border);
  color: var(--fx-text-muted);
}

.nd-v2-btn--block { width: 100%; }

.nd-v2-comment__form-msg.is-success,
.nd-v2-newsletter-rail__msg.is-success,
.nd-v2-newsletter-modal__msg.is-success { color: #86efac; font-size: 0.82rem; }

.nd-v2-comment__form-msg.is-error,
.nd-v2-newsletter-rail__msg.is-error,
.nd-v2-newsletter-modal__msg.is-error { color: #fca5a5; font-size: 0.82rem; }

.nd-v2-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.nd-v2-comment {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.65rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--fx-border);
}

.nd-v2-comment__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 102, 0, 0.18);
  color: var(--fx-accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.nd-v2-comment__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.nd-v2-comment__author { color: var(--fx-text); font-size: 0.9rem; }
.nd-v2-comment__time { font-size: 0.72rem; color: var(--fx-text-dim); }
.nd-v2-comment__text { font-size: 0.9rem; line-height: 1.55; color: var(--fx-text-muted); margin-bottom: 0.45rem; }

.nd-v2-comment__reply-btn {
  padding: 0;
  border: none;
  background: none;
  color: var(--fx-accent-bright);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.nd-v2-comment__children {
  grid-column: 1 / -1;
  margin-left: 1.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--fx-border);
}

.nd-v2-comments__empty {
  color: var(--fx-text-dim);
  font-size: 0.9rem;
}

/* Post nav + related */
.nd-v2-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.nd-v2-post-nav__item {
  padding: 0.85rem 1rem;
  border-radius: var(--fx-radius-md);
  border: 1px solid var(--fx-border);
  background: var(--fx-bg-glass);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.nd-v2-post-nav__item:hover {
  border-color: var(--fx-border-accent);
}

.nd-v2-post-nav__item--next { text-align: right; }
.nd-v2-post-nav__label { display: block; font-size: 0.72rem; color: var(--fx-text-dim); margin-bottom: 0.25rem; }
.nd-v2-post-nav__title { font-size: 0.88rem; font-weight: 600; color: var(--fx-text); }

.nd-v2-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.nd-v2-related__all {
  font-size: 0.82rem;
  color: var(--fx-accent-bright);
  text-decoration: none;
}

.nd-v2-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.nd-v2-related-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--fx-radius-md);
  overflow: hidden;
  border: 1px solid var(--fx-border);
  background: var(--fx-bg-glass);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.nd-v2-related-card:hover {
  border-color: var(--fx-border-accent);
  transform: translateY(-3px);
}

.nd-v2-related-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.nd-v2-related-card__body { padding: 0.75rem; }
.nd-v2-related-card__cat {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-accent-bright);
  margin-bottom: 0.35rem;
}

.nd-v2-related-card__title {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--fx-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nd-v2-related-card__meta {
  font-size: 0.72rem;
  color: var(--fx-text-dim);
}

/* Right rail newsletter */
.nd-v2-newsletter-rail__text {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--fx-text-muted);
  line-height: 1.45;
}

.nd-v2-newsletter-rail__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}

.nd-v2-newsletter-rail__form input {
  padding: 0.55rem 0.65rem;
  border-radius: var(--fx-radius-sm);
  border: 1px solid var(--fx-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--fx-text);
  font-size: 0.85rem;
}

.nd-v2-recent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nd-v2-recent li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--fx-border);
}

.nd-v2-recent li:last-child { border-bottom: none; }

.nd-v2-recent a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.nd-v2-recent__title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fx-text);
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.nd-v2-recent__date {
  font-size: 0.72rem;
  color: var(--fx-text-dim);
}

.nd-v2-progress-card .fx-rail-progress__track {
  height: 4px;
  background: var(--fx-surface);
  border-radius: var(--fx-radius-pill);
  overflow: hidden;
}

/* Newsletter modal */
.nd-v2-newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--fx-z-drawer, 1100) + 5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 1.75rem);
}

.nd-v2-newsletter-modal[hidden] { display: none !important; }

.nd-v2-newsletter-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(8px);
}

.nd-v2-newsletter-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 440px;
  width: 100%;
  border-radius: calc(var(--fx-radius-lg) + 2px);
  overflow: hidden;
  border: 1px solid rgba(255, 102, 0, 0.22);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  background: linear-gradient(180deg, rgba(18, 20, 28, 0.98), rgba(8, 10, 16, 0.98));
}

.nd-v2-newsletter-modal__header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--fx-border);
}

.nd-v2-newsletter-modal__close {
  flex: 0 0 auto;
  align-self: flex-start;
  margin: 0.75rem 0 0 0.85rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fx-text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nd-v2-newsletter-modal__close:hover {
  color: var(--fx-text);
  border-color: rgba(255, 102, 0, 0.45);
  background: rgba(255, 102, 0, 0.08);
}

.nd-v2-newsletter-modal__brand {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.25rem;
  margin-left: auto;
  max-width: 58%;
  background: linear-gradient(145deg, rgba(180, 90, 30, 0.55), rgba(255, 102, 0, 0.28) 45%, rgba(12, 14, 22, 0.2));
  border-left: 1px solid rgba(255, 102, 0, 0.18);
  text-align: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nd-v2-newsletter-modal__brand i {
  font-size: 1.35rem;
  color: #fff;
}

.nd-v2-newsletter-modal__body {
  padding: clamp(1.35rem, 3.5vw, 1.75rem) clamp(1.35rem, 3.5vw, 1.85rem) clamp(1.25rem, 3vw, 1.65rem);
}

.nd-v2-newsletter-modal__title {
  margin: 0 0 0.45rem;
  font-family: var(--fx-font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-text);
}

.nd-v2-newsletter-modal__text {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--fx-text-muted);
  line-height: 1.55;
}

.nd-v2-newsletter-modal__form input[type="email"] {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.72rem 0.85rem;
  border-radius: var(--fx-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--fx-text);
  font-size: 0.84rem;
}

.nd-v2-newsletter-modal__form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 102, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}

.nd-v2-newsletter-modal__form .nd-v2-btn--block {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.78rem 1rem;
}

.nd-v2-newsletter-modal__fine {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--fx-text-dim);
  line-height: 1.45;
}

.nd-v2-newsletter-modal__fine a { color: var(--fx-accent-bright); text-decoration: none; }
.nd-v2-newsletter-modal__fine a:hover { text-decoration: underline; }

body.nd-v2-modal-open { overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
  .nd-v2-prose .article-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .nd-v2-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  }

  .nd-v2-rail--left { display: none; }

  .nd-v2-article__share-mobile { display: flex; }

  .nd-v2-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Mobile & small tablet ── */
@media (max-width: 900px) {
  .nd-v2-layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    gap: 1.25rem;
  }

  .nd-v2-article {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  .nd-v2-rail--right {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  /* Hide duplicate progress — top bar handles mobile */
  .nd-v2-progress-card {
    display: none;
  }

  .nd-v2-hero {
    padding-top: 0.5rem;
    border-bottom: none;
  }

  .nd-v2-hero__grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .nd-v2-hero__media {
    order: -1;
    margin-left: calc(-1 * clamp(1rem, 4vw, 1.35rem));
    margin-right: calc(-1 * clamp(1rem, 4vw, 1.35rem));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .nd-v2-hero__img {
    aspect-ratio: 16 / 9;
    max-height: 52vh;
  }

  .nd-v2-breadcrumb {
    font-size: 0.65rem;
    margin-bottom: 0.55rem;
  }

  .nd-v2-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.28;
    margin-bottom: 0.65rem;
  }

  .nd-v2-deck {
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: none;
  }

  .nd-v2-meta {
    gap: 0.4rem;
    padding-top: 0.65rem;
    font-size: 0.7rem;
  }

  .nd-v2-meta li {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-pill);
    white-space: nowrap;
  }

  .nd-v2-body-section {
    padding-top: 0.35rem;
  }

  .nd-v2-toc-mobile {
    display: block;
  }

  .nd-v2-article__card {
    padding: 1.15rem 1.1rem;
    border-radius: var(--fx-radius-md);
  }

  .nd-v2-prose,
  .nd-v2-prose.article-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .nd-v2-prose h2,
  .nd-v2-prose h2.article-content__section-title {
    font-size: 1.1rem;
    margin-top: 1.35rem;
  }

  .nd-v2-prose h3 {
    font-size: 1rem;
  }

  .nd-v2-prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.82rem;
  }

  .nd-v2-article__share-mobile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.85rem 0 0;
    margin-top: 1.15rem;
    border-top: 1px solid var(--fx-border);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fx-text-dim);
  }

  .nd-v2-article__share-mobile a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    font-size: 1rem;
  }

  .nd-v2-rail-card {
    padding: 0.85rem 1rem;
  }

  .nd-v2-rail-title {
    font-size: 0.68rem;
    margin-bottom: 0.55rem;
  }

  .nd-v2-newsletter-rail__form {
    grid-template-columns: 1fr;
  }

  .nd-v2-newsletter-rail__form .nd-v2-btn {
    width: 100%;
    min-height: 2.75rem;
  }

  .nd-v2-recent__title {
    font-size: 0.88rem;
    white-space: normal;
  }

  .nd-v2-related__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .nd-v2-related-card {
    flex-direction: row;
    align-items: stretch;
  }

  .nd-v2-related-card__img {
    width: 7.5rem;
    min-width: 7.5rem;
    aspect-ratio: 4 / 3;
    border-radius: var(--fx-radius-md) 0 0 var(--fx-radius-md);
  }

  .nd-v2-related-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    min-width: 0;
  }

  .nd-v2-related-card__title {
    font-size: 0.88rem;
    -webkit-line-clamp: 3;
  }

  .nd-v2-post-nav {
    grid-template-columns: 1fr;
  }

  .nd-v2-post-nav__item--next {
    text-align: left;
  }

  .nd-v2-comment__form-grid {
    grid-template-columns: 1fr;
  }

  .nd-v2-comment__children {
    margin-left: 0.75rem;
    padding-left: 0.55rem;
  }

  .nd-v2-ad--skyscraper .nd-v2-ad__frame {
    min-height: 0;
  }

  .nd-v2-newsletter-modal__panel {
    max-width: min(440px, 94vw);
  }

  .nd-v2-rail {
    position: static;
  }

  .nd-v2-newsletter-modal__brand {
    max-width: 62%;
  }
}

@media (max-width: 768px) {
  .nd-v2-prose .article-stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .nd-v2-prose .article-spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-v2-related-card:hover { transform: none; }
}
