/* ═══════════════════════════════════════════════════════════════════
   NicheMap Theme — theme-nichemap.css
   Prefix: nm-
   Themes: dark (default) · light
   To switch: set data-theme="light" on <body> in layout
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Dark theme (default) ──────────────────────────────────────────── */
:root,
body[data-theme="dark"] {
  --nm-bg:        #080c14;
  --nm-bg-2:      #0d1424;
  --nm-bg-3:      #111827;
  --nm-bg-card:   #111827;
  --nm-border:    rgba(255,255,255,.07);
  --nm-border-2:  rgba(255,255,255,.12);
  --nm-text-1:    #f1f5f9;
  --nm-text-2:    #94a3b8;
  --nm-text-3:    #64748b;
  --nm-accent:    #6366f1;
  --nm-accent-2:  #0ea5e9;
  --nm-grad:      linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --nm-radius:    12px;
  --nm-radius-lg: 18px;
  --nm-shadow:    0 4px 24px rgba(0,0,0,.4);
  --nm-font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nm-font-head: 'Plus Jakarta Sans', 'Inter', sans-serif;
  /* header */
  --nm-header-bg: rgba(8,12,20,.92);
  --nm-header-logo-text: #f1f5f9;
}

/* ── Light theme — warm slate premium ─────────────────────────────── */
body[data-theme="light"] {
  /* Surfaces — warm off-white, not clinical white */
  --nm-bg:        #f8f7f4;
  --nm-bg-2:      #ffffff;
  --nm-bg-3:      #f1ede8;
  --nm-bg-card:   #ffffff;

  /* Borders — warm stone */
  --nm-border:    rgba(30,20,10,.09);
  --nm-border-2:  rgba(30,20,10,.16);

  /* Typography — deep slate ink */
  --nm-text-1:    #1a1a2e;
  --nm-text-2:    #44546a;
  --nm-text-3:    #8896a8;

  /* Accent — indigo stays, slightly richer for light bg */
  --nm-accent:    #4f46e5;
  --nm-accent-2:  #0284c7;
  --nm-grad:      linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);

  /* Shape */
  --nm-radius:    12px;
  --nm-radius-lg: 18px;
  --nm-shadow:    0 2px 16px rgba(30,20,10,.08), 0 1px 3px rgba(30,20,10,.06);

  /* Fonts same */
  --nm-font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nm-font-head: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Header */
  --nm-header-bg: rgba(248,247,244,.95);
  --nm-header-logo-text: #1a1a2e;
}

html { font-size: 16px; scroll-behavior: smooth; }

body.nm-body {
  font-family: var(--nm-font);
  background: var(--nm-bg);
  color: var(--nm-text-1);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── UTILITY CLASSES ───────────────────────────────────────────── */
.u-text-2xs  { font-size: 11px; }
.u-text-xs   { font-size: 12px; }
.u-text-sm   { font-size: 13px; }
.u-text-md   { font-size: 14px; }
.u-text-base { font-size: 15px; }
.u-text-lg   { font-size: 16px; }
.u-text-xl   { font-size: 18px; }
.u-text-2xl  { font-size: 20px; }
.u-text-3xl  { font-size: 22px; }
.u-text-4xl  { font-size: 24px; }
.u-fw-400 { font-weight: 400; }
.u-fw-500 { font-weight: 500; }
.u-fw-600 { font-weight: 600; }
.u-fw-700 { font-weight: 700; }
.u-fw-800 { font-weight: 800; }
.u-fw-900 { font-weight: 900; }
.u-c1     { color: var(--nm-text-1); }
.u-c2     { color: var(--nm-text-2); }
.u-c3     { color: var(--nm-text-3); }
.u-brand  { color: var(--nm-accent); }
.u-lh-tight   { line-height: 1.4; }
.u-lh-normal  { line-height: 1.5; }
.u-lh-relaxed { line-height: 1.7; }
.u-lh-loose   { line-height: 1.8; }
.u-flex        { display: flex; }
.u-flex-center { display: flex; align-items: center; justify-content: center; }
.u-flex-between { display: flex; align-items: center; justify-content: space-between; }
.u-flex-col    { display: flex; flex-direction: column; }
.u-flex-wrap   { flex-wrap: wrap; }
.u-gap-xs { gap: 4px; }
.u-gap-sm { gap: 8px; }
.u-gap-md { gap: 12px; }
.u-gap-lg { gap: 16px; }
.u-gap-xl { gap: 24px; }
.u-m0  { margin: 0; }
.u-mb0 { margin-bottom: 0; }
.u-mb1 { margin-bottom: 4px; }
.u-mb2 { margin-bottom: 8px; }
.u-mb3 { margin-bottom: 12px; }
.u-mb4 { margin-bottom: 16px; }
.u-mb5 { margin-bottom: 20px; }
.u-mb6 { margin-bottom: 24px; }
.u-mt0 { margin-top: 0; }
.u-mt1 { margin-top: 4px; }
.u-mt2 { margin-top: 8px; }
.u-mt3 { margin-top: 12px; }
.u-tag   { font-size: 12px; background: var(--nm-bg-3); border: 1px solid var(--nm-border); border-radius: 20px; padding: 2px 10px; color: var(--nm-text-2); }
.u-badge { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.u-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.u-faq-item     { border-bottom: 1px solid var(--nm-border); padding: 20px 0; }
.u-faq-summary  { font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.u-faq-toggle   { font-size: 20px; color: var(--nm-accent); flex-shrink: 0; margin-left: 16px; }
.u-faq-body     { font-size: 15px; color: var(--nm-text-2); line-height: 1.75; margin: 14px 0 0; }
.u-max-540 { max-width: 540px; }
.u-max-700 { max-width: 700px; margin-left: auto; margin-right: auto; }
.u-max-820 { max-width: 820px; }

/* ── Container ─────────────────────────────────────────────────────── */
.nm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ────────────────────────────────────────────────────────── */
.nm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nm-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nm-border);
}

.nm-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

/* Logo */
.nm-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.nm-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nm-logo-text {
  font-family: var(--nm-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--nm-text-1);
  letter-spacing: -.02em;
}
.nm-logo-text strong {
  background: var(--nm-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav links */
.nm-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nm-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--nm-text-2);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nm-nav-link:hover, .nm-nav-link.active {
  color: var(--nm-text-1);
  background: rgba(255,255,255,.06);
}

/* Header right */
.nm-header-right { margin-left: auto; flex-shrink: 0; }
.nm-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--nm-grad);
  color: #fff;
  text-decoration: none;
  transition: opacity .15s;
}
.nm-header-cta:hover { opacity: .88; }

