/* The same frosted rail as the homepage machine selector. The original
   guides retain control of positioning, visible sections and anchor offsets. */
:is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
    html body.airjet-refresh nav.product-page-nav) {
  box-sizing:border-box;
  width:min(77.5rem,calc(100% - 5.5rem)); max-width:100%;
  gap:4px; padding:2px 3px;
  border:0; border-block:1px solid rgb(192 209 227 / .65); border-radius:5px;
  background:rgb(222 234 246 / .46);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  box-shadow:0 2px 8px rgb(41 65 91 / .09);
}
:is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
    html body.airjet-refresh nav.product-page-nav) > a {
  box-sizing:border-box; min-width:0; min-height:34px; padding:.23rem .45rem;
  border:1px solid rgb(177 196 215 / .55); border-radius:4px;
  background:rgb(247 250 254 / .72); color:#253e60;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .8),0 1px 3px rgb(54 84 119 / .12);
  font-size:.9rem; font-weight:650; line-height:1.17;
  text-shadow:none; letter-spacing:normal; white-space:normal;
  transition:color .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease;
}
@media (hover:hover) {
  :is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
      html body.airjet-refresh nav.product-page-nav) > a:hover {
    color:#253e60; background:#e5f0fb; border-color:#a8bfd6; transform:none;
  }
}
:is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
    html body.airjet-refresh nav.product-page-nav) > a:is([aria-current="location"],.is-active) {
  background:rgb(208 227 246 / .91); color:#173a60; border-color:#93b2d0;
  box-shadow:inset 0 -2px 0 #4b719e,inset 0 1px 0 #ffffffba;
  font-weight:700; transform:none;
}
:is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
    html body.airjet-refresh nav.product-page-nav) > a:is([aria-current="location"],.is-active)::after {content:none}
:is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
    html body.airjet-refresh nav.product-page-nav) > a:focus-visible {outline:2px solid #24558d; outline-offset:-2px}
@media (max-width:900px) {
  :is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
      html body.airjet-refresh nav.product-page-nav) {
    width:calc(100% - 2 * max(6px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px)));
    gap:3px; padding:2px;
  }
  :is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
      html body.airjet-refresh nav.product-page-nav) > a {
    min-height:28px; padding:1px clamp(1px,.5vw,4px); font-size:.85rem;
    overflow-wrap:anywhere;
  }
}
@media (max-width:480px) {
  :is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
      html body.airjet-refresh nav.product-page-nav) {gap:2px}
  :is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
      html body.airjet-refresh nav.product-page-nav) > a {font-size:clamp(.72rem,3.25vw,.82rem)}
}
/* Allow longer translated words to borrow space from short neighbouring tabs. */
@media (max-width:760px) {
  :is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
      html body.airjet-refresh nav.product-page-nav) {display:flex}
  :is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
      html body.airjet-refresh nav.product-page-nav) > a {
    flex:1 1 auto; width:auto; hyphens:auto; text-wrap:balance;
  }
}
@media (max-width:359px) {
  :is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
      html body.airjet-refresh nav.product-page-nav) > a {
    min-inline-size:min-content; overflow-wrap:normal; word-break:normal; hyphens:none;
  }
}
@media (prefers-reduced-motion:reduce) {
  :is(html body .wm-section-nav[data-section-nav] > .wm-section-tabs,
      html body.airjet-refresh nav.product-page-nav) > a {transition:none}
}

/* Overlay only: no guide or empty placeholder travels up with the content.
   Initial inert/aria-hidden markup also prevents a flash before first layout. */
.wm-section-nav[data-section-nav] {
  position:fixed; inset:0 0 auto;
}
html:has(.product-page-nav):has(.airjet-product-body > [id]:target) {scroll-padding-block-start:0}
body.airjet-refresh .airjet-product-body > :is(#airjet-technology,#airjet-overview,#airjet-systems,#airjet-specifications,#airjet-support) {
  scroll-margin-block-start:var(--af-guide-landing,48px);
}
:is(html body .wm-section-nav[data-section-nav], html body.airjet-refresh nav.product-page-nav) {
  opacity:1; visibility:visible; transform:none;
  transition:opacity 260ms ease-out,visibility 0s;
}
:is(html body .wm-section-nav[data-section-nav], html body.airjet-refresh nav.product-page-nav)[aria-hidden="true"] {
  opacity:0; visibility:hidden; pointer-events:none; transform:none;
  transition:opacity 200ms ease-in,visibility 0s linear 200ms;
}
@media (prefers-reduced-motion:reduce) {
  :is(html body .wm-section-nav[data-section-nav], html body.airjet-refresh nav.product-page-nav)[aria-hidden] {transition:none}
}
