/* admin-nav.css — Admin Console compact navigation (Lee direction,
   2026-11-05). Companion stylesheet for admin-nav.js, which replaces the
   bundle's big grouped button panel (.admin-groups) with one compact top
   bar: eight high-level group buttons, dropdowns under the multi-section
   groups, and the chosen section loading directly below the bar.
   Colors come from the app's theme variables (--accent, --accent-strong,
   --gold, --radius, --shadow), matching officer-nav.css, so the
   Classic/Polished themes and the RPM club-color setting carry through. */

/* The bundle's own panel is hidden ONLY once admin-nav.js has built the
   replacement bar (it adds .ran-on to <body>); without the script, the
   console keeps its original navigation untouched. */
body.ran-on .admin-console .admin-groups {
  display: none !important;
}

/* The bar: one line of group buttons (wraps to two on narrow screens). */
.rpm-admin-nav .ran-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px;
  background: #101820;
  border: 1px solid #2a343e;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.rpm-admin-nav .ran-group {
  position: relative;
}

.rpm-admin-nav .ran-top {
  font-size: 16px;
  font-weight: 700;
  color: #dde5ea;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.rpm-admin-nav .ran-top:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.rpm-admin-nav .ran-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* Dropdown caret on groups that hold more than one section. */
.rpm-admin-nav .ran-top.ran-has-menu::after {
  content: "▾";
  margin-left: 7px;
  font-size: 13px;
  color: var(--gold);
}

/* The group holding the section on screen stays visibly "on". */
.rpm-admin-nav .ran-top.ran-active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.rpm-admin-nav .ran-top.ran-active:hover {
  background: var(--accent-strong, var(--accent));
  color: #fff;
}

/* Dropdown panel under a group button. */
.rpm-admin-nav .ran-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  min-width: 252px;
  padding: 6px;
  background: #182129;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.rpm-admin-nav .ran-group.ran-align-right .ran-menu {
  left: auto;
  right: 0;
}
.rpm-admin-nav .ran-group.ran-open .ran-menu {
  display: block;
}

.rpm-admin-nav .ran-item {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #dde5ea;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 44px;
  padding: 11px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.rpm-admin-nav .ran-item:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.rpm-admin-nav .ran-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.rpm-admin-nav .ran-item.ran-active {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: inset 4px 0 0 var(--gold);
}

/* "Viewing: <section>" readout at the bar's right end — the always-on
   answer to "what did I just open?". */
.rpm-admin-nav .ran-now {
  margin-left: auto;
  padding: 0 8px;
  font-size: 14px;
  color: #9fb0bc;
  white-space: nowrap;
}
.rpm-admin-nav .ran-now strong {
  color: #fff;
}

/* One soft gold pulse on the freshly loaded section so the eye catches
   the change (admin-nav.js adds .ran-flash right after a pick). */
@keyframes ran-flash {
  0% { box-shadow: 0 0 0 3px var(--gold); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
.ran-flash {
  animation: ran-flash 1s ease-out 1;
  border-radius: var(--radius);
}
@media (prefers-reduced-motion: reduce) {
  .ran-flash { animation: none; }
}

/* Narrow screens: same bar, tightened fit; the readout yields its row. */
@media (max-width: 720px) {
  .rpm-admin-nav .ran-now { display: none; }
}
@media (max-width: 560px) {
  .rpm-admin-nav .ran-bar {
    padding: 6px;
    gap: 5px;
  }
  .rpm-admin-nav .ran-top {
    font-size: 15px;
    min-height: 42px;
    padding: 9px 10px;
  }
  .rpm-admin-nav .ran-menu {
    min-width: 216px;
  }
  .rpm-admin-nav .ran-item {
    font-size: 15px;
    padding: 10px 10px;
  }
}
