/* Shared home link. Scoped selectors leave forms, headers and navigation intact. */
a[data-pathway-home] {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  max-width: 100%;
  flex-shrink: 0;
  color: #15233c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

a[data-pathway-home] > .mark,
a[data-pathway-home] > .brand-mark {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 9px 9px 9px 2px;
  background: #2962e8;
  color: #fff;
  font-size: .83rem;
  font-weight: 800;
}

a[data-pathway-home]:hover {
  color: #1648c1;
}

a[data-pathway-home] > img.wisevero-logo {
  display: block;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

a[data-pathway-home]:focus-visible {
  outline: 3px solid #2962e8;
  outline-offset: 4px;
  border-radius: 5px;
}

/* Auth/confirmation pages without a header keep the link above their card. */
main.page > .pathway-home-added {
  margin-bottom: 24px;
}

.pathway-home-bar {
  padding: 16px clamp(20px, 6vw, 92px);
  border-bottom: 1px solid #e2e8f1;
  background: #fff;
}

/* Landing page secondary action, kept below the primary Get Started button. */
a.existing-account {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 190px;
  min-height: 52px;
  max-width: 100%;
  padding: 14px 25px;
  border: 2px solid #2962e8;
  border-radius: 12px;
  background: #fff;
  color: #2962e8;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
a.existing-account:hover { background: #edf3ff; border-color: #1648c1; text-decoration: none; }
html[data-pathway-theme="dark"] a.existing-account { background: #182438; color: #c5d7ff; border-color: #88aaff; }
html[data-pathway-theme="dark"] a.existing-account:hover { background: #273e65; }
@media(max-width:520px) { a.existing-account { width: 100%; } }
