.carousel-screen { position: relative; }
.with-page-navigation > header.site-masthead:not(.fs-header) { position: relative; }
.fs-depth-rail, .home-shortcuts[hidden] { display: none; }

/* Match the page chrome of Technologies & Solutions in each colour theme. */
body { --nav-ground: #0a1820; }
[data-theme=light] body { --nav-ground: #eff4f7; }
.home-shortcuts, .fs-depth-rail {
  --nav-line: #1e3b4a;
  --tick-ink: #6e8798;
  --depth-ink: #9db4c0;
  --depth-value: #e3edf2;
  --rail-accent: #41b4e8;
  --link-ink: #79d7ff;
  --link-hover: #c0eeff;
  position: fixed;
  font-family: "Myriad Pro", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
[data-theme=light] :is(.home-shortcuts, .fs-depth-rail) {
  --nav-line: #cfdce4;
  --tick-ink: #7c909d;
  --depth-ink: #4a6070;
  --depth-value: #08161f;
  --rail-accent: #0a72a3;
  --link-ink: #0a72a3;
  --link-hover: #0a72a3;
}
.home-shortcuts {
  z-index: 29;
  display: flex;
  gap: 8px;
}
.home-shortcuts a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--link-ink);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.home-shortcuts a:is(:hover, :focus-visible) {
  color: var(--link-hover);
  border-color: var(--rail-accent);
}
.home-shortcuts a:focus-visible { outline: 1px solid var(--rail-accent); outline-offset: -2px; }

@media (min-width: 1080px) {
  body {
    --rail-width: 66px;
    --home-gutter: var(--rail-width);
  }
  /* Reserve space for controls inside each section so its surface runs to the page edge. */
  body:not(.with-page-navigation) :is(.carousel-screen, #technologies, .ns-foot) { padding-left: var(--home-gutter); }
  body.with-page-navigation { padding-left: var(--home-gutter); }
  .carousel-screen { background: #071721; }
  [data-theme=light] .carousel-screen { background: #153342; }
  .fs-header { left: var(--rail-width); }
  body:not(.with-page-navigation) #well-questions { padding-left: calc(var(--home-gutter) + clamp(28px, 6.2vw, 110px)); }
  body:not(.with-page-navigation) #contact { padding-left: calc(var(--home-gutter) + 24px); }
  [data-theme=light] .fs-depth-rail {
    --rail-ground: #fff;
    --rail-hover: #e4ecf1;
  }
  .fs-depth-rail {
    --rail-ground: #0f2430;
    --rail-hover: #16303e;
    display: block;
    z-index: 40;
    inset: 0 auto 0 0;
    width: var(--rail-width);
    background: var(--rail-ground);
    border-right: 1px solid var(--nav-line);
    transition: background .2s ease, border-color .2s ease;
    font-variant-numeric: tabular-nums;
  }
  .fs-depth-rail:hover { background: var(--rail-hover); border-color: var(--rail-accent); }
  .fs-depth-track { position: absolute; inset: 78px 0 24px; overflow: hidden; cursor: grab; touch-action: none; }
  .fs-depth-track:active { cursor: grabbing; }
  .fs-depth-track:focus-visible { outline: 1px solid var(--rail-accent); outline-offset: -2px; }
  .fs-depth-tick, .fs-depth-cursor { position: absolute; right: 0; }
  .fs-depth-tick { height: 1px; width: 11px; background: var(--nav-line); }
  .fs-depth-tick.is-major { width: 22px; background: var(--tick-ink); }
  .fs-depth-tick span { position: absolute; right: 26px; transform: translateY(-50%); color: var(--tick-ink); font-size: 9.5px; font-style: normal; line-height: 1.65; }
  .fs-depth-cursor { left: 0; height: 2px; background: var(--rail-accent); box-shadow: 0 0 12px var(--rail-accent); pointer-events: none; }
  .fs-depth-cursor::after { content: ""; position: absolute; right: 0; top: -3px; border: 4px solid transparent; border-right-color: var(--rail-accent); }
  .fs-depth-readout { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); text-align: center; color: var(--depth-ink); font-size: 11px; line-height: 1.3; pointer-events: none; }
  .fs-depth-readout strong { display: block; color: var(--depth-value); font-size: 14px; font-weight: 600; }
}
@media (min-width: 1100px) {
  body {
    --shortcuts-width: 39px;
    --home-gutter: calc(var(--rail-width) + var(--shortcuts-width));
  }
  .home-shortcuts::before {
    content: "";
    position: fixed;
    inset: 0 auto 0 var(--rail-width);
    width: var(--shortcuts-width);
    z-index: -1;
    background: rgb(39 69 84 / 54%);
    pointer-events: none;
  }
  [data-theme=light] .home-shortcuts::before { background: rgb(218 232 240 / 76%); }
  .fs-header { padding-left: clamp(54px, 4vw, 70px); }
  [data-theme=light] .home-shortcuts {
    --link-ink: #214d65;
    --link-hover: #12394e;
  }
  .home-shortcuts {
    inset: 14px auto 14px calc(var(--rail-width) + 6px);
    width: 32px;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .home-shortcuts [data-shortcut-home] { flex: 0 0 auto; min-height: 44px; }
  .home-shortcuts a {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    flex: 1 1 0;
    min-height: max-content;
    width: 30px;
    padding: 8px 5px;
    border-radius: 3px;
    font-size: 10px;
    letter-spacing: .08em;
    line-height: 1.2;
  }
}
@media (min-width: 1800px) {
  body:not(.with-page-navigation) #well-questions { padding-left: calc(var(--home-gutter) + 8vw); }
}
@media (max-width: 1099px) {
  body:has(.home-shortcuts:not([hidden])) { --pinned-menu-height: var(--home-shortcuts-height, 0px); }
  .mercury-page .m-product-nav { top: var(--pinned-menu-height, 0px); }
  html { scroll-padding-top: var(--home-shortcuts-height, 120px); }
  .home-shortcuts {
    inset: 0 0 auto var(--rail-width, 0px);
    flex-wrap: wrap;
    padding: 12px 24px;
    background: var(--nav-ground);
    border-bottom: 1px solid var(--nav-line);
  }
  .home-shortcuts a {
    padding: 7px 14px;
    border-color: var(--nav-line);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.65;
    letter-spacing: .14em;
  }
}
/* Long product names wrap within their own link on short laptop displays. */
@media (min-width: 1100px) and (max-height: 760px) {
  .home-shortcuts { gap: 4px; }
  .home-shortcuts a {
    min-height: 86px;
    padding: 2px 0;
    white-space: normal;
    text-align: center;
  }
}
