/* Match the live Join us reading layout within the new site's grid. */
.contact-body main.contact-editorial,
html[data-theme="light"] .contact-body main.contact-editorial {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
}
.contact-body .contact-editorial h2 {
  color: var(--editorial-ink) !important;
}
.contact-body .contact-editorial .join-intro,
.contact-body .contact-editorial .contact-faculty p {
  color: var(--editorial-ink) !important;
}
.contact-body .contact-editorial .join-intro,
.contact-body .contact-editorial .contact-faculty-copy {
  min-width: 0;
  max-width: none;
}
.contact-body .contact-editorial .contact-faculty-photo {
  border: 1px solid var(--editorial-rule);
  border-radius: 10px !important;
  object-position: center top;
}
.contact-body .contact-editorial .application-notice,
.contact-body .contact-editorial .faculty-recommendation {
  color: #aa3d34 !important;
  font-weight: 700;
}
html:not([data-theme="light"]) .contact-body .contact-editorial .application-notice,
html:not([data-theme="light"]) .contact-body .contact-editorial .faculty-recommendation {
  color: #ef9186 !important;
}
/* Inline backgrounds clone across line breaks, so long form links can wrap. */
.contact-body .contact-editorial {
  --join-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='4' viewBox='0 0 12 4'%3E%3Cpath d='M-3 2Q0 -1 3 2T9 2T15 2' fill='none' stroke='%23a9bbdc' stroke-width='1'/%3E%3C/svg%3E");
}
html[data-theme="light"] .contact-body .contact-editorial {
  --join-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='4' viewBox='0 0 12 4'%3E%3Cpath d='M-3 2Q0 -1 3 2T9 2T15 2' fill='none' stroke='%234f648a' stroke-width='1'/%3E%3C/svg%3E");
}
.contact-body .contact-editorial a,
html[data-theme="light"] .contact-body .contact-editorial a {
  color: var(--accent) !important;
  text-decoration: none !important;
  padding-bottom: .2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(currentColor, currentColor), var(--join-wave);
  background-repeat: repeat-x;
  background-position: 0 100%, 0 100%;
  background-size: 100% 1px, 12px 0;
  transition: background-size 180ms ease;
  animation: join-link-wave 900ms linear infinite paused;
}
.contact-body .contact-editorial a:is(:hover, :focus-visible),
html[data-theme="light"] .contact-body .contact-editorial a:is(:hover, :focus-visible) {
  background-size: 100% 0, 12px 4px;
  animation-play-state: running;
}
.contact-body .contact-editorial a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@keyframes join-link-wave {
  from { background-position: 0 100%, 0 100%; }
  to { background-position: 0 100%, 12px 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-body .contact-editorial a,
  html[data-theme="light"] .contact-body .contact-editorial a {
    animation: none;
    transition: none;
  }
}
