/* Shared mobile brand header. The body class also overrides older .lockup.sm sizes. */
.nbk-mobile-only { display:none; }

@media (max-width:768px) {
  /* The shared brand replaces the older decorative stars above page titles. */
  body.nbk-mobile-brand-page .header-star,
  body.nbk-mobile-brand-page header > .star-icon,
  body.nbk-mobile-brand-page .lockup.lg :is(.mark-wrap,.rule) {
    display:none !important;
  }

  body.nbk-mobile-brand-page .nbk-site-topbar {
    position:relative; inset:auto; z-index:100;
    display:flex; flex-direction:row; align-items:center; justify-content:center;
    width:100%; max-width:none; min-height:96px; box-sizing:border-box;
    margin:0; gap:0; padding:22px max(16px,env(safe-area-inset-right)) 22px max(16px,env(safe-area-inset-left));
    padding-top:max(22px,env(safe-area-inset-top));
    background:none; border:0; box-shadow:none; pointer-events:none;
    transform:none; overflow:visible;
  }

  body.nbk-mobile-brand-page .nbk-site-topbar .topbar-nav { display:none; }
  body.nbk-mobile-brand-page .nbk-site-topbar .topbar-brand {
    display:flex; flex-direction:row; align-items:center; justify-content:center;
    gap:0; margin:0; padding:0;
  }

  body.nbk-mobile-brand-page .nbk-site-topbar .lockup {
    display:inline-flex; align-items:center; justify-content:center; flex:0 1 auto;
    min-height:48px; max-width:100%; gap:13px; padding:0; margin:0;
    color:var(--names-gold-light,#f0d9a7); text-decoration:none; white-space:nowrap;
    pointer-events:auto; -webkit-tap-highlight-color:transparent;
  }
  body.nbk-mobile-brand-page .nbk-site-topbar :is(.mark-wrap,.mark,.rule,.word) {
    animation:none; transform:none; opacity:1;
  }
  body.nbk-mobile-brand-page .nbk-site-topbar .mark-wrap { display:block; flex:0 0 auto; }
  body.nbk-mobile-brand-page .nbk-site-topbar .mark {
    display:block; width:40px; height:40px; margin:0; overflow:visible; filter:none;
  }
  body.nbk-mobile-brand-page .nbk-site-topbar .mark :is(.star-outline,.ring-inner,.ring-outer) {
    fill:none; stroke:var(--names-gold,#d7b779); animation:none; transform:none;
  }
  body.nbk-mobile-brand-page .nbk-site-topbar .mark .star-outline { stroke-width:1.6; }
  body.nbk-mobile-brand-page .nbk-site-topbar .mark .ring-inner { stroke-width:.8; opacity:.55; }
  body.nbk-mobile-brand-page .nbk-site-topbar .mark .ring-outer { stroke-width:.5; stroke-dasharray:2 2; opacity:.4; }
  body.nbk-mobile-brand-page .nbk-site-topbar .rule {
    display:block; flex:0 0 1px; width:1px; height:28px; margin:0;
    background:rgba(var(--orn-gold,215,183,121),.4);
  }
  body.nbk-mobile-brand-page .nbk-site-topbar .word {
    display:block; margin:0; color:var(--names-gold-light,#f0d9a7);
    font-family:'Playfair Display',Georgia,serif; font-size:clamp(1rem,4.2vw,1.15rem);
    font-weight:500; line-height:1.4; letter-spacing:.07em;
  }
  body.nbk-mobile-brand-page .nbk-site-topbar .lockup:focus-visible {
    outline:2px solid var(--primary-color,#e5ba73); outline-offset:5px; border-radius:4px;
  }

  /* Keep the AI admin shortcut available without shifting the centered brand. */
  body.nbk-mobile-brand-page .nbk-site-topbar .admin-link:not([hidden]) {
    position:absolute; right:max(8px,env(safe-area-inset-right));
    top:50%; transform:translateY(-50%); width:28px; height:36px; margin:0;
    pointer-events:auto;
  }

  /* Login uses a centered flex body rather than the other pages' block flow. */
  body.nbk-login-page {
    flex-direction:column; justify-content:flex-start; padding:0 16px 24px;
  }
  body.nbk-login-page .nbk-site-topbar { flex:none; align-self:stretch; }
  body.nbk-login-page .login-container { flex:none; margin:24px auto; }
}
