/* Keep the full new-api navigation width when the header collapses into its
   floating pill, so English/Chinese labels are never ellipsized. */
header.fixed.inset-x-0 > div {
  max-width: min(80rem, calc(100vw - 1.5rem)) !important;
}

/* The editorial Home uses a permanently dark hero. Keep a full-width dark
   header there instead of shrinking it into a floating gray pill on scroll. */
body:has(.jiumi-home) header.fixed.inset-x-0 {
  background: rgba(11, 14, 23, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body:has(.jiumi-home) header.fixed.inset-x-0 > div {
  max-width: min(80rem, calc(100vw - 1.5rem)) !important;
  padding-top: 0 !important;
}

body:has(.jiumi-home) header.fixed.inset-x-0 nav {
  height: 64px !important;
  padding: 0 8px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
