/* ============================================================
   Getting around: Back next to the crumb, the crumb's parent link,
   and the Your pages group at the top of the menu (sidebar.js).
   ============================================================ */
.crumb-back {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  height: 32px; padding: 0 10px 0 6px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--fg);
  font: inherit; font-size: var(--fs-base); font-weight: 600; cursor: pointer;
}
.crumb-back:hover { background: var(--muted-surface); }
.crumb-back:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.crumb-back[hidden] { display: none; }
body.hr-employee-locked .crumb-back { display: none; }

.crumb .crumb-link { color: inherit; text-decoration: none; }
.crumb .crumb-link:hover { color: var(--teal-deep); text-decoration: underline; }

.nav-group-top .nav-group-label-text { color: var(--teal-deep); }

@media (max-width: 720px) {
  /* Phones: Back is the arrow alone, so the page name keeps its room. */
  .crumb-back { padding: 0 6px; }
  .crumb-back span { display: none; }
  /* The parent name gives way to the page's own: Back goes there. */
  .topbar .crumb .crumb-link { display: none; }
  .topbar .crumb .crumb-link + .crumb-sub { font-size: var(--fs-md); font-weight: 650; color: var(--fg); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .crumb .crumb-link + .crumb-sub::before { content: none; }
}
