/*
 * Shared public navigation.
 * This file loads after each page's theme stylesheet so Home, Jobs and the
 * supporting public pages use one consistent header and menu.
 */
html body .site-header.zgtn-public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  width: 100%;
  min-height: 94px !important;
  height: auto !important;
  padding: 12px clamp(22px, 3.2vw, 48px) !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center;
  gap: 14px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(20, 91, 55, 0.14) !important;
  background:
    linear-gradient(116deg, rgba(20, 91, 55, 0.045) 0 21%, transparent 21% 70%, rgba(196, 154, 26, 0.07) 70% 82%, rgba(20, 91, 55, 0.04) 82% 100%),
    rgba(252, 251, 247, 0.98) !important;
  box-shadow: 0 8px 24px rgba(16, 33, 22, 0.05) !important;
  backdrop-filter: blur(16px);
}

html body .site-header.zgtn-public-header::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #176238 0 29%,
    #c99b20 29% 46%,
    #a23432 46% 55%,
    #1b211d 55% 64%,
    #a23432 64% 73%,
    #c99b20 73% 87%,
    #176238 87% 100%
  );
  content: "";
}

html body .site-header.zgtn-public-header::after {
  position: absolute;
  z-index: -1;
  right: clamp(300px, 22vw, 430px);
  bottom: 0;
  width: clamp(180px, 20vw, 360px);
  height: 100%;
  background:
    linear-gradient(132deg, transparent 0 38%, rgba(196, 154, 26, 0.09) 38% 43%, transparent 43% 58%, rgba(20, 91, 55, 0.075) 58% 63%, transparent 63%);
  content: "";
  pointer-events: none;
}

html body .zgtn-public-header .brand {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

html body .zgtn-public-header .brand-logo {
  width: 70px !important;
  height: 70px !important;
  padding: 1px;
  display: block;
  border: 1px solid rgba(20, 91, 55, 0.22);
  border-radius: 50% !important;
  background: #fff;
  filter: saturate(1.06) contrast(1.06);
  box-shadow: 0 4px 14px rgba(16, 70, 43, 0.09);
  object-fit: contain;
}

html body .zgtn-public-header .brand strong {
  display: block;
  color: #145b37 !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: 0.035em !important;
  text-transform: none !important;
}

html body .zgtn-public-header .brand small {
  margin-top: 3px !important;
  display: block;
  color: #667066 !important;
  font-size: 0.74rem !important;
  font-weight: 550 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
}

html body .zgtn-public-header .primary-nav {
  display: none !important;
}

html body .zgtn-public-header .vision-2030-mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  min-width: 214px;
  min-height: 56px;
  padding: 7px 16px 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(20, 91, 55, 0.17);
  border-radius: 999px;
  color: #17261e;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 7px 22px rgba(16, 70, 43, 0.07);
  transform: translate(-50%, -50%);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  backdrop-filter: blur(10px);
}

html body .zgtn-public-header .vision-2030-mark:hover,
html body .zgtn-public-header .vision-2030-mark:focus-visible {
  border-color: rgba(20, 91, 55, 0.34);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 9px 26px rgba(16, 70, 43, 0.11);
  transform: translate(-50%, calc(-50% - 1px));
}

html body .zgtn-public-header.mobile-menu-open .vision-2030-mark {
  display: none;
}

