/* MHQ Network footer v6 — unified equal thirds on desktop + aligned mobile rhythm */
@media (min-width:981px){
  .nh-footer .nhf-grid-core{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0!important;
    align-items:stretch!important;
  }
  .nh-footer .nhf-grid-core>.nhf-identity-stack,
  .nh-footer .nhf-grid-core>.nhf-links,
  .nh-footer .nhf-grid-core>.nhf-server-block{
    min-width:0;
    height:100%;
  }
  .nh-footer .nhf-grid-core>.nhf-identity-stack{
    padding-right:clamp(26px,2.6vw,42px);
  }
  .nh-footer .nhf-grid-core>.nhf-links{
    display:grid;
    grid-template-rows:auto 1fr;
    padding:0 clamp(26px,2.6vw,42px)!important;
    border-left:1px solid #30363d!important;
  }
  .nh-footer .nhf-grid-core>.nhf-server-block{
    padding:0 0 0 clamp(26px,2.6vw,42px)!important;
    border-left:1px solid #30363d!important;
  }
  .nh-footer .nhf-grid-core>.nhf-links .nhf-pages{
    height:100%;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:minmax(38px,1fr);
    align-content:stretch;
    column-gap:clamp(24px,2.8vw,44px)!important;
    row-gap:0!important;
  }
  .nh-footer .nhf-grid-core>.nhf-links .nhf-pages a{
    min-height:0!important;
    align-self:stretch;
    display:flex;
    align-items:center;
  }
}

@media (min-width:721px) and (max-width:980px){
  .nh-footer .nhf-grid-core{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:28px 36px!important;
    align-items:start!important;
  }
  .nh-footer .nhf-grid-core>.nhf-identity-stack,
  .nh-footer .nhf-grid-core>.nhf-links{
    min-width:0;
  }
  .nh-footer .nhf-grid-core>.nhf-links{
    padding-left:28px!important;
    border-left:1px solid #30363d!important;
  }
  .nh-footer .nhf-grid-core>.nhf-server-block{
    grid-column:1/-1!important;
    padding:22px 0 0!important;
    border-left:0!important;
    border-top:1px solid #30363d!important;
  }
  .nh-footer .nhf-grid-core>.nhf-links .nhf-pages{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:24px!important;
    row-gap:2px!important;
  }
}

@media (max-width:720px){
  .nh-footer .nhf-grid-core{
    display:block!important;
  }
  .nh-footer .nhf-grid-core>.nhf-identity-stack,
  .nh-footer .nhf-grid-core>.nhf-links,
  .nh-footer .nhf-grid-core>.nhf-server-block{
    width:100%;
    min-width:0;
    margin:0!important;
  }
  .nh-footer .nhf-grid-core>.nhf-identity-stack{
    padding:0 0 22px!important;
  }
  .nh-footer .nhf-grid-core>.nhf-links,
  .nh-footer .nhf-grid-core>.nhf-server-block{
    padding:20px 0!important;
    border-left:0!important;
    border-top:1px solid #30363d!important;
  }
  .nh-footer .nhf-grid-core>.nhf-server-block{
    padding-bottom:4px!important;
  }
  .nh-footer .nhf-identity-stack{
    gap:26px!important;
  }
  .nh-footer .nhf-pages,
  .nh-footer .nhf-sites{
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:clamp(22px,8vw,44px)!important;
    row-gap:2px!important;
  }
  .nh-footer :is(.nhf-pages a,.nhf-sites a){
    min-height:38px!important;
    padding:4px 0!important;
    align-items:center;
  }
  .nh-footer .nhf-server-intro{
    max-width:36ch!important;
  }
  .nh-footer .nhf-servers{
    grid-template-columns:1fr!important;
    gap:6px!important;
  }
  .nh-footer .nhf-server{
    min-height:58px;
    padding:10px 0!important;
  }
  .nh-footer .nhf-base{
    margin-top:18px!important;
  }
}

@media (max-width:390px){
  .nh-footer .nhf-pages,
  .nh-footer .nhf-sites{
    grid-template-columns:1fr!important;
  }
}