.public-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0;
  pointer-events: none;
}

.public-header__bar {
  display: flex;
  width: min(100%, 90rem);
  min-height: 4rem;
  align-items: center;
  gap: 1.5rem;
  margin-inline: auto;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  border: 1px solid rgba(21, 35, 29, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 254, 249, 0.97);
  box-shadow: 0 14px 40px -28px rgba(21, 35, 29, 0.72);
  pointer-events: auto;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.public-header__bar.is-scrolled {
  transform: translateY(-0.2rem);
  box-shadow: 0 18px 46px -24px rgba(21, 35, 29, 0.8);
}

.public-header__logo {
  flex: none;
}

.public-header__nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 0.2rem;
}

.public-header__nav a {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: center;
  padding: 0 0.65rem;
  color: #667068;
  font-size: 0.78rem;
  font-weight: 700;
}

.public-header__nav a::after {
  content: '';
  position: absolute;
  right: 0.65rem;
  bottom: 0.15rem;
  left: 0.65rem;
  height: 2px;
  background: #4cae50;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.public-header__nav a:hover,
.public-header__nav a.is-active {
  color: #15231d;
}

.public-header__nav a:hover::after,
.public-header__nav a.is-active::after {
  transform: scaleX(1);
}

.public-header__desktop-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.public-search {
  display: flex;
  width: 8.5rem;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.7rem;
  border-left: 1px solid rgba(21, 35, 29, 0.16);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.public-search:focus-within {
  border-color: #4cae50;
  box-shadow: 0 0 0 2px rgba(76, 174, 80, 0.18);
}

.public-search > svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  color: #667068;
}

.public-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #15231d;
  font-size: 0.78rem;
}

.public-search input::placeholder {
  color: #7b847d;
}

.public-header__login,
.public-header__account {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.65rem;
  color: #15231d;
  font-size: 0.78rem;
  font-weight: 750;
}

.public-header__account svg {
  width: 0.95rem;
  height: 0.95rem;
}

.public-header__cta {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.95rem;
  border-radius: 0.55rem;
  background: #4cae50;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  touch-action: manipulation;
}

.public-header__cta:hover {
  background: #3f9843;
}

.public-header__cta svg {
  width: 0.95rem;
  height: 0.95rem;
}

.public-header__menu-button {
  display: none;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid rgba(21, 35, 29, 0.18);
  border-radius: 0.55rem;
  color: #15231d;
}

.public-header__menu-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.public-mobile-menu {
  width: min(100%, 90rem);
  margin: 0.45rem auto 0;
  pointer-events: auto;
}

.public-mobile-menu > nav {
  padding: 1rem;
  border: 1px solid rgba(21, 35, 29, 0.16);
  border-radius: 0.85rem;
  background: #fffef9;
  box-shadow: 0 18px 40px -24px rgba(21, 35, 29, 0.82);
}

.public-mobile-menu .public-search {
  width: 100%;
  border: 1px solid rgba(21, 35, 29, 0.16);
}

.public-mobile-menu__links {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(21, 35, 29, 0.14);
}

.public-mobile-menu__links a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(21, 35, 29, 0.14);
  color: #5d675f;
  font-size: 0.95rem;
  font-weight: 700;
}

.public-mobile-menu__links a.is-active {
  color: #3f9843;
}

.public-mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.public-mobile-menu__actions > a:not(.public-header__cta),
.public-mobile-menu__actions > button {
  padding: 0.65rem;
  color: #15231d;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.public-footer {
  background:
    linear-gradient(rgba(21, 35, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 35, 29, 0.035) 1px, transparent 1px), #edf2e9;
  background-size: 32px 32px;
}

.public-footer__panel {
  border-radius: 1rem;
  background: #15231d;
  color: #fffef9;
}

.public-footer__panel h3,
.public-footer__panel .text-foreground {
  color: #fffef9;
}

.public-footer__panel .text-muted-foreground {
  color: rgba(255, 254, 249, 0.62);
}

.public-footer__panel a.text-muted-foreground:hover,
.public-footer__panel button.text-muted-foreground:hover {
  color: #cdea81;
}

.public-footer__panel .bg-white\/60 {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.public-footer__separator {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1120px) {
  .public-header__bar {
    gap: 0.75rem;
  }

  .public-header__nav a {
    padding-inline: 0.45rem;
  }

  .public-search {
    width: 6.5rem;
  }
}

@media (max-width: 1023px) {
  .public-header__nav,
  .public-header__desktop-actions {
    display: none;
  }

  .public-header__menu-button {
    display: inline-flex;
  }
}

@media (max-width: 639px) {
  .public-header {
    padding-inline: 0.5rem;
  }

  .public-header__bar {
    min-height: 3.75rem;
    padding-left: 0.75rem;
    border-radius: 0.75rem;
  }

  .public-mobile-menu > nav {
    border-radius: 0.75rem;
  }
}
