/* The advert a search was run from — in the history under the form, in the
   account's ledger, and on the saved-address cards.

   Above the row's stretched overlay and no wider than its own text: it is the
   one thing on the line that leads somewhere else, and the rest of the line
   must still reopen the search. */
.listing-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  color: var(--color-text-soft);
  font-size: var(--text-xs);
  text-decoration: none;
}

.listing-link:hover,
.listing-link:focus-visible {
  color: var(--color-land);
  text-decoration: underline;
}

.listing-link__icon {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  opacity: 0.75;
}

/* Clipped at the row's edge. The label is already the short form of the link,
   so what a narrow list cuts is the tail of a reference, not a criterion. */
.listing-link__text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
