/* P1N Community Engine v0.5.0 Beta 4 — mobile guest account access. */
/* The desktop guest links are hidden by the responsive header. Provide dedicated
   account actions on phones/PWA instead of relying on the hamburger menu. */
.ce054-mobile-auth{display:none}
.ce054-menu-auth{display:none}
@media (max-width:830px){
  .site-top > .btn{display:none!important}
  .ce054-mobile-auth{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:center;
    gap:9px;
    box-sizing:border-box;
    height:58px;
    padding:7px max(12px,env(safe-area-inset-right)) 7px max(12px,env(safe-area-inset-left));
    position:sticky;
    top:62px;
    z-index:48;
    background:linear-gradient(100deg,#091b33 0%,#0d2b4c 100%);
    border-bottom:1px solid #316088;
    box-shadow:0 6px 18px #020b1d55;
  }
  .ce054-mobile-auth a{
    display:flex;align-items:center;justify-content:center;gap:8px;
    box-sizing:border-box;width:100%;min-width:0;min-height:42px;
    margin:0;padding:8px 12px;
    border:1px solid #31668e;border-radius:11px;
    color:#eaf6ff;background:#142e4d;
    text-decoration:none;text-align:center;font-size:13px;line-height:1.2;
    font-weight:750;white-space:nowrap;
  }
  .ce054-mobile-auth a .ui-icon{width:17px;height:17px;flex:0 0 17px}
  .ce054-mobile-auth a.ce054-register{
    color:#061b33;background:linear-gradient(110deg,#40daf1,#34aceb);
    border-color:#4addf6;box-shadow:0 4px 16px #26c2f530;
  }
  .ce054-mobile-auth a:hover{border-color:#70dff5;background:#1d456d}
  .ce054-mobile-auth a.ce054-register:hover{background:#78e8fc;color:#061b33}
  .ce054-mobile-auth a:focus-visible,.ce054-menu-auth a:focus-visible{
    outline:3px solid #93eaff;outline-offset:2px;
  }
  /* The old navigation rail is fixed at 62px: offset it below the guest row. */
  .ce054-mobile-auth + .site-layout .left-rail{top:120px!important}
  .ce054-menu-auth{display:block;padding-top:4px;border-top:1px solid #294e75}
  .ce054-menu-auth .side-link.ce054-menu-register{background:#163e62;border-left:3px solid #3ed5f3}
}
@media(max-width:360px){
  .ce054-mobile-auth{gap:7px;padding-left:9px;padding-right:9px}
  .ce054-mobile-auth a{font-size:12px;padding:8px 6px;gap:6px}
}
@media(prefers-reduced-motion:reduce){.ce054-mobile-auth a{transition:none}}
