/* One site header, independent of each page's content styles. Load last. */
body > header.site-header {
  box-sizing: border-box;
  position: relative;
  top: auto;
  z-index: 2;
  width: min(1440px, 100% - 112px);
  height: 118px;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font: 400 13px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: none;
}

body > header.site-header > .brand {
  display: inline-flex;
  flex: 0 0 auto;
  order: 0;
  margin: 0;
}

body > header.site-header .brand img {
  display: block;
  width: 152px;
  height: 38px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

html[data-theme="dark"] body > header.site-header .brand img {
  mix-blend-mode: normal;
}

body > header.site-header nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  order: 0;
  width: auto;
  gap: 28px;
  margin: 0 0 0 auto;
  font: inherit;
}

body > header.site-header a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body > header.site-header nav a {
  display: block;
  margin: 0;
  padding: 12px 0;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  transition: none;
}

body > header.site-header nav a:is(:hover, [aria-current="page"]) {
  color: var(--coral);
}

body > header.site-header a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 6px;
}

body > header.site-header > .theme-toggle { order: 0; }

@media (max-width: 1100px) {
  body > header.site-header { width: calc(100% - 64px); height: 94px; gap: 22px; }
  body > header.site-header nav { gap: 24px; }
}

@media (max-width: 760px) {
  body > header.site-header,
  body > header.site-header.has-theme-toggle {
    width: calc(100% - 40px);
    height: auto;
    min-height: 96px;
    padding: 16px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 20px;
  }
  body > header.site-header > .brand { grid-column: 1; grid-row: 1; }
  body > header.site-header .brand img { width: 132px; height: 33px; }
  body > header.site-header > .theme-toggle { grid-column: 2; grid-row: 1; }
  body > header.site-header nav,
  body > header.site-header.has-theme-toggle nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    gap: 4px 16px;
    margin: 0;
  }
  body > header.site-header nav a { padding: 8px 0; font-size: 12px; }
}

@media print {
  body > header.site-header { height: auto; padding-block: 16px; }
  body > header.site-header nav,
  body > header.site-header > .theme-toggle { display: none; }
}
