/* QRAI.biz Navy & Gold wordmark in page headers.
   Use with /assets/qrai-logo.png and /assets/qrai-header.css.
   Load this after page CSS so the wordmark is not squashed or stacked.
   Phone (max-width 480px): use the square app icon (/assets/home-qrai/favicon.png)
   so the header stays on one row; hide compact subtitles; keep toolbar targets ≥40px. */
.brand.brand-logo,
a.brand.brand-logo{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  min-width:0;
  text-decoration:none;
  color:inherit;
}
.brand.brand-logo .brand-txt{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width:0;
}
.brand.brand-logo .brand-txt strong{
  font-size:15px;
  font-weight:800;
  letter-spacing:.02em;
}
.brand.brand-logo .brand-txt small{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted, rgba(255,255,255,.62));
  font-weight:700;
}
.brand.brand-logo img.qrai-logo{
  flex:0 0 auto;
  max-width:min(200px, 52vw);
}
.brand.brand-logo img.qrai-logo-sq{
  display:none;
}
/* Compact game toolbars (desktop / large phone landscape) */
.brand.brand-logo.brand-game img.qrai-logo{
  height:32px;
}
.brand.brand-logo.brand-game h1{
  margin:0;
}

@media (max-width:767px){
  .brand.brand-logo img.qrai-logo{
    height:28px;
    max-width:min(148px, 46vw);
  }
  .brand.brand-logo .brand-txt strong{font-size:13px}
  .brand.brand-logo .brand-txt small{font-size:10px;letter-spacing:.06em}
}

/* Phone-first: one-row header. Square mark + no subtitles + tight gaps. */
@media (max-width:480px){
  header.top, header.site-header, header{
    flex-wrap:nowrap;
    align-items:center;
    gap:6px;
    height:auto;
    overflow:visible;
  }
  .brand.brand-logo{
    gap:6px;
    flex:0 1 auto;
    min-width:0;
  }
  .brand.brand-logo img.qrai-logo{
    display:none;
  }
  .brand.brand-logo img.qrai-logo-sq{
    display:block;
    width:28px;
    height:28px;
    border-radius:7px;
    flex:0 0 28px;
    box-shadow:none;
    background:transparent;
    object-fit:contain;
  }
  /* Hide compact subtitles (ADMAKER, Studio, Meet our agents, etc.) */
  .brand.brand-logo .brand-txt{
    display:none;
  }
  .brand.brand-logo.brand-game h1 span{
    display:none;
  }
  .brand.brand-logo.brand-game{
    gap:8px;
  }
  /* Floor only for controls that some page CSS shrinks below 40px (lang, Log in).
     Do not lower Games iconbtn / qrbtn (already 48px) or AdBuilder .hbtn (already 44px). */
  header .lang select,
  header .top-login{
    min-height:40px;
    min-width:40px;
  }
}
