.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__inner {
  container-name: avs-footer;
  container-type: inline-size;
}

.avs-site-footer__top {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--gap-horz);
}

.avs-site-footer__top:has(> :nth-child(3):last-child) {
  grid-template-columns: minmax(0, 1fr) minmax(min-content, 1.8fr) minmax(min-content, 0.65fr);
}

.avs-site-footer__brand {
  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 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.avs-site-footer__column a[href^="mailto:"],
.avs-site-footer__links a {
  white-space: nowrap;
}

.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;
}

@container avs-footer (max-width: 767px) {
  .avs-site-footer__top,
  .avs-site-footer__top:has(> :nth-child(3):last-child) {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap-vert);
  }

  .avs-site-footer__column a[href^="mailto:"],
  .avs-site-footer__links a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
