/* =========================================================================
   Pacewave — Network Management page (network-management.html, Insight ACS)
   Loaded after styles.css and core-network.css (shared solution-page
   pieces: .cn-section, .cn-stats, .cn-table, .cn-related, tokens).
   New classes are prefixed nm-.
   ========================================================================= */

.nm-page .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.nm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  align-items: center;
}
.nm-hero .cn-stats, .nm-hero .cn-back { grid-column: 1 / -1; }
.nm-hero .cn-stats { margin-top: .5rem; }
.nm-hero .cn-back { margin-top: 0; justify-self: start; }
.nm-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* illustrative parameter-editor window (no live data) */
.nm-mock { margin: 0; }
.nm-win {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: 0 30px 70px -40px rgba(14,165,233,.5);
  font-size: .8rem;
}
.nm-win-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.nm-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-4); }
.nm-win-bar span { margin-left: .5rem; font-size: .76rem; color: var(--text-muted); }
.nm-win-tabs { display: flex; gap: .35rem; padding: .7rem .9rem 0; }
.nm-win-tabs span {
  padding: .35rem .7rem;
  font-size: .74rem;
  color: var(--text-muted);
  border-radius: 8px 8px 0 0;
  border: 1px solid transparent;
  border-bottom: 0;
}
.nm-win-tabs .is-on { color: var(--text); border-color: var(--border); background: rgba(20,163,184,.1); }
.nm-win-rows { border-top: 1px solid var(--border); }
.nm-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--border);
}
.nm-p { display: flex; flex-direction: column; font-weight: 600; color: var(--text); }
.nm-p small { font-weight: 400; font-size: .72rem; color: var(--text-muted); }
.nm-v {
  overflow: hidden;
  padding: .3rem .55rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-0);
}
.nm-v--on { color: var(--e2e-teal); }
.nm-b {
  padding: .25rem .6rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--e2e-teal);
  border: 1px solid rgba(20,163,184,.5);
  border-radius: 6px;
}
.nm-b--solid { color: #fff; background: var(--e2e-teal); border-color: var(--e2e-teal); }
.nm-win-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .9rem; color: var(--text-muted); font-size: .74rem; }
.nm-mock figcaption { margin-top: .6rem; text-align: center; font-size: .74rem; font-style: italic; color: var(--text-muted); }

/* ── Editions ───────────────────────────────────────────────────────────── */
.nm-editions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.nm-ed {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.nm-ed--plus { border-color: rgba(20,163,184,.45); }
.nm-ed--idea { background: transparent; border-style: dashed; }
.nm-ed-head { display: flex; align-items: center; gap: .8rem; }
.nm-ed-k { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--e2e-teal); }
.nm-ed-head h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.nm-ed p { font-size: .93rem; color: var(--text-muted); }
.nm-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
}
.nm-ico .material-icons-outlined { font-size: 21px; }
.nm-list { display: flex; flex-direction: column; gap: .5rem; }
.nm-list li { position: relative; padding-left: 1.1rem; font-size: .92rem; color: var(--text); }
.nm-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--e2e-teal);
}
.nm-host { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-size: .82rem; color: var(--text-muted); }
.nm-host .material-icons-outlined { font-size: 18px; color: var(--e2e-teal); }

/* ── Compare table ──────────────────────────────────────────────────────── */
.nm-table th:not(:first-child), .nm-table td { width: 140px; text-align: center; }
.nm-table thead th:not(:first-child) { color: var(--e2e-teal); }
.nm-table tbody th { font-weight: 500; white-space: normal; color: var(--text); }
.nm-table td:last-child { white-space: normal; }
.nm-group th {
  padding-top: 1.1rem !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--e2e-teal) !important;
  background: rgba(255,255,255,.02);
}
.nm-group th .material-icons-outlined { margin-right: .5rem; font-size: 18px; vertical-align: -4px; }
.nm-yes, .nm-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.nm-yes { color: #fff; background: var(--e2e-teal); }
.nm-no { color: var(--text-subtle); border: 1px solid var(--border-strong); }
.nm-yes .material-icons-outlined, .nm-no .material-icons-outlined { font-size: 17px; }

/* ── Parameters ─────────────────────────────────────────────────────────── */
.nm-kicker { font-weight: 600; color: var(--e2e-teal); font-size: 1.05rem; }
.nm-body { margin: .6rem 0 1.25rem; font-size: .93rem; color: var(--text-muted); }
.nm-body code, .nm-plist code { font-family: var(--font-mono); font-size: .82rem; color: var(--text); overflow-wrap: anywhere; }
.nm-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1rem; font-size: .85rem; color: var(--text-muted); }
.nm-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.nm-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; }
.nm-dot--both, .nm-pi--both .nm-dot { background: var(--e2e-teal); }
.nm-dot--plus, .nm-pi--plus .nm-dot { border: 2px solid var(--e2e-teal); }

.nm-params { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.nm-pg {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.nm-pg-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.nm-pg-head h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.25; }
.nm-pg-head small { display: block; font-size: .78rem; color: var(--text-muted); }
.nm-plist { display: flex; flex-direction: column; gap: .3rem; }
.nm-pi {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .65rem;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.nm-pi--plus code { color: var(--text-muted); }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.nm-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(20,163,184,.4);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(20,163,184,.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.nm-price-text { display: flex; gap: 1rem; align-items: flex-start; }
.nm-price strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.nm-price p { margin-top: .35rem; max-width: 640px; font-size: .93rem; color: var(--text-muted); }
.nm-price .btn { flex-shrink: 0; }

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .nm-hero { grid-template-columns: minmax(0, 1fr); }
  .nm-mock { max-width: 560px; }
  .nm-editions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nm-ed--idea { grid-column: 1 / -1; }
  .nm-params { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nm-price { flex-direction: column; align-items: flex-start; }
}

/* ── Phone ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nm-hero-cta { flex-direction: column; }
  .nm-hero-cta .btn, .nm-price .btn { width: 100%; }
  .nm-editions { grid-template-columns: minmax(0, 1fr); }
  .nm-row { grid-template-columns: minmax(0, 1fr) auto; }
  .nm-row .nm-v { grid-column: 1 / -1; grid-row: 2; }
  .nm-row .nm-b { grid-column: 2; grid-row: 1; }
  .nm-win-tabs span { padding: .35rem .5rem; }
  /* compare table keeps its three columns; narrower tick columns */
  .nm-page .cn-table.nm-table thead { display: table-header-group; }
  .nm-page .cn-table.nm-table tr { display: table-row; padding: 0; }
  .nm-page .cn-table.nm-table th, .nm-page .cn-table.nm-table td { display: table-cell; padding: .65rem .4rem; border-bottom: 1px solid var(--border); }
  .nm-page .cn-table.nm-table tr > :first-child { padding-left: .9rem; }
  .nm-page .cn-table.nm-table .nm-group th { padding-left: .9rem; }
  .nm-page .cn-table.nm-table td { margin: 0; vertical-align: middle; }
  .nm-table th:not(:first-child), .nm-table td { width: 72px; padding-left: .4rem; padding-right: .4rem; }
  .nm-table thead th { letter-spacing: 0; font-size: .7rem; }
  .nm-table tbody th { padding-right: .5rem; font-size: .88rem; }
  .nm-price { padding: 1.2rem; }
  .nm-params { grid-template-columns: minmax(0, 1fr); }
  .nm-pg { padding: 1rem; }
}
