.avs-theme-part {
  width: 100%;
  flex-shrink: 0;
}

.avs-site-footer.avs-site-part--light {
  background: var(--surface);
  color: var(--text);
}

.avs-site-footer.avs-site-part--dark {
  background: var(--secondary);
  color: var(--text-light);
}

.avs-site-footer.avs-site-part--brand {
  background: var(--primary);
  color: var(--text-light);
}

.avs-site-footer__top {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--gap-horz);
}

.avs-site-footer__brand {
  flex: 1 1 18rem;
  min-width: 0;
}

.avs-site-footer .avs-site-brand {
  display: inline-flex;
  align-items: center;
  width: var(--avs-brand-width, 160px);
  max-width: 100%;
  color: inherit;
  font-family: var(--heading-font);
  font-size: var(--h5);
  font-weight: var(--weight-bold);
  line-height: var(--heading-lh);
  overflow-wrap: anywhere;
}

.avs-site-footer .avs-site-brand__logo {
  display: block;
  width: 100%;
  height: auto;
}

.avs-site-footer__copy {
  max-width: 100%;
  margin-top: var(--gap-sm);
  font-size: var(--text-sm);
}

.avs-site-footer__column {
  flex: 1 1 12rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.avs-site-footer__column:has(.avs-site-footer__column-copy) {
  flex-grow: 2;
  flex-basis: 24rem;
}

.avs-site-footer__column h2 {
  margin: 0 0 var(--gap-sm);
  font-family: var(--heading-font);
  font-size: var(--h6);
  font-weight: var(--weight-bold);
  line-height: var(--heading-lh);
  color: inherit;
}

.avs-site-footer__column-copy {
  font-size: var(--text-md);
}

.avs-site-footer__column-copy p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.avs-site-footer__column-copy + .avs-site-footer__links {
  margin-top: var(--gap-sm);
}

.avs-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.avs-site-footer__links {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--body-lh);
}

.avs-site-footer a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.avs-site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.avs-site-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.avs-site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-sm) var(--gap-horz);
  margin-top: var(--gap-vert);
  font-size: var(--text-sm);
  line-height: var(--body-lh);
  overflow-wrap: anywhere;
}

.avs-site-footer--divider .avs-site-footer__bottom {
  padding-top: var(--gap-horz);
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.avs-site-footer--centered .avs-site-footer__bottom {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.avs-site-footer__bottom small {
  font-size: inherit;
}

@media (max-width: 767px) {
  .avs-site-footer__brand {
    flex-basis: 100%;
  }

  .avs-site-footer__column:has(.avs-site-footer__column-copy) {
    flex-basis: 100%;
  }
}
