/* DEMO 10.107.97 — unify the kids-course Home/Back control with the
   floating Home control used after entering the three main navigation areas.
   Navigation behavior is unchanged; this file is visual/layout only. */

/* The course header no longer reserves a separate left column for Back. */
body.app-kids-mode .kids-course-head{
  grid-template-columns:1fr!important;
  gap:0!important;
}

/* Use the same soft green floating-home language as the three main functions. */
body.app-kids-mode .kids-back-home{
  position:fixed!important;
  right:max(4px,calc((100vw - 430px)/2 + 4px))!important;
  bottom:max(16px,calc(env(safe-area-inset-bottom) + 8px))!important;
  top:auto!important;
  left:auto!important;
  z-index:1000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  min-height:58px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.75)!important;
  border-radius:50%!important;
  background:#29936f!important;
  color:#fff!important;
  box-shadow:0 10px 26px rgba(52,91,59,.18)!important;
  -webkit-tap-highlight-color:transparent!important;
  touch-action:manipulation!important;
}
body.app-kids-mode .kids-back-home svg{
  display:block!important;
  width:26px!important;
  height:26px!important;
  margin:0!important;
  transform:none!important;
}
body.app-kids-mode .kids-back-home:active{transform:scale(.96)!important}
body.app-kids-mode .kids-back-home:focus-visible{
  outline:3px solid #f3b45f!important;
  outline-offset:3px!important;
}

@media(max-width:430px){
  body.app-kids-mode .kids-back-home{
    right:4px!important;
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
    min-height:54px!important;
  }
  body.app-kids-mode .kids-back-home svg{width:24px!important;height:24px!important}
}
