.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .35rem 1rem;
  color: inherit;
  font-size: .875rem;
  line-height: 1.5;
}

.footer-social > a,
.footer-qr > summary {
  box-sizing: border-box;
  width: max-content;
  min-height: 44px;
  padding-block: .7rem;
  color: inherit;
}

.footer-social > a {
  min-width: 44px;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.footer-qr {
  max-width: 100%;
}

.footer-qr > summary {
  cursor: pointer;
}

.footer-qr > summary:hover,
.footer-qr > summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.footer-qr-card {
  box-sizing: border-box;
  width: min(12rem, 100%);
  padding: .7rem;
  border: 1px solid var(--c-line, #dcdcd5);
  border-radius: .25rem;
  background: var(--c-page, #fbfaf6);
  color: var(--c-ink, #1e2425);
}

.footer-qr-card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.footer-qr-card p {
  margin: .4rem 0 0;
  font-size: .8rem;
  line-height: 1.5;
}

/* Keep the original footer grid intact and put the requested links underneath. */
.footer-inner > .footer-social {
  grid-column: 2;
}

.profile-social {
  margin-block: 1rem 2rem;
}

.bk-end > .footer-social {
  justify-content: center;
  margin-block-start: 1rem;
}

@media (max-width: 520px) {
  .footer-inner > .footer-social {
    grid-column: 1 / -1;
  }
}
