/* Shared contact layout: keep the full QR and its copy in normal document flow.
   This file intentionally loads after page-specific and earlier refinement CSS. */
body footer.contact-section .contact-layout {
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
}
body footer.contact-section .contact-layout > * {
  min-width: 0;
}
body footer.contact-section .contact-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  justify-items: start;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
}
body footer.contact-section .contact-details > * {
  min-width: 0;
  max-width: 100%;
  flex: none;
}
body footer.contact-section .contact-details > p {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
body footer.contact-section .wechat-contact {
  --contact-qr-size: 128px;
  display: grid;
  position: relative;
  inset: auto;
  grid-template-columns: var(--contact-qr-size) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  align-self: start;
  gap: 20px;
  width: min(100%, 440px);
  height: auto;
  min-height: calc(var(--contact-qr-size) + 25px);
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid #474747;
  box-sizing: border-box;
  overflow: visible;
}
body footer.contact-section .wechat-contact > button {
  display: block;
  position: relative;
  width: var(--contact-qr-size);
  height: var(--contact-qr-size);
  min-width: var(--contact-qr-size);
  min-height: var(--contact-qr-size);
  max-width: none;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 8px;
  border: 1px solid #ed3b32;
  box-sizing: border-box;
  overflow: hidden;
  background: #050609;
}
body footer.contact-section .wechat-contact > button > img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}
body footer.contact-section .wechat-contact > div {
  position: static;
  min-width: 0;
  height: auto;
  align-self: center;
}
body footer.contact-section .wechat-contact h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.5;
}
body footer.contact-section .wechat-contact p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.8;
}
body footer.contact-section .wechat-contact a {
  min-height: 36px;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
}
body footer.contact-section .footer-bottom {
  position: relative;
  clear: both;
  height: auto;
  min-height: 0;
}
@media (max-width: 1023px) {
  body footer.contact-section .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  body footer.contact-section .contact-details {
    margin-top: 0;
  }
}
@media (max-width: 599px) {
  body footer.contact-section .wechat-contact {
    --contact-qr-size: 112px;
    gap: 18px;
    max-width: 380px;
  }
}
@media (max-width: 359px) {
  body footer.contact-section .wechat-contact {
    --contact-qr-size: 104px;
    gap: 14px;
  }
  body footer.contact-section .wechat-contact h3 {
    font-size: 16px;
  }
}
