/* Shared public wordmark and static shell. Keep selectors scoped for SPA reuse. */
.elo-wordmark {
  display: block;
  width: 64px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.elo-public-header,
.elo-public-header * {
  box-sizing: border-box;
}

.elo-public-header {
  background: #fdfcfb;
  border-bottom: 1px solid #e4e4ed;
  color: #181722;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.elo-public-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1280px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
}

.elo-public-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  text-decoration: none;
}

.elo-public-nav,
.elo-public-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.elo-public-header a:not(.elo-public-button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #696779;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.elo-public-header a:not(.elo-public-button):hover {
  color: #6346f5;
}

.elo-public-header a:focus-visible,
.elo-public-button:focus-visible {
  outline: 3px solid #6346f5;
  outline-offset: 4px;
}

.elo-public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #6346f5;
  border-radius: 12px;
  background: #6346f5;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.elo-public-button:hover {
  background: #5134d7;
  color: #fff;
}

/* These selectors apply only while the public HTML fallback is visible. */
body:has(> #root > .elo-public-header) {
  margin: 0;
  background: #fdfcfb;
}

.elo-public-header + .seo-static-fallback:not(.blog-shell) {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
  color: #181722;
  font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.elo-public-header + .seo-static-fallback:not(.blog-shell) h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.elo-public-header + .seo-static-fallback:not(.blog-shell) h2 {
  margin-top: 36px;
  font-size: 26px;
  line-height: 1.3;
}

.elo-public-header + .seo-static-fallback:not(.blog-shell) a:not(.elo-public-button) {
  color: #6346f5;
  text-underline-offset: 0.18em;
}

.elo-public-header + .seo-static-fallback:not(.blog-shell) nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 760px) {
  .elo-public-header__inner {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 18px 0 12px;
  }

  .elo-public-nav {
    order: 3;
    justify-content: center;
    width: 100%;
    gap: 24px;
  }

  .elo-public-actions {
    gap: 14px;
  }

  .elo-public-actions .elo-public-button {
    padding-right: 14px;
    padding-left: 14px;
  }
}