/* Mobile toggle */
.nm-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nm-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nm-text-2);
  border-radius: 2px;
  transition: .2s;
}

/* Mobile menu */
.nm-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--nm-border);
  gap: 4px;
}
.nm-mobile-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--nm-text-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--nm-border);
  text-decoration: none;
}
.nm-mobile-menu a:last-child { border-bottom: none; }
.nm-header.nm-menu-open .nm-mobile-menu { display: flex; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.nm-hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.nm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(99,102,241,.18) 0%, transparent 70%);
  pointer-events: none;
}

.nm-hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: #a5b4fc;
  margin-bottom: 24px;
}

.nm-hero-title {
  font-family: var(--nm-font-head);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--nm-text-1);
  margin-bottom: 20px;
}

.nm-hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--nm-text-2);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.nm-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.nm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 32px;
  border-right: 1px solid var(--nm-border);
}
.nm-stat:last-child { border-right: none; }
.nm-stat-num {
  font-family: var(--nm-font-head);
  font-size: 28px;
  font-weight: 800;
  background: var(--nm-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.nm-stat-label {
  font-size: 12px;
  color: var(--nm-text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}

/* ── Nodes bar ─────────────────────────────────────────────────────── */
.nm-nodes-bar {
  background: var(--nm-bg-2);
  border-top: 1px solid var(--nm-border);
  border-bottom: 1px solid var(--nm-border);
  padding: 16px 0;
}
.nm-nodes-bar .nm-container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.nm-nodes-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--nm-text-3);
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nm-nodes-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nm-node-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nm-text-2);
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--nm-border);
  white-space: nowrap;
}

/* ── Hubs section ──────────────────────────────────────────────────── */
.nm-hubs {
  padding: 64px 0 80px;
}
.nm-section-title {
  font-family: var(--nm-font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--nm-text-1);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.nm-section-sub {
  font-size: 14px;
  color: var(--nm-text-3);
  margin-bottom: 32px;
}

/* Hub grid */
.nm-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.nm-hub-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.nm-hub-card:hover {
  border-color: var(--nm-border-2);
  transform: translateY(-2px);
  box-shadow: var(--nm-shadow);
}
.nm-hub-card:hover .nm-hub-arrow { opacity: 1; transform: translateX(0); }

.nm-hub-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.nm-hub-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.nm-hub-body { flex: 1; min-width: 0; }
.nm-hub-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--nm-text-1);
  line-height: 1.3;
  margin-bottom: 3px;
}
.nm-hub-meta {
  font-size: 12px;
  color: var(--nm-text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nm-hub-dot { color: var(--nm-text-3); }

.nm-hub-arrow {
  font-size: 16px;
  color: var(--nm-text-3);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s, transform .18s;
  flex-shrink: 0;
}

/* ── About section ─────────────────────────────────────────────────── */
.nm-about {
  background: var(--nm-bg-2);
  border-top: 1px solid var(--nm-border);
  border-bottom: 1px solid var(--nm-border);
  padding: 64px 0;
}
.nm-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.nm-about-text h2 {
  font-family: var(--nm-font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--nm-text-1);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.nm-about-text p {
  font-size: 15px;
  color: var(--nm-text-2);
  line-height: 1.8;
  margin-bottom: 14px;
}
.nm-about-text p:last-child { margin-bottom: 0; }
.nm-about-text em { color: var(--nm-text-1); font-style: normal; font-weight: 600; }

.nm-about-nodes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nm-about-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--nm-bg-3);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
}
.nm-about-node-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.nm-about-node div { display: flex; flex-direction: column; gap: 3px; }
.nm-about-node strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--nm-text-1);
}
.nm-about-node span {
  font-size: 12px;
  color: var(--nm-text-3);
}

/* ── Footer ────────────────────────────────────────────────────────── */
.nm-footer {
  background: var(--nm-bg-2);
  border-top: 1px solid var(--nm-border);
  padding: 56px 0 0;
}

.nm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--nm-border);
}

