/* Section headings, breadcrumbs, tag cloud / list / filter. */
@layer components {
  .eyebrow {
    margin: 0 0 var(--space-3);
    color: var(--color-muted);
    font-size: var(--fs-caption);
    line-height: 1.4;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .section-heading {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
    padding-top: var(--space-6);
  }

  :where(.section-heading, .archive-year, .project-section, .facts, .at-a-glance) h2 {
    font-size: var(--fs-lg);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
  }

  .section-heading a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--color-muted);
    font-size: var(--fs-caption);
    text-decoration: none;
  }

  .section-heading a:hover {
    color: var(--color-fg);
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }

  .section-heading__text {
    flex: 1 1 11rem;
    min-width: 0;
  }

  .section-heading__text p {
    max-width: var(--measure);
    margin-top: var(--space-1);
    color: var(--color-muted);
    font-size: var(--fs-caption);
    line-height: 1.4;
  }

  .breadcrumbs {
    margin: 0 0 var(--space-3);
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    color: var(--color-muted);
    font-size: var(--fs-caption);
  }

  .breadcrumbs li {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
  }

  .breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: var(--space-2);
    color: var(--color-rule-medium);
    flex: none;
  }

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

  .breadcrumbs a:hover {
    color: var(--color-fg);
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }

  .breadcrumbs [aria-current='page'] {
    color: var(--color-fg);
  }

  .tag-cloud {
    margin-top: var(--space-2);
  }

  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-2);
    margin: var(--space-2) 0 0;
    padding: 0;
    list-style: none;
    color: var(--color-muted);
    font-size: var(--fs-caption);
  }

  .tag-list a {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    padding-inline: var(--space-1);
    margin-inline: calc(-1 * var(--space-1));
    color: var(--color-muted);
    text-decoration: none;
  }

  .tag-list a::before {
    content: '#';
    color: var(--color-rule-medium);
  }

  .tag-list .tag-more::before {
    content: none;
  }

  .tag-list .tag-count {
    margin-inline-start: 0.35em;
    padding: 0 0.4em;
    border-radius: var(--radius-pill);
    background: var(--color-code-bg);
    color: var(--color-fg);
    font-size: var(--fs-caption);
    font-variant-numeric: tabular-nums;
  }

  .tag-list a:hover,
  .tag-list a[aria-current='page'] {
    color: var(--color-fg);
  }

  .tag-filter {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin: 0 0 var(--space-8);
    padding-block: var(--space-3);
    border-block: 1px solid var(--color-rule);
  }

  .tag-filter > span {
    color: var(--color-muted);
    font-size: var(--fs-caption);
  }
}
