.hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
  box-shadow: var(--box-shadow);
}

/* A heading with a team badge beside it (docs/adr/0039). */
.hero__title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__heading {
  font-size: 3rem;
  color: var(--black);
  line-height: 1em;
  background-color: var(--tertiary);
  display: inline-block;
  border-radius: 0.5rem;
  padding: 0.25rem;
  border: 0.25rem solid var(--black);
  box-shadow: var(--box-shadow);
}

/* Breadcrumbs above the heading (components/breadcrumbs.html.twig). */
.breadcrumbs {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "›" / "";
  margin-right: 0.5rem;
}

/* Links look like the current page, plus a bottom border. */
.breadcrumbs a,
.breadcrumbs [aria-current="page"] {
  color: var(--white);
  font-weight: 700;
}

.breadcrumbs a {
  border-bottom: 0.125rem solid currentColor;
  text-decoration: none;
}

/*
 * Phones (docs/adr/0038): a slimmer band and a heading sized to the screen,
 * so long names wrap rather than run off the edge and the page starts
 * sooner. The trail shrinks to a link back to the page above.
 */
@media (max-width: 47.99rem) {
  .hero {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }

  .hero__heading {
    max-width: 100%;
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    border-width: 0.1875rem;
  }

  .breadcrumbs {
    margin-bottom: 0.5rem;
  }

  .breadcrumbs__item {
    display: none;
  }

  .breadcrumbs__item:nth-last-child(2) {
    display: block;
  }

  .breadcrumbs__item:nth-last-child(2)::before {
    content: "‹" / "";
    margin-right: 0.375rem;
  }

  /*
   * Inside a team (docs/adr/0119): the site's header, the team's tabs and the
   * bottom bar already take much of a phone, so its title is a slim plate -
   * the badge and name on one short row.
   */
  .hero--compact {
    padding-top: 0.625rem;
    padding-bottom: 0.75rem;
  }

  .hero--compact .hero__title {
    gap: 0.5rem;
  }

  .hero--compact .hero__heading {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
    border-width: 0.125rem;
  }

  .hero--compact .team-badge--large {
    width: 2.25rem;
    height: 2.5rem;
    border-width: 0.125rem;
    font-size: 0.8rem;
  }

  .hero--compact .breadcrumbs {
    margin-bottom: 0.375rem;
  }
}
