/* Desktop navigation only. Every selector is scoped to .desktop-navigation. */
.desktop-navigation {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  white-space: nowrap;
  overscroll-behavior-inline: contain;
}

.desktop-navigation > * { flex: 0 0 auto; }
.desktop-navigation .desktop-navigation__item,
.desktop-navigation .desktop-navigation__parent,
.desktop-navigation .desktop-navigation__child {
  min-height: 36px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6E6E73;
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.desktop-navigation .desktop-navigation__item {
  padding-inline: 15px;
  border-radius: 999px;
}

.desktop-navigation .desktop-navigation__item:hover,
.desktop-navigation .desktop-navigation__item:focus-visible { color: #343537; background: rgba(52, 53, 55, .07); }
.desktop-navigation .desktop-navigation__item.is-active { color: #FFFFFF; background: #292A2E; }

.desktop-navigation .desktop-navigation__group {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.desktop-navigation > * + * { margin-inline-start: 3px; }
.desktop-navigation > .desktop-navigation__group.is-open + * { margin-inline-start: 20px; }
.desktop-navigation .desktop-navigation__group.is-open { gap: 8px; }

.desktop-navigation .desktop-navigation__parent {
  padding-inline: 15px;
  border: 1px solid rgba(52, 53, 55, .13);
  border-radius: 10px;
  background: #FFFFFF;
  color: #343537;
  box-shadow: 0 2px 7px rgba(52, 53, 55, .10);
  cursor: pointer;
}

.desktop-navigation .desktop-navigation__parent:hover,
.desktop-navigation .desktop-navigation__parent:focus-visible { border-color: rgba(52, 53, 55, .22); background: #FAFAFD; }
.desktop-navigation .desktop-navigation__parent:focus-visible,
.desktop-navigation .desktop-navigation__item:focus-visible,
.desktop-navigation .desktop-navigation__child:focus-visible { outline: 3px solid rgba(201, 162, 39, .40); outline-offset: 2px; }

.desktop-navigation .desktop-navigation__children {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 0;
  border-radius: 12px;
  background: rgba(118, 118, 128, .12);
}

.desktop-navigation .desktop-navigation__children[hidden] { display: none; }
.desktop-navigation .desktop-navigation__child { min-height: 36px; padding-inline: 17px; border-radius: 9px; color: #6E6E73; }
.desktop-navigation .desktop-navigation__child:hover,
.desktop-navigation .desktop-navigation__child:focus-visible { color: #343537; background: rgba(255, 255, 255, .58); }
.desktop-navigation .desktop-navigation__child.is-active { color: #343537; background: #FFFFFF; box-shadow: 0 2px 6px rgba(52, 53, 55, .10); }

body:has(.desktop-navigation) .topbar { min-width: 0; }
body:has(.desktop-navigation) .topbar > .desktop-navigation { min-width: 0; }

/* The live module owns its local destination links. Keep them at the same
   segmented geometry as global Level 2 navigation while letting live.css
   continue to own the module content below. */
body:has(.desktop-navigation) .lv-root .desktop-module-tabs {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  overflow-x: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(118, 118, 128, .12);
  white-space: nowrap;
}

body:has(.desktop-navigation) .lv-root .desktop-module-tabs .tab {
  min-height: 36px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding-inline: 17px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6E6E73;
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
}

body:has(.desktop-navigation) .lv-root .desktop-module-tabs .tab:hover,
body:has(.desktop-navigation) .lv-root .desktop-module-tabs .tab:focus-visible {
  color: #343537;
  background: rgba(255, 255, 255, .58);
}

body:has(.desktop-navigation) .lv-root .desktop-module-tabs .tab.on,
body:has(.desktop-navigation) .lv-root .desktop-module-tabs .tab[aria-current="page"] {
  color: #343537;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(52, 53, 55, .10);
}

@media (max-width: 760px) {
  .desktop-navigation { max-width: 100%; }
  body:has(.desktop-navigation) .topbar { min-width: 0; }
}

/* Match both host shells without inheriting their older nav padding or active fill. */
.topbar nav.desktop-navigation { gap: 0; padding-block: 4px; }
.topbar nav.desktop-navigation a.desktop-navigation__item { min-height: 36px; padding: 0 15px; border-radius: 999px; }
.topbar nav.desktop-navigation a.desktop-navigation__item.is-active { color: #fff; background: #292A2E; }
.topbar nav.desktop-navigation a.desktop-navigation__child { min-height: 36px; height: 36px; padding: 0 17px; border-radius: 9px; background: transparent; color: #6E6E73; }
.topbar nav.desktop-navigation a.desktop-navigation__child.is-active { color: #343537; background: #fff; box-shadow: 0 2px 6px rgba(52, 53, 55, .10); }
.topbar nav.desktop-navigation a::after { display: none; }
body:has(.desktop-navigation) .lv-root .desktop-module-tabs .tab { padding-block: 0; height: 36px; }
#desktopDescription { margin: 10px 0 0; }
@media (max-width: 760px) {
  body:has(.desktop-navigation) .lv-root .lv-toolbar { flex-wrap: wrap; }
  body:has(.desktop-navigation) .lv-root .lv-toolbar select { min-width: 0; max-width: 100%; flex: 1 1 160px; }
}
