/*
 * Back link: the quiet link above a page's title that leads up a level.
 *
 *   <a class="back-link with-icon" href="…"><svg class="icon" aria-hidden="true">…</svg> Library</a>
 */
@layer components {
  /* The icon is larger than the text's cap height, so it centers on the
     text instead of sitting on the baseline as .with-icon does. */
  .back-link {
    --icon-size: var(--text-base);

    align-items: center;
    color: var(--color-text-subtle);
    font-size: var(--text-sm);
    text-decoration: none;

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