/* Ready Korean — GeneratePress header auth buttons */

body.rk-auth-header-active .auth-nav-slot,
body.rk-auth-header-active #auth-nav-slot,
body.rk-auth-header-active .nav-actions--enhanced .auth-nav-slot {
  display: none !important;
}

.rk-gp-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.35rem;
  flex-shrink: 0;
}

.rk-gp-auth-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: 36px;
  min-height: 36px;
  padding: 0 0.85rem !important;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1 !important;
  white-space: nowrap;
  vertical-align: middle;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.menu-bar-items .rk-gp-auth-btn,
#site-navigation .rk-gp-auth-btn,
.main-navigation .menu-bar-items .rk-gp-auth-btn {
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.rk-gp-auth-btn--ghost {
  color: #0f1623 !important;
  background: transparent;
  border: 1px solid #e5e0d8;
}

.rk-gp-auth-btn--ghost:hover {
  background: #f7f5f0;
}

.rk-gp-auth-btn--primary {
  color: #fff !important;
  background: #c73e3a;
  border: 1px solid #c73e3a;
}

.rk-gp-auth-btn--primary:hover {
  background: #a83330;
  border-color: #a83330;
}

.rk-gp-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.15rem;
  max-width: 10rem;
}

.rk-gp-auth-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fde8e7;
  color: #c73e3a;
  font-size: 0.78rem;
  font-weight: 700;
}

.rk-gp-auth-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f1623;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-bar-items .rk-gp-auth,
#site-navigation .rk-gp-auth,
.main-navigation .menu-bar-items .rk-gp-auth {
  align-self: center;
}

/* Mobile: one-row header (logo + auth), hide GP menu — bottom tab bar is used */
@media (max-width: 900px) {
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] #masthead .inside-header,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .inside-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .site-branding,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .site-logo {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin-right: 0 !important;
  }

  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] #site-navigation,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .main-navigation {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-left: auto !important;
  }

  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] #site-navigation .inside-navigation,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .main-navigation .inside-navigation {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    gap: 0.35rem !important;
  }

  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] #site-navigation .main-nav,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .main-navigation .main-nav,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] #site-navigation .menu-toggle,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .main-navigation .menu-toggle,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] #mobile-header .menu-toggle,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .mobile-menu-control-wrapper,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .slideout-navigation,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] #generate-slideout-menu,
  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .menu-bar-item.search-item {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .menu-bar-items {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    width: auto !important;
  }

  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .rk-gp-auth {
    display: inline-flex !important;
    margin-left: 0 !important;
    gap: 0.3rem !important;
  }

  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .rk-gp-auth-btn {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 0.55rem !important;
    font-size: 0.72rem;
    line-height: 1 !important;
    border-radius: 7px;
  }

  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .rk-gp-auth-user {
    max-width: 5.5rem;
  }

  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .rk-gp-auth-name {
    font-size: 0.72rem;
  }

  body.rk-auth-header-active[class*='rk-'][class*='-plugin-active'] .rk-gp-auth-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
}
