/* Shared return button across Puente; preserve publication typography and content. */
body nav a.main-site-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  box-sizing: border-box;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #caff70;
  border-radius: 8px;
  background: #b8ef4d;
  color: #11170a;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 3px rgb(184 239 77 / 9%), 0 0 15px rgb(184 239 77 / 15%);
  animation: puente-home-glow 3.6s ease-in-out infinite;
  transition: background-color 180ms ease, color 180ms ease;
}

body nav a.main-site-return::before {
  content: "\2190";
  font-size: 1.1em;
}

body nav a.main-site-return::after {
  content: none;
}

body nav a.main-site-return:hover {
  background: #d0ff84;
  color: #11170a;
  animation: none;
  box-shadow: 0 0 0 3px rgb(184 239 77 / 18%), 0 0 22px rgb(184 239 77 / 30%);
}

body nav a.main-site-return:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  animation: none;
}

@keyframes puente-home-glow {
  0%, 100% {
    box-shadow: 0 0 0 3px rgb(184 239 77 / 9%), 0 0 15px rgb(184 239 77 / 15%);
  }
  50% {
    box-shadow: 0 0 0 3px rgb(184 239 77 / 17%), 0 0 24px rgb(184 239 77 / 32%);
  }
}

@media (max-width: 650px) {
  body nav a.main-site-return {
    padding-inline: 10px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body nav a.main-site-return {
    animation: none;
    transition: none;
  }
}

/* Allow the collection and standalone guide navigation to wrap naturally. */
body > header > nav.site-return,
body > main > nav:has(> a.main-site-return) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
body > header:has(> nav.site-return) {
  flex-wrap: wrap;
  gap: 16px;
}
