html { scroll-padding-top: 86px; }

body .shell > header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 8px;
  border-radius: 16px;
  background: #102e39;
}

@media (max-width: 760px) {
  html { scroll-padding-top: 165px; }
}

@media (max-width: 360px) {
  html { scroll-padding-top: 190px; }
}

@supports (animation-timeline: scroll(root block)) {
  body .shell > header {
    background-color: transparent;
    animation: sticky-nav-background 1s linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 24px;
  }

  body .shell > header nav { background-color: transparent; }

  @keyframes sticky-nav-background {
    from { background-color: transparent; }
    to { background-color: #102e39; }
  }

  @media (prefers-reduced-motion: reduce) {
    body .shell > header { animation-timing-function: steps(1, jump-end); }
  }
}

/* Blog and news are temporarily paused. */
nav a[href="/blog/"],
nav a[href="/news/"] { display: none !important; }
