/* El Atlas: compact, accessible mobile header. Desktop layouts stay untouched. */
.atlas-mobile-menu-toggle{display:none}
@media (max-width:920px){
  .top{position:relative;z-index:35;background:#050d13ef}
  .top .nav{
    box-sizing:border-box;
    width:100%;
    max-width:920px;
    min-height:unset!important;
    margin:0 auto;
    padding:10px 16px 12px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"logo toggle" "actions actions" "links links";
    column-gap:12px;
    row-gap:8px;
    justify-content:stretch;
    align-items:center;
    flex-wrap:unset!important;
  }
  .top .nav .brand{
    grid-area:logo;
    display:inline-flex;
    max-width:min(230px,100%);
    min-width:0;
    justify-self:start;
    align-items:center;
    margin:0!important;
    padding:0!important;
  }
  .top .nav .brand img{
    display:block;
    width: min(205px,50vw);
    height:48px;
    max-width:100%;
    max-height:48px;
    object-fit:contain;
    object-position:left center;
  }
  .top .nav .atlas-mobile-menu-toggle{
    grid-area:toggle;
    display:inline-flex!important;
    justify-content:center;
    align-items:center;
    gap:9px;
    width:auto;
    min-width:100px;
    min-height:44px;
    padding:10px 12px;
    margin:0;
    background:#132833;
    border:1px solid #49636d;
    border-radius:10px;
    box-shadow:none;
    color:#f1e9dd;
    cursor:pointer;
    font:600 13px/1.1 system-ui,-apple-system, sans-serif;
  }
  .top .nav .atlas-mobile-menu-toggle svg{width:20px;height:20px;flex-shrink:0;stroke:currentColor}
  .top .nav .atlas-mobile-menu-toggle[aria-expanded="true"]{border-color:#c7464b;background:#23313a}
  .top .nav .atlas-mobile-menu-toggle .atlas-menu-close{display:none}
  .top .nav .atlas-mobile-menu-toggle[aria-expanded="true"] .atlas-menu-bars{display:none}
  .top .nav .atlas-mobile-menu-toggle[aria-expanded="true"] .atlas-menu-close{display:inline}
  .top .nav .userbar{
    grid-area:actions;
    display:flex!important;
    width:100%;
    min-width:0;
    justify-content:stretch!important;
    align-items:stretch;
    flex-direction:row;
    gap:8px!important;
    margin:0!important;
    padding:0!important;
    flex-wrap:nowrap!important;
    order:unset!important;
  }
  .top .nav .userbar #sessionName{display:none!important}
  .top .nav .userbar button{
    min-width:0;
    flex:1 1 0;
    width:auto;
    min-height:43px;
    margin:0!important;
    padding:10px 8px!important;
    border-radius:10px!important;
    white-space:nowrap;
    font:600 13px/1.2 system-ui,-apple-system,sans-serif!important;
    box-shadow:none;
  }
  .top .nav .userbar button[hidden]{display:none!important}
  .top .nav .userbar #loginOpen{color:#f6eee3;background:#0b1b25;border:1px solid #5c7884}
  .top .nav .userbar button.secondary{background:linear-gradient(180deg,#b92b32,#7d111c);border:1px solid #c64a4f;color:#fff}
  .top .nav .mainNav{
    grid-area:links;
    order:unset!important;
    width:100%!important;
    max-width:none!important;
    min-width:0;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px!important;
    margin:0!important;
    padding:10px!important;
    border:1px solid #35525f;
    border-radius:14px;
    box-sizing:border-box;
    background:linear-gradient(160deg,#132933,#071821);
    box-shadow:0 8px 20px #0008;
  }
  .top.atlas-mobile-ready:not(.atlas-menu-open) .mainNav{display:none!important}
  .top .nav .mainNav a{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    text-align:left;
    gap:10px!important;
    min-height:51px!important;
    padding:10px 12px!important;
    margin:0!important;
    white-space:normal!important;
    line-height:1.2;
    box-sizing:border-box;
    color:#f2e9dd;
    background:#182f3b;
    border:1px solid #37505b!important;
    border-radius:9px;
    text-decoration:none;
    font:600 13px/1.2 system-ui,-apple-system,sans-serif!important;
  }
  .top .nav .mainNav a svg{
    width:20px!important;
    height:20px!important;
    flex:0 0 20px!important;
  }
  .top .nav .mainNav a[aria-current="page"]{
    color:#fff;
    background:#31252c;
    border-color:#d34c52!important;
    box-shadow:inset 3px 0 0 #df313a;
  }
  .top .nav .mainNav a:focus-visible,.top .nav .userbar button:focus-visible,.top .nav .atlas-mobile-menu-toggle:focus-visible{
    outline:3px solid #ebd1a2;
    outline-offset:2px;
  }
}
@media (max-width:370px){
  .top .nav{padding:8px 10px 10px!important;column-gap:5px}
  .top .nav .brand img{width:min(172px,48vw);height:43px}
  .top .nav .atlas-mobile-menu-toggle{min-width:90px;font-size:12px;padding:9px}
  .top .nav .mainNav{gap:6px!important;padding:7px!important}
  .top .nav .mainNav a{padding:10px 8px!important;gap:7px!important;font-size:12px!important}
  .top .nav .userbar button{font-size:12px!important}
}
@media (min-width:921px){
  .top .nav .atlas-mobile-menu-toggle{display:none!important}
}

/* El Atlas legal footer */
footer.atlas-legal-footer{box-sizing:border-box;max-width:1200px;margin:40px auto 0;padding:23px 28px 32px;border-top:1px solid rgba(152,173,185,.34);background:transparent;color:#b8c6cb;text-align:left;font:400 13px/1.75 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:normal}
footer.atlas-legal-footer p{margin:0 0 11px;font:inherit;color:inherit}
footer.atlas-legal-footer .atlas-legal-copyright{color:#f0e5d8;font-weight:650;font-size:13px}
footer.atlas-legal-footer p:last-child{margin-bottom:0}
@media(max-width:640px){footer.atlas-legal-footer{margin-top:26px;padding:20px 18px 26px;font-size:12.5px;line-height:1.65;overflow-wrap:anywhere}footer.atlas-legal-footer p{margin-bottom:12px}}
