/* Shared public footer. Deliberately independent of .site-footer / .ark-footer. */
ark-site-footer {
  display: block;
  min-width: 0;
}

.ark-site-footer {
  --ark-footer-ink: #ebe8f2;
  --ark-footer-muted: #b7b3c4;
  --ark-footer-accent: #c8adff;
  box-sizing: border-box;
  position: relative;
  inset: auto;
  isolation: isolate;
  display: block;
  width: min(calc(100% - 48px), 1180px);
  max-width: none;
  min-width: 0;
  margin: 56px auto 24px;
  padding: 36px 36px 0;
  border: 1px solid #35303f;
  border-radius: 24px;
  color: var(--ark-footer-ink);
  background: linear-gradient(120deg, #19171f 0%, #121117 72%);
  color-scheme: dark;
  box-shadow: none;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
  letter-spacing: 0;
}

.ark-site-footer :where(div, nav, p, h2, a, span, img) {
  box-sizing: border-box;
}

.ark-site-footer .ark-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.1fr);
  align-items: start;
  justify-content: stretch;
  gap: 36px;
  width: 100%;
  margin: 0;
  padding: 0 0 30px;
  border: 0;
  background: transparent;
}

.ark-site-footer .ark-site-footer__brand,
.ark-site-footer .ark-site-footer__column {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.ark-site-footer .ark-site-footer__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 183px;
  max-width: 100%;
  min-height: 35px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.ark-site-footer .ark-site-footer__logo img {
  display: block;
  width: 183px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 183 / 35;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ark-site-footer .ark-site-footer__tagline,
.ark-site-footer .ark-site-footer__description,
.ark-site-footer .ark-site-footer__note {
  margin: 0;
  padding: 0;
  color: var(--ark-footer-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ark-site-footer .ark-site-footer__tagline {
  color: var(--ark-footer-ink);
  font-weight: 600;
}

.ark-site-footer .ark-site-footer__title {
  margin: 1px 0 6px;
  padding: 0;
  color: var(--ark-footer-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .03em;
  text-align: left;
  text-transform: none;
}

.ark-site-footer .ark-site-footer__link {
  display: inline-block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  color: var(--ark-footer-ink);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ark-site-footer .ark-site-footer__link:hover {
  color: var(--ark-footer-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ark-site-footer .ark-site-footer__link:focus-visible,
.ark-site-footer .ark-site-footer__logo:focus-visible {
  outline: 2px solid var(--ark-footer-accent);
  outline-offset: 4px;
  border-radius: 3px;
}

.ark-site-footer .ark-site-footer__phone {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .025em;
  white-space: nowrap;
}

.ark-site-footer .ark-site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  width: 100%;
  margin: 0;
  padding: 21px 0;
  border: 0;
  border-top: 1px solid #35303f;
  background: transparent;
}

.ark-site-footer .ark-site-footer__copyright {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--ark-footer-muted);
  font-size: 13px;
  line-height: 1.65;
}

.ark-site-footer .ark-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

.ark-site-footer .ark-site-footer__legal .ark-site-footer__link {
  color: var(--ark-footer-muted);
  font-size: 13px;
  font-weight: 400;
}

.ark-site-footer .ark-site-footer__legal .ark-site-footer__link:hover {
  color: var(--ark-footer-accent);
}

@media (max-width: 980px) {
  .ark-site-footer {
    padding: 30px 28px 0;
  }
  .ark-site-footer .ark-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 36px;
  }
}

@media (max-width: 600px) {
  .ark-site-footer {
    width: calc(100% - 24px);
    margin-top: 36px;
    margin-bottom: 12px;
    padding: 26px 20px 0;
    border-radius: 20px;
  }
  .ark-site-footer .ark-site-footer__grid {
    gap: 28px 20px;
    padding-bottom: 26px;
  }
  .ark-site-footer .ark-site-footer__brand,
  .ark-site-footer .ark-site-footer__contact {
    grid-column: 1 / -1;
  }
  .ark-site-footer .ark-site-footer__bottom {
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;
  }
  .ark-site-footer .ark-site-footer__legal {
    gap: 8px 16px;
  }
  .ark-site-footer .ark-site-footer__filing {
    flex-basis: 100%;
  }
}


/* Cross-site links use the same controls as the primary navigation. */
@media (max-width: 820px) {
  body header :is(nav.site-nav, nav.ark-nav, nav.service-page-nav):has(a[data-ark-site]) {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 !important;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: stretch !important;
    overflow: visible !important;
  }
  body header :is(nav.site-nav, nav.ark-nav, nav.service-page-nav):has(a[data-ark-site]) > a {
    display: flex;
    min-width: 0 !important;
    min-height: 42px;
    padding-inline: 0 !important;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    font-size: clamp(11px, 3vw, 13px);
  }
}
