/* Site header: "myGeeks" (home link) and "Contact Us", on every page (#27).
   Its own file so the show-and-tell pages and the raw HTML pages in src/app-pages/ can use it
   without site.css. Colours are set here, not from a page's variables, so it looks the same
   everywhere. */
.site-header {
  background: #0c1015;
  padding: 0.9rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}
.site-header .brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.site-header .nav-link {
  color: #b9c4cf;
  font-size: 1rem;
  text-decoration: none;
}
.site-header .brand:hover,
.site-header .brand:focus-visible,
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Every page except home: the header floats at the top of the window as you scroll. */
.site-header--float {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Raw pages whose body is a narrow column (the app privacy policies: max-width 700px,
   2rem top padding): stretch the header to the window's full width and up to the top. */
html:has(.site-header--narrow-body) {
  overflow-x: clip;
}
.site-header--narrow-body {
  margin: -2rem calc(50% - 50vw) 2rem;
}
