/* ============================================================
   NetJolt docs + landing additions. Loaded after css/style.css by
   netjolt.html and the netjolt-*.html pages only.

   RELEASE GATE: every unreleased feature sits inside an element with
   data-nj-status="soon". Change it to data-nj-status="live" and the
   .nj-soon copy hides while the .nj-live copy appears. Nothing else
   needs editing. See the PR description for the full flip procedure.
   ============================================================ */

/* --- Status badge --- */
.nj-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 980px;
  vertical-align: middle;
}
.nj-badge.nj-soon { background: rgba(251, 191, 36, 0.15); color: var(--amber); }
.nj-badge.nj-live { background: rgba(52, 211, 153, 0.15); color: var(--green); }

/* --- Release gate (kept after the badge rules so it wins on equal specificity) --- */
.nj-live, .nj-badge.nj-live { display: none; }
[data-nj-status="live"] .nj-live { display: revert; }
[data-nj-status="live"] .nj-badge.nj-live { display: inline-block; }
[data-nj-status="live"] .nj-soon, [data-nj-status="live"] .nj-badge.nj-soon { display: none; }

/* --- Page head (docs pages) --- */
.nj-pagehead {
  padding: calc(var(--nav-height) + 4rem) 0 2.5rem;
  background: var(--black);
}
.nj-pagehead .container, .nj-doc { max-width: 860px; }
.nj-crumbs { font-size: 0.875rem; color: var(--gray-400); margin-bottom: 1.25rem; }
.nj-crumbs a { color: var(--blue); }
.nj-crumbs a:hover { text-decoration: underline; }
.nj-pagehead h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.nj-lede { font-size: 1.1875rem; color: var(--gray-400); max-width: 680px; }

/* --- Status notice --- */
.nj-notice {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--gray-200);
  font-size: 0.9375rem;
}
.nj-notice strong { color: var(--amber); }
[data-nj-status="live"] .nj-notice { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.25); }
[data-nj-status="live"] .nj-notice strong { color: var(--green); }

/* --- Doc body --- */
.nj-body { padding: 3rem 0 5rem; background: var(--black-warm); }
.nj-doc { margin: 0 auto; padding: 0 2rem; }
.nj-doc h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 3rem 0 0.875rem;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}
.nj-doc h2:first-child { margin-top: 0; }
.nj-doc h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}
.nj-doc p, .nj-doc li { color: var(--gray-200); font-size: 1rem; line-height: 1.7; }
.nj-doc p { margin-bottom: 1rem; }
.nj-doc ul, .nj-doc ol { margin: 0 0 1rem 1.25rem; }
.nj-doc li { margin-bottom: 0.4rem; }
.nj-doc a { color: var(--blue); text-decoration: underline; }
.nj-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  background: var(--dark);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

/* Tool sections on the docs hub */
.nj-tool {
  padding: 2rem;
  margin: 0 0 1.5rem;
  background: var(--dark);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.nj-tool h2 { margin-top: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.nj-tool dl { display: grid; grid-template-columns: 9rem 1fr; gap: 0.5rem 1rem; margin-top: 1rem; }
.nj-tool dt { color: var(--gray-400); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 0.2rem; }
.nj-tool dd { color: var(--gray-200); font-size: 0.9375rem; line-height: 1.6; }
.nj-tool .nj-more { margin: 1rem 0 0; }

/* Table of contents + platform table */
.nj-toc { columns: 2; column-gap: 2rem; list-style: none; margin: 0 0 2rem; padding: 0; }
.nj-toc li { break-inside: avoid; margin-bottom: 0.35rem; }
.nj-table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.nj-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.nj-table th, .nj-table td { text-align: left; padding: 0.625rem 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: top; color: var(--gray-200); }
.nj-table th { color: var(--gray-400); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.nj-no { color: var(--gray-600); }

/* FAQ */
.nj-faq details { background: var(--dark); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.nj-faq summary { cursor: pointer; font-weight: 600; color: var(--white); }
.nj-faq details p { margin: 0.75rem 0 0; }

/* Landing-page "coming soon" section */
.nj-soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.nj-soon-grid .feature__title a:hover { color: var(--blue); }
.nj-linkrow { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; }

@media (max-width: 900px) {
  .nj-soon-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nj-doc { padding: 0 1rem; }
  .nj-tool { padding: 1.25rem; }
  .nj-tool dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .nj-tool dt { padding-top: 0.6rem; }
  .nj-toc { columns: 1; }
}
