:root {
  --global-header-forest: #074f36;
  --global-header-lime: #b8f06a;
  --global-header-white: #ffffff;
  --global-header-gutter: max(clamp(22px, 5vw, 76px), calc((100vw - 1440px) / 2 + 76px));
}

.global-header {
  align-items: center;
  background: var(--global-header-forest);
  color: var(--global-header-white);
  display: grid;
  gap: clamp(12px, 2vw, 30px);
  grid-template-columns: auto auto 1fr;
  padding: 22px var(--global-header-gutter);
}

.global-brand {
  align-items: center;
  color: var(--global-header-white);
  display: inline-flex;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 800;
  gap: 10px;
  justify-self: start;
  letter-spacing: -0.02em;
  min-height: 44px;
  text-decoration: none;
}

.global-brand img {
  background: var(--global-header-white);
  border-radius: 12px;
  display: block;
  height: 42px;
  width: 42px;
}

.global-links {
  align-items: center;
  display: flex;
  gap: 2px;
  justify-self: start;
}

.global-links a {
  align-items: center;
  color: #dcebe3;
  display: inline-flex;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  min-height: 44px;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.global-links a {
  padding: 0 12px;
}

.global-links a:hover,
.global-links a[aria-current="page"] {
  color: var(--global-header-lime);
}

.global-links a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--global-header-lime);
}

.global-header a:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 6px var(--global-header-lime);
  outline: 3px solid #102019;
  outline-offset: 2px;
}

.global-brand:focus-visible {
  border-radius: 12px;
}

@media (max-width: 680px) {
  .global-header {
    gap: 6px;
    grid-template-columns: 1fr;
    padding-bottom: 4px;
    padding-top: 12px;
  }

  .global-brand {
    font-size: 20px;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .global-brand img {
    height: 38px;
    width: 38px;
  }

  .global-links {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    padding-top: 6px;
  }

  .global-links a {
    flex: 1;
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-links a {
    transition: none;
  }
}
