@layer components {
  /* Wraps rather than running off the screen; the current page, last,
     takes what room is left on its line and truncates. */
  .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: var(--color-muted);
    font-size: var(--text-sm);
    gap: 0.25em 0.5em;

    a {
      color: var(--color-muted);
      text-decoration: none;

      &:hover {
        color: var(--color-primary);
      }
    }

    span {
      overflow: hidden;
      flex: 1 1 0;
      color: var(--color-ink);
      min-inline-size: 8em;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}
