/**
 * Sitewide header auth — Sign In or Settings profile.
 */

.kz-sheet__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.kz-sheet__signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  border: 0;
}

.kz-sheet__signin:hover,
.kz-sheet__signin:focus-visible {
  background: #1e40af;
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25);
}

.kz-sheet__profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.kz-sheet__profile:hover,
.kz-sheet__profile:focus-visible {
  border-color: #1d4ed8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

.kz-sheet__profile-icon {
  display: block;
}

.kz-sheet__profile--portrait {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.kz-sheet__profile-photo {
  display: block;
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: cover;
  border-radius: 50%;
}

.kz-sheet__header-actions .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hide leftover Explore/Account nav if a cached template still emits it */
.kz-header-nav {
  display: none !important;
}

/* Signed-in parents never see Create account / register CTAs. */
body.logged-in .kz-guest-only,
body.logged-in [data-testid="home-cta-register"],
body.logged-in [data-testid="upgrade-cta-register"],
body.logged-in [data-testid="pricing-cta-register"],
body.logged-in a.kz-btn[href*="view=register"],
body.logged-in a.kz-trail-cta__register[href*="view=register"],
body.logged-in .kz-upgrade__steps,
body.logged-in .kz-upgrade__cta-wrap,
body.logged-in .kz-upgrade__footer,
body.logged-in h2.kz-upgrade__section-title:has(+ .kz-upgrade__steps),
body.logged-in h2.kz-upgrade__section-title:has(+ ol) {
  display: none !important;
}

body:not(.logged-in) .kz-authed-only {
  display: none !important;
}