.nm-footer-brand .nm-logo { margin-bottom: 14px; }
.nm-footer-tagline {
  font-size: 13px;
  color: var(--nm-text-3);
  line-height: 1.7;
  margin-bottom: 10px;
  max-width: 280px;
}
.nm-footer-built {
  font-size: 12px;
  color: var(--nm-text-3);
}
.nm-footer-built a {
  color: var(--nm-text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nm-footer-col { display: flex; flex-direction: column; gap: 2px; }
.nm-footer-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--nm-text-3);
  margin-bottom: 10px;
}
.nm-footer-col a {
  font-size: 13px;
  color: var(--nm-text-2);
  padding: 4px 0;
  text-decoration: none;
  transition: color .15s;
}
.nm-footer-col a:hover { color: var(--nm-text-1); }

.nm-footer-seo {
  padding: 24px 0;
  border-bottom: 1px solid var(--nm-border);
}
.nm-footer-seo p {
  font-size: 12px;
  color: var(--nm-text-3);
  line-height: 1.8;
  max-width: 900px;
}
.nm-footer-seo a {
  color: var(--nm-text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nm-footer-seo strong { color: var(--nm-text-2); }

.nm-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.nm-footer-copy {
  font-size: 12px;
  color: var(--nm-text-3);
}
.nm-footer-copy a {
  color: var(--nm-text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nm-footer-sibling {
  font-size: 12px;
  font-weight: 600;
  color: var(--nm-text-2);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--nm-border);
  transition: border-color .15s, color .15s;
}
.nm-footer-sibling:hover {
  border-color: var(--nm-border-2);
  color: var(--nm-text-1);
}

/* ── Breadcrumb ────────────────────────────────────────────────────── */
.nm-breadcrumb-bar {
  background: var(--nm-bg-2);
  border-bottom: 1px solid var(--nm-border);
  padding: 10px 0;
}
.nm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--nm-text-3);
  flex-wrap: wrap;
}
.nm-breadcrumb a {
  color: var(--nm-text-2);
  text-decoration: none;
  transition: color .15s;
}
.nm-breadcrumb a:hover { color: var(--nm-text-1); }
.nm-breadcrumb span { color: var(--nm-text-3); }
.nm-dot { color: var(--nm-text-3); }

/* ── Hub Hero ──────────────────────────────────────────────────────── */
.nm-hub-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--nm-border);
}
.nm-hub-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.nm-hub-hero-icon {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
}
.nm-hub-hero-title {
  font-family: var(--nm-font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--nm-text-1);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.nm-hub-hero-desc {
  font-size: 15px;
  color: var(--nm-text-2);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 16px;
}
.nm-hub-hero-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--nm-text-3);
  flex-wrap: wrap;
}
.nm-hub-hero-stats strong { color: var(--nm-text-1); }

/* ── Niches Section ────────────────────────────────────────────────── */
.nm-niches-section { padding: 48px 0 80px; }
.nm-niches-header {
  margin-bottom: 24px;
}
.nm-niches-count {
  font-size: 14px;
  color: var(--nm-text-3);
}
.nm-niches-count strong { color: var(--nm-text-1); }

.nm-niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.nm-niche-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  border-left: 3px solid var(--hub-color, var(--nm-accent));
  gap: 14px;
  min-height: 100px;
}
.nm-niche-card:hover {
  border-color: var(--hub-color, var(--nm-accent));
  transform: translateY(-2px);
  box-shadow: var(--nm-shadow);
}
.nm-niche-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--nm-text-1);
  line-height: 1.4;
  margin-bottom: 5px;
}
.nm-niche-tagline {
  font-size: 12px;
  color: var(--nm-text-3);
  line-height: 1.5;
}
.nm-niche-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nm-niche-nodes {
  display: flex;
  gap: 4px;
}
.nm-niche-node {
  font-size: 14px;
  opacity: .35;
  transition: opacity .15s;
}
.nm-niche-node.done { opacity: 1; }
.nm-niche-arrow {
  font-size: 14px;
  color: var(--nm-text-3);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s, transform .18s;
}
.nm-niche-card:hover .nm-niche-arrow { opacity: 1; transform: translateX(0); }

/* ── Hub SEO block ─────────────────────────────────────────────────── */
.nm-hub-seo-block {
  background: var(--nm-bg-2);
  border-top: 1px solid var(--nm-border);
  padding: 24px 0;
}
.nm-hub-seo-block p {
  font-size: 12px;
  color: var(--nm-text-3);
  line-height: 1.8;
  max-width: 900px;
}
.nm-hub-seo-block strong { color: var(--nm-text-2); }

/* ── Niche Hero ────────────────────────────────────────────────────── */
.nm-niche-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--nm-border);
  background: linear-gradient(180deg, rgba(99,102,241,.05) 0%, transparent 100%);
}
.nm-niche-hero-hub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.nm-niche-hero-hub-icon { font-size: 16px; }
.nm-niche-hero-hub-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--hub-color, var(--nm-accent));
  text-decoration: none;
  transition: opacity .15s;
}
.nm-niche-hero-hub-name:hover { opacity: .8; }
.nm-niche-hero-title {
  font-family: var(--nm-font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--nm-text-1);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.nm-niche-hero-tagline {
  font-size: 16px;
  color: var(--nm-text-2);
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 20px;
}
.nm-niche-hero-updated {
  font-size: 12px;
  color: var(--nm-text-3);
  margin: -12px 0 16px;
}
.nm-niche-hero-updated time { font-style: italic; }
.nm-niche-hero-assets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nm-asset-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--nm-border);
  background: rgba(255,255,255,.04);
  color: var(--nm-text-3);
}
.nm-asset-pill.ready {
  border-color: rgba(16,185,129,.3);
  background: rgba(16,185,129,.08);
  color: #6ee7b7;
}
.nm-asset-pill-check {
  font-size: 10px;
  color: #6ee7b7;
}

