/* ============================================================
   NetCore Diagnostics — NAV GROUPS
   Dropdowns via <details>/<summary>. No JS required.
   Loaded AFTER style.css. Modifies nothing existing.
   ============================================================ */
.nav-group { position: relative; }

.nav-group > summary {
  display: block; padding: 0.5rem 0.75rem;
  font-size: 0.9rem; font-weight: 500;
  color: #C4D4E4;
  border-radius: var(--radius);
  cursor: pointer; white-space: nowrap;
  list-style: none; user-select: none;
  transition: color .15s ease, background .15s ease;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::marker { content: ""; }
.nav-group > summary::after {
  content: "\25BE"; margin-left: 0.4rem;
  font-size: 0.68em; opacity: 0.65;
  display: inline-block;
  transition: transform .15s ease;
}
.nav-group > summary:hover,
.nav-group[open] > summary {
  color: var(--paper); background: rgba(255,255,255,0.07);
}
.nav-group[open] > summary::after { transform: rotate(180deg); }
.nav-group--current > summary { color: var(--cyan); }

.nav-dropdown {
  position: absolute; top: calc(100% + 0.4rem); left: 0;
  min-width: 215px; z-index: 60;
  margin: 0; padding: 0.35rem;
  list-style: none;
  background: rgba(11, 22, 35, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0,0,0,0.40);
}
.nav-dropdown li { margin: 0; }
.nav-dropdown a {
  display: block; padding: 0.55rem 0.7rem;
  font-size: 0.88rem; font-weight: 500;
  color: #C4D4E4; text-decoration: none;
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.nav-dropdown a:hover { color: var(--paper); background: rgba(255,255,255,0.07); }
.nav-dropdown a[aria-current="page"] {
  color: var(--ink); background: var(--cyan); font-weight: 600;
}

.nav-links .nav-external {
  margin-left: 0.4rem; padding-left: 0.75rem;
  border-left: 1px solid rgba(255,255,255,0.14);
}

@media (max-width: 860px) {
  .nav-group { position: static; }
  .nav-dropdown {
    position: static; min-width: 0;
    margin: 0.25rem 0 0 0.5rem;
    padding: 0.15rem 0 0.15rem 0.5rem;
    background: transparent; box-shadow: none;
    border: none; border-left: 2px solid rgba(0,217,255,0.35);
    border-radius: 0;
  }
  .nav-links .nav-external { margin-left: 0; padding-left: 0.75rem; border-left: none; }
}

@media print { .nav-group, .nav-dropdown { display: none !important; } }