/* Deal News article + review pages (news-pages.js). Built on the styles.css
   tokens so articles read as part of the storefront: Inter, brand blue, the red
   discount pill, success-green chips. Light only, like the rest of the site. */

.news-body { background: var(--cr-surface-secondary); }

.nd-wrap { max-width: 760px; margin: 0 auto; padding: 26px 16px 96px; }

.nd-crumbs { font-size: 13px; color: var(--cr-gray-500); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.nd-crumbs a { color: var(--cr-gray-500); text-decoration: none; }
.nd-crumbs a:hover { color: var(--cr-text-brand); text-decoration: underline; }

.nd-kicker {
  margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cr-text-brand);
}
.nd-article h1 {
  margin: 0 0 10px; font-size: clamp(28px, 5.2vw, 40px); line-height: 1.12;
  font-weight: 800; letter-spacing: -.025em; color: var(--cr-text-primary); text-wrap: balance;
}
.nd-dek { margin: 0 0 14px; font-size: 18px; line-height: 1.5; color: var(--cr-text-secondary); text-wrap: pretty; }
.nd-meta { margin: 0 0 18px; font-size: 14px; color: var(--cr-gray-500); display: flex; flex-wrap: wrap; gap: 6px; }
.nd-meta span:first-child { color: var(--cr-text-secondary); font-weight: 600; }
.nd-disclosure {
  margin: 0 0 22px; padding: 10px 14px; font-size: 13px; line-height: 1.5; color: var(--cr-gray-500);
  background: var(--cr-surface); border: 1px solid var(--cr-border-secondary); border-radius: var(--cr-radius-xl);
}
.nd-intro { margin: 0 0 26px; font-size: 17px; line-height: 1.65; color: var(--cr-text-primary); max-width: 65ch; }

/* The numbered deal list */
.nd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: nd; }
.nd-item {
  counter-increment: nd; position: relative;
  display: grid; grid-template-columns: 176px 1fr; gap: 20px; align-items: start;
  background: var(--cr-surface); border: 1px solid var(--cr-border-secondary);
  border-radius: var(--cr-radius-2xl); padding: 18px;
}
.nd-item::before {
  content: counter(nd); position: absolute; top: -10px; left: -10px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cr-brand); color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 0 0 3px var(--cr-surface-secondary);
}
.nd-img {
  display: block; aspect-ratio: 1; border-radius: var(--cr-radius-xl); overflow: hidden;
  background: #fff; border: 1px solid var(--cr-gray-100);
}
.nd-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; display: block; }
.nd-body h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--cr-text-primary); text-wrap: balance; }
.nd-product {
  margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--cr-gray-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nd-pricing { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.nd-price { font-size: 24px; font-weight: 800; color: var(--cr-text-primary); font-variant-numeric: tabular-nums; }
.nd-was { font-size: 15px; color: var(--cr-gray-500); font-variant-numeric: tabular-nums; }
.nd-off {
  align-self: center; padding: 3px 9px; border-radius: var(--cr-radius-full);
  background: var(--cr-error-600); color: #fff; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.nd-chip {
  align-self: center; padding: 3px 9px; border-radius: var(--cr-radius-full);
  background: var(--cr-gray-100); color: var(--cr-text-secondary); font-size: 12.5px; font-weight: 600;
}
.nd-checked { align-self: center; font-size: 12.5px; color: var(--cr-gray-500); }
.nd-proof { margin: 0 0 10px; font-size: 13.5px; color: var(--cr-text-secondary); font-variant-numeric: tabular-nums; }
.nd-stars { color: #b54708; font-weight: 700; }
.nd-blurb { margin: 0 0 14px; font-size: 15.5px; line-height: 1.6; color: var(--cr-text-secondary); max-width: 62ch; }
.nd-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: var(--cr-radius-full); background: var(--cr-brand); color: #fff;
  font-size: 15px; font-weight: 700; text-decoration: none; transition: background var(--cr-dur) var(--cr-ease);
}
.nd-cta:hover { background: var(--cr-brand-hover); }
.nd-cta:focus-visible, .nd-btn:focus-visible { outline: 2px solid var(--cr-brand); outline-offset: 3px; }
.nd-cta-quiet { background: var(--cr-gray-100); color: var(--cr-text-secondary); }
.nd-cta-quiet:hover { background: var(--cr-gray-200); }
.nd-ended .nd-img img { filter: grayscale(1); opacity: .6; }
.nd-ended h2 { color: var(--cr-text-secondary); }

.nd-closing {
  margin: 26px 0 0; padding: 14px 16px; border-radius: var(--cr-radius-xl);
  background: var(--cr-brand-subtle); color: var(--cr-text-primary); font-size: 15px; line-height: 1.55;
}

.nd-more { margin-top: 36px; }
.nd-more h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--cr-text-primary); }
.nd-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nd-more li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 14px;
  background: var(--cr-surface); border: 1px solid var(--cr-border-secondary); border-radius: var(--cr-radius-xl);
}
.nd-more a { color: var(--cr-text-primary); font-weight: 700; text-decoration: none; }
.nd-more a:hover { color: var(--cr-text-brand); text-decoration: underline; }
.nd-more span { color: var(--cr-gray-500); font-size: 13px; }

@media (max-width: 600px) {
  .nd-item { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .nd-img { aspect-ratio: 4 / 3; }
  .nd-item::before { top: 10px; left: 10px; box-shadow: none; }
  .nd-cta { width: 100%; }
}

/* ── Review queue (admin only) ── */
.nd-admin h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--cr-text-primary); }
.nd-queue { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.nd-queue li {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 14px 16px;
  background: var(--cr-surface); border: 1px solid var(--cr-border-secondary); border-radius: var(--cr-radius-xl);
}
.nd-queue a { color: var(--cr-text-primary); font-weight: 700; text-decoration: none; }
.nd-queue a:hover { color: var(--cr-text-brand); text-decoration: underline; }
.nd-queue .nd-q-meta { grid-column: 2; }
.nd-q-meta { font-size: 13px; color: var(--cr-gray-500); }
.nd-status {
  display: inline-block; padding: 3px 10px; border-radius: var(--cr-radius-full);
  font-size: 12px; font-weight: 700; background: #fffaeb; color: #b54708; white-space: nowrap;
}
.nd-q-published .nd-status, .nd-status.nd-q-published { background: var(--cr-success-50); color: var(--cr-success-700); }
.nd-q-rejected .nd-status, .nd-status.nd-q-rejected { background: var(--cr-error-50); color: var(--cr-error-700); }
.nd-empty { color: var(--cr-gray-500); }

.nd-adminbar {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 16px; padding: 12px 16px;
  background: var(--cr-surface); border-bottom: 1px solid var(--cr-border-secondary);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.nd-adminbar > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.nd-adminbar a { color: var(--cr-text-brand); font-weight: 600; text-decoration: none; }
.nd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-actions form { margin: 0; }
.nd-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 0;
  border-radius: var(--cr-radius-full); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.nd-btn-go { background: var(--cr-success-600); color: #fff; }
.nd-btn-go:hover { background: var(--cr-success-700); }
.nd-btn-quiet { background: var(--cr-gray-100); color: var(--cr-text-secondary) !important; }
.nd-btn-quiet:hover { background: var(--cr-gray-200); }
.nd-flash {
  max-width: 760px; margin: 14px auto 0; padding: 10px 14px; border-radius: var(--cr-radius-xl);
  background: var(--cr-success-50); color: var(--cr-success-700); font-size: 14px; font-weight: 600;
}
.nd-flash-warn { background: #fffaeb; color: #b54708; }