/* ── Niche Layout (tabs + sidebar) ────────────────────────────────── */
.nm-niche-layout { padding: 40px 0 80px; }
.nm-niche-layout-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ── Tabs nav ──────────────────────────────────────────────────────── */
.nm-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--nm-border);
  margin-bottom: 28px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.nm-tabs-nav::-webkit-scrollbar { display: none; }

.nm-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nm-text-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
.nm-tab:hover { color: var(--nm-text-2); }
.nm-tab.active {
  color: var(--nm-text-1);
  border-bottom-color: var(--nm-accent);
}
.nm-tab-icon { font-size: 14px; }

/* ── Tab content ───────────────────────────────────────────────────── */
.nm-tab-panel { animation: nm-fade-in .2s ease; }
@keyframes nm-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Coming soon state */
.nm-coming-soon {
  text-align: center;
  padding: 60px 32px;
  background: var(--nm-bg-2);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
}
.nm-coming-soon-icon { font-size: 48px; margin-bottom: 16px; }
.nm-coming-soon h3 {
  font-family: var(--nm-font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--nm-text-1);
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.nm-coming-soon p {
  font-size: 14px;
  color: var(--nm-text-2);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 20px;
}
.nm-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  color: #a5b4fc;
}

/* Prose content (generated) */
.nm-prose {
  font-size: 15px;
  color: var(--nm-text-2);
  line-height: 1.8;
}
.nm-prose h2 {
  font-family: var(--nm-font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--nm-text-1);
  margin: 32px 0 12px;
  letter-spacing: -.02em;
}
.nm-prose h3 {
  font-family: var(--nm-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--nm-text-1);
  margin: 24px 0 8px;
}
.nm-prose p { margin-bottom: 14px; }
.nm-prose ul, .nm-prose ol { padding-left: 20px; margin-bottom: 14px; }
.nm-prose li { margin-bottom: 6px; }
.nm-prose strong { color: var(--nm-text-1); font-weight: 700; }
.nm-prose em { color: var(--nm-text-1); font-style: italic; }
.nm-prose a { color: var(--nm-accent); text-decoration: underline; text-underline-offset: 2px; }
.nm-prose code {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--nm-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: 'Fira Code', monospace;
}

/* ── Sidebar ───────────────────────────────────────────────────────── */
.nm-niche-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nm-sidebar-card {
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  padding: 18px;
}
.nm-sidebar-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--nm-text-3);
  margin-bottom: 12px;
}

/* Hub link in sidebar */
.nm-sidebar-hub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--nm-border);
  background: rgba(255,255,255,.03);
  transition: border-color .15s;
}
.nm-sidebar-hub-link:hover { border-color: var(--hub-color, var(--nm-accent)); }
.nm-sidebar-hub-icon { font-size: 20px; }
.nm-sidebar-hub-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--nm-text-1);
  flex: 1;
}
.nm-sidebar-hub-count {
  font-size: 12px;
  color: var(--hub-color, var(--nm-accent));
  font-weight: 600;
  white-space: nowrap;
}

/* Assets in sidebar */
.nm-sidebar-assets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.nm-sidebar-asset {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--nm-border);
}
.nm-sidebar-asset:last-child { border-bottom: none; }
.nm-sidebar-asset-icon { font-size: 14px; width: 18px; text-align: center; }
.nm-sidebar-asset-label { font-size: 13px; color: var(--nm-text-2); flex: 1; }
.nm-sidebar-asset-status {
  font-size: 12px;
  color: var(--nm-text-3);
  font-weight: 700;
}
.nm-sidebar-asset.ready .nm-sidebar-asset-status { color: #6ee7b7; }

.nm-sidebar-progress {
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}
.nm-sidebar-progress-bar {
  height: 100%;
  background: var(--nm-grad);
  border-radius: 100px;
  transition: width .4s ease;
}
.nm-sidebar-progress-text {
  font-size: 11px;
  color: var(--nm-text-3);
}

/* Related niches */
.nm-sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nm-sidebar-related-link {
  font-size: 13px;
  color: var(--nm-text-2);
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--nm-border);
  transition: color .15s;
  display: block;
}
.nm-sidebar-related-link:last-child { border-bottom: none; }
.nm-sidebar-related-link:hover { color: var(--nm-text-1); }
.nm-sidebar-all-link {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--nm-accent);
  padding: 8px 0 0;
  text-decoration: none;
  transition: opacity .15s;
}
.nm-sidebar-all-link:hover { opacity: .8; }

