/* Shared shell for every public page, including the static legal documents. */
.site-header {
  width: min(100%, 1440px);
  min-height: 88px;
  margin: 0 auto;
  padding: 16px max(24px, env(safe-area-inset-right)) 16px
    max(24px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  border-bottom: 1px solid #dfdfd3;
  color: #1e3a2e;
}
.site-header-home {
  display: inline-flex;
  flex: none;
  align-items: center;
  text-decoration: none;
}
.site-header-home img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 205px;
}
.site-nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 27px);
}
.site-nav-desktop a,
.site-nav-mobile-links a {
  color: #1e3a2e;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.site-nav-desktop a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav-desktop a:hover,
.site-nav-mobile-links a:hover {
  color: #276b4f;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.site-nav-desktop a[aria-current="page"],
.site-nav-mobile-links a[aria-current="page"] {
  color: #1e3a2e;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 7px;
}
.site-nav-desktop .site-nav-cta,
.site-nav-mobile-links .site-nav-cta {
  background: #1e3a2e;
  color: #f8f1e7;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  justify-content: center;
}
.site-nav-desktop .site-nav-cta:hover,
.site-nav-mobile-links .site-nav-cta:hover {
  background: #285640;
  color: #fff;
  text-decoration: none;
}
.site-nav-mobile {
  display: none;
}
.site-header :where(a, summary):focus-visible {
  outline: 3px solid #ef957c;
  outline-offset: 4px;
}
@media (max-width: 1050px) {
  .site-nav-desktop {
    display: none;
  }
  .site-nav-mobile {
    display: block;
    margin-left: auto;
  }
  .site-nav-mobile summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid #b9c8bc;
    border-radius: 999px;
    padding: 8px 19px;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
    color: #1e3a2e;
  }
  .site-nav-mobile summary::-webkit-details-marker {
    display: none;
  }
  .site-nav-mobile summary::after {
    content: "☰";
    font-size: 17px;
    margin-left: 12px;
  }
  .site-nav-mobile[open] summary::after {
    content: "×";
    font-size: 22px;
  }
  .site-nav-mobile-links {
    position: absolute;
    z-index: 100;
    top: calc(100% - 2px);
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    width: min(330px, calc(100vw - 48px));
    padding: 14px;
    background: #fcfaf5;
    border: 1px solid #d9dfd2;
    border-radius: 17px;
    box-shadow: 0 16px 32px rgb(20 45 30 / 13%);
  }
  .site-nav-mobile-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
  }
  .site-nav-mobile-links .site-nav-cta {
    margin-top: 8px;
  }
}
@media (max-width: 450px) {
  .site-header-home img {
    height: 32px;
    max-width: 170px;
  }
}
/* Legal pages keep their prose outside the global navigation grid. */
.legal-page-footer {
  max-width: 870px;
  padding: 30px 22px 50px;
  margin: auto;
  border-top: 1px solid #d9dfd2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 35px;
  font-size: 13px;
  color: #657b6b;
}
.legal-page-footer img {
  width: 155px;
  height: auto;
  display: block;
}
.legal-page-footer-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: normal;
}
.legal-page-footer-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 16px;
  border-top: 1px solid #d9dfd2;
}
.legal-page-footer-links a {
  color: #245e45;
}
@media (max-width: 650px) {
  .legal-page-footer {
    grid-template-columns: 1fr;
  }
  .legal-page-footer-links {
    grid-column: 1;
  }
}

/* Always-visible account creation on mobile, not hidden inside the menu. */
.site-header-register {
  display: none;
}
@media (max-width: 1050px) {
  .site-header-register {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    color: #fffaf0;
    background: #204b39;
    text-decoration: none;
    font-weight: 650;
    white-space: nowrap;
    font-size: 0.8rem;
    min-height: 44px;
    margin-left: auto;
  }
  .site-nav-mobile {
    margin-left: 0;
  }
}
@media (max-width: 520px) {
  .site-header {
    gap: 0.4rem;
    padding-inline: 0.75rem;
  }
  .site-header-home img {
    max-width: 115px;
    height: auto;
  }
  .site-header-register {
    padding: 0.5rem 0.55rem;
    font-size: 0.73rem;
  }
  .site-nav-mobile summary {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 0;
    justify-content: center;
  }
  .site-nav-mobile summary::after {
    margin-left: 0;
    font-size: 21px;
  }
}
