.pn-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(43, 39, 33, 0.1);
  background: rgba(255, 250, 240, 0.94);
  color: #314333;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  backdrop-filter: blur(18px);
}

/* Page templates give every direct child a low stacking context. Keep the
   shared header above later hero sections so its Learn menu remains usable. */
.pn-site-header.pn-site-header {
  position: sticky;
  z-index: 100;
  overflow: visible;
}

.pn-site-header *,
.pn-site-header *::before,
.pn-site-header *::after {
  box-sizing: border-box;
}

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

.pn-site-header__inner {
  width: min(100% - 32px, 1140px);
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
}

.pn-site-header__brand {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 40px auto;
  gap: 11px;
  align-items: center;
  color: #314333;
}

.pn-site-header__brand svg {
  width: 40px;
  height: 40px;
}

.pn-site-header__brand strong,
.pn-site-header__brand small {
  display: block;
}

.pn-site-header__brand strong {
  color: #2b2721;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  font-weight: 500;
  line-height: 1;
}

.pn-site-header__brand small {
  margin-top: 5px;
  color: #6e6e73;
  font-size: 0.67rem;
  line-height: 1;
}

.pn-site-header__desktop-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-left: auto;
  font-size: 0.84rem;
  font-weight: 760;
}

.pn-site-header__desktop-nav > a,
.pn-site-header__learn summary {
  padding: 8px 0;
  white-space: nowrap;
}

.pn-site-header__desktop-nav a:hover,
.pn-site-header__desktop-nav a:focus-visible,
.pn-site-header__learn summary:hover,
.pn-site-header__learn summary:focus-visible {
  color: #5d7356;
}

.pn-site-header__desktop-nav [aria-current="page"] {
  color: #5d7356;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.pn-site-header__learn {
  position: relative;
}

.pn-site-header__learn summary {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  list-style: none;
}

.pn-site-header__learn summary::-webkit-details-marker {
  display: none;
}

.pn-site-header__learn summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.pn-site-header__learn-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(43, 39, 33, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  color: #314333;
  box-shadow: 0 18px 42px rgba(29, 29, 31, 0.12);
}

.pn-site-header__learn-menu a {
  padding: 10px 11px;
  border-radius: 6px;
}

.pn-site-header__learn-menu a:hover,
.pn-site-header__learn-menu a:focus-visible {
  background: rgba(232, 239, 228, 0.8);
}

.pn-site-header__cta {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #5d7356;
  border-radius: 7px;
  background: #5d7356;
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(93, 115, 86, 0.16);
}

.pn-site-header__cta-mobile,
.pn-site-header__menu-button,
.pn-site-header__mobile-panel {
  display: none;
}

.pn-site-header__menu-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(49, 67, 51, 0.22);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.86);
  color: #314333;
}

.pn-site-header__menu-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.pn-site-header__mobile-panel {
  border-top: 1px solid rgba(43, 39, 33, 0.1);
  background: #fffaf0;
}

.pn-site-header__mobile-panel[hidden] {
  display: none !important;
}

.pn-site-header__mobile-nav {
  width: min(100% - 32px, 1140px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  margin: 0 auto;
  padding: 14px 0 18px;
  font-size: 0.92rem;
  font-weight: 760;
}

.pn-site-header__mobile-nav a {
  padding: 10px 2px;
  border-bottom: 1px solid rgba(43, 39, 33, 0.09);
}

.pn-site-header__mobile-nav [aria-current="page"] {
  color: #5d7356;
}

.pn-site-header__mobile-label {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: #6e6e73;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

@media (max-width: 1040px) and (min-width: 761px) {
  .pn-site-header__inner {
    gap: 14px;
  }

  .pn-site-header__brand small {
    display: none;
  }

  .pn-site-header__desktop-nav {
    gap: 12px;
    font-size: 0.78rem;
  }

  .pn-site-header__cta {
    padding-inline: 12px;
  }
}

@media (max-width: 760px) {
  .pn-site-header__inner {
    width: min(100% - 24px, 1140px);
    min-height: 68px;
    gap: 8px;
  }

  .pn-site-header__brand {
    min-width: 0;
    grid-template-columns: 32px minmax(0, auto);
    gap: 8px;
  }

  .pn-site-header__brand svg {
    width: 32px;
    height: 32px;
  }

  .pn-site-header__brand strong {
    overflow: hidden;
    max-width: 132px;
    font-size: 1.08rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pn-site-header__brand small,
  .pn-site-header__desktop-nav,
  .pn-site-header__cta-desktop {
    display: none;
  }

  .pn-site-header__cta {
    min-height: 40px;
    margin-left: auto;
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .pn-site-header__cta-mobile,
  .pn-site-header__menu-button {
    display: inline-flex;
  }

  .pn-site-header[data-menu-open="true"] .pn-site-header__mobile-panel {
    display: block;
  }
}

@media (max-width: 390px) {
  .pn-site-header__brand strong {
    max-width: 104px;
    font-size: 1rem;
  }

  .pn-site-header__cta {
    padding-inline: 10px;
  }
}

@media (max-width: 520px) {
  .pn-site-header__cta {
    display: none;
  }

  .pn-site-header__menu-button {
    margin-left: auto;
  }
}