/* IBH CTA */
.nm-sidebar-cta {
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(14,165,233,.1));
  border-color: rgba(99,102,241,.25);
}
.nm-sidebar-cta-text {
  font-size: 13px;
  color: var(--nm-text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.nm-sidebar-cta-text strong { color: var(--nm-text-1); }
.nm-sidebar-cta-btn {
  display: block;
  text-align: center;
  padding: 9px 16px;
  background: var(--nm-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .15s;
}
.nm-sidebar-cta-btn:hover { opacity: .88; }

/* ── Niche Guide content wrapper ───────────────────────────────────── */
.nm-guide-content {
  font-size: 15px;
  color: var(--nm-text-2);
  line-height: 1.8;
}
.nm-guide-content h1,
.nm-guide-content h2,
.nm-guide-content h3 { color: var(--nm-text-1); font-family: var(--nm-font-head); letter-spacing: -.02em; }
.nm-guide-content h2 { font-size: 20px; font-weight: 800; margin: 40px 0 12px; padding-top: 32px; border-top: 1px solid var(--nm-border); }
.nm-guide-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.nm-guide-content h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
.nm-guide-content p  { margin-bottom: 14px; }
.nm-guide-content ul,
.nm-guide-content ol { padding-left: 20px; margin-bottom: 14px; }
.nm-guide-content li { margin-bottom: 5px; }
.nm-guide-content strong { color: var(--nm-text-1); font-weight: 700; }

/* ── Niche Guide content ───────────────────────────────────────────── */
.nm-guide-h1 {
  font-family: var(--nm-font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--nm-text-1);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 14px;
}
.nm-answer-capsule {
  font-size: 15px;
  color: var(--nm-text-1);
  font-weight: 500;
  line-height: 1.6;
  padding: 14px 18px;
  background: rgba(99,102,241,.08);
  border-left: 3px solid var(--nm-accent);
  border-radius: 0 8px 8px 0;
  margin-bottom: 28px;
}

/* Section divider — use between major page sections */
.nm-section-divider {
  border: none;
  border-top: 1px solid var(--nm-border);
  margin: 40px 0;
}
/* ── Sticky section nav ─────────────────────────────────────────────────── */
.nm-sticky-nav {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--nm-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nm-border);
}
.nm-sticky-nav-spacer {
  height: 45px;
}
.nm-sticky-nav-list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nm-sticky-nav-list::-webkit-scrollbar { display: none; }
.nm-sticky-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nm-text-3);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nm-sticky-nav-item:hover {
  color: var(--nm-text-1);
}
.nm-sticky-nav-item.active {
  color: var(--nm-accent);
  border-bottom-color: var(--nm-accent);
}

/* ── Prompt Kits section ────────────────────────────────────────────────── */
.nm-prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .nm-prompt-grid { grid-template-columns: 1fr; }
}
.nm-prompt-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--nm-bg-2);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.nm-prompt-card:hover {
  border-color: var(--nm-accent);
  box-shadow: var(--nm-shadow);
}
.nm-prompt-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.nm-prompt-intent-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.nm-prompt-card-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--nm-text-1);
  line-height: 1.4;
}
.nm-prompt-card-topic {
  display: block;
  font-size: 11px;
  color: var(--nm-text-3);
  margin-top: 3px;
}
.nm-prompt-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nm-prompt-kit-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--nm-accent);
  background: rgba(79,70,229,.08);
  padding: 2px 8px;
  border-radius: 100px;
}
.nm-prompt-card-arrow {
  font-size: 13px;
  color: var(--nm-text-3);
}

/* Inline authority checklist header */
.nm-checklist-inline-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--nm-bg-3);
  border: 1px solid var(--nm-border);
  border-radius: 12px;
}
.nm-checklist-inline-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.nm-checklist-inline-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--nm-text-1);
  margin: 0 0 4px;
}
.nm-checklist-inline-sub {
  font-size: 13px;
  color: var(--nm-text-3);
  margin: 0;
  line-height: 1.5;
}

/* Center a CTA button */
.nm-btn-center {
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
}

/* Quick stats row inside guide */
.nm-guide-stats {
  display: flex;
  gap: 0;
  margin: 20px 0;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  overflow: hidden;
}
.nm-guide-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-right: 1px solid var(--nm-border);
  background: var(--nm-bg-2);
}
.nm-guide-stat:last-child { border-right: none; }
.nm-guide-stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--nm-text-3);
  margin-bottom: 4px;
}
.nm-guide-stat-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--nm-text-1);
}

/* Entity key facts — vertical rows */
.nm-entity-facts {
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  overflow: hidden;
  background: var(--nm-bg-2);
}
.nm-entity-fact-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--nm-border);
}
.nm-entity-fact-row:last-child { border-bottom: none; }
.nm-entity-fact-label {
  flex-shrink: 0;
  width: 200px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--nm-text-3);
}
.nm-entity-fact-val {
  font-size: 14px;
  color: var(--nm-text-1);
  line-height: 1.5;
}

/* Entity tags */
.nm-entity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.nm-entity-tag {
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--nm-border);
  color: var(--nm-text-3);
}
.nm-entity-tag.nm-entity-secondary {
  opacity: .7;
}
a.nm-entity-tag, .nm-entity-tag--linked {
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.35);
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
a.nm-entity-tag:hover, .nm-entity-tag--linked:hover {
  background: rgba(99,102,241,.2);
  border-color: rgba(99,102,241,.6);
  color: #c7d2fe;
}

