/* MHQ Network footer v4 — denser shared footer for Squad, Arcade and MLBB Lab */
.nh-footer{display:block;box-sizing:border-box;width:100%;margin:0;padding:0;border:0;border-top:1px solid #34383f;background:#101317;color:#f5f2e8;font-family:'DM Sans',Arial,sans-serif;text-align:left}
.nh-footer *, .nh-footer *::before, .nh-footer *::after{box-sizing:border-box}
.nh-footer .nhf-inner{margin-inline:auto;padding-block:30px max(18px,env(safe-area-inset-bottom))}
.nh-footer .nhf-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.3fr) minmax(0,1fr);gap:clamp(30px,4vw,62px);align-items:start}
.nh-footer .nhf-grid-core{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(290px,.95fr)}
.nh-footer .nhf-grid>*{min-width:0}
.nh-footer a{color:#d0d5d8;text-decoration:none}
.nh-footer :is(a,button):focus-visible{outline:2px solid var(--nh-accent,#85e5e3);outline-offset:3px}

/* Brand + network stack */
.nh-footer .nhf-identity-stack{display:grid;align-content:start;gap:32px}
.nh-footer .nhf-identity{display:grid;align-content:start}
.nh-footer .nhf-brand{display:inline-flex;align-items:center;gap:11px;justify-self:start;min-height:46px;color:#f7f4e9}
.nh-footer .nhf-mark{width:48px;height:39px;flex:none;display:block}
.nh-footer .nhf-brand strong{font:800 27px/.95 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.045em;text-transform:uppercase;color:#f7f4e9}
.nh-footer .nhf-identity p{max-width:30ch;margin:8px 0 0;color:#aeb5bc;font:500 13px/1.55 'DM Sans',Arial,sans-serif}

/* Section labels */
.nh-footer h2{display:flex;align-items:center;gap:9px;margin:0 0 11px;color:#d7dbe0;font:800 13px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.14em;text-transform:uppercase}
.nh-footer h2::before{content:"";width:18px;height:2px;flex:none;background:var(--nh-accent,#85e5e3)}

/* Explore + network links */
.nh-footer .nhf-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 26px}
.nh-footer .nhf-sites{display:grid;grid-template-columns:1fr;gap:2px}
.nh-footer :is(.nhf-pages a,.nhf-sites a){display:flex;align-items:center;justify-content:flex-start;gap:7px;min-height:34px;padding:4px 0;color:#c8ced3;font:600 13px/1.25 'DM Sans',Arial,sans-serif;overflow-wrap:anywhere;transition:color .14s,transform .14s}
.nh-footer :is(.nhf-pages a,.nhf-sites a):hover{color:#fff;transform:translateX(2px)}
.nh-footer .nhf-sites a span{color:var(--nh-accent,#85e5e3)}
.nh-footer .nhf-network-links{padding-top:1px}
.nh-footer .nhf-grid-core>.nhf-links{padding-left:22px;border-left:1px solid #30363d}

/* Always-open Minecraft server block */
.nh-footer .nhf-server-block{padding-left:22px;border-left:1px solid #30363d}
.nh-footer .nhf-server-intro{margin:0 0 12px;max-width:30ch;color:#969fa8;font:500 12px/1.5 'DM Sans',Arial,sans-serif}
.nh-footer .nhf-servers{display:grid;gap:8px}
.nh-footer .nhf-server{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #272d33}
.nh-footer .nhf-server:last-of-type{margin-bottom:2px}
.nh-footer .nhf-server span{min-width:0;display:grid;gap:2px}
.nh-footer .nhf-server b{color:#eef0ed;font:800 12px/1.1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.05em;text-transform:uppercase}
.nh-footer .nhf-server code{overflow-wrap:anywhere;color:#b9c2c8;font:500 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}
.nh-footer .nhf-server button{cursor:pointer;min-height:32px;padding:0 10px;border:1px solid #46505a;border-radius:5px;background:#1a2026;color:#eef0ed;font:700 11px/1 'DM Sans',Arial,sans-serif}
.nh-footer .nhf-server button:hover{border-color:var(--nh-accent,#85e5e3);color:var(--nh-accent,#85e5e3)}
.nh-footer .nhf-servers>a{display:inline-flex;align-items:center;gap:6px;min-height:34px;width:max-content;max-width:100%;font:700 12px/1.3 'DM Sans',Arial,sans-serif;color:#d9dde0}
.nh-footer .nhf-servers>a span{color:var(--nh-accent,#85e5e3)}
.nh-footer .nhf-servers>a:hover{color:var(--nh-accent,#85e5e3)}

/* Arcade about block */
.nh-footer .nhf-network{display:grid;gap:18px}
.nh-footer .nhf-about{padding-top:14px;border-top:1px solid #30363d}
.nh-footer .nhf-about p{margin:0;max-width:34ch;color:#969fa8;font:500 12px/1.55 'DM Sans',Arial,sans-serif}

/* Bottom strip */
.nh-footer .nhf-base{display:flex;align-items:center;justify-content:space-between;gap:10px 22px;margin-top:24px;padding-top:13px;border-top:1px solid #30363d;color:#8f98a1;font:500 12px/1.45 'DM Sans',Arial,sans-serif}
.nh-footer .nhf-base span:last-child{text-align:right}

/* Site accents */
.nh-footer[data-site="squad"]{--nh-accent:#85e5e3}
.nh-footer[data-site="arcade"]{--nh-accent:#ff886f}
.nh-footer[data-site="lab"]{--nh-accent:#f0c46b}

@media(max-width:980px){
  .nh-footer .nhf-grid,.nh-footer .nhf-grid-core{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px 36px}
  .nh-footer .nhf-server-block{grid-column:1/-1;padding-left:0;padding-top:20px;border-left:0;border-top:1px solid #30363d}
  .nh-footer .nhf-server-intro{max-width:46ch}
  .nh-footer .nhf-servers{grid-template-columns:1fr 1fr;column-gap:22px}
  .nh-footer .nhf-servers>a{grid-column:1/-1}
  .nh-footer .nhf-network{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:28px}
  .nh-footer .nhf-about{padding-top:0;border-top:0}
}

@media(max-width:720px){
  .nh-footer .nhf-inner{padding-top:24px;padding-bottom:max(72px,calc(env(safe-area-inset-bottom) + 62px))}
  .nh-footer .nhf-grid,.nh-footer .nhf-grid-core{grid-template-columns:1fr;gap:22px}
  .nh-footer .nhf-identity-stack{gap:24px}
  .nh-footer .nhf-grid-core>.nhf-links{padding-left:0;padding-top:18px;border-left:0;border-top:1px solid #30363d}
  .nh-footer .nhf-mark{width:40px;height:33px}
  .nh-footer .nhf-brand strong{font-size:23px}
  .nh-footer .nhf-identity p{max-width:38ch;font-size:12.5px}
  .nh-footer .nhf-pages{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
  .nh-footer .nhf-sites{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
  .nh-footer .nhf-server-block{grid-column:auto;padding-top:18px}
  .nh-footer .nhf-servers{grid-template-columns:1fr}
  .nh-footer .nhf-servers>a{grid-column:auto}
  .nh-footer .nhf-network{grid-column:auto;grid-template-columns:1fr;gap:18px}
  .nh-footer .nhf-about{padding-top:14px;border-top:1px solid #30363d}
  .nh-footer .nhf-base{display:grid;justify-items:start;gap:3px;margin-top:20px;padding-top:12px}
  .nh-footer .nhf-base span:last-child{text-align:left}
}

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

body.page-arcade:has(.nh-footer):not([data-arcade-surface="room"]):not([data-arcade-surface="kmk"]){padding-bottom:0!important}