body.landfree-refined #contact .contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.landfree-refined #contact .contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #343a38;
  border-radius: 10px;
  color: #d6dad7;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}

body.landfree-refined #contact .contact-links a:hover,
body.landfree-refined #contact .contact-links a:focus-visible {
  color: #d4ff24;
  border-color: #a6be35;
}

.contact-brand-icon {
  display: block;
  flex: none;
  filter: invert(1);
}

.contact-resume-icon { flex: none; }

@media (max-width: 760px) {
  body.landfree-refined #contact .contact-links { justify-content: flex-start; }
}

/* Keep the primary action and supporting links on one shared edge. */
html body.landfree-refined #contact.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  align-items: center;
}

html body.landfree-refined #contact .contact-actions {
  width: 100%;
  max-width: none;
  align-items: stretch;
  gap: 12px;
}

html body.landfree-refined #contact .primary-email-link {
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

html body.landfree-refined #contact .contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
}

html body.landfree-refined #contact .contact-links a {
  justify-content: center;
  padding-inline: 8px;
  border-color: transparent;
  border-radius: 8px;
  font-size: 14px;
}

html body.landfree-refined #contact .contact-links a:hover,
html body.landfree-refined #contact .contact-links a:focus-visible {
  background: #171c18;
  border-color: #465032;
}

@media (max-width: 760px) {
  html body.landfree-refined #contact.contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 360px) {
  html body.landfree-refined #contact .contact-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A compact primary action with the supporting profiles grouped below it. */
html body.landfree-refined #contact .contact-actions {
  align-items: flex-start;
  gap: 20px;
}
html body.landfree-refined #contact .primary-email-link {
  width: auto;
  min-width: 190px;
  justify-content: center;
  gap: 20px;
  border-radius: 10px;
}
html body.landfree-refined #contact .contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px 20px;
}
html body.landfree-refined #contact .contact-links a {
  justify-content: flex-start;
  padding-inline: 0;
  border: 0;
}
html body.landfree-refined #contact .contact-links a:hover,
html body.landfree-refined #contact .contact-links a:focus-visible {
  background: transparent;
}

/* Let the contact section sit directly on the page, aligned to its grid. */
html body.landfree-refined #contact.contact-layout {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 40px 64px;
}
@media (max-width: 760px) {
  html body.landfree-refined #contact.contact-layout { gap: 28px; }
}

/* Extend section dividers beyond the centered content container. */
html body.landfree-refined main > section.container:not(.hero) {
  border-image: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .16)) 1 / 1px 0 0 / 0 100vw;
}

/* The tools and community sections meet at one divider, without stacked margins. */
html body.landfree-refined #tools.tool-stack { margin-bottom: 0; }
html body.landfree-refined .work-network.container { margin-top: 0; }
