.pb-header {
  --header-ink: #131619;
  --header-paper: #f7f7f7;
  --header-white: #fff;
  --header-accent: #087f78;
  --header-rule: #d6dfdc;
  --header-shadow: rgb(19 22 25 / 12%);
  position: relative;
  z-index: 5;
  color: var(--header-ink);
  background: var(--header-paper);
  font: 400 14px/1.4 Inter, Arial, sans-serif;
}

.pb-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1200px, calc(100% - 64px));
  min-height: 94px;
  margin-inline: auto;
}

.pb-header__brand {
  display: block;
  justify-self: start;
}

.pb-header__brand img {
  display: block;
  width: 148px;
  height: auto;
}

.pb-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
}

.pb-header a {
  color: inherit;
  text-decoration: none;
}

.pb-header__nav a,
.pb-header__mobile nav a,
.pb-header__mobile summary,
.pb-header .pb-header__action {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pb-header__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.pb-header__nav a[aria-current="page"],
.pb-header__mobile a[aria-current="page"] {
  font-weight: 700;
}

.pb-header__nav a:hover,
.pb-header__mobile a:hover {
  color: var(--header-accent);
}

.pb-header .pb-header__action {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 30px;
  min-height: 48px;
  padding: 10px 12px 10px 24px;
  border-radius: 50px;
  background: var(--header-ink);
  color: var(--header-white);
  transition: background-color .2s ease;
}

.pb-header .pb-header__action:hover {
  background: var(--header-accent);
}

.pb-header__action span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--header-white);
  color: var(--header-ink);
  font-size: 19px;
  letter-spacing: normal;
}

.pb-header :is(a, summary):focus-visible {
  outline: 2px solid var(--header-accent);
  outline-offset: 4px;
}

.pb-header__mobile {
  display: none;
}

@media (max-width: 900px) {
  .pb-header__inner {
    grid-template-columns: 1fr auto;
    width: calc(100% - 40px);
    min-height: 78px;
  }

  .pb-header__brand img {
    width: 130px;
  }

  .pb-header__nav,
  .pb-header .pb-header__action {
    display: none;
  }

  .pb-header__mobile {
    display: block;
    position: relative;
  }

  .pb-header__mobile summary {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 16px;
    border: 1px solid var(--header-rule);
    border-radius: 50px;
    list-style: none;
    cursor: pointer;
  }

  .pb-header__mobile summary::-webkit-details-marker {
    display: none;
  }

  .pb-header__mobile nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 208px;
    padding: 8px;
    border: 1px solid var(--header-rule);
    border-radius: 16px;
    background: var(--header-white);
    box-shadow: 0 8px 24px var(--header-shadow);
  }

  .pb-header__mobile nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-header .pb-header__action {
    transition: none;
  }
}

/* Header action arrow: SVG diagonal arrow that slides out top-right and back in from bottom-left on hover.
   Matches the stroke and easing of the quiz buttons (/assets/quiz-cta.css). */
.pb-header__action .pb-header__arrow { font-size: 0; line-height: 0; transition: background-color .2s ease; }
.pb-header__action .pb-header__arrow-track {
  position: relative; display: block; width: 16px; height: 16px; overflow: clip;
  background: none; border-radius: 0; color: inherit;
}
.pb-header__arrow-track svg {
  position: absolute; inset: 0; width: 16px; height: 16px;
  transition: transform 420ms cubic-bezier(.22,1,.36,1);
}
.pb-header__arrow-track svg:last-child { transform: translate(-20px, 20px); }
.pb-header__action:is(:hover, :focus-visible) .pb-header__arrow-track svg:first-child { transform: translate(20px, -20px); }
.pb-header__action:is(:hover, :focus-visible) .pb-header__arrow-track svg:last-child { transform: translate(0, 0); }
@media (prefers-reduced-motion: reduce) {
  .pb-header__arrow-track svg { transition: none; }
  .pb-header__action:is(:hover, :focus-visible) .pb-header__arrow-track svg:first-child { transform: none; }
  .pb-header__action:is(:hover, :focus-visible) .pb-header__arrow-track svg:last-child { transform: translate(-20px, 20px); }
}

/* Hide the badge Netlify injects on deployed pages. */
iframe#nl-badge-frame { display: none !important; }
