/* Page wrapper aligns with your site look */
.np-page{
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

/* HERO */
.np-hero{
  background:
    radial-gradient(1200px 380px at 30% -10%, rgba(124,194,255,.14), transparent 55%),
    radial-gradient(900px 320px at 95% 20%, rgba(142,240,194,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  overflow: hidden;
}

.np-hero-inner{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  padding: 18px;
  align-items: start;
}

@media (max-width: 1080px){
  .np-hero-inner{ grid-template-columns: 1fr; }
}

.np-kicker{
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}

.np-title{
  margin: 8px 0 6px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: .01em;
}

.np-sub{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.np-hero-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.np-pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text);
  font-size: 13px;
}

.np-hero-note{
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 14px;
}

.np-hero-note-title{
  font-weight: 850;
  letter-spacing: .01em;
  margin-bottom: 8px;
}

.np-hero-note-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.np-hero-note-list li{ margin: 6px 0; }

/* LAYOUT: content + TOC */
.np-layout{
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1120px){
  .np-layout{ grid-template-columns: 1fr; }
  .np-toc{ position: static; }
}

/* CHAPTER */
.np-chapter{
  scroll-margin-top: 84px; /* helps anchor jump with sticky header */
}

.np-chapter + .np-chapter{ margin-top: 14px; }

.np-chapter-head{
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.np-chapter-num{
  height: 44px;
  width: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: .02em;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  color: var(--text);
}

.np-chapter-title{
  margin: 0;
  font-size: 20px;
  letter-spacing: .01em;
}

.np-chapter-desc{
  margin: 4px 0 0;
  color: var(--muted);
}

/* VIDEO CARD */
.np-card{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  overflow: hidden;
}

.np-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.35);
}

.np-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.np-card-body{
  padding: 12px 14px 14px;
}

.np-card-title{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .01em;
}

.np-card-text{
  margin: 0;
  color: var(--muted);
}

/* TOC */
.np-toc{
  position: sticky;
  top: 84px; /* below header; adjust if needed */
  height: calc(100dvh - 96px);
}

.np-toc-inner{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.np-toc-title{
  font-weight: 950;
  letter-spacing: .02em;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
}

.np-toc-nav{
  display: grid;
  gap: 6px;
}

.np-toc-link{
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.np-toc-link:hover{
  background: linear-gradient(90deg, rgba(124,194,255,.12), rgba(142,240,194,.10));
  border-color: rgba(124,194,255,.18);
  transform: translateY(-1px);
}

.np-toc-link:active{ transform: translateY(0); }

.np-toc-badge{
  height: 26px;
  width: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  color: var(--text);
}

.np-toc-text{
  font-size: 13px;
  color: var(--text);
  line-height: 1.2;
}

.np-toc-link.is-active{
  background: rgba(124,194,255,.10);
  border-color: rgba(124,194,255,.22);
}

.np-toc-link.is-active .np-toc-text{
  font-weight: 800;
}

/* TOC footer */
.np-toc-foot{
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.np-toc-foot-title{
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 4px;
}

.np-toc-foot-text{
  color: var(--muted);
  font-size: 13px;
}

/* MORE COMING SOON */
.np-soon-card{
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(124,194,255,.10), transparent 55%),
    radial-gradient(900px 240px at 90% 30%, rgba(142,240,194,.08), transparent 55%),
    rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  overflow: hidden;
}

.np-soon-top{
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.np-soon-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.07);
  font-weight: 900;
  letter-spacing: .02em;
}

.np-soon-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 520px){
  .np-soon-grid{ grid-template-columns: 1fr; }
}

.np-soon-chip{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  color: var(--text);
  font-weight: 700;
}

.np-soon-bottom{
  padding: 14px;
}

.np-soon-title{
  font-weight: 950;
  font-size: 18px;
  margin-bottom: 6px;
}

.np-soon-text{
  margin: 0 0 10px;
  color: var(--muted);
}

.np-soon-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
}

.np-soon-link:hover{
  background: rgba(124,194,255,.10);
  border-color: rgba(124,194,255,.20);
  transform: translateY(-1px);
}
.np-soon-link:active{ transform: translateY(0); }