html body .zgtn-public-header .vision-2030-emblem {
  position: relative;
  width: 38px;
  height: 32px;
  flex: 0 0 38px;
  overflow: hidden;
  border: 1px solid rgba(16, 33, 22, 0.16);
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    #176238 0 20%,
    #c99b20 20% 36%,
    #a23432 36% 52%,
    #1b211d 52% 68%,
    #c99b20 68% 84%,
    #176238 84% 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

html body .zgtn-public-header .vision-2030-emblem::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 19px;
  background: #fbfaf6;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}

html body .zgtn-public-header .vision-2030-emblem::after {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c99b20;
  box-shadow: 0 0 0 2px rgba(162, 52, 50, 0.88);
  content: "";
  transform: translateY(-50%);
}

html body .zgtn-public-header .vision-2030-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

html body .zgtn-public-header .vision-2030-copy small {
  color: #667066;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  white-space: nowrap;
}

html body .zgtn-public-header .vision-2030-copy strong {
  color: #145b37;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

html body .zgtn-public-header .vision-2030-copy b {
  color: #ad7e08;
  font-weight: 700;
}

html body .zgtn-public-header .nav-actions {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px !important;
}

html body .zgtn-public-header .nav-notifications {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #33443c;
  background: transparent;
  transition: background 160ms ease, color 160ms ease;
}

html body .zgtn-public-header .nav-notifications:hover,
html body .zgtn-public-header .nav-notifications:focus-visible {
  color: #145b37;
  background: #f0eee7;
}

html body .zgtn-public-header .nav-notifications svg {
  width: 23px;
  height: 23px;
}

html body .zgtn-public-header .notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c99b20;
  box-sizing: content-box;
}

html body .zgtn-public-header .nav-login,
html body .zgtn-public-header .nav-cta {
  min-height: 42px !important;
  padding: 0 17px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap;
  box-shadow: none !important;
}

html body .zgtn-public-header .nav-login {
  border: 1px solid rgba(20, 91, 55, 0.16) !important;
  color: #17261e !important;
  background: #fff !important;
}

html body .zgtn-public-header .nav-login:hover,
html body .zgtn-public-header .nav-login:focus-visible {
  border-color: rgba(20, 91, 55, 0.36) !important;
  color: #145b37 !important;
  background: #f8faf8 !important;
}

html body .zgtn-public-header .nav-cta {
  border: 1px solid #176238 !important;
  color: #fff !important;
  background: #176238 !important;
}

html body .zgtn-public-header .nav-cta:hover,
html body .zgtn-public-header .nav-cta:focus-visible {
  border-color: #0e4529 !important;
  background: #0e4529 !important;
}

html body .zgtn-public-header .mobile-menu-toggle {
  position: relative;
  z-index: 1;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  display: grid !important;
  place-content: center;
  gap: 5px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #1d3026 !important;
  background: transparent !important;
  cursor: pointer;
}

html body .zgtn-public-header .mobile-menu-toggle:hover,
html body .zgtn-public-header .mobile-menu-toggle:focus-visible {
  color: #145b37 !important;
  background: #f0eee7 !important;
}

html body .zgtn-public-header .mobile-menu-toggle span[aria-hidden="true"] {
  width: 21px !important;
  height: 2px !important;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 140ms ease;
}

html body .zgtn-public-header.mobile-menu-open .mobile-menu-toggle span[aria-hidden="true"]:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

html body .zgtn-public-header.mobile-menu-open .mobile-menu-toggle span[aria-hidden="true"]:nth-child(3) {
  opacity: 0;
}

html body .zgtn-public-header.mobile-menu-open .mobile-menu-toggle span[aria-hidden="true"]:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

html body .zgtn-public-header .mobile-menu-panel {
  grid-column: 1 / -1 !important;
  width: 100%;
  max-height: calc(100vh - 110px);
  margin: 0 !important;
  padding: 10px 0 3px !important;
  overflow-y: auto;
  border: 0 !important;
  border-top: 1px solid rgba(20, 91, 55, 0.12) !important;
  border-radius: 0 !important;
  color: #17261e;
  background: #fff !important;
  box-shadow: none !important;
}

html body .zgtn-public-header .mobile-menu-panel:not([hidden]) {
  display: block !important;
}

html body .zgtn-public-header .public-menu-links {
  display: grid;
  gap: 2px;
}

html body .zgtn-public-header .public-menu-link {
  min-height: 51px !important;
  padding: 0 20px !important;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px !important;
  color: #1c2a22 !important;
  background: transparent !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.2;
  transition: color 150ms ease, background 150ms ease;
}

html body .zgtn-public-header .public-menu-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

html body .zgtn-public-header .public-menu-link:hover,
html body .zgtn-public-header .public-menu-link:focus-visible {
  color: #145b37 !important;
  background: #f0eee7 !important;
}

html body .zgtn-public-header .public-menu-link[aria-current="page"] {
  color: #fff !important;
  background: #176238 !important;
}

html body .zgtn-public-header .public-menu-link[aria-current="page"]:hover,
html body .zgtn-public-header .public-menu-link[aria-current="page"]:focus-visible {
  color: #fff !important;
  background: #0e4529 !important;
}

html body .zgtn-public-header .public-menu-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html body .zgtn-public-header .public-menu-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 91, 55, 0.16);
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
}

html body .zgtn-public-header .public-menu-actions .menu-login {
  color: #17261e;
  background: #fff;
}

html body .zgtn-public-header .public-menu-actions .menu-signup {
  border-color: #176238;
  color: #fff;
  background: #176238;
}

html body .zgtn-public-header :is(a, button):focus-visible {
  outline: 3px solid rgba(196, 154, 26, 0.48);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  html body .zgtn-public-header .vision-2030-mark {
    display: none;
  }

  html body .site-header.zgtn-public-header::after {
    right: 250px;
  }
}

@media (max-width: 760px) {
  html body .site-header.zgtn-public-header {
    min-height: 84px !important;
    padding: 9px 14px !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
  }

  html body .site-header.zgtn-public-header::before {
    height: 3px;
  }

  html body .site-header.zgtn-public-header::after {
    right: 76px;
    width: 170px;
    opacity: 0.72;
  }

  html body .zgtn-public-header .brand {
    gap: 9px;
  }

  html body .zgtn-public-header .brand-logo {
    width: 60px !important;
    height: 60px !important;
  }

  html body .zgtn-public-header .brand strong {
    font-size: 0.98rem !important;
  }

  html body .zgtn-public-header .brand small {
    max-width: 180px;
    overflow: hidden;
    font-size: 0.67rem !important;
    text-overflow: ellipsis;
  }

  html body .zgtn-public-header .nav-actions .nav-login,
  html body .zgtn-public-header .nav-actions .nav-cta {
    display: none !important;
  }

  html body .zgtn-public-header .mobile-menu-panel {
    max-height: calc(100vh - 96px);
    padding-top: 8px !important;
  }
}

@media (max-width: 440px) {
  html body .zgtn-public-header .brand small {
    display: none !important;
  }

  html body .zgtn-public-header .brand-logo {
    width: 56px !important;
    height: 56px !important;
  }

  html body .zgtn-public-header .public-menu-link {
    min-height: 49px !important;
    padding-inline: 15px !important;
  }

  html body .zgtn-public-header .public-menu-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .zgtn-public-header *,
  html body .zgtn-public-header *::before,
  html body .zgtn-public-header *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
