/* EduNizam Phase 17 — readable mobile homepage navigation.
   Replaces the cramped 9px inline link strip with a clear two-column glass menu.
   Scoped to the public homepage; desktop, app navigation, routing and behavior stay unchanged. */
@media (max-width:720px){
  html body.gold-home.page-home header.public-nav,
  html body.gold-home.page-home header.public-nav.is-scrolled{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    gap:11px!important;
    width:calc(100% - 22px)!important;
    max-width:var(--en-content)!important;
    height:auto!important;
    min-height:0!important;
    margin:8px auto 0!important;
    padding:11px!important;
    overflow:visible!important;
    border:1px solid rgba(151,211,255,.56)!important;
    border-radius:19px!important;
    background:linear-gradient(145deg,rgba(18,83,151,.94),rgba(5,30,75,.97))!important;
    box-shadow:0 12px 30px rgba(0,9,35,.28),inset 0 1px 0 rgba(255,255,255,.16)!important;
    -webkit-backdrop-filter:blur(20px) saturate(145%)!important;
    backdrop-filter:blur(20px) saturate(145%)!important;
  }
  html body.gold-home.page-home header.public-nav .public-brand{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    align-items:center!important;
    justify-self:start!important;
    width:auto!important;
    min-width:0!important;
    min-height:38px!important;
    flex:initial!important;
    gap:9px!important;
  }
  html body.gold-home.page-home header.public-nav .public-mark{
    width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
  }
  html body.gold-home.page-home header.public-nav .brand-name{
    font-size:19px!important;
    line-height:1.05!important;
  }
  html body.gold-home.page-home header.public-nav .brand-copy small{
    display:block!important;
    margin-top:3px!important;
    color:#c9e7ff!important;
    font-size:8px!important;
    letter-spacing:.12em!important;
  }
  html body.gold-home.page-home header.public-nav nav.public-links{
    grid-column:1!important;
    grid-row:2!important;
    position:static!important;
    inset:auto!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:minmax(40px,auto)!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    gap:7px!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  html body.gold-home.page-home header.public-nav nav.public-links a{
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:40px!important;
    margin:0!important;
    padding:8px 7px!important;
    border:1px solid rgba(164,224,255,.46)!important;
    border-radius:11px!important;
    background:rgba(71,145,210,.20)!important;
    color:#f3f8ff!important;
    -webkit-text-fill-color:#f3f8ff!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.2!important;
    text-align:center!important;
    text-decoration:none!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10)!important;
  }
  html body.gold-home.page-home header.public-nav nav.public-links a.nav-primary{
    border-color:rgba(164,224,255,.78)!important;
    background:linear-gradient(120deg,#1389df,#0752a9)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:0 5px 14px rgba(0,65,135,.26),inset 0 1px 0 rgba(255,255,255,.22)!important;
  }
  html body.gold-home.page-home .public-main{
    padding-top:18px!important;
  }
}
@media (max-width:380px){
  html body.gold-home.page-home header.public-nav{
    gap:9px!important;
    padding:9px!important;
  }
  html body.gold-home.page-home header.public-nav nav.public-links{
    gap:6px!important;
  }
  html body.gold-home.page-home header.public-nav nav.public-links a{
    min-height:38px!important;
    padding:7px 5px!important;
    font-size:11.5px!important;
  }
}
@media (prefers-reduced-motion:reduce){
  html body.gold-home.page-home header.public-nav,
  html body.gold-home.page-home header.public-nav *{
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
  }
}
