/**
 * Shared homepage section header row: kicker + big heading on the left,
 * optional "View all" link on the same row.
 */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-heading__kicker {
  margin-bottom: var(--space-1);
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading__title {
  margin: 0;
}

.section-heading__view-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-1);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-ink);
}

/* This one is already ink on an ink rule, so there is no contrast left to
   move toward and nothing to invert - a text link cannot go white on a white
   page. Its hover is carried entirely by the arrow travelling (see
   .icon--arrow in base.css) plus the rule thickening, which is a weight
   change rather than a colour change. Stated with box-shadow rather than
   border-width so it cannot shift the link's baseline. */
.section-heading__view-all:hover,
.section-heading__view-all:focus-visible {
  box-shadow: inset 0 -2px 0 -1px var(--color-ink);
}

@media screen and (max-width: 749px) {
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}