/* ── Sub-page header ───────────────────────────────────────────────── */
.nm-sub-page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--nm-border);
}
.nm-sub-page-header h2 {
  font-family: var(--nm-font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--nm-text-1);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.nm-sub-page-header p {
  font-size: 14px;
  color: var(--nm-text-2);
  line-height: 1.6;
  max-width: 600px;
}

/* (hero asset pills removed) */

/* Niche hero sub-label */
.nm-niche-hero-sub-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--nm-text-3);
  letter-spacing: 0;
  margin-top: 4px;
}

/* Sidebar sections list */
.nm-sidebar-asset.pending .nm-sidebar-asset-locked {
  color: var(--nm-text-3);
  font-size: 13px;
}
.nm-sidebar-lock {
  font-size: 10px;
  font-weight: 600;
  color: var(--nm-text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nm-sidebar-active {
  color: var(--nm-accent);
  font-weight: 700;
}
.nm-sidebar-asset.current {
  background: rgba(99,102,241,.07);
  border-radius: 6px;
  padding: 6px 8px;
  margin: 0 -8px;
  border-left: 2px solid var(--nm-accent);
}
.nm-sidebar-asset.current .nm-sidebar-asset-label {
  color: var(--nm-text-1) !important;
  font-weight: 700;
}
.nm-sidebar-asset a.nm-sidebar-asset-label {
  color: var(--nm-text-2);
  text-decoration: none;
  flex: 1;
  font-size: 13px;
  transition: color .15s;
}
.nm-sidebar-asset a.nm-sidebar-asset-label:hover { color: var(--nm-text-1); }

/* ── Inline Tab Navigation ─────────────────────────────────────────── */
.nm-inline-tabs-bar {
  background: var(--nm-bg-2);
  border-top: 1px solid var(--nm-border);
  border-bottom: 2px solid var(--nm-border);
  position: sticky;
  top: 60px;
  z-index: 90;
}
.nm-inline-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.nm-inline-tabs::-webkit-scrollbar { display: none; }
.nm-inline-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nm-text-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.nm-inline-tab:hover {
  color: var(--nm-text-2);
  background: rgba(255,255,255,.04);
}
.nm-inline-tab.active {
  color: var(--nm-text-1);
  border-bottom-color: var(--nm-accent);
  background: rgba(99,102,241,.06);
}
.nm-inline-tab-icon { font-size: 15px; }

/* ── Content Map — lead + description block ────────────────────────── */
.nm-content-map-lead {
  font-size: 15px;
  color: var(--nm-text-2);
  line-height: 1.7;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--nm-border);
}
.nm-content-map-lead strong { color: var(--nm-text-1); }
.nm-content-desc {
  font-size: 15px;
  color: var(--nm-text-2);
  line-height: 1.8;
  padding: 20px 24px;
  background: var(--nm-bg-2);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  margin-bottom: 24px;
}

/* ── Keyword / tag strip ────────────────────────────────────────────── */
.nm-kw-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.nm-kw-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--nm-text-3);
  flex-shrink: 0;
  margin-right: 4px;
}
.nm-kw-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--nm-border);
  color: var(--nm-text-2);
  white-space: nowrap;
}
.nm-kw-tag--link {
  color: var(--nm-accent);
  border-color: rgba(99,102,241,.3);
  background: rgba(99,102,241,.08);
  text-decoration: none;
  transition: opacity .15s;
}
.nm-kw-tag--link:hover { opacity: .8; }
.nm-kw-tag--muted {
  color: var(--nm-text-3);
  opacity: .7;
}

/* ── Topic list ─────────────────────────────────────────────────────── */
.nm-topic-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 32px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  overflow: hidden;
}
.nm-topic-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  background: var(--nm-bg-card);
  border-bottom: 1px solid var(--nm-border);
  transition: background .15s;
}
.nm-topic-row:last-child { border-bottom: none; }
.nm-topic-row:hover { background: var(--nm-bg-3); }
.nm-topic-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--nm-text-1);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color .15s;
}
.nm-topic-title:hover { color: var(--nm-accent); }
.nm-topic-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nm-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--nm-border);
  color: var(--nm-text-3);
  white-space: nowrap;
}
.nm-topic-chip--kits {
  color: #a5b4fc;
  background: rgba(99,102,241,.08);
  border-color: rgba(99,102,241,.2);
}
.nm-topic-chip--views {
  color: #6ee7b7;
  background: rgba(16,185,129,.08);
  border-color: rgba(16,185,129,.2);
}
.nm-topic-summary {
  font-size: 12px;
  color: var(--nm-text-3);
  line-height: 1.5;
  margin: 0;
}

/* ── FAQ accordion ──────────────────────────────────────────────────── */
.nm-faq {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.nm-faq-item {
  background: var(--nm-bg-card);
  border-bottom: 1px solid var(--nm-border);
}
.nm-faq-item:last-child { border-bottom: none; }
.nm-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--nm-text-1);
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  gap: 12px;
  user-select: none;
  transition: background .15s;
}
.nm-faq-q::-webkit-details-marker { display: none; }
.nm-faq-item:hover .nm-faq-q { background: var(--nm-bg-3); }
.nm-faq-item[open] .nm-faq-q { background: var(--nm-bg-2); }
.nm-faq-q span {
  font-size: 16px;
  color: var(--nm-text-3);
  flex-shrink: 0;
  font-weight: 400;
  transition: transform .2s;
}
.nm-faq-item[open] .nm-faq-q span { transform: rotate(45deg); }
.nm-faq-a {
  font-size: 14px;
  color: var(--nm-text-2);
  line-height: 1.7;
  padding: 0 18px 16px;
  margin: 0;
}

