.site-footer {
  margin-top: var(--space-8);
  border-top: 1px solid rgb(7 30 58 / 14%);
  background: #edf1f5;
}

.footer-shell {
  max-width: 1160px;
  margin-inline: auto;
  padding: 1.35rem var(--space-4) 1.15rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem var(--space-5);
  margin-bottom: 0.85rem;
}

.footer-nav {
  justify-self: end;
  max-width: 34rem;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list > li {
  display: inline-flex;
  align-items: center;
}

.footer-nav-list > li + li::before {
  content: '';
  width: 1px;
  height: 0.82rem;
  background: rgb(7 30 58 / 20%);
  margin-inline: 0.25rem;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 1.8rem;
  padding-inline: 0.42rem;
  border-radius: 0.32rem;
  color: #314961;
  font: 700 0.86rem/1 var(--font-title-list);
  letter-spacing: 0.01em;
  transition: color 140ms ease, background-color 140ms ease;
}

.footer-nav-link:hover,
.footer-nav-link:focus-visible {
  color: var(--color-primary);
  background: rgb(5 80 156 / 10%);
}

.footer-tagline {
  margin: 0;
  max-width: 58ch;
  color: #3f566e;
  font: 500 0.92rem/1.5 var(--font-body);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border-top: 1px solid rgb(7 30 58 / 12%);
  padding-top: 0.85rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-social-link {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: #ffffff;
  background: #043f79;
  border-color: transparent;
}

.footer-social-icon {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-copy {
  margin: 0;
  color: #49627b;
  font: 500 0.83rem/1.4 var(--font-body);
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: var(--space-6);
  }

  .footer-shell {
    padding-block: 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
  }

  .footer-nav {
    justify-self: center;
    max-width: none;
    width: 100%;
  }

  .footer-nav-list {
    justify-content: center;
    gap: 0.18rem;
  }

  .footer-nav-list > li + li::before {
    margin-inline: 0.18rem;
  }

  .footer-nav-link {
    min-block-size: 1.75rem;
    font-size: 0.82rem;
    padding-inline: 0.34rem;
  }

  .footer-tagline {
    margin: 0;
    font-size: 0.88rem;
  }

  .footer-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
    padding-top: 0.55rem;
  }

  .footer-social {
    justify-content: center;
    width: 100%;
  }

  .footer-copy {
    text-align: center;
    width: 100%;
  }
}
