/* Reusable interior-page back control (see back-button.js) */
.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--ev-gray);
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}

.page-back-link:hover {
  color: var(--ev-charcoal);
}

.page-back-link__icon {
  flex-shrink: 0;
  margin-top: -0.05rem;
}

.page-back-link:focus-visible {
  outline: 2px solid var(--ev-charcoal);
  outline-offset: 2px;
}

@media (min-width: 769px) {
  .page-back-link {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.4rem;
    padding: 0.2rem 0;
  }

  .page-back-link__icon {
    width: 12px;
    height: 12px;
  }

  main > .page-back-link:first-child {
    display: inline-flex;
  }

  main > .page-back-link:first-child + .page-title,
  main > .page-back-link:first-child + .page-subtitle {
    margin-top: 0;
  }

  main.main-agent-wide > .page-back-link:first-child {
    margin-bottom: 0.35rem;
  }
}

@media (max-width: 640px) {
  .page-back-link {
    margin-bottom: 0.5rem;
    min-height: 44px;
    padding: 0.35rem 0;
  }

  main > .page-back-link + .page-title,
  main > .page-back-link + .page-subtitle {
    margin-top: 0;
  }
}