/* ── Authority Checklist ────────────────────────────────────────────── */
.nm-checklist-stat {
  font-size: 15px;
  color: var(--nm-text-2);
  padding: 12px 18px;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--nm-radius);
  margin-bottom: 20px;
}
.nm-checklist-stat strong {
  color: #a5b4fc;
  font-size: 18px;
}
.nm-checklist-warning {
  font-size: 14px;
  color: #fbbf24;
  padding: 10px 16px;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.2);
  border-radius: var(--nm-radius);
  margin-bottom: 16px;
}
.nm-checklist-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  overflow: hidden;
}
.nm-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--nm-text-2);
  background: var(--nm-bg-card);
  border-bottom: 1px solid var(--nm-border);
  line-height: 1.5;
}
.nm-checklist-item:last-child { border-bottom: none; }
.nm-checklist-item:hover { background: var(--nm-bg-3); }
.nm-checklist-must { color: var(--nm-text-1); }
.nm-checklist-gap  { color: #fbbf24; }
.nm-cl-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }

/* Full checklist rows */
.nm-checklist-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.nm-cl-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 16px;
  background: var(--nm-bg-card);
  border-bottom: 1px solid var(--nm-border);
  transition: background .15s;
}
.nm-cl-row:last-child { border-bottom: none; }
.nm-cl-row:hover { background: var(--nm-bg-3); }
.nm-cl-priority {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 100px;
  flex-shrink: 0;
  margin-top: 2px;
  white-space: nowrap;
}
.nm-cl-must   .nm-cl-priority { background: rgba(239,68,68,.15);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.nm-cl-should .nm-cl-priority { background: rgba(99,102,241,.15); border: 1px solid rgba(99,102,241,.3); color: #a5b4fc; }
.nm-cl-nice   .nm-cl-priority { background: rgba(255,255,255,.05); border: 1px solid var(--nm-border);   color: var(--nm-text-3); }
.nm-cl-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.nm-cl-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--nm-text-1);
  line-height: 1.4;
}
.nm-cl-why {
  font-size: 12px;
  color: var(--nm-text-3);
  line-height: 1.5;
}

/* ── Entity Map ─────────────────────────────────────────────────────── */
.nm-entity-section {
  margin-bottom: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--nm-border);
}
.nm-entity-section:last-child { border-bottom: none; }
.nm-entity-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--nm-border);
}
.nm-entity-section-icon { font-size: 16px; }
.nm-entity-section-title {
  font-family: var(--nm-font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--nm-text-1);
}
.nm-entity-section-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  color: #a5b4fc;
  margin-left: auto;
}
.nm-entity-section-desc {
  font-size: 12px;
  color: var(--nm-text-3);
  margin-bottom: 10px;
  line-height: 1.5;
}
/* Entity map — compact tag cloud */
.nm-em-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 16px;
}
.nm-em-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--nm-bg-3);
  border: 1px solid var(--nm-border);
  color: var(--nm-text-2);
  white-space: nowrap;
}
.nm-em-tag--linked {
  background: rgba(99,102,241,.08);
  border-color: rgba(99,102,241,.35);
  color: var(--nm-accent);
  text-decoration: none;
}
.nm-em-tag--linked:hover {
  background: rgba(99,102,241,.16);
  border-color: var(--nm-accent);
}
.nm-em-tag--more {
  background: transparent;
  border-color: var(--nm-border);
  color: var(--nm-text-3);
  font-style: italic;
}
/* Sibling niche grid */
.nm-sibling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.nm-sibling-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  background: var(--nm-bg-2);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  transition: border-color .15s;
}
.nm-sibling-card:hover {
  border-color: var(--nm-accent);
}
.nm-sibling-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--nm-text-1);
}
.nm-sibling-desc {
  font-size: 12px;
  color: var(--nm-text-3);
  line-height: 1.4;
}
.nm-sibling-desc--soon {
  color: var(--nm-text-3);
  font-style: italic;
  opacity: .6;
}
.nm-entity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.nm-entity-card {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px;
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border);
  border-radius: 8px;
  transition: border-color .15s;
}
.nm-entity-card:hover { border-color: var(--nm-border-2); }
.nm-entity-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--nm-text-1);
  line-height: 1.4;
}
.nm-entity-card-desc {
  font-size: 11px;
  color: var(--nm-text-3);
  line-height: 1.5;
}

/* ── Entity Map extras ──────────────────────────────────────────────── */
.nm-entity-vol-high   .nm-entity-card-name { color: #6ee7b7; }
.nm-entity-vol-medium .nm-entity-card-name { color: #a5b4fc; }

.nm-kg-relationships {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.nm-kg-rel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--nm-bg-card);
  border-bottom: 1px solid var(--nm-border);
  transition: background .15s;
}
.nm-kg-rel:last-child { border-bottom: none; }
.nm-kg-rel:hover { background: var(--nm-bg-3); }
.nm-kg-rel-entities {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nm-kg-entity {
  font-size: 13px;
  font-weight: 700;
  color: var(--nm-text-1);
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.25);
}
.nm-kg-arrow {
  font-size: 14px;
  color: var(--nm-text-3);
}
.nm-kg-rel-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--nm-accent);
}
.nm-kg-rel-note {
  font-size: 12px;
  color: var(--nm-text-3);
  line-height: 1.5;
}

