/* Official navbar logos (SVG includes cube + IPFSHost + suffix when applicable) */

.home-logo,
.sidebar .brand,
.docs-topbar__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
  cursor: pointer;
}

/* wide + compact: mobile shows compact, desktop shows wide (docs + status) */
.home-logo .brand-logo--wide,
.docs-topbar__logo .brand-logo--wide {
  display: block;
}

.home-logo .brand-logo--compact,
.docs-topbar__logo .brand-logo--compact {
  display: none;
}

@media (max-width: 1099px) {
  .docs-topbar__logo .brand-logo--wide {
    display: none;
  }

  .docs-topbar__logo .brand-logo--compact {
    display: block !important;
    height: clamp(24px, 5.5vw, 28px);
    max-width: min(148px, 48vw);
  }

  .home-logo[data-brand-logo="status"] .brand-logo {
    height: clamp(24px, 5.5vw, 28px);
    max-width: min(200px, 54vw);
  }
}

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 240px;
}

/* Sidebar: fixed lockup — do not inherit home-logo / viewport shrink rules */
.sidebar .brand .brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
  min-height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

.docs-topbar__logo .brand-logo {
  height: 28px;
  max-width: 100%;
}

.docs-topbar__logo .brand-logo--compact {
  display: none;
}

.docs-topbar__logo .brand-logo--wide {
  display: block;
}

@media (max-width: 767px) {
  .brand-logo {
    height: clamp(26px, 6vw, 32px);
  }

  .home-logo .brand-logo,
  .auth-topbar .home-logo .brand-logo {
    max-width: min(132px, 46vw);
  }

  .home-logo[data-brand-logo="status"] .brand-logo {
    max-width: min(200px, 54vw);
    height: clamp(24px, 5.5vw, 28px);
  }

  /* Auth / marketing topbars only — not dashboard sidebar */
  .home-logo[data-brand-logo="dashboard"]:not(.sidebar .brand) .brand-logo {
    max-width: min(200px, 58vw);
    height: clamp(24px, 5.5vw, 28px);
  }

  .docs-topbar__logo {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: min(120px, 40vw);
    max-width: min(148px, 48vw);
    overflow: visible;
  }

  .docs-topbar__logo .brand-logo--wide {
    display: none !important;
  }

  .docs-topbar__logo .brand-logo--compact {
    display: block !important;
    height: clamp(24px, 5.5vw, 28px);
    width: auto;
    max-width: 100%;
  }

}

.sidebar .brand img.brand-logo + img.brand-logo {
  display: none !important;
}

.brand-mark {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-brand .brand-mark {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
}

.error-brand .brand-mark {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
}

/* Inline lockup SVG dots (lib/brand-lockup-html.js) */
html[data-theme="light"] .brand-lockup-dot {
  fill: #0f172a;
}

html:not([data-theme="light"]) .brand-lockup-dot {
  fill: #f8fafc;
}
