.topbar__inner {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto minmax(8rem, 1fr);
  align-items: center;
  gap: 1rem;
}

.topbar .brand {
  justify-self: start;
}

.topbar .nav {
  justify-self: center;
}

.topbar .nav__list {
  justify-content: center;
}

.topbar__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  min-width: max-content;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: .55rem;
}

/* Portfolio landing alignment */
.pagehead--portfolio {
  width: 100%;
  max-width: none;
}

.pagehead--portfolio > :where(.kicker, h1, .lead, .portfolio-intro) {
  max-width: 100%;
}

.cards {
  align-items: stretch;
}

.card {
  display: flex;
  min-height: 100%;
}

.card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card__body > .kicker {
  min-height: 6.4em;
}

.card__title {
  min-height: 4.8em;
}

.card__desc {
  flex: 1;
}

.card__more {
  margin-top: auto;
  padding-top: 1.25rem;
}

.closing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing-cta p {
  max-width: 58rem;
}

.closing-cta .btn {
  align-self: center;
}

/* Match the landing footer link treatment. */
.footer__inner {
  font-size: .875rem;
  line-height: 1.35;
}

.footer__links a {
  color: var(--fg);
  opacity: .72;
  text-decoration: none;
  transition: opacity .2s ease, color .2s ease;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  opacity: 1;
  text-decoration: none;
}

@media (max-width: 940px) {
  .topbar__inner {
    grid-template-columns: minmax(7rem, 1fr) auto minmax(7rem, 1fr);
    gap: .65rem;
  }

  .topbar__cta {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    padding-block: .65rem;
  }

  .topbar .brand {
    grid-area: brand;
  }

  .topbar .nav {
    grid-area: nav;
    justify-self: center;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar .nav::-webkit-scrollbar {
    display: none;
  }

  .topbar .nav__list {
    width: max-content;
    min-width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .topbar__actions {
    grid-area: actions;
  }

  .card__body > .kicker,
  .card__title {
    min-height: 0;
  }
}

@media (max-width: 430px) {
  .topbar__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "actions";
    justify-items: center;
  }

  .topbar .brand,
  .topbar__actions {
    justify-self: center;
  }
}
