/* Keep the original desktop footprint: move the item's 20px top/bottom
   padding into its real control (12px + 20px). No extended hit overlays. */
@media (min-width: 1171px) {
  #cb-row--header-main .cb-row--desktop {
    align-self: stretch;
  }
  #cb-row--header-main .cb-row--desktop .col-v2-center {
    align-self: stretch;
  }
  #cb-row--header-main .cb-row--desktop .builder-item--primary-menu {
    align-items: stretch;
  }
  #site-navigation-main-desktop,
  #site-navigation-main-desktop > .row {
    display: flex;
    align-items: stretch;
  }
  #site-navigation-main-desktop > .row > .primary-menu-ul {
    display: flex;
    align-items: stretch;
  }
  #site-navigation-main-desktop > .row > .primary-menu-ul > li {
    display: flex;
    align-items: stretch;
    float: none;
    padding-block: 0;
  }
  #site-navigation-main-desktop > .row > .primary-menu-ul > li > a,
  #site-navigation-main-desktop > .row > .primary-menu-ul > li > .ajt-header-control {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    padding: 32px 13px;
  }
  /* The absolute native select remains bounded by this one menu item. */
  #site-navigation-main-desktop > .row > .primary-menu-ul > li > .ajt-header-control {
    padding-block: 20px;
  }
  /* Owner report 2026-11-16 (header-nav-crowding-fix): top-level labels wrapped onto 2
     lines at ~1366px in several languages ("Herramientas de IA", "Listas
     seleccionadas", "Aprendizaje y noticias"). Keep every top-level item on one line
     (font/colors unchanged) and claw back a little horizontal room per item. */
  #site-navigation-main-desktop > .row > .primary-menu-ul > li > a,
  #site-navigation-main-desktop > .row > .primary-menu-ul > li > .ajt-header-control,
  #site-navigation-main-desktop > .row > .primary-menu-ul > li > a > span {
    white-space: nowrap;
  }
}
@media (min-width: 1171px) and (max-width: 1400px) {
  /* Narrower laptop widths (owner tested ~1366px): a bit tighter still, same items. */
  #site-navigation-main-desktop > .row > .primary-menu-ul > li > a {
    padding-inline: 9px;
  }
  /* Only the opening state is faster. Keep the theme's closed-state
     transition/visibility and hover/focus ownership, including nested travel. */
  #site-navigation-main-desktop :is(.menu-item-25528, .menu-item-25520):is(:hover, :focus, .focus) > .sub-menu,
  #site-navigation-main-desktop :is(.menu-item-25528, .menu-item-25520) .menu-item:is(:hover, :focus, .focus) > .sub-menu {
    transition: opacity 80ms ease-out;
  }
}
/* Owner review icon-v1-review-fixes-20261116: zh header labels rendered very bold/blurry -
   the page's default Latin font stack has no real CJK weight, so the browser substitutes a
   faux-bold system CJK font. A proper CJK stack at normal weight fixes the rendering; same
   font-size/color as every other language (no size/color change). */
html[lang^="zh"] #site-navigation-main-desktop .primary-menu-ul > li > a,
html[lang^="zh"] #site-navigation-main-desktop .primary-menu-ul > li > .ajt-header-control {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
}
