.sf-site-header-mount {
  margin: 0;
  padding: 0;
}

.sf-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ep-border, #e2e8f0);
}

.sf-site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sf-site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 0;
}

.sf-site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.sf-site-header__logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 160px;
}

.sf-site-header__mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.sf-site-header__wordmark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ep-primary-dark, #06344f);
  white-space: nowrap;
}

.sf-site-header__wordmark em {
  font-style: normal;
  color: #b8860b;
}

.sf-site-header__tagline {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--ep-text-muted, #64748b);
  font-weight: 500;
  max-width: 14rem;
  display: none;
}

.sf-site-nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: auto;
}

.sf-site-nav a {
  color: var(--ep-text-muted, #64748b);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.sf-site-nav a:hover,
.sf-site-nav a.is-active {
  color: var(--ep-primary, #0c5a8c);
}

.sf-site-nav__cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: var(--ep-primary, #0c5a8c);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.sf-site-nav__cta:hover {
  filter: brightness(1.06);
}

.sf-site-nav__cta--outline {
  background: #fff;
  color: var(--ep-primary, #0c5a8c) !important;
  border: 1px solid var(--ep-primary, #0c5a8c);
}

.sf-site-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.sf-site-auth--signed-out {
  gap: 0.4rem;
}

.sf-site-auth__user {
  display: inline-flex;
  align-items: center;
  max-width: 9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: var(--ep-primary-soft, #e8f4fc);
  color: var(--ep-primary-dark, #06344f) !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-site-auth__user:hover {
  filter: brightness(0.98);
}

.sf-site-auth__logout {
  border: 1px solid var(--ep-border, #e2e8f0);
  background: #fff;
  color: var(--ep-text-muted, #64748b);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sf-site-auth__logout:hover {
  border-color: #cbd5e1;
  color: var(--ep-primary, #0c5a8c);
}

.sf-site-nav-toggle {
  display: none;
  border: 1px solid var(--ep-border, #e2e8f0);
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.sf-site-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 24px 1rem;
  border-top: 1px solid var(--ep-border, #e2e8f0);
  background: #fff;
}

.sf-site-mobile.is-open {
  display: flex;
}

.sf-site-mobile a {
  padding: 0.5rem 0;
  color: var(--ep-text-muted, #64748b);
  text-decoration: none;
  font-weight: 600;
}

.sf-site-footer {
  padding: 2rem 24px 2.5rem;
  background: #0f172a;
  color: #cbd5e1;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
}

.sf-site-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  text-decoration: none;
  color: #f8fafc;
}

.sf-site-footer__logo {
  display: block;
  border-radius: 8px;
}

.sf-site-footer__wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.sf-site-footer__tagline {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  opacity: 0.88;
}

.sf-site-footer a {
  color: #e2e8f0;
}

.sf-site-footer__venture {
  margin: 0 0 0.75rem;
  opacity: 0.92;
}

.sf-site-footer p {
  margin: 0;
}

.sf-site-footer__links {
  margin-bottom: 0.65rem;
}

.sf-site-footer__mini {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  opacity: 0.82;
  line-height: 1.55;
}

.sf-site-footer__link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #e2e8f0;
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.sf-site-footer__link-btn:hover {
  color: #fff;
}

.sf-site-toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.sf-site-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 1100px) {
  .sf-site-header__tagline {
    display: block;
    border-left: 1px solid var(--ep-border, #e2e8f0);
    padding-left: 0.75rem;
  }
}

@media (max-width: 900px) {
  .sf-site-nav--desktop {
    display: none;
  }

  .sf-site-nav-toggle {
    display: inline-flex;
  }
}
