/* Ancestor-only breadcrumb trail -- the current page's own identity comes
   from its own title (already shown big, in the editable title field
   below), not repeated here. Replaces the old "<- Back" link -- see
   GitHub issue #161/#175/#207.
   Chrome register (sans, --font-chrome), not content.

   Rendered in two places (see base.html), both auto-injected from a
   single include so no page template repeats the crumb-selection logic:
   centered in the sticky .chrome-row on mobile, and inline above page
   content on desktop (where .chrome-row itself is hidden in favor of the
   sidebar) -- this file just picks which instance is visible at a given
   width. */

.breadcrumb {
  display: none;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-chrome);
  font-size: 1.3125rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .breadcrumb {
    display: flex;
    margin-bottom: var(--space-4);
  }
}

.chrome-center .breadcrumb {
  display: flex;
  margin-bottom: 0;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb-section {
  font-size: 1rem;
  padding-top: 2px;
}

.breadcrumb-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

/* The house is the primary escape hatch from every nested page, so its
   link keeps an expanded hit area in addition to the larger shared scale. */
.breadcrumb .breadcrumb-home {
  padding: var(--space-2);
}

.breadcrumb-sep {
  color: var(--text-muted);
  flex-shrink: 0;
}

.breadcrumb-current {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
