/* WM-20261021-FOOTER-01: compact homepage footer. */
.site-footer.weavemech-footer {
  display: block;
  min-height: 0;
  padding: 32px max(24px, calc((100% - 1120px) / 2)) 22px;
  color: #56677c;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(28, 67, 111, 0.025) 22px 23px),
    linear-gradient(110deg, #f1f5f9, #f7f9fb);
  border-top: 1px solid #dbe4ed;
  font-size: 13px;
  line-height: 1.65;
}

.weavemech-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: center;
}

.weavemech-footer .footer-brand {
  gap: 15px;
}

.weavemech-footer .footer-brand-logo {
  width: 200px;
  max-width: 100%;
}

.weavemech-footer .footer-brand > span {
  max-width: 400px;
  font-size: 13px;
  line-height: 1.65;
}

.weavemech-footer .footer-contact {
  gap: 4px;
  justify-self: end;
}

.weavemech-footer .footer-contact a {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.3em;
  align-items: center;
  min-height: 34px;
  padding: 2px 0;
  color: #25476a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

.weavemech-footer .footer-contact a:hover {
  color: #0f63bd;
}

.weavemech-footer .footer-contact a:focus-visible {
  outline: 2px solid #326caa;
  outline-offset: 4px;
  border-radius: 2px;
}

.weavemech-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #dbe4ed;
}

.weavemech-footer .footer-copyright {
  color: #69798b;
  font-size: 11px;
}

.weavemech-footer .site-visit-counter {
  position: static;
  inset: auto;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 7px;
  font-size: 10px;
}

.weavemech-footer .site-visit-counter strong {
  font-size: 11px;
}

.weavemech-footer .site-visit-counter-daily {
  margin-inline-start: 3px;
  padding-inline-start: 10px;
  border-inline-start: 1px solid #cbd6e1;
}

@media (max-width: 640px) {
  .site-footer.weavemech-footer {
    padding: 25px 22px 22px;
  }

  .weavemech-footer .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .weavemech-footer .footer-brand {
    gap: 12px;
  }

  .weavemech-footer .footer-brand-logo {
    width: 180px;
  }

  .weavemech-footer .footer-contact {
    justify-self: start;
    gap: 0;
  }

  .weavemech-footer .footer-contact a {
    min-height: 36px;
  }

  .weavemech-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-top: 15px;
    padding-top: 11px;
    padding-inline-end: 58px;
  }
}
