/* Additive homepage navigation; the approved original stylesheet stays intact. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body > nav[aria-label="Main navigation"] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 28px;
}

body > nav > .section-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-links > li {
  flex: none;
}

body > nav .section-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}

body > nav .section-links a:hover,
body > nav .section-links a:focus-visible {
  color: var(--ivory);
  border-bottom-color: var(--coral);
}

body > nav .section-links a:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: -3px;
  border-radius: 3px;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 124px;
  }

  body > nav[aria-label="Main navigation"] {
    height: 108px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 64px 44px;
    column-gap: 16px;
    padding: 0;
  }

  body > nav > .comora-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-left: 28px;
  }

  body > nav > [data-preview] {
    grid-column: 2;
    grid-row: 1;
    margin-right: 28px;
  }

  body > nav > .section-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 16px;
    align-self: stretch;
    padding: 0 18px;
    border-top: 1px solid rgba(242, 234, 220, .12);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #766475 transparent;
  }

  body > nav .section-links a {
    font-size: 12px;
  }

  .kinetic .stage {
    padding-top: 164px;
  }
}

@media (min-width: 801px) and (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .kinetic .stage {
    padding-top: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body > nav .section-links a {
    transition: none;
  }
}
