/* Shared layout for the public footer of each learning world. */
footer.wrap.footer[data-bk-unified-footer] {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  gap: 8px;
  width: min(100%, 1240px);
  max-width: 1240px;
  min-width: 0;
  margin-inline: auto;
  padding: 26px clamp(16px, 3.5vw, 42px) 28px;
  text-align: start;
}

footer.wrap.footer[data-bk-unified-footer] > :is(.vk-footer-brand, .klar-footer-brand),
footer.site-footer .footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  min-width: 0;
  margin: 0;
}

footer.wrap.footer[data-bk-unified-footer] > :is(.vk-footer-brand, .klar-footer-brand) > a:first-child,
footer.site-footer .footer-brand-row > .footer-logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
}

footer.wrap.footer[data-bk-unified-footer] > :is(.vk-footer-brand, .klar-footer-brand) > a:first-child > img,
footer.site-footer .footer-brand-row > .footer-logo > img {
  display: block;
  width: 160px;
  height: 48px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

footer.wrap.footer[data-bk-unified-footer] > p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}

footer.wrap.footer[data-bk-unified-footer] > nav[aria-label],
footer.site-footer .footer-bottom > nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  column-gap: clamp(12px, 2vw, 22px);
  row-gap: 0;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

footer.wrap.footer[data-bk-unified-footer] > nav[aria-label] > :is(a, button),
footer.site-footer .footer-bottom > nav > :is(a, button) {
  display: inline-flex !important;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  transform: none;
  border: 0;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-align: start;
  text-underline-offset: 3px;
}

footer.wrap.footer[data-bk-unified-footer] > nav[aria-label] > :is(a, button):hover,
footer.site-footer .footer-bottom > nav > :is(a, button):hover {
  text-decoration: underline;
}

@media (max-width: 540px) {
  footer.wrap.footer[data-bk-unified-footer] {
    gap: 6px;
    padding-block: 20px;
  }
}
