@import url("/assets/site-background-atmosphere.css");

/* Shared parent-navigation control for ordinary internal pages. */
.site-return-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 18px;
}

.site-return-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 15px;
  border: 1px solid rgba(65, 90, 119, .2);
  border-radius: 14px;
  color: #31475f;
  background: rgba(255, 253, 249, .72);
  box-shadow: 0 8px 22px rgba(78, 64, 48, .06);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.site-return-link:hover {
  color: #31475f;
  border-color: rgba(65, 90, 119, .32);
  background: #fffdf9;
  box-shadow: 0 10px 28px rgba(78, 64, 48, .09);
}

.site-return-link:focus-visible {
  outline: 2px solid #b8d5f2;
  outline-offset: 4px;
}

.site-return-arrow {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

/* The recording page also has a parent-navigation return action in its hero. */
body.workbench-recording .actions a.button[href="../index.html"] {
  border-radius: 14px;
  border: 1px solid rgba(65, 90, 119, .2);
  color: #31475f;
  background: rgba(255, 253, 249, .72);
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(78, 64, 48, .06);
}

body.workbench-recording .actions a.button[href="../index.html"]:hover,
body.workbench-recording .actions a.button[href="../index.html"]:focus-visible {
  border-color: rgba(65, 90, 119, .32);
  color: #31475f;
  background: #fffdf9;
  box-shadow: 0 10px 28px rgba(78, 64, 48, .09);
}

@media (max-width: 520px) {
  .site-return-wrap {
    width: calc(100% - 24px);
    margin-bottom: 14px;
  }

  .site-return-link {
    padding-inline: 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-return-link {
    transition: none;
  }
}
