/* Xiaoman branding overrides. Keep these outside the minified app bundle. */
div:has(> img[src*="wechat_public.jpg"]),
div:has(> div > img[src*="wechat_public.jpg"]) {
  display: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide the enterprise custom-development promo block on the homepage. */
.wizcontent > .wizblock:first-child {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Remove the empty footer space left after hiding the official QR/contact block. */
div:has(> div > div > img[src*="wechat_public.jpg"]),
div:has(> div > div > div > img[src*="wechat_public.jpg"]),
div:has(> div > div > div > div > img[src*="wechat_public.jpg"]) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Tighten the bottom of the download section. */
.wizcontent {
  margin-bottom: 0 !important;
}
.wizcontent > .wizblock:last-child .wizblock-container {
  margin-bottom: 0 !important;
}

/* Replace the WizNote header logo with the Xiaoman Knowledge Base logo. */
.jss51 img,
.jss51 svg,
a[href="/"] img:first-child {
  content: url("./custom-logo.png?v=202608200032") !important;
  width: 100px !important;
  height: 40px !important;
  object-fit: contain !important;
  opacity: 1 !important;
}

/* Replace top dropdown menus with direct Xiaoman links. */
.xiaoman-direct-nav {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  width: auto !important;
  min-width: 420px !important;
  height: 40px !important;
  white-space: nowrap !important;
}
.xiaoman-direct-nav-link {
  color: #172b4d !important;
  font-size: 14px !important;
  line-height: 40px !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.xiaoman-direct-nav-link:hover {
  color: #448aff !important;
  text-decoration: none !important;
}
