.site-footer,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  background-color: #18141e;
  border-radius: 20px 20px 0 0;
  top: -20px;
  height: 20px;
}

.site-footer {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  overflow: hidden;
  background: #18141e;
  color: #3dbf7b;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  overflow: visible;
}

.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 498px;
  grid-template-rows: auto auto;
  row-gap: 44px;
  width: 100%;
  min-width: 0;
  max-width: 1440px;
  min-height: 343px;
  margin-inline: auto;
  padding: 45px 31px 66px;
}

.site-footer__brand {
  position: absolute;
  top: 60px;
  left: 31px;
  display: block;
  width: 321px;
  height: 54px;
  color: inherit;
}

.site-footer__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-footer__logo[data-default-logo="true"] {
  filter: brightness(0) saturate(100%) invert(67%) sepia(43%) saturate(760%)
    hue-rotate(100deg) brightness(89%) contrast(86%);
}

.site-footer__brand:focus-visible,
.footer-navigation-link:focus-visible,
.footer-social-link:focus-visible {
  outline: 2px solid #fcfcfc;
  outline-offset: 4px;
}

.site-footer__navigation {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: 109px 109px 146px;
  width: 498px;
  min-height: 160px;
  column-gap: 67px;
}

.site-footer__links-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  --footer-link-color: #3dbf7b;
}

.site-footer__links-column--legal {
  --footer-link-color: rgba(252, 252, 252, 0.5);
}

.site-footer__links-column > slot {
  display: flex !important;
  width: 100%;
  min-height: 160px;
  flex-direction: column !important;
  align-items: flex-start;
}

.site-footer__socials > slot {
  display: flex !important;
  min-width: 110px;
  min-height: 28px;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
}

.site-footer__links-column > slot::slotted(*) {
  display: flex !important;
  width: 100% !important;
  height: auto !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.footer-navigation-link {
  display: inline-flex;
  height: 40px;
  align-items: center;
  color: var(--footer-link-color, #3dbf7b);
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 40px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.footer-navigation-link[data-appearance="legal"] {
  color: rgba(252, 252, 252, 0.5);
}

.footer-navigation-link:hover {
  color: #fcfcfc;
}

.site-footer__socials {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  align-self: end;
  justify-self: end;
  gap: 13px;
  margin-right: 7px;
}

.site-footer__socials--mobile {
  display: none;
}

.site-footer__socials > slot::slotted(*) {
  display: flex !important;
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 13px !important;
}

.footer-social-link {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-social-link__icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-social-link__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(61, 191, 123, 0.7);
  color: #3dbf7b;
  font-size: 7px;
  font-weight: 600;
  line-height: 1;
}

.footer-social-link:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}
/* 
@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 107px;
    min-height: 480px;
    padding: 145px 30px 40px;
  }

  .site-footer__navigation {
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 0;
    justify-self: center;
    justify-items: center;
    column-gap: 0;
    row-gap: 0;
  }

  .site-footer__links-column {
    width: 100%;
    align-items: center;
  }

  .site-footer__links-column > slot {
    min-height: 0;
    align-items: center;
  }

  .site-footer__links-column > slot::slotted(*) {
    align-items: center !important;
  }

  .footer-navigation-link {
    justify-content: center;
    text-align: center;
  } 

  .site-footer__socials {
    grid-column: 1;
    justify-self: center;
    margin-right: 0;
  }

  .site-footer__socials > slot {
    justify-content: center;
  }
} */

@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: max-content max-content;
    grid-auto-rows: max-content;
    column-gap: 35px;
    row-gap: 54px;
    align-content: start;
    min-height: 0;
    padding: 131px 22px 75px 44px;
  }

  .site-footer__navigation {
    display: contents;
    height: auto;
  }

  .site-footer__links-column {
    align-items: flex-start;
  }

  .site-footer__links-column--primary {
    grid-column: 1;
    grid-row: 1;
  }

  .site-footer__links-column--secondary {
    grid-column: 2;
    grid-row: 1;
  }

  .site-footer__links-column > slot {
    min-height: 0;
    align-items: flex-start;
  }

  .site-footer__links-column > slot::slotted(*) {
    align-items: flex-start !important;
  }

  .site-footer__links-column--legal {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-navigation-link {
    justify-content: flex-start;
    text-align: left;
  }

  .site-footer__brand {
    top: 49px;
    right: auto;
    left: 44px;
    width: min(321px, calc(100% - 48px));
    height: auto;
    aspect-ratio: 321 / 54;
  }

  .site-footer__socials--desktop {
    display: none;
  }

  .site-footer__socials--mobile {
    display: flex;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: start;
    margin-top: 0;
    margin-right: 0;
    gap: 22.5px;
  }

  .site-footer__socials > slot::slotted(*) {
    gap: 22.5px !important;
  }

  .site-footer__socials > slot {
    min-width: 153px;
    min-height: 37px;
  }

  .footer-social-link {
    width: 36px;
    height: 37px;
    flex-basis: 36px;
  }
}

@media (max-width: 359px) {
  .site-footer__inner {
    padding-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-navigation-link,
  .footer-social-link {
    transition: none;
  }
}

/* Authored \n breaks are desktop-only; below the site's mobile breakpoint
   (navbar switch, 1280px) the text reflows naturally. */
@media (max-width: 1280px) {
  br.multiline-br {
    display: none;
  }
}

