/* RC40: one Products & Software disclosure and a visible Careers shortcut. */
html[data-theme] body .header .products-software-nav-v40 {
  position: relative !important;
  z-index: 3 !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #e8e9e6 !important;
  font: inherit !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
html[data-theme] body .header .products-software-nav-v40 .ft-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
}
html[data-theme] body .header .products-software-nav-v40 .ft-nav-icon {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: #858a84;
}
html[data-theme] body .header .products-software-nav-v40 .ft-nav-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-theme] body .header .products-software-nav-v40.active,
html[data-theme] body .header .products-software-nav-v40:hover,
html[data-theme] body .header .products-software-nav-v40[aria-expanded="true"] {
  color: #ffd463 !important;
}
html[data-theme] body .header .products-software-nav-v40.active .ft-nav-icon { opacity: 0; }
html[data-theme] body .header .products-software-nav-v40:focus-visible,
html[data-theme] body .header .careers-nav-v40:focus-visible,
html[data-theme] body .header .products-software-panel-v40 a:focus-visible {
  outline: 2px solid #ffd56b !important;
  outline-offset: 3px !important;
}
.products-software-caret-v40 {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
[aria-expanded="true"] .products-software-caret-v40 { transform: translateY(1px) rotate(225deg); }
html[data-theme] body .header .products-software-panel-v40 {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 12px;
  z-index: 30 !important;
  box-sizing: border-box !important;
  display: grid !important;
  gap: 6px;
  width: 310px;
  max-width: calc(100vw - 32px);
  max-height: 65vh;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(243,179,36,.55);
  border-radius: 14px;
  background: #0d100d;
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
}
html[data-theme] body .header .products-software-panel-v40[hidden] { display: none !important; }
html[data-theme] body .header .products-software-panel-v40 a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 17px 36px 17px 16px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #f5f6f1;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}
html[data-theme] body .header .products-software-panel-v40 a strong { font-size: 15px; }
html[data-theme] body .header .products-software-panel-v40 a span { color: #b5bbae; font-size: 12px; }
html[data-theme] body .header .products-software-panel-v40 a::after {
  content: "\2192";
  position: absolute;
  right: 16px;
  top: 21px;
  color: #f7c44b;
}
html[data-theme] body .header .products-software-panel-v40 a:hover,
html[data-theme] body .header .products-software-panel-v40 a:focus-visible {
  background: #232415;
  border-color: rgba(243,179,36,.35);
}
html[data-theme] body .header .careers-nav-v40 {
  order: 2 !important;
  box-sizing: border-box !important;
  flex: 0 0 82px !important;
  width: 82px !important;
  min-width: 82px !important;
  height: 46px !important;
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 8px !important;
  border: 1px solid rgba(243,179,36,.7) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg,#171a15,#090b09) !important;
  color: #f7c44b !important;
  font: 900 10px/1 Inter,Arial,sans-serif !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background .2s ease, color .2s ease !important;
}
html[data-theme] body .header .careers-nav-v40:hover,
html[data-theme] body .header .careers-nav-v40[aria-current="page"] {
  background: #292411 !important;
  border-color: #f3b324 !important;
  color: #fff !important;
}
html[data-theme] body .header .fmo-login-v56 { order: 1 !important; }
html[data-theme] body .header .brochure-nav-v1 { order: 3 !important; }
html[data-theme] body .header .social-link-v75 { order: 4 !important; }
html[data-theme] body .header .a11y-menu-v163 { order: 5 !important; }
html[data-theme] body .header .pages-menu-btn-v56 { order: 6 !important; }
html[data-theme] body .header .sky-theme-switch[data-theme-toggle] { order: 7 !important; }

/* Keep the existing single desktop row with room for the new shortcut. */
@media (width > 1360px) {
  html[data-theme] body .header {
    grid-template-columns: clamp(154px,calc(21vw - 133px),270px) minmax(0,1fr) auto !important;
    column-gap: clamp(5px,calc(.8vw - 5.9px),8px) !important;
    padding-inline: clamp(8px,calc(1.4vw - 11px),16px) !important;
  }
  html[data-theme] body .header .header-actions-v56 {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: clamp(4px,calc(.4vw - 1.5px),6px) !important;
    padding-inline: 3px !important;
  }
  html[data-theme] body .header .fmo-login-v56 {
    flex: 0 0 clamp(104px,calc(8.2vw - 8px),150px) !important;
    width: clamp(104px,calc(8.2vw - 8px),150px) !important;
    min-width: 104px !important;
    padding-inline: 8px !important;
  }
  html[data-theme] body .header .careers-nav-v40 {
    --shortcut-width: clamp(64px,calc(3.6vw + 15px),82px);
  }
  html[data-theme] body .header .brochure-nav-v1 {
    --shortcut-width: clamp(74px,calc(2vw + 47px),84px);
  }
  html[data-theme] body .header :is(.careers-nav-v40,.brochure-nav-v1) {
    flex: 0 0 var(--shortcut-width) !important;
    min-width: var(--shortcut-width) !important;
    width: var(--shortcut-width) !important;
    padding-inline: 4px !important;
  }
  html[data-theme] body .header .nav-shell {
    min-width: 0 !important;
    padding-inline: clamp(2px,calc(.8vw - 9px),6px) !important;
    overflow: visible !important;
  }
  /* The intrinsic label (including its caret) sets each item's base width.
     Grow every hit area by the same amount, so neighbouring label edges have
     the same gap. Fixed/equal-width cells give short labels too much space. */
  html[data-theme] body .header .jump-nav {
    --section-type-size: clamp(11px, calc(.5vw + 4.2px), 13px);
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    column-gap: 0 !important;
  }
  html[data-theme] body .header .jump-nav > :is(a, button.products-software-nav-v40) {
    box-sizing: border-box !important;
    flex: 1 0 auto !important;
    width: max-content !important;
    min-width: 44px !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 4px !important;
    font-size: var(--section-type-size) !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;
  }
}
/* Switch to the existing drawer before labels and click areas become cramped. */
@media (max-width:1360px) {
  html[data-theme] body .header .nav-shell,
  html[data-theme] body .header .jump-nav { display: none !important; }
  .pages-drawer-mainnav-v310 { display: block !important; }
}
@media (min-width:561px) and (max-width:1360px) {
  html[data-theme] body .header {
    grid-template-columns: clamp(120px,22vw,220px) minmax(0,1fr) !important;
  }
  html[data-theme] body .header .header-actions-v56 {
    grid-column: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 4px !important;
    padding-inline: 2px !important;
  }
  html[data-theme] body .header .fmo-login-v56 {
    flex: 0 0 102px !important;
    width: 102px !important;
    min-width: 102px !important;
    padding-inline: 5px !important;
  }
  html[data-theme] body .header .careers-nav-v40 {
    flex-basis: 76px !important;
    width: 76px !important;
    min-width: 76px !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 9px !important;
  }
}
@media (min-width:561px) and (max-width:880px) {
  html[data-theme] body .header .social-link-v75 { display: none !important; }
}
@media (min-width:561px) and (max-width:680px) {
  html[data-theme] body .header .brochure-nav-v1 { display: none !important; }
}
/* Phones retain two rows and keep Careers beside FMO Login. */
@media (max-width:560px) {
  html[data-theme] body .header .header-actions-v56 { gap: 3px !important; }
  html[data-theme] body .header .careers-nav-v40 {
    flex: 0 0 72px !important;
    width: 72px !important;
    min-width: 72px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding-inline: 4px !important;
    font-size: 9px !important;
  }
  html[data-theme] body .header .brochure-nav-v1 {
    flex-basis: 68px !important;
    width: 68px !important;
    min-width: 68px !important;
  }
  html[data-theme] body .header .a11y-menu-v163,
  html[data-theme] body .header .a11y-trigger-v163,
  html[data-theme] body .header .pages-menu-btn-v56 {
    flex-basis: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
  }
}
@media (max-width:359px) {
  html[data-theme] body .header .brochure-nav-v1 { display: none !important; }
}
@media (prefers-reduced-motion:reduce) {
  .products-software-caret-v40 { transition: none; }
}