/* Entity Map — verified tm overlay */
.nm-entity-verified-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--nm-border);
}
.nm-entity-verified-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 15px;
}
.nm-entity-verified-head strong { color: var(--nm-text-1); }
.nm-entity-verified-note {
  font-size: 13px;
  color: var(--nm-text-3);
  margin-bottom: 24px;
  line-height: 1.6;
}
.nm-entity-card--verified {
  border-color: rgba(16,185,129,.2);
  background: rgba(16,185,129,.04);
}
.nm-entity-card--verified:hover { border-color: rgba(16,185,129,.4); }

/* ── Authority Score ────────────────────────────────────────────────── */
.nm-authority-score-section { margin-bottom: 8px; }

.nm-authority-score-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.nm-as-gauge {
  flex: 1;
  height: 10px;
  background: var(--nm-bg-3);
  border-radius: 99px;
  overflow: hidden;
}
.nm-as-gauge-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}
.nm-as-danger  { background: #ef4444; }
.nm-as-high    { background: #f97316; }
.nm-as-medium  { background: #eab308; }
.nm-as-low     { background: #22c55e; }

.nm-as-meta { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.nm-as-score-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--nm-text-1);
  line-height: 1;
}
.nm-as-score-denom { font-size: 13px; color: var(--nm-text-3); font-weight: 400; }
.nm-as-label {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  color: #fff;
}

.nm-as-verdict {
  font-size: 14px;
  line-height: 1.6;
  color: var(--nm-text-2);
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--nm-bg-2);
  border-left: 3px solid var(--nm-brand);
  border-radius: 0 6px 6px 0;
}

.nm-as-subhead {
  font-size: 14px;
  font-weight: 700;
  color: var(--nm-text-1);
  margin: 0 0 10px;
}

.nm-as-factors { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.nm-as-factor {
  padding: 10px 12px;
  background: var(--nm-bg-2);
  border-radius: 8px;
  border: 1px solid var(--nm-border);
}
.nm-as-factor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.nm-as-factor-name { font-size: 13px; font-weight: 600; color: var(--nm-text-1); }
.nm-as-weight {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  color: #fff;
  text-transform: uppercase;
}
.nm-as-w-critical { background: #ef4444; }
.nm-as-w-high     { background: #f97316; }
.nm-as-w-medium   { background: #eab308; }
.nm-as-w-low      { background: #6b7280; }
.nm-as-factor-note { font-size: 12px; color: var(--nm-text-3); margin: 0; line-height: 1.5; }

.nm-as-compete-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.nm-as-compete-col { }
.nm-as-domlist {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: disc;
  font-size: 13px;
  color: var(--nm-text-2);
  line-height: 1.8;
}
.nm-as-compete-body { font-size: 13px; color: var(--nm-text-2); line-height: 1.6; margin: 0; }

.nm-as-footer { display: flex; flex-direction: column; gap: 8px; }
.nm-as-chip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  padding: 8px 12px;
  background: var(--nm-bg-2);
  border-radius: 6px;
  border: 1px solid var(--nm-border);
}
.nm-as-chip--full { flex-direction: column; align-items: flex-start; }
.nm-as-chip-label { font-weight: 600; color: var(--nm-text-2); flex-shrink: 0; }
.nm-as-chip-val { color: var(--nm-text-3); line-height: 1.5; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nm-niche-layout-inner { grid-template-columns: 1fr 260px; }
}

@media (max-width: 900px) {
  .nm-about-inner { grid-template-columns: 1fr; gap: 40px; }
  .nm-footer-grid { grid-template-columns: 1fr 1fr; }
  .nm-footer-brand { grid-column: 1 / -1; }
  .nm-stat { padding: 12px 20px; }
  .nm-niche-layout-inner { grid-template-columns: 1fr; }
  .nm-niche-sidebar { position: static; }
  .nm-hub-hero-inner { flex-direction: column; gap: 12px; }
  .nm-hub-hero-icon { font-size: 36px; }
}

@media (max-width: 640px) {
  .nm-nav-links { display: none; }
  .nm-header-right { display: none; }
  .nm-mobile-toggle { display: flex; }
  .nm-hero { padding: 48px 0 40px; }
  .nm-hero-stats { gap: 0; }
  .nm-stat { padding: 10px 16px; }
  .nm-stat-num { font-size: 22px; }
  .nm-hub-grid { grid-template-columns: 1fr; }
  .nm-niche-grid { grid-template-columns: 1fr; }
  .nm-entity-grid { grid-template-columns: 1fr; }
  .nm-footer-grid { grid-template-columns: 1fr; }
  .nm-nodes-bar .nm-container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nm-tab { padding: 8px 12px; font-size: 12px; }
  .nm-tab-icon { display: none; }
  .nm-niche-hero-assets { gap: 6px; }
  .nm-asset-pill { font-size: 11px; padding: 4px 10px; }
  .nm-inline-tab { padding: 10px 12px; font-size: 12px; }
  .nm-inline-tab-icon { display: none; }
  .nm-topic-chips { gap: 4px; }
  .nm-as-compete-row { grid-template-columns: 1fr; }
  .nm-authority-score-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nm-as-gauge { width: 100%; }
}
