/* Shared layout polish and unified shell across all non-Home routes (28 Nov).
   Zero scroll-triggered opacity:0 hiding (G7 + option a no motion). */
:root { --sn-ease: cubic-bezier(0.22, 1, 0.36, 1); }

html body main > section,
html body main > article > section {
  padding-top: clamp(56px, 6.5vw, 96px);
  padding-bottom: clamp(56px, 6.5vw, 96px);
}
html body main > section + section { margin-top: 0; }
html body main h2 { text-wrap: balance; }
html body main p { text-wrap: pretty; }

/* Unified header across every route: crisp Services chevron (no raw browser triangle)
   and consistent underlined Buy now text-link (no pill mismatch on trade pages). */
html body header.header {
  background: rgb(243 244 238 / 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgb(17 19 17 / 0.09);
}
html body header.header .services-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html body header.header .services-menu summary::-webkit-details-marker { display: none; }
html body header.header .services-menu summary::marker { content: ""; }
html body header.header .services-chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms var(--sn-ease);
}
html body header.header .services-menu[open] .services-chevron {
  transform: rotate(-135deg) translateY(-1px);
}
html body header.header .nav .text-link {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 10px 4px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
html body header.header .nav .text-link::before,
html body header.header .nav .text-link::after { display: none !important; }

/* Unified dark footer (.home-directory) styled everywhere, including offer/review routes. */
html body footer.home-directory {
  background: #20241f;
  color: #eef2e9;
  font-family: GeistReview, Geist, Arial, sans-serif;
}
html body footer.home-directory .directory-inner {
  width: min(calc(100% - clamp(42px, 9.4vw, 152px)), 1460px);
  margin: auto;
  padding: clamp(36px, 4.5vw, 64px) 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 28px 6vw;
}
html body footer.home-directory .directory-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
html body footer.home-directory .logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-decoration: none;
  min-height: 44px;
}
html body footer.home-directory .logo-hq {
  font-size: 0.68em;
  align-self: flex-start;
  margin-top: 2px;
  opacity: 0.85;
}
html body footer.home-directory .brand-symbol {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
html body footer.home-directory .directory-roi {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #eff5e8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
html body footer.home-directory .directory-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
}
html body footer.home-directory .directory-links h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #acbc9e;
  letter-spacing: 0.01em;
}
html body footer.home-directory .directory-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
html body footer.home-directory .directory-links a,
html body footer.home-directory .directory-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: #f2f4ed;
  font-size: 15px;
}
html body footer.home-directory a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
html body footer.home-directory a:focus-visible {
  outline: 3px solid #a3e635;
  outline-offset: 3px;
}
html body footer.home-directory .directory-legal {
  grid-column: 1 / -1;
  border-top: 1px solid #53594f;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
  justify-content: space-between;
  padding-top: 10px;
  color: #bcc3b7;
  font-size: 14px;
}
html body footer.home-directory .directory-legal div {
  display: flex;
  gap: 24px;
}

@media (max-width: 760px) {
  html body footer.home-directory .directory-inner {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  html body footer.home-directory .directory-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  html body main > section,
  html body main > article > section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
@media (max-width: 420px) {
  html body footer.home-directory .directory-links {
    grid-template-columns: 1fr;
  }
  html body footer.home-directory .directory-inner {
    width: calc(100% - 34px);
  }
}
