/* Header branding shared by the local preview and GitLab Pages. */
.site-nav-inner {
  min-height: 84px;
  gap: 24px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 14px;
  text-decoration: none;
}

.site-brand:focus-visible {
  outline: 2px solid #006bd6;
  outline-offset: 4px;
  border-radius: 4px;
}

.site-brand-unnc {
  display: block;
  width: 172px;
  height: auto;
  /* The supplied white artwork needs contrast on the light navigation bar. */
  filter: brightness(0);
}

.site-brand-divider {
  width: 1px;
  height: 36px;
  background: #cbd1d8;
}

.site-brand-academy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-brand-academy img {
  display: block;
  width: 216px;
  height: auto;
}

.site-nav-about {
  text-transform: none;
}

.site-nav-links {
  flex-shrink: 0;
  gap: 20px;
}

main section[id] {
  scroll-margin-top: 100px;
}

/* Keep a useful page heading for assistive technology, without a hero title. */
.site-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-nav-inner {
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 14px;
  }

  .site-nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  main section[id] {
    scroll-margin-top: 132px;
  }
}

@media (max-width: 767px) {
  .site-nav-inner {
    min-height: 92px;
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px 16px 12px;
  }

  .site-brand {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) 1px minmax(0, 1.12fr);
    gap: 10px;
    width: 100%;
    max-width: 416px;
  }

  .site-brand-unnc {
    width: 100%;
    max-width: 148px;
  }

  .site-brand-academy img {
    width: 100%;
    max-width: 200px;
  }

  .site-nav-links {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .site-nav-links a {
    font-size: 10px;
  }

  main section[id] {
    scroll-margin-top: 118px;
  }
}

/* A single centered introduction keeps the lab description and objectives together. */
.site-intro {
  max-width: 960px;
  margin-inline: auto;
  padding: 96px 24px;
  text-align: center;
}

.site-intro-description {
  max-width: 820px;
  margin: 0 auto 32px;
}

.site-intro-objectives li {
  justify-content: center;
}

.site-university-link {
  color: #006bd6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-university-link:hover {
  color: #004c99;
}

.site-university-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 767px) {
  .site-intro {
    padding: 64px 24px;
  }
}
