/* Two-row contact + split footer (home, news, posts).
   Flarewing reuses the divider + split footer row without the contact form. */

.contact-inner {
  max-width: 88%;
}

.contact-model {
  flex: 1;
  min-width: 0;
  max-width: 480px;
  align-self: center;
  aspect-ratio: 1 / 1;
  display: grid;
  overflow: hidden;
  background: repeating-linear-gradient(
    45deg,
    rgba(221, 221, 221, 0.08) 0 1px,
    transparent 1px 6px
  );
  border: 1px dashed rgba(221, 221, 221, 0.2);
  border-radius: 8px;
}

.contact-model canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.contact-divider {
  width: 100%;
  height: 1px;
  margin: 72px 0;
  background: rgba(0, 255, 204, 0.22);
}

.contact-section .contact-divider,
.contact-section .contact-footer-row,
.quote-section .contact-divider,
.quote-section .contact-footer-row,
.news-site-footer .contact-divider,
.news-site-footer .contact-footer-row,
.contact-footer-only .contact-divider,
.contact-footer-only .contact-footer-row {
  max-width: 88%;
}

.contact-right--split {
  width: 100%;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  border-left: none;
  padding-left: 0;
}

.contact-right--split .logo {
  margin-bottom: 0;
}

.contact-right--split .contact-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-right--split .contact-copyright,
.contact-right--split .contact-address {
  text-align: right;
}

.news-site-footer.contact-footer-only,
.contact-footer-only {
  margin-top: 48px;
  padding-top: 0;
}

.contact-footer-only .contact-divider {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .contact-inner {
    max-width: 100%;
  }

  .contact-model {
    flex: none;
    align-self: flex-start;
    width: 100%;
  }

  .contact-section .contact-divider,
  .contact-section .contact-footer-row,
  .quote-section .contact-divider,
  .quote-section .contact-footer-row,
  .news-site-footer .contact-divider,
  .news-site-footer .contact-footer-row,
  .contact-footer-only .contact-divider,
  .contact-footer-only .contact-footer-row {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-model {
    min-width: 0;
  }

  .contact-divider {
    margin: 48px 0;
  }

  .contact-right--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .contact-right--split .contact-footer-meta {
    align-items: flex-start;
  }

  .contact-right--split .contact-copyright,
  .contact-right--split .contact-address {
    text-align: left;
  }
}
